From 78329ba685b9ce32048829828d0fee252aab68ec Mon Sep 17 00:00:00 2001 From: kevmodrome Date: Thu, 2 Apr 2020 16:29:09 +0200 Subject: [PATCH] wip: database and user access level pages to work with new routing --- .../components/database/DatabaseRoot.svelte | 99 --------------- .../[application]/backend/_layout.svelte | 14 +-- .../backend/accesslevels/index.svelte | 116 ++++++++++++++++++ .../backend/database/index.svelte | 25 ++-- .../src/pages/[application]/index.svelte | 2 +- 5 files changed, 133 insertions(+), 123 deletions(-) delete mode 100644 packages/builder/src/components/database/DatabaseRoot.svelte create mode 100644 packages/builder/src/pages/[application]/backend/accesslevels/index.svelte diff --git a/packages/builder/src/components/database/DatabaseRoot.svelte b/packages/builder/src/components/database/DatabaseRoot.svelte deleted file mode 100644 index 3489acb032..0000000000 --- a/packages/builder/src/components/database/DatabaseRoot.svelte +++ /dev/null @@ -1,99 +0,0 @@ - - - - {#if recordOpen} - - {/if} - {#if modelOpen} - - {/if} - {#if viewOpen} - - {/if} - {#if databaseOpen} - - {/if} - {#if deleteRecordOpen} - - {/if} - {#if userOpen} - - {/if} - - -
-
-
-
{breadcrumbs}
- {#if $backendUiStore.selectedDatabase.id} - { - selectedRecord = null - backendUiStore.actions.modals.show('RECORD') - }}> - Create new record - - {/if} -
- {#if $backendUiStore.selectedDatabase.id} - - {:else}Please select a database{/if} -
-
- - diff --git a/packages/builder/src/pages/[application]/backend/_layout.svelte b/packages/builder/src/pages/[application]/backend/_layout.svelte index 2e44ab88f1..61bbf80201 100644 --- a/packages/builder/src/pages/[application]/backend/_layout.svelte +++ b/packages/builder/src/pages/[application]/backend/_layout.svelte @@ -1,10 +1,9 @@ @@ -13,17 +12,10 @@
-
diff --git a/packages/builder/src/pages/[application]/backend/accesslevels/index.svelte b/packages/builder/src/pages/[application]/backend/accesslevels/index.svelte new file mode 100644 index 0000000000..68d708ab09 --- /dev/null +++ b/packages/builder/src/pages/[application]/backend/accesslevels/index.svelte @@ -0,0 +1,116 @@ + + +
+ + + Create New Access Level + + + + {#if $store.accessLevels} + + + + + + + + + {#each $store.accessLevels.levels as level} + + + + + + {/each} + +
NamePermissions +
{level.name}{getPermissionsString(level.permissions)} + onLevelEdit(level)}> + {@html getIcon('edit')} + + onLevelDelete(level)}> + {@html getIcon('trash')} + +
+ {:else}(no actions added){/if} + + + + + +
+ + diff --git a/packages/builder/src/pages/[application]/backend/database/index.svelte b/packages/builder/src/pages/[application]/backend/database/index.svelte index 2724e8045a..3578c503ed 100644 --- a/packages/builder/src/pages/[application]/backend/database/index.svelte +++ b/packages/builder/src/pages/[application]/backend/database/index.svelte @@ -1,13 +1,11 @@