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
@@ -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 {
UserRound as ActionUserRound,
Plus as ActionPlus,
Trash2 as ActionTrash2,
ShieldCheck as ActionShieldCheck,
ExternalLink as ActionExternalLink,
Image as ActionImage,
Check as ActionCheck,
} from '@/components/common/icons/ActionIcons';
import React, { useEffect, useMemo, useState } from 'react';
import {
Button,
@@ -31,15 +40,7 @@ import {
Tooltip,
Upload,
} from '@/components/ui';
import {
Check,
ExternalLink,
Image as ImageIcon,
Plus,
ShieldCheck,
Trash2,
UserRound,
} from 'lucide-react';
import { Check } from 'lucide-react';
import { QRCodeSVG } from 'qrcode.react';
import { useTranslation } from 'react-i18next';
import { showError, showSuccess } from '../../../../../helpers';
@@ -188,7 +189,7 @@ const PortraitAssetPicker = ({
return (
<>
<Button
icon={<UserRound size={16} />}
icon={<ActionUserRound size={16} />}
theme='light'
onClick={() => setVisible(true)}
>
@@ -220,7 +221,7 @@ const PortraitAssetPicker = ({
/>
<Tooltip content={t('创建人像')}>
<Button
icon={<Plus size={16} />}
icon={<ActionPlus size={16} />}
onClick={handleCreate}
loading={busy}
disabled={!name.trim() || !consent}
@@ -265,7 +266,7 @@ const PortraitAssetPicker = ({
<Button
type='danger'
theme='borderless'
icon={<Trash2 size={16} />}
icon={<ActionTrash2 size={16} />}
onClick={() => confirmDeletePortrait(item)}
/>
</Tooltip>
@@ -278,7 +279,7 @@ const PortraitAssetPicker = ({
selectedPortrait.status !== 'active' &&
!portrait.session && (
<Button
icon={<ShieldCheck size={16} />}
icon={<ActionShieldCheck size={16} />}
onClick={handleVerify}
loading={busy}
>
@@ -297,7 +298,7 @@ const PortraitAssetPicker = ({
style={{ width: 240 }}
/>
<Button
icon={<ExternalLink size={16} />}
icon={<ActionExternalLink size={16} />}
onClick={() =>
window.open(
portrait.session.h5_url,
@@ -325,7 +326,7 @@ const PortraitAssetPicker = ({
showUploadList={false}
onChange={handleUpload}
>
<Button icon={<ImageIcon size={16} />} loading={busy}>
<Button icon={<ActionImage size={16} />} loading={busy}>
{t('上传真人素材')}
</Button>
</Upload>
@@ -360,7 +361,7 @@ const PortraitAssetPicker = ({
{asset.status === 'active' && (
<Tooltip content={t('选择素材')}>
<Button
icon={<Check size={16} />}
icon={<ActionCheck size={16} />}
onClick={() => {
onSelect(asset);
setVisible(false);
@@ -372,7 +373,7 @@ const PortraitAssetPicker = ({
<Button
type='danger'
theme='borderless'
icon={<Trash2 size={16} />}
icon={<ActionTrash2 size={16} />}
onClick={() => confirmDeleteAsset(asset)}
/>
</Tooltip>
@@ -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 {
ChevronRight as ActionChevronRight,
ChevronLeft as ActionChevronLeft,
} from '@/components/common/icons/ActionIcons';
import React from 'react';
import {
Button,
@@ -29,8 +33,6 @@ import {
Typography,
} from '@/components/ui';
import {
ChevronLeft,
ChevronRight,
Film,
Image as ImageIcon,
Images,
@@ -132,7 +134,7 @@ const VideoInputPanel = ({
return (
<div className='vip-expand-fab'>
<Button
icon={<ChevronRight size={20} />}
icon={<ActionChevronRight size={20} />}
onClick={onCollapse}
aria-label={t('展开')}
/>
@@ -269,7 +271,7 @@ const VideoInputPanel = ({
{collapsible && (
<div className='vip-collapse-row'>
<Button
icon={<ChevronLeft size={18} />}
icon={<ActionChevronLeft size={18} />}
onClick={onCollapse}
size='small'
type='tertiary'
@@ -17,6 +17,16 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import {
Wallet as ActionWallet,
Play as ActionPlay,
HelpCircle as ActionHelpCircle,
X as ActionX,
Download as ActionDownload,
Share2 as ActionShare2,
RotateCcw as ActionRotateCcw,
Square as ActionSquare,
} from '@/components/common/icons/ActionIcons';
import { writeClipboardText } from '../../../../../helpers/clipboard';
import React, { useState, useEffect } from 'react';
import {
@@ -29,18 +39,7 @@ import {
Spin,
Tooltip,
} from '@/components/ui';
import {
Play,
Square,
Download,
RotateCcw,
Share2,
Film,
HelpCircle,
X,
Loader2,
Wallet,
} from 'lucide-react';
import { Film, Loader2 } from 'lucide-react';
import { useTranslation } from 'react-i18next';
import { showError, showSuccess } from '../../../../../helpers';
import { useNavigate } from 'react-router-dom';
@@ -287,7 +286,7 @@ const VideoPreviewPanel = ({
type='warning'
theme='solid'
size={windowWidth > 768 ? 'default' : 'small'}
icon={<Wallet size={16} />}
icon={<ActionWallet size={16} />}
onClick={() => navigate('/console/topup')}
style={{ fontWeight: 600 }}
>
@@ -298,7 +297,7 @@ const VideoPreviewPanel = ({
type='primary'
theme='solid'
size={windowWidth > 768 ? 'default' : 'small'}
icon={<Play size={16} fill='currentColor' />}
icon={<ActionPlay size={16} fill='currentColor' />}
onClick={isButtonDisabled ? undefined : handleGenerate}
disabled={isButtonDisabled || submitting}
loading={submitting}
@@ -390,7 +389,7 @@ const VideoPreviewPanel = ({
showArrow={true}
>
<Button
icon={<HelpCircle size={18} />}
icon={<ActionHelpCircle size={18} />}
type='tertiary'
size={windowWidth > 768 ? 'default' : 'small'}
/>
@@ -425,7 +424,7 @@ const VideoPreviewPanel = ({
>
{/* 关闭按钮 */}
<Button
icon={<X size={16} />}
icon={<ActionX size={16} />}
type='tertiary'
theme='borderless'
size='small'
@@ -457,14 +456,14 @@ const VideoPreviewPanel = ({
<Button
type='primary'
size={config.buttonSize}
icon={<Download size={16} />}
icon={<ActionDownload size={16} />}
onClick={handleDownload}
>
{windowWidth > 768 ? t('下载视频') : t('下载')}
</Button>
<Button
size={config.buttonSize}
icon={<Share2 size={16} />}
icon={<ActionShare2 size={16} />}
onClick={handleShare}
>
{t('分享')}
@@ -472,7 +471,7 @@ const VideoPreviewPanel = ({
{canRegenerateVideoTask(displayTask) && (
<Button
size={config.buttonSize}
icon={<RotateCcw size={16} />}
icon={<ActionRotateCcw size={16} />}
onClick={handleRegenerate}
>
{windowWidth > 768 ? t('再生成') : t('重新')}
@@ -642,7 +641,7 @@ const VideoPreviewPanel = ({
<Button
type='danger'
size={config.buttonSize}
icon={<Square size={16} fill='currentColor' />}
icon={<ActionSquare size={16} fill='currentColor' />}
onClick={onCancel}
style={{ marginTop: '32px' }}
>
@@ -678,7 +677,7 @@ const VideoPreviewPanel = ({
<Button
type='primary'
size={config.buttonSize}
icon={<RotateCcw size={16} />}
icon={<ActionRotateCcw size={16} />}
onClick={handleRegenerate}
style={{ marginTop: '24px' }}
>
@@ -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 {
Play as ActionPlay,
Download as ActionDownload,
RefreshCw as ActionRefreshCw,
Trash2 as ActionTrash2,
AlertCircle as ActionAlertCircle,
} from '@/components/common/icons/ActionIcons';
import React, { useState, useEffect } from 'react';
import {
Table,
@@ -32,10 +39,6 @@ import {
import {
ChevronUp,
ChevronDown,
RefreshCw,
Download,
Trash2,
Play,
CheckCircle2,
AlertCircle,
Clock,
@@ -249,7 +252,7 @@ const VideoTaskQueue = ({
<Button
size='small'
type='tertiary'
icon={<Play size={14} />}
icon={<ActionPlay size={14} />}
onClick={() => onPlay && onPlay(record)}
>
{!isCompact ? t('播放') : ''}
@@ -257,7 +260,7 @@ const VideoTaskQueue = ({
<Button
size='small'
type='tertiary'
icon={<Download size={14} />}
icon={<ActionDownload size={14} />}
onClick={() => onDownload(record)}
>
{!isCompact ? t('下载') : ''}
@@ -271,7 +274,7 @@ const VideoTaskQueue = ({
<Button
size='small'
type='primary'
icon={<RefreshCw size={14} />}
icon={<ActionRefreshCw size={14} />}
onClick={() => onRegenerate && onRegenerate(record)}
>
{!isCompact ? t('再生成') : ''}
@@ -280,12 +283,14 @@ const VideoTaskQueue = ({
<Button
size='small'
type='danger'
icon={<Trash2 size={14} />}
icon={<ActionTrash2 size={14} />}
onClick={() => {
Modal.warning({
title: t('确定删除此任务?'),
content: t('删除后将无法恢复'),
icon: <AlertCircle size={24} style={{ color: '#f59e0b' }} />,
icon: (
<ActionAlertCircle size={24} style={{ color: '#f59e0b' }} />
),
okText: t('确定'),
cancelText: t('取消'),
onOk: () => onDelete(record.task_id),
@@ -381,7 +386,7 @@ const VideoTaskQueue = ({
<Space wrap>
<Button
size={!isCompact ? 'default' : 'small'}
icon={<RefreshCw size={14} />}
icon={<ActionRefreshCw size={14} />}
onClick={onRefresh}
>
{t('刷新')}
@@ -390,7 +395,7 @@ const VideoTaskQueue = ({
<>
<Button
size={!isCompact ? 'default' : 'small'}
icon={<Download size={14} />}
icon={<ActionDownload size={14} />}
onClick={handleBatchDownload}
>
{t('批量下载')} ({selectedTasks.length})
@@ -398,7 +403,7 @@ const VideoTaskQueue = ({
<Button
size={!isCompact ? 'default' : 'small'}
type='danger'
icon={<Trash2 size={14} />}
icon={<ActionTrash2 size={14} />}
onClick={() => {
Modal.warning({
title: t('确定删除选中的任务?'),
@@ -406,7 +411,10 @@ const VideoTaskQueue = ({
count: selectedTasks.length,
}),
icon: (
<AlertCircle size={24} style={{ color: '#f59e0b' }} />
<ActionAlertCircle
size={24}
style={{ color: '#f59e0b' }}
/>
),
okText: t('确定删除'),
cancelText: t('取消'),