mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-27 01:19:25 +08:00
refactor(panel): extract sqlite/wire primitives, localize charts & structured status, and unify overlay/mock-dom (P2)
This commit is contained in:
@@ -523,4 +523,87 @@ export const I18N_MESSAGES_EN_US = Object.freeze({
|
||||
'settings.oth.resetConfirmBtn': 'Click Again to Confirm',
|
||||
'settings.oth.resettingBtn': 'Resetting…',
|
||||
'settings.oth.resetAllDone': 'All preferences restored to defaults',
|
||||
|
||||
// Structured Live Activity Actions
|
||||
'live.act.run_command': 'Run Command',
|
||||
'live.act.read_file': 'Read File',
|
||||
'live.act.edit_file': 'Edit File',
|
||||
'live.act.write_file': 'Write File',
|
||||
'live.act.grep_search': 'Search Code',
|
||||
'live.act.find_file': 'Find Files',
|
||||
'live.act.read_url': 'Read Web Page',
|
||||
'live.act.search_web': 'Search Web',
|
||||
'live.act.invoke_subagent': 'Invoke Subagent',
|
||||
'live.act.send_message': 'Message Subagent',
|
||||
'live.act.manage_subagents': 'Manage Subagents',
|
||||
'live.act.manage_task': 'Manage Task',
|
||||
'live.act.schedule': 'Schedule Task',
|
||||
'live.act.ask_question': 'Waiting for User Choice',
|
||||
'live.act.search_marketplace': 'Search Plugins',
|
||||
'live.act.mcp_tool': 'Call MCP Tool',
|
||||
'live.act.tool_call': 'Call Tool',
|
||||
'live.act.thinking': 'Thinking',
|
||||
'live.act.compacting': 'Compacting Context',
|
||||
'live.act.responding': 'Responding',
|
||||
'live.act.waiting_subagent': 'Waiting for Subagent',
|
||||
'live.act.starting': 'Starting',
|
||||
'live.act.done': 'Completed',
|
||||
'live.act.awaitingApproval': 'Awaiting Approval · {label}',
|
||||
'live.act.compactionResuming': 'Compaction finished, resuming reasoning',
|
||||
|
||||
// SVG Charts (SessionStepCharts & TrendAreaChart)
|
||||
'chart.step.empty': 'No plottable steps in current scope',
|
||||
'chart.step.excluded': 'Excluded',
|
||||
'chart.step.zeroSteps': '0 steps',
|
||||
'chart.step.stepAdd': 'Step +{tokens}',
|
||||
'chart.step.ioSplit': 'In {inTok} · Cache {cacheTok} · Out {outTok}',
|
||||
'chart.step.cacheShort': 'Cache {pct}%',
|
||||
'chart.step.compactionCheckpoint': 'Auto-compaction checkpoint',
|
||||
'chart.step.cacheHitOut': 'Cache hit {pct}% · Out +{outTok}',
|
||||
'chart.step.ttftShort': 'TTFT {sec}s',
|
||||
'chart.step.outAndCtx': 'Out {outTok} · Context {ctxTok}',
|
||||
'chart.step.compactionStep': 'Compaction step',
|
||||
'chart.step.noSpeedSample': 'No speed sample',
|
||||
'chart.step.ctxAndCache': 'Context {ctxTok} · Cache {pct}%',
|
||||
'chart.step.noTtftSample': 'No TTFT sample',
|
||||
'chart.step.cumCost': 'Total {cost}',
|
||||
'chart.step.cacheAndStepTok': 'Cache {pct}% · Step {tokens}',
|
||||
'chart.step.noSamples': 'No samples',
|
||||
'chart.step.peakShort': 'Peak {val}',
|
||||
'chart.step.peakPill': 'Peak {tag} · {val}',
|
||||
'chart.step.stepsCount': '{count} steps',
|
||||
'chart.step.multiPrefix': '{count} models · ',
|
||||
'chart.step.sumTokens': '{prefix}Total {tokens}',
|
||||
'chart.step.peakTokens': '{prefix}Peak {tokens}',
|
||||
'chart.step.currentCtx': 'Current {tokens}',
|
||||
'chart.step.meanTps': '{prefix}Avg {val} tok/s',
|
||||
'chart.step.meanSec': '{prefix}Avg {val}s',
|
||||
'chart.step.noValidSamples': 'No valid samples',
|
||||
'chart.step.sumCost': '{prefix}Total {cost}',
|
||||
'chart.fit.empty': 'No valid regression samples for this model',
|
||||
'chart.fit.loess': 'LOESS Fit',
|
||||
'chart.fit.olsLinear': 'OLS Linear',
|
||||
'chart.fit.olsReg': 'OLS Reg',
|
||||
'chart.fit.observed': 'Observed',
|
||||
'chart.fit.tipFit': 'Fit {val}',
|
||||
'chart.fit.tipObs': 'Obs {val}',
|
||||
'chart.fit.zeroSamples': '0 samples',
|
||||
'chart.fit.peerMean': '{label} Avg {val}',
|
||||
'chart.fit.peerCompare': 'Compare: {peers}',
|
||||
'chart.fit.curvesCount': '{count} fit curves',
|
||||
'chart.fit.multiBadge': '{steps} steps · {models} models',
|
||||
'chart.fit.singleBadge': '{steps} steps · Avg {mean}',
|
||||
'chart.fit.olsTitle': 'OLS: y = {slope}x + {intercept} · Sample SD = ±{sd}',
|
||||
'chart.trend.hmMonthYear': "{month}/{yy}",
|
||||
'chart.trend.hmMonthOnly': 'M{month}',
|
||||
'chart.trend.wdayMon': 'M',
|
||||
'chart.trend.wdayWed': 'W',
|
||||
'chart.trend.wdayFri': 'F',
|
||||
'chart.trend.wdaySun': 'S',
|
||||
'chart.trend.hmAria': 'Daily usage heatmap',
|
||||
'chart.trend.hmLess': 'Less',
|
||||
'chart.trend.hmMore': 'More',
|
||||
'chart.trend.hmActivePeak': 'Active {active}/{total}d · Peak {label} · {tokens}',
|
||||
'chart.trend.hmActiveZero': 'Active 0/{total}d',
|
||||
'chart.trend.peakPill': 'Peak {label} · {tokens}',
|
||||
});
|
||||
|
||||
@@ -523,4 +523,87 @@ export const I18N_MESSAGES_ZH_CN = Object.freeze({
|
||||
'settings.oth.resetConfirmBtn': '再次点击确认重置',
|
||||
'settings.oth.resettingBtn': '重置中…',
|
||||
'settings.oth.resetAllDone': '已恢复全部默认设置',
|
||||
|
||||
// Structured Live Activity Actions
|
||||
'live.act.run_command': '执行命令',
|
||||
'live.act.read_file': '读取文件',
|
||||
'live.act.edit_file': '修改文件',
|
||||
'live.act.write_file': '写入文件',
|
||||
'live.act.grep_search': '搜索代码',
|
||||
'live.act.find_file': '查找文件',
|
||||
'live.act.read_url': '读取网页',
|
||||
'live.act.search_web': '网页搜索',
|
||||
'live.act.invoke_subagent': '调用子代理',
|
||||
'live.act.send_message': '通信子代理',
|
||||
'live.act.manage_subagents': '管理子代理',
|
||||
'live.act.manage_task': '后台任务',
|
||||
'live.act.schedule': '定时任务',
|
||||
'live.act.ask_question': '等待用户选择',
|
||||
'live.act.search_marketplace': '查询插件',
|
||||
'live.act.mcp_tool': '调用 MCP',
|
||||
'live.act.tool_call': '调用工具',
|
||||
'live.act.thinking': '推理中',
|
||||
'live.act.compacting': '上下文压缩',
|
||||
'live.act.responding': '正在输出回复',
|
||||
'live.act.waiting_subagent': '等待子代理',
|
||||
'live.act.starting': '启动中',
|
||||
'live.act.done': '已完成',
|
||||
'live.act.awaitingApproval': '等待确认 · {label}',
|
||||
'live.act.compactionResuming': '已完成压缩,正在恢复推理',
|
||||
|
||||
// SVG Charts (SessionStepCharts & TrendAreaChart)
|
||||
'chart.step.empty': '当前范围暂无可绘制的调用步骤',
|
||||
'chart.step.excluded': '未纳入',
|
||||
'chart.step.zeroSteps': '0 步',
|
||||
'chart.step.stepAdd': '本步 +{tokens}',
|
||||
'chart.step.ioSplit': '入 {inTok} · 缓 {cacheTok} · 出 {outTok}',
|
||||
'chart.step.cacheShort': '缓存 {pct}%',
|
||||
'chart.step.compactionCheckpoint': '上下文自动压缩检查点',
|
||||
'chart.step.cacheHitOut': '缓存命中 {pct}% · 输出 +{outTok}',
|
||||
'chart.step.ttftShort': '首字 {sec}s',
|
||||
'chart.step.outAndCtx': '输出 {outTok} · 上下文 {ctxTok}',
|
||||
'chart.step.compactionStep': '上下文压缩步',
|
||||
'chart.step.noSpeedSample': '无测速样本',
|
||||
'chart.step.ctxAndCache': '上下文 {ctxTok} · 缓存 {pct}%',
|
||||
'chart.step.noTtftSample': '无首字计时样本',
|
||||
'chart.step.cumCost': '累计 {cost}',
|
||||
'chart.step.cacheAndStepTok': '缓存 {pct}% · 本步 {tokens}',
|
||||
'chart.step.noSamples': '无样本',
|
||||
'chart.step.peakShort': '峰 {val}',
|
||||
'chart.step.peakPill': '峰值 {tag} · {val}',
|
||||
'chart.step.stepsCount': '{count}步',
|
||||
'chart.step.multiPrefix': '{count} 模型 · ',
|
||||
'chart.step.sumTokens': '{prefix}累计 {tokens}',
|
||||
'chart.step.peakTokens': '{prefix}峰值 {tokens}',
|
||||
'chart.step.currentCtx': '当前 {tokens}',
|
||||
'chart.step.meanTps': '{prefix}均值 {val} tok/s',
|
||||
'chart.step.meanSec': '{prefix}均值 {val}s',
|
||||
'chart.step.noValidSamples': '暂无有效样本',
|
||||
'chart.step.sumCost': '{prefix}累计 {cost}',
|
||||
'chart.fit.empty': '该模型暂无有效拟合样本',
|
||||
'chart.fit.loess': 'LOESS 拟合',
|
||||
'chart.fit.olsLinear': 'OLS 线性',
|
||||
'chart.fit.olsReg': 'OLS 回归',
|
||||
'chart.fit.observed': '观测值',
|
||||
'chart.fit.tipFit': '拟合 {val}',
|
||||
'chart.fit.tipObs': '观测 {val}',
|
||||
'chart.fit.zeroSamples': '0 样本',
|
||||
'chart.fit.peerMean': '{label} 均 {val}',
|
||||
'chart.fit.peerCompare': '同图对比:{peers}',
|
||||
'chart.fit.curvesCount': '{count} 条拟合线',
|
||||
'chart.fit.multiBadge': '{steps}步 · {models} 模型对比',
|
||||
'chart.fit.singleBadge': '{steps}步 · 均 {mean}',
|
||||
'chart.fit.olsTitle': 'OLS: y = {slope}x + {intercept} · 样本标准差 SD = ±{sd}',
|
||||
'chart.trend.hmMonthYear': '{yy}年{month}月',
|
||||
'chart.trend.hmMonthOnly': '{month}月',
|
||||
'chart.trend.wdayMon': '一',
|
||||
'chart.trend.wdayWed': '三',
|
||||
'chart.trend.wdayFri': '五',
|
||||
'chart.trend.wdaySun': '日',
|
||||
'chart.trend.hmAria': '每日用量热力格子图',
|
||||
'chart.trend.hmLess': '少',
|
||||
'chart.trend.hmMore': '多',
|
||||
'chart.trend.hmActivePeak': '活跃 {active}/{total} 天 · 峰值 {label} · {tokens}',
|
||||
'chart.trend.hmActiveZero': '活跃 0/{total} 天',
|
||||
'chart.trend.peakPill': '峰值 {label} · {tokens}',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user