From 1cde40b45916d1f99a4cda7837b516cde761f127 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Sun, 2 Jan 2022 17:57:40 +0100 Subject: basic match views --- web/pw-server/src/app.html | 31 +++++++----- web/pw-server/src/lib/components/Visualizer.svelte | 57 ++++++++++++++++++++++ web/pw-server/src/routes/bots/[bot_id].svelte | 1 - web/pw-server/src/routes/matches/[match_id].svelte | 31 ++++++++++++ web/pw-server/src/routes/matches/index.svelte | 35 +++++++++++++ web/pw-server/src/routes/matches/new.svelte | 2 + 6 files changed, 145 insertions(+), 12 deletions(-) create mode 100644 web/pw-server/src/lib/components/Visualizer.svelte create mode 100644 web/pw-server/src/routes/matches/[match_id].svelte (limited to 'web/pw-server/src') diff --git a/web/pw-server/src/app.html b/web/pw-server/src/app.html index 32f9591..3193582 100644 --- a/web/pw-server/src/app.html +++ b/web/pw-server/src/app.html @@ -1,13 +1,22 @@ - - - - - - %svelte.head% - - -
%svelte.body%
- - + + + + + + + + + + + %svelte.head% + + + +
%svelte.body%
+ + + \ No newline at end of file diff --git a/web/pw-server/src/lib/components/Visualizer.svelte b/web/pw-server/src/lib/components/Visualizer.svelte new file mode 100644 index 0000000..d53eb36 --- /dev/null +++ b/web/pw-server/src/lib/components/Visualizer.svelte @@ -0,0 +1,57 @@ + + +
+ +
+
+ +
+
0 / 0
+
+ Ms per frame:  + +
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+ + diff --git a/web/pw-server/src/routes/bots/[bot_id].svelte b/web/pw-server/src/routes/bots/[bot_id].svelte index 955f1c6..3eece10 100644 --- a/web/pw-server/src/routes/bots/[bot_id].svelte +++ b/web/pw-server/src/routes/bots/[bot_id].svelte @@ -1,6 +1,5 @@ + + + +
+ +
diff --git a/web/pw-server/src/routes/matches/index.svelte b/web/pw-server/src/routes/matches/index.svelte index dcfb43b..448048b 100644 --- a/web/pw-server/src/routes/matches/index.svelte +++ b/web/pw-server/src/routes/matches/index.svelte @@ -1 +1,36 @@ + + + + new match + diff --git a/web/pw-server/src/routes/matches/new.svelte b/web/pw-server/src/routes/matches/new.svelte index 10ce093..eed3dbb 100644 --- a/web/pw-server/src/routes/matches/new.svelte +++ b/web/pw-server/src/routes/matches/new.svelte @@ -28,6 +28,7 @@