mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-11-06 08:06:19 +00:00
fix(frontend): align theme preview data and input hints
Match the supplied Codex Desktop identity reference and avoid undefined verification labels. Remove ellipses from input placeholders while preserving OAuth callback URL examples. Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -91,7 +91,7 @@ function connectionLogClass(tone: string) {
|
||||
aria-label="测试模型"
|
||||
:options="modelOptions"
|
||||
:disabled="status === 'running' || loadingModels || refreshingModels"
|
||||
:placeholder="loadingModels ? '加载模型中...' : '选择上游模型'"
|
||||
:placeholder="loadingModels ? '加载模型中' : '选择上游模型'"
|
||||
empty-text="上游没有返回模型"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -111,9 +111,10 @@ const releaseStatus = computed(() => {
|
||||
}
|
||||
})
|
||||
|
||||
const verifiedLabel = computed(() =>
|
||||
profile.value?.verifiedAt ? `画像核验 ${profile.value.verifiedAtDisplay}` : undefined,
|
||||
)
|
||||
const verifiedLabel = computed(() => {
|
||||
const verifiedAt = profile.value?.verifiedAtDisplay
|
||||
return verifiedAt ? `画像核验 ${verifiedAt}` : undefined
|
||||
})
|
||||
|
||||
const checkedLabel = computed(() => {
|
||||
const checkedAt = profile.value?.release?.checkedAtDisplay
|
||||
|
||||
@@ -22,7 +22,7 @@ const status = defineModel<string>('status', { required: true })
|
||||
v-model="search"
|
||||
class="sm:w-80"
|
||||
aria-label="搜索账号分组"
|
||||
placeholder="搜索分组名称..."
|
||||
placeholder="搜索分组名称"
|
||||
>
|
||||
<template #prefix>
|
||||
<Search class="size-4.5 text-cp-text-tertiary" />
|
||||
|
||||
@@ -79,7 +79,7 @@ const description = computed(() => props.group
|
||||
v-model="form.description"
|
||||
aria-label="分组描述"
|
||||
:rows="4"
|
||||
placeholder="说明这个分组的用途..."
|
||||
placeholder="说明这个分组的用途"
|
||||
:disabled="saving"
|
||||
/>
|
||||
</ZFormItem>
|
||||
|
||||
@@ -304,7 +304,7 @@ defineExpose({ validationError })
|
||||
:model-value="identity.clientKeyId"
|
||||
:options="keyOptions"
|
||||
:disabled="disabled || loadingKeys"
|
||||
:placeholder="loadingKeys ? '加载中…' : keysFailed ? '加载失败,请重试' : '选择客户端 Key'"
|
||||
:placeholder="loadingKeys ? '加载中' : keysFailed ? '加载失败,请重试' : '选择客户端 Key'"
|
||||
empty-text="暂无客户端 Key"
|
||||
class="w-full min-w-0"
|
||||
@update:model-value="updateIdentity(index, { clientKeyId: $event })"
|
||||
|
||||
@@ -70,7 +70,7 @@ watch([open, () => props.proxy?.id], () => {
|
||||
<template>
|
||||
<ZDialog v-model="open" title="关联账号" :description="description" width="48rem" :show-close="!removing" :close-on-click-modal="!removing" :close-on-press-escape="!removing">
|
||||
<div class="flex min-h-0 flex-col">
|
||||
<ZInput v-model="search" class="mb-4 shrink-0 sm:w-80" :disabled="removing" aria-label="搜索关联账号" placeholder="搜索账号名称或邮箱...">
|
||||
<ZInput v-model="search" class="mb-4 shrink-0 sm:w-80" :disabled="removing" aria-label="搜索关联账号" placeholder="搜索账号名称或邮箱">
|
||||
<template #prefix>
|
||||
<Search class="size-4.5 text-cp-text-tertiary" />
|
||||
</template>
|
||||
|
||||
@@ -71,7 +71,7 @@ watch(search, () => {
|
||||
<ZCard class="mt-5 flex h-[calc(100dvh-136px)] min-h-125 flex-col">
|
||||
<template #header>
|
||||
<div class="flex w-full flex-col gap-3 sm:flex-row sm:items-center">
|
||||
<ZInput v-model="search" :disabled="batchTesting" class="sm:w-80" aria-label="搜索代理" placeholder="搜索代理名称...">
|
||||
<ZInput v-model="search" :disabled="batchTesting" class="sm:w-80" aria-label="搜索代理" placeholder="搜索代理名称">
|
||||
<template #prefix>
|
||||
<Search class="size-4.5 text-cp-text-tertiary" />
|
||||
</template>
|
||||
|
||||
@@ -274,26 +274,26 @@ export const themeDashboardSummary: DashboardSummaryResponse = {
|
||||
wireProfiles: [
|
||||
{
|
||||
provider: 'openai',
|
||||
product: 'Codex CLI',
|
||||
version: '0.34.0',
|
||||
build: '20260820',
|
||||
product: 'Codex Desktop',
|
||||
version: '0.163.0-alpha.10.2',
|
||||
target: {
|
||||
osType: 'Mac OS',
|
||||
osVersion: '15.6',
|
||||
osVersion: '27.0.1',
|
||||
arch: 'arm64',
|
||||
terminal: 'iTerm.app',
|
||||
terminal: '—',
|
||||
},
|
||||
userAgent: 'codex_cli_rs/0.34.0',
|
||||
userAgent: 'codex_cli_rs/0.163.0-alpha.10.2 (Mac OS 27.0.1; arm64) Codex Desktop; 26.1013.40934',
|
||||
attributes: [
|
||||
{ label: '客户端标识', value: 'codex_cli_rs' },
|
||||
{ label: '客户端标识', value: 'Codex Desktop; 26.1013.40934' },
|
||||
{ label: 'Token 认证', value: 'bearer' },
|
||||
],
|
||||
verifiedAt: '2026-08-23T10:28:00+08:00',
|
||||
verifiedAt: '2026-10-17T20:15:28+08:00',
|
||||
verifiedAtDisplay: '2026-10-17 20:15:28',
|
||||
release: {
|
||||
status: 'aligned',
|
||||
checkedAt: '2026-08-23T10:30:00+08:00',
|
||||
latestVersion: '0.34.0',
|
||||
latestBuild: '20260820',
|
||||
checkedAt: '2026-10-17T22:27:13+08:00',
|
||||
checkedAtDisplay: '2026-10-17 22:27:13',
|
||||
latestVersion: '0.163.0-alpha.10.2',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -312,9 +312,11 @@ export const themeDashboardSummary: DashboardSummaryResponse = {
|
||||
{ label: 'Token 认证', value: 'bearer' },
|
||||
],
|
||||
verifiedAt: '2026-08-23T10:25:00+08:00',
|
||||
verifiedAtDisplay: '2026-08-23 10:25:00',
|
||||
release: {
|
||||
status: 'review_required',
|
||||
checkedAt: '2026-08-23T10:30:00+08:00',
|
||||
checkedAtDisplay: '2026-08-23 10:30:00',
|
||||
latestVersion: '0.7.4',
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user