feat(usage): show 30-minute trend ticks and restore light theme

This commit is contained in:
lzt404 committed 2026-09-15 02:39:03 +08:00
1 parent accb93c75c
commit 8f52a08177
12 files changed
+466 -403

No files matched your search

+2 -1
View File
@@ -242,6 +242,7 @@ export const jaOverrides = {
'app.nav.quota': 'クォータ照会',
'app.nav.usageRecords': '使用履歴',
'app.nav.agents': 'エージェント設定',
'app.nav.lockedHint': 'まずホームでコアサービスを起動してください',
'app.coreRequired.title': '先にコアを起動してください',
'app.coreRequired.description': '設定、OAuth、API 接続などを使用するには CPA コアを起動してください。',
'app.contact.title': 'QQ でお問い合わせ',
@@ -468,6 +469,7 @@ export const jaOverrides = {
'usage.token.cacheRead': 'キャッシュ読み取り',
'usage.token.cacheCreation': 'キャッシュ作成',
'usage.trend.aria': 'Token の推移図。マウスまたは矢印キーで各時間帯とモデルの内訳を確認できます。',
'usage.trend.bucket.30m': '30 分ごとに表示',
'usage.trend.bucket.hour': '1 時間ごとに表示',
'usage.trend.bucket.3h': '3 時間ごとに集計',
'usage.trend.bucket.day': '日ごとに集計',
@@ -475,7 +477,6 @@ export const jaOverrides = {
'usage.trend.bucket.month': '月ごとに集計',
'usage.trend.bucket.year': '年ごとに集計',
'usage.trend.other': 'その他',
'usage.trend.star': '主星',
'usage.trend.tooltip.tokens': 'Token',
'usage.analysis.models': 'モデル使用量',
'usage.analysis.sources': 'リクエスト元',
+2 -1
View File
@@ -191,6 +191,7 @@ export const en: Record<MessageKey, string> = {
'app.nav.quota': 'Quota Lookup',
'app.nav.usageRecords': 'Usage',
'app.nav.agents': 'Agent Configuration',
'app.nav.lockedHint': 'Please start the core service on Home first',
'app.coreRequired.title': 'Start the core first',
'app.coreRequired.description': 'Start the CPA core to use settings, OAuth, API access, and other features.',
'app.contact.title': 'Contact us on QQ',
@@ -456,6 +457,7 @@ export const en: Record<MessageKey, string> = {
'usage.token.cacheRead': 'Cache Read',
'usage.token.cacheCreation': 'Cache Creation',
'usage.trend.aria': 'Token trend chart. Hover or use arrow keys to inspect each bucket and model.',
'usage.trend.bucket.30m': 'Shown every 30 minutes',
'usage.trend.bucket.hour': 'Shown by hour',
'usage.trend.bucket.3h': 'Grouped every 3 hours',
'usage.trend.bucket.day': 'Grouped by day',
@@ -463,7 +465,6 @@ export const en: Record<MessageKey, string> = {
'usage.trend.bucket.month': 'Grouped by month',
'usage.trend.bucket.year': 'Grouped by year',
'usage.trend.other': 'Other',
'usage.trend.star': 'Lead',
'usage.trend.tooltip.tokens': 'Tokens',
'usage.analysis.models': 'Model Usage',
'usage.analysis.sources': 'Request Sources',
+2 -1
View File
@@ -190,6 +190,7 @@ export const zhCN = {
'app.nav.quota': '额度查询',
'app.nav.usageRecords': '使用记录',
'app.nav.agents': '智能体配置',
'app.nav.lockedHint': '请先在首页启动内核服务',
'app.coreRequired.title': '请先启动内核',
'app.coreRequired.description': '启动 CPA 内核后,才能使用配置、OAuth、API 接入等功能。',
'app.contact.title': '通过 QQ 联系我们',
@@ -455,6 +456,7 @@ export const zhCN = {
'usage.token.cacheRead': '缓存读取',
'usage.token.cacheCreation': '缓存创建',
'usage.trend.aria': 'Token 趋势图,可悬停或用方向键查看各时段和模型明细',
'usage.trend.bucket.30m': '按 30 分钟展示',
'usage.trend.bucket.hour': '按小时展示',
'usage.trend.bucket.3h': '按 3 小时聚合',
'usage.trend.bucket.day': '按天聚合',
@@ -462,7 +464,6 @@ export const zhCN = {
'usage.trend.bucket.month': '按月聚合',
'usage.trend.bucket.year': '按年聚合',
'usage.trend.other': '其他',
'usage.trend.star': '主星',
'usage.trend.tooltip.tokens': 'Token',
'usage.analysis.models': '模型使用',
'usage.analysis.sources': '请求来源',