refactor(ui): 「API 密钥」更名「密钥凭据」——名实一致,承载全部凭据类型
This commit is contained in:
parent
75c3cdd8a9
commit
64a114c221
@ -256,14 +256,15 @@ export function ApiKeysPanel() {
|
||||
{/* 顶部操作栏 */}
|
||||
<div className="flex items-center justify-between">
|
||||
<div className="flex items-center gap-2">
|
||||
<h2 className="text-sm font-bold text-gray-700">API 管理</h2>
|
||||
<h2 className="text-sm font-bold text-gray-700">密钥凭据</h2>
|
||||
<span className="text-xs text-gray-400 bg-gray-100 rounded-full px-2 py-0.5">
|
||||
{keys.length} 个
|
||||
</span>
|
||||
<span className="text-[11px] text-gray-400">API Key / Token / 密码等各类凭据统一存放</span>
|
||||
</div>
|
||||
<button onClick={() => setShowModal(true)}
|
||||
className="px-3 py-1.5 rounded-md text-xs font-medium border border-blue-300 bg-blue-50 text-blue-600 hover:bg-blue-100 transition-colors">
|
||||
+ 添加 API Key
|
||||
+ 添加凭据
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ const TABS: { id: ResourceTab; label: string }[] = [
|
||||
{ id: "servers", label: "服务器" },
|
||||
{ id: "software", label: "软件仓库" },
|
||||
{ id: "cloud", label: "云产品" },
|
||||
{ id: "apikeys", label: "API 密钥" },
|
||||
{ id: "apikeys", label: "密钥凭据" },
|
||||
{ id: "source", label: "源码库" },
|
||||
];
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user