feat(frontend): add reactive localization and refine admin layouts (#501)

* feat(frontend): add English and Traditional Chinese locales

* fix(frontend): capitalize the English login key label

* fix(frontend): capitalize standalone English labels

* feat(frontend): add reactive localization and refine admin layouts

Replace DOM text translation with domain-based Vue I18n resources for English, Simplified Chinese, and Traditional Chinese. Localize shared controls, notifications, charts, and key usage while refining table alignment, menus, and compact labels.

Expose semantic usage-window and trend-metric identifiers from the API. Pin the UI and workbench dependencies to published feature commits and preserve the original font defaults.

Co-authored-by: Codex <noreply@openai.com>

---------

Co-authored-by: Jimbb <14995924+jimbb@users.noreply.github.com>
Co-authored-by: Zyy <zyycn@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Jimbb
2026-10-23 11:40:38 +08:00
committed by GitHub
co-authored by Codex Jimbb Zyy
parent 8fc8c6228d
commit 39b35d46a0
363 changed files with 15479 additions and 3795 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ export interface AccountModelUsage {
}
export interface AccountUsage {
windowLabelDisplay: string
windowKind: 'general' | 'weekly' | 'monthly' | 'quota'
requestCount: number | null
requestCountDisplay: string
inputTokens: number | null
+6 -1
View File
@@ -42,8 +42,13 @@ export interface DashboardTrendPoint {
capacityUtilization: number | null
}
export type DashboardTrendMetric
= 'inputTokens' | 'outputTokens' | 'cachedInputTokens'
| 'firstTokenP95Ms' | 'latencyP95Ms' | 'outputThroughputP50'
| 'errors' | 'successRate' | 'requests'
export interface DashboardTrendSummaryItem {
label: string
metric: DashboardTrendMetric
value: string
ratio: string | null
}
-13
View File
@@ -9,11 +9,6 @@ export interface KeyUsageConfig {
plaintextKey: string
}
export interface KeyUsageVersion {
version: string
gitSha: string
}
export interface KeyUsageMetrics {
requests: number
inputTokens: number
@@ -109,14 +104,6 @@ export function getKeyUsageOverview(data: KeyUsageQuery, options: RequestOptions
})
}
export function getKeyUsageVersion(options: RequestOptions = {}) {
return request<KeyUsageVersion>({
url: '/api/key-usage/version',
method: 'GET',
...options,
})
}
export function getKeyUsageConfig(options: RequestOptions = {}) {
return request<KeyUsageConfig>({
url: '/api/key-usage/config',