mirror of
https://github.com/eyebluecn/tank-front
synced 2024-04-21 12:31:55 +00:00
add crawl description
This commit is contained in:
@@ -167,6 +167,8 @@ let LangEn = {
|
||||
crawlFilenameTip: 'Please enter filename',
|
||||
crawlBackground: 'Background',
|
||||
crawlSuccessTip: 'Crawl successfully',
|
||||
crawlDescription:
|
||||
'Crawl files refers to the backend downloading directly from the specified resource link to the current directory of EyeblueTank',
|
||||
},
|
||||
router: {
|
||||
allFiles: 'All Files',
|
||||
|
||||
@@ -161,6 +161,8 @@ let LangZh = {
|
||||
crawlFilenameTip: '请输入文件名',
|
||||
crawlBackground: '后台抓取',
|
||||
crawlSuccessTip: '抓取成功',
|
||||
crawlDescription:
|
||||
'抓取文件指后台将从指定资源链接直接下载到蓝眼云盘当前目录下',
|
||||
},
|
||||
router: {
|
||||
allFiles: '全部文件',
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
import React, { useState } from 'react';
|
||||
import { Form, Input, message, Modal, Spin } from 'antd';
|
||||
import { Form, Input, message, Modal, Space, Tooltip } from 'antd';
|
||||
import Lang from '../../../common/model/global/Lang';
|
||||
import { FORM_LAYOUT } from '../../../common/const/Form';
|
||||
import { debounce } from '../../../common/util/OptimizeUtil';
|
||||
import Matter from '../../../common/model/matter/Matter';
|
||||
import { QuestionCircleOutlined } from '@ant-design/icons';
|
||||
|
||||
export interface ICrawlFormValues {
|
||||
link: string;
|
||||
@@ -59,7 +60,14 @@ const MatterCrawlModal = ({ spaceUuid, puuid, onClose }: IProps) => {
|
||||
return (
|
||||
<Modal
|
||||
visible
|
||||
title={Lang.t('matter.crawl')}
|
||||
title={
|
||||
<Space>
|
||||
{Lang.t('matter.crawl')}
|
||||
<Tooltip title={Lang.t('matter.crawlDescription')}>
|
||||
<QuestionCircleOutlined />
|
||||
</Tooltip>
|
||||
</Space>
|
||||
}
|
||||
onOk={form.submit}
|
||||
onCancel={onClose}
|
||||
confirmLoading={confirmLoading}
|
||||
@@ -72,7 +80,7 @@ const MatterCrawlModal = ({ spaceUuid, puuid, onClose }: IProps) => {
|
||||
<Form.Item
|
||||
label={Lang.t('matter.crawlLink')}
|
||||
name="link"
|
||||
rules={[{ required: true }]}
|
||||
rules={[{ required: true, message: Lang.t('matter.crawlLinkTip') }]}
|
||||
>
|
||||
<Input
|
||||
placeholder={Lang.t('matter.crawlLinkTip')}
|
||||
@@ -82,7 +90,9 @@ const MatterCrawlModal = ({ spaceUuid, puuid, onClose }: IProps) => {
|
||||
<Form.Item
|
||||
label={Lang.t('matter.crawlFilename')}
|
||||
name="filename"
|
||||
rules={[{ required: true }]}
|
||||
rules={[
|
||||
{ required: true, message: Lang.t('matter.crawlFilenameTip') },
|
||||
]}
|
||||
>
|
||||
<Input
|
||||
placeholder={Lang.t('matter.crawlFilenameTip')}
|
||||
|
||||
Reference in New Issue
Block a user