mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-12-03 00:00:58 +00:00
fix(frontend): stabilize select text and hide empty token values
Hide empty token values while preserving their labels and layout. Align the UI dependency, lockfile, and submodule with the select font-weight fix. Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
"build:source": "vue-tsc -p tsconfig.source.json --noEmit && vite build --mode source"
|
||||
},
|
||||
"dependencies": {
|
||||
"@codex-proxy/ui": "github:zyycn/codex-proxy-ui#09de193d1f1ff785b07713e0ccea98d35ebb0222",
|
||||
"@codex-proxy/ui": "github:zyycn/codex-proxy-ui#fb50a673cda3eb3537f79894c8460492036fc263",
|
||||
"@fontsource-variable/inter": "^5.3.0",
|
||||
"@fontsource-variable/jetbrains-mono": "^5.3.0",
|
||||
"@lobehub/icons-vue": "1.2.0",
|
||||
|
||||
Generated
+5
-5
@@ -192,8 +192,8 @@ importers:
|
||||
.:
|
||||
dependencies:
|
||||
'@codex-proxy/ui':
|
||||
specifier: github:zyycn/codex-proxy-ui#09de193d1f1ff785b07713e0ccea98d35ebb0222
|
||||
version: https://codeload.github.com/zyycn/codex-proxy-ui/tar.gz/09de193d1f1ff785b07713e0ccea98d35ebb0222(axios@1.21.1(debug@4.4.3))(change-case@5.4.4)(jiti@2.7.0)(postcss@8.5.30)(vite@8.4.0(@types/node@26.6.11)(jiti@2.7.0)(yaml@2.9.0))(vue@3.5.46(typescript@6.0.3))(yaml@2.9.0)
|
||||
specifier: github:zyycn/codex-proxy-ui#fb50a673cda3eb3537f79894c8460492036fc263
|
||||
version: https://codeload.github.com/zyycn/codex-proxy-ui/tar.gz/fb50a673cda3eb3537f79894c8460492036fc263(axios@1.21.1(debug@4.4.3))(change-case@5.4.4)(jiti@2.7.0)(postcss@8.5.30)(vite@8.4.0(@types/node@26.6.11)(jiti@2.7.0)(yaml@2.9.0))(vue@3.5.46(typescript@6.0.3))(yaml@2.9.0)
|
||||
'@fontsource-variable/inter':
|
||||
specifier: ^5.3.0
|
||||
version: 5.3.0
|
||||
@@ -451,8 +451,8 @@ packages:
|
||||
resolution: {integrity: sha512-dlT1m5e/0yUL0kRNcQn7yGLVThkgbB0Ga/1AmfDDC/8ik6AIiSf2QLQO2zPYvefsHP0aFgxO93cVLCCfDp7kzQ==}
|
||||
engines: {node: '>= 20.12.0'}
|
||||
|
||||
'@codex-proxy/ui@https://codeload.github.com/zyycn/codex-proxy-ui/tar.gz/09de193d1f1ff785b07713e0ccea98d35ebb0222':
|
||||
resolution: {gitHosted: true, integrity: sha512-LQmVPnJgE6dHwQcKRpcJ3lS5uzyEVvugcfr4+kwbBU2VnoMcMII27oi/ukYXMUil73gvjX42OFwwCA16Y1HMyg==, tarball: https://codeload.github.com/zyycn/codex-proxy-ui/tar.gz/09de193d1f1ff785b07713e0ccea98d35ebb0222}
|
||||
'@codex-proxy/ui@https://codeload.github.com/zyycn/codex-proxy-ui/tar.gz/fb50a673cda3eb3537f79894c8460492036fc263':
|
||||
resolution: {gitHosted: true, integrity: sha512-7lqRAsGfhijCuM0r/meBJEvw+SldiO+/GH/Bb93pLBzvdnj3xfgXnocv7EvHffLwMZky/qE1ENDFQh+nje4U9Q==, tarball: https://codeload.github.com/zyycn/codex-proxy-ui/tar.gz/fb50a673cda3eb3537f79894c8460492036fc263}
|
||||
version: 0.14.0
|
||||
engines: {node: '>=24'}
|
||||
peerDependencies:
|
||||
@@ -3559,7 +3559,7 @@ snapshots:
|
||||
fast-wrap-ansi: 0.2.2
|
||||
sisteransi: 1.0.5
|
||||
|
||||
'@codex-proxy/ui@https://codeload.github.com/zyycn/codex-proxy-ui/tar.gz/09de193d1f1ff785b07713e0ccea98d35ebb0222(axios@1.21.1(debug@4.4.3))(change-case@5.4.4)(jiti@2.7.0)(postcss@8.5.30)(vite@8.4.0(@types/node@26.6.11)(jiti@2.7.0)(yaml@2.9.0))(vue@3.5.46(typescript@6.0.3))(yaml@2.9.0)':
|
||||
'@codex-proxy/ui@https://codeload.github.com/zyycn/codex-proxy-ui/tar.gz/fb50a673cda3eb3537f79894c8460492036fc263(axios@1.21.1(debug@4.4.3))(change-case@5.4.4)(jiti@2.7.0)(postcss@8.5.30)(vite@8.4.0(@types/node@26.6.11)(jiti@2.7.0)(yaml@2.9.0))(vue@3.5.46(typescript@6.0.3))(yaml@2.9.0)':
|
||||
dependencies:
|
||||
'@ant-design/colors': 8.0.1
|
||||
'@ant-design/fast-color': 3.0.1
|
||||
|
||||
@@ -93,31 +93,31 @@ const modelUsageColumns = computed(() => (defineTableColumns<AccountModelUsage>(
|
||||
<div class="grid gap-2 xl:min-h-0 xl:flex-1 xl:grid-rows-5">
|
||||
<div class="flex items-center justify-between rounded-lg bg-z-green-container px-3 py-2">
|
||||
<span class="text-z-sm font-bold text-z-green-on-container">{{ t('accounts.usage.input') }}</span>
|
||||
<strong class="font-mono text-z text-z-text">
|
||||
<strong class="font-mono text-z text-z-text" :class="{ invisible: (account.usage.inputTokens ?? 0) <= 0 }">
|
||||
{{ account.usage.inputTokensDisplay }}
|
||||
</strong>
|
||||
</div>
|
||||
<div class="flex items-center justify-between rounded-lg bg-z-orange-container px-3 py-2">
|
||||
<span class="text-z-sm font-bold text-z-orange-on-container">{{ t('accounts.usage.output') }}</span>
|
||||
<strong class="font-mono text-z text-z-text">
|
||||
<strong class="font-mono text-z text-z-text" :class="{ invisible: (account.usage.outputTokens ?? 0) <= 0 }">
|
||||
{{ account.usage.outputTokensDisplay }}
|
||||
</strong>
|
||||
</div>
|
||||
<div class="flex items-center justify-between rounded-lg bg-z-cyan-container px-3 py-2">
|
||||
<span class="text-z-sm font-bold text-z-cyan-on-container">{{ t('accounts.usage.cacheRead') }}</span>
|
||||
<strong class="font-mono text-z text-z-text">
|
||||
<strong class="font-mono text-z text-z-text" :class="{ invisible: (account.usage.cachedInputTokens ?? 0) <= 0 }">
|
||||
{{ account.usage.cachedInputTokensDisplay }}
|
||||
</strong>
|
||||
</div>
|
||||
<div class="flex items-center justify-between rounded-lg bg-z-blue-container px-3 py-2">
|
||||
<span class="text-z-sm font-bold text-z-blue-on-container">{{ t('accounts.usage.reasoning') }}</span>
|
||||
<strong class="font-mono text-z text-z-text">
|
||||
<strong class="font-mono text-z text-z-text" :class="{ invisible: (account.usage.reasoningOutputTokens ?? 0) <= 0 }">
|
||||
{{ account.usage.reasoningOutputTokensDisplay }}
|
||||
</strong>
|
||||
</div>
|
||||
<div class="flex items-center justify-between rounded-lg bg-z-blue-container px-3 py-2">
|
||||
<span class="text-z-sm font-bold text-z-blue-on-container">{{ t('accounts.usage.total') }}</span>
|
||||
<strong class="font-mono text-z text-z-text">
|
||||
<strong class="font-mono text-z text-z-text" :class="{ invisible: (account.usage.totalTokens ?? 0) <= 0 }">
|
||||
{{ account.usage.totalTokensDisplay }}
|
||||
</strong>
|
||||
</div>
|
||||
|
||||
+1
-1
Submodule modules/ui updated: 09de193d1f...fb50a673cd
Reference in New Issue
Block a user