From 6f1ea30fe6249ddd884e031b857fd1eee70a9328 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Thu, 11 Jun 2020 20:18:59 +0100 Subject: [PATCH] embed component, rename main and login to public and private --- .../src/components/userInterface/PagesList.svelte | 4 ++-- .../userInterface/temporaryPanelStructure.js | 12 ++++++++++++ packages/standard-components/components.json | 7 +++++++ packages/standard-components/src/Embed.svelte | 5 +++++ packages/standard-components/src/index.js | 1 + 5 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 packages/standard-components/src/Embed.svelte diff --git a/packages/builder/src/components/userInterface/PagesList.svelte b/packages/builder/src/components/userInterface/PagesList.svelte index 4a87c4ac8a..5a78ef7121 100644 --- a/packages/builder/src/components/userInterface/PagesList.svelte +++ b/packages/builder/src/components/userInterface/PagesList.svelte @@ -9,11 +9,11 @@ const pages = [ { - title: "Main", + title: "Private", id: "main", }, { - title: "Login", + title: "Public", id: "unauthenticated", }, ] diff --git a/packages/builder/src/components/userInterface/temporaryPanelStructure.js b/packages/builder/src/components/userInterface/temporaryPanelStructure.js index afd3a06694..7315e09736 100644 --- a/packages/builder/src/components/userInterface/temporaryPanelStructure.js +++ b/packages/builder/src/components/userInterface/temporaryPanelStructure.js @@ -11,6 +11,18 @@ export default { name: "Basic", isCategory: true, children: [ + { + _component: "@budibase/standard-components/embed", + icon: "ri-code-line", + name: "Embed", + description: "Embed content from 3rd party sources", + properties: { + design: { + ...all, + }, + settings: [{ label: "Embed", key: "embed", control: Input }], + }, + }, { _component: "@budibase/standard-components/container", name: "Container", diff --git a/packages/standard-components/components.json b/packages/standard-components/components.json index a562650b85..c4c0246672 100644 --- a/packages/standard-components/components.json +++ b/packages/standard-components/components.json @@ -6,6 +6,13 @@ "component": "button" } }, + "embed": { + "name": "Embed", + "description": "Embed stuff", + "props": { + "embed": "string" + } + }, "Navigation": { "name": "Navigation", "description": "A basic header navigation component", diff --git a/packages/standard-components/src/Embed.svelte b/packages/standard-components/src/Embed.svelte new file mode 100644 index 0000000000..2640864681 --- /dev/null +++ b/packages/standard-components/src/Embed.svelte @@ -0,0 +1,5 @@ + + +{@html embed} diff --git a/packages/standard-components/src/index.js b/packages/standard-components/src/index.js index 2284ab1fcb..24342066e8 100644 --- a/packages/standard-components/src/index.js +++ b/packages/standard-components/src/index.js @@ -21,3 +21,4 @@ export { default as datalist } from "./DataList.svelte" export { default as list } from "./List.svelte" export { default as datasearch } from "./DataSearch.svelte" export { default as datamap } from "./DataMap.svelte" +export { default as embed } from "./Embed.svelte"