mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-11-21 16:01:32 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user