From 237165dcd918bd2d6ea07978c228143092cf908e Mon Sep 17 00:00:00 2001 From: kevmodrome Date: Fri, 19 Jun 2020 09:14:03 +0200 Subject: [PATCH 01/54] Sets up tabbed modal for settings --- packages/builder/package.json | 2 +- .../src/components/settings/Link.svelte | 48 +++++++++ .../src/components/settings/Modal.svelte | 102 ++++++++++++++++++ .../settings/tabs/DangerZone.svelte | 1 + .../components/settings/tabs/General.svelte | 1 + .../settings/tabs/Integrations.svelte | 1 + .../settings/tabs/Permissions.svelte | 1 + .../src/components/settings/tabs/Users.svelte | 1 + .../src/components/settings/tabs/index.js | 5 + .../src/pages/[application]/_reset.svelte | 10 +- 10 files changed, 164 insertions(+), 8 deletions(-) create mode 100644 packages/builder/src/components/settings/Link.svelte create mode 100644 packages/builder/src/components/settings/Modal.svelte create mode 100644 packages/builder/src/components/settings/tabs/DangerZone.svelte create mode 100644 packages/builder/src/components/settings/tabs/General.svelte create mode 100644 packages/builder/src/components/settings/tabs/Integrations.svelte create mode 100644 packages/builder/src/components/settings/tabs/Permissions.svelte create mode 100644 packages/builder/src/components/settings/tabs/Users.svelte create mode 100644 packages/builder/src/components/settings/tabs/index.js diff --git a/packages/builder/package.json b/packages/builder/package.json index 8fe9ffd494..b5b71eab0a 100644 --- a/packages/builder/package.json +++ b/packages/builder/package.json @@ -39,7 +39,7 @@ }, "dependencies": { "@beyonk/svelte-notifications": "^2.0.3", - "@budibase/bbui": "^1.1.1", + "@budibase/bbui": "^1.5.0", "@budibase/client": "^0.0.32", "@nx-js/compiler-util": "^2.0.0", "codemirror": "^5.51.0", diff --git a/packages/builder/src/components/settings/Link.svelte b/packages/builder/src/components/settings/Link.svelte new file mode 100644 index 0000000000..fe2ec26752 --- /dev/null +++ b/packages/builder/src/components/settings/Link.svelte @@ -0,0 +1,48 @@ + + + + + + + diff --git a/packages/builder/src/components/settings/Modal.svelte b/packages/builder/src/components/settings/Modal.svelte new file mode 100644 index 0000000000..bc7898442f --- /dev/null +++ b/packages/builder/src/components/settings/Modal.svelte @@ -0,0 +1,102 @@ + + +
+
+
+ + + +

Settings

+
+ + + +
+
+ +
+
+ + diff --git a/packages/builder/src/components/settings/tabs/DangerZone.svelte b/packages/builder/src/components/settings/tabs/DangerZone.svelte new file mode 100644 index 0000000000..5766d97588 --- /dev/null +++ b/packages/builder/src/components/settings/tabs/DangerZone.svelte @@ -0,0 +1 @@ +Danger diff --git a/packages/builder/src/components/settings/tabs/General.svelte b/packages/builder/src/components/settings/tabs/General.svelte new file mode 100644 index 0000000000..7cc1079673 --- /dev/null +++ b/packages/builder/src/components/settings/tabs/General.svelte @@ -0,0 +1 @@ +General diff --git a/packages/builder/src/components/settings/tabs/Integrations.svelte b/packages/builder/src/components/settings/tabs/Integrations.svelte new file mode 100644 index 0000000000..9e932e2e89 --- /dev/null +++ b/packages/builder/src/components/settings/tabs/Integrations.svelte @@ -0,0 +1 @@ +Integrations diff --git a/packages/builder/src/components/settings/tabs/Permissions.svelte b/packages/builder/src/components/settings/tabs/Permissions.svelte new file mode 100644 index 0000000000..ca206fbdda --- /dev/null +++ b/packages/builder/src/components/settings/tabs/Permissions.svelte @@ -0,0 +1 @@ +Permissions diff --git a/packages/builder/src/components/settings/tabs/Users.svelte b/packages/builder/src/components/settings/tabs/Users.svelte new file mode 100644 index 0000000000..f3d929a074 --- /dev/null +++ b/packages/builder/src/components/settings/tabs/Users.svelte @@ -0,0 +1 @@ +Users diff --git a/packages/builder/src/components/settings/tabs/index.js b/packages/builder/src/components/settings/tabs/index.js new file mode 100644 index 0000000000..b723ca68d3 --- /dev/null +++ b/packages/builder/src/components/settings/tabs/index.js @@ -0,0 +1,5 @@ +export { default as General } from './General.svelte'; +export { default as Integrations } from './Integrations.svelte'; +export { default as Permissions } from './Permissions.svelte'; +export { default as Users } from './Users.svelte'; +export { default as DangerZone } from './DangerZone.svelte'; \ No newline at end of file diff --git a/packages/builder/src/pages/[application]/_reset.svelte b/packages/builder/src/pages/[application]/_reset.svelte index 4d2a708f1e..071eeabcd0 100644 --- a/packages/builder/src/pages/[application]/_reset.svelte +++ b/packages/builder/src/pages/[application]/_reset.svelte @@ -1,6 +1,7 @@ + +
+
+ +
+
+