From c96fefdba7df7bd41d634a33e97a982669d9c7c9 Mon Sep 17 00:00:00 2001 From: Dean Date: Mon, 6 Nov 2023 11:22:00 +0000 Subject: [PATCH] Consolidated all stores into stores/builder. Store refactoring and added store console debug flag --- packages/builder/src/api.js | 4 +- packages/builder/src/builder/dataBinding.js | 6 +-- .../AutomationBuilder.svelte | 2 +- .../FlowChart/ActionModal.svelte | 2 +- .../FlowChart/AutomationBlockTagline.svelte | 2 +- .../FlowChart/FlowChart.svelte | 2 +- .../FlowChart/FlowItem.svelte | 4 +- .../FlowChart/FlowItemHeader.svelte | 2 +- .../FlowChart/TestDataModal.svelte | 2 +- .../AutomationBuilder/TestPanel.svelte | 2 +- .../AutomationPanel/AutomationList.svelte | 2 +- .../CreateAutomationModal.svelte | 2 +- .../EditAutomationPopover.svelte | 2 +- .../UpdateAutomationModal.svelte | 2 +- .../SetupPanel/AutomationBlockSetup.svelte | 3 +- .../automation/SetupPanel/CronBuilder.svelte | 2 +- .../SetupPanel/QueryParamSelector.svelte | 2 +- .../SetupPanel/QuerySelector.svelte | 2 +- .../automation/SetupPanel/RowSelector.svelte | 2 +- .../SetupPanel/TableSelector.svelte | 2 +- .../Shared/CreateWebhookModal.svelte | 2 +- .../DataTable/RelationshipDataTable.svelte | 2 +- .../backend/DataTable/TableDataTable.svelte | 4 +- .../backend/DataTable/ViewDataTable.svelte | 2 +- .../backend/DataTable/ViewV2DataTable.svelte | 2 +- .../buttons/ExistingRelationshipButton.svelte | 2 +- .../buttons/ManageAccessButton.svelte | 2 +- .../backend/DataTable/cells/RoleCell.svelte | 2 +- .../components/backend/DataTable/formula.js | 2 +- .../DataTable/modals/CalculateModal.svelte | 2 +- .../DataTable/modals/CreateEditColumn.svelte | 2 +- .../DataTable/modals/CreateEditRow.svelte | 2 +- .../DataTable/modals/CreateEditUser.svelte | 3 +- .../backend/DataTable/modals/EditRoles.svelte | 2 +- .../DataTable/modals/FilterModal.svelte | 2 +- .../DataTable/modals/GroupByModal.svelte | 2 +- .../DataTable/modals/ManageAccessModal.svelte | 2 +- .../modals/grid/GridCreateViewModal.svelte | 2 +- .../modals/grid/GridUsersTableButton.svelte | 2 +- .../DatasourceNavigator.svelte | 4 +- .../DatasourceNavigator/icons/index.js | 2 +- .../modals/ImportRestQueriesModal.svelte | 2 +- .../modals/UpdateDatasourceModal.svelte | 2 +- .../popovers/EditDatasourcePopover.svelte | 2 +- .../popovers/EditQueryPopover.svelte | 2 +- .../Datasources/CreateEditRelationship.svelte | 2 +- .../CreateEditRelationshipModal.svelte | 2 +- .../tableSelectionStore.js | 2 +- .../TableNavigator/TableNavigator.svelte | 10 +++-- .../modals/CreateTableModal.svelte | 3 +- .../popovers/EditTablePopover.svelte | 3 +- .../popovers/EditViewPopover.svelte | 2 +- .../commandPalette/CommandPalette.svelte | 7 ++- .../common/LinkedRowSelector.svelte | 2 +- .../src/components/common/RoleSelect.svelte | 2 +- .../bindings/DrawerBindableInput.svelte | 2 +- .../src/components/deploy/AppActions.svelte | 2 +- .../CreateWebhookDeploymentModal.svelte | 2 +- .../src/components/deploy/DeleteModal.svelte | 2 +- .../src/components/deploy/RevertModal.svelte | 2 +- .../src/components/deploy/VersionModal.svelte | 2 +- .../design/ScreenDetailsModal.svelte | 2 +- .../actions/ChangeFormStep.svelte | 2 +- .../actions/ClearForm.svelte | 2 +- .../actions/DeleteRow.svelte | 2 +- .../actions/DuplicateRow.svelte | 3 +- .../actions/ExecuteQuery.svelte | 2 +- .../actions/ExportData.svelte | 4 +- .../actions/FetchRow.svelte | 2 +- .../actions/NavigateTo.svelte | 2 +- .../actions/OpenSidePanel.svelte | 4 +- .../actions/RefreshDataProvider.svelte | 2 +- .../actions/S3Upload.svelte | 4 +- .../ButtonActionEditor/actions/SaveRow.svelte | 3 +- .../actions/ScrollTo.svelte | 4 +- .../actions/TriggerAutomation.svelte | 2 +- .../actions/UpdateFieldValue.svelte | 4 +- .../actions/ValidateForm.svelte | 2 +- .../controls/ButtonActionEditor/index.js | 2 +- .../ButtonConfiguration.svelte | 2 +- .../settings/controls/ColorPicker.svelte | 2 +- .../controls/ColumnEditor/CellDrawer.svelte | 2 +- .../controls/ColumnEditor/ColumnEditor.svelte | 2 +- .../controls/DataProviderSelect.svelte | 4 +- .../DataSourceSelect/DataSourceSelect.svelte | 8 ++-- .../controls/EditComponentPopover.svelte | 2 +- .../FieldConfiguration.svelte | 2 +- .../FieldConfiguration/FieldSetting.svelte | 2 +- .../settings/controls/FieldSelect.svelte | 2 +- .../controls/FilterEditor/FilterEditor.svelte | 2 +- .../settings/controls/FormFieldSelect.svelte | 2 +- .../settings/controls/LayoutSelect.svelte | 2 +- .../settings/controls/MultiFieldSelect.svelte | 2 +- .../settings/controls/PropertyControl.svelte | 2 +- .../controls/RelationshipFilterEditor.svelte | 5 +-- .../controls/ResetFieldsButton.svelte | 4 +- .../settings/controls/RoleSelect.svelte | 2 +- .../controls/S3DataSourceSelect.svelte | 2 +- .../controls/SearchFieldSelect.svelte | 3 +- .../controls/SortableFieldSelect.svelte | 2 +- .../settings/controls/TableSelect.svelte | 2 +- .../design/settings/controls/URLSelect.svelte | 2 +- .../ValidationEditor/ValidationDrawer.svelte | 4 +- .../integration/AccessLevelSelect.svelte | 2 +- .../components/integration/QueryViewer.svelte | 2 +- .../integration/RestQueryViewer.svelte | 2 +- .../portal/onboarding/TourPopover.svelte | 2 +- .../portal/onboarding/TourWrap.svelte | 2 +- .../portal/onboarding/tourHandler.js | 2 +- .../src/components/portal/onboarding/tours.js | 2 +- .../components/start/CreateAppModal.svelte | 6 +-- .../components/start/ImportAppModal.svelte | 2 +- packages/builder/src/helpers/formFields.js | 2 +- packages/builder/src/helpers/searchFields.js | 2 +- .../_components/BuilderSidePanel.svelte | 4 +- .../_components/PreviewOverlay.svelte | 2 +- .../builder/app/[application]/_layout.svelte | 14 +++--- .../automation/[automationId]/_layout.svelte | 2 +- .../[application]/automation/_layout.svelte | 2 +- .../app/[application]/automation/index.svelte | 2 +- .../GoogleButton.svelte | 2 +- .../index.svelte | 2 +- .../stores/onGoogleAuth.js | 2 +- .../stores/onGoogleAuth.test.js | 4 +- .../app/[application]/data/_layout.svelte | 2 +- .../_components/EditDatasourceConfig.svelte | 2 +- .../Queries/RestImportQueriesModal.svelte | 2 +- .../_components/panels/Queries/index.svelte | 2 +- .../_components/panels/Relationships.svelte | 2 +- .../panels/SaveDatasourceButton.svelte | 2 +- .../_components/panels/Tables/Controls.svelte | 2 +- .../Tables/CreateExternalTableModal.svelte | 2 +- .../Variables/ViewDynamicVariables.svelte | 2 +- .../_components/panels/Variables/index.svelte | 2 +- .../datasource/[datasourceId]/_layout.svelte | 3 +- .../datasource/[datasourceId]/index.svelte | 2 +- .../data/datasource/bb_internal/index.svelte | 3 +- .../index.svelte | 4 +- .../data/datasource/index.svelte | 2 +- .../app/[application]/data/index.svelte | 2 +- .../builder/app/[application]/data/new.svelte | 2 +- .../data/query/[queryId]/_layout.svelte | 4 +- .../data/query/[queryId]/index.svelte | 4 +- .../app/[application]/data/query/index.svelte | 2 +- .../query/new/[datasourceId]/index.svelte | 3 +- .../data/table/[tableId]/_layout.svelte | 4 +- .../data/table/[tableId]/index.svelte | 3 +- .../app/[application]/data/table/index.svelte | 2 +- .../app/[application]/data/view/index.svelte | 2 +- .../data/view/v1/[viewName]/_layout.svelte | 4 +- .../data/view/v1/[viewName]/index.svelte | 3 +- .../data/view/v2/[viewId]/_layout.svelte | 4 +- .../Component/ComponentSettingsPanel.svelte | 4 +- .../Component/ComponentSettingsSection.svelte | 2 +- .../Component/ConditionalUIDrawer.svelte | 4 +- .../Component/ConditionalUISection.svelte | 2 +- .../Component/CustomStylesSection.svelte | 2 +- .../_components/Component/StyleSection.svelte | 2 +- .../_components/Navigation/LinksDrawer.svelte | 2 +- .../_components/Navigation/LinksEditor.svelte | 2 +- .../_components/Navigation/index.svelte | 2 +- .../_components/Screen/AppThemeSelect.svelte | 2 +- .../_components/Screen/GeneralPanel.svelte | 2 +- .../_components/Screen/ThemePanel.svelte | 2 +- .../_components/Screen/index.svelte | 2 +- .../[screenId]/[componentId]/_layout.svelte | 6 +-- .../new/_components/NewComponentPanel.svelte | 4 +- .../[screenId]/_components/AppPanel.svelte | 2 +- .../[screenId]/_components/AppPreview.svelte | 4 +- .../ComponentDropdownMenu.svelte | 2 +- .../ComponentList/ComponentKeyHandler.svelte | 4 +- .../ComponentList/ComponentTree.svelte | 4 +- .../ScreenslotDropdownMenu.svelte | 2 +- .../_components/ComponentList/dndStore.js | 4 +- .../_components/ComponentList/index.svelte | 2 +- .../_components/DevicePreviewSelect.svelte | 2 +- .../ScreenList/DropdownMenu.svelte | 4 +- .../ScreenList/RoleIndicator.svelte | 2 +- .../_components/ScreenList/index.svelte | 2 +- .../design/[screenId]/_layout.svelte | 2 +- .../design/[screenId]/index.svelte | 2 +- .../NewScreen/CreateScreenModal.svelte | 4 +- .../NewScreen/DatasourceModal.svelte | 2 +- .../NewScreen/ScreenRoleModal.svelte | 4 +- .../design/_components/NewScreen/index.svelte | 2 +- .../app/[application]/design/index.svelte | 2 +- .../app/[application]/design/new.svelte | 2 +- .../app/[application]/settings/_layout.svelte | 2 +- .../_components/HistoryDetailsPanel.svelte | 2 +- .../settings/automation-history/index.svelte | 2 +- .../_components/ActionsRenderer.svelte | 2 +- .../settings/backups/index.svelte | 2 +- .../app/[application]/settings/embed.svelte | 2 +- .../settings/exportImport.svelte | 2 +- .../settings/name-and-url.svelte | 2 +- .../app/[application]/settings/version.svelte | 2 +- .../pages/builder/portal/apps/index.svelte | 2 +- .../portal/apps/onboarding/index.svelte | 2 +- .../portal/users/groups/[groupId].svelte | 2 +- .../groups/_components/AppAddModal.svelte | 2 +- .../portal/users/users/[userId].svelte | 2 +- .../_components/AppRoleTableRenderer.svelte | 2 +- packages/builder/src/stores/backend/index.js | 32 -------------- .../stores/{frontend => builder}/BudiStore.js | 11 ++++- .../src/stores/{frontend => builder}/app.js | 0 .../{frontend => builder}/automations.js | 2 +- .../stores/{frontend => builder}/builder.js | 15 ++++--- .../{frontend => builder}/components/index.js | 8 +--- .../{frontend => builder}/components/utils.js | 0 .../stores/{frontend => builder}/database.js | 0 .../{backend => builder}/datasources.js | 0 .../{frontend => builder}/deployments.js | 0 .../src/stores/{backend => builder}/flags.js | 0 .../stores/{frontend => builder}/history.js | 0 .../src/stores/{frontend => builder}/index.js | 43 +++++++++++++++++-- .../{backend => builder}/integrations.js | 0 .../stores/{frontend => builder}/layouts.js | 2 +- .../{frontend => builder}/navigation.js | 2 +- .../{backend => builder}/permissions.js | 0 .../stores/{frontend => builder}/preview.js | 0 .../stores/{backend => builder}/queries.js | 0 .../src/stores/{backend => builder}/roles.js | 0 .../stores/{frontend => builder}/screens.js | 8 ++-- .../sortedIntegrations.js | 0 .../src/stores/{backend => builder}/tables.js | 0 .../{frontend => builder}/tests/app.test.js | 3 +- .../tests/builder.test.js | 10 ++--- .../stores/builder/tests/component.test.js | 27 ++++++++++++ .../tests/datasources.spec.js.disabled | 0 .../tests/fixtures/datasources.js | 0 .../tests/fixtures/index.js} | 12 +++--- .../tests/fixtures/queries.js | 0 .../tests/fixtures/roles.js | 0 .../tests/fixtures/tables.js | 0 .../tests/fixtures/views.js | 0 .../tests/history.test.js | 0 .../tests/navigation.test.js | 6 +-- .../tests/permissions.spec.js.disabled | 0 .../tests/queries.spec.js.disabled | 0 .../tests/roles.spec.js.disabled | 0 .../tests/screens.test.js | 13 ++++-- .../tests}/sortedIntegrations.test.js | 6 +-- .../tests/tables.spec.js.disabled | 0 .../src/stores/{frontend => builder}/theme.js | 0 .../src/stores/{frontend => builder}/users.js | 0 .../src/stores/{backend => builder}/views.js | 0 .../stores/{backend => builder}/viewsV2.js | 0 .../stores/{frontend => builder}/websocket.js | 4 +- 248 files changed, 377 insertions(+), 349 deletions(-) delete mode 100644 packages/builder/src/stores/backend/index.js rename packages/builder/src/stores/{frontend => builder}/BudiStore.js (68%) rename packages/builder/src/stores/{frontend => builder}/app.js (100%) rename packages/builder/src/stores/{frontend => builder}/automations.js (99%) rename packages/builder/src/stores/{frontend => builder}/builder.js (89%) rename packages/builder/src/stores/{frontend => builder}/components/index.js (99%) rename packages/builder/src/stores/{frontend => builder}/components/utils.js (100%) rename packages/builder/src/stores/{frontend => builder}/database.js (100%) rename packages/builder/src/stores/{backend => builder}/datasources.js (100%) rename packages/builder/src/stores/{frontend => builder}/deployments.js (100%) rename packages/builder/src/stores/{backend => builder}/flags.js (100%) rename packages/builder/src/stores/{frontend => builder}/history.js (100%) rename packages/builder/src/stores/{frontend => builder}/index.js (69%) rename packages/builder/src/stores/{backend => builder}/integrations.js (100%) rename packages/builder/src/stores/{frontend => builder}/layouts.js (97%) rename packages/builder/src/stores/{frontend => builder}/navigation.js (97%) rename packages/builder/src/stores/{backend => builder}/permissions.js (100%) rename packages/builder/src/stores/{frontend => builder}/preview.js (100%) rename packages/builder/src/stores/{backend => builder}/queries.js (100%) rename packages/builder/src/stores/{backend => builder}/roles.js (100%) rename packages/builder/src/stores/{frontend => builder}/screens.js (98%) rename packages/builder/src/stores/{backend => builder}/sortedIntegrations.js (100%) rename packages/builder/src/stores/{backend => builder}/tables.js (100%) rename packages/builder/src/stores/{frontend => builder}/tests/app.test.js (96%) rename packages/builder/src/stores/{frontend => builder}/tests/builder.test.js (95%) create mode 100644 packages/builder/src/stores/builder/tests/component.test.js rename packages/builder/src/stores/{backend => builder}/tests/datasources.spec.js.disabled (100%) rename packages/builder/src/stores/{backend => builder}/tests/fixtures/datasources.js (100%) rename packages/builder/src/stores/{frontend/tests/fixtures.js => builder/tests/fixtures/index.js} (95%) rename packages/builder/src/stores/{backend => builder}/tests/fixtures/queries.js (100%) rename packages/builder/src/stores/{backend => builder}/tests/fixtures/roles.js (100%) rename packages/builder/src/stores/{backend => builder}/tests/fixtures/tables.js (100%) rename packages/builder/src/stores/{backend => builder}/tests/fixtures/views.js (100%) rename packages/builder/src/stores/{frontend => builder}/tests/history.test.js (100%) rename packages/builder/src/stores/{frontend => builder}/tests/navigation.test.js (97%) rename packages/builder/src/stores/{backend => builder}/tests/permissions.spec.js.disabled (100%) rename packages/builder/src/stores/{backend => builder}/tests/queries.spec.js.disabled (100%) rename packages/builder/src/stores/{backend => builder}/tests/roles.spec.js.disabled (100%) rename packages/builder/src/stores/{frontend => builder}/tests/screens.test.js (98%) rename packages/builder/src/stores/{backend => builder/tests}/sortedIntegrations.test.js (92%) rename packages/builder/src/stores/{backend => builder}/tests/tables.spec.js.disabled (100%) rename packages/builder/src/stores/{frontend => builder}/theme.js (100%) rename packages/builder/src/stores/{frontend => builder}/users.js (100%) rename packages/builder/src/stores/{backend => builder}/views.js (100%) rename packages/builder/src/stores/{backend => builder}/viewsV2.js (100%) rename packages/builder/src/stores/{frontend => builder}/websocket.js (96%) diff --git a/packages/builder/src/api.js b/packages/builder/src/api.js index df18f4c17a..281d4a54e4 100644 --- a/packages/builder/src/api.js +++ b/packages/builder/src/api.js @@ -3,9 +3,9 @@ import { CookieUtils, Constants, } from "@budibase/frontend-core" -import { appStore } from "./stores/frontend" +import { appStore } from "stores/builder" import { get } from "svelte/store" -import { auth } from "./stores/portal" +import { auth } from "stores/portal" export const API = createAPIClient({ attachHeaders: headers => { diff --git a/packages/builder/src/builder/dataBinding.js b/packages/builder/src/builder/dataBinding.js index 1f33b64b8c..b87fb9f7e0 100644 --- a/packages/builder/src/builder/dataBinding.js +++ b/packages/builder/src/builder/dataBinding.js @@ -5,19 +5,17 @@ import { findComponent, findComponentPath, getComponentSettings, -} from "stores/frontend/components/utils" +} from "stores/builder/components/utils" import { currentAsset, componentStore, screenStore, appStore, layoutStore, -} from "stores/frontend" -import { queries as queriesStores, tables as tablesStore, roles as rolesStore, -} from "stores/backend" +} from "stores/builder" import { makePropSafe, isJSBinding, diff --git a/packages/builder/src/components/automation/AutomationBuilder/AutomationBuilder.svelte b/packages/builder/src/components/automation/AutomationBuilder/AutomationBuilder.svelte index 6ca3e65d5d..caeb33cb14 100644 --- a/packages/builder/src/components/automation/AutomationBuilder/AutomationBuilder.svelte +++ b/packages/builder/src/components/automation/AutomationBuilder/AutomationBuilder.svelte @@ -1,5 +1,5 @@ diff --git a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/ActionModal.svelte b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/ActionModal.svelte index f950d91746..3a57d3d6ce 100644 --- a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/ActionModal.svelte +++ b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/ActionModal.svelte @@ -9,7 +9,7 @@ Tags, Tag, } from "@budibase/bbui" - import { automationStore, selectedAutomation } from "stores/frontend" + import { automationStore, selectedAutomation } from "stores/builder" import { admin, licensing } from "stores/portal" import { externalActions } from "./ExternalActions" import { TriggerStepID, ActionStepID } from "constants/backend/automations" diff --git a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/AutomationBlockTagline.svelte b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/AutomationBlockTagline.svelte index c18368b1b1..8732623dcf 100644 --- a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/AutomationBlockTagline.svelte +++ b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/AutomationBlockTagline.svelte @@ -1,7 +1,7 @@ diff --git a/packages/builder/src/components/automation/AutomationPanel/AutomationList.svelte b/packages/builder/src/components/automation/AutomationPanel/AutomationList.svelte index 585445a03a..9d946fe55d 100644 --- a/packages/builder/src/components/automation/AutomationPanel/AutomationList.svelte +++ b/packages/builder/src/components/automation/AutomationPanel/AutomationList.svelte @@ -4,7 +4,7 @@ automationStore, selectedAutomation, userSelectedResourceMap, - } from "stores/frontend" + } from "stores/builder" import NavItem from "components/common/NavItem.svelte" import EditAutomationPopover from "./EditAutomationPopover.svelte" import { notifications } from "@budibase/bbui" diff --git a/packages/builder/src/components/automation/AutomationPanel/CreateAutomationModal.svelte b/packages/builder/src/components/automation/AutomationPanel/CreateAutomationModal.svelte index ab53ff66b9..180e7a52bb 100644 --- a/packages/builder/src/components/automation/AutomationPanel/CreateAutomationModal.svelte +++ b/packages/builder/src/components/automation/AutomationPanel/CreateAutomationModal.svelte @@ -1,5 +1,5 @@ diff --git a/packages/builder/src/components/design/settings/controls/ColumnEditor/CellDrawer.svelte b/packages/builder/src/components/design/settings/controls/ColumnEditor/CellDrawer.svelte index ea2ba4a923..f5167e3657 100644 --- a/packages/builder/src/components/design/settings/controls/ColumnEditor/CellDrawer.svelte +++ b/packages/builder/src/components/design/settings/controls/ColumnEditor/CellDrawer.svelte @@ -7,7 +7,7 @@ Layout, Label, } from "@budibase/bbui" - import { themeStore } from "stores/frontend" + import { themeStore } from "stores/builder" import DrawerBindableInput from "components/common/bindings/DrawerBindableInput.svelte" export let column diff --git a/packages/builder/src/components/design/settings/controls/ColumnEditor/ColumnEditor.svelte b/packages/builder/src/components/design/settings/controls/ColumnEditor/ColumnEditor.svelte index 42b7dc2b4b..0f75fa6870 100644 --- a/packages/builder/src/components/design/settings/controls/ColumnEditor/ColumnEditor.svelte +++ b/packages/builder/src/components/design/settings/controls/ColumnEditor/ColumnEditor.svelte @@ -7,7 +7,7 @@ getDatasourceForProvider, getSchemaForDatasource, } from "builder/dataBinding" - import { currentAsset } from "stores/frontend" + import { currentAsset } from "stores/builder" import { getFields } from "helpers/searchFields" export let componentInstance diff --git a/packages/builder/src/components/design/settings/controls/DataProviderSelect.svelte b/packages/builder/src/components/design/settings/controls/DataProviderSelect.svelte index 422199a1e0..464dfa98eb 100644 --- a/packages/builder/src/components/design/settings/controls/DataProviderSelect.svelte +++ b/packages/builder/src/components/design/settings/controls/DataProviderSelect.svelte @@ -1,8 +1,8 @@ diff --git a/packages/builder/src/pages/builder/app/[application]/automation/[automationId]/_layout.svelte b/packages/builder/src/pages/builder/app/[application]/automation/[automationId]/_layout.svelte index 0e48a83cb5..9d5f716e0e 100644 --- a/packages/builder/src/pages/builder/app/[application]/automation/[automationId]/_layout.svelte +++ b/packages/builder/src/pages/builder/app/[application]/automation/[automationId]/_layout.svelte @@ -1,5 +1,5 @@ diff --git a/packages/builder/src/pages/builder/app/[application]/data/view/v2/[viewId]/_layout.svelte b/packages/builder/src/pages/builder/app/[application]/data/view/v2/[viewId]/_layout.svelte index 1a7aee2a56..0cbad24d76 100644 --- a/packages/builder/src/pages/builder/app/[application]/data/view/v2/[viewId]/_layout.svelte +++ b/packages/builder/src/pages/builder/app/[application]/data/view/v2/[viewId]/_layout.svelte @@ -1,9 +1,9 @@ diff --git a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/AppPreview.svelte b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/AppPreview.svelte index 53b760a665..7ccc86a218 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/AppPreview.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/AppPreview.svelte @@ -10,7 +10,7 @@ navigationStore, selectedScreen, currentAsset, - } from "stores/frontend" + } from "stores/builder" import ConfirmDialog from "components/common/ConfirmDialog.svelte" import { ProgressCircle, @@ -24,7 +24,7 @@ import { findComponent, findComponentPath, - } from "stores/frontend/components/utils" + } from "stores/builder/components/utils" import { isActive, goto } from "@roxi/routify" let iframe diff --git a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/ComponentList/ComponentDropdownMenu.svelte b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/ComponentList/ComponentDropdownMenu.svelte index 62c6287e2d..da63eefcf3 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/ComponentList/ComponentDropdownMenu.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/ComponentList/ComponentDropdownMenu.svelte @@ -1,5 +1,5 @@ diff --git a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/ScreenList/DropdownMenu.svelte b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/ScreenList/DropdownMenu.svelte index 8cbc372051..10576af68b 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/ScreenList/DropdownMenu.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/ScreenList/DropdownMenu.svelte @@ -1,5 +1,5 @@ diff --git a/packages/builder/src/pages/builder/app/[application]/design/_components/NewScreen/CreateScreenModal.svelte b/packages/builder/src/pages/builder/app/[application]/design/_components/NewScreen/CreateScreenModal.svelte index 3897d9b139..d3b9db2cdf 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/_components/NewScreen/CreateScreenModal.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/_components/NewScreen/CreateScreenModal.svelte @@ -4,10 +4,10 @@ import ScreenRoleModal from "./ScreenRoleModal.svelte" import sanitizeUrl from "builder/store/screenTemplates/utils/sanitizeUrl" import { Modal, notifications } from "@budibase/bbui" - import { screenStore, navigationStore } from "stores/frontend" + import { screenStore, navigationStore } from "stores/builder" import { get } from "svelte/store" import getTemplates from "builder/store/screenTemplates" - import { tables } from "stores/backend" + import { tables } from "stores/builder" import { Roles } from "constants/backend" import { capitalise } from "helpers" import { goto } from "@roxi/routify" diff --git a/packages/builder/src/pages/builder/app/[application]/design/_components/NewScreen/DatasourceModal.svelte b/packages/builder/src/pages/builder/app/[application]/design/_components/NewScreen/DatasourceModal.svelte index b765deada1..3e77c7ab55 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/_components/NewScreen/DatasourceModal.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/_components/NewScreen/DatasourceModal.svelte @@ -1,6 +1,6 @@