diff --git a/mateclaw-ui/src/i18n/locales/en-US.ts b/mateclaw-ui/src/i18n/locales/en-US.ts index 35b99736..0803820c 100644 --- a/mateclaw-ui/src/i18n/locales/en-US.ts +++ b/mateclaw-ui/src/i18n/locales/en-US.ts @@ -247,6 +247,7 @@ export default { mcpServers: 'MCP Connections', mcpConnections: 'MCP Connections', toolsCatalog: 'Tools (Catalog)', + activity: 'Activity', settingsGroup: 'Settings', agents: 'Agents', security: 'Security', diff --git a/mateclaw-ui/src/i18n/locales/zh-CN.ts b/mateclaw-ui/src/i18n/locales/zh-CN.ts index 8eb97ca4..3071a3f5 100644 --- a/mateclaw-ui/src/i18n/locales/zh-CN.ts +++ b/mateclaw-ui/src/i18n/locales/zh-CN.ts @@ -247,6 +247,7 @@ export default { mcpServers: 'MCP 连接', mcpConnections: 'MCP 连接', toolsCatalog: '工具目录', + activity: '活动记录', settingsGroup: '设置', agents: '智能体', security: '安全', diff --git a/mateclaw-ui/src/router/index.ts b/mateclaw-ui/src/router/index.ts index e7892a76..963011da 100644 --- a/mateclaw-ui/src/router/index.ts +++ b/mateclaw-ui/src/router/index.ts @@ -57,6 +57,12 @@ const router = createRouter({ }, // Tools 顶层入口已降级到 Settings ▸ Tools (Catalog) (RFC-090 Phase 1) // 旧路径 /tools 由下方 redirect 兼容 + { + path: 'activity', + name: 'Activity', + component: () => import('@/views/Security/Activity/index.vue'), + meta: { title: 'Activity' }, + }, { path: 'plugins', name: 'Plugins', @@ -124,12 +130,8 @@ const router = createRouter({ component: () => import('@/views/Security/Members/index.vue'), meta: { title: 'Settings - Members' }, }, - { - path: 'activity', - name: 'SettingsActivity', - component: () => import('@/views/Security/Activity/index.vue'), - meta: { title: 'Settings - Activity' }, - }, + // RFC-090 Phase 4: Activity 提升到顶层 /activity(下方 children-out + // 的 settings/activity redirect 兼容旧链接,此处不再注册子路由) // Advanced (absorbed from top-level nav) { path: 'agent-context', @@ -206,7 +208,9 @@ const router = createRouter({ { path: 'workspace', redirect: '/settings/agent-context' }, { path: 'security/workspaces', redirect: '/settings/workspaces' }, { path: 'security/members', redirect: '/settings/members' }, - { path: 'security/activity', redirect: '/settings/activity' }, + // RFC-090 Phase 4: Activity 提升到顶层 + { path: 'security/activity', redirect: '/activity' }, + { path: 'settings/activity', redirect: '/activity' }, { path: 'cron-jobs', redirect: '/settings/cron-jobs' }, { path: 'datasources', redirect: '/settings/datasources' }, { path: 'mcp-servers', redirect: '/settings/mcp-servers' }, diff --git a/mateclaw-ui/src/views/Security/Activity/index.vue b/mateclaw-ui/src/views/Security/Activity/index.vue index c1af9e72..b9851be3 100644 --- a/mateclaw-ui/src/views/Security/Activity/index.vue +++ b/mateclaw-ui/src/views/Security/Activity/index.vue @@ -1,12 +1,18 @@ @@ -127,6 +136,10 @@ onMounted(() => {