style: 凭证类型清理——移除用户名密码/AK·SK/Kubeconfig 兼容项,仅保留发布所需 4 种
This commit is contained in:
1 parent
ee59706ab9
commit
67aeafac19
1 file changed
-6
@@ -6,10 +6,8 @@ import {
|
||||
Copy,
|
||||
Trash2,
|
||||
Edit2,
|
||||
Shield,
|
||||
GitBranch,
|
||||
Container,
|
||||
Cloud,
|
||||
Boxes,
|
||||
Loader2,
|
||||
KeyRound,
|
||||
@@ -28,10 +26,6 @@ const typeConfig: Record<string, { icon: typeof Key; label: string; color: strin
|
||||
docker: { icon: Container, label: 'Docker 认证', color: '#1a7f37', bg: '#dafbe1' },
|
||||
git: { icon: GitBranch, label: 'Git 仓库', color: '#8250df', bg: '#fbefff' },
|
||||
kubernetes: { icon: Boxes, label: 'Kubernetes', color: '#bc4c00', bg: '#fff1e5' },
|
||||
// 旧类型仅作历史数据展示,不再提供新建
|
||||
password: { icon: Shield, label: '用户名密码', color: '#9a6700', bg: '#fff8c5' },
|
||||
kubeconfig: { icon: Key, label: 'Kubeconfig', color: '#bc4c00', bg: '#fff1e5' },
|
||||
aksk: { icon: Cloud, label: 'AK/SK', color: '#0f766e', bg: '#ccfbf1' },
|
||||
};
|
||||
|
||||
// 新建可选类型(发布流程所需:ssh / docker / git / kubernetes)
|
||||
|
||||
Reference in new issue
Block a user