Commit 35723adc authored by Chunchi Che's avatar Chunchi Che

optimize

parent 2cc1fbb0
Pipeline #27895 passed with stages
in 9 minutes and 13 seconds
...@@ -38,7 +38,7 @@ const store = proxy<Props>({ ...@@ -38,7 +38,7 @@ const store = proxy<Props>({
decks: [], decks: [],
total: 0, total: 0,
onlyMine: false, onlyMine: false,
progress: 0.0, progress: 0.01,
}); });
export const DeckResults: React.FC = memo(() => { export const DeckResults: React.FC = memo(() => {
...@@ -252,7 +252,7 @@ const updatePersonalList = async (message: MessageInstance) => { ...@@ -252,7 +252,7 @@ const updatePersonalList = async (message: MessageInstance) => {
finishProgress(); finishProgress();
}; };
const resetProgress = () => (store.progress = 0); const resetProgress = () => (store.progress = 0.01);
const updateProgress = (progress: number) => (store.progress = progress * 0.9); const updateProgress = (progress: number) => (store.progress = progress * 0.9);
const finishProgress = () => (store.progress = 1); const finishProgress = () => (store.progress = 1);
......
...@@ -198,5 +198,8 @@ ...@@ -198,5 +198,8 @@
"TurnOnSoundEffects": "Efeitos sonoros", "TurnOnSoundEffects": "Efeitos sonoros",
"SwitchMusicAccordingToTheEnvironment": "Trocar música conforme o ambiente", "SwitchMusicAccordingToTheEnvironment": "Trocar música conforme o ambiente",
"LanguageSettings": "Idioma" "LanguageSettings": "Idioma"
},
"DeckResults": {
"NoDeckGroupFound": "Não foi possível encontrar o baralho correspondente"
} }
} }
...@@ -200,5 +200,8 @@ ...@@ -200,5 +200,8 @@
"TurnOnSoundEffects": "开启音效", "TurnOnSoundEffects": "开启音效",
"SwitchMusicAccordingToTheEnvironment": "根据环境切换音乐", "SwitchMusicAccordingToTheEnvironment": "根据环境切换音乐",
"LanguageSettings": "语言" "LanguageSettings": "语言"
},
"DeckResults": {
"NoDeckGroupFound": "找不到相应卡组"
} }
} }
...@@ -200,5 +200,8 @@ ...@@ -200,5 +200,8 @@
"TurnOnSoundEffects": "Sound effects", "TurnOnSoundEffects": "Sound effects",
"SwitchMusicAccordingToTheEnvironment": "Switch music according to the environment", "SwitchMusicAccordingToTheEnvironment": "Switch music according to the environment",
"LanguageSettings": "Language" "LanguageSettings": "Language"
},
"DeckResults": {
"NoDeckGroupFound": "Cannot find the corresponding card deck"
} }
} }
...@@ -198,5 +198,8 @@ ...@@ -198,5 +198,8 @@
"TurnOnSoundEffects": "Effets sonores", "TurnOnSoundEffects": "Effets sonores",
"SwitchMusicAccordingToTheEnvironment": "Changer la musique en fonction de l'environnement", "SwitchMusicAccordingToTheEnvironment": "Changer la musique en fonction de l'environnement",
"LanguageSettings": "Langue" "LanguageSettings": "Langue"
},
"DeckResults": {
"NoDeckGroupFound": "Impossible de trouver le jeu de cartes correspondant"
} }
} }
...@@ -198,5 +198,8 @@ ...@@ -198,5 +198,8 @@
"TurnOnSoundEffects": "効果音をオンにする", "TurnOnSoundEffects": "効果音をオンにする",
"SwitchMusicAccordingToTheEnvironment": "環境に応じて音楽を切り替える", "SwitchMusicAccordingToTheEnvironment": "環境に応じて音楽を切り替える",
"LanguageSettings": "言語" "LanguageSettings": "言語"
},
"DeckResults": {
"NoDeckGroupFound": "対応するカードデッキが見つかりません"
} }
} }
...@@ -197,5 +197,8 @@ ...@@ -197,5 +197,8 @@
"TurnOnMusic": "Música", "TurnOnMusic": "Música",
"TurnOnSoundEffects": "Efeitos sonoros", "TurnOnSoundEffects": "Efeitos sonoros",
"SwitchMusicAccordingToTheEnvironment": "Trocar música conforme o ambiente" "SwitchMusicAccordingToTheEnvironment": "Trocar música conforme o ambiente"
},
"DeckResults": {
"NoDeckGroupFound": "Não foi possível encontrar o baralho correspondente"
} }
} }
...@@ -198,5 +198,8 @@ ...@@ -198,5 +198,8 @@
"TurnOnSoundEffects": "Efectos de sonido", "TurnOnSoundEffects": "Efectos de sonido",
"SwitchMusicAccordingToTheEnvironment": "Cambiar la música según el entorno", "SwitchMusicAccordingToTheEnvironment": "Cambiar la música según el entorno",
"LanguageSettings": "Idioma" "LanguageSettings": "Idioma"
},
"DeckResults": {
"NoDeckGroupFound": "No se puede encontrar el mazo de cartas correspondiente"
} }
} }
...@@ -32,6 +32,7 @@ const resources = { ...@@ -32,6 +32,7 @@ const resources = {
Menu: translationChinese.Menu, Menu: translationChinese.Menu,
SelectCardModal: translationChinese.SelectCardModal, SelectCardModal: translationChinese.SelectCardModal,
SystemSettings: translationChinese.SystemSettings, SystemSettings: translationChinese.SystemSettings,
DeckResults: translationChinese.DeckResults,
}, },
en: { en: {
Header: translationEnglish.Header, Header: translationEnglish.Header,
...@@ -51,6 +52,7 @@ const resources = { ...@@ -51,6 +52,7 @@ const resources = {
Menu: translationEnglish.Menu, Menu: translationEnglish.Menu,
SelectCardModal: translationEnglish.SelectCardModal, SelectCardModal: translationEnglish.SelectCardModal,
SystemSettings: translationEnglish.SystemSettings, SystemSettings: translationEnglish.SystemSettings,
DeckResults: translationEnglish.DeckResults,
}, },
es: { es: {
Header: translationSpanish.Header, Header: translationSpanish.Header,
...@@ -70,6 +72,7 @@ const resources = { ...@@ -70,6 +72,7 @@ const resources = {
Menu: translationSpanish.Menu, Menu: translationSpanish.Menu,
SelectCardModal: translationSpanish.SelectCardModal, SelectCardModal: translationSpanish.SelectCardModal,
SystemSettings: translationSpanish.SystemSettings, SystemSettings: translationSpanish.SystemSettings,
DeckResults: translationSpanish.DeckResults,
}, },
fr: { fr: {
Header: translationFrench.Header, Header: translationFrench.Header,
...@@ -89,6 +92,7 @@ const resources = { ...@@ -89,6 +92,7 @@ const resources = {
Menu: translationFrench.Menu, Menu: translationFrench.Menu,
SelectCardModal: translationFrench.SelectCardModal, SelectCardModal: translationFrench.SelectCardModal,
SystemSettings: translationFrench.SystemSettings, SystemSettings: translationFrench.SystemSettings,
DeckResults: translationFrench.DeckResults,
}, },
ja: { ja: {
Header: translationJapanese.Header, Header: translationJapanese.Header,
...@@ -108,6 +112,7 @@ const resources = { ...@@ -108,6 +112,7 @@ const resources = {
Menu: translationJapanese.Menu, Menu: translationJapanese.Menu,
SelectCardModal: translationJapanese.SelectCardModal, SelectCardModal: translationJapanese.SelectCardModal,
SystemSettings: translationJapanese.SystemSettings, SystemSettings: translationJapanese.SystemSettings,
DeckResults: translationJapanese.DeckResults,
}, },
br: { br: {
Header: translationBrazilian.Header, Header: translationBrazilian.Header,
...@@ -127,6 +132,7 @@ const resources = { ...@@ -127,6 +132,7 @@ const resources = {
Menu: translationBrazilian.Menu, Menu: translationBrazilian.Menu,
SelectCardModal: translationBrazilian.SelectCardModal, SelectCardModal: translationBrazilian.SelectCardModal,
SystemSettings: translationBrazilian.SystemSettings, SystemSettings: translationBrazilian.SystemSettings,
DeckResults: translationBrazilian.DeckResults,
}, },
pt: { pt: {
Header: translationPortuguese.Header, Header: translationPortuguese.Header,
...@@ -146,6 +152,7 @@ const resources = { ...@@ -146,6 +152,7 @@ const resources = {
Menu: translationPortuguese.Menu, Menu: translationPortuguese.Menu,
SelectCardModal: translationPortuguese.SelectCardModal, SelectCardModal: translationPortuguese.SelectCardModal,
SystemSettings: translationPortuguese.SystemSettings, SystemSettings: translationPortuguese.SystemSettings,
DeckResults: translationPortuguese.DeckResults,
}, },
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment