49 lines
1.1 KiB
TypeScript
49 lines
1.1 KiB
TypeScript
|
import { roles } from "@budibase/backend-core"
|
||
|
import { BASE_LAYOUT_PROP_IDS } from "./layouts"
|
||
|
|
||
|
export function createHomeScreen() {
|
||
|
return {
|
||
|
description: "",
|
||
|
url: "",
|
||
|
layoutId: BASE_LAYOUT_PROP_IDS.PRIVATE,
|
||
|
props: {
|
||
|
_id: "d834fea2-1b3e-4320-ab34-f9009f5ecc59",
|
||
|
_component: "@budibase/standard-components/container",
|
||
|
_styles: {
|
||
|
normal: {},
|
||
|
hover: {},
|
||
|
active: {},
|
||
|
selected: {},
|
||
|
},
|
||
|
_transition: "fade",
|
||
|
_children: [
|
||
|
{
|
||
|
_id: "ef60083f-4a02-4df3-80f3-a0d3d16847e7",
|
||
|
_component: "@budibase/standard-components/heading",
|
||
|
_styles: {
|
||
|
hover: {},
|
||
|
active: {},
|
||
|
selected: {},
|
||
|
},
|
||
|
text: "Welcome to your Budibase App 👋",
|
||
|
size: "M",
|
||
|
align: "left",
|
||
|
_instanceName: "Heading",
|
||
|
_children: [],
|
||
|
},
|
||
|
],
|
||
|
_instanceName: "Home",
|
||
|
direction: "column",
|
||
|
hAlign: "stretch",
|
||
|
vAlign: "top",
|
||
|
size: "grow",
|
||
|
gap: "M",
|
||
|
},
|
||
|
routing: {
|
||
|
route: "/",
|
||
|
roleId: roles.BUILTIN_ROLE_IDS.BASIC,
|
||
|
},
|
||
|
name: "home-screen",
|
||
|
}
|
||
|
}
|