2020-05-29 14:28:12 +02:00
|
|
|
<script>
|
2020-10-08 10:35:11 +02:00
|
|
|
import { store } from "builderStore"
|
2020-05-29 14:28:12 +02:00
|
|
|
import ComponentsHierarchy from "components/userInterface/ComponentsHierarchy.svelte"
|
|
|
|
import PageLayout from "components/userInterface/PageLayout.svelte"
|
|
|
|
import PagesList from "components/userInterface/PagesList.svelte"
|
2020-10-08 10:35:11 +02:00
|
|
|
import NewScreenModal from "components/userInterface/NewScreenModal.svelte"
|
2020-10-21 10:19:26 +02:00
|
|
|
import { Button, Spacer, Modal, Heading } from "@budibase/bbui"
|
2020-05-29 19:32:52 +02:00
|
|
|
|
2020-10-08 10:35:11 +02:00
|
|
|
let modal
|
2020-05-29 14:28:12 +02:00
|
|
|
</script>
|
|
|
|
|
2020-10-21 10:19:26 +02:00
|
|
|
<Heading small>Screens</Heading>
|
2020-05-29 19:31:47 +02:00
|
|
|
<PagesList />
|
2020-05-29 14:28:12 +02:00
|
|
|
|
2020-10-08 10:35:11 +02:00
|
|
|
<Button primary wide on:click={modal.show}>Create New Screen</Button>
|
2020-05-29 19:31:47 +02:00
|
|
|
<div class="nav-items-container">
|
2020-10-21 10:19:26 +02:00
|
|
|
<PageLayout layout={$store.pages[$store.currentPageName]} />
|
2020-05-29 19:31:47 +02:00
|
|
|
<ComponentsHierarchy screens={$store.screens} />
|
2020-05-29 14:28:12 +02:00
|
|
|
</div>
|
|
|
|
|
2020-10-08 10:35:11 +02:00
|
|
|
<Modal bind:this={modal}>
|
|
|
|
<NewScreenModal />
|
|
|
|
</Modal>
|