hermes-web-cli/wwwroot/service-detail.ui
yumoqing 8836aee98d fix: Correct bricks-framework component usage and add comprehensive examples
- Replace invalid 'Page' and 'Card' components with valid bricks components (VBox, HBox, Filler, etc.)
- Add comprehensive examples for all major bricks components in examples/ directory
- Update hermes-web-cli UI files to use correct component hierarchy
- Include examples for: VBox, HBox, Filler, ResponsableBox, Form, Button, Text, Modal, TabPanel, DataViewer, Tree, Image, VideoPlayer, Input, LLMOut
- Follow proper bricks-framework JSON structure with widgettype, options, subwidgets
- Ensure all examples are production-ready and follow module development specifications
2026-04-21 13:45:12 +08:00

101 lines
2.2 KiB
XML

{
"widgettype": "VBox",
"options": {
"width": "100%",
"height": "100%"
},
"subwidgets": [
{
"widgettype": "Text",
"options": {
"text": "Service Details",
"fontSize": "24px",
"fontWeight": "bold"
}
},
{
"widgettype": "Form",
"options": {
"data_source": "/api/hermes-web-cli/services/{{params_kw.get('service_id')}}",
"fields": [
{
"name": "name",
"label": "服务名称",
"uitype": "str",
"required": true
},
{
"name": "service_url",
"label": "服务地址",
"uitype": "str",
"required": true
},
{
"name": "api_key",
"label": "API密钥",
"uitype": "password"
},
{
"name": "description",
"label": "描述",
"uitype": "text"
},
{
"name": "status",
"label": "状态",
"uitype": "str"
}
]
}
},
{
"widgettype": "HBox",
"subwidgets": [
{
"widgettype": "Filler"
},
{
"widgettype": "Button",
"options": {
"text": "测试连接"
},
"binds": [
{
"wid": "self",
"event": "click",
"actiontype": "urlwidget",
"target": "@DataViewer",
"options": {
"url": "{{entire_url('test-connection.ui')}}",
"params": {
"service_id": "{{params_kw.get('service_id')}}"
}
}
}
]
},
{
"widgettype": "Button",
"options": {
"text": "保存"
}
},
{
"widgettype": "Button",
"options": {
"text": "取消"
},
"binds": [
{
"wid": "self",
"event": "click",
"actiontype": "method",
"target": "-@Modal",
"method": "dismiss"
}
]
}
]
}
]
}