CSS Grid + Admin Page Content
This commit is contained in:
parent
6135d18366
commit
3992d964da
19 changed files with 430 additions and 306 deletions
src/routes
|
@ -1,6 +1,7 @@
|
|||
<script lang="ts">
|
||||
import { browser } from "$app/environment";
|
||||
import Modal from "$lib/components/Modal.svelte";
|
||||
import AuthTokenStore from "$lib/stores/AuthTokenStore";
|
||||
import { fade } from "svelte/transition";
|
||||
|
||||
export let showSettings: boolean;
|
||||
|
@ -13,13 +14,14 @@
|
|||
showAuthSaved = false;
|
||||
}, 2000);
|
||||
document.cookie = "authToken=" + authToken;
|
||||
$AuthTokenStore = authToken;
|
||||
}
|
||||
|
||||
let authToken: string;
|
||||
$: console.log(authToken);
|
||||
$: {
|
||||
if (browser) {
|
||||
authToken = document.cookie.split("=")[document.cookie.split("=").length - 1];
|
||||
$AuthTokenStore = authToken;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue