- Move all JS files from wwwroot/scripts/ to wwwroot/ root directory to comply with ahserver requirements - Fix component registration: use bricks.Factory.register() instead of bricks.register() - Fix function registration: use bricks.RF.register() instead of bricks.registerFunction() - Update UI files to use item_template_url with external templates for List components - Add proper list item template files (session-list-item.ui, service-list-item.ui, model-list-item.ui) - Ensure all custom components and functions use correct bricks framework API
78 lines
1.8 KiB
XML
78 lines
1.8 KiB
XML
{
|
|
"widgettype": "VBox",
|
|
"options": {
|
|
"width": "100%",
|
|
"height": "100%",
|
|
"padding": "20px"
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "Text",
|
|
"options": {
|
|
"text": "Connected Services",
|
|
"fontSize": "24px",
|
|
"fontWeight": "bold",
|
|
"color": "#F8FAFC",
|
|
"marginBottom": "20px"
|
|
}
|
|
},
|
|
{
|
|
"widgettype": "HBox",
|
|
"options": {
|
|
"width": "100%",
|
|
"marginBottom": "20px",
|
|
"alignItems": "center"
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "UiStr",
|
|
"id": "service-search",
|
|
"options": {
|
|
"name": "service-search",
|
|
"placeholder": "Search services...",
|
|
"width": "300px",
|
|
"icon": "fa fa-search"
|
|
}
|
|
},
|
|
{
|
|
"widgettype": "Filler"
|
|
},
|
|
{
|
|
"widgettype": "Button",
|
|
"options": {
|
|
"icon": "fa fa-plus",
|
|
"label": "Add Service",
|
|
"bgcolor": "#22C55E",
|
|
"color": "#FFFFFF",
|
|
"border": "none",
|
|
"borderRadius": "6px",
|
|
"padding": "8px 16px"
|
|
},
|
|
"binds": [
|
|
{
|
|
"wid": "self",
|
|
"event": "click",
|
|
"actiontype": "urlwidget",
|
|
"target": "app.main-content",
|
|
"options": {
|
|
"url": "{{entire_url('add_service.ui')}}"
|
|
},
|
|
"mode": "replace"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"widgettype": "List",
|
|
"id": "services-list",
|
|
"options": {
|
|
"width": "100%",
|
|
"height": "calc(100% - 100px)",
|
|
"itemHeight": "100px",
|
|
"data_url": "/hermes-web-cli/services/list/",
|
|
"item_template_url": "{{entire_url('service-list-item.ui')}}"
|
|
}
|
|
}
|
|
]
|
|
} |