- 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
67 lines
1.3 KiB
XML
67 lines
1.3 KiB
XML
{
|
|
"widgettype": "VBox",
|
|
"options": {
|
|
"width": "100%",
|
|
"height": "100%",
|
|
"padding": "12px",
|
|
"border": "1px solid #334155",
|
|
"borderRadius": "8px",
|
|
"bgcolor": "#1E293B",
|
|
"cursor": "pointer"
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "HBox",
|
|
"options": {
|
|
"width": "100%",
|
|
"alignItems": "center"
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "Text",
|
|
"options": {
|
|
"text": "{{item.name}}",
|
|
"fontSize": "16px",
|
|
"fontWeight": "600",
|
|
"color": "#F8FAFC"
|
|
}
|
|
},
|
|
{
|
|
"widgettype": "Filler"
|
|
},
|
|
{
|
|
"widgettype": "Text",
|
|
"options": {
|
|
"text": "{{item.last_active}}",
|
|
"fontSize": "12px",
|
|
"color": "#94A3B8"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"widgettype": "Text",
|
|
"options": {
|
|
"text": "{{item.model}}",
|
|
"fontSize": "14px",
|
|
"color": "#CBD5E1",
|
|
"marginTop": "4px"
|
|
}
|
|
}
|
|
],
|
|
"binds": [
|
|
{
|
|
"wid": "self",
|
|
"event": "click",
|
|
"actiontype": "urlwidget",
|
|
"target": "app.main-content",
|
|
"options": {
|
|
"url": "{{entire_url('session_detail.ui')}}",
|
|
"params": {
|
|
"session_id": "{{item.id}}"
|
|
}
|
|
},
|
|
"mode": "replace"
|
|
}
|
|
]
|
|
} |