chore(i18n,ui): 全站冗长文案精简 + shadcn 样板汉化 + 一致性修复
- 文案:约 25 组长文案中英同步精简(数据源引导/RBAC 注解/采集提示/删除确认等),三处重复 Ingress 教学收敛 - 汉化 shadcn 样板:分页 Previous/Next/aria、弹窗与抽屉 Close 接入 i18n(common.ui.*) - 一致性:查询授权面板 p-4、仪表盘卡片 p-6、分析卡头 pb-3、部署总数图标配色、 每日统计错误可重试、策略卡/最近部署行 truncate、状态徽章字重、三处原生 checkbox 换 shadcn、Label 浏览器圆角 - 词典:删除无引用的 raw.*/views.* 死键;zh 复数键风格统一(importCount/hits) - 快捷查询提示、Ingress 统计口径与表内说明按反馈删减
This commit is contained in:
1 parent
2da0a2bece
commit
3a8eb521e2
34 files changed
+162
-240
No files matched your search
@@ -13,6 +13,7 @@ import { Button } from '@/components/ui/button'
|
||||
import { Dialog, DialogContent, DialogHeader, DialogTitle } from '@/components/ui/dialog'
|
||||
import { Form, FormControl, FormField, FormItem, FormLabel, FormMessage } from '@/components/ui/form'
|
||||
import { Input } from '@/components/ui/input'
|
||||
import { Checkbox } from '@/components/ui/checkbox'
|
||||
import type { Collector } from '@/types'
|
||||
|
||||
// 表单 schema:错误消息经 t 注入(随语言重建,RHF 每次渲染刷新 resolver)
|
||||
@@ -153,7 +154,7 @@ export const CollectorEditDialog = memo(function CollectorEditDialog({ collector
|
||||
{nsError && <p className="text-xs text-destructive">{nsError}</p>}
|
||||
<div className="rounded-md border">
|
||||
<label className="flex items-center gap-2 border-b px-3 py-2 text-sm font-medium cursor-pointer hover:bg-muted/50">
|
||||
<input type="checkbox" checked={allSelected} onChange={setAll} />
|
||||
<Checkbox checked={allSelected} onCheckedChange={() => setAll()} />
|
||||
{t('edit.allCheckbox')}
|
||||
</label>
|
||||
<div className="p-2">
|
||||
|
||||
Reference in new issue
Block a user