Merge pull request #356 from Budibase/unauth-pages

embed component, rename main and login to public and private
This commit is contained in:
Martin McKeaveney 2020-06-12 09:58:21 +01:00 committed by GitHub
commit 5ce3b53986
5 changed files with 27 additions and 2 deletions

View File

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

View File

@ -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",

View File

@ -6,6 +6,13 @@
"component": "button"
}
},
"embed": {
"name": "Embed",
"description": "Embed stuff",
"props": {
"embed": "string"
}
},
"Navigation": {
"name": "Navigation",
"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 datasearch } from "./DataSearch.svelte"
export { default as datamap } from "./DataMap.svelte"
export { default as embed } from "./Embed.svelte"