1
0
Fork 0
mirror of synced 2024-09-30 00:57:16 +13:00
This commit is contained in:
Martin McKeaveney 2020-12-07 15:49:13 +00:00
parent a9d0c68a60
commit 74f138ee9a
8 changed files with 11 additions and 23 deletions

View file

@ -25,9 +25,7 @@
screen = screenPlaceholder
} else {
screen = $currentAsset
layout = $store.layouts.find(
layout => layout._id === screen?.layoutId
)
layout = $store.layouts.find(layout => layout._id === screen?.layoutId)
}
}
$: selectedComponentId = $store.selectedComponentId ?? ""

View file

@ -39,13 +39,9 @@
class="category"
on:click={() => onCategoryChosen(category, idx)}
class:active={idx === selectedIndex}>
{#if category.icon}
<i class={category.icon} />
{/if}
{#if category.icon}<i class={category.icon} />{/if}
<span>{category.name}</span>
{#if category.isCategory}
<i class="ri-arrow-down-s-line arrow" />
{/if}
{#if category.isCategory}<i class="ri-arrow-down-s-line arrow" />{/if}
</div>
{/each}
</div>

View file

@ -32,9 +32,7 @@
{ key: "layoutId", label: "Layout", control: LayoutSelect },
]
const layoutDefinition = [
{ key: "title", label: "Title", control: Input }
]
const layoutDefinition = [{ key: "title", label: "Title", control: Input }]
const canRenderControl = (key, dependsOn) => {
let test = !isEmpty(componentInstance[dependsOn])

View file

@ -6,12 +6,12 @@
// Go to first layout
if ($params.assetType === FrontendTypes.LAYOUT) {
$goto(`../${$store.layouts[0]?._id}`)
}
}
// Go to first screen
if ($params.assetType === FrontendTypes.SCREEN) {
$goto(`../${$allScreens[0]?._id}`)
}
}
</script>
<!-- routify:options index=false -->
<!-- routify:options index=false -->

View file

@ -243,5 +243,5 @@ const BASE_LAYOUTS = [
module.exports = {
BASE_LAYOUTS,
BASE_LAYOUT_PROP_IDS,
EMPTY_LAYOUT
EMPTY_LAYOUT,
}

View file

@ -1,12 +1,11 @@
const { BUILTIN_ROLE_IDS } = require("../utilities/security/roles")
const { BASE_LAYOUT_PROP_IDS } = require("./layouts")
exports.createHomeScreen = app => ({
exports.createHomeScreen = () => ({
description: "",
url: "",
layoutId: BASE_LAYOUT_PROP_IDS.PRIVATE,
props: {
_instanceName: "HomeScreenContainer",
_id: "d834fea2-1b3e-4320-ab34-f9009f5ecc59",
_component: "@budibase/standard-components/container",
_styles: {

View file

@ -1,3 +0,0 @@
class Integration {
constructor() {}
}

View file

@ -26,9 +26,9 @@ export default {
}),
resolve({
browser: true,
skip: externals
skip: externals,
}),
commonjs(),
json()
json(),
],
}