- Add get_active_users_today(), get_new_users_month(), get_total_orgs() to load_dashboard.py - Create stat_active_users.ui, stat_new_users_month.ui, stat_total_orgs.ui widgets - Add active users card to main stats row - Add new row with new users this month and total organizations cards
53 lines
1.6 KiB
XML
53 lines
1.6 KiB
XML
{
|
|
"widgettype": "VBox",
|
|
"options": {
|
|
"bgcolor": "#1E293B",
|
|
"padding": "20px",
|
|
"borderRadius": "12px",
|
|
"border": "1px solid #334155",
|
|
"flex": "1",
|
|
"minHeight": "110px"
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "HBox",
|
|
"options": {
|
|
"alignItems": "center",
|
|
"marginBottom": "12px"
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "Svg",
|
|
"options": {
|
|
"svg": "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#8B5CF6\" stroke-width=\"2\"><path d=\"M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.375c0-.621.504-1.125 1.125-1.125h3.75c.621 0 1.125.504 1.125 1.125V21\"/></svg>",
|
|
"width": "24px",
|
|
"height": "24px"
|
|
}
|
|
},
|
|
{
|
|
"widgettype": "Filler"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"widgettype": "Text",
|
|
"options": {
|
|
"text": "{{get_total_orgs(request)}}",
|
|
"fontSize": "32px",
|
|
"fontWeight": "700",
|
|
"color": "#F1F5F9",
|
|
"lineHeight": "1.1"
|
|
}
|
|
},
|
|
{
|
|
"widgettype": "Text",
|
|
"options": {
|
|
"text": "组织机构数",
|
|
"fontSize": "14px",
|
|
"color": "#94A3B8",
|
|
"marginTop": "4px"
|
|
}
|
|
}
|
|
]
|
|
}
|