Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions web/src/components/table/task-logs/modals/ContentModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ For commercial licensing, please contact support@quantumnous.com
import React, { useState, useEffect } from 'react';
import { Modal, Button, Typography, Spin } from '@douyinfe/semi-ui';
import { IconExternalOpen, IconCopy } from '@douyinfe/semi-icons';
import { useTranslation } from 'react-i18next';

const { Text } = Typography;

Expand All @@ -29,6 +30,7 @@ const ContentModal = ({
modalContent,
isVideo,
}) => {
const { t } = useTranslation();
const [videoError, setVideoError] = useState(false);
const [isLoading, setIsLoading] = useState(false);

Expand Down Expand Up @@ -64,25 +66,25 @@ const ContentModal = ({
type='tertiary'
style={{ display: 'block', marginBottom: '16px' }}
>
视频无法在当前浏览器中播放,这可能是由于:
{t('视频无法在当前浏览器中播放,这可能是由于:')}
</Text>
<Text
type='tertiary'
style={{ display: 'block', marginBottom: '8px', fontSize: '12px' }}
>
• 视频服务商的跨域限制
{t('• 视频服务商的跨域限制')}
</Text>
<Text
type='tertiary'
style={{ display: 'block', marginBottom: '8px', fontSize: '12px' }}
>
• 需要特定的请求头或认证
{t('• 需要特定的请求头或认证')}
</Text>
<Text
type='tertiary'
style={{ display: 'block', marginBottom: '16px', fontSize: '12px' }}
>
• 防盗链保护机制
{t('• 防盗链保护机制')}
</Text>

<div style={{ marginTop: '20px' }}>
Expand All @@ -91,10 +93,10 @@ const ContentModal = ({
onClick={handleOpenInNewTab}
style={{ marginRight: '8px' }}
>
在新标签页中打开
{t('在新标签页中打开')}
</Button>
<Button icon={<IconCopy />} onClick={handleCopyUrl}>
复制链接
{t('复制链接')}
</Button>
</div>

Expand Down
Loading