feat: 合并代码后 系统设置 ui样式优化、bug修复、全局统一图标对齐等
This commit is contained in:
@@ -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('取消'),
|
||||
|
||||
Reference in New Issue
Block a user