From 8f65a7d3e2042d79c2c7c8c74f9fd2b70280aa38 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Sun, 31 Jul 2022 21:04:48 +0200 Subject: create a basic match table --- web/pw-server/src/routes/matches/index.svelte | 121 ++++++++++++++++++++++++-- 1 file changed, 112 insertions(+), 9 deletions(-) (limited to 'web') diff --git a/web/pw-server/src/routes/matches/index.svelte b/web/pw-server/src/routes/matches/index.svelte index 448048b..667e551 100644 --- a/web/pw-server/src/routes/matches/index.svelte +++ b/web/pw-server/src/routes/matches/index.svelte @@ -22,15 +22,118 @@ -new match - +
+ + + + + + + + + {#each matches as match} + goto(match_url(match))}> + + + {#if match["winner"] == null} + + + {:else if match["winner"] == 0} + + + {:else if match["winner"] == 1} + + + {/if} + + + {/each} +
timestampplayer 1player 2
+ {dayjs(match["timestamp"]).format("YYYY-MM-DD HH:mm")} + + {match["players"][0]["bot_name"]} + + TIE + + TIE + + WIN + + LOSS + + LOSS + + WIN + + {match["players"][1]["bot_name"]} +
+
+ + \ No newline at end of file -- cgit v1.2.3