feat: 优化仪表盘数据展示和用户体验

- 优化实时TPM显示格式,添加智能单位(K/M)
- 折线图tooltip添加token数单位格式化
- API Keys使用趋势图增加USD金额计算和显示
- 实现鼠标悬浮时数据倒序展示,前3名添加🥇🥈🥉标识
- 后端API添加费用计算支持
- 删除测试脚本,保持代码整洁

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
shaw
2025-07-30 15:07:05 +08:00
parent 21461863af
commit 321be986a6
4 changed files with 102 additions and 84 deletions

View File

@@ -1073,7 +1073,7 @@ class RedisClient {
totalCacheReadTokens
};
logger.debug(`🔍 Realtime metrics - Final result:`, result);
logger.debug('🔍 Realtime metrics - Final result:', result);
return result;
} catch (error) {