2021-05-14 16:43:41 +02:00
|
|
|
const { BUILTIN_ROLE_IDS } = require("@budibase/auth/roles")
|
2020-12-03 18:31:38 +01:00
|
|
|
const { BASE_LAYOUT_PROP_IDS } = require("./layouts")
|
2020-11-13 16:35:20 +01:00
|
|
|
|
2020-12-07 16:49:13 +01:00
|
|
|
exports.createHomeScreen = () => ({
|
2020-11-03 17:27:28 +01:00
|
|
|
description: "",
|
|
|
|
url: "",
|
2020-12-05 00:16:07 +01:00
|
|
|
layoutId: BASE_LAYOUT_PROP_IDS.PRIVATE,
|
2020-11-03 17:27:28 +01:00
|
|
|
props: {
|
|
|
|
_id: "d834fea2-1b3e-4320-ab34-f9009f5ecc59",
|
|
|
|
_component: "@budibase/standard-components/container",
|
|
|
|
_styles: {
|
|
|
|
normal: {
|
|
|
|
flex: "1 1 auto",
|
|
|
|
display: "flex",
|
|
|
|
"flex-direction": "column",
|
|
|
|
"justify-content": "flex-start",
|
|
|
|
"align-items": "stretch",
|
|
|
|
},
|
|
|
|
hover: {},
|
|
|
|
active: {},
|
|
|
|
selected: {},
|
|
|
|
},
|
2021-03-02 13:37:54 +01:00
|
|
|
_transition: "fade",
|
2020-11-03 17:27:28 +01:00
|
|
|
type: "div",
|
|
|
|
_children: [
|
|
|
|
{
|
|
|
|
_id: "ef60083f-4a02-4df3-80f3-a0d3d16847e7",
|
|
|
|
_component: "@budibase/standard-components/heading",
|
|
|
|
_styles: {
|
|
|
|
normal: {
|
|
|
|
"text-align": "left",
|
|
|
|
},
|
|
|
|
hover: {},
|
|
|
|
active: {},
|
|
|
|
selected: {},
|
|
|
|
},
|
|
|
|
text: "Welcome to your Budibase App 👋",
|
|
|
|
type: "h2",
|
|
|
|
_instanceName: "Heading",
|
|
|
|
_children: [],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
_instanceName: "Home",
|
|
|
|
},
|
2020-11-13 16:35:20 +01:00
|
|
|
routing: {
|
|
|
|
route: "/",
|
2020-12-02 14:20:56 +01:00
|
|
|
roleId: BUILTIN_ROLE_IDS.BASIC,
|
2020-11-13 16:35:20 +01:00
|
|
|
},
|
2020-11-24 19:11:18 +01:00
|
|
|
name: "home-screen",
|
2020-12-04 15:03:40 +01:00
|
|
|
})
|