|
|
|
@ -1,10 +1,11 @@ |
|
|
|
const BASE_LAYOUT_PROP_IDS = { |
|
|
|
PRIVATE: "private-master-layout", |
|
|
|
PUBLIC: "public-master-layout", |
|
|
|
PRIVATE: "layout_private_master", |
|
|
|
PUBLIC: "layout_public_master", |
|
|
|
} |
|
|
|
|
|
|
|
const BASE_LAYOUTS = [ |
|
|
|
{ |
|
|
|
_id: BASE_LAYOUT_PROP_IDS.PRIVATE, |
|
|
|
componentLibraries: ["@budibase/standard-components"], |
|
|
|
title: "{{ name }}", |
|
|
|
favicon: "./_shared/favicon.png", |
|
|
|
@ -145,76 +146,63 @@ const BASE_LAYOUTS = [ |
|
|
|
onLoad: [], |
|
|
|
}, |
|
|
|
}, |
|
|
|
// // TODO: needs removed
|
|
|
|
// {
|
|
|
|
// componentLibraries: ["@budibase/standard-components"],
|
|
|
|
// title: "{{ name }}",
|
|
|
|
// favicon: "./_shared/favicon.png",
|
|
|
|
// stylesheets: [],
|
|
|
|
// name: "Unauthenticated",
|
|
|
|
// props: {
|
|
|
|
// _id: BASE_LAYOUT_PROP_IDS.PUBLIC,
|
|
|
|
// _component: "@budibase/standard-components/container",
|
|
|
|
// _children: [
|
|
|
|
// {
|
|
|
|
// _id: "686c252d-dbf2-4e28-9078-414ba4719759",
|
|
|
|
// _component: "@budibase/standard-components/login",
|
|
|
|
// _styles: {
|
|
|
|
// normal: {
|
|
|
|
// padding: "64px",
|
|
|
|
// background: "rgba(255, 255, 255, 0.4)",
|
|
|
|
// "border-radius": "0.5rem",
|
|
|
|
// "margin-top": "0px",
|
|
|
|
// margin: "0px",
|
|
|
|
// "line-height": "1",
|
|
|
|
// "box-shadow":
|
|
|
|
// "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",
|
|
|
|
// "font-size": "16px",
|
|
|
|
// "font-family": "Inter",
|
|
|
|
// flex: "0 1 auto",
|
|
|
|
// transform: "0",
|
|
|
|
// },
|
|
|
|
// hover: {},
|
|
|
|
// active: {},
|
|
|
|
// selected: {},
|
|
|
|
// },
|
|
|
|
// _code: "",
|
|
|
|
// loginRedirect: "",
|
|
|
|
// usernameLabel: "Username",
|
|
|
|
// passwordLabel: "Password",
|
|
|
|
// loginButtonLabel: "Login",
|
|
|
|
// buttonClass: "",
|
|
|
|
// _instanceName: "Login",
|
|
|
|
// inputClass: "",
|
|
|
|
// _children: [],
|
|
|
|
// title: "Log in to {{ name }}",
|
|
|
|
// buttonText: "Log In",
|
|
|
|
// logo:
|
|
|
|
// "https://d33wubrfki0l68.cloudfront.net/aac32159d7207b5085e74a7ef67afbb7027786c5/2b1fd/img/logo/bb-emblem.svg",
|
|
|
|
// },
|
|
|
|
// ],
|
|
|
|
// type: "div",
|
|
|
|
// _styles: {
|
|
|
|
// active: {},
|
|
|
|
// hover: {},
|
|
|
|
// normal: {
|
|
|
|
// display: "flex",
|
|
|
|
// "flex-direction": "column",
|
|
|
|
// "align-items": "center",
|
|
|
|
// "justify-content": "center",
|
|
|
|
// "margin-right": "auto",
|
|
|
|
// "margin-left": "auto",
|
|
|
|
// "min-height": "100%",
|
|
|
|
// "background-image":
|
|
|
|
// "linear-gradient(135deg, rgba(252,215,212,1) 20%, rgba(207,218,255,1) 100%);",
|
|
|
|
// },
|
|
|
|
// selected: {},
|
|
|
|
// },
|
|
|
|
// _code: "",
|
|
|
|
// className: "",
|
|
|
|
// onLoad: [],
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
{ |
|
|
|
_id: BASE_LAYOUT_PROP_IDS.PUBLIC, |
|
|
|
componentLibraries: ["@budibase/standard-components"], |
|
|
|
title: "{{ name }}", |
|
|
|
favicon: "./_shared/favicon.png", |
|
|
|
stylesheets: [], |
|
|
|
name: "Login", |
|
|
|
props: { |
|
|
|
_id: BASE_LAYOUT_PROP_IDS.PUBLIC, |
|
|
|
_component: "@budibase/standard-components/container", |
|
|
|
_children: [ |
|
|
|
{ |
|
|
|
_id: "7fcf11e4-6f5b-4085-8e0d-9f3d44c98967", |
|
|
|
_component: "##builtin/screenslot", |
|
|
|
_styles: { |
|
|
|
normal: { |
|
|
|
flex: "1 1 auto", |
|
|
|
display: "flex", |
|
|
|
"flex-direction": "column", |
|
|
|
"justify-content": "flex-start", |
|
|
|
"align-items": "stretch", |
|
|
|
"max-width": "100%", |
|
|
|
"margin-left": "20px", |
|
|
|
"margin-right": "20px", |
|
|
|
width: "1400px", |
|
|
|
padding: "20px", |
|
|
|
}, |
|
|
|
hover: {}, |
|
|
|
active: {}, |
|
|
|
selected: {}, |
|
|
|
}, |
|
|
|
_code: "", |
|
|
|
_children: [], |
|
|
|
}, |
|
|
|
], |
|
|
|
type: "div", |
|
|
|
_styles: { |
|
|
|
active: {}, |
|
|
|
hover: {}, |
|
|
|
normal: { |
|
|
|
display: "flex", |
|
|
|
"flex-direction": "column", |
|
|
|
"align-items": "center", |
|
|
|
"justify-content": "center", |
|
|
|
"margin-right": "auto", |
|
|
|
"margin-left": "auto", |
|
|
|
"min-height": "100%", |
|
|
|
"background-image": |
|
|
|
"linear-gradient(135deg, rgba(252,215,212,1) 20%, rgba(207,218,255,1) 100%);", |
|
|
|
}, |
|
|
|
selected: {}, |
|
|
|
}, |
|
|
|
_code: "", |
|
|
|
className: "", |
|
|
|
onLoad: [], |
|
|
|
}, |
|
|
|
}, |
|
|
|
] |
|
|
|
|
|
|
|
module.exports = { |
|
|
|
|