init
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user