1
0
Fork 0
mirror of synced 2024-08-22 21:41:49 +12:00
budibase/packages/builder/src/BackendRoot.svelte

51 lines
1.1 KiB
Svelte
Raw Normal View History

2019-08-20 18:24:02 +12:00
<script>
2020-02-03 22:50:30 +13:00
import BackendNav from "./nav/BackendNav.svelte"
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"
2019-08-20 18:24:02 +12:00
2020-02-03 22:50:30 +13:00
import { store } from "./builderStore"
2019-08-20 18:24:02 +12:00
2020-02-03 22:50:30 +13:00
export let navWidth = "50px"
2019-08-20 18:24:02 +12:00
</script>
<div class="root">
2019-08-30 19:25:00 +12:00
<div class="nav">
<BackendNav />
</div>
2020-02-25 10:31:35 +13:00
<div class="content">
2020-02-03 22:50:30 +13:00
{#if $store.activeNav === 'database'}
<Database />
{:else if $store.activeNav === 'actions'}
<ActionsAndTriggers />
{:else if $store.activeNav === 'access levels'}
<AccessLevels />
2019-08-20 18:24:02 +12:00
{/if}
</div>
</div>
<style>
2020-02-03 22:50:30 +13:00
.root {
height: 100%;
display: flex;
}
.content {
flex: 1 1 auto;
height: 100%;
background-color: var(--white);
margin: 0;
2020-02-25 10:31:35 +13:00
overflow-y: auto;
overflow-x: hidden;
2020-02-03 22:50:30 +13:00
}
.nav {
2020-02-25 10:31:35 +13:00
overflow: auto;
2020-02-03 22:50:30 +13:00
flex: 0 1 auto;
width: 300px;
height: 100%;
}
</style>