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 -
timestamp | +player 1 | ++ | + | player 2 | +||||
---|---|---|---|---|---|---|---|---|
+ {dayjs(match["timestamp"]).format("YYYY-MM-DD HH:mm")} + | ++ {match["players"][0]["bot_name"]} + | + {#if match["winner"] == null} ++ TIE + | ++ TIE + | + {:else if match["winner"] == 0} ++ WIN + | ++ LOSS + | + {:else if match["winner"] == 1} ++ LOSS + | ++ WIN + | + {/if} ++ {match["players"][1]["bot_name"]} + | +