diff --git a/packages/builder/src/components/userInterface/UserInterfaceRoot.svelte b/packages/builder/src/components/userInterface/UserInterfaceRoot.svelte
deleted file mode 100644
index 4f32c55d24..0000000000
--- a/packages/builder/src/components/userInterface/UserInterfaceRoot.svelte
+++ /dev/null
@@ -1,240 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- {#if $store.currentFrontEndType === 'screen' || $store.currentFrontEndType === 'page'}
-
-
-
- {/if}
-
-
-
-
-
-
- store.deleteComponent(componentToDelete)} />
-
-
diff --git a/packages/builder/src/pages/[application]/frontend/_layout.svelte b/packages/builder/src/pages/[application]/frontend/_layout.svelte
index bead97cca4..3cdc507521 100644
--- a/packages/builder/src/pages/[application]/frontend/_layout.svelte
+++ b/packages/builder/src/pages/[application]/frontend/_layout.svelte
@@ -2,6 +2,19 @@
import { store, backendUiStore } from "builderStore"
import { goto } from "@sveltech/routify"
import { onMount } from "svelte"
+ import ComponentsHierarchy from "components/userInterface/ComponentsHierarchy.svelte"
+ import ComponentsHierarchyChildren from "components/userInterface/ComponentsHierarchyChildren.svelte"
+ import PageLayout from "components/userInterface/PageLayout.svelte"
+ import PagesList from "components/userInterface/PagesList.svelte"
+ import IconButton from "components/common/IconButton.svelte"
+ import NewScreen from "components/userInterface/NewScreen.svelte"
+ import CurrentItemPreview from "components/userInterface/CurrentItemPreview.svelte"
+ import SettingsView from "components/userInterface/SettingsView.svelte"
+ import PageView from "components/userInterface/PageView.svelte"
+ import ComponentsPaneSwitcher from "components/userInterface/ComponentsPaneSwitcher.svelte"
+ import ConfirmDialog from "components/common/ConfirmDialog.svelte"
+ import { last } from "lodash/fp"
+ import { AddIcon } from "components/common/Icons"
$: instances = $store.appInstances
$: views = $store.hierarchy.indexes
@@ -17,6 +30,231 @@
await selectDatabase($store.appInstances[0])
}
})
+
+ let newScreenPicker
+ let confirmDeleteDialog
+ let componentToDelete = ""
+
+ const newScreen = () => {
+ newScreenPicker.show()
+ }
+
+ let settingsView
+ const settings = () => {
+ settingsView.show()
+ }
+
+ const confirmDeleteComponent = component => {
+ componentToDelete = component
+ confirmDeleteDialog.show()
+ }
+
+ const lastPartOfName = c => (c ? last(c.split("/")) : "")
+
+ $: console.log("Pages: ", $store.pages[$store.currentPageName])
+ $: console.log("Screens: ", $store.screens)
-
+
+
+
+
+
+
+
+
+ {#if $store.currentFrontEndType === 'screen' || $store.currentFrontEndType === 'page'}
+
+
+
+ {/if}
+
+
+
+
+
+
+ store.deleteComponent(componentToDelete)} />
+
+
diff --git a/packages/builder/src/pages/[application]/frontend/index.svelte b/packages/builder/src/pages/[application]/frontend/index.svelte
index 89b0a83720..e69de29bb2 100644
--- a/packages/builder/src/pages/[application]/frontend/index.svelte
+++ b/packages/builder/src/pages/[application]/frontend/index.svelte
@@ -1,5 +0,0 @@
-
-
-