102 lines
3.2 KiB
XML

{
"widgettype": "VBox",
"options": {
"width": "100%",
"height": "100%",
"padding": "20px",
"bgcolor": "#f0f2f5"
},
"subwidgets": [
{
"widgettype": "Text",
"options": {
"text": "Dashboard",
"fontSize": "24px",
"fontWeight": "bold",
"color": "#333",
"marginBottom": "20px"
}
},
{
"widgettype": "ResponsableBox",
"options": {
"gap": "16px",
"minWidth": "250px"
},
"subwidgets": [
{
"widgettype": "RefreshWidget",
"id": "refresh_today_usage",
"options": {
"period_seconds": 10,
"url": "{{entire_url('today_usage.ui')}}"
}
},
{
"widgettype": "RefreshWidget",
"id": "refresh_today_amount",
"options": {
"period_seconds": 10,
"url": "{{entire_url('today_amount.ui')}}"
}
},
{
"widgettype": "RefreshWidget",
"id": "refresh_total_users",
"options": {
"period_seconds": 10,
"url": "{{entire_url('total_users.ui')}}"
}
},
{
"widgettype": "RefreshWidget",
"id": "refresh_concurrent_users",
"options": {
"period_seconds": 10,
"url": "{{entire_url('concurrent_users.ui')}}"
}
},
{
"widgettype": "RefreshWidget",
"id": "refresh_accounting_errors",
"options": {
"period_seconds": 10,
"url": "{{entire_url('accounting_errors.ui')}}"
}
}
]
},
{
"widgettype": "VBox",
"options": {
"bgcolor": "#FFFFFF",
"padding": "24px",
"borderRadius": "8px",
"marginTop": "20px",
"minHeight": "350px",
"boxShadow": "0 2px 8px rgba(0,0,0,0.1)"
},
"subwidgets": [
{
"widgettype": "Text",
"options": {
"text": "Top 3 模型(今日)",
"fontSize": "18px",
"fontWeight": "bold",
"color": "#333",
"marginBottom": "16px"
}
},
{
"widgettype": "RefreshWidget",
"id": "refresh_top_models_chart",
"options": {
"period_seconds": 10,
"url": "{{entire_url('top_models_chart.ui')}}"
}
}
]
}
]
}