From f82a9546662efd610a7a5532b07958169d789c07 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Fri, 27 Mar 2020 16:58:32 +0000 Subject: [PATCH] formatting --- packages/builder/rollup.config.js | 6 +- packages/builder/src/PackageRoot.svelte | 17 +- .../src/accessLevels/AccessLevelsRoot.svelte | 21 ++- .../builder/src/builderStore/generate_css.js | 4 +- packages/builder/src/builderStore/index.js | 4 +- .../builder/src/builderStore/store/backend.js | 110 +++++++------ .../builder/src/builderStore/store/index.js | 39 ++--- .../builder/src/common/ConfirmDialog.svelte | 16 +- packages/builder/src/common/ErrorsBox.svelte | 9 +- .../builder/src/common/Icons/Preview.svelte | 17 +- .../builder/src/common/Icons/Settings.svelte | 9 +- packages/builder/src/common/Icons/index.js | 1 - packages/builder/src/common/Modal.svelte | 1 - packages/builder/src/common/Select.svelte | 5 +- .../builder/src/database/ActionsHeader.svelte | 4 +- .../builder/src/database/DatabaseRoot.svelte | 10 +- .../ModelDataTable/ModelDataTable.svelte | 16 +- .../ModelDataTable/TablePagination.svelte | 4 +- .../src/database/ModelDataTable/index.js | 2 +- .../modals/CreateEditModel.svelte | 2 +- .../modals/CreateEditRecord.svelte | 48 +++--- .../ModelDataTable/modals/CreateUser.svelte | 6 +- .../ModelDataTable/modals/DeleteRecord.svelte | 6 +- .../modals/RecordFieldControl.svelte | 41 +++-- .../database/ModelDataTable/modals/index.js | 12 +- .../builder/src/database/ModelView.svelte | 6 +- packages/builder/src/main.js | 2 +- packages/builder/src/nav/BackendNav.svelte | 7 +- packages/builder/src/nav/DatabasesList.svelte | 4 +- packages/builder/src/nav/NavItem.svelte | 4 +- .../src/nav/SchemaManagementDrawer.svelte | 12 +- packages/builder/src/nav/UsersList.svelte | 12 +- .../ComponentPropertiesPanel.svelte | 2 - .../ComponentSelectionList.svelte | 19 +-- .../ComponentsPaneSwitcher.svelte | 4 +- .../src/userInterface/LayoutEditor.svelte | 17 +- .../src/userInterface/NewScreen.svelte | 55 +++---- .../src/userInterface/PagesList.svelte | 2 +- .../userInterface/UserInterfaceRoot.svelte | 25 ++- packages/client/src/state/bbComponentApi.js | 9 +- packages/core/src/appInitialise/cloneApp.js | 2 +- .../core/src/appInitialise/initialiseData.js | 12 +- packages/core/src/common/compileCode.js | 11 +- packages/core/src/indexApi/buildIndex.js | 3 +- packages/core/src/indexing/allIds.js | 7 +- packages/core/src/indexing/initialiseIndex.js | 6 +- packages/core/src/indexing/read.js | 5 +- packages/core/src/recordApi/getNew.js | 2 +- .../core/src/recordApi/initialiseChildren.js | 19 +-- .../core/src/templateApi/canDeleteIndex.js | 48 +++--- .../core/src/templateApi/canDeleteRecord.js | 40 ++--- .../templateApi/deleteAllIndexFilesForNode.js | 10 +- .../templateApi/deleteAllRecordsForNode.js | 15 +- .../core/src/templateApi/diffHierarchy.js | 151 +++++++++++------- packages/core/src/templateApi/hierarchy.js | 14 +- packages/core/src/templateApi/index.js | 2 +- .../src/templateApi/initialiseNewIndex.js | 8 +- packages/core/src/templateApi/upgradeData.js | 137 ++++++++-------- packages/core/src/transactions/cleanup.js | 1 - packages/core/src/transactions/execute.js | 29 ++-- packages/core/src/transactions/retrieve.js | 9 +- .../core/src/transactions/setCleanupFunc.js | 2 +- .../src/transactions/transactionsCommon.js | 5 +- packages/core/test/specHelpers.js | 2 +- packages/core/test/upgradeDataSetup.js | 19 ++- .../src/Card/index.js | 1 - .../src/Common/ItemStore.js | 76 ++++----- .../src/DatePicker/DatePicker.svelte | 2 +- .../src/DatePicker/index.js | 4 +- .../src/Dialog/index.js | 2 +- .../src/IconButton/index.js | 4 +- .../src/List/ListItem.svelte | 2 +- .../src/Select/Select.svelte | 15 +- .../src/Select/index.js | 2 +- .../src/Slider/index.js | 2 +- .../src/Switch/index.js | 2 +- .../server/utilities/masterAppInternal.js | 2 +- 77 files changed, 629 insertions(+), 634 deletions(-) diff --git a/packages/builder/rollup.config.js b/packages/builder/rollup.config.js index 2ebde91183..9986e39fd5 100644 --- a/packages/builder/rollup.config.js +++ b/packages/builder/rollup.config.js @@ -107,7 +107,7 @@ const lodash_fp_exports = [ "findIndex", "compose", "get", - "tap" + "tap", ] const lodash_exports = [ @@ -164,7 +164,9 @@ export default { }), replace({ - "process.env.NODE_ENV": JSON.stringify(production ? "production" : "development") + "process.env.NODE_ENV": JSON.stringify( + production ? "production" : "development" + ), }), svelte({ diff --git a/packages/builder/src/PackageRoot.svelte b/packages/builder/src/PackageRoot.svelte index ab07f2bac1..f7a134ed9a 100644 --- a/packages/builder/src/PackageRoot.svelte +++ b/packages/builder/src/PackageRoot.svelte @@ -11,16 +11,15 @@ FRONTEND: "frontend", } - let selectedTab = TABS.BACKEND - + let selectedTab = TABS.BACKEND
-