diff --git a/web/apps/web-ele/src/locales/index.ts b/web/apps/web-ele/src/locales/index.ts index ca526aa..5db1910 100644 --- a/web/apps/web-ele/src/locales/index.ts +++ b/web/apps/web-ele/src/locales/index.ts @@ -32,10 +32,12 @@ const baseModules = import.meta.glob([ const businessModules = import.meta.glob([ './langs/zh-CN/ai-platform.json', './langs/zh-CN/announcement.json', + './langs/zh-CN/dashboard-design.json', './langs/zh-CN/menu.json', './langs/zh-CN/message.json', './langs/zh-CN/permission.json', './langs/zh-CN/role.json', + './langs/zh-CN/system-config.json', './langs/zh-CN/system.json', './langs/zh-CN/user.json', ]); diff --git a/web/apps/web-ele/src/locales/langs/zh-CN/menu-title.json b/web/apps/web-ele/src/locales/langs/zh-CN/menu-title.json index be8e73e..08b367f 100644 --- a/web/apps/web-ele/src/locales/langs/zh-CN/menu-title.json +++ b/web/apps/web-ele/src/locales/langs/zh-CN/menu-title.json @@ -9,6 +9,8 @@ "codex": "Codex", "startChat": "开始聊天", "systemManagement": "系统管理", + "applicationManagement": "应用管理", + "systemMonitoring": "系统监控", "userManagement": "用户管理", "roleManagement": "角色权限", "permissionManagement": "API管理", diff --git a/web/apps/web-ele/src/router/access.ts b/web/apps/web-ele/src/router/access.ts index b53012d..2b0a940 100644 --- a/web/apps/web-ele/src/router/access.ts +++ b/web/apps/web-ele/src/router/access.ts @@ -79,7 +79,7 @@ function normalizeBackendRoute< const normalized = { ...route }; normalized.path = '/page-render/main_home'; - normalized.component = 'control-center/index'; + normalized.component = 'online-dev/page-render/index'; normalized.query = undefined; return normalized; } @@ -152,7 +152,7 @@ async function generateAccess(options: GenerateMenuAndRoutesOptions) { '../views/ai-platform/workflow/editor/index.vue', '../views/ai-platform/workflow/index.vue', '../views/ai-platform/workflow-runs/index.vue', - '../views/control-center/index.vue', + '../views/online-dev/page-render/index.vue', ]); const layoutMap: ComponentRecordType = { diff --git a/web/apps/web-ele/src/utils/legacy-home.ts b/web/apps/web-ele/src/utils/legacy-home.ts index 469a4fa..4d1f25a 100644 --- a/web/apps/web-ele/src/utils/legacy-home.ts +++ b/web/apps/web-ele/src/utils/legacy-home.ts @@ -1,7 +1,6 @@ import { preferences } from '@vben/preferences'; const LEGACY_HOME_PATTERNS = [ - /^\/page-render\/main_home$/, /^\/app\/[^/]+\/form-render\//, /^\/form-render\//, /^\/online-dev(?:\/|$)/, diff --git a/web/apps/web-ele/src/views/_core/menu/modules/menu-form.vue b/web/apps/web-ele/src/views/_core/menu/modules/menu-form.vue index 74badbe..5e12c4d 100644 --- a/web/apps/web-ele/src/views/_core/menu/modules/menu-form.vue +++ b/web/apps/web-ele/src/views/_core/menu/modules/menu-form.vue @@ -92,37 +92,27 @@ const BadgeVariants = [ 'outline', ]; -const componentKeys: string[] = Object.keys( - import.meta.glob([ - '../../../_core/agent-chat/**/*.vue', - '../../../_core/announcement/index.vue', - '../../../_core/announcement/list.vue', - '../../../_core/authentication/login.vue', - '../../../_core/authentication/oauth-callback.vue', - '../../../_core/fallback/**/*.vue', - '../../../_core/menu/index.vue', - '../../../_core/permission/index.vue', - '../../../_core/role/index.vue', - '../../../_core/user/index.vue', - '../../../ai-platform/agent/editor/index.vue', - '../../../ai-platform/agent/index.vue', - '../../../ai-platform/knowledge/detail/index.vue', - '../../../ai-platform/knowledge/index.vue', - '../../../ai-platform/model/index.vue', - '../../../ai-platform/workflow/editor/index.vue', - '../../../ai-platform/workflow/index.vue', - '../../../ai-platform/workflow-runs/index.vue', - '../../../online-dev/page-render/index.vue', - ]), -) - .filter((item) => !item.includes('/modules/')) - .map((v) => { - const path = v - .replace('../../../_core/', '/_core/') - .replace('../../../ai-platform/', '/ai-platform/') - .replace('../../../online-dev/', '/online-dev/'); - return path.endsWith('.vue') ? path.slice(0, -4) : path; - }); +const componentKeys = [ + '/_core/agent-chat/index', + '/_core/announcement/index', + '/_core/announcement/list', + '/_core/authentication/login', + '/_core/authentication/oauth-callback', + '/_core/fallback/forbidden', + '/_core/fallback/not-found', + '/_core/menu/index', + '/_core/message/index', + '/_core/permission/index', + '/_core/role/index', + '/_core/user/index', + '/ai-platform/agent/index', + '/ai-platform/knowledge/detail/index', + '/ai-platform/knowledge/index', + '/ai-platform/model/index', + '/ai-platform/workflow/index', + '/ai-platform/workflow-runs/index', + '/online-dev/page-render/index', +]; function getFormSchema( getCurrentMenuId: () => string | undefined, diff --git a/web/apps/web-ele/src/views/control-center/index.vue b/web/apps/web-ele/src/views/control-center/index.vue deleted file mode 100644 index 1d1ae04..0000000 --- a/web/apps/web-ele/src/views/control-center/index.vue +++ /dev/null @@ -1,1309 +0,0 @@ - - - - -