From d8f8ade898dfec604553ad85275babb8532b2c0e Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Fri, 14 Aug 2020 14:21:55 +0100 Subject: [PATCH 01/19] removed PageView.svelte --- .../components/userInterface/PageView.svelte | 65 ------------------- .../userInterface/UserInterfaceRoot.svelte | 1 - .../[application]/frontend/_layout.svelte | 1 - 3 files changed, 67 deletions(-) delete mode 100644 packages/builder/src/components/userInterface/PageView.svelte diff --git a/packages/builder/src/components/userInterface/PageView.svelte b/packages/builder/src/components/userInterface/PageView.svelte deleted file mode 100644 index d60a4082de..0000000000 --- a/packages/builder/src/components/userInterface/PageView.svelte +++ /dev/null @@ -1,65 +0,0 @@ - - -
- -

{$store.currentPageName}

- -
- -
- The title of your page, displayed in the bowser tab -
- v.name} /> - -
- The component that will be loaded into the body of the page -
-
- - - -
- - diff --git a/packages/builder/src/components/userInterface/UserInterfaceRoot.svelte b/packages/builder/src/components/userInterface/UserInterfaceRoot.svelte index d5188d8818..273f6202d2 100644 --- a/packages/builder/src/components/userInterface/UserInterfaceRoot.svelte +++ b/packages/builder/src/components/userInterface/UserInterfaceRoot.svelte @@ -8,7 +8,6 @@ import NewScreen from "./NewScreen.svelte" import CurrentItemPreview from "./CurrentItemPreview.svelte" import SettingsView from "./SettingsView.svelte" - import PageView from "./PageView.svelte" import ComponentsPaneSwitcher from "./ComponentsPaneSwitcher.svelte" import ConfirmDialog from "components/common/ConfirmDialog.svelte" import { last } from "lodash/fp" diff --git a/packages/builder/src/pages/[application]/frontend/_layout.svelte b/packages/builder/src/pages/[application]/frontend/_layout.svelte index d0569fc7c8..7f330ad09b 100644 --- a/packages/builder/src/pages/[application]/frontend/_layout.svelte +++ b/packages/builder/src/pages/[application]/frontend/_layout.svelte @@ -5,7 +5,6 @@ import ComponentsHierarchyChildren from "components/userInterface/ComponentsHierarchyChildren.svelte" import IconButton from "components/common/IconButton.svelte" import CurrentItemPreview from "components/userInterface/AppPreview" - import PageView from "components/userInterface/PageView.svelte" import ComponentPropertiesPanel from "components/userInterface/ComponentPropertiesPanel.svelte" import ComponentSelectionList from "components/userInterface/ComponentSelectionList.svelte" import Switcher from "components/common/Switcher.svelte" From 159c665ca50810ffe4d4d7b8c7b56dff7740ba20 Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Fri, 14 Aug 2020 14:24:14 +0100 Subject: [PATCH 02/19] removed Dropdown.svelte --- .../src/components/common/Dropdown.svelte | 45 ------------------- .../modals/CreateEditColumn.svelte | 1 - .../modals/CreateEditView.svelte | 1 - .../nav/ModelSetupNav/ModelFieldEditor.svelte | 1 - .../EventsEditor/EventsEditor.svelte | 1 - .../userInterface/PropControl.svelte | 1 - .../components/userInterface/PropsView.svelte | 1 - 7 files changed, 51 deletions(-) delete mode 100644 packages/builder/src/components/common/Dropdown.svelte diff --git a/packages/builder/src/components/common/Dropdown.svelte b/packages/builder/src/components/common/Dropdown.svelte deleted file mode 100644 index 76e0665692..0000000000 --- a/packages/builder/src/components/common/Dropdown.svelte +++ /dev/null @@ -1,45 +0,0 @@ - - -
- -
- {#if multiple} - - {:else} - - {/if} -
-
diff --git a/packages/builder/src/components/database/ModelDataTable/modals/CreateEditColumn.svelte b/packages/builder/src/components/database/ModelDataTable/modals/CreateEditColumn.svelte index 4a852546fa..39e7b2e3f9 100644 --- a/packages/builder/src/components/database/ModelDataTable/modals/CreateEditColumn.svelte +++ b/packages/builder/src/components/database/ModelDataTable/modals/CreateEditColumn.svelte @@ -5,7 +5,6 @@ import { store, backendUiStore } from "builderStore" import { FIELDS } from "constants/backend" import { notifier } from "builderStore/store/notifications" - import Dropdown from "components/common/Dropdown.svelte" import Textbox from "components/common/Textbox.svelte" import ButtonGroup from "components/common/ButtonGroup.svelte" import NumberBox from "components/common/NumberBox.svelte" diff --git a/packages/builder/src/components/database/ModelDataTable/modals/CreateEditView.svelte b/packages/builder/src/components/database/ModelDataTable/modals/CreateEditView.svelte index c7d3ec8af0..62620e88a6 100644 --- a/packages/builder/src/components/database/ModelDataTable/modals/CreateEditView.svelte +++ b/packages/builder/src/components/database/ModelDataTable/modals/CreateEditView.svelte @@ -2,7 +2,6 @@ import Textbox from "components/common/Textbox.svelte" import CodeArea from "components/common/CodeArea.svelte" import Button from "components/common/Button.svelte" - import Dropdown from "components/common/Dropdown.svelte" import { store, backendUiStore } from "builderStore" import { filter, some, map, compose } from "lodash/fp" import ErrorsBox from "components/common/ErrorsBox.svelte" diff --git a/packages/builder/src/components/nav/ModelSetupNav/ModelFieldEditor.svelte b/packages/builder/src/components/nav/ModelSetupNav/ModelFieldEditor.svelte index d57fc0784e..3be0411447 100644 --- a/packages/builder/src/components/nav/ModelSetupNav/ModelFieldEditor.svelte +++ b/packages/builder/src/components/nav/ModelSetupNav/ModelFieldEditor.svelte @@ -1,7 +1,6 @@ - -
- -
    -
  • - -
  • -
  • - -
  • -
  • - -
  • -
- -
- -
-
- - From 71f23221d9cc0eef0983198116d1beb187fe762f Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Fri, 14 Aug 2020 14:36:51 +0100 Subject: [PATCH 04/19] removed CreateEditView (not used) --- .../modals/CreateEditView.svelte | 126 ------------------ .../database/ModelDataTable/modals/index.js | 1 - 2 files changed, 127 deletions(-) delete mode 100644 packages/builder/src/components/database/ModelDataTable/modals/CreateEditView.svelte diff --git a/packages/builder/src/components/database/ModelDataTable/modals/CreateEditView.svelte b/packages/builder/src/components/database/ModelDataTable/modals/CreateEditView.svelte deleted file mode 100644 index 62620e88a6..0000000000 --- a/packages/builder/src/components/database/ModelDataTable/modals/CreateEditView.svelte +++ /dev/null @@ -1,126 +0,0 @@ - - -
- -

Create / Edit View

-
-
- {#if $store.errors && $store.errors.length > 0} - - {/if} -
-
-
- -
-
-
- {#each Object.values(SNIPPET_EDITORS) as snippetType} - (currentSnippetEditor = snippetType)}> - {snippetType} - - {/each} - {#if currentSnippetEditor === SNIPPET_EDITORS.MAP} - - {:else if currentSnippetEditor === SNIPPET_EDITORS.FILTER} - - {:else if currentSnippetEditor === SNIPPET_EDITORS.REDUCE} - - {/if} -
-
-
-
- Delete -
- Save -
- - - diff --git a/packages/builder/src/components/database/ModelDataTable/modals/index.js b/packages/builder/src/components/database/ModelDataTable/modals/index.js index bb49df8746..6bd9691228 100644 --- a/packages/builder/src/components/database/ModelDataTable/modals/index.js +++ b/packages/builder/src/components/database/ModelDataTable/modals/index.js @@ -1,4 +1,3 @@ export { default as DeleteRecordModal } from "./DeleteRecord.svelte" export { default as CreateEditRecordModal } from "./CreateEditRecord.svelte" -export { default as CreateEditViewModal } from "./CreateEditView.svelte" export { default as CreateUserModal } from "./CreateUser.svelte" From b12cc7961e676c2f83a851b175f10917be71395b Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Fri, 14 Aug 2020 14:37:05 +0100 Subject: [PATCH 05/19] removed HierarchyRow (not used) --- .../src/components/nav/HierarchyRow.svelte | 45 ------------------- 1 file changed, 45 deletions(-) delete mode 100644 packages/builder/src/components/nav/HierarchyRow.svelte diff --git a/packages/builder/src/components/nav/HierarchyRow.svelte b/packages/builder/src/components/nav/HierarchyRow.svelte deleted file mode 100644 index 3baacd208e..0000000000 --- a/packages/builder/src/components/nav/HierarchyRow.svelte +++ /dev/null @@ -1,45 +0,0 @@ - - -
-
onSelect(node)} - class="budibase__nav-item hierarchy-item" - class:capitalized={type === 'model'} - class:selected={$backendUiStore.selectedView === `all_${node._id}`}> - - {node.name} -
-
- - From c4e1242dd9ca6b4ed06dfb7678483b68989f26f4 Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Fri, 14 Aug 2020 14:37:40 +0100 Subject: [PATCH 06/19] removed Textbox (not used) --- .../src/components/common/Textbox.svelte | 33 ------------------- .../modals/CreateEditColumn.svelte | 1 - .../nav/ModelSetupNav/ModelFieldEditor.svelte | 1 - .../EventsEditor/EventsEditor.svelte | 1 - .../components/userInterface/NewScreen.svelte | 1 - .../userInterface/PropControl.svelte | 1 - .../components/userInterface/PropsView.svelte | 1 - 7 files changed, 39 deletions(-) delete mode 100644 packages/builder/src/components/common/Textbox.svelte diff --git a/packages/builder/src/components/common/Textbox.svelte b/packages/builder/src/components/common/Textbox.svelte deleted file mode 100644 index 5249bf731a..0000000000 --- a/packages/builder/src/components/common/Textbox.svelte +++ /dev/null @@ -1,33 +0,0 @@ - - -
- -
- -
- {#if infoText} -
{infoText}
- {/if} -
- - diff --git a/packages/builder/src/components/database/ModelDataTable/modals/CreateEditColumn.svelte b/packages/builder/src/components/database/ModelDataTable/modals/CreateEditColumn.svelte index 39e7b2e3f9..b8eca01aad 100644 --- a/packages/builder/src/components/database/ModelDataTable/modals/CreateEditColumn.svelte +++ b/packages/builder/src/components/database/ModelDataTable/modals/CreateEditColumn.svelte @@ -5,7 +5,6 @@ import { store, backendUiStore } from "builderStore" import { FIELDS } from "constants/backend" import { notifier } from "builderStore/store/notifications" - import Textbox from "components/common/Textbox.svelte" import ButtonGroup from "components/common/ButtonGroup.svelte" import NumberBox from "components/common/NumberBox.svelte" import ValuesList from "components/common/ValuesList.svelte" diff --git a/packages/builder/src/components/nav/ModelSetupNav/ModelFieldEditor.svelte b/packages/builder/src/components/nav/ModelSetupNav/ModelFieldEditor.svelte index 3be0411447..e1436c7e63 100644 --- a/packages/builder/src/components/nav/ModelSetupNav/ModelFieldEditor.svelte +++ b/packages/builder/src/components/nav/ModelSetupNav/ModelFieldEditor.svelte @@ -1,7 +1,6 @@ - -
-
- -
-

Code

-
- -
- -

- Use the code box below to control how this component is displayed, with - javascript. -

- -
-
- function(render, context, state, route) {'{'} -
-
-