ragserver/wwwroot/index.ui
yumoqing d9440440c4 feat: add DSPY handlers and index.ui
- init.py: status, kb_list, engines, search, ingest handlers
- app/ragserver.py: load appbase + rbac + ragserver handlers
- config.json: register API startswiths routes
- wwwroot/index.ui: home page with nav buttons
2026-07-21 17:03:04 +08:00

121 lines
3.9 KiB
XML

{
"widgettype": "VBox",
"options": {
"css": "rag-home",
"align": "center",
"padding": "20px"
},
"subwidgets": [
{
"widgettype": "Text",
"options": {
"text": "RAG Server — 多媒体知识库平台",
"css": "rag-title",
"i18n": false
}
},
{
"widgettype": "Text",
"options": {
"text": "支持文本、图片、音频、视频文件的智能检索与知识管理",
"css": "rag-subtitle",
"i18n": false
}
},
{
"widgettype": "HBox",
"options": {
"align": "center",
"gap": "16px",
"padding": "30px"
},
"subwidgets": [
{
"widgettype": "Button",
"options": {
"label": "知识库管理",
"bgcolor": "#4a90d9"
},
"binds": [
{
"wid": "self",
"event": "tap",
"actiontype": "urlwidget",
"target": "app.rag_main",
"mode": "replace",
"options": {
"url": "{{entire_url('/knowledge_bases_list/index.ui')}}"
}
}
]
},
{
"widgettype": "Button",
"options": {
"label": "文档管理",
"bgcolor": "#50b86c"
},
"binds": [
{
"wid": "self",
"event": "tap",
"actiontype": "urlwidget",
"target": "app.rag_main",
"mode": "replace",
"options": {
"url": "{{entire_url('/documents_list/index.ui')}}"
}
}
]
},
{
"widgettype": "Button",
"options": {
"label": "引擎配置",
"bgcolor": "#e6a23c"
},
"binds": [
{
"wid": "self",
"event": "tap",
"actiontype": "urlwidget",
"target": "app.rag_main",
"mode": "replace",
"options": {
"url": "{{entire_url('/engine_configs_list/index.ui')}}"
}
}
]
},
{
"widgettype": "Button",
"options": {
"label": "订阅管理",
"bgcolor": "#f56c6c"
},
"binds": [
{
"wid": "self",
"event": "tap",
"actiontype": "urlwidget",
"target": "app.rag_main",
"mode": "replace",
"options": {
"url": "{{entire_url('/subscriptions_list/index.ui')}}"
}
}
]
}
]
},
{
"widgettype": "VBox",
"options": {
"id": "rag_main",
"padding": "20px"
},
"subwidgets": []
}
]
}