Merge branch 'feat/mcp-frontend' into deploy/dev

pull/22036/head
nite-knite 11 months ago
commit 9cb17dba5f

@ -78,9 +78,9 @@ const MCPDetailContent: FC<Props> = ({
}) })
const [isShowUpdateModal, { const [isShowUpdateModal, {
setTrue: showUpdateModal, setTrue: showUpdateModal,
setFalse: hideUpdateModal, setFalse: hideUpdateModal,
}] = useBoolean(false) }] = useBoolean(false)
const [isShowDeleteConfirm, { const [isShowDeleteConfirm, {
setTrue: showDeleteConfirm, setTrue: showDeleteConfirm,
@ -144,7 +144,7 @@ const MCPDetailContent: FC<Props> = ({
useEffect(() => { useEffect(() => {
if (isCreation) if (isCreation)
handleAuthorize() handleAuthorize()
// eslint-disable-next-line react-hooks/exhaustive-deps // eslint-disable-next-line react-hooks/exhaustive-deps
}, []) }, [])
if (!detail) if (!detail)
@ -298,7 +298,8 @@ const MCPDetailContent: FC<Props> = ({
{isShowUpdateConfirm && ( {isShowUpdateConfirm && (
<Confirm <Confirm
isShow isShow
title={t('tools.mcp.update')} title={t('tools.mcp.toolUpdateConfirmTitle')}
content={t('tools.mcp.toolUpdateConfirmContent')}
onCancel={hideUpdateConfirm} onCancel={hideUpdateConfirm}
onConfirm={handleUpdateTools} onConfirm={handleUpdateTools}
/> />

@ -193,6 +193,8 @@ const translation = {
updateTools: 'Updating Tools...', updateTools: 'Updating Tools...',
toolsEmpty: 'Tools not loaded', toolsEmpty: 'Tools not loaded',
getTools: 'Get tools', getTools: 'Get tools',
toolUpdateConfirmTitle: 'Update Tool List',
toolUpdateConfirmContent: 'Updating the tool list may affect existing apps. Do you wish to proceed?',
toolsNum: '{{count}} tools included', toolsNum: '{{count}} tools included',
onlyTool: '1 tool included', onlyTool: '1 tool included',
identifier: 'Server Identifier (Click to Copy)', identifier: 'Server Identifier (Click to Copy)',

@ -193,6 +193,8 @@ const translation = {
updateTools: '更新工具中...', updateTools: '更新工具中...',
toolsEmpty: '工具未加载', toolsEmpty: '工具未加载',
getTools: '获取工具', getTools: '获取工具',
toolUpdateConfirmTitle: '更新工具列表',
toolUpdateConfirmContent: '更新工具列表可能影响现有应用。您想继续吗?',
toolsNum: '包含 {{count}} 个工具', toolsNum: '包含 {{count}} 个工具',
onlyTool: '包含 1 个工具', onlyTool: '包含 1 个工具',
identifier: '服务器标识符 (点击复制)', identifier: '服务器标识符 (点击复制)',

Loading…
Cancel
Save