diff --git a/web/src/locales/en.ts b/web/src/locales/en.ts index 4227c2ec7e..d597945003 100644 --- a/web/src/locales/en.ts +++ b/web/src/locales/en.ts @@ -632,8 +632,8 @@ The above is the content you need to summarize.`, email: 'Email', emailTip: 'This component is used to get search result from https://pubmed.ncbi.nlm.nih.gov/. Typically, it performs as a supplement to knowledgebases. Top N specifies the number of search results you need to adapt. E-mail is a required field.', - arxiv: 'Arxiv', - arxivTip: + arXiv: 'ArXiv', + arXivTip: 'This component is used to get search result from https://arxiv.org/. Typically, it performs as a supplement to knowledgebases. Top N specifies the number of search results you need to adapt.', sortBy: 'Sort by', submittedDate: 'Submitted date', diff --git a/web/src/locales/zh-traditional.ts b/web/src/locales/zh-traditional.ts index c765237d3f..263f8d3fe4 100644 --- a/web/src/locales/zh-traditional.ts +++ b/web/src/locales/zh-traditional.ts @@ -592,8 +592,8 @@ export default { email: '信箱', emailTip: '此元件用於從 https://pubmed.ncbi.nlm.nih.gov/ 取得搜尋結果。通常,它充當知識庫的補充。 Top N 指定您需要適應的搜尋結果的數量。電子郵件是必填欄位。', - arxiv: 'Arxiv', - arxivTip: + arXiv: 'ArXiv', + arXivTip: '此元件用於從 https://arxiv.org/ 取得搜尋結果。通常,它充當知識庫的補充。 Top N 指定您需要適應的搜尋結果的數量。', sortBy: '排序方式', submittedDate: '提交日期', diff --git a/web/src/locales/zh.ts b/web/src/locales/zh.ts index 9d541423b4..fec343513a 100644 --- a/web/src/locales/zh.ts +++ b/web/src/locales/zh.ts @@ -610,8 +610,8 @@ export default { email: '邮箱', emailTip: '此组件用于从 https://pubmed.ncbi.nlm.nih.gov/ 获取搜索结果。通常,它作为知识库的补充。Top N 指定您需要调整的搜索结果数。电子邮件是必填字段。', - arxiv: 'Arxiv', - arxivTip: + arXiv: 'ArXiv', + arXivTip: '此组件用于从 https://arxiv.org/ 获取搜索结果。通常,它作为知识库的补充。Top N 指定您需要调整的搜索结果数量。', sortBy: '排序方式', submittedDate: '提交日期', diff --git a/web/src/pages/flow/arxiv-form/index.tsx b/web/src/pages/flow/arxiv-form/index.tsx index 36be0e2bf4..49355a9a40 100644 --- a/web/src/pages/flow/arxiv-form/index.tsx +++ b/web/src/pages/flow/arxiv-form/index.tsx @@ -4,7 +4,7 @@ import { Form, Select } from 'antd'; import { useMemo } from 'react'; import { IOperatorForm } from '../interface'; -const ArxivForm = ({ onValuesChange, form }: IOperatorForm) => { +const ArXivForm = ({ onValuesChange, form }: IOperatorForm) => { const { t } = useTranslate('flow'); const options = useMemo(() => { @@ -31,4 +31,4 @@ const ArxivForm = ({ onValuesChange, form }: IOperatorForm) => { ); }; -export default ArxivForm; +export default ArXivForm; diff --git a/web/src/pages/flow/canvas/node/index.tsx b/web/src/pages/flow/canvas/node/index.tsx index c9f8aababb..a31b2b4f02 100644 --- a/web/src/pages/flow/canvas/node/index.tsx +++ b/web/src/pages/flow/canvas/node/index.tsx @@ -14,7 +14,7 @@ import NodePopover from './popover'; const ZeroGapOperators = [ Operator.RewriteQuestion, Operator.KeywordExtract, - Operator.Arxiv, + Operator.ArXiv, ]; export function RagNode({ diff --git a/web/src/pages/flow/constant.tsx b/web/src/pages/flow/constant.tsx index d3865a1307..29cfbe2954 100644 --- a/web/src/pages/flow/constant.tsx +++ b/web/src/pages/flow/constant.tsx @@ -39,7 +39,7 @@ export enum Operator { DuckDuckGo = 'DuckDuckGo', Wikipedia = 'Wikipedia', PubMed = 'PubMed', - Arxiv = 'Arxiv', + ArXiv = 'ArXiv', } export const operatorIconMap = { @@ -56,7 +56,7 @@ export const operatorIconMap = { [Operator.Baidu]: BaiduIcon, [Operator.Wikipedia]: WikipediaIcon, [Operator.PubMed]: PubMedIcon, - [Operator.Arxiv]: ArxivIcon, + [Operator.ArXiv]: ArxivIcon, }; export const operatorMap = { @@ -123,7 +123,7 @@ export const operatorMap = { [Operator.PubMed]: { backgroundColor: '#a2ccf0', }, - [Operator.Arxiv]: { + [Operator.ArXiv]: { width: 70, height: 70, fontSize: 12, @@ -173,7 +173,7 @@ export const componentMenuList = [ name: Operator.PubMed, }, { - name: Operator.Arxiv, + name: Operator.ArXiv, }, ]; @@ -317,7 +317,7 @@ export const RestrictedUpstreamMap = { [Operator.DuckDuckGo]: [Operator.Begin, Operator.Retrieval], [Operator.Wikipedia]: [Operator.Begin, Operator.Retrieval], [Operator.PubMed]: [Operator.Begin, Operator.Retrieval], - [Operator.Arxiv]: [Operator.Begin, Operator.Retrieval], + [Operator.ArXiv]: [Operator.Begin, Operator.Retrieval], }; export const NodeMap = { @@ -334,7 +334,7 @@ export const NodeMap = { [Operator.Baidu]: 'ragNode', [Operator.Wikipedia]: 'ragNode', [Operator.PubMed]: 'ragNode', - [Operator.Arxiv]: 'ragNode', + [Operator.ArXiv]: 'ragNode', }; export const LanguageOptions = [ diff --git a/web/src/pages/flow/flow-drawer/index.tsx b/web/src/pages/flow/flow-drawer/index.tsx index 2031ad9bab..1b7ce9f724 100644 --- a/web/src/pages/flow/flow-drawer/index.tsx +++ b/web/src/pages/flow/flow-drawer/index.tsx @@ -4,7 +4,7 @@ import { Drawer, Flex, Form, Input } from 'antd'; import { useEffect } from 'react'; import { Node } from 'reactflow'; import AnswerForm from '../answer-form'; -import ArxivForm from '../arxiv-form'; +import ArXivForm from '../arxiv-form'; import BaiduForm from '../baidu-form'; import BeginForm from '../begin-form'; import CategorizeForm from '../categorize-form'; @@ -41,7 +41,7 @@ const FormMap = { [Operator.KeywordExtract]: KeywordExtractForm, [Operator.Wikipedia]: WikipediaForm, [Operator.PubMed]: PubMedForm, - [Operator.Arxiv]: ArxivForm, + [Operator.ArXiv]: ArXivForm, }; const EmptyContent = () =>