@ -504,243 +504,24 @@
"condition" : "context.record.type === \"user\" && context.record.createdByMaster === true"
}
] ,
"actions" : {
"initialise_instance" : {
"actions" : [
{
"name" : "initialise_instance" ,
"behaviourSource" : "main" ,
"behaviourName" : "initialiseInstance" ,
"initialOptions" : { }
} ,
"create_user" : {
{
"name" : "create_user" ,
"behaviourSource" : "main" ,
"behaviourName" : "createNewUser" ,
"initialOptions" : { }
} ,
"set_default_version" : {
{
"name" : "set_default_version" ,
"behaviourSource" : "main" ,
"behaviourName" : "setDefaultVersion" ,
"initialOptions" : { }
}
} ,
"props" : {
"main" : {
"_component" : "@budibase/standard-components/stackpanel" ,
"direction" : "horizontal" ,
"children" : [
{
"_component" : "children#array_element#" ,
"control" : {
"_component" : "@budibase/standard-components/panel" ,
"text" : "Create New" ,
"component" : {
"_component" : ""
} ,
"containerClass" : "" ,
"background" : "" ,
"border" : "1px solid black" ,
"borderRadius" : "2px" ,
"font" : "" ,
"color" : "" ,
"padding" : "10px" ,
"margin" : "20px" ,
"hoverColor" : "" ,
"hoverBackground" : "gainsboro" ,
"height" : "100px" ,
"width" : "100px" ,
"onClick" : [
{
"##eventHandlerType" : "Get New Record" ,
"parameters" : {
"collectionKey" : "/applications" ,
"childRecordType" : "application" ,
"statePath" : "currentApplication"
}
}
] ,
"display" : "inline"
}
}
] ,
"width" : "auto" ,
"height" : "auto" ,
"containerClass" : "" ,
"itemContainerClass" : "" ,
"data" : {
"##bbstate" : "allApplications" ,
"##bbsource" : "store"
} ,
"dataItemComponent" : {
"_component" : "@budibase/standard-components/panel" ,
"text" : "" ,
"component" : {
"_component" : "@budibase/standard-components/stackpanel" ,
"direction" : "horizontal" ,
"children" : [
{
"_component" : "children#array_element#" ,
"control" : {
"_component" : "@budibase/standard-components/text" ,
"value" : "" ,
"containerClass" : "" ,
"font" : "" ,
"color" : "" ,
"textAlign" : "inline" ,
"verticalAlign" : "inline" ,
"display" : "inline"
}
}
] ,
"width" : "auto" ,
"height" : "auto" ,
"containerClass" : "" ,
"itemContainerClass" : "" ,
"data" : {
"##bbstate" : ""
} ,
"dataItemComponent" : {
"_component" : ""
} ,
"onLoad" : [ ]
} ,
"containerClass" : "" ,
"background" : "" ,
"border" : "1px solid dimgray" ,
"borderRadius" : "2px" ,
"font" : "" ,
"color" : "black" ,
"padding" : "10px" ,
"margin" : "20px" ,
"hoverColor" : "" ,
"hoverBackground" : "" ,
"height" : "" ,
"width" : "" ,
"onClick" : [
{
"##eventHandlerType" : "Load Record" ,
"parameters" : {
"recordKey" : {
"##bbstate" : "key" ,
"##bbsource" : "context"
} ,
"statePath" : "currentApp"
}
}
] ,
"display" : "inline"
} ,
"onLoad" : [
{
"##eventHandlerType" : "List Records" ,
"parameters" : {
"indexKey" : "/all_applications" ,
"statePath" : "allApplications"
}
}
] ,
"component" : {
"_component" : "@budibase/standard-components/stackpanel" ,
"direction" : "horizontal" ,
"children" : [
{
"_component" : "#children#array_element" ,
"control" : {
"_component" : "@budibase/standard-components/text" ,
"value" : "" ,
"containerClass" : "" ,
"font" : "" ,
"color" : "" ,
"textAlign" : "inline" ,
"verticalAlign" : "inline" ,
"display" : "inline"
}
}
] ,
"width" : "auto" ,
"height" : "auto" ,
"containerClass" : "" ,
"itemContainerClass" : "" ,
"data" : {
"##bbstate" : "allApplications" ,
"##bbsource" : "store"
} ,
"dataItemComponent" : {
"_component" : "apps/Application List Item" ,
"text" : {
"##bbstate" : "name" ,
"##bbstatefallback" : "My App Name" ,
"##bbsource" : "context"
} ,
"component" : {
"_component" : "@budibase/standard-components/stackpanel" ,
"direction" : "horizontal" ,
"children" : [
{
"_component" : "#children#array_element" ,
"control" : {
"_component" : "@budibase/standard-components/text" ,
"value" : "" ,
"containerClass" : "" ,
"font" : "" ,
"color" : "" ,
"textAlign" : "inline" ,
"verticalAlign" : "inline" ,
"display" : "inline"
}
}
] ,
"width" : "auto" ,
"height" : "auto" ,
"containerClass" : "" ,
"itemContainerClass" : "" ,
"data" : {
"##bbstate" : "allApplications" ,
"##bbsource" : "store"
} ,
"dataItemComponent" : {
"_component" : ""
} ,
"onLoad" : [ ]
} ,
"containerClass" : "" ,
"background" : "" ,
"border" : "1px solid dimgray" ,
"borderRadius" : "2px" ,
"font" : "" ,
"color" : "black" ,
"padding" : "10px" ,
"margin" : "20px" ,
"hoverColor" : "" ,
"hoverBackground" : "" ,
"height" : "" ,
"width" : "" ,
"onClick" : [
{
"##eventHandlerType" : "Load Record" ,
"parameters" : {
"recordKey" : {
"##bbstate" : "key" ,
"##bbsource" : "context"
} ,
"statePath" : "currentApplication"
}
}
] ,
"display" : ""
} ,
"onLoad" : [ ]
}
} ,
"unauthenticated" : {
"_component" : "@budibase/standard-components/login" ,
"logo" : "_shared/budibase-logo.png" ,
"loginRedirect" : "" ,
"usernameLabel" : "Username" ,
"passwordLabel" : "Password" ,
"loginButtonLabel" : "Login" ,
"buttonClass" : "" ,
"inputClass" : ""
}
}
]
}