feat: 合并代码后 系统设置 ui样式优化、bug修复、全局统一图标对齐等

This commit is contained in:
zhanjunhao
2026-11-10 17:27:36 +08:00
parent 23824dad32
commit 425077f94b
195 changed files with 3546 additions and 1984 deletions
+19 -15
View File
@@ -17,6 +17,13 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import {
EyeOff as ActionEyeOff,
Eye as ActionEye,
Copy as ActionCopy,
RefreshCw as ActionRefreshCw,
Plus as ActionPlus,
} from '@/components/common/icons/ActionIcons';
import { writeClipboardText } from '../../helpers/clipboard';
import TableEmpty from '../../components/common/table/TableEmpty';
import React, {
@@ -27,16 +34,7 @@ import React, {
useRef,
} from 'react';
import { useTranslation } from 'react-i18next';
import {
Key,
Plus,
Copy,
Eye,
EyeOff,
Layers,
Check,
RefreshCw,
} from 'lucide-react';
import { Key, Layers, Check } from 'lucide-react';
import {
Table,
Button,
@@ -247,7 +245,13 @@ const OrgTokens = ({ orgId, orgRole }) => {
type='text'
size='small'
aria-label={isVisible ? t('隐藏密钥') : t('显示密钥')}
icon={isVisible ? <EyeOff size={16} /> : <Eye size={16} />}
icon={
isVisible ? (
<ActionEyeOff size={16} />
) : (
<ActionEye size={16} />
)
}
onClick={() => toggleShowKey(record.id)}
/>
</Tooltip>
@@ -257,7 +261,7 @@ const OrgTokens = ({ orgId, orgRole }) => {
type='text'
size='small'
aria-label={t('复制密钥')}
icon={<Copy size={16} />}
icon={<ActionCopy size={16} />}
onClick={() => copyToClipboard(fullKey)}
/>
</Tooltip>
@@ -414,7 +418,7 @@ const OrgTokens = ({ orgId, orgRole }) => {
tools={
<>
<Button
icon={<RefreshCw size={16} />}
icon={<ActionRefreshCw size={16} />}
onClick={() => fetch(page, pageSize)}
loading={loading}
>
@@ -423,7 +427,7 @@ const OrgTokens = ({ orgId, orgRole }) => {
{canCreate && (
<Button
type='primary'
icon={<Plus size={16} />}
icon={<ActionPlus size={16} />}
onClick={() => setCreateModalVisible(true)}
>
{t('创建密钥')}
@@ -932,7 +936,7 @@ const CreateTokenModal = ({
<Button
size='small'
theme='light'
icon={<Copy size={14} />}
icon={<ActionCopy size={14} />}
onClick={() => copyKey(newKey)}
>
{t('复制')}