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