From d3845eb85fc8f75562a6e121c5e437763ffeea63 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Fri, 4 Nov 2022 07:17:59 +0100 Subject: integrate UserControls into main navbar --- .../src/lib/components/navbar/UserControls.svelte | 88 --------------- web/pw-server/src/routes/__layout.svelte | 124 +++++++++++++++------ .../src/routes/bots/[bot_name]/__layout.svelte | 4 - 3 files changed, 90 insertions(+), 126 deletions(-) delete mode 100644 web/pw-server/src/lib/components/navbar/UserControls.svelte (limited to 'web/pw-server/src') diff --git a/web/pw-server/src/lib/components/navbar/UserControls.svelte b/web/pw-server/src/lib/components/navbar/UserControls.svelte deleted file mode 100644 index 184a40a..0000000 --- a/web/pw-server/src/lib/components/navbar/UserControls.svelte +++ /dev/null @@ -1,88 +0,0 @@ - - -
- {#if $currentUser} - - {$currentUser["username"]} - - -
Sign out
- {:else} - - - {/if} -
- - diff --git a/web/pw-server/src/routes/__layout.svelte b/web/pw-server/src/routes/__layout.svelte index e826ab1..59f6c4b 100644 --- a/web/pw-server/src/routes/__layout.svelte +++ b/web/pw-server/src/routes/__layout.svelte @@ -1,17 +1,52 @@ @@ -20,12 +55,13 @@
-