From 8d3b8fd8aa9603f5377f1b37963190ac2c01e9dd Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Fri, 31 Dec 2021 11:38:06 +0100 Subject: npm run format --- web/pw-server/src/app.html | 20 ++--- web/pw-server/src/lib/auth.ts | 6 +- web/pw-server/src/routes/bots/[bot_id].svelte | 4 +- web/pw-server/src/routes/bots/index.svelte | 108 +++++++++++++------------- web/pw-server/src/routes/login.svelte | 56 ++++++------- web/pw-server/src/routes/register.svelte | 54 ++++++------- 6 files changed, 124 insertions(+), 124 deletions(-) (limited to 'web/pw-server/src') diff --git a/web/pw-server/src/app.html b/web/pw-server/src/app.html index 9c8080f..32f9591 100644 --- a/web/pw-server/src/app.html +++ b/web/pw-server/src/app.html @@ -1,13 +1,13 @@ - - - - - - %svelte.head% - - -
%svelte.body%
- + + + + + + %svelte.head% + + +
%svelte.body%
+ diff --git a/web/pw-server/src/lib/auth.ts b/web/pw-server/src/lib/auth.ts index 436ec66..3f77c58 100644 --- a/web/pw-server/src/lib/auth.ts +++ b/web/pw-server/src/lib/auth.ts @@ -1,7 +1,7 @@ export function set_session_token(token: string) { - window.localStorage.setItem('session', token); + window.localStorage.setItem("session", token); } export function get_session_token(): string | null { - return window.localStorage.getItem('session'); -} \ No newline at end of file + return window.localStorage.getItem("session"); +} diff --git a/web/pw-server/src/routes/bots/[bot_id].svelte b/web/pw-server/src/routes/bots/[bot_id].svelte index 2556d73..955f1c6 100644 --- a/web/pw-server/src/routes/bots/[bot_id].svelte +++ b/web/pw-server/src/routes/bots/[bot_id].svelte @@ -1,6 +1,6 @@
- - - + + +
diff --git a/web/pw-server/src/routes/login.svelte b/web/pw-server/src/routes/login.svelte index 197238e..09b1834 100644 --- a/web/pw-server/src/routes/login.svelte +++ b/web/pw-server/src/routes/login.svelte @@ -1,46 +1,46 @@ {#if loggedIn()} - you are logged in + you are logged in {/if}
- - - - - + + + + +
diff --git a/web/pw-server/src/routes/register.svelte b/web/pw-server/src/routes/register.svelte index a21cf65..6344399 100644 --- a/web/pw-server/src/routes/register.svelte +++ b/web/pw-server/src/routes/register.svelte @@ -1,38 +1,38 @@

Register

- - - - - + + + + +
-- cgit v1.2.3