feat: 合并代码后 系统设置 ui样式优化、bug修复、全局统一图标对齐等
This commit is contained in:
@@ -17,6 +17,15 @@ 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,
|
||||
BookOpen as ActionBookOpen,
|
||||
HelpCircle as ActionHelpCircle,
|
||||
Search as ActionSearch,
|
||||
Plus as ActionPlus,
|
||||
} from '@/components/common/icons/ActionIcons';
|
||||
import { writeClipboardText } from '../../helpers/clipboard';
|
||||
import TableEmpty from '../../components/common/table/TableEmpty';
|
||||
import React, { useState, useRef, useEffect, useContext } from 'react';
|
||||
@@ -34,16 +43,7 @@ import {
|
||||
Tooltip,
|
||||
} from 'antd';
|
||||
import { Modal, Pagination } from '@/components/ui';
|
||||
import {
|
||||
BookOpen,
|
||||
Copy,
|
||||
Eye,
|
||||
EyeOff,
|
||||
HelpCircle,
|
||||
Plus,
|
||||
Search,
|
||||
ShieldCheck,
|
||||
} from 'lucide-react';
|
||||
import { ShieldCheck } from 'lucide-react';
|
||||
import Joyride, { STATUS, ACTIONS, EVENTS } from 'react-joyride';
|
||||
import { useTokensData } from '../../hooks/tokens/useTokensData';
|
||||
import EditTokenModal from '../../components/table/tokens/modals/EditTokenModal';
|
||||
@@ -140,7 +140,9 @@ const KeyTable = ({
|
||||
size='small'
|
||||
aria-label={shown ? t('隐藏密钥') : t('显示密钥')}
|
||||
aria-pressed={shown}
|
||||
icon={shown ? <EyeOff size={16} /> : <Eye size={16} />}
|
||||
icon={
|
||||
shown ? <ActionEyeOff size={16} /> : <ActionEye size={16} />
|
||||
}
|
||||
onClick={() => onToggleShowKey(token.id)}
|
||||
/>
|
||||
</Tooltip>
|
||||
@@ -150,7 +152,7 @@ const KeyTable = ({
|
||||
size='small'
|
||||
className='km-copy-btn tour-copy-btn'
|
||||
aria-label={t('复制密钥')}
|
||||
icon={<Copy size={16} />}
|
||||
icon={<ActionCopy size={16} />}
|
||||
onClick={() => onCopy('sk-' + token.key)}
|
||||
/>
|
||||
</Tooltip>
|
||||
@@ -859,7 +861,7 @@ const KeyManagement = ({ embedded = false }) => {
|
||||
<Tooltip title={t('新手教程')}>
|
||||
<Button
|
||||
aria-label={t('新手教程')}
|
||||
icon={<BookOpen size={16} />}
|
||||
icon={<ActionBookOpen size={16} />}
|
||||
onClick={() => navigate('/tutorial?from=key-management')}
|
||||
/>
|
||||
</Tooltip>
|
||||
@@ -867,7 +869,7 @@ const KeyManagement = ({ embedded = false }) => {
|
||||
<Tooltip title={t('查看操作指引')}>
|
||||
<Button
|
||||
aria-label={t('查看操作指引')}
|
||||
icon={<HelpCircle size={16} />}
|
||||
icon={<ActionHelpCircle size={16} />}
|
||||
onClick={startTour}
|
||||
/>
|
||||
</Tooltip>
|
||||
@@ -896,7 +898,7 @@ const KeyManagement = ({ embedded = false }) => {
|
||||
<Button onClick={() => setSearchValue('')}>{t('重置')}</Button>
|
||||
<Button
|
||||
type='primary'
|
||||
icon={<Search size={14} />}
|
||||
icon={<ActionSearch size={14} />}
|
||||
onClick={() => setSearchValue(searchValue)}
|
||||
>
|
||||
{t('搜索')}
|
||||
@@ -917,7 +919,7 @@ const KeyManagement = ({ embedded = false }) => {
|
||||
</Button>
|
||||
<Button
|
||||
type='primary'
|
||||
icon={<Plus size={16} />}
|
||||
icon={<ActionPlus size={16} />}
|
||||
className='tour-create-btn'
|
||||
onClick={handleCreate}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user