From 7cc6fc9f249e309695db8fa9b10c63c5ebaad380 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Fedor?= Date: Wed, 10 Apr 2024 16:46:16 +0200 Subject: [PATCH] Make feature more svelte-y --- src/img/steam/review_graph_expander.png | Bin 0 -> 1445 bytes .../Store/Licenses/FLicensesSummary.svelte | 136 +++++++++--------- src/js/Content/Steam/SmallSteamButton.svelte | 26 ++++ src/js/Content/Steam/ToggleIcon.svelte | 19 +++ 4 files changed, 109 insertions(+), 72 deletions(-) create mode 100644 src/img/steam/review_graph_expander.png create mode 100644 src/js/Content/Steam/SmallSteamButton.svelte create mode 100644 src/js/Content/Steam/ToggleIcon.svelte diff --git a/src/img/steam/review_graph_expander.png b/src/img/steam/review_graph_expander.png new file mode 100644 index 0000000000000000000000000000000000000000..a1a4ac6bdbdb17d8b67f5a2eab9938b8f3a8c54c GIT binary patch literal 1445 zcmeAS@N?(olHy`uVBq!ia0vp^d_XM4!3HGT`Ez4{lw^r(L`iUdT1k0gQ7VIDN`6wR zf@f}GdTLN=VoGJ<$y6H#24v4 zq}24xJX@vryZ0+8WTx0Eg`4^s_!c;)W@LI)6{QAO`Gq7`WhYyvDB0U7*i={n4aiL` zNmQuF&B-gas<2f8n`;GRgM{^!6u?SKvTcwn`GuBNuFf>#!Gt)CP zF*P$Y)KM@pFf`IP03tJ8LlY}gGbUo-h6WQb!1OB;3-k^33_xCjDfIQluQWFouDZA+C>7yetOgf{R2HP_ z2c;J0mlh=hBQ8xDWL1Hcb5UwyNq$jCetr%t6azByOY(~|@(UE4gUu8)!ZY(y^2>`g z!Rmc|tvvIJOA_;vQ$1a5m4GJbWoD*W8Jn89nz(LT&-jW|!2W%(B!Jx1#)91+bT`GI6`b1*dsX zy(u`|V&sZbuRhQ*`k;tKifEV+F!g|#@MH_*z!QFI9x$~R0h4uxZ;c@X1Cykui(^Q| ztvOTtJth}Q9KT=Q8PJ~8QX#-1d5~|ONmrYN30L|Bp`}rcM+EquYlq^ZG`aN;x|ZELpz+9_ol8*m;YT^Pgz(Gm3poyV)c;j? zDd};S6WYN0JVncK_09tdkLH_6PCUVr+PUfibGl3avom4S)<6EV+&RAYAls4$Qa0DR zCV!CPy1+Sm+ibNuG1aJcZUe^e57xJAE|B^4fO(FQ@8o^|7~UO_={Y#>nQg>{_C;3T zgJ%@hDsFh&b0FWNm{axUnMz5%!`3_U78Z&&sn+HmKi83{E3oXcRdUGpLd``IGc&j+ zIZos~tNJu~pR2In!SEMHAI>g5Fkx-@zTkDwEB%y}ADLLZDQXi<@m?G%_Ck-)jB4=lH6PTXC)C{NU3c8$?i z7K?+YE$+0t7ld!E2)reF^@;HO^EJ9BcW>!keQI82YS-eBYK=rc_t)l$Qg)e2>!+4o zDb_h*{%~nd`orCsG51Zyw|?3c5NSKO9!mf941?(K%QKmHAj3@xDt92u7-KL-_@ Mp00i_>zopr0NhR-$N&HU literal 0 HcmV?d00001 diff --git a/src/js/Content/Features/Store/Licenses/FLicensesSummary.svelte b/src/js/Content/Features/Store/Licenses/FLicensesSummary.svelte index 018748c40..8aae894cc 100644 --- a/src/js/Content/Features/Store/Licenses/FLicensesSummary.svelte +++ b/src/js/Content/Features/Store/Licenses/FLicensesSummary.svelte @@ -1,5 +1,4 @@ - -{Localization.str.wl.label} - -{#if show} -
- - - - - {@html tableHeader} - - - - - {@html rows} - - - - - {@html tableFooter} - - - - + +
+

+ {Localization.str.wl.label} + (isOpen = !isOpen)}> + {isOpen ? Localization.str.hide : Localization.str.show} + + +

+ + {#if isOpen} +
+ + + + + {#each Object.keys(total) as type} + + {/each} + + + + + {#each Object.entries(yearly).reverse() as [year, map]} + + + {#each Object.keys(total) as type} + + {/each} + + + {/each} + + + + + {#each Object.values(total) as count} + + {/each} + + + + +
+ {/if}
-{/if} diff --git a/src/js/Content/Steam/SmallSteamButton.svelte b/src/js/Content/Steam/SmallSteamButton.svelte new file mode 100644 index 000000000..81fb42457 --- /dev/null +++ b/src/js/Content/Steam/SmallSteamButton.svelte @@ -0,0 +1,26 @@ + + + + + diff --git a/src/js/Content/Steam/ToggleIcon.svelte b/src/js/Content/Steam/ToggleIcon.svelte new file mode 100644 index 000000000..9c7a5db80 --- /dev/null +++ b/src/js/Content/Steam/ToggleIcon.svelte @@ -0,0 +1,19 @@ + + + + +