1
0
Fork 0
mirror of synced 2024-09-17 09:49:11 +12:00
budibase/packages/server/appPackages/_master/pages/main/screens/Manage App.json
2020-02-26 15:59:27 +00:00

292 lines
9.2 KiB
JSON

{
"name": "Manage App",
"description": "",
"url": "",
"uiFunctions": "",
"props": {
"_component": "@budibase/standard-components/container",
"_styles": {
"position": {},
"layout": {}
},
"_id": "981e9bcc-a672-4c98-b78d-1b107a380fee",
"_code": "const routeId = route && route.id ? route.id : \"(no route)\"\n\nconst newcontext = {\n instancesKey: `/applications/${routeId}/allinstances`,\n newInstanceUrl: `/application/${routeId}/newinstance`,\n}\n\nrender(newcontext)",
"className": "",
"onLoad": [
{
"##eventHandlerType": "List Records",
"parameters": {
"indexKey": "context.instancesKey",
"statePath": "instances"
}
}
],
"type": "div",
"backgroundColor": "",
"color": "",
"borderWidth": "",
"borderColor": "",
"borderStyle": "none",
"_children": [
{
"_component": "@budibase/materialdesign-components/H3",
"_styles": {
"position": {},
"layout": {}
},
"_id": "eb288d6b-d5e6-4b13-92c9-31953114cae4",
"_code": "",
"text": "Application Instances",
"_children": []
},
{
"_component": "@budibase/materialdesign-components/Button",
"_styles": {
"position": {
"row": [
"",
""
],
"column": [
"",
""
],
"padding": [
"",
"",
"",
""
],
"margin": [
"",
"",
"",
""
],
"width": [
""
],
"height": [
""
],
"zindex": [
""
]
},
"layout": {
"templatecolumns": [
""
],
"templaterows": [
""
]
}
},
"_id": "a4e41226-8dcb-4667-b70d-5a1853800ef8",
"_code": "",
"onClick": [],
"variant": "text",
"colour": "primary",
"size": "medium",
"href": "context.newInstanceUrl",
"icon": "",
"trailingIcon": false,
"fullwidth": false,
"text": "Create New instance",
"disabled": false
},
{
"_component": "@budibase/standard-components/container",
"_styles": {
"position": {
"column": [
"",
""
],
"row": [
"",
""
],
"margin": [
"",
"",
"",
""
],
"padding": [
"",
"",
"",
""
],
"height": [
"20px"
],
"width": [
""
],
"zindex": [
""
]
},
"layout": {
"templaterows": [
""
],
"templatecolumns": [
""
]
}
},
"_id": "fcdaab55-ad2a-40a3-9602-91e32da00e69",
"_code": "",
"className": "",
"onLoad": [],
"type": "div",
"backgroundColor": "",
"color": "",
"borderWidth": "",
"borderColor": "",
"borderStyle": "none",
"_children": []
},
{
"_component": "@budibase/materialdesign-components/Datatable",
"_children": [
{
"_component": "@budibase/materialdesign-components/DatatableHead",
"_children": [
{
"_component": "@budibase/materialdesign-components/DatatableRow",
"isHeader": true,
"_children": [
{
"_component": "@budibase/materialdesign-components/DatatableCell",
"isHeader": true,
"_children": [
{
"_component": "@budibase/standard-components/text",
"type": "none",
"text": "active",
"_id": "43b17a4a-3ed8-46f4-bb89-d8c20bd45387"
}
],
"_id": "825b4b47-1bba-4a58-ab02-25b81e02bb2a"
},
{
"_component": "@budibase/materialdesign-components/DatatableCell",
"isHeader": true,
"_children": [
{
"_component": "@budibase/standard-components/text",
"type": "none",
"text": "datastoreconfig",
"_id": "3d8e10ed-fc3a-463f-8d46-eba6a07d7ae8"
}
],
"_id": "e34bfd4b-5cc8-4680-869e-b0c1e799212d"
},
{
"_component": "@budibase/materialdesign-components/DatatableCell",
"isHeader": true,
"_children": [
{
"_component": "@budibase/standard-components/text",
"type": "none",
"text": "name",
"_id": "d62a01b9-e954-4962-a92b-a1f669c1ad0a"
}
],
"_id": "a81b5a57-9670-47c8-96d1-20b1458997ad"
},
{
"_component": "@budibase/materialdesign-components/DatatableCell",
"isHeader": true,
"_children": [
{
"_component": "@budibase/standard-components/text",
"type": "none",
"text": "version",
"_id": "5d6f4b14-ed98-440e-9adf-412625e9fb50"
}
],
"_id": "8e99113d-b570-4aa1-ac63-5cf1e9a1973b"
}
],
"_id": "155b0085-54da-4915-821b-0d6362aa9e2e"
}
],
"_id": "40db1d3e-df70-4024-b767-17b296ae2688"
},
{
"_component": "@budibase/materialdesign-components/DatatableBody",
"_children": [
{
"_code": "\nif (!state.allinstances) return\n\nfor (let allinstances_item of state.allinstances) \n render( { allinstances_item } )",
"_component": "@budibase/materialdesign-components/DatatableRow",
"_children": [
{
"_component": "@budibase/materialdesign-components/DatatableCell",
"_children": [
{
"_component": "@budibase/standard-components/text",
"type": "none",
"text": "context.allinstances_item.active",
"_id": "5601c20e-9f10-41ec-8221-16fc670ea1e4"
}
],
"_id": "f3195be2-76d4-4ecb-9327-0e12cff92b36"
},
{
"_component": "@budibase/materialdesign-components/DatatableCell",
"_children": [
{
"_component": "@budibase/standard-components/text",
"type": "none",
"text": "context.allinstances_item.datastoreconfig",
"_id": "8300947e-53cf-4e9f-9209-a9b7fa74284e"
}
],
"_id": "6c49969d-faf2-439c-93d9-616aca161ed2"
},
{
"_component": "@budibase/materialdesign-components/DatatableCell",
"_children": [
{
"_component": "@budibase/standard-components/text",
"type": "none",
"text": "context.allinstances_item.name",
"_id": "9ba84672-52ab-4602-ab33-311bd34b4004"
}
],
"_id": "3d699892-5ad8-4463-a8d7-fc2a61644be9"
},
{
"_component": "@budibase/materialdesign-components/DatatableCell",
"_children": [
{
"_component": "@budibase/standard-components/text",
"type": "none",
"text": "context.allinstances_item.version",
"_id": "9337bc93-93ea-4757-87ac-97ac7b69c575"
}
],
"_id": "e0dfb4dc-45c4-4db4-84a0-7afa5ebb82e3"
}
],
"_id": "91e964ee-a78e-468a-b80f-cad992702f87",
"_styles": {
"position": {},
"layout": {}
}
}
],
"_id": "4b353e07-30f3-4f8f-9224-40845b9f5b4f"
}
],
"_id": "19a6a5ee-1a69-471e-97f4-fbd1df65aaac"
}
]
},
"route": "/application/:id"
}