style: lint
This commit is contained in:
@@ -237,7 +237,8 @@ export default function Home() {
|
||||
'zh-CN'
|
||||
? entry.type ===
|
||||
'skin'
|
||||
? `${entry
|
||||
? `${
|
||||
entry
|
||||
.skinName[
|
||||
'zh-CN'
|
||||
]
|
||||
|
||||
@@ -95,7 +95,8 @@ export default class Voice {
|
||||
this.#default.language.voice = this.#voice.languages[0]
|
||||
this.#config.language = this.#default.language.voice
|
||||
this.#voice.locations = this.#getVoiceLocations()
|
||||
this.#voice.list = this.#charwordTable.availability[this.#config.language]
|
||||
this.#voice.list =
|
||||
this.#charwordTable.availability[this.#config.language]
|
||||
}
|
||||
|
||||
success() {
|
||||
@@ -251,7 +252,10 @@ export default class Voice {
|
||||
|
||||
#nextVoice() {
|
||||
const getVoiceId = () => {
|
||||
const id = this.#voice.list[Math.floor(Math.random() * this.#voice.list.length)]
|
||||
const id =
|
||||
this.#voice.list[
|
||||
Math.floor(Math.random() * this.#voice.list.length)
|
||||
]
|
||||
return id === this.#voice.id.last ? getVoiceId() : id
|
||||
}
|
||||
this.#playVoice(getVoiceId())
|
||||
@@ -355,7 +359,8 @@ export default class Voice {
|
||||
this.#voice.list = this.#charwordTable.availability[lang]
|
||||
} else {
|
||||
this.#config.language = this.#default.language.voice
|
||||
this.#voice.list = this.#charwordTable.availability[this.#config.language]
|
||||
this.#voice.list =
|
||||
this.#charwordTable.availability[this.#config.language]
|
||||
}
|
||||
const availableSubtitleLang = this.#getSubtitleLanguages()
|
||||
if (!availableSubtitleLang.includes(this.#config.subtitle.language)) {
|
||||
|
||||
@@ -130,7 +130,7 @@ export const update = async () => {
|
||||
const musicBankAlias = audioDataTable.bankAlias
|
||||
const musicData: MusicDataItem[] =
|
||||
metaTable.homeBackgroundData.homeBgDataList.reduce((acc, cur) => {
|
||||
cur.multiFormList.forEach(item => {
|
||||
cur.multiFormList.forEach((item) => {
|
||||
acc.push({
|
||||
id: item.multiFormBgId,
|
||||
musicId: item.bgMusicId,
|
||||
|
||||
Reference in New Issue
Block a user