mirror of https://github.com/Budibase/budibase.git
38 changed files with 1078 additions and 558 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,20 @@ |
|||
{ |
|||
"name": "Application Root", |
|||
"inherits": "@budibase/standard-components/nav", |
|||
"props": { |
|||
"items": [ |
|||
{ |
|||
"title": "Yeo index", |
|||
"component": { |
|||
"_component": "tables/Yeo index Table" |
|||
} |
|||
}, |
|||
{ |
|||
"title": "everyones_invoices", |
|||
"component": { |
|||
"_component": "tables/everyones_invoices Table" |
|||
} |
|||
} |
|||
] |
|||
} |
|||
} |
|||
@ -0,0 +1,11 @@ |
|||
{ |
|||
"name": "common/H1", |
|||
"description": "Header 1", |
|||
"inherits": "@budibase/standard-components/text", |
|||
"props": { |
|||
"font": "29pt" |
|||
}, |
|||
"tags": [ |
|||
"" |
|||
] |
|||
} |
|||
@ -0,0 +1,8 @@ |
|||
{ |
|||
"name": "common/H2", |
|||
"description": "Header 2", |
|||
"inherits": "@budibase/standard-components/text", |
|||
"props": { |
|||
"font": "15pt" |
|||
} |
|||
} |
|||
@ -0,0 +1,8 @@ |
|||
{ |
|||
"name": "common/H3", |
|||
"description": "Header 3", |
|||
"inherits": "@budibase/standard-components/text", |
|||
"props": { |
|||
"font": "12pt bold" |
|||
} |
|||
} |
|||
@ -0,0 +1,8 @@ |
|||
{ |
|||
"name": "common/H4", |
|||
"description": "Header 4", |
|||
"inherits": "@budibase/standard-components/text", |
|||
"props": { |
|||
"font": "10pt bold" |
|||
} |
|||
} |
|||
@ -0,0 +1,83 @@ |
|||
{ |
|||
"name": "customer Form", |
|||
"description": "All fields on record '/customers/1-{id}' ", |
|||
"inherits": "@budibase/standard-components/stackpanel", |
|||
"props": { |
|||
"direction": "vertical", |
|||
"children": [ |
|||
{ |
|||
"control": { |
|||
"_component": "common/H1", |
|||
"value": "Edit customer" |
|||
} |
|||
}, |
|||
{ |
|||
"control": { |
|||
"_component": "@budibase/standard-components/form", |
|||
"formControls": [ |
|||
{ |
|||
"label": "name", |
|||
"control": { |
|||
"_component": "@budibase/standard-components/textbox", |
|||
"value": { |
|||
"##bbstate": "currentcustomer.name", |
|||
"##bbstatefallback": "mike", |
|||
"##bbsource": "store" |
|||
}, |
|||
"hideValue": false, |
|||
"className": "default" |
|||
} |
|||
} |
|||
] |
|||
} |
|||
}, |
|||
{ |
|||
"control": { |
|||
"_component": "@budibase/standard-components/stackpanel", |
|||
"direction": "horizontal", |
|||
"children": [ |
|||
{ |
|||
"control": { |
|||
"_component": "@budibase/standard-components/panel", |
|||
"padding": "20px", |
|||
"component": { |
|||
"_component": "common/Primary Button", |
|||
"contentText": "Save customer", |
|||
"onClick": [ |
|||
{ |
|||
"##eventHandlerType": "Save Record", |
|||
"parameters": { |
|||
"statePath": "currentcustomer" |
|||
} |
|||
} |
|||
] |
|||
} |
|||
} |
|||
}, |
|||
{ |
|||
"control": { |
|||
"_component": "@budibase/standard-components/panel", |
|||
"padding": "20px", |
|||
"component": { |
|||
"_component": "common/Secondary Button", |
|||
"contentText": "Cancel", |
|||
"onClick": [ |
|||
{ |
|||
"##eventHandlerType": "Save Record", |
|||
"parameters": { |
|||
"statePath": "currentcustomer" |
|||
} |
|||
} |
|||
] |
|||
} |
|||
} |
|||
} |
|||
] |
|||
} |
|||
} |
|||
] |
|||
}, |
|||
"tags": [ |
|||
"" |
|||
] |
|||
} |
|||
@ -0,0 +1,77 @@ |
|||
{ |
|||
"name": "invoiceyooo Form", |
|||
"description": "All fields on record '/customers/1-{id}/invoices/2-{id}' ", |
|||
"inherits": "@budibase/standard-components/stackpanel", |
|||
"props": { |
|||
"direction": "vertical", |
|||
"children": [ |
|||
{ |
|||
"control": { |
|||
"_component": "common/H1", |
|||
"value": "Edit invoiceyooo" |
|||
} |
|||
}, |
|||
{ |
|||
"control": { |
|||
"_component": "@budibase/standard-components/form", |
|||
"formControls": [ |
|||
{ |
|||
"label": "amount", |
|||
"control": { |
|||
"_component": "@budibase/standard-components/textbox", |
|||
"value": { |
|||
"##bbstate": "currentinvoiceyooo.amount", |
|||
"##bbsource": "store" |
|||
} |
|||
} |
|||
} |
|||
] |
|||
} |
|||
}, |
|||
{ |
|||
"control": { |
|||
"_component": "@budibase/standard-components/stackpanel", |
|||
"direction": "horizontal", |
|||
"children": [ |
|||
{ |
|||
"control": { |
|||
"_component": "@budibase/standard-components/panel", |
|||
"padding": "20px", |
|||
"component": { |
|||
"_component": "common/Primary Button", |
|||
"contentText": "Save invoiceyooo", |
|||
"onClick": [ |
|||
{ |
|||
"##eventHandlerType": "Save Record", |
|||
"parameters": { |
|||
"statePath": "currentinvoiceyooo" |
|||
} |
|||
} |
|||
] |
|||
} |
|||
} |
|||
}, |
|||
{ |
|||
"control": { |
|||
"_component": "@budibase/standard-components/panel", |
|||
"padding": "20px", |
|||
"component": { |
|||
"_component": "common/Secondary Button", |
|||
"contentText": "Cancel", |
|||
"onClick": [ |
|||
{ |
|||
"##eventHandlerType": "Save Record", |
|||
"parameters": { |
|||
"statePath": "currentinvoiceyooo" |
|||
} |
|||
} |
|||
] |
|||
} |
|||
} |
|||
} |
|||
] |
|||
} |
|||
} |
|||
] |
|||
} |
|||
} |
|||
@ -0,0 +1,54 @@ |
|||
{ |
|||
"name": "tables/Yeo index Table", |
|||
"inherits": "@budibase/standard-components/table", |
|||
"props": { |
|||
"data": { |
|||
"##bbstate": "/Yeo index", |
|||
"##bbsource": "store" |
|||
}, |
|||
"columns": [ |
|||
{ |
|||
"title": "id", |
|||
"value": { |
|||
"##bbstate": "id", |
|||
"##bbsource": "context" |
|||
} |
|||
}, |
|||
{ |
|||
"title": "isNew", |
|||
"value": { |
|||
"##bbstate": "isNew", |
|||
"##bbsource": "context" |
|||
} |
|||
}, |
|||
{ |
|||
"title": "key", |
|||
"value": { |
|||
"##bbstate": "key", |
|||
"##bbsource": "context" |
|||
} |
|||
}, |
|||
{ |
|||
"title": "name", |
|||
"value": { |
|||
"##bbstate": "name", |
|||
"##bbsource": "context" |
|||
} |
|||
}, |
|||
{ |
|||
"title": "type", |
|||
"value": { |
|||
"##bbstate": "type", |
|||
"##bbsource": "context" |
|||
} |
|||
}, |
|||
{ |
|||
"title": "sortKey", |
|||
"value": { |
|||
"##bbstate": "sortKey", |
|||
"##bbsource": "context" |
|||
} |
|||
} |
|||
] |
|||
} |
|||
} |
|||
@ -0,0 +1,54 @@ |
|||
{ |
|||
"name": "tables/everyones_invoices Table", |
|||
"inherits": "@budibase/standard-components/table", |
|||
"props": { |
|||
"data": { |
|||
"##bbstate": "/everyones_invoices", |
|||
"##bbsource": "store" |
|||
}, |
|||
"columns": [ |
|||
{ |
|||
"title": "amount", |
|||
"value": { |
|||
"##bbstate": "amount", |
|||
"##bbsource": "context" |
|||
} |
|||
}, |
|||
{ |
|||
"title": "id", |
|||
"value": { |
|||
"##bbstate": "id", |
|||
"##bbsource": "context" |
|||
} |
|||
}, |
|||
{ |
|||
"title": "isNew", |
|||
"value": { |
|||
"##bbstate": "isNew", |
|||
"##bbsource": "context" |
|||
} |
|||
}, |
|||
{ |
|||
"title": "key", |
|||
"value": { |
|||
"##bbstate": "key", |
|||
"##bbsource": "context" |
|||
} |
|||
}, |
|||
{ |
|||
"title": "type", |
|||
"value": { |
|||
"##bbstate": "type", |
|||
"##bbsource": "context" |
|||
} |
|||
}, |
|||
{ |
|||
"title": "sortKey", |
|||
"value": { |
|||
"##bbstate": "sortKey", |
|||
"##bbsource": "context" |
|||
} |
|||
} |
|||
] |
|||
} |
|||
} |
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue