fix: DataViewer pages + remove _list from gitignore

This commit is contained in:
yumoqing 2026-07-22 16:01:00 +08:00
parent 03d4d70edd
commit 73b0a78b98
5 changed files with 88 additions and 1 deletions

1
.gitignore vendored
View File

@ -9,7 +9,6 @@ __pycache__/
# Build artifacts
wwwroot/bricks/
wwwroot/*_list/
mysql.ddl.sql
models/mysql.ddl.sql

View File

@ -0,0 +1,22 @@
{
"widgettype": "VBox",
"options": {
"cheight": 40,
"width": "100%"
},
"subwidgets": [
{
"widgettype": "DataViewer",
"options": {
"data_url": "{{entire_url('/api/kb/list')}}",
"columns": [
{"field": "file_name", "title": "文件名", "width": "30%"},
{"field": "file_type", "title": "类型", "width": "15%"},
{"field": "file_size", "title": "大小", "width": "15%"},
{"field": "status", "title": "状态", "width": "15%"},
{"field": "created_at", "title": "上传时间", "width": "25%"}
]
}
}
]
}

View File

@ -0,0 +1,22 @@
{
"widgettype": "VBox",
"options": {
"cheight": 40,
"width": "100%"
},
"subwidgets": [
{
"widgettype": "DataViewer",
"options": {
"data_url": "{{entire_url('/api/engines')}}",
"columns": [
{"field": "engine_type", "title": "引擎类型", "width": "20%"},
{"field": "engine_name", "title": "名称", "width": "20%"},
{"field": "endpoint_url", "title": "服务地址", "width": "30%"},
{"field": "model_name", "title": "模型", "width": "15%"},
{"field": "status", "title": "状态", "width": "15%"}
]
}
}
]
}

View File

@ -0,0 +1,22 @@
{
"widgettype": "VBox",
"options": {
"cheight": 40,
"width": "100%"
},
"subwidgets": [
{
"widgettype": "DataViewer",
"options": {
"data_url": "{{entire_url('/api/kb/list')}}",
"columns": [
{"field": "name", "title": "名称", "width": "25%"},
{"field": "description", "title": "描述", "width": "35%"},
{"field": "doc_count", "title": "文档数", "width": "10%"},
{"field": "embedding_engine", "title": "向量引擎", "width": "15%"},
{"field": "created_at", "title": "创建时间", "width": "15%"}
]
}
}
]
}

View File

@ -0,0 +1,22 @@
{
"widgettype": "VBox",
"options": {
"cheight": 40,
"width": "100%"
},
"subwidgets": [
{
"widgettype": "DataViewer",
"options": {
"data_url": "{{entire_url('/api/kb/list')}}",
"columns": [
{"field": "plan_name", "title": "套餐", "width": "20%"},
{"field": "disk_quota_bytes", "title": "磁盘配额", "width": "20%"},
{"field": "disk_used_bytes", "title": "已用磁盘", "width": "20%"},
{"field": "doc_used", "title": "文档数", "width": "20%"},
{"field": "status", "title": "状态", "width": "20%"}
]
}
}
]
}