From 39ef15b719b12b06ebe9e6d5b9f3578389e93c2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Tue, 4 May 2021 16:05:53 +0200 Subject: [PATCH 01/28] allow navigation to other URLs than /builder --- hosting/envoy.dev.yaml.hbs | 6 +-- packages/builder/index.html | 2 +- packages/builder/src/pages/index.svelte | 1 + .../builder/src/pages/portal/_layout.svelte | 1 + .../builder/src/pages/portal/index.svelte | 1 + packages/builder/vite.config.js | 2 +- packages/server/yarn.lock | 53 +------------------ 7 files changed, 7 insertions(+), 59 deletions(-) create mode 100644 packages/builder/src/pages/index.svelte create mode 100644 packages/builder/src/pages/portal/_layout.svelte create mode 100644 packages/builder/src/pages/portal/index.svelte diff --git a/hosting/envoy.dev.yaml.hbs b/hosting/envoy.dev.yaml.hbs index a4e2a97118..9c924b995b 100644 --- a/hosting/envoy.dev.yaml.hbs +++ b/hosting/envoy.dev.yaml.hbs @@ -38,7 +38,7 @@ static_resources: route: cluster: server-dev - - match: { prefix: "/builder/" } + - match: { prefix: "/" } route: cluster: builder-dev @@ -46,10 +46,6 @@ static_resources: route: cluster: builder-dev prefix_rewrite: "/builder/" - - # special case in dev to redirect no path to builder - - match: { path: "/" } - redirect: { path_redirect: "/builder/" } # minio is on the default route because this works # best, minio + AWS SDK doesn't handle path proxy diff --git a/packages/builder/index.html b/packages/builder/index.html index d6f19a2d43..de8f8a6beb 100644 --- a/packages/builder/index.html +++ b/packages/builder/index.html @@ -3,7 +3,7 @@ - Budibase Builder + Budibase diff --git a/packages/builder/src/pages/index.svelte b/packages/builder/src/pages/index.svelte new file mode 100644 index 0000000000..bb0361f273 --- /dev/null +++ b/packages/builder/src/pages/index.svelte @@ -0,0 +1 @@ +Index route diff --git a/packages/builder/src/pages/portal/_layout.svelte b/packages/builder/src/pages/portal/_layout.svelte new file mode 100644 index 0000000000..bf7e89904e --- /dev/null +++ b/packages/builder/src/pages/portal/_layout.svelte @@ -0,0 +1 @@ +asdasd diff --git a/packages/builder/src/pages/portal/index.svelte b/packages/builder/src/pages/portal/index.svelte new file mode 100644 index 0000000000..f672f3e491 --- /dev/null +++ b/packages/builder/src/pages/portal/index.svelte @@ -0,0 +1 @@ +Top top! diff --git a/packages/builder/vite.config.js b/packages/builder/vite.config.js index db02790ffd..b67aae0a2e 100644 --- a/packages/builder/vite.config.js +++ b/packages/builder/vite.config.js @@ -6,7 +6,7 @@ import path from "path" export default ({ mode }) => { const isProduction = mode === "production" return { - base: "/builder/", + base: "/", build: { minify: isProduction, outDir: "../server/builder", diff --git a/packages/server/yarn.lock b/packages/server/yarn.lock index 61bb1aac1d..da88ffcdf5 100644 --- a/packages/server/yarn.lock +++ b/packages/server/yarn.lock @@ -5198,22 +5198,6 @@ jsonschema@1.4.0: resolved "https://registry.yarnpkg.com/jsonschema/-/jsonschema-1.4.0.tgz#1afa34c4bc22190d8e42271ec17ac8b3404f87b2" integrity sha512-/YgW6pRMr6M7C+4o8kS+B/2myEpHCrxO4PEWnqJNBFMjn7EWXqlQ4tGwL6xTHeRplwuZmcAncdvfOad1nT2yMw== -jsonwebtoken@8.5.1: - version "8.5.1" - resolved "https://registry.yarnpkg.com/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz#00e71e0b8df54c2121a1f26137df2280673bcc0d" - integrity sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w== - dependencies: - jws "^3.2.2" - lodash.includes "^4.3.0" - lodash.isboolean "^3.0.3" - lodash.isinteger "^4.0.4" - lodash.isnumber "^3.0.3" - lodash.isplainobject "^4.0.6" - lodash.isstring "^4.0.1" - lodash.once "^4.0.0" - ms "^2.1.1" - semver "^5.6.0" - jsprim@^1.2.2: version "1.4.1" resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" @@ -5253,7 +5237,7 @@ jwa@^1.4.1: ecdsa-sig-formatter "1.0.11" safe-buffer "^5.0.1" -jws@3.x.x, jws@^3.2.2: +jws@3.x.x: version "3.2.2" resolved "https://registry.yarnpkg.com/jws/-/jws-3.2.2.tgz#001099f3639468c9414000e99995fa52fb478304" integrity sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA== @@ -5650,41 +5634,11 @@ lodash.debounce@^4.0.8: resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" integrity sha1-gteb/zCmfEAF/9XiUVMArZyk168= -lodash.includes@^4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/lodash.includes/-/lodash.includes-4.3.0.tgz#60bb98a87cb923c68ca1e51325483314849f553f" - integrity sha1-YLuYqHy5I8aMoeUTJUgzFISfVT8= - -lodash.isboolean@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz#6c2e171db2a257cd96802fd43b01b20d5f5870f6" - integrity sha1-bC4XHbKiV82WgC/UOwGyDV9YcPY= - lodash.isequal@^4.5.0: version "4.5.0" resolved "https://registry.yarnpkg.com/lodash.isequal/-/lodash.isequal-4.5.0.tgz#415c4478f2bcc30120c22ce10ed3226f7d3e18e0" integrity sha1-QVxEePK8wwEgwizhDtMib30+GOA= -lodash.isinteger@^4.0.4: - version "4.0.4" - resolved "https://registry.yarnpkg.com/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz#619c0af3d03f8b04c31f5882840b77b11cd68343" - integrity sha1-YZwK89A/iwTDH1iChAt3sRzWg0M= - -lodash.isnumber@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz#3ce76810c5928d03352301ac287317f11c0b1ffc" - integrity sha1-POdoEMWSjQM1IwGsKHMX8RwLH/w= - -lodash.isplainobject@^4.0.6: - version "4.0.6" - resolved "https://registry.yarnpkg.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz#7c526a52d89b45c45cc690b88163be0497f550cb" - integrity sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs= - -lodash.isstring@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/lodash.isstring/-/lodash.isstring-4.0.1.tgz#d527dfb5456eca7cc9bb95d5daeaf88ba54a5451" - integrity sha1-1SfftUVuynzJu5XV2ur4i6VKVFE= - lodash.keys@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/lodash.keys/-/lodash.keys-4.2.0.tgz#a08602ac12e4fb83f91fc1fb7a360a4d9ba35205" @@ -5700,11 +5654,6 @@ lodash.omit@^4.5.0: resolved "https://registry.yarnpkg.com/lodash.omit/-/lodash.omit-4.5.0.tgz#6eb19ae5a1ee1dd9df0b969e66ce0b7fa30b5e60" integrity sha1-brGa5aHuHdnfC5aeZs4Lf6MLXmA= -lodash.once@^4.0.0: - version "4.1.1" - resolved "https://registry.yarnpkg.com/lodash.once/-/lodash.once-4.1.1.tgz#0dd3971213c7c56df880977d504c88fb471a97ac" - integrity sha1-DdOXEhPHxW34gJd9UEyI+0cal6w= - lodash.pick@^4.0.0: version "4.4.0" resolved "https://registry.yarnpkg.com/lodash.pick/-/lodash.pick-4.4.0.tgz#52f05610fff9ded422611441ed1fc123a03001b3" From 42125aad7fa8121f326f66bf256b19de494c11af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Wed, 5 May 2021 08:48:05 +0200 Subject: [PATCH 02/28] remove unused styling --- .../design/NavigationPanel/FrontendNavigatePane.svelte | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/builder/src/components/design/NavigationPanel/FrontendNavigatePane.svelte b/packages/builder/src/components/design/NavigationPanel/FrontendNavigatePane.svelte index 4f73791820..ef9b5bdd69 100644 --- a/packages/builder/src/components/design/NavigationPanel/FrontendNavigatePane.svelte +++ b/packages/builder/src/components/design/NavigationPanel/FrontendNavigatePane.svelte @@ -120,10 +120,6 @@ top: var(--spacing-l); right: var(--spacing-xl); } - .title i:hover { - cursor: pointer; - color: var(--blue); - } .role-select { display: flex; From 550861ec3252e39a2bd0971317bc91675d74c5a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Wed, 5 May 2021 09:12:16 +0200 Subject: [PATCH 03/28] more structure to layout --- .../builder/src/pages/portal/_layout.svelte | 90 ++++++++++++++++++- 1 file changed, 89 insertions(+), 1 deletion(-) diff --git a/packages/builder/src/pages/portal/_layout.svelte b/packages/builder/src/pages/portal/_layout.svelte index bf7e89904e..4de7a6e9a1 100644 --- a/packages/builder/src/pages/portal/_layout.svelte +++ b/packages/builder/src/pages/portal/_layout.svelte @@ -1 +1,89 @@ -asdasd + + +
+ + + +
+
+ +
+ +
+
+
+ +
+
+
+ + From 7e4e7720d7058ceb51485cbc0c498f7538060df2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Wed, 5 May 2021 09:12:25 +0200 Subject: [PATCH 04/28] adds wip initial mode to Avatar --- packages/bbui/src/Avatar/Avatar.svelte | 35 +++++++++++++++++++++----- 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/packages/bbui/src/Avatar/Avatar.svelte b/packages/bbui/src/Avatar/Avatar.svelte index d2aef72446..ae3ebda82c 100644 --- a/packages/bbui/src/Avatar/Avatar.svelte +++ b/packages/bbui/src/Avatar/Avatar.svelte @@ -2,11 +2,34 @@ import "@spectrum-css/avatar/dist/index-vars.css" export let url = "" export let disabled = false + export let initials = "KA" -Avatar +{#if url} + Avatar +{:else} +
{initials}
+{/if} + + From eb896d0cbadfce7024efe9b19ed08ca488412e53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Wed, 5 May 2021 09:30:52 +0200 Subject: [PATCH 05/28] wip: update ProgressCircle to take values --- .../src/ProgressCircle/ProgressCircle.svelte | 63 +++++++++++++------ 1 file changed, 43 insertions(+), 20 deletions(-) diff --git a/packages/bbui/src/ProgressCircle/ProgressCircle.svelte b/packages/bbui/src/ProgressCircle/ProgressCircle.svelte index ba1dc10965..f5ecccde79 100644 --- a/packages/bbui/src/ProgressCircle/ProgressCircle.svelte +++ b/packages/bbui/src/ProgressCircle/ProgressCircle.svelte @@ -1,29 +1,52 @@ -
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
+
+
+
+
- +
From 3837478527465b08c50c92362f9e18cd8ab0f895 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Wed, 5 May 2021 09:43:01 +0200 Subject: [PATCH 06/28] fix progress not showing correctly --- .../bbui/src/ProgressCircle/ProgressCircle.svelte | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/packages/bbui/src/ProgressCircle/ProgressCircle.svelte b/packages/bbui/src/ProgressCircle/ProgressCircle.svelte index f5ecccde79..c574c86adb 100644 --- a/packages/bbui/src/ProgressCircle/ProgressCircle.svelte +++ b/packages/bbui/src/ProgressCircle/ProgressCircle.svelte @@ -9,21 +9,21 @@ export let value = false export let minValue = 0 - export let maxValue = 0 + export let maxValue = 100 let subMask1Style let subMask2Style - if (!value) { + if (value) { let percentage = ((value - minValue) / (maxValue - minValue)) * 100 let angle if (percentage > 0 && percentage <= 50) { angle = -180 + (percentage / 50) * 180 - subMask1Style = `rotate(${angle}deg)` - subMask2Style = "rotate(-180deg)" + subMask1Style = `transform: rotate(${angle}deg);` + subMask2Style = "transform: rotate(-180deg);" } else if (percentage > 50) { angle = -180 + ((percentage - 50) / 50) * 180 - subMask1Style = "rotate(0deg)" - subMask2Style = `rotate(${angle}deg)` + subMask1Style = "transform: rotate(0deg);" + subMask2Style = `transform: rotate(${angle}deg);` } } @@ -34,6 +34,7 @@ class:spectrum-ProgressBar--indeterminate={!value} class:spectrum-ProgressCircle--small={small} class:spectrum-ProgressCircle--large={large} + class:spectrum-ProgressCircle--overBackground={overBackground} class="spectrum-ProgressCircle" >
From 87ed1c0a9e01a64676868957a25dcb10350edb9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Wed, 5 May 2021 10:02:48 +0200 Subject: [PATCH 07/28] working ProgressCircle --- .../src/ProgressCircle/ProgressCircle.svelte | 47 +++++++++++-------- 1 file changed, 28 insertions(+), 19 deletions(-) diff --git a/packages/bbui/src/ProgressCircle/ProgressCircle.svelte b/packages/bbui/src/ProgressCircle/ProgressCircle.svelte index c574c86adb..711517ec7b 100644 --- a/packages/bbui/src/ProgressCircle/ProgressCircle.svelte +++ b/packages/bbui/src/ProgressCircle/ProgressCircle.svelte @@ -1,11 +1,17 @@
From f7082386240cd312111266e4e67f18e99542681b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Wed, 5 May 2021 10:21:55 +0200 Subject: [PATCH 08/28] update layout --- .../builder/src/pages/portal/_layout.svelte | 27 ++++++++++++++----- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/packages/builder/src/pages/portal/_layout.svelte b/packages/builder/src/pages/portal/_layout.svelte index 4de7a6e9a1..ea2fd18ed0 100644 --- a/packages/builder/src/pages/portal/_layout.svelte +++ b/packages/builder/src/pages/portal/_layout.svelte @@ -9,15 +9,18 @@ SideNavigationItem as Item, } from "@budibase/bbui" - let orgName, orgLogo + let orgName, orgLogo, onBoardingProgress - async function getOrgInfo() { + async function getInfo() { // fetch orgInfo orgName = "ACME Inc." - orgLogo = "https://via.placeholder.com/32" + orgLogo = "https://via.placeholder.com/150" + + // set onBoardingProgress + onBoardingProgress = 20 } - onMount(getOrgInfo) + onMount(getInfo)
@@ -29,7 +32,7 @@ {orgName}
- +