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