refactor(frontend): 优化功能模块组件

- 更新 api-keys 模块: StandaloneKeyFormDialog
- 改进 auth 模块: LoginDialog
- 优化 models 模块: AliasDialog, GlobalModelFormDialog, ModelDetailDrawer, TieredPricingEditor
- 重构 providers 模块: 多个表单和对话框组件
- 更新 usage 模块: 时间线、表格和详情组件
- 调整 users 模块: UserFormDialog
This commit is contained in:
fawney19
2025-12-12 16:15:36 +08:00
parent e9a6233655
commit 06c0a47b21
29 changed files with 2572 additions and 1051 deletions

View File

@@ -39,7 +39,10 @@
</option>
</select>
</template>
<span v-else class="font-medium">无上限</span>
<span
v-else
class="font-medium"
>无上限</span>
</div>
<Button
v-if="localTiers.length > 1"
@@ -53,7 +56,10 @@
</div>
<!-- 价格输入 -->
<div :class="['grid gap-3', showCache1h ? 'grid-cols-5' : 'grid-cols-4']">
<div
class="grid gap-3"
:class="[showCache1h ? 'grid-cols-5' : 'grid-cols-4']"
>
<div class="space-y-1">
<Label class="text-xs">输入 ($/M)</Label>
<Input
@@ -102,7 +108,10 @@
@update:model-value="(v) => updateCacheRead(index, v)"
/>
</div>
<div v-if="showCache1h" class="space-y-1">
<div
v-if="showCache1h"
class="space-y-1"
>
<Label class="text-xs text-muted-foreground">1h 缓存创建</Label>
<Input
:model-value="getCache1hDisplay(index)"
@@ -129,7 +138,10 @@
</Button>
<!-- 验证提示 -->
<p v-if="validationError" class="text-xs text-destructive">
<p
v-if="validationError"
class="text-xs text-destructive"
>
{{ validationError }}
</p>
</div>