diff --git a/packages/builder/src/builderStore/store/screenTemplates/utils/Component.js b/packages/builder/src/builderStore/store/screenTemplates/utils/Component.js index 0a40c62dc7..84de7e15ea 100644 --- a/packages/builder/src/builderStore/store/screenTemplates/utils/Component.js +++ b/packages/builder/src/builderStore/store/screenTemplates/utils/Component.js @@ -15,8 +15,6 @@ export class Component extends BaseStructure { selected: {}, }, _code: "", - className: "", - onLoad: [], type: "", _instanceName: "", _children: [], diff --git a/packages/builder/src/components/userInterface/EventsEditor/EventsEditor.svelte b/packages/builder/src/components/userInterface/EventsEditor/EventsEditor.svelte deleted file mode 100644 index 4df9a0d62e..0000000000 --- a/packages/builder/src/components/userInterface/EventsEditor/EventsEditor.svelte +++ /dev/null @@ -1,127 +0,0 @@ - - - - -
-
- {#each events as event, index} - {#if event.handlers.length > 0} -
openModal({ ...event, index })}> - {event.name} - EDIT -
- {/if} - {/each} -
-
- - - - - - diff --git a/packages/builder/src/components/userInterface/EventsEditor/StateBindingCascader.svelte b/packages/builder/src/components/userInterface/EventsEditor/StateBindingCascader.svelte deleted file mode 100644 index 3475a14eed..0000000000 --- a/packages/builder/src/components/userInterface/EventsEditor/StateBindingCascader.svelte +++ /dev/null @@ -1,53 +0,0 @@ - - -
- {#if parameter.name === 'automation'}{parameter.name}{/if} - {#if parameter.name === 'automation'} - - {:else if parameter.name === 'url'} - - - {/each} - - {:else} - - {/if} -
- - diff --git a/packages/client/src/components/Screen.svelte b/packages/client/src/components/Screen.svelte index b79becc9cf..33dd3b3427 100644 --- a/packages/client/src/components/Screen.svelte +++ b/packages/client/src/components/Screen.svelte @@ -4,7 +4,7 @@ import Component from "./Component.svelte" // Keep route params up to date - export let params + export let params = {} $: routeStore.actions.setRouteParams(params || {}) // Get the screen definition for the current route diff --git a/packages/server/src/constants/pages.js b/packages/server/src/constants/pages.js index e017885b49..3923d6b5c3 100644 --- a/packages/server/src/constants/pages.js +++ b/packages/server/src/constants/pages.js @@ -31,8 +31,6 @@ const MAIN = { selected: {}, }, _code: "", - className: "", - onLoad: [], type: "div", _appId: "inst_app_80b_f158d4057d2c4bedb0042d42fda8abaf", _instanceName: "Header", @@ -58,12 +56,6 @@ const MAIN = { _code: "", logoUrl: "https://d33wubrfki0l68.cloudfront.net/aac32159d7207b5085e74a7ef67afbb7027786c5/2b1fd/img/logo/bb-emblem.svg", - title: "", - backgroundColor: "", - color: "", - borderWidth: "", - borderColor: "", - borderStyle: "", _appId: "inst_cf8ace4_69efc0d72e6f443db2d4c902c14d9394", _instanceName: "Navigation", _children: [ @@ -88,11 +80,6 @@ const MAIN = { url: "/", openInNewTab: false, text: "Home", - color: "", - hoverColor: "", - underline: false, - fontSize: "", - fontFamily: "initial", _appId: "inst_cf8ace4_69efc0d72e6f443db2d4c902c14d9394", _instanceName: "Home Link", _children: [], @@ -143,8 +130,6 @@ const MAIN = { selected: {}, }, _code: "", - className: "", - onLoad: [], }, } @@ -181,13 +166,7 @@ const UNAUTHENTICATED = { selected: {}, }, _code: "", - loginRedirect: "", - usernameLabel: "Username", - passwordLabel: "Password", - loginButtonLabel: "Login", - buttonClass: "", _instanceName: "Login", - inputClass: "", _children: [], title: "Log in to {{ name }}", buttonText: "Log In", @@ -213,8 +192,6 @@ const UNAUTHENTICATED = { selected: {}, }, _code: "", - className: "", - onLoad: [], }, } diff --git a/packages/server/src/constants/screens.js b/packages/server/src/constants/screens.js index 5c5a9dfd26..a4e9c031ed 100644 --- a/packages/server/src/constants/screens.js +++ b/packages/server/src/constants/screens.js @@ -19,8 +19,6 @@ exports.HOME_SCREEN = { selected: {}, }, _code: "", - className: "", - onLoad: [], type: "div", _children: [ { @@ -35,7 +33,6 @@ exports.HOME_SCREEN = { selected: {}, }, _code: "", - className: "", text: "Welcome to your Budibase App 👋", type: "h2", _appId: "inst_cf8ace4_69efc0d72e6f443db2d4c902c14d9394", @@ -61,8 +58,6 @@ exports.HOME_SCREEN = { selected: {}, }, _code: "", - className: "", - onLoad: [], type: "div", _appId: "inst_app_2cc_ca3383f896034e9295345c05f7dfca0c", _instanceName: "Video Container", diff --git a/packages/standard-components/components.json b/packages/standard-components/components.json index 180652688f..d1376384d8 100644 --- a/packages/standard-components/components.json +++ b/packages/standard-components/components.json @@ -18,13 +18,7 @@ "description": "A basic header navigation component", "children": true, "props": { - "logoUrl": "string", - "title": "string", - "backgroundColor": "string", - "color": "string", - "borderWidth": "string", - "borderColor": "string", - "borderStyle": "string" + "logoUrl": "string" } }, "button": { @@ -32,7 +26,6 @@ "description": "an html