2024-06-29 17:27:46 +01:00
|
|
|
<script>
|
2024-06-29 19:52:52 +01:00
|
|
|
import '$lib/app.css';
|
2024-06-29 17:27:46 +01:00
|
|
|
import Navigation from '$lib/ui/Navigation.svelte';
|
|
|
|
import Widgets from '$lib/ui/Widgets.svelte';
|
2024-06-30 21:39:37 +01:00
|
|
|
import { Client } from '$lib/client/client.js';
|
|
|
|
import { get } from 'svelte/store';
|
|
|
|
|
|
|
|
let client = get(Client.get());
|
2024-06-29 17:27:46 +01:00
|
|
|
</script>
|
|
|
|
|
2024-06-30 17:37:19 +01:00
|
|
|
<div id="app">
|
2024-06-29 17:27:46 +01:00
|
|
|
|
|
|
|
<header>
|
|
|
|
<Navigation />
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<main>
|
2024-06-30 21:39:37 +01:00
|
|
|
{#await client.verifyCredentials()}
|
|
|
|
<div class="loading throb">
|
|
|
|
<span>just a moment...</span>
|
|
|
|
</div>
|
|
|
|
{:then}
|
|
|
|
<slot></slot>
|
|
|
|
{/await}
|
2024-06-29 17:27:46 +01:00
|
|
|
</main>
|
|
|
|
|
|
|
|
<div id="widgets">
|
|
|
|
<Widgets />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|