embed component, rename main and login to public and private

This commit is contained in:
Martin McKeaveney 2020-06-11 20:18:59 +01:00
parent 02469dec2f
commit 6f1ea30fe6
5 changed files with 27 additions and 2 deletions

View File

@ -9,11 +9,11 @@
const pages = [ const pages = [
{ {
title: "Main", title: "Private",
id: "main", id: "main",
}, },
{ {
title: "Login", title: "Public",
id: "unauthenticated", id: "unauthenticated",
}, },
] ]

View File

@ -11,6 +11,18 @@ export default {
name: "Basic", name: "Basic",
isCategory: true, isCategory: true,
children: [ 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", _component: "@budibase/standard-components/container",
name: "Container", name: "Container",

View File

@ -6,6 +6,13 @@
"component": "button" "component": "button"
} }
}, },
"embed": {
"name": "Embed",
"description": "Embed stuff",
"props": {
"embed": "string"
}
},
"Navigation": { "Navigation": {
"name": "Navigation", "name": "Navigation",
"description": "A basic header navigation component", "description": "A basic header navigation component",

View File

@ -0,0 +1,5 @@
<script>
export let embed
</script>
{@html embed}

View File

@ -21,3 +21,4 @@ export { default as datalist } from "./DataList.svelte"
export { default as list } from "./List.svelte" export { default as list } from "./List.svelte"
export { default as datasearch } from "./DataSearch.svelte" export { default as datasearch } from "./DataSearch.svelte"
export { default as datamap } from "./DataMap.svelte" export { default as datamap } from "./DataMap.svelte"
export { default as embed } from "./Embed.svelte"