From b1e9490f55e4f360c249a107dcc5809a663dec42 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Sat, 25 Dec 2021 21:49:16 +0100 Subject: add match meta header to logs --- web/pw-frontend/package.json | 1 + web/pw-frontend/src/lib/MatchBrowser.svelte | 51 ++++++++++++++++++++++++++++- 2 files changed, 51 insertions(+), 1 deletion(-) (limited to 'web/pw-frontend') diff --git a/web/pw-frontend/package.json b/web/pw-frontend/package.json index 2f31ebb..daf64af 100644 --- a/web/pw-frontend/package.json +++ b/web/pw-frontend/package.json @@ -26,6 +26,7 @@ "buffer": "^6.0.3", "extract-svg-path": "^2.1.0", "load-svg": "^1.0.0", + "moment": "^2.29.1", "svg-mesh-3d": "^1.1.0", "ts-heap": "^1.1.3" } diff --git a/web/pw-frontend/src/lib/MatchBrowser.svelte b/web/pw-frontend/src/lib/MatchBrowser.svelte index 71fadb2..6885446 100644 --- a/web/pw-frontend/src/lib/MatchBrowser.svelte +++ b/web/pw-frontend/src/lib/MatchBrowser.svelte @@ -1,6 +1,19 @@
@@ -33,7 +59,15 @@ class:selected={selectedMatch === match.name} class="match-card" > - {match.name} + {showTimestamp(match.timestamp)} + {match.map_name} + {/each} @@ -86,4 +120,19 @@ .match-card:hover { background-color: #333; } + + .match-timestamp { + color: #ccc; + } + + .match-mapname { + padding: 0 0.5em; + } + + .match-player-list { + list-style: none; + overflow: hidden; + text-overflow: ellipsis; + padding-left: 18px; + } -- cgit v1.2.3