From 7cd387527cac22e127fc0dd769ab0c8f64096e37 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 25 Sep 2020 13:11:57 +0100 Subject: [PATCH] Rename backend components file structure and standardise no table empty state --- .../DataTable/AttachmentList.svelte | 0 .../DataTable/LinkedRecord.svelte | 0 .../DataTable/ModelDataTable.svelte | 0 .../DataTable/Table.svelte | 0 .../DataTable/TablePagination.svelte | 0 .../DataTable/ViewDataTable.svelte | 0 .../{database => backend}/DataTable/api.js | 0 .../{database => backend}/DataTable/index.js | 0 .../DataTable/modals/CreateEditColumn.svelte | 4 ++-- .../DataTable/modals/CreateEditRecord.svelte | 4 ++-- .../modals/RecordFieldControl.svelte | 0 .../DataTable/modals/index.js | 0 .../DataTable/popovers/Calculate.svelte | 4 ++-- .../DataTable/popovers/Column.svelte | 0 .../DataTable/popovers/ColumnHeader.svelte | 0 .../DataTable/popovers/EditRow.svelte | 0 .../DataTable/popovers/Filter.svelte | 4 ++-- .../DataTable/popovers/GroupBy.svelte | 4 ++-- .../DataTable/popovers/Row.svelte | 0 .../DataTable/popovers/View.svelte | 4 ++-- .../ModelNavigator/CreateTable.svelte | 4 ++-- .../ModelNavigator/EditTable.svelte | 4 ++-- .../ModelNavigator/EditView.svelte | 4 ++-- .../ModelNavigator/ListItem.svelte | 0 .../ModelNavigator/ModelNavigator.svelte | 5 +++-- .../builder/src/components/nav/NavItem.svelte | 20 ------------------- .../[application]/backend/_layout.svelte | 4 ++-- .../model/[selectedModel]/index.svelte | 11 +++++----- .../backend/model/_layout.svelte | 9 +-------- .../[application]/backend/model/index.svelte | 10 +++++++++- .../backend/view/[selectedView]/index.svelte | 6 +++--- 31 files changed, 42 insertions(+), 59 deletions(-) rename packages/builder/src/components/{database => backend}/DataTable/AttachmentList.svelte (100%) rename packages/builder/src/components/{database => backend}/DataTable/LinkedRecord.svelte (100%) rename packages/builder/src/components/{database => backend}/DataTable/ModelDataTable.svelte (100%) rename packages/builder/src/components/{database => backend}/DataTable/Table.svelte (100%) rename packages/builder/src/components/{database => backend}/DataTable/TablePagination.svelte (100%) rename packages/builder/src/components/{database => backend}/DataTable/ViewDataTable.svelte (100%) rename packages/builder/src/components/{database => backend}/DataTable/api.js (100%) rename packages/builder/src/components/{database => backend}/DataTable/index.js (100%) rename packages/builder/src/components/{database => backend}/DataTable/modals/CreateEditColumn.svelte (99%) rename packages/builder/src/components/{database => backend}/DataTable/modals/CreateEditRecord.svelte (98%) rename packages/builder/src/components/{database => backend}/DataTable/modals/RecordFieldControl.svelte (100%) rename packages/builder/src/components/{database => backend}/DataTable/modals/index.js (100%) rename packages/builder/src/components/{database => backend}/DataTable/popovers/Calculate.svelte (98%) rename packages/builder/src/components/{database => backend}/DataTable/popovers/Column.svelte (100%) rename packages/builder/src/components/{database => backend}/DataTable/popovers/ColumnHeader.svelte (100%) rename packages/builder/src/components/{database => backend}/DataTable/popovers/EditRow.svelte (100%) rename packages/builder/src/components/{database => backend}/DataTable/popovers/Filter.svelte (99%) rename packages/builder/src/components/{database => backend}/DataTable/popovers/GroupBy.svelte (97%) rename packages/builder/src/components/{database => backend}/DataTable/popovers/Row.svelte (100%) rename packages/builder/src/components/{database => backend}/DataTable/popovers/View.svelte (97%) rename packages/builder/src/components/{nav => backend}/ModelNavigator/CreateTable.svelte (97%) rename packages/builder/src/components/{nav => backend}/ModelNavigator/EditTable.svelte (98%) rename packages/builder/src/components/{nav => backend}/ModelNavigator/EditView.svelte (98%) rename packages/builder/src/components/{nav => backend}/ModelNavigator/ListItem.svelte (100%) rename packages/builder/src/components/{nav => backend}/ModelNavigator/ModelNavigator.svelte (97%) delete mode 100644 packages/builder/src/components/nav/NavItem.svelte diff --git a/packages/builder/src/components/database/DataTable/AttachmentList.svelte b/packages/builder/src/components/backend/DataTable/AttachmentList.svelte similarity index 100% rename from packages/builder/src/components/database/DataTable/AttachmentList.svelte rename to packages/builder/src/components/backend/DataTable/AttachmentList.svelte diff --git a/packages/builder/src/components/database/DataTable/LinkedRecord.svelte b/packages/builder/src/components/backend/DataTable/LinkedRecord.svelte similarity index 100% rename from packages/builder/src/components/database/DataTable/LinkedRecord.svelte rename to packages/builder/src/components/backend/DataTable/LinkedRecord.svelte diff --git a/packages/builder/src/components/database/DataTable/ModelDataTable.svelte b/packages/builder/src/components/backend/DataTable/ModelDataTable.svelte similarity index 100% rename from packages/builder/src/components/database/DataTable/ModelDataTable.svelte rename to packages/builder/src/components/backend/DataTable/ModelDataTable.svelte diff --git a/packages/builder/src/components/database/DataTable/Table.svelte b/packages/builder/src/components/backend/DataTable/Table.svelte similarity index 100% rename from packages/builder/src/components/database/DataTable/Table.svelte rename to packages/builder/src/components/backend/DataTable/Table.svelte diff --git a/packages/builder/src/components/database/DataTable/TablePagination.svelte b/packages/builder/src/components/backend/DataTable/TablePagination.svelte similarity index 100% rename from packages/builder/src/components/database/DataTable/TablePagination.svelte rename to packages/builder/src/components/backend/DataTable/TablePagination.svelte diff --git a/packages/builder/src/components/database/DataTable/ViewDataTable.svelte b/packages/builder/src/components/backend/DataTable/ViewDataTable.svelte similarity index 100% rename from packages/builder/src/components/database/DataTable/ViewDataTable.svelte rename to packages/builder/src/components/backend/DataTable/ViewDataTable.svelte diff --git a/packages/builder/src/components/database/DataTable/api.js b/packages/builder/src/components/backend/DataTable/api.js similarity index 100% rename from packages/builder/src/components/database/DataTable/api.js rename to packages/builder/src/components/backend/DataTable/api.js diff --git a/packages/builder/src/components/database/DataTable/index.js b/packages/builder/src/components/backend/DataTable/index.js similarity index 100% rename from packages/builder/src/components/database/DataTable/index.js rename to packages/builder/src/components/backend/DataTable/index.js diff --git a/packages/builder/src/components/database/DataTable/modals/CreateEditColumn.svelte b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte similarity index 99% rename from packages/builder/src/components/database/DataTable/modals/CreateEditColumn.svelte rename to packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte index cb553623b9..a6a1bff953 100644 --- a/packages/builder/src/components/database/DataTable/modals/CreateEditColumn.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte @@ -52,7 +52,7 @@ } -
+
-
+
Create Table
diff --git a/packages/builder/src/pages/[application]/backend/_layout.svelte b/packages/builder/src/pages/[application]/backend/_layout.svelte index 8dae59d113..fdea444e44 100644 --- a/packages/builder/src/pages/[application]/backend/_layout.svelte +++ b/packages/builder/src/pages/[application]/backend/_layout.svelte @@ -1,8 +1,8 @@ diff --git a/packages/builder/src/pages/[application]/backend/model/[selectedModel]/index.svelte b/packages/builder/src/pages/[application]/backend/model/[selectedModel]/index.svelte index 277b3877e9..30f252b78d 100644 --- a/packages/builder/src/pages/[application]/backend/model/[selectedModel]/index.svelte +++ b/packages/builder/src/pages/[application]/backend/model/[selectedModel]/index.svelte @@ -1,11 +1,11 @@
-
- -
+
diff --git a/packages/builder/src/pages/[application]/backend/model/index.svelte b/packages/builder/src/pages/[application]/backend/model/index.svelte index 101655ddb9..255c92ff26 100644 --- a/packages/builder/src/pages/[application]/backend/model/index.svelte +++ b/packages/builder/src/pages/[application]/backend/model/index.svelte @@ -22,5 +22,13 @@ {#if $backendUiStore.models.length === 0} - Please create a table + Create your first table to start building {:else}Please select a table{/if} + + diff --git a/packages/builder/src/pages/[application]/backend/view/[selectedView]/index.svelte b/packages/builder/src/pages/[application]/backend/view/[selectedView]/index.svelte index 55044286e3..2aedd4fe3b 100644 --- a/packages/builder/src/pages/[application]/backend/view/[selectedView]/index.svelte +++ b/packages/builder/src/pages/[application]/backend/view/[selectedView]/index.svelte @@ -1,11 +1,11 @@