更新翻译
This commit is contained in:
parent
0ce62607db
commit
925098944c
@ -1040,5 +1040,18 @@
|
|||||||
"Agent flow data is missing": "智能体流程数据不存在",
|
"Agent flow data is missing": "智能体流程数据不存在",
|
||||||
"Installation failed": "安装失败",
|
"Installation failed": "安装失败",
|
||||||
"Installing Agent": "正在安装智能体",
|
"Installing Agent": "正在安装智能体",
|
||||||
"Installing Node": "正在安装节点"
|
"Installing Node": "正在安装节点",
|
||||||
|
|
||||||
|
"My Published Nodes": "已发布节点",
|
||||||
|
"My Published Agents": "已发布智能体",
|
||||||
|
"Manage your published nodes in the marketplace": "管理您在市场中发布的节点",
|
||||||
|
"Manage your published agents in the marketplace": "管理您在市场中发布的智能体",
|
||||||
|
"Node name does not exist": "节点名称不存在",
|
||||||
|
"Agent name does not exist": "智能体名称不存在",
|
||||||
|
"Are you sure you want to delete node \"{0}\"? This action cannot be undone.": "确定要删除节点 \"{0}\" 吗?此操作不可恢复。",
|
||||||
|
"Are you sure you want to delete agent \"{0}\"? This action cannot be undone.": "确定要删除智能体 \"{0}\" 吗?此操作不可恢复。",
|
||||||
|
"Node deleted successfully": "节点删除成功",
|
||||||
|
"Agent deleted successfully": "智能体删除成功",
|
||||||
|
"Confirm Delete": "确认删除",
|
||||||
|
"Delete failed": "删除失败"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -61,8 +61,8 @@ function getDefaultMenus(): AppMenuItem[] {
|
|||||||
{ id: 'app-installer', key: 'AppInstaller', label: 'App Installer', icon: 'tabler:upload', type: 'route', routeName: 'AppInstaller', parentId: 'dev-group', order: 5 },
|
{ id: 'app-installer', key: 'AppInstaller', label: 'App Installer', icon: 'tabler:upload', type: 'route', routeName: 'AppInstaller', parentId: 'dev-group', order: 5 },
|
||||||
{ id: 'installed-apps', key: 'InstalledApps', label: 'Installed Apps', icon: 'tabler:apps', type: 'route', routeName: 'InstalledApps', parentId: 'dev-group', order: 6 },
|
{ id: 'installed-apps', key: 'InstalledApps', label: 'Installed Apps', icon: 'tabler:apps', type: 'route', routeName: 'InstalledApps', parentId: 'dev-group', order: 6 },
|
||||||
{ id: 'my-published-apps', key: 'MyPublishedApps', label: 'My Published Apps', icon: 'tabler:cloud-upload', type: 'route', routeName: 'MyPublishedApps', parentId: 'dev-group', order: 7 },
|
{ id: 'my-published-apps', key: 'MyPublishedApps', label: 'My Published Apps', icon: 'tabler:cloud-upload', type: 'route', routeName: 'MyPublishedApps', parentId: 'dev-group', order: 7 },
|
||||||
{ id: 'my-published-nodes', key: 'MyPublishedNodes', label: '已发布节点', icon: 'carbon:add-child-node', type: 'route', routeName: 'MyPublishedNodes', parentId: 'dev-group', order: 7.1 },
|
{ id: 'my-published-nodes', key: 'MyPublishedNodes', label: 'My Published Nodes', icon: 'carbon:add-child-node', type: 'route', routeName: 'MyPublishedNodes', parentId: 'dev-group', order: 7.1 },
|
||||||
{ id: 'my-published-agents', key: 'MyPublishedAgents', label: '已发布智能体', icon: 'hugeicons:robotic', type: 'route', routeName: 'MyPublishedAgents', parentId: 'dev-group', order: 7.2 },
|
{ id: 'my-published-agents', key: 'MyPublishedAgents', label: 'My Published Agents', icon: 'hugeicons:robotic', type: 'route', routeName: 'MyPublishedAgents', parentId: 'dev-group', order: 7.2 },
|
||||||
{ id: 'app-marketplace', key: 'AppMarketplace', label: 'App Marketplace', icon: 'tabler:shopping-cart', type: 'route', routeName: 'AppMarketplace', parentId: 'dev-group', order: 7.5 },
|
{ id: 'app-marketplace', key: 'AppMarketplace', label: 'App Marketplace', icon: 'tabler:shopping-cart', type: 'route', routeName: 'AppMarketplace', parentId: 'dev-group', order: 7.5 },
|
||||||
{ id: 'node-marketplace', key: 'NodeMarketplace', label: 'Node Marketplace', icon: 'carbon:add-child-node', type: 'route', routeName: 'NodeMarketplace', parentId: 'dev-group', order: 8 },
|
{ id: 'node-marketplace', key: 'NodeMarketplace', label: 'Node Marketplace', icon: 'carbon:add-child-node', type: 'route', routeName: 'NodeMarketplace', parentId: 'dev-group', order: 8 },
|
||||||
{ id: 'agent-marketplace', key: 'AgentMarketplace', label: 'Agent Marketplace', icon: 'hugeicons:robotic', type: 'route', routeName: 'AgentMarketplace', parentId: 'dev-group', order: 8.5 },
|
{ id: 'agent-marketplace', key: 'AgentMarketplace', label: 'Agent Marketplace', icon: 'hugeicons:robotic', type: 'route', routeName: 'AgentMarketplace', parentId: 'dev-group', order: 8.5 },
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<div class="header-content">
|
<div class="header-content">
|
||||||
<div class="header-text">
|
<div class="header-text">
|
||||||
<h1>{{ t('已发布智能体') }}</h1>
|
<h1>{{ t('My Published Agents') }}</h1>
|
||||||
<p>{{ t('Manage your published agents in the marketplace') }}</p>
|
<p>{{ t('Manage your published agents in the marketplace') }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -231,17 +231,17 @@ async function deleteAgent(agent: any) {
|
|||||||
// 使用记录的name字段删除
|
// 使用记录的name字段删除
|
||||||
const recordName = agent.name
|
const recordName = agent.name
|
||||||
if (!recordName) {
|
if (!recordName) {
|
||||||
message.error(t('智能体名称不存在'))
|
message.error(t('Agent name does not exist'))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// 显示确认对话框,显示智能体标题
|
// 显示确认对话框,显示智能体标题
|
||||||
const agentTitle = agent.title || agent.agent_name || recordName
|
const agentTitle = agent.title || agent.agent_name || recordName
|
||||||
dialog.warning({
|
dialog.warning({
|
||||||
title: t('确认删除'),
|
title: t('Confirm Delete'),
|
||||||
content: t('确定要删除智能体 "{0}" 吗?此操作不可恢复。').replace('{0}', agentTitle),
|
content: t('Are you sure you want to delete agent "{0}"? This action cannot be undone.').replace('{0}', agentTitle),
|
||||||
positiveText: t('确认删除'),
|
positiveText: t('Confirm Delete'),
|
||||||
negativeText: t('取消'),
|
negativeText: t('Cancel'),
|
||||||
onPositiveClick: async () => {
|
onPositiveClick: async () => {
|
||||||
await performDelete(recordName)
|
await performDelete(recordName)
|
||||||
}
|
}
|
||||||
@ -258,11 +258,11 @@ async function performDelete(agentName: string) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
if (response.data && response.data.success) {
|
if (response.data && response.data.success) {
|
||||||
message.success(response.data.message || t('智能体删除成功'))
|
message.success(response.data.message || t('Agent deleted successfully'))
|
||||||
// 刷新智能体列表
|
// 刷新智能体列表
|
||||||
loadAgents()
|
loadAgents()
|
||||||
} else {
|
} else {
|
||||||
const errorMsg = response.data?.message || response.data?.error || t('删除失败')
|
const errorMsg = response.data?.message || response.data?.error || t('Delete failed')
|
||||||
message.error(errorMsg)
|
message.error(errorMsg)
|
||||||
}
|
}
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
@ -270,7 +270,7 @@ async function performDelete(agentName: string) {
|
|||||||
const errorMsg = error.response?.data?.detail ||
|
const errorMsg = error.response?.data?.detail ||
|
||||||
error.response?.data?.message ||
|
error.response?.data?.message ||
|
||||||
error.message ||
|
error.message ||
|
||||||
t('删除失败')
|
t('Delete failed')
|
||||||
message.error(errorMsg)
|
message.error(errorMsg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<div class="header-content">
|
<div class="header-content">
|
||||||
<div class="header-text">
|
<div class="header-text">
|
||||||
<h1>{{ t('已发布节点') }}</h1>
|
<h1>{{ t('My Published Nodes') }}</h1>
|
||||||
<p>{{ t('Manage your published nodes in the marketplace') }}</p>
|
<p>{{ t('Manage your published nodes in the marketplace') }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -235,17 +235,17 @@ async function deleteNode(node: any) {
|
|||||||
// 使用记录的name字段删除
|
// 使用记录的name字段删除
|
||||||
const recordName = node.name
|
const recordName = node.name
|
||||||
if (!recordName) {
|
if (!recordName) {
|
||||||
message.error(t('节点名称不存在'))
|
message.error(t('Node name does not exist'))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// 显示确认对话框,显示节点标题
|
// 显示确认对话框,显示节点标题
|
||||||
const nodeTitle = node.title || node.node_type || recordName
|
const nodeTitle = node.title || node.node_type || recordName
|
||||||
dialog.warning({
|
dialog.warning({
|
||||||
title: t('确认删除'),
|
title: t('Confirm Delete'),
|
||||||
content: t('确定要删除节点 "{0}" 吗?此操作不可恢复。').replace('{0}', nodeTitle),
|
content: t('Are you sure you want to delete node "{0}"? This action cannot be undone.').replace('{0}', nodeTitle),
|
||||||
positiveText: t('确认删除'),
|
positiveText: t('Confirm Delete'),
|
||||||
negativeText: t('取消'),
|
negativeText: t('Cancel'),
|
||||||
onPositiveClick: async () => {
|
onPositiveClick: async () => {
|
||||||
await performDelete(recordName)
|
await performDelete(recordName)
|
||||||
}
|
}
|
||||||
@ -262,11 +262,11 @@ async function performDelete(nodeName: string) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
if (response.data && response.data.success) {
|
if (response.data && response.data.success) {
|
||||||
message.success(response.data.message || t('节点删除成功'))
|
message.success(response.data.message || t('Node deleted successfully'))
|
||||||
// 刷新节点列表
|
// 刷新节点列表
|
||||||
loadNodes()
|
loadNodes()
|
||||||
} else {
|
} else {
|
||||||
const errorMsg = response.data?.message || response.data?.error || t('删除失败')
|
const errorMsg = response.data?.message || response.data?.error || t('Delete failed')
|
||||||
message.error(errorMsg)
|
message.error(errorMsg)
|
||||||
}
|
}
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
@ -274,7 +274,7 @@ async function performDelete(nodeName: string) {
|
|||||||
const errorMsg = error.response?.data?.detail ||
|
const errorMsg = error.response?.data?.detail ||
|
||||||
error.response?.data?.message ||
|
error.response?.data?.message ||
|
||||||
error.message ||
|
error.message ||
|
||||||
t('删除失败')
|
t('Delete failed')
|
||||||
message.error(errorMsg)
|
message.error(errorMsg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user