1
0
Fork 0
mirror of synced 2024-07-10 08:46:05 +12:00
budibase/packages/builder/src/App.svelte

38 lines
582 B
Svelte
Raw Normal View History

2019-07-13 21:35:57 +12:00
<script>
import NoPackage from "./NoPackage.svelte";
import PackageRoot from "./PackageRoot.svelte";
2019-07-31 19:09:04 +12:00
import {store, initialise} from "./builderStore";
2019-07-13 21:35:57 +12:00
import { onMount } from 'svelte';
let init = initialise();
</script>
<main>
{#await init}
<h1>loading</h1>
{:then result}
2019-07-31 19:09:04 +12:00
{#if $store.hasAppPackage}
2019-07-13 21:35:57 +12:00
<PackageRoot />
{/if}
2019-07-31 19:09:04 +12:00
{#if !$store.hasAppPackage}
2019-07-13 21:35:57 +12:00
<NoPackage />
{/if}
{:catch err}
<h1 style="color:red">{err}</h1>
{/await}
</main>
<style>
main {
height: 100%;
width: 100%;
font-family: "Lato", Helvetica, Arial, sans-serif;
}
</style>