- 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
93 lines
2.2 KiB
XML
93 lines
2.2 KiB
XML
{
|
|
"widgettype": "VBox",
|
|
"options": {
|
|
"width": "100%",
|
|
"height": "100%",
|
|
"padding": "16px",
|
|
"border": "1px solid #334155",
|
|
"borderRadius": "8px",
|
|
"bgcolor": "#1E293B",
|
|
"marginBottom": "12px"
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "UiStr",
|
|
"options": {
|
|
"name": "model-name",
|
|
"label": "Model Name",
|
|
"value": "{{item.name}}",
|
|
"width": "100%",
|
|
"marginBottom": "8px"
|
|
}
|
|
},
|
|
{
|
|
"widgettype": "UiStr",
|
|
"options": {
|
|
"name": "provider",
|
|
"label": "Provider",
|
|
"value": "{{item.provider}}",
|
|
"width": "100%",
|
|
"marginBottom": "8px"
|
|
}
|
|
},
|
|
{
|
|
"widgettype": "HBox",
|
|
"options": {
|
|
"width": "100%",
|
|
"gap": "12px"
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "Button",
|
|
"options": {
|
|
"label": "Update",
|
|
"bgcolor": "#3B82F6",
|
|
"color": "#FFFFFF",
|
|
"border": "none",
|
|
"borderRadius": "4px",
|
|
"padding": "6px 12px",
|
|
"fontSize": "12px"
|
|
},
|
|
"binds": [
|
|
{
|
|
"wid": "self",
|
|
"event": "click",
|
|
"actiontype": "registerfunction",
|
|
"target": "self",
|
|
"rfname": "update_model",
|
|
"params": {
|
|
"model_id": "{{item.id}}",
|
|
"model_name": "{{item.name}}",
|
|
"model_provider": "{{item.provider}}"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"widgettype": "Button",
|
|
"options": {
|
|
"label": "Remove",
|
|
"bgcolor": "#EF4444",
|
|
"color": "#FFFFFF",
|
|
"border": "none",
|
|
"borderRadius": "4px",
|
|
"padding": "6px 12px",
|
|
"fontSize": "12px"
|
|
},
|
|
"binds": [
|
|
{
|
|
"wid": "self",
|
|
"event": "click",
|
|
"actiontype": "registerfunction",
|
|
"target": "self",
|
|
"rfname": "remove_model",
|
|
"params": {
|
|
"model_id": "{{item.id}}"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |