Fixing errors

This commit is contained in:
Conor_Mack 2020-05-12 14:44:30 +01:00
parent ed57456245
commit 81cfdf69aa
2 changed files with 14 additions and 15 deletions

View File

@ -25,7 +25,7 @@
) )
$: hasComponent = !!$store.currentPreviewItem $: hasComponent = !!$store.currentPreviewItem
$: { $: {
style = "" styles = ""
// Apply the CSS from the currently selected page and its screens // Apply the CSS from the currently selected page and its screens
const currentPage = $store.pages[$store.currentPageName] const currentPage = $store.pages[$store.currentPageName]
styles += currentPage._css styles += currentPage._css
@ -35,10 +35,10 @@
styles = styles styles = styles
} }
$: stylesheetLinks = pipe($store.pages.stylesheets, [ $: stylesheetLinks = pipe(
map(s => `<link rel="stylesheet" href="${s}"/>`), $store.pages.stylesheets,
join("\n"), [map(s => `<link rel="stylesheet" href="${s}"/>`), join("\n")]
]) )
$: screensExist = $: screensExist =
$store.currentPreviewItem._screens && $store.currentPreviewItem._screens &&

View File

@ -12,10 +12,10 @@
"props": { "props": {
"logoUrl": "string", "logoUrl": "string",
"title": "string", "title": "string",
"backgroundColor": "colour", "backgroundColor": "string",
"color": "colour", "color": "string",
"borderWidth": "string", "borderWidth": "string",
"borderColor": "colour", "borderColor": "string",
"borderStyle": "string" "borderStyle": "string"
} }
}, },
@ -30,8 +30,8 @@
"className": "string", "className": "string",
"disabled": "bool", "disabled": "bool",
"onClick": "event", "onClick": "event",
"background": "colour", "background": "string",
"color": "colour", "color": "string",
"border": "string", "border": "string",
"padding": "string", "padding": "string",
"hoverColor": "string", "hoverColor": "string",
@ -167,7 +167,7 @@
"children": false, "children": false,
"props": { "props": {
"text": "string", "text": "string",
"color": "colour", "color": "string",
"fontFamily": { "fontFamily": {
"type": "options", "type": "options",
"default": "initial", "default": "initial",
@ -259,7 +259,7 @@
"props": { "props": {
"icon": "string", "icon": "string",
"fontSize": "string", "fontSize": "string",
"color": "colour" "color": "string"
} }
}, },
"datatable": { "datatable": {
@ -328,8 +328,8 @@
"url": "string", "url": "string",
"openInNewTab": "bool", "openInNewTab": "bool",
"text": "string", "text": "string",
"color": "colour", "color": "string",
"hoverColor": "colour", "hoverColor": "string",
"underline": "bool", "underline": "bool",
"fontSize": "string", "fontSize": "string",
"fontFamily": { "fontFamily": {
@ -416,7 +416,6 @@
"description": "An HTML H1 - H6 tag", "description": "An HTML H1 - H6 tag",
"props": { "props": {
"className": "string", "className": "string",
"color":"colour",
"text": "string", "text": "string",
"type": { "type": {
"type": "options", "type": "options",