budibase/packages/builder/src/BackendRoot.svelte

55 lines
1.1 KiB
Svelte
Raw Normal View History

2019-08-20 08:24:02 +02:00
<script>
2019-08-30 09:25:00 +02:00
import BackendNav from "./nav/BackendNav.svelte";
2019-08-20 08:24:02 +02:00
import Database from "./database/DatabaseRoot.svelte" ;
import UserInterface from "./userInterface/UserInterfaceRoot.svelte" ;
import ActionsAndTriggers from "./actionsAndTriggers/ActionsAndTriggersRoot.svelte" ;
import AccessLevels from "./accessLevels/AccessLevelsRoot.svelte" ;
import ComingSoon from "./common/ComingSoon.svelte";
import {store} from "./builderStore";
export let navWidth = "50px";
</script>
<div class="root">
2019-08-30 09:25:00 +02:00
<div class="nav">
<BackendNav />
</div>
2019-08-20 08:24:02 +02:00
<div class="content"
style="width: calc(100% - {navWidth}); left: {navWidth}">
{#if $store.activeNav === "database"}
<Database />
{:else if $store.activeNav === "actions"}
<ActionsAndTriggers />
{:else if $store.activeNav === "access levels"}
<AccessLevels />
{/if}
</div>
</div>
<style>
.root {
height: 100%;
2019-08-30 09:25:00 +02:00
display: flex;
2019-08-20 08:24:02 +02:00
}
.content {
2019-08-30 09:25:00 +02:00
flex: 1 1 auto;
2019-08-20 08:24:02 +02:00
height: 100%;
background-color: var(--white);
margin:0;
}
2019-08-30 09:25:00 +02:00
.nav {
flex: 0 1 auto;
width: 300px;
height: 100%;
}
2019-08-20 08:24:02 +02:00
</style>