From 17d29c5397f5b2a39d76587722d20467a53014a8 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Wed, 18 May 2022 22:03:46 +0200 Subject: add basic leaderboard view --- .../src/lib/components/Leaderboard.svelte | 72 ++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 web/pw-server/src/lib/components/Leaderboard.svelte (limited to 'web/pw-server/src/lib/components/Leaderboard.svelte') diff --git a/web/pw-server/src/lib/components/Leaderboard.svelte b/web/pw-server/src/lib/components/Leaderboard.svelte new file mode 100644 index 0000000..75e4807 --- /dev/null +++ b/web/pw-server/src/lib/components/Leaderboard.svelte @@ -0,0 +1,72 @@ + + +
+ + + + + + + {#each leaderboard as entry, index} + + + + + + + {/each} +
+ RatingBotAuthor
{index + 1} + {formatRating(entry)} + {entry["bot"]["name"]} + {#if entry["author"]} + {entry["author"]["username"]} + {/if} +
+
+ + -- cgit v1.2.3