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