From 8d556bbff1bd716c2c42c8002706038f28b55b91 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Sun, 30 Oct 2022 16:23:18 +0100 Subject: [PATCH] add filtering and infinite scroll to BotMatches --- .../components/matches/BotMatchList.svelte | 73 ++++++++++++++++++- .../src/routes/bots/[bot_name]/matches.svelte | 53 ++++++++------ 2 files changed, 100 insertions(+), 26 deletions(-) diff --git a/web/pw-server/src/lib/components/matches/BotMatchList.svelte b/web/pw-server/src/lib/components/matches/BotMatchList.svelte index 959cd07..4a00909 100644 --- a/web/pw-server/src/lib/components/matches/BotMatchList.svelte +++ b/web/pw-server/src/lib/components/matches/BotMatchList.svelte @@ -1,19 +1,84 @@
{#each botMatches as botMatch} {/each} + {#if loading} +
Loading...
+ {/if}
diff --git a/web/pw-server/src/routes/bots/[bot_name]/matches.svelte b/web/pw-server/src/routes/bots/[bot_name]/matches.svelte index a3c97cb..979054c 100644 --- a/web/pw-server/src/routes/bots/[bot_name]/matches.svelte +++ b/web/pw-server/src/routes/bots/[bot_name]/matches.svelte @@ -1,26 +1,21 @@
- +
+ +
+