feat: 合并代码后 系统设置 ui样式优化、bug修复、全局统一图标对齐等
This commit is contained in:
@@ -17,9 +17,10 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import { X as ActionX } from '@/components/common/icons/ActionIcons';
|
||||
import React, { useState, useCallback } from 'react';
|
||||
import { Modal } from '@/components/ui';
|
||||
import { X, Shield, Scale, ScrollText, ExternalLink } from 'lucide-react';
|
||||
import { Shield, Scale, ScrollText, ExternalLink } from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import DocumentRenderer from './index';
|
||||
import { useIsMobile } from '../../../hooks/common/useIsMobile';
|
||||
@@ -137,10 +138,10 @@ const AgreementModal = ({ visible, type, onClose }) => {
|
||||
</a>
|
||||
<button
|
||||
onClick={onClose}
|
||||
className='p-1.5 rounded-md text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 hover:bg-gray-100/80 dark:hover:bg-gray-800/80 transition-colors'
|
||||
className='app-action-button p-1.5 rounded-md text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 hover:bg-gray-100/80 dark:hover:bg-gray-800/80 transition-colors'
|
||||
aria-label={t('关闭')}
|
||||
>
|
||||
<X size={16} />
|
||||
<ActionX size={16} />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -17,6 +17,11 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import {
|
||||
ChevronUp as ActionChevronUp,
|
||||
ArrowLeft as ActionArrowLeft,
|
||||
Printer as ActionPrinter,
|
||||
} from '@/components/common/icons/ActionIcons';
|
||||
import { writeClipboardText } from '../../../helpers/clipboard';
|
||||
import React, { useEffect, useState, useCallback, useRef } from 'react';
|
||||
import { API, showError } from '../../../helpers';
|
||||
@@ -26,11 +31,8 @@ import {
|
||||
Shield,
|
||||
ScrollText,
|
||||
ExternalLink,
|
||||
ChevronUp,
|
||||
ArrowLeft,
|
||||
BookOpen,
|
||||
Scale,
|
||||
Printer,
|
||||
} from 'lucide-react';
|
||||
import { useNavigate, useLocation } from 'react-router-dom';
|
||||
|
||||
@@ -509,12 +511,20 @@ const DocumentRenderer = ({
|
||||
|
||||
<button
|
||||
onClick={scrollToTop}
|
||||
className={`sticky bottom-3 ml-auto block p-2 bg-white/95 dark:bg-gray-800/95 backdrop-blur-md rounded-full shadow-lg border border-gray-200 dark:border-gray-700 hover:shadow-xl hover:-translate-y-0.5 hover:bg-white dark:hover:bg-gray-800 transition-all duration-200 ${
|
||||
showBackToTop ? 'opacity-100' : 'opacity-0 pointer-events-none'
|
||||
}`}
|
||||
className={[
|
||||
'app-action-button',
|
||||
`sticky bottom-3 ml-auto block p-2 bg-white/95 dark:bg-gray-800/95 backdrop-blur-md rounded-full shadow-lg border border-gray-200 dark:border-gray-700 hover:shadow-xl hover:-translate-y-0.5 hover:bg-white dark:hover:bg-gray-800 transition-all duration-200 ${
|
||||
showBackToTop ? 'opacity-100' : 'opacity-0 pointer-events-none'
|
||||
}`,
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join(' ')}
|
||||
aria-label={t('返回顶部')}
|
||||
>
|
||||
<ChevronUp size={16} className='text-gray-600 dark:text-gray-300' />
|
||||
<ActionChevronUp
|
||||
size={16}
|
||||
className='text-gray-600 dark:text-gray-300'
|
||||
/>
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
@@ -549,9 +559,9 @@ const DocumentRenderer = ({
|
||||
<div className='max-w-3xl mx-auto px-4 sm:px-6 h-14 flex items-center justify-between gap-2'>
|
||||
<button
|
||||
onClick={smartBack}
|
||||
className='group inline-flex items-center gap-1.5 px-2.5 py-1.5 -ml-2 text-sm font-medium text-gray-600 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white hover:bg-gray-100 dark:hover:bg-gray-800/80 rounded-md transition-colors shrink-0'
|
||||
className='app-action-button group inline-flex items-center gap-1.5 px-2.5 py-1.5 -ml-2 text-sm font-medium text-gray-600 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white hover:bg-gray-100 dark:hover:bg-gray-800/80 rounded-md transition-colors shrink-0'
|
||||
>
|
||||
<ArrowLeft
|
||||
<ActionArrowLeft
|
||||
size={15}
|
||||
className='transition-transform group-hover:-translate-x-0.5'
|
||||
/>
|
||||
@@ -573,11 +583,11 @@ const DocumentRenderer = ({
|
||||
{/* 打印按钮 */}
|
||||
<button
|
||||
onClick={() => window.print()}
|
||||
className='inline-flex items-center justify-center w-8 h-8 text-gray-500 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white hover:bg-gray-100 dark:hover:bg-gray-800/80 rounded-md transition-colors shrink-0'
|
||||
className='app-action-button inline-flex items-center justify-center w-8 h-8 text-gray-500 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white hover:bg-gray-100 dark:hover:bg-gray-800/80 rounded-md transition-colors shrink-0'
|
||||
aria-label={t('打印')}
|
||||
title={t('打印')}
|
||||
>
|
||||
<Printer size={15} />
|
||||
<ActionPrinter size={15} />
|
||||
</button>
|
||||
</div>
|
||||
</header>
|
||||
@@ -612,9 +622,9 @@ const DocumentRenderer = ({
|
||||
<div className='mt-8 flex justify-center doc-no-print'>
|
||||
<button
|
||||
onClick={smartBack}
|
||||
className='group inline-flex items-center gap-2 px-5 py-2 text-sm bg-white dark:bg-gray-900 hover:bg-gray-50 dark:hover:bg-gray-800/80 border border-gray-200 dark:border-gray-800 hover:border-gray-300 dark:hover:border-gray-700 rounded-lg text-gray-700 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white shadow-sm transition-all'
|
||||
className='app-action-button group inline-flex items-center gap-2 px-5 py-2 text-sm bg-white dark:bg-gray-900 hover:bg-gray-50 dark:hover:bg-gray-800/80 border border-gray-200 dark:border-gray-800 hover:border-gray-300 dark:hover:border-gray-700 rounded-lg text-gray-700 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white shadow-sm transition-all'
|
||||
>
|
||||
<ArrowLeft
|
||||
<ActionArrowLeft
|
||||
size={14}
|
||||
className='transition-transform group-hover:-translate-x-0.5'
|
||||
/>
|
||||
@@ -627,14 +637,22 @@ const DocumentRenderer = ({
|
||||
{/* 返回顶部 FAB */}
|
||||
<button
|
||||
onClick={scrollToTop}
|
||||
className={`fixed bottom-6 right-6 z-50 p-2.5 bg-white/95 dark:bg-gray-800/95 backdrop-blur-md rounded-full shadow-lg border border-gray-200 dark:border-gray-700 hover:shadow-xl hover:-translate-y-0.5 hover:bg-white dark:hover:bg-gray-800 transition-all duration-200 doc-no-print ${
|
||||
showBackToTop
|
||||
? 'opacity-100 translate-y-0'
|
||||
: 'opacity-0 translate-y-2 pointer-events-none'
|
||||
}`}
|
||||
className={[
|
||||
'app-action-button',
|
||||
`fixed bottom-6 right-6 z-50 p-2.5 bg-white/95 dark:bg-gray-800/95 backdrop-blur-md rounded-full shadow-lg border border-gray-200 dark:border-gray-700 hover:shadow-xl hover:-translate-y-0.5 hover:bg-white dark:hover:bg-gray-800 transition-all duration-200 doc-no-print ${
|
||||
showBackToTop
|
||||
? 'opacity-100 translate-y-0'
|
||||
: 'opacity-0 translate-y-2 pointer-events-none'
|
||||
}`,
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join(' ')}
|
||||
aria-label={t('返回顶部')}
|
||||
>
|
||||
<ChevronUp size={18} className='text-gray-600 dark:text-gray-300' />
|
||||
<ActionChevronUp
|
||||
size={18}
|
||||
className='text-gray-600 dark:text-gray-300'
|
||||
/>
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -30,16 +30,15 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
* 页面只需 usePageGuide({...配置}) 后把三个组件放到对应位置;
|
||||
* steps[].done 传布尔值即启用进度跟踪,不传则渲染为纯阅读步骤。
|
||||
*/
|
||||
import {
|
||||
BookOpenText as ActionBookOpenText,
|
||||
Compass as ActionCompass,
|
||||
ChevronDown as ActionChevronDown,
|
||||
} from '@/components/common/icons/ActionIcons';
|
||||
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
||||
import { Button, SideSheet } from '@/components/ui';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import {
|
||||
BookOpenText,
|
||||
CheckCircle2,
|
||||
ChevronDown,
|
||||
Compass,
|
||||
Loader2,
|
||||
} from 'lucide-react';
|
||||
import { CheckCircle2, Loader2 } from 'lucide-react';
|
||||
import './page-guide.css';
|
||||
|
||||
const seenKey = (guideKey) => `page-guide-seen-${guideKey}`;
|
||||
@@ -162,7 +161,7 @@ export const PageGuideTrigger = ({ guide, className = '' }) => {
|
||||
<Button
|
||||
theme='borderless'
|
||||
className={`page-guide-trigger ${className}`}
|
||||
icon={<BookOpenText size={16} />}
|
||||
icon={<ActionBookOpenText size={16} />}
|
||||
onClick={() => guide.open()}
|
||||
>
|
||||
{t('使用指引')}
|
||||
@@ -178,10 +177,12 @@ export const PageGuidePill = ({ guide, className = '' }) => {
|
||||
return (
|
||||
<button
|
||||
type='button'
|
||||
className={`page-guide-pill ${className}`}
|
||||
className={['app-action-button', `page-guide-pill ${className}`]
|
||||
.filter(Boolean)
|
||||
.join(' ')}
|
||||
onClick={() => guide.open(progress.nextIndex)}
|
||||
>
|
||||
<Compass size={14} className='page-guide-pill-icon' />
|
||||
<ActionCompass size={14} className='page-guide-pill-icon' />
|
||||
<span className='page-guide-pill-dots' aria-hidden='true'>
|
||||
{config.steps.map((step, index) => (
|
||||
<i
|
||||
@@ -286,7 +287,7 @@ export const PageGuideDrawer = ({ guide }) => {
|
||||
>
|
||||
<button
|
||||
type='button'
|
||||
className='page-guide-step-head'
|
||||
className='app-action-button page-guide-step-head'
|
||||
aria-expanded={isOpen}
|
||||
aria-controls={isOpen ? detailId : undefined}
|
||||
onClick={() => setExpanded(isOpen ? -1 : index)}
|
||||
@@ -313,7 +314,10 @@ export const PageGuideDrawer = ({ guide }) => {
|
||||
</strong>
|
||||
{step.detail && <small>{step.detail}</small>}
|
||||
</span>
|
||||
<ChevronDown size={15} className='page-guide-step-arrow' />
|
||||
<ActionChevronDown
|
||||
size={15}
|
||||
className='page-guide-step-arrow'
|
||||
/>
|
||||
</button>
|
||||
{isOpen && (
|
||||
<div className='page-guide-step-detail' id={detailId}>
|
||||
|
||||
@@ -0,0 +1,606 @@
|
||||
/*
|
||||
Copyright (C) 2025 QuantumNous
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import React, { forwardRef } from 'react';
|
||||
import {
|
||||
AccountBookOutlined,
|
||||
DiffOutlined,
|
||||
ExperimentOutlined,
|
||||
ClearOutlined,
|
||||
MenuUnfoldOutlined,
|
||||
BoldOutlined,
|
||||
ItalicOutlined,
|
||||
UnderlineOutlined,
|
||||
OrderedListOutlined,
|
||||
SunOutlined,
|
||||
MoonOutlined,
|
||||
AppstoreOutlined,
|
||||
ArrowDownOutlined,
|
||||
ArrowLeftOutlined,
|
||||
ArrowRightOutlined,
|
||||
ArrowUpOutlined,
|
||||
AudioMutedOutlined,
|
||||
AudioOutlined,
|
||||
BankOutlined,
|
||||
BarChartOutlined,
|
||||
BellOutlined,
|
||||
BlockOutlined,
|
||||
BookOutlined,
|
||||
BorderOutlined,
|
||||
CaretRightOutlined,
|
||||
CheckCircleOutlined,
|
||||
CheckOutlined,
|
||||
CheckSquareOutlined,
|
||||
ClockCircleOutlined,
|
||||
CloseCircleOutlined,
|
||||
CloseOutlined,
|
||||
CloudServerOutlined,
|
||||
CloudUploadOutlined,
|
||||
CodeOutlined,
|
||||
CompassOutlined,
|
||||
ControlOutlined,
|
||||
CopyOutlined,
|
||||
CreditCardOutlined,
|
||||
CustomerServiceOutlined,
|
||||
DeleteOutlined,
|
||||
DislikeOutlined,
|
||||
DownOutlined,
|
||||
DownloadOutlined,
|
||||
EditOutlined,
|
||||
ExclamationCircleOutlined,
|
||||
ExpandAltOutlined,
|
||||
ExportOutlined,
|
||||
EyeInvisibleOutlined,
|
||||
EyeOutlined,
|
||||
FastForwardOutlined,
|
||||
FieldTimeOutlined,
|
||||
FileDoneOutlined,
|
||||
FileOutlined,
|
||||
FileTextOutlined,
|
||||
FilterOutlined,
|
||||
FontSizeOutlined,
|
||||
GiftOutlined,
|
||||
GithubOutlined,
|
||||
GlobalOutlined,
|
||||
HistoryOutlined,
|
||||
HomeOutlined,
|
||||
InfoCircleOutlined,
|
||||
KeyOutlined,
|
||||
LayoutOutlined,
|
||||
LeftOutlined,
|
||||
LikeOutlined,
|
||||
LineChartOutlined,
|
||||
LinkOutlined,
|
||||
LockOutlined,
|
||||
MailOutlined,
|
||||
MenuOutlined,
|
||||
MessageOutlined,
|
||||
MinusOutlined,
|
||||
MoreOutlined,
|
||||
MutedOutlined,
|
||||
PaperClipOutlined,
|
||||
PictureOutlined,
|
||||
PlayCircleOutlined,
|
||||
PlusOutlined,
|
||||
PrinterOutlined,
|
||||
QuestionCircleOutlined,
|
||||
ReadOutlined,
|
||||
RedoOutlined,
|
||||
ReloadOutlined,
|
||||
RightOutlined,
|
||||
RobotOutlined,
|
||||
RocketOutlined,
|
||||
SafetyCertificateOutlined,
|
||||
SafetyOutlined,
|
||||
SaveOutlined,
|
||||
ScheduleOutlined,
|
||||
SearchOutlined,
|
||||
SendOutlined,
|
||||
SettingOutlined,
|
||||
ShareAltOutlined,
|
||||
SoundOutlined,
|
||||
StarFilled,
|
||||
StarOutlined,
|
||||
StopOutlined,
|
||||
SwapOutlined,
|
||||
TeamOutlined,
|
||||
ThunderboltOutlined,
|
||||
UndoOutlined,
|
||||
UnorderedListOutlined,
|
||||
UpOutlined,
|
||||
UploadOutlined,
|
||||
UserAddOutlined,
|
||||
UserOutlined,
|
||||
VideoCameraOutlined,
|
||||
WalletOutlined,
|
||||
WarningOutlined,
|
||||
ZoomInOutlined,
|
||||
ZoomOutOutlined,
|
||||
} from '@ant-design/icons';
|
||||
|
||||
// Keep existing icon props and DOM refs while rendering the Ant Design glyph.
|
||||
const createActionIcon = (Icon, displayName, options = {}) => {
|
||||
const Component = forwardRef(function ActionIcon(
|
||||
{
|
||||
size,
|
||||
color,
|
||||
className = '',
|
||||
style,
|
||||
strokeWidth,
|
||||
absoluteStrokeWidth,
|
||||
fill,
|
||||
...props
|
||||
},
|
||||
ref,
|
||||
) {
|
||||
const fontSize =
|
||||
{ small: 14, default: 16, large: 20, 'extra-large': 24 }[size] ?? size;
|
||||
const Glyph =
|
||||
fill && fill !== 'none' && options.filled ? options.filled : Icon;
|
||||
return React.createElement(Glyph, {
|
||||
...props,
|
||||
ref,
|
||||
rotate: props.rotate ?? options.rotate,
|
||||
className: ['app-action-icon', className].filter(Boolean).join(' '),
|
||||
style: { fontSize, color, ...style },
|
||||
});
|
||||
});
|
||||
Component.displayName = displayName;
|
||||
return Component;
|
||||
};
|
||||
|
||||
export const Search = /* @__PURE__ */ createActionIcon(
|
||||
SearchOutlined,
|
||||
'Search',
|
||||
);
|
||||
export const Plus = /* @__PURE__ */ createActionIcon(PlusOutlined, 'Plus');
|
||||
export const RefreshCw = /* @__PURE__ */ createActionIcon(
|
||||
ReloadOutlined,
|
||||
'RefreshCw',
|
||||
);
|
||||
export const RefreshCcw = /* @__PURE__ */ createActionIcon(
|
||||
ReloadOutlined,
|
||||
'RefreshCcw',
|
||||
);
|
||||
export const RotateCcw = /* @__PURE__ */ createActionIcon(
|
||||
UndoOutlined,
|
||||
'RotateCcw',
|
||||
);
|
||||
export const RotateCw = /* @__PURE__ */ createActionIcon(
|
||||
RedoOutlined,
|
||||
'RotateCw',
|
||||
);
|
||||
export const Trash2 = /* @__PURE__ */ createActionIcon(
|
||||
DeleteOutlined,
|
||||
'Trash2',
|
||||
);
|
||||
export const X = /* @__PURE__ */ createActionIcon(CloseOutlined, 'X');
|
||||
export const Download = /* @__PURE__ */ createActionIcon(
|
||||
DownloadOutlined,
|
||||
'Download',
|
||||
);
|
||||
export const Upload = /* @__PURE__ */ createActionIcon(
|
||||
UploadOutlined,
|
||||
'Upload',
|
||||
);
|
||||
export const Copy = /* @__PURE__ */ createActionIcon(CopyOutlined, 'Copy');
|
||||
export const ClipboardCopy = /* @__PURE__ */ createActionIcon(
|
||||
CopyOutlined,
|
||||
'ClipboardCopy',
|
||||
);
|
||||
export const Check = /* @__PURE__ */ createActionIcon(CheckOutlined, 'Check');
|
||||
export const ChevronDown = /* @__PURE__ */ createActionIcon(
|
||||
DownOutlined,
|
||||
'ChevronDown',
|
||||
);
|
||||
export const ChevronUp = /* @__PURE__ */ createActionIcon(
|
||||
UpOutlined,
|
||||
'ChevronUp',
|
||||
);
|
||||
export const ChevronLeft = /* @__PURE__ */ createActionIcon(
|
||||
LeftOutlined,
|
||||
'ChevronLeft',
|
||||
);
|
||||
export const ChevronRight = /* @__PURE__ */ createActionIcon(
|
||||
RightOutlined,
|
||||
'ChevronRight',
|
||||
);
|
||||
export const ArrowRight = /* @__PURE__ */ createActionIcon(
|
||||
ArrowRightOutlined,
|
||||
'ArrowRight',
|
||||
);
|
||||
export const ArrowLeft = /* @__PURE__ */ createActionIcon(
|
||||
ArrowLeftOutlined,
|
||||
'ArrowLeft',
|
||||
);
|
||||
export const ArrowUp = /* @__PURE__ */ createActionIcon(
|
||||
ArrowUpOutlined,
|
||||
'ArrowUp',
|
||||
);
|
||||
export const ArrowDown = /* @__PURE__ */ createActionIcon(
|
||||
ArrowDownOutlined,
|
||||
'ArrowDown',
|
||||
);
|
||||
export const ArrowUpRight = /* @__PURE__ */ createActionIcon(
|
||||
ArrowUpOutlined,
|
||||
'ArrowUpRight',
|
||||
{
|
||||
rotate: 45,
|
||||
},
|
||||
);
|
||||
export const Eye = /* @__PURE__ */ createActionIcon(EyeOutlined, 'Eye');
|
||||
export const EyeOff = /* @__PURE__ */ createActionIcon(
|
||||
EyeInvisibleOutlined,
|
||||
'EyeOff',
|
||||
);
|
||||
export const Save = /* @__PURE__ */ createActionIcon(SaveOutlined, 'Save');
|
||||
export const ExternalLink = /* @__PURE__ */ createActionIcon(
|
||||
ExportOutlined,
|
||||
'ExternalLink',
|
||||
);
|
||||
export const Star = /* @__PURE__ */ createActionIcon(StarOutlined, 'Star', {
|
||||
filled: StarFilled,
|
||||
});
|
||||
export const Globe = /* @__PURE__ */ createActionIcon(GlobalOutlined, 'Globe');
|
||||
export const Pencil = /* @__PURE__ */ createActionIcon(EditOutlined, 'Pencil');
|
||||
export const Edit = /* @__PURE__ */ createActionIcon(EditOutlined, 'Edit');
|
||||
export const Wallet = /* @__PURE__ */ createActionIcon(
|
||||
WalletOutlined,
|
||||
'Wallet',
|
||||
);
|
||||
export const Settings = /* @__PURE__ */ createActionIcon(
|
||||
SettingOutlined,
|
||||
'Settings',
|
||||
);
|
||||
export const Settings2 = /* @__PURE__ */ createActionIcon(
|
||||
SettingOutlined,
|
||||
'Settings2',
|
||||
);
|
||||
export const SlidersHorizontal = /* @__PURE__ */ createActionIcon(
|
||||
ControlOutlined,
|
||||
'SlidersHorizontal',
|
||||
);
|
||||
export const MoreHorizontal = /* @__PURE__ */ createActionIcon(
|
||||
MoreOutlined,
|
||||
'MoreHorizontal',
|
||||
);
|
||||
export const Ellipsis = /* @__PURE__ */ createActionIcon(
|
||||
MoreOutlined,
|
||||
'Ellipsis',
|
||||
);
|
||||
export const Zap = /* @__PURE__ */ createActionIcon(ThunderboltOutlined, 'Zap');
|
||||
export const MessageCircle = /* @__PURE__ */ createActionIcon(
|
||||
MessageOutlined,
|
||||
'MessageCircle',
|
||||
);
|
||||
export const Send = /* @__PURE__ */ createActionIcon(SendOutlined, 'Send');
|
||||
export const Ban = /* @__PURE__ */ createActionIcon(StopOutlined, 'Ban');
|
||||
export const ShieldCheck = /* @__PURE__ */ createActionIcon(
|
||||
SafetyCertificateOutlined,
|
||||
'ShieldCheck',
|
||||
);
|
||||
export const Shield = /* @__PURE__ */ createActionIcon(
|
||||
SafetyOutlined,
|
||||
'Shield',
|
||||
);
|
||||
export const Lock = /* @__PURE__ */ createActionIcon(LockOutlined, 'Lock');
|
||||
export const LockKeyhole = /* @__PURE__ */ createActionIcon(
|
||||
LockOutlined,
|
||||
'LockKeyhole',
|
||||
);
|
||||
export const History = /* @__PURE__ */ createActionIcon(
|
||||
HistoryOutlined,
|
||||
'History',
|
||||
);
|
||||
export const Code2 = /* @__PURE__ */ createActionIcon(CodeOutlined, 'Code2');
|
||||
export const Code = /* @__PURE__ */ createActionIcon(CodeOutlined, 'Code');
|
||||
export const KeyRound = /* @__PURE__ */ createActionIcon(
|
||||
KeyOutlined,
|
||||
'KeyRound',
|
||||
);
|
||||
export const Filter = /* @__PURE__ */ createActionIcon(
|
||||
FilterOutlined,
|
||||
'Filter',
|
||||
);
|
||||
export const Headphones = /* @__PURE__ */ createActionIcon(
|
||||
CustomerServiceOutlined,
|
||||
'Headphones',
|
||||
);
|
||||
export const Mic = /* @__PURE__ */ createActionIcon(AudioOutlined, 'Mic');
|
||||
export const MicOff = /* @__PURE__ */ createActionIcon(
|
||||
AudioMutedOutlined,
|
||||
'MicOff',
|
||||
);
|
||||
export const Square = /* @__PURE__ */ createActionIcon(
|
||||
BorderOutlined,
|
||||
'Square',
|
||||
);
|
||||
export const CheckCircle2 = /* @__PURE__ */ createActionIcon(
|
||||
CheckCircleOutlined,
|
||||
'CheckCircle2',
|
||||
);
|
||||
export const CheckCircle = /* @__PURE__ */ createActionIcon(
|
||||
CheckCircleOutlined,
|
||||
'CheckCircle',
|
||||
);
|
||||
export const CircleCheck = /* @__PURE__ */ createActionIcon(
|
||||
CheckCircleOutlined,
|
||||
'CircleCheck',
|
||||
);
|
||||
export const LayoutGrid = /* @__PURE__ */ createActionIcon(
|
||||
AppstoreOutlined,
|
||||
'LayoutGrid',
|
||||
);
|
||||
export const Play = /* @__PURE__ */ createActionIcon(
|
||||
CaretRightOutlined,
|
||||
'Play',
|
||||
);
|
||||
export const CirclePlay = /* @__PURE__ */ createActionIcon(
|
||||
PlayCircleOutlined,
|
||||
'CirclePlay',
|
||||
);
|
||||
export const HelpCircle = /* @__PURE__ */ createActionIcon(
|
||||
QuestionCircleOutlined,
|
||||
'HelpCircle',
|
||||
);
|
||||
export const CircleHelp = /* @__PURE__ */ createActionIcon(
|
||||
QuestionCircleOutlined,
|
||||
'CircleHelp',
|
||||
);
|
||||
export const AlertCircle = /* @__PURE__ */ createActionIcon(
|
||||
ExclamationCircleOutlined,
|
||||
'AlertCircle',
|
||||
);
|
||||
export const CircleAlert = /* @__PURE__ */ createActionIcon(
|
||||
ExclamationCircleOutlined,
|
||||
'CircleAlert',
|
||||
);
|
||||
export const AlertTriangle = /* @__PURE__ */ createActionIcon(
|
||||
WarningOutlined,
|
||||
'AlertTriangle',
|
||||
);
|
||||
export const TriangleAlert = /* @__PURE__ */ createActionIcon(
|
||||
WarningOutlined,
|
||||
'TriangleAlert',
|
||||
);
|
||||
export const Layers = /* @__PURE__ */ createActionIcon(BlockOutlined, 'Layers');
|
||||
export const UserPlus = /* @__PURE__ */ createActionIcon(
|
||||
UserAddOutlined,
|
||||
'UserPlus',
|
||||
);
|
||||
export const UserRound = /* @__PURE__ */ createActionIcon(
|
||||
UserOutlined,
|
||||
'UserRound',
|
||||
);
|
||||
export const User = /* @__PURE__ */ createActionIcon(UserOutlined, 'User');
|
||||
export const Users = /* @__PURE__ */ createActionIcon(TeamOutlined, 'Users');
|
||||
export const Printer = /* @__PURE__ */ createActionIcon(
|
||||
PrinterOutlined,
|
||||
'Printer',
|
||||
);
|
||||
export const Paperclip = /* @__PURE__ */ createActionIcon(
|
||||
PaperClipOutlined,
|
||||
'Paperclip',
|
||||
);
|
||||
export const ZoomOut = /* @__PURE__ */ createActionIcon(
|
||||
ZoomOutOutlined,
|
||||
'ZoomOut',
|
||||
);
|
||||
export const ZoomIn = /* @__PURE__ */ createActionIcon(
|
||||
ZoomInOutlined,
|
||||
'ZoomIn',
|
||||
);
|
||||
export const FileText = /* @__PURE__ */ createActionIcon(
|
||||
FileTextOutlined,
|
||||
'FileText',
|
||||
);
|
||||
export const File = /* @__PURE__ */ createActionIcon(FileOutlined, 'File');
|
||||
export const FastForward = /* @__PURE__ */ createActionIcon(
|
||||
FastForwardOutlined,
|
||||
'FastForward',
|
||||
);
|
||||
export const Volume1 = /* @__PURE__ */ createActionIcon(
|
||||
SoundOutlined,
|
||||
'Volume1',
|
||||
);
|
||||
export const Volume2 = /* @__PURE__ */ createActionIcon(
|
||||
SoundOutlined,
|
||||
'Volume2',
|
||||
);
|
||||
export const VolumeX = /* @__PURE__ */ createActionIcon(
|
||||
MutedOutlined,
|
||||
'VolumeX',
|
||||
);
|
||||
export const Receipt = /* @__PURE__ */ createActionIcon(
|
||||
AccountBookOutlined,
|
||||
'Receipt',
|
||||
);
|
||||
export const ReceiptText = /* @__PURE__ */ createActionIcon(
|
||||
AccountBookOutlined,
|
||||
'ReceiptText',
|
||||
);
|
||||
export const BarChart3 = /* @__PURE__ */ createActionIcon(
|
||||
BarChartOutlined,
|
||||
'BarChart3',
|
||||
);
|
||||
export const ChartColumn = /* @__PURE__ */ createActionIcon(
|
||||
BarChartOutlined,
|
||||
'ChartColumn',
|
||||
);
|
||||
export const ChartLine = /* @__PURE__ */ createActionIcon(
|
||||
LineChartOutlined,
|
||||
'ChartLine',
|
||||
);
|
||||
export const Bell = /* @__PURE__ */ createActionIcon(BellOutlined, 'Bell');
|
||||
export const Bot = /* @__PURE__ */ createActionIcon(RobotOutlined, 'Bot');
|
||||
export const ThumbsUp = /* @__PURE__ */ createActionIcon(
|
||||
LikeOutlined,
|
||||
'ThumbsUp',
|
||||
);
|
||||
export const ThumbsDown = /* @__PURE__ */ createActionIcon(
|
||||
DislikeOutlined,
|
||||
'ThumbsDown',
|
||||
);
|
||||
export const Rows = /* @__PURE__ */ createActionIcon(
|
||||
UnorderedListOutlined,
|
||||
'Rows',
|
||||
);
|
||||
export const Layout = /* @__PURE__ */ createActionIcon(
|
||||
LayoutOutlined,
|
||||
'Layout',
|
||||
);
|
||||
export const Image = /* @__PURE__ */ createActionIcon(PictureOutlined, 'Image');
|
||||
export const Share2 = /* @__PURE__ */ createActionIcon(
|
||||
ShareAltOutlined,
|
||||
'Share2',
|
||||
);
|
||||
export const Rocket = /* @__PURE__ */ createActionIcon(
|
||||
RocketOutlined,
|
||||
'Rocket',
|
||||
);
|
||||
export const BookOpen = /* @__PURE__ */ createActionIcon(
|
||||
ReadOutlined,
|
||||
'BookOpen',
|
||||
);
|
||||
export const BookOpenText = /* @__PURE__ */ createActionIcon(
|
||||
ReadOutlined,
|
||||
'BookOpenText',
|
||||
);
|
||||
export const Menu = /* @__PURE__ */ createActionIcon(MenuOutlined, 'Menu');
|
||||
export const UploadCloud = /* @__PURE__ */ createActionIcon(
|
||||
CloudUploadOutlined,
|
||||
'UploadCloud',
|
||||
);
|
||||
export const Building2 = /* @__PURE__ */ createActionIcon(
|
||||
BankOutlined,
|
||||
'Building2',
|
||||
);
|
||||
export const FileCheck2 = /* @__PURE__ */ createActionIcon(
|
||||
FileDoneOutlined,
|
||||
'FileCheck2',
|
||||
);
|
||||
export const OctagonX = /* @__PURE__ */ createActionIcon(
|
||||
CloseCircleOutlined,
|
||||
'OctagonX',
|
||||
);
|
||||
export const Home = /* @__PURE__ */ createActionIcon(HomeOutlined, 'Home');
|
||||
export const ArrowRightLeft = /* @__PURE__ */ createActionIcon(
|
||||
SwapOutlined,
|
||||
'ArrowRightLeft',
|
||||
);
|
||||
export const Maximize2 = /* @__PURE__ */ createActionIcon(
|
||||
ExpandAltOutlined,
|
||||
'Maximize2',
|
||||
);
|
||||
export const CheckSquare = /* @__PURE__ */ createActionIcon(
|
||||
CheckSquareOutlined,
|
||||
'CheckSquare',
|
||||
);
|
||||
export const ListFilter = /* @__PURE__ */ createActionIcon(
|
||||
FilterOutlined,
|
||||
'ListFilter',
|
||||
);
|
||||
export const CalendarClock = /* @__PURE__ */ createActionIcon(
|
||||
ScheduleOutlined,
|
||||
'CalendarClock',
|
||||
);
|
||||
export const CreditCard = /* @__PURE__ */ createActionIcon(
|
||||
CreditCardOutlined,
|
||||
'CreditCard',
|
||||
);
|
||||
export const Link = /* @__PURE__ */ createActionIcon(LinkOutlined, 'Link');
|
||||
export const Mail = /* @__PURE__ */ createActionIcon(MailOutlined, 'Mail');
|
||||
export const Github = /* @__PURE__ */ createActionIcon(
|
||||
GithubOutlined,
|
||||
'Github',
|
||||
);
|
||||
export const Gift = /* @__PURE__ */ createActionIcon(GiftOutlined, 'Gift');
|
||||
export const Minus = /* @__PURE__ */ createActionIcon(MinusOutlined, 'Minus');
|
||||
export const Video = /* @__PURE__ */ createActionIcon(
|
||||
VideoCameraOutlined,
|
||||
'Video',
|
||||
);
|
||||
export const Server = /* @__PURE__ */ createActionIcon(
|
||||
CloudServerOutlined,
|
||||
'Server',
|
||||
);
|
||||
export const Bookmark = /* @__PURE__ */ createActionIcon(
|
||||
BookOutlined,
|
||||
'Bookmark',
|
||||
);
|
||||
export const Info = /* @__PURE__ */ createActionIcon(
|
||||
InfoCircleOutlined,
|
||||
'Info',
|
||||
);
|
||||
export const Timer = /* @__PURE__ */ createActionIcon(
|
||||
FieldTimeOutlined,
|
||||
'Timer',
|
||||
);
|
||||
export const Type = /* @__PURE__ */ createActionIcon(FontSizeOutlined, 'Type');
|
||||
export const Clock = /* @__PURE__ */ createActionIcon(
|
||||
ClockCircleOutlined,
|
||||
'Clock',
|
||||
);
|
||||
export const Compass = /* @__PURE__ */ createActionIcon(
|
||||
CompassOutlined,
|
||||
'Compass',
|
||||
);
|
||||
|
||||
// Keep composite upload/user-check and heartbeat glyphs without an exact Ant equivalent.
|
||||
export { Activity, FileUp, UserCheck } from 'lucide-react';
|
||||
|
||||
export const Bold = /* @__PURE__ */ createActionIcon(BoldOutlined, 'Bold');
|
||||
export const Italic = /* @__PURE__ */ createActionIcon(
|
||||
ItalicOutlined,
|
||||
'Italic',
|
||||
);
|
||||
export const Underline = /* @__PURE__ */ createActionIcon(
|
||||
UnderlineOutlined,
|
||||
'Underline',
|
||||
);
|
||||
export const List = /* @__PURE__ */ createActionIcon(
|
||||
UnorderedListOutlined,
|
||||
'List',
|
||||
);
|
||||
export const ListOrdered = /* @__PURE__ */ createActionIcon(
|
||||
OrderedListOutlined,
|
||||
'ListOrdered',
|
||||
);
|
||||
export const Undo2 = /* @__PURE__ */ createActionIcon(UndoOutlined, 'Undo2');
|
||||
export const Redo2 = /* @__PURE__ */ createActionIcon(RedoOutlined, 'Redo2');
|
||||
export const Sun = /* @__PURE__ */ createActionIcon(SunOutlined, 'Sun');
|
||||
export const Moon = /* @__PURE__ */ createActionIcon(MoonOutlined, 'Moon');
|
||||
|
||||
export const GitCompare = /* @__PURE__ */ createActionIcon(
|
||||
DiffOutlined,
|
||||
'GitCompare',
|
||||
);
|
||||
export const TestTube2 = /* @__PURE__ */ createActionIcon(
|
||||
ExperimentOutlined,
|
||||
'TestTube2',
|
||||
);
|
||||
export const Eraser = /* @__PURE__ */ createActionIcon(ClearOutlined, 'Eraser');
|
||||
export const PanelLeftOpen = /* @__PURE__ */ createActionIcon(
|
||||
MenuUnfoldOutlined,
|
||||
'PanelLeftOpen',
|
||||
);
|
||||
export const LayoutTemplate = /* @__PURE__ */ createActionIcon(
|
||||
LayoutOutlined,
|
||||
'LayoutTemplate',
|
||||
);
|
||||
@@ -16,18 +16,14 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import {
|
||||
X as ActionX,
|
||||
ArrowRight as ActionArrowRight,
|
||||
} from '@/components/common/icons/ActionIcons';
|
||||
import React from 'react';
|
||||
import { Modal, Button, Typography } from '@/components/ui';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import {
|
||||
Gift,
|
||||
ArrowRight,
|
||||
Sparkles,
|
||||
X,
|
||||
Wallet,
|
||||
KeyRound,
|
||||
Star,
|
||||
} from 'lucide-react';
|
||||
import { Gift, Sparkles, Wallet, KeyRound, Star } from 'lucide-react';
|
||||
import { renderQuota } from '../../../helpers';
|
||||
|
||||
const { Text } = Typography;
|
||||
@@ -65,10 +61,10 @@ const NewUserGiftModal = ({ visible, onClose, quota }) => {
|
||||
{/* 关闭按钮 */}
|
||||
<button
|
||||
onClick={onClose}
|
||||
className='absolute top-3.5 right-3.5 z-20 w-7 h-7 rounded-full bg-white/20 hover:bg-white/35 flex items-center justify-center transition-colors duration-150'
|
||||
className='app-action-button absolute top-3.5 right-3.5 z-20 w-7 h-7 rounded-full bg-white/20 hover:bg-white/35 flex items-center justify-center transition-colors duration-150'
|
||||
aria-label={t('关闭')}
|
||||
>
|
||||
<X size={14} className='text-white' />
|
||||
<ActionX size={14} className='text-white' />
|
||||
</button>
|
||||
|
||||
{/* 头部 */}
|
||||
@@ -158,7 +154,7 @@ const NewUserGiftModal = ({ visible, onClose, quota }) => {
|
||||
>
|
||||
<span className='flex items-center justify-center gap-2 text-white'>
|
||||
{t('马上试一试')}
|
||||
<ArrowRight size={16} />
|
||||
<ActionArrowRight size={16} />
|
||||
</span>
|
||||
</Button>
|
||||
<p className='text-gray-400 dark:text-gray-500 text-xs text-center mt-2.5 leading-relaxed'>
|
||||
|
||||
@@ -17,6 +17,10 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import {
|
||||
X as ActionX,
|
||||
ChevronRight as ActionChevronRight,
|
||||
} from '@/components/common/icons/ActionIcons';
|
||||
import React, { useState, useEffect, useContext } from 'react';
|
||||
import { Modal, RadioGroup, Radio, Button, Typography } from '@/components/ui';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
@@ -28,15 +32,7 @@ import {
|
||||
showError,
|
||||
showWarning,
|
||||
} from '../../../helpers';
|
||||
import {
|
||||
Sparkles,
|
||||
Briefcase,
|
||||
Cpu,
|
||||
ChevronRight,
|
||||
UserCircle,
|
||||
X,
|
||||
LogOut,
|
||||
} from 'lucide-react';
|
||||
import { Sparkles, Briefcase, Cpu, UserCircle, LogOut } from 'lucide-react';
|
||||
import { UserContext } from '../../../context/User';
|
||||
|
||||
const { Title, Text } = Typography;
|
||||
@@ -148,10 +144,10 @@ const UserSurveyModal = ({ visible, onClose, onSuccess }) => {
|
||||
{/* 关闭按钮 */}
|
||||
<button
|
||||
onClick={handleCloseClick}
|
||||
className='absolute top-4 right-4 z-10 p-2 rounded-full bg-gray-100 hover:bg-gray-200 dark:bg-gray-700 dark:hover:bg-gray-600 transition-colors duration-200 group'
|
||||
className='app-action-button absolute top-4 right-4 z-10 p-2 rounded-full bg-gray-100 hover:bg-gray-200 dark:bg-gray-700 dark:hover:bg-gray-600 transition-colors duration-200 group'
|
||||
title={t('暂不填写')}
|
||||
>
|
||||
<X
|
||||
<ActionX
|
||||
size={18}
|
||||
className='text-gray-500 dark:text-gray-400 group-hover:text-gray-700 dark:group-hover:text-gray-200'
|
||||
/>
|
||||
@@ -326,7 +322,7 @@ const UserSurveyModal = ({ visible, onClose, onSuccess }) => {
|
||||
>
|
||||
<span className='flex items-center justify-center gap-2'>
|
||||
{t('开始使用')}
|
||||
<ChevronRight size={18} />
|
||||
<ActionChevronRight size={18} />
|
||||
</span>
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
@@ -17,9 +17,9 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import { Settings as ActionSettings } from '@/components/common/icons/ActionIcons';
|
||||
import React, { useState } from 'react';
|
||||
import { Alert, Button, Checkbox, Modal, Tooltip, theme } from 'antd';
|
||||
import { Settings } from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import './column-settings.css';
|
||||
|
||||
@@ -53,7 +53,7 @@ export function ColumnSettingsButton({ onClick, open = false }) {
|
||||
aria-label={t('列设置')}
|
||||
aria-haspopup='dialog'
|
||||
aria-expanded={open}
|
||||
icon={<Settings size={16} />}
|
||||
icon={<ActionSettings size={16} />}
|
||||
onClick={onClick}
|
||||
/>
|
||||
</Tooltip>
|
||||
|
||||
@@ -17,9 +17,9 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import { Search as ActionSearch } from '@/components/common/icons/ActionIcons';
|
||||
import React from 'react';
|
||||
import { Button } from 'antd';
|
||||
import { Search } from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import './filter-search-button.css';
|
||||
|
||||
@@ -37,7 +37,7 @@ export default function FilterSearchButton({
|
||||
onClick={onClick}
|
||||
size='middle'
|
||||
loading={loading}
|
||||
icon={<Search size={14} />}
|
||||
icon={<ActionSearch size={14} />}
|
||||
>
|
||||
{t('搜索')}
|
||||
</Button>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.console-page .filter-search-button .lucide {
|
||||
.console-page .filter-search-button :is(.lucide, .app-action-icon) {
|
||||
display: block;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
|
||||
@@ -21,6 +21,7 @@ import React from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Card, Button, Typography, Tag } from '@/components/ui';
|
||||
import { copy, showError, showSuccess } from '../../../helpers';
|
||||
import { Copy } from '../icons/ActionIcons';
|
||||
|
||||
/**
|
||||
* 解析密钥数据,支持多种格式
|
||||
@@ -175,16 +176,7 @@ const ChannelKeyDisplay = ({
|
||||
size='small'
|
||||
type='primary'
|
||||
theme='outline'
|
||||
icon={
|
||||
<svg
|
||||
className='w-3 h-3'
|
||||
fill='currentColor'
|
||||
viewBox='0 0 20 20'
|
||||
>
|
||||
<path d='M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z' />
|
||||
<path d='M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z' />
|
||||
</svg>
|
||||
}
|
||||
icon={<Copy size={12} />}
|
||||
onClick={() => handleCopyKey(keyItem.content)}
|
||||
>
|
||||
{t('复制')}
|
||||
|
||||
@@ -31,12 +31,11 @@ import {
|
||||
Underline,
|
||||
List,
|
||||
ListOrdered,
|
||||
Quote,
|
||||
Undo2,
|
||||
Redo2,
|
||||
Eraser,
|
||||
ImagePlus,
|
||||
} from 'lucide-react';
|
||||
} from '../icons/ActionIcons';
|
||||
import { Quote, ImagePlus } from 'lucide-react';
|
||||
import {
|
||||
articleImageSource,
|
||||
ARTICLE_IMAGE_TYPES,
|
||||
@@ -470,6 +469,7 @@ export default function RichTextEditor({
|
||||
</button>
|
||||
))}
|
||||
<button
|
||||
className='app-action-button'
|
||||
type='button'
|
||||
title='插入正文图片(单张不超过 2 MB)'
|
||||
aria-label='插入正文图片'
|
||||
|
||||
Reference in New Issue
Block a user