lint
This commit is contained in:
parent
a9d0c68a60
commit
74f138ee9a
|
@ -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 ?? ""
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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])
|
||||
|
|
|
@ -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 -->
|
||||
|
|
|
@ -243,5 +243,5 @@ const BASE_LAYOUTS = [
|
|||
module.exports = {
|
||||
BASE_LAYOUTS,
|
||||
BASE_LAYOUT_PROP_IDS,
|
||||
EMPTY_LAYOUT
|
||||
EMPTY_LAYOUT,
|
||||
}
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
class Integration {
|
||||
constructor() {}
|
||||
}
|
|
@ -26,9 +26,9 @@ export default {
|
|||
}),
|
||||
resolve({
|
||||
browser: true,
|
||||
skip: externals
|
||||
skip: externals,
|
||||
}),
|
||||
commonjs(),
|
||||
json()
|
||||
json(),
|
||||
],
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue