diff --git a/hosting/scripts/linux/install-docker.sh b/hosting/scripts/linux/install-docker.sh index a71809c31f..fe92736d91 100755 --- a/hosting/scripts/linux/install-docker.sh +++ b/hosting/scripts/linux/install-docker.sh @@ -1,6 +1,6 @@ #!/bin/bash echo "**** WARNING - not for production environments ****" -# warning this is a convience script, for production installations install docker +# warning this is a convenience script, for production installations install docker # properly for your environment! curl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh diff --git a/lerna.json b/lerna.json index 78f7618651..0982cc8bb4 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "0.9.71", + "version": "0.9.74", "npmClient": "yarn", "packages": [ "packages/*" diff --git a/packages/auth/package.json b/packages/auth/package.json index fd1758232a..4e6c859a8a 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -1,6 +1,6 @@ { "name": "@budibase/auth", - "version": "0.9.71", + "version": "0.9.74", "description": "Authentication middlewares for budibase builder and apps", "main": "src/index.js", "author": "Budibase", diff --git a/packages/auth/src/objectStore/index.js b/packages/auth/src/objectStore/index.js index 80875fdfee..81bdd06b62 100644 --- a/packages/auth/src/objectStore/index.js +++ b/packages/auth/src/objectStore/index.js @@ -22,11 +22,13 @@ const CONTENT_TYPE_MAP = { html: "text/html", css: "text/css", js: "application/javascript", + json: "application/json", } const STRING_CONTENT_TYPES = [ CONTENT_TYPE_MAP.html, CONTENT_TYPE_MAP.css, CONTENT_TYPE_MAP.js, + CONTENT_TYPE_MAP.json, ] // does normal sanitization and then swaps dev apps to apps diff --git a/packages/bbui/package.json b/packages/bbui/package.json index a4b6349128..5118c1b7cf 100644 --- a/packages/bbui/package.json +++ b/packages/bbui/package.json @@ -1,7 +1,7 @@ { "name": "@budibase/bbui", "description": "A UI solution used in the different Budibase projects.", - "version": "0.9.71", + "version": "0.9.74", "license": "AGPL-3.0", "svelte": "src/index.js", "module": "dist/bbui.es.js", diff --git a/packages/bbui/src/Form/Core/Select.svelte b/packages/bbui/src/Form/Core/Select.svelte index 8847163cb7..398672af10 100644 --- a/packages/bbui/src/Form/Core/Select.svelte +++ b/packages/bbui/src/Form/Core/Select.svelte @@ -31,7 +31,7 @@ return "" } - // Render the label if the selected option is found, otherwide raw value + // Render the label if the selected option is found, otherwise raw value const index = options.findIndex( (option, idx) => getOptionValue(option, idx) === value ) diff --git a/packages/builder/CONTRIBUTING.md b/packages/builder/CONTRIBUTING.md index 24bd682585..dbefb5a16b 100644 --- a/packages/builder/CONTRIBUTING.md +++ b/packages/builder/CONTRIBUTING.md @@ -9,7 +9,7 @@ Please read this if you are unfamiliar with it. * Please maintain the existing code style. -* Please try to keep your commits small and focussed. +* Please try to keep your commits small and focused. * If the project diverges from your branch, please rebase instead of merging. This makes the commit graph easier to read. diff --git a/packages/builder/cypress/setup.js b/packages/builder/cypress/setup.js index 2c09c4b3c5..4ad8e5287d 100644 --- a/packages/builder/cypress/setup.js +++ b/packages/builder/cypress/setup.js @@ -34,7 +34,7 @@ async function run() { process.exit(-1) } - // dont make this a variable or top level require + // don't make this a variable or top level require // it will cause environment module to be loaded prematurely const server = require("../../server/dist/app") process.env.PORT = WORKER_PORT diff --git a/packages/builder/package.json b/packages/builder/package.json index cf856552ce..261db322d7 100644 --- a/packages/builder/package.json +++ b/packages/builder/package.json @@ -1,6 +1,6 @@ { "name": "@budibase/builder", - "version": "0.9.71", + "version": "0.9.74", "license": "AGPL-3.0", "private": true, "scripts": { @@ -65,10 +65,10 @@ } }, "dependencies": { - "@budibase/bbui": "^0.9.71", - "@budibase/client": "^0.9.71", + "@budibase/bbui": "^0.9.74", + "@budibase/client": "^0.9.74", "@budibase/colorpicker": "1.1.2", - "@budibase/string-templates": "^0.9.71", + "@budibase/string-templates": "^0.9.74", "@sentry/browser": "5.19.1", "@spectrum-css/page": "^3.0.1", "@spectrum-css/vars": "^3.0.1", diff --git a/packages/builder/src/builderStore/store/frontend.js b/packages/builder/src/builderStore/store/frontend.js index ac837978a9..b9cd134067 100644 --- a/packages/builder/src/builderStore/store/frontend.js +++ b/packages/builder/src/builderStore/store/frontend.js @@ -32,6 +32,10 @@ const INITIAL_FRONTEND_STATE = { layouts: [], screens: [], components: [], + clientFeatures: { + spectrumThemes: false, + intelligentLoading: false, + }, currentFrontEndType: "none", selectedScreenId: "", selectedLayoutId: "", @@ -56,6 +60,10 @@ export const getFrontendStore = () => { ...state, libraries: application.componentLibraries, components, + clientFeatures: { + ...state.clientFeatures, + ...components.features, + }, name: application.name, description: application.description, appId: application.appId, @@ -67,6 +75,8 @@ export const getFrontendStore = () => { appInstance: application.instance, clientLibPath, previousTopNavPath: {}, + version: application.version, + revertableVersion: application.revertableVersion, })) await hostingStore.actions.fetch() diff --git a/packages/builder/src/components/deploy/VersionModal.svelte b/packages/builder/src/components/deploy/VersionModal.svelte new file mode 100644 index 0000000000..0fb061face --- /dev/null +++ b/packages/builder/src/components/deploy/VersionModal.svelte @@ -0,0 +1,120 @@ + + +