- 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
81 lines
2.1 KiB
XML
81 lines
2.1 KiB
XML
{
|
|
"widgettype": "VBox",
|
|
"options": {
|
|
"width": "100%",
|
|
"height": "100%"
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "Text",
|
|
"options": {
|
|
"text": "Hermes Service Settings",
|
|
"fontSize": "24px",
|
|
"fontWeight": "bold"
|
|
}
|
|
},
|
|
{
|
|
"widgettype": "TabPanel",
|
|
"options": {
|
|
"tab_pos": "top",
|
|
"items": [
|
|
{
|
|
"name": "services",
|
|
"label": "服务管理",
|
|
"content": {
|
|
"widgettype": "DataViewer",
|
|
"options": {
|
|
"data_url": "/api/hermes-web-cli/services",
|
|
"page_rows": 10,
|
|
"row_options": {
|
|
"fields": [
|
|
{
|
|
"name": "name",
|
|
"label": "服务名称",
|
|
"uitype": "str"
|
|
},
|
|
{
|
|
"name": "service_url",
|
|
"label": "服务地址",
|
|
"uitype": "str"
|
|
},
|
|
{
|
|
"name": "status",
|
|
"label": "状态",
|
|
"uitype": "str"
|
|
}
|
|
]
|
|
},
|
|
"editable": {
|
|
"add_icon": "fa fa-plus",
|
|
"update_icon": "fa fa-edit",
|
|
"delete_icon": "fa fa-trash"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "security",
|
|
"label": "安全设置",
|
|
"content": {
|
|
"widgettype": "Form",
|
|
"options": {
|
|
"fields": [
|
|
{
|
|
"name": "require_https",
|
|
"label": "强制HTTPS",
|
|
"uitype": "check"
|
|
},
|
|
{
|
|
"name": "api_key_encryption",
|
|
"label": "API密钥加密存储",
|
|
"uitype": "check"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
} |