From 4d7666fea23a3cd61637650c9f0462340fac89d0 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 11 May 2022 13:10:05 +0100 Subject: [PATCH] Delete old design UI code --- .../_old/ComponentNavigationTree.svelte | 74 ------- .../design/_old/FrontendNavigatePane.svelte | 198 ------------------ .../src/components/design/_old/Layout.svelte | 36 ---- .../_old/NavigationSelectionModal.svelte | 93 -------- .../design/_old/NewLayoutModal.svelte | 20 -- .../design/_old/PathDropdownMenu.svelte | 82 -------- .../components/design/_old/PathTree.svelte | 59 ------ .../PropertiesPanel/PropertiesPanel.svelte | 63 ------ .../ScreenSettingsSection.svelte | 111 ---------- .../_old/[assetType]/[asset]/_fallback.svelte | 0 .../design/_old/[assetType]/_layout.svelte | 194 ----------------- .../design/_old/[assetType]/index.svelte | 59 ------ 12 files changed, 989 deletions(-) delete mode 100644 packages/builder/src/components/design/_old/ComponentNavigationTree.svelte delete mode 100644 packages/builder/src/components/design/_old/FrontendNavigatePane.svelte delete mode 100644 packages/builder/src/components/design/_old/Layout.svelte delete mode 100644 packages/builder/src/components/design/_old/NavigationSelectionModal.svelte delete mode 100644 packages/builder/src/components/design/_old/NewLayoutModal.svelte delete mode 100644 packages/builder/src/components/design/_old/PathDropdownMenu.svelte delete mode 100644 packages/builder/src/components/design/_old/PathTree.svelte delete mode 100644 packages/builder/src/components/design/_old/PropertiesPanel/PropertiesPanel.svelte delete mode 100644 packages/builder/src/components/design/_old/PropertiesPanel/ScreenSettingsSection.svelte delete mode 100644 packages/builder/src/components/design/_old/[assetType]/[asset]/_fallback.svelte delete mode 100644 packages/builder/src/components/design/_old/[assetType]/_layout.svelte delete mode 100644 packages/builder/src/components/design/_old/[assetType]/index.svelte diff --git a/packages/builder/src/components/design/_old/ComponentNavigationTree.svelte b/packages/builder/src/components/design/_old/ComponentNavigationTree.svelte deleted file mode 100644 index ee00e9ba98..0000000000 --- a/packages/builder/src/components/design/_old/ComponentNavigationTree.svelte +++ /dev/null @@ -1,74 +0,0 @@ - - -
- {#each paths as path, idx (path)} - 0} {path} route={routes[path]} /> - {/each} - {#if !paths.length}{/if} -
- - diff --git a/packages/builder/src/components/design/_old/FrontendNavigatePane.svelte b/packages/builder/src/components/design/_old/FrontendNavigatePane.svelte deleted file mode 100644 index 6e319f06a0..0000000000 --- a/packages/builder/src/components/design/_old/FrontendNavigatePane.svelte +++ /dev/null @@ -1,198 +0,0 @@ - - -
- - -
- -
-
- -
- - - - -
-
-
-
- -
-
- - diff --git a/packages/builder/src/components/design/_old/Layout.svelte b/packages/builder/src/components/design/_old/Layout.svelte deleted file mode 100644 index d3c89fc9e5..0000000000 --- a/packages/builder/src/components/design/_old/Layout.svelte +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - -{#if $store.selectedLayoutId === layout._id && layout.props?._children} - -{/if} diff --git a/packages/builder/src/components/design/_old/NavigationSelectionModal.svelte b/packages/builder/src/components/design/_old/NavigationSelectionModal.svelte deleted file mode 100644 index 52a8e91451..0000000000 --- a/packages/builder/src/components/design/_old/NavigationSelectionModal.svelte +++ /dev/null @@ -1,93 +0,0 @@ - - - (blankSelected ? chooseModal(1) : chooseModal(0))} - size="M" - onConfirm={() => { - save(createdScreens) - }} - disabled={!selectedNav} -> - Please select your preferred layout for the new application: - -
-
(selectedNav = "Left")} - class:unselected={selectedNav && selectedNav !== "Left"} - > -
-
-
-
Side Nav
-
-
(selectedNav = "Top")} - class:unselected={selectedNav && selectedNav !== "Top"} - > -
-
-
-
Top Nav
-
-
(selectedNav = "None")} - class:unselected={selectedNav && selectedNav !== "None"} - > -
-
No Nav
-
-
- - - diff --git a/packages/builder/src/components/design/_old/NewLayoutModal.svelte b/packages/builder/src/components/design/_old/NewLayoutModal.svelte deleted file mode 100644 index d7288fbe23..0000000000 --- a/packages/builder/src/components/design/_old/NewLayoutModal.svelte +++ /dev/null @@ -1,20 +0,0 @@ - - - - - diff --git a/packages/builder/src/components/design/_old/PathDropdownMenu.svelte b/packages/builder/src/components/design/_old/PathDropdownMenu.svelte deleted file mode 100644 index 6de656b6b5..0000000000 --- a/packages/builder/src/components/design/_old/PathDropdownMenu.svelte +++ /dev/null @@ -1,82 +0,0 @@ - - - -
- -
- - Delete all screens - -
- - - -
- Are you sure you want to delete all screens under the {path} route? -
-
The following screens will be deleted:
-
- {#each screens as screen} -
{screen.route}
- {/each} -
-
-
- - diff --git a/packages/builder/src/components/design/_old/PathTree.svelte b/packages/builder/src/components/design/_old/PathTree.svelte deleted file mode 100644 index 110338e733..0000000000 --- a/packages/builder/src/components/design/_old/PathTree.svelte +++ /dev/null @@ -1,59 +0,0 @@ - - -{#if !noSearchMatch} - - - - - {#if routeOpened}{/if} -{/if} diff --git a/packages/builder/src/components/design/_old/PropertiesPanel/PropertiesPanel.svelte b/packages/builder/src/components/design/_old/PropertiesPanel/PropertiesPanel.svelte deleted file mode 100644 index df91a87456..0000000000 --- a/packages/builder/src/components/design/_old/PropertiesPanel/PropertiesPanel.svelte +++ /dev/null @@ -1,63 +0,0 @@ - - - - -
- {#key componentInstance?._id} - - - - - - {/key} -
-
-
- - diff --git a/packages/builder/src/components/design/_old/PropertiesPanel/ScreenSettingsSection.svelte b/packages/builder/src/components/design/_old/PropertiesPanel/ScreenSettingsSection.svelte deleted file mode 100644 index c8371e66ab..0000000000 --- a/packages/builder/src/components/design/_old/PropertiesPanel/ScreenSettingsSection.svelte +++ /dev/null @@ -1,111 +0,0 @@ - - -{#if $store.currentView !== "component" && $currentAsset && $store.currentFrontEndType === FrontendTypes.SCREEN}{/if} diff --git a/packages/builder/src/components/design/_old/[assetType]/[asset]/_fallback.svelte b/packages/builder/src/components/design/_old/[assetType]/[asset]/_fallback.svelte deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/packages/builder/src/components/design/_old/[assetType]/_layout.svelte b/packages/builder/src/components/design/_old/[assetType]/_layout.svelte deleted file mode 100644 index 6132eaa32c..0000000000 --- a/packages/builder/src/components/design/_old/[assetType]/_layout.svelte +++ /dev/null @@ -1,194 +0,0 @@ - - - -
-
- -
- -
- - {#if $selectedComponent != null} -
- -
- {/if} -
- - - - - - diff --git a/packages/builder/src/components/design/_old/[assetType]/index.svelte b/packages/builder/src/components/design/_old/[assetType]/index.svelte deleted file mode 100644 index 444835de22..0000000000 --- a/packages/builder/src/components/design/_old/[assetType]/index.svelte +++ /dev/null @@ -1,59 +0,0 @@ - - -