From 85f4648f6faee0436a713c8e5736e7c37ffd0c17 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 9 Jan 2023 09:42:51 +0000 Subject: [PATCH] Move theme and API key into user profile dropdown instead of settings --- .../components/settings/APIKeyModal.svelte | 40 ++++++++++++ ...erInfoModal.svelte => ProfileModal.svelte} | 6 +- .../src/components/settings/ThemeModal.svelte | 16 +++++ .../src/pages/builder/apps/index.svelte | 4 +- .../src/pages/builder/portal/_layout.svelte | 41 +++++++++--- .../builder/portal/settings/_layout.svelte | 10 --- .../pages/builder/portal/settings/api.svelte | 64 ------------------- .../builder/portal/settings/index.svelte | 2 +- .../builder/portal/settings/theme.svelte | 37 ----------- 9 files changed, 93 insertions(+), 127 deletions(-) create mode 100644 packages/builder/src/components/settings/APIKeyModal.svelte rename packages/builder/src/components/settings/{UpdateUserInfoModal.svelte => ProfileModal.svelte} (89%) create mode 100644 packages/builder/src/components/settings/ThemeModal.svelte delete mode 100644 packages/builder/src/pages/builder/portal/settings/api.svelte delete mode 100644 packages/builder/src/pages/builder/portal/settings/theme.svelte diff --git a/packages/builder/src/components/settings/APIKeyModal.svelte b/packages/builder/src/components/settings/APIKeyModal.svelte new file mode 100644 index 0000000000..6fb2c88634 --- /dev/null +++ b/packages/builder/src/components/settings/APIKeyModal.svelte @@ -0,0 +1,40 @@ + + + + Your API key for accessing the Budibase public API: + + diff --git a/packages/builder/src/components/settings/UpdateUserInfoModal.svelte b/packages/builder/src/components/settings/ProfileModal.svelte similarity index 89% rename from packages/builder/src/components/settings/UpdateUserInfoModal.svelte rename to packages/builder/src/components/settings/ProfileModal.svelte index 5734f613ad..850bde2f35 100644 --- a/packages/builder/src/components/settings/UpdateUserInfoModal.svelte +++ b/packages/builder/src/components/settings/ProfileModal.svelte @@ -18,11 +18,7 @@ } - + Personalise the platform by adding your first name and last name. diff --git a/packages/builder/src/components/settings/ThemeModal.svelte b/packages/builder/src/components/settings/ThemeModal.svelte new file mode 100644 index 0000000000..fd7460327a --- /dev/null +++ b/packages/builder/src/components/settings/ThemeModal.svelte @@ -0,0 +1,16 @@ + + + + x.name} - getOptionValue={x => x.class} - /> - - - - -