This commit is contained in:
2020-12-18 19:47:58 +01:00
parent 4bb3bae4e6
commit 32357ece0a
18 changed files with 5862 additions and 7900 deletions

View File

@@ -1,12 +1,13 @@
<script>
const world = 'world'; // edit world and save to see hmr update
import Login from "./components/Login.svelte";
import Dashboard from "./components/Dashboard.svelte";
import store from "./store.js";
store.init();
$: logged_in = $store.isLoggedIn;
</script>
<style>
h1 {
color: orangered; /* change color an save to see hmr update */
}
</style>
<h1>Hello {world}</h1>
<p>Open App.svelte in your editor and change something to see HMR in action</p>
{#if logged_in === true}
<Dashboard />
{:else}
<Login />
{/if}