From 28dd323df84d2e6aa7b950e6c0230d615297cdc1 Mon Sep 17 00:00:00 2001 From: exqt <8168124+exqt@users.noreply.github.com> Date: Sun, 10 Nov 2024 03:50:18 +0900 Subject: [PATCH] refactor: hide play count --- src/components/Rating/RatingApp.svelte | 38 ++++++++++++++------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/src/components/Rating/RatingApp.svelte b/src/components/Rating/RatingApp.svelte index 76a32d5..8ee5e10 100644 --- a/src/components/Rating/RatingApp.svelte +++ b/src/components/Rating/RatingApp.svelte @@ -25,6 +25,7 @@ let lastUpdated: string | null = null let scoreDataSorted: Array<{ songName: string, difficulty: string, score: DifficultyScoreData, songNo: string }> = [] let totalPlayCount: string = '0 / 0 / 0 / 0' + let openPlayCount: boolean = false onMount(async () => { await storage.loadFromChromeStorage() @@ -358,30 +359,31 @@ }}> Clear Cache - Total Play Count: {totalPlayCount} -
- List of Scores + + + {#if openPlayCount} + Total Play Count: {totalPlayCount} - - - - - - - - {#each scoreDataSorted as score} - - - + + + - {/each} + + + {#each scoreDataSorted as score} + + + + + + {/each}
NameDiffCount
- ({score.songNo}) {score.songName} - {score.difficulty}{score.score.count.play} / {score.score.count.clear} / {score.score.count.fullcombo} / {score.score.count.donderfullcombo}NameDiffCount
+ ({score.songNo}) {score.songName} + {score.difficulty}{score.score.count.play} / {score.score.count.clear} / {score.score.count.fullcombo} / {score.score.count.donderfullcombo}
-
+ {/if} {/if} {:else if scene === 'upload'} {uploadMessage}