Compare commits

..
4 Commits
Author SHA1 Message Date
ZyyandCodex bda21ccc61 chore: bump version to 3.3.8
Co-authored-by: Codex <noreply@openai.com>
2026-08-30 03:38:03 +08:00
ZyyandCodex 72c56680b9 fix(frontend): polish interface presentation
Co-authored-by: Codex <noreply@openai.com>
2026-08-30 03:37:35 +08:00
ZyyandCodex a6808499f0 chore: bump version to 3.3.7
Co-authored-by: Codex <noreply@openai.com>
2026-08-30 02:24:41 +08:00
ZyyandCodex fdb954b3d1 fix(frontend): refine semantic theme states
Co-authored-by: Codex <noreply@openai.com>
2026-08-30 02:23:29 +08:00
13 changed files with 21 additions and 23 deletions
@@ -238,7 +238,7 @@ onBeforeUnmount(() => {
<p
v-if="description"
:id="descriptionId"
class="mt-2 mb-0 text-cp leading-[1.45] font-semibold text-cp-text-secondary"
class="mt-1 mb-0 text-cp leading-[1.45] font-semibold text-cp-text-secondary"
>
{{ description }}
</p>
@@ -184,7 +184,7 @@ function sortButtonLabel(column: ResolvedTableColumn<Row>) {
</script>
<template>
<div class="flex h-full min-h-0 w-full max-w-full flex-col overflow-hidden">
<div class="isolate flex h-full min-h-0 w-full max-w-full flex-col overflow-hidden">
<div v-loading="loading" class="relative flex min-h-0 max-w-full flex-1 overflow-hidden">
<BaseScrollbar
v-if="hasRows"
@@ -342,14 +342,14 @@ onBeforeUnmount(() => {
class="inline-flex h-4.5 min-w-0 cursor-pointer items-center gap-1 rounded-cp-sm border-0 px-1.5 font-mono text-[10px] leading-none font-bold transition-colors outline-none focus-visible:ring-2 focus-visible:ring-cp-control-outline focus-visible:ring-offset-2 focus-visible:ring-offset-cp-bg-container"
:class="[
hasUpdate
? 'bg-cp-info-bg text-cp-info-text hover:bg-cp-info-bg-hover'
? 'bg-cp-success-bg text-cp-success-text hover:bg-cp-success-bg-hover'
: 'bg-cp-fill-quaternary text-cp-text-quaternary hover:bg-cp-fill-tertiary hover:text-cp-text-secondary',
]"
:title="updateButtonLabel"
@click="openSystemUpdate"
>
<span>{{ versionLabel }}</span>
<ArrowUpCircle v-if="hasUpdate" class="size-3 shrink-0 text-cp-info" />
<ArrowUpCircle v-if="hasUpdate" class="size-3 shrink-0 text-cp-success" />
</button>
</span>
</span>
@@ -408,7 +408,7 @@ onBeforeUnmount(() => {
<div class="flex items-center" :class="isCollapsed ? 'grid gap-1' : 'gap-1'">
<BaseIconButton
v-if="isCollapsed && hasUpdate"
variant="primary"
variant="success"
size="md"
:label="updateButtonLabel"
@click="openSystemUpdate"
@@ -197,6 +197,10 @@ watch(
size="lg"
:dismissible="!updating && !restarting"
>
<template #icon>
<ArrowUpCircle class="size-4.5 text-cp-success" />
</template>
<div class="grid gap-3.5">
<section class="grid gap-4 rounded-cp-card bg-cp-fill-quaternary px-4 py-4">
<div class="flex flex-wrap items-center justify-between gap-3">
@@ -26,7 +26,7 @@ const toneClasses: Record<MetricTone, string> = {
secondary: 'text-cp-text-secondary',
success: 'text-cp-success-text',
warning: 'text-cp-warning',
active: 'text-cp-primary-text',
active: 'text-cp-success',
}
const metrics = computed<MetricItem[]>(() => {
+1 -1
View File
@@ -147,7 +147,7 @@ export function modelSuccessRateTextClass(successRate: number | null) {
if (successRate >= 99.5)
return 'text-cp-success-text'
if (successRate >= 98)
return 'text-cp-info-text'
return 'text-cp-cyan-text'
if (successRate >= 95)
return 'text-cp-warning-text'
return 'text-cp-error-text'
@@ -221,7 +221,7 @@ const statusBars = computed(() => {
</p>
<div
class="mt-5 flex w-full flex-col gap-2 overflow-hidden xl:mt-6.75 xl:h-82.5 xl:gap-1.5"
class="mt-5 flex w-full flex-col gap-2 overflow-hidden xl:mt-6.75 xl:h-82.5 xl:gap-2.5"
>
<BaseEmpty
v-if="accounts.length === 0"
@@ -233,7 +233,7 @@ const statusBars = computed(() => {
<article
v-for="account in accounts"
:key="account.id"
class="grid w-full shrink-0 grid-cols-1 gap-3 rounded-xl bg-cp-fill-alter/70 px-3.5 py-3.5 transition-colors xl:h-19.5 xl:grid-cols-[minmax(0,1fr)_minmax(70px,0.36fr)_minmax(74px,0.38fr)_minmax(82px,0.46fr)] xl:items-center xl:gap-4 xl:py-0"
class="grid w-full shrink-0 grid-cols-1 gap-3 rounded-xl bg-cp-fill-alter/70 px-3.5 py-3.5 transition-colors xl:h-18.75 xl:grid-cols-[minmax(0,1fr)_minmax(70px,0.36fr)_minmax(74px,0.38fr)_minmax(82px,0.46fr)] xl:items-center xl:gap-4 xl:py-0"
>
<AccountIdentityCell
:account="account"
@@ -113,7 +113,7 @@ const metricItems = outcomeMeta
<div
v-for="item in metricItems"
:key="item.label"
class="grid grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-2 rounded-cp bg-cp-fill-quaternary px-2.5 py-2.5"
class="grid grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-2 rounded-cp bg-cp-fill-tertiary px-2.5 py-2.5"
>
<span class="size-1.5 rounded-full" :class="item.dotClass" />
<span class="truncate text-[10px] leading-none font-emphasis text-cp-text-secondary">
@@ -108,7 +108,7 @@ const releaseStatus = computed(() => {
return {
label: '待检查',
title: '尚未检查官方发布渠道',
tone: 'bg-cp-info-bg text-cp-info-text',
tone: 'bg-cp-cyan-bg text-cp-cyan-text-on-bg',
icon: RefreshCw,
}
})
@@ -270,12 +270,12 @@ function metricCards(
{
label: '可用',
value: credentials.available,
tone: credentials.availableValue > 0 ? 'success' : 'normal',
tone: 'success',
},
{
label: '不可用',
value: credentials.unavailable,
tone: credentials.unavailableValue > 0 ? 'danger' : 'normal',
tone: 'danger',
},
],
},
@@ -56,12 +56,6 @@ const emit = defineEmits<{
暂无模型映射
</div>
<div v-else class="grid gap-3">
<div class="grid grid-cols-[1fr_auto_1fr_auto] items-center gap-3 px-1 text-cp-sm font-bold text-cp-text-quaternary">
<span>请求模型</span>
<span />
<span>上游模型</span>
<span />
</div>
<div
v-for="(row, index) in mappings"
:key="index"
@@ -69,14 +63,14 @@ const emit = defineEmits<{
>
<BaseInput
:model-value="row.requestedModel"
placeholder="gpt-5.4"
placeholder="请求模型"
aria-label="请求模型"
@update:model-value="emit('updateMapping', index, 'requestedModel', $event)"
/>
<span class="text-cp-text-quaternary">→</span>
<BaseInput
:model-value="row.upstreamModel"
placeholder="gpt-5.5"
placeholder="上游模型"
aria-label="上游模型名称"
@update:model-value="emit('updateMapping', index, 'upstreamModel', $event)"
/>
@@ -45,7 +45,7 @@ const items = computed(() => [
icon: Timer,
value: averageLatencyDisplay(props.summary.averageLatencyMs),
detail: '成功请求平均值',
tone: 'bg-cp-primary-bg text-cp-primary-text',
tone: 'bg-cp-cyan-bg text-cp-cyan-text-on-bg',
},
])
</script>
+1 -1
View File
@@ -1 +1 @@
version: "3.3.6"
version: "3.3.8"