diff --git a/packages/builder/src/components/common/Switcher.svelte b/packages/builder/src/components/common/Switcher.svelte
new file mode 100644
index 0000000000..cf23e39507
--- /dev/null
+++ b/packages/builder/src/components/common/Switcher.svelte
@@ -0,0 +1,74 @@
+
+
+
+
+
+
+ {#each tabs as tab}
+
+ {/each}
+
+
+
+
+ {#if selectedIndex === 0}
+
+ {:else if selectedIndex === 1}
+
+ {:else if selectedIndex === 2}
+
+ {:else if selectedIndex === 3}
+
+ {/if}
+
+
+
+
+
diff --git a/packages/builder/src/components/userInterface/ComponentSelectionList.svelte b/packages/builder/src/components/userInterface/ComponentSelectionList.svelte
index 0bf848e4a8..2a46e5d6f6 100644
--- a/packages/builder/src/components/userInterface/ComponentSelectionList.svelte
+++ b/packages/builder/src/components/userInterface/ComponentSelectionList.svelte
@@ -32,7 +32,7 @@
const onComponentChosen = component => {
store.addChildComponent(component._component)
- toggleTab()
+ toggleTab("Navigate")
}
diff --git a/packages/builder/src/components/userInterface/ComponentsPaneSwitcher.svelte b/packages/builder/src/components/userInterface/ComponentsPaneSwitcher.svelte
deleted file mode 100644
index de523cd7bf..0000000000
--- a/packages/builder/src/components/userInterface/ComponentsPaneSwitcher.svelte
+++ /dev/null
@@ -1,81 +0,0 @@
-
-
-
- {#if $store.currentFrontEndType === 'page' || $store.screens.length}
-
-
-
-
-
-
-
-
-
- {#if selected === PROPERTIES_TAB}
-
- {/if}
-
- {#if selected === COMPONENT_SELECTION_TAB}
-
- {/if}
-
-
- {/if}
-
-
-
-
diff --git a/packages/builder/src/components/userInterface/FrontendNavigatePane.svelte b/packages/builder/src/components/userInterface/FrontendNavigatePane.svelte
new file mode 100644
index 0000000000..8b4b8e1843
--- /dev/null
+++ b/packages/builder/src/components/userInterface/FrontendNavigatePane.svelte
@@ -0,0 +1,126 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/packages/builder/src/components/userInterface/ItemTab/Tab.svelte b/packages/builder/src/components/userInterface/ItemTab/Tab.svelte
index 80f1733cc1..f811a56670 100644
--- a/packages/builder/src/components/userInterface/ItemTab/Tab.svelte
+++ b/packages/builder/src/components/userInterface/ItemTab/Tab.svelte
@@ -3,7 +3,6 @@
const dispatch = createEventDispatcher()
import Item from "./Item.svelte"
- import { store } from "builderStore"
export let list
let category = list
diff --git a/packages/builder/src/pages/[application]/frontend/_layout.svelte b/packages/builder/src/pages/[application]/frontend/_layout.svelte
index c480a75bfa..deea52ce3e 100644
--- a/packages/builder/src/pages/[application]/frontend/_layout.svelte
+++ b/packages/builder/src/pages/[application]/frontend/_layout.svelte
@@ -2,18 +2,17 @@
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/AppPreview"
import PageView from "components/userInterface/PageView.svelte"
- import ComponentsPaneSwitcher from "components/userInterface/ComponentsPaneSwitcher.svelte"
+ import ComponentPropertiesPanel from "components/userInterface/ComponentPropertiesPanel.svelte"
+ import ComponentSelectionList from "components/userInterface/ComponentSelectionList.svelte"
+ import Switcher from "components/common/Switcher.svelte"
import ConfirmDialog from "components/common/ConfirmDialog.svelte"
import { last } from "lodash/fp"
import { AddIcon } from "components/common/Icons"
+ import FrontendNavigatePane from "components/userInterface/FrontendNavigatePane.svelte"
$: instances = $store.appInstances
@@ -27,13 +26,10 @@
}
})
- let newScreenPicker
+
let confirmDeleteDialog
let componentToDelete = ""
- const newScreen = () => {
- newScreenPicker.show()
- }
let settingsView
const settings = () => {
@@ -45,6 +41,8 @@
confirmDeleteDialog.show()
}
+ let leftNavSwitcher
+
const lastPartOfName = c => (c ? last(c.split("/")) : "")
@@ -52,54 +50,32 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ {#if $store.currentPageName && $store.currentPageName.length > 0}
+ {/if}
{#if $store.currentFrontEndType === 'screen' || $store.currentFrontEndType === 'page'}
-
+
{/if}
-
+