1
0
Fork 0
mirror of synced 2024-07-09 00:06:05 +12:00

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

View file

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