Merge the two "by Model" pies (Token Usage + API Requests) into one
dual-pie card with a shared right-side vertical legend and per-donut
center totals, drop the standalone API-Key Top 10 chart, and put the
combined chart side-by-side with the User Top 10 ranking in one row
with the same 16/8 column ratio used by the System Load section above.
* New component usage-charts/usage-by-model.tsx owns both metric queries
(group_by=['date','route']), aggregates a shared route→color map so
the legend toggles both donuts together, and renders two pies at
centers ('20%','50%') and ('60%','50%') with radius ['50%','70%'].
* new-usage.tsx no longer mounts ApiRequestsByModel / TokenUsageByModel
/ TopTokenUsageByApiKey; layout collapses to two columns sized
(lg=24 xl=16) and (lg=24 xl=8).
* Delete unused token-usage-by-model.tsx, api-requests-by-model.tsx,
top-token-usage-by-api-key.tsx, and the use-top-token-usage-by-api-key
hook.
* Strip the now-unreferenced dashboard.tokenUsageByModel /
apiRequestsByModel / topTokenUsageByApiKey locale keys across 5
locales, add the new dashboard.usageByModel title; locale parity
check passes.
31 lines
1.3 KiB
TypeScript
31 lines
1.3 KiB
TypeScript
export default {
|
|
'dashboard.workers': '节点',
|
|
'dashboard.deployments': '部署',
|
|
'dashboard.clusters': '集群',
|
|
'dashboard.totalgpus': 'GPUs',
|
|
'dashboard.systemload': '系统负载',
|
|
'dashboard.memory': '内存',
|
|
'dashboard.vram': '显存',
|
|
'dashboard.cpuutilization': '平均 CPU 利用率',
|
|
'dashboard.memoryutilization': '平均内存利用率',
|
|
'dashboard.vramutilization': '平均显存利用率',
|
|
'dashboard.gpuutilization': '平均 GPU 利用率',
|
|
'dashboard.usage': '使用量',
|
|
'dashboard.tokens': 'Token 使用量',
|
|
'dashboard.topusers': '用户排行',
|
|
'dashboard.activeDeployments': '活跃部署',
|
|
'dashboard.usageByModel': '按模型统计使用量',
|
|
'dashboard.topTokenUsageByUser': '用户 Token 使用量 Top 10',
|
|
'dashboard.allocatevram': '已分配显存 / 内存',
|
|
'dashboard.usage.selectuser': '选择用户',
|
|
'dashboard.usage.selectmodel': '选择模型',
|
|
'dashboard.usage.export': '导出数据',
|
|
'dashboard.usage.export.user': '用户',
|
|
'dashboard.usage.export.model': '模型',
|
|
'dashboard.usage.export.date': '日期',
|
|
'dashboard.usage.datePicker.last7days': '最近 7 天',
|
|
'dashboard.usage.datePicker.last30days': '最近 30 天',
|
|
'dashboard.usage.datePicker.last60days': '最近 60 天',
|
|
'dashboard.usage.datePicker.last90days': '最近 90 天'
|
|
};
|