diff --git a/packages/global/core/module/node/constant.ts b/packages/global/core/module/node/constant.ts index c0084479c90..14e7abc48ab 100644 --- a/packages/global/core/module/node/constant.ts +++ b/packages/global/core/module/node/constant.ts @@ -27,7 +27,6 @@ export enum FlowNodeOutputTypeEnum { export enum FlowNodeTypeEnum { empty = 'empty', - variable = 'variable', userGuide = 'userGuide', questionInput = 'questionInput', historyNode = 'historyNode', @@ -40,7 +39,10 @@ export enum FlowNodeTypeEnum { runApp = 'app', pluginModule = 'pluginModule', pluginInput = 'pluginInput', - pluginOutput = 'pluginOutput' + pluginOutput = 'pluginOutput', + + // abandon + variable = 'variable' } export enum FlowNodeSpecialInputKeyEnum { diff --git a/projects/app/src/components/ChatBox/MessageInput.tsx b/projects/app/src/components/ChatBox/MessageInput.tsx index 88568e75f35..7cfb687773d 100644 --- a/projects/app/src/components/ChatBox/MessageInput.tsx +++ b/projects/app/src/components/ChatBox/MessageInput.tsx @@ -338,7 +338,7 @@ ${images.map((img) => JSON.stringify({ src: img.src })).join('\n')} }} onPaste={(e) => { const clipboardData = e.clipboardData; - if (clipboardData) { + if (clipboardData && showFileSelector) { const items = clipboardData.items; const files = Array.from(items) .map((item) => (item.kind === 'file' ? item.getAsFile() : undefined)) diff --git a/projects/app/src/components/ChatBox/QuoteModal.tsx b/projects/app/src/components/ChatBox/QuoteModal.tsx index 07d82f1ee7f..c680177f8fa 100644 --- a/projects/app/src/components/ChatBox/QuoteModal.tsx +++ b/projects/app/src/components/ChatBox/QuoteModal.tsx @@ -110,7 +110,7 @@ const QuoteModal = ({ href={`/dataset/detail?datasetId=${item.datasetId}¤tTab=dataCard&collectionId=${item.collectionId}`} > {t('core.dataset.Go Dataset')} - + )} diff --git a/projects/app/src/components/ChatBox/index.tsx b/projects/app/src/components/ChatBox/index.tsx index 028fb3a0914..a2a692dda11 100644 --- a/projects/app/src/components/ChatBox/index.tsx +++ b/projects/app/src/components/ChatBox/index.tsx @@ -774,7 +774,7 @@ const ChatBox = ( {showMarkIcon && item.adminFeedback && ( - + {t('chat.Admin Mark Content')} @@ -1093,7 +1093,7 @@ function ChatController({ @@ -1113,7 +1113,7 @@ function ChatController({ hasAudio && (audioLoading ? ( - + ) : audioPlaying ? ( @@ -1160,7 +1160,7 @@ function ChatController({ @@ -1174,7 +1174,7 @@ function ChatController({ color={'white'} bg={'#FC9663'} fontWeight={'bold'} - name={'badLight'} + name={'core/chat/feedback/badLight'} onClick={onReadFeedback} /> @@ -1196,7 +1196,7 @@ function ChatController({ _hover: { color: '#FB7C3C' }, onClick: onFeedback })} - name={'badLight'} + name={'core/chat/feedback/badLight'} /> )} diff --git a/projects/app/src/components/Icon/icons/circle/add.svg b/projects/app/src/components/Icon/icons/common/addCircleLight.svg similarity index 100% rename from projects/app/src/components/Icon/icons/circle/add.svg rename to projects/app/src/components/Icon/icons/common/addCircleLight.svg diff --git a/projects/app/src/components/Icon/icons/light/course.svg b/projects/app/src/components/Icon/icons/common/courseLight.svg similarity index 100% rename from projects/app/src/components/Icon/icons/light/course.svg rename to projects/app/src/components/Icon/icons/common/courseLight.svg diff --git a/projects/app/src/components/Icon/icons/light/move.svg b/projects/app/src/components/Icon/icons/common/file/move.svg similarity index 100% rename from projects/app/src/components/Icon/icons/light/move.svg rename to projects/app/src/components/Icon/icons/common/file/move.svg diff --git a/projects/app/src/components/Icon/icons/language/en.svg b/projects/app/src/components/Icon/icons/common/language/en.svg similarity index 100% rename from projects/app/src/components/Icon/icons/language/en.svg rename to projects/app/src/components/Icon/icons/common/language/en.svg diff --git a/projects/app/src/components/Icon/icons/language/zh.svg b/projects/app/src/components/Icon/icons/common/language/zh.svg similarity index 100% rename from projects/app/src/components/Icon/icons/language/zh.svg rename to projects/app/src/components/Icon/icons/common/language/zh.svg diff --git a/projects/app/src/components/Icon/icons/light/loading.svg b/projects/app/src/components/Icon/icons/common/loading.svg similarity index 100% rename from projects/app/src/components/Icon/icons/light/loading.svg rename to projects/app/src/components/Icon/icons/common/loading.svg diff --git a/projects/app/src/components/Icon/icons/common/playFill.svg b/projects/app/src/components/Icon/icons/common/playFill.svg new file mode 100644 index 00000000000..4a7ce1b165f --- /dev/null +++ b/projects/app/src/components/Icon/icons/common/playFill.svg @@ -0,0 +1,8 @@ + + + + \ No newline at end of file diff --git a/projects/app/src/components/Icon/icons/light/retry.svg b/projects/app/src/components/Icon/icons/common/retryLight.svg similarity index 100% rename from projects/app/src/components/Icon/icons/light/retry.svg rename to projects/app/src/components/Icon/icons/common/retryLight.svg diff --git a/projects/app/src/components/Icon/icons/light/rightArrow.svg b/projects/app/src/components/Icon/icons/common/rightArrowLight.svg similarity index 100% rename from projects/app/src/components/Icon/icons/light/rightArrow.svg rename to projects/app/src/components/Icon/icons/common/rightArrowLight.svg diff --git a/projects/app/src/components/Icon/icons/light/search.svg b/projects/app/src/components/Icon/icons/common/searchLight.svg similarity index 100% rename from projects/app/src/components/Icon/icons/light/search.svg rename to projects/app/src/components/Icon/icons/common/searchLight.svg diff --git a/projects/app/src/components/Icon/icons/light/logs.svg b/projects/app/src/components/Icon/icons/core/app/logsLight.svg similarity index 100% rename from projects/app/src/components/Icon/icons/light/logs.svg rename to projects/app/src/components/Icon/icons/core/app/logsLight.svg diff --git a/projects/app/src/components/Icon/icons/light/mark.svg b/projects/app/src/components/Icon/icons/core/app/markLight.svg similarity index 100% rename from projects/app/src/components/Icon/icons/light/mark.svg rename to projects/app/src/components/Icon/icons/core/app/markLight.svg diff --git a/projects/app/src/components/Icon/icons/app/questionGuide.svg b/projects/app/src/components/Icon/icons/core/app/questionGuide.svg similarity index 100% rename from projects/app/src/components/Icon/icons/app/questionGuide.svg rename to projects/app/src/components/Icon/icons/core/app/questionGuide.svg diff --git a/projects/app/src/components/Icon/icons/light/chatModelTag.svg b/projects/app/src/components/Icon/icons/core/chat/chatModelTag.svg similarity index 100% rename from projects/app/src/components/Icon/icons/light/chatModelTag.svg rename to projects/app/src/components/Icon/icons/core/chat/chatModelTag.svg diff --git a/projects/app/src/components/Icon/icons/light/bad.svg b/projects/app/src/components/Icon/icons/core/chat/feedback/badLight.svg similarity index 100% rename from projects/app/src/components/Icon/icons/light/bad.svg rename to projects/app/src/components/Icon/icons/core/chat/feedback/badLight.svg diff --git a/projects/app/src/components/Icon/icons/light/loginout.svg b/projects/app/src/components/Icon/icons/support/account/loginoutLight.svg similarity index 100% rename from projects/app/src/components/Icon/icons/light/loginout.svg rename to projects/app/src/components/Icon/icons/support/account/loginoutLight.svg diff --git a/projects/app/src/components/Icon/icons/light/promotion.svg b/projects/app/src/components/Icon/icons/support/account/promotionLight.svg similarity index 100% rename from projects/app/src/components/Icon/icons/light/promotion.svg rename to projects/app/src/components/Icon/icons/support/account/promotionLight.svg diff --git a/projects/app/src/components/Icon/icons/outlink/iframe.svg b/projects/app/src/components/Icon/icons/support/outlink/iframeLight.svg similarity index 100% rename from projects/app/src/components/Icon/icons/outlink/iframe.svg rename to projects/app/src/components/Icon/icons/support/outlink/iframeLight.svg diff --git a/projects/app/src/components/Icon/icons/outlink/share.svg b/projects/app/src/components/Icon/icons/support/outlink/shareLight.svg similarity index 100% rename from projects/app/src/components/Icon/icons/outlink/share.svg rename to projects/app/src/components/Icon/icons/support/outlink/shareLight.svg diff --git a/projects/app/src/components/Icon/icons/light/payRecord.svg b/projects/app/src/components/Icon/icons/support/pay/payRecordLight.svg similarity index 100% rename from projects/app/src/components/Icon/icons/light/payRecord.svg rename to projects/app/src/components/Icon/icons/support/pay/payRecordLight.svg diff --git a/projects/app/src/components/Icon/index.tsx b/projects/app/src/components/Icon/index.tsx index d2363658e23..e497805ff27 100644 --- a/projects/app/src/components/Icon/index.tsx +++ b/projects/app/src/components/Icon/index.tsx @@ -65,27 +65,26 @@ const iconPaths = { customTitle: () => import('./icons/light/customTitle.svg'), billRecordLight: () => import('./icons/light/billRecord.svg'), informLight: () => import('./icons/light/inform.svg'), - payRecordLight: () => import('./icons/light/payRecord.svg'), - loginoutLight: () => import('./icons/light/loginout.svg'), - chatModelTag: () => import('./icons/light/chatModelTag.svg'), - language_en: () => import('./icons/language/en.svg'), - language_zh: () => import('./icons/language/zh.svg'), - outlink_share: () => import('./icons/outlink/share.svg'), - outlink_iframe: () => import('./icons/outlink/iframe.svg'), - addCircle: () => import('./icons/circle/add.svg'), - playFill: () => import('./icons/fill/play.svg'), - courseLight: () => import('./icons/light/course.svg'), - promotionLight: () => import('./icons/light/promotion.svg'), - logsLight: () => import('./icons/light/logs.svg'), - badLight: () => import('./icons/light/bad.svg'), - markLight: () => import('./icons/light/mark.svg'), - retryLight: () => import('./icons/light/retry.svg'), - rightArrowLight: () => import('./icons/light/rightArrow.svg'), - searchLight: () => import('./icons/light/search.svg'), - plusFill: () => import('./icons/fill/plus.svg'), - moveLight: () => import('./icons/light/move.svg'), - questionGuide: () => import('./icons/app/questionGuide.svg'), - loading: () => import('./icons/light/loading.svg'), + 'support/pay/payRecordLight': () => import('./icons/support/pay/payRecordLight.svg'), + 'support/account/loginoutLight': () => import('./icons/support/account/loginoutLight.svg'), + 'core/chat/chatModelTag': () => import('./icons/core/chat/chatModelTag.svg'), + 'common/language/en': () => import('./icons/common/language/en.svg'), + 'common/language/zh': () => import('./icons/common/language/zh.svg'), + 'support/outlink/shareLight': () => import('./icons/support/outlink/shareLight.svg'), + 'support/outlink/iframeLight': () => import('./icons/support/outlink/iframeLight.svg'), + 'common/addCircleLight': () => import('./icons/common/addCircleLight.svg'), + 'common/playFill': () => import('./icons/common/playFill.svg'), + 'common/courseLight': () => import('./icons/common/courseLight.svg'), + 'support/account/promotionLight': () => import('./icons/support/account/promotionLight.svg'), + 'core/app/logsLight': () => import('./icons/core/app/logsLight.svg'), + 'core/chat/feedback/badLight': () => import('./icons/core/chat/feedback/badLight.svg'), + 'core/app/markLight': () => import('./icons/core/app/markLight.svg'), + 'common/retryLight': () => import('./icons/common/retryLight.svg'), + 'common/rightArrowLight': () => import('./icons/common/rightArrowLight.svg'), + 'common/searchLight': () => import('./icons/common/searchLight.svg'), + 'common/file/move': () => import('./icons/common/file/move.svg'), + 'core/app/questionGuide': () => import('./icons/core/app/questionGuide.svg'), + 'common/loading': () => import('./icons/common/loading.svg'), 'core/app/aiLight': () => import('./icons/core/app/aiLight.svg'), 'core/app/aiFill': () => import('./icons/core/app/aiFill.svg'), 'common/text/t': () => import('./icons/common/text/t.svg'), diff --git a/projects/app/src/components/Layout/navbar.tsx b/projects/app/src/components/Layout/navbar.tsx index 69792037c5c..845e8e3e79d 100644 --- a/projects/app/src/components/Layout/navbar.tsx +++ b/projects/app/src/components/Layout/navbar.tsx @@ -184,7 +184,7 @@ const Navbar = ({ unread }: { unread: number }) => { window.open(`${feConfigs.docUrl}/docs/intro`); }} > - + )} diff --git a/projects/app/src/components/common/ParentPaths/index.tsx b/projects/app/src/components/common/ParentPaths/index.tsx index 6adabdae0a6..b9d0a9f34b7 100644 --- a/projects/app/src/components/common/ParentPaths/index.tsx +++ b/projects/app/src/components/common/ParentPaths/index.tsx @@ -51,7 +51,7 @@ const ParentPaths = (props: { {item.parentName} {i !== concatPaths.length - 1 && ( - + )} ))} diff --git a/projects/app/src/components/core/module/Flow/TemplateList.tsx b/projects/app/src/components/core/module/Flow/TemplateList.tsx index 35b8c380eb0..dedb889cba9 100644 --- a/projects/app/src/components/core/module/Flow/TemplateList.tsx +++ b/projects/app/src/components/core/module/Flow/TemplateList.tsx @@ -123,7 +123,7 @@ const ModuleTemplateList = ({ {t('plugin.To Edit Plugin')} - + )} diff --git a/projects/app/src/components/core/module/Flow/components/nodes/NodeVariable.tsx b/projects/app/src/components/core/module/Flow/components/nodes/abandon/NodeVariable.tsx similarity index 94% rename from projects/app/src/components/core/module/Flow/components/nodes/NodeVariable.tsx rename to projects/app/src/components/core/module/Flow/components/nodes/abandon/NodeVariable.tsx index f3a9b81ffb7..1970c0dcca6 100644 --- a/projects/app/src/components/core/module/Flow/components/nodes/NodeVariable.tsx +++ b/projects/app/src/components/core/module/Flow/components/nodes/abandon/NodeVariable.tsx @@ -3,16 +3,16 @@ import React, { useCallback, useMemo, useState } from 'react'; import { NodeProps } from 'reactflow'; import { Box, Button, Table, Thead, Tbody, Tr, Th, Td, TableContainer } from '@chakra-ui/react'; import { AddIcon } from '@chakra-ui/icons'; -import NodeCard from '../modules/NodeCard'; +import NodeCard from '../../modules/NodeCard'; import { FlowModuleItemType } from '@fastgpt/global/core/module/type.d'; -import Container from '../modules/Container'; +import Container from '../../modules/Container'; import { SystemInputEnum, VariableInputEnum } from '@/constants/app'; import type { VariableItemType } from '@/types/app'; import MyIcon from '@/components/Icon'; import { customAlphabet } from 'nanoid'; const nanoid = customAlphabet('abcdefghijklmnopqrstuvwxyz1234567890', 6); -import VariableEditModal, { addVariable } from '../../../VariableEditModal'; -import { onChangeNode } from '../../FlowProvider'; +import VariableEditModal, { addVariable } from '../../../../VariableEditModal'; +import { onChangeNode } from '../../../FlowProvider'; export const defaultVariable: VariableItemType = { id: nanoid(), diff --git a/projects/app/src/components/core/module/Flow/index.tsx b/projects/app/src/components/core/module/Flow/index.tsx index 72e552f4647..6d809096b88 100644 --- a/projects/app/src/components/core/module/Flow/index.tsx +++ b/projects/app/src/components/core/module/Flow/index.tsx @@ -17,7 +17,7 @@ import type { ModuleItemType } from '@fastgpt/global/core/module/type.d'; const NodeSimple = dynamic(() => import('./components/nodes/NodeSimple')); const nodeTypes = { [FlowNodeTypeEnum.userGuide]: dynamic(() => import('./components/nodes/NodeUserGuide')), - [FlowNodeTypeEnum.variable]: dynamic(() => import('./components/nodes/NodeVariable')), + [FlowNodeTypeEnum.variable]: dynamic(() => import('./components/nodes/abandon/NodeVariable')), [FlowNodeTypeEnum.questionInput]: dynamic(() => import('./components/nodes/NodeQuestionInput')), [FlowNodeTypeEnum.historyNode]: NodeSimple, [FlowNodeTypeEnum.chatNode]: NodeSimple, diff --git a/projects/app/src/components/support/user/team/TeamManageModal/index.tsx b/projects/app/src/components/support/user/team/TeamManageModal/index.tsx index faf3bf6de1c..bf4d960e285 100644 --- a/projects/app/src/components/support/user/team/TeamManageModal/index.tsx +++ b/projects/app/src/components/support/user/team/TeamManageModal/index.tsx @@ -154,7 +154,7 @@ const TeamManageModal = ({ onClose }: { onClose: () => void }) => { border={'none'} icon={ void }) => { size="sm" borderRadius={'md'} ml={3} - leftIcon={} + leftIcon={ + + } onClick={() => { openLeaveConfirm(() => onLeaveTeam(userInfo?.team?.teamId))(); }} diff --git a/projects/app/src/pages/account/components/Info.tsx b/projects/app/src/pages/account/components/Info.tsx index de51de2dab5..530014d6702 100644 --- a/projects/app/src/pages/account/components/Info.tsx +++ b/projects/app/src/pages/account/components/Info.tsx @@ -264,7 +264,7 @@ const UserInfo = () => { window.open(`${feConfigs.docUrl}/docs/intro`); }} > - + {t('system.Help Document')} diff --git a/projects/app/src/pages/account/index.tsx b/projects/app/src/pages/account/index.tsx index 8a233651de0..a5c17fa418b 100644 --- a/projects/app/src/pages/account/index.tsx +++ b/projects/app/src/pages/account/index.tsx @@ -53,7 +53,7 @@ const Account = ({ currentTab }: { currentTab: `${TabEnum}` }) => { ...(feConfigs?.show_promotion ? [ { - icon: 'promotionLight', + icon: 'support/account/promotionLight', label: t('user.Promotion Record'), id: TabEnum.promotion } @@ -62,7 +62,7 @@ const Account = ({ currentTab }: { currentTab: `${TabEnum}` }) => { ...(feConfigs?.show_pay && userInfo?.team.canWrite ? [ { - icon: 'payRecordLight', + icon: 'support/pay/payRecordLight', label: t('user.Recharge Record'), id: TabEnum.pay } @@ -88,7 +88,7 @@ const Account = ({ currentTab }: { currentTab: `${TabEnum}` }) => { : []), { - icon: 'loginoutLight', + icon: 'support/account/loginoutLight', label: t('user.Sign Out'), id: TabEnum.loginout } diff --git a/projects/app/src/pages/app/detail/components/Logs.tsx b/projects/app/src/pages/app/detail/components/Logs.tsx index 154b6ea2e50..d7c34416b0e 100644 --- a/projects/app/src/pages/app/detail/components/Logs.tsx +++ b/projects/app/src/pages/app/detail/components/Logs.tsx @@ -125,7 +125,12 @@ const Logs = ({ appId }: { appId: string }) => { borderRadius={'lg'} fontWeight={'bold'} > - + {item.feedbackCount} @@ -254,7 +259,7 @@ function DetailLogsModal({ {!!chat?.app?.chatModels && ( - + {chat.app.chatModels.join(',')} )} diff --git a/projects/app/src/pages/app/detail/components/OutLink/index.tsx b/projects/app/src/pages/app/detail/components/OutLink/index.tsx index ad52c694412..c125b435c84 100644 --- a/projects/app/src/pages/app/detail/components/OutLink/index.tsx +++ b/projects/app/src/pages/app/detail/components/OutLink/index.tsx @@ -24,7 +24,7 @@ const OutLink = ({ appId }: { appId: string }) => { iconSize={'20px'} list={[ { - icon: 'outlink_share', + icon: 'support/outlink/shareLight', title: '免登录窗口', desc: '分享链接给其他用户,无需登录即可直接进行使用', value: OutLinkTypeEnum.share @@ -36,7 +36,7 @@ const OutLink = ({ appId }: { appId: string }) => { value: OutLinkTypeEnum.apikey } // { - // icon: 'outlink_iframe', + // icon: 'support/outlink/iframeLight', // title: '网页嵌入', // desc: '嵌入到已有网页中,右下角会生成对话按键', // value: OutLinkTypeEnum.iframe diff --git a/projects/app/src/pages/app/detail/components/QGSwitch.tsx b/projects/app/src/pages/app/detail/components/QGSwitch.tsx index 9f6c72d3693..2d4c88e7e28 100644 --- a/projects/app/src/pages/app/detail/components/QGSwitch.tsx +++ b/projects/app/src/pages/app/detail/components/QGSwitch.tsx @@ -9,7 +9,7 @@ const QGSwitch = (props: SwitchProps) => { const { t } = useTranslation(); return ( - + {t('core.app.Next Step Guide')} diff --git a/projects/app/src/pages/app/detail/index.tsx b/projects/app/src/pages/app/detail/index.tsx index 5c5743bed7c..bd1703c62ec 100644 --- a/projects/app/src/pages/app/detail/index.tsx +++ b/projects/app/src/pages/app/detail/index.tsx @@ -56,7 +56,7 @@ const AppDetail = ({ currentTab }: { currentTab: `${TabEnum}` }) => { ? [] : [{ label: '高级编排', id: TabEnum.adEdit, icon: 'settingLight' }]), { label: '外部使用', id: TabEnum.outLink, icon: 'shareLight' }, - { label: '对话日志', id: TabEnum.logs, icon: 'logsLight' }, + { label: '对话日志', id: TabEnum.logs, icon: 'core/app/logsLight' }, { label: '立即对话', id: TabEnum.startChat, icon: 'chat' } ], [] diff --git a/projects/app/src/pages/chat/components/ChatHeader.tsx b/projects/app/src/pages/chat/components/ChatHeader.tsx index 7d0586981ae..da533bf5628 100644 --- a/projects/app/src/pages/chat/components/ChatHeader.tsx +++ b/projects/app/src/pages/chat/components/ChatHeader.tsx @@ -55,7 +55,7 @@ const ChatHeader = ({ {!!chatModels && chatModels.length > 0 && ( - + {chatModels.join(',')} )} diff --git a/projects/app/src/pages/components/Hero.tsx b/projects/app/src/pages/components/Hero.tsx index 471a9893025..d83d026ae1f 100644 --- a/projects/app/src/pages/components/Hero.tsx +++ b/projects/app/src/pages/components/Hero.tsx @@ -65,7 +65,7 @@ const Hero = () => { loading={'lazy'} /> { + } w={['100%', '250px']} size={['sm', 'md']} @@ -472,7 +477,7 @@ const CollectionCard = () => { { child: ( - + {t('Move')} ), diff --git a/projects/app/src/pages/dataset/detail/components/DataCard.tsx b/projects/app/src/pages/dataset/detail/components/DataCard.tsx index ec81738fb20..f97fda3dbd2 100644 --- a/projects/app/src/pages/dataset/detail/components/DataCard.tsx +++ b/projects/app/src/pages/dataset/detail/components/DataCard.tsx @@ -147,7 +147,12 @@ const DataCard = () => { + } w={['200px', '300px']} placeholder="根据匹配知识,预期答案和来源进行搜索" diff --git a/projects/app/src/pages/dataset/detail/components/InputDataModal.tsx b/projects/app/src/pages/dataset/detail/components/InputDataModal.tsx index dc04c5ad187..e2bb8f439ad 100644 --- a/projects/app/src/pages/dataset/detail/components/InputDataModal.tsx +++ b/projects/app/src/pages/dataset/detail/components/InputDataModal.tsx @@ -91,7 +91,7 @@ const InputDataModal = ({ ...(defaultValue.id ? [{ label: t('dataset.data.edit.Delete'), id: TabEnum.delete, icon: 'delete' }] : []), - { label: t('dataset.data.edit.Course'), id: TabEnum.doc, icon: 'courseLight' } + { label: t('dataset.data.edit.Course'), id: TabEnum.doc, icon: 'common/courseLight' } ]; const { ConfirmModal, openConfirm } = useConfirm({ @@ -352,7 +352,7 @@ const InputDataModal = ({ }) } > - + {t('dataset.data.Add Index')} diff --git a/projects/app/src/pages/dataset/list/component/MoveModal.tsx b/projects/app/src/pages/dataset/list/component/MoveModal.tsx index fb13159cb41..78a37355cbf 100644 --- a/projects/app/src/pages/dataset/list/component/MoveModal.tsx +++ b/projects/app/src/pages/dataset/list/component/MoveModal.tsx @@ -85,7 +85,7 @@ const MoveModal = ({ {item.parentName} {i !== paths.length - 1 && ( - + )} ))} diff --git a/projects/app/src/pages/dataset/list/index.tsx b/projects/app/src/pages/dataset/list/index.tsx index 1182ba0b713..7dddd59b18e 100644 --- a/projects/app/src/pages/dataset/list/index.tsx +++ b/projects/app/src/pages/dataset/list/index.tsx @@ -347,7 +347,7 @@ const Kb = () => { { child: ( - + {t('Move')} ), diff --git a/projects/app/src/pages/tools/index.tsx b/projects/app/src/pages/tools/index.tsx index 8815c4d3cee..4ee823b9aba 100644 --- a/projects/app/src/pages/tools/index.tsx +++ b/projects/app/src/pages/tools/index.tsx @@ -42,7 +42,7 @@ const Tools = () => { ...(feConfigs?.docUrl ? [ { - icon: 'courseLight', + icon: 'common/courseLight', label: '使用文档', link: `${feConfigs.docUrl}/docs/intro` } diff --git a/projects/app/src/web/common/utils/i18n.ts b/projects/app/src/web/common/utils/i18n.ts index 18148c5a65f..38b48de93b6 100644 --- a/projects/app/src/web/common/utils/i18n.ts +++ b/projects/app/src/web/common/utils/i18n.ts @@ -8,11 +8,11 @@ export enum LangEnum { export const langMap = { [LangEnum.en]: { label: 'English', - icon: 'language_en' + icon: 'common/language/en' }, [LangEnum.zh]: { label: '简体中文', - icon: 'language_zh' + icon: 'common/language/zh' } };