chore: 容器框架升级,修复项目命令行异常问题

This commit is contained in:
wangxuefeng
2025-03-11 10:05:28 +08:00
parent de679d4289
commit 3e1a1b4a66
1187 changed files with 95352 additions and 12509 deletions

View File

@@ -0,0 +1,45 @@
import type { RouteRecordRaw } from 'vue-router';
import { VITE_RENDERER_URL } from '#/constants';
import {
LOW_CODE_APPLICATION_ID,
LOW_CODE_PROJECT_ID,
} from '#/constants/low-code';
const moduleName = 'acl';
const routes: Array<RouteRecordRaw> = [
{
path: '/acl',
name: moduleName,
redirect: '/acl/list',
meta: {
title: '权限管理',
icon: 'ant-design:user-outlined',
},
children: [
{
path: 'list',
name: `${moduleName}-list`,
meta: {
title: '权限列表',
keepAlive: true,
icon: 'ant-design:list',
app: {
url: VITE_RENDERER_URL,
name: 'y-code-platform-project-list',
// sync: true,
// alive: true,
// degrade: true,
applicationId: LOW_CODE_APPLICATION_ID,
projectId: LOW_CODE_PROJECT_ID,
fileId: '1hsd0407hf',
},
},
component: () => import('#/components/renderer-adapter/index.vue'),
},
],
},
];
export default routes;

View File

@@ -0,0 +1,41 @@
import type { RouteRecordRaw } from 'vue-router';
import { VITE_RENDERER_URL } from '#/constants';
// 微前端路由
const moduleName = 'application';
const routes: Array<RouteRecordRaw> = [
{
path: '/application',
name: moduleName,
meta: {
title: '应用管理',
icon: 'ant-design:appstore-outlined',
},
children: [
{
path: 'list',
name: `${moduleName}-list`,
meta: {
title: '应用列表',
keepAlive: true,
icon: 'ant-design:list',
app: {
url: VITE_RENDERER_URL,
name: 'y-code-platform-application-list',
// sync: true,
// alive: true,
// degrade: true,
applicationId: 0,
projectId: 4,
fileId: 'b91n1y9yr',
},
},
component: () => import('#/components/renderer-adapter/index.vue'),
},
],
},
];
export default routes;

View File

@@ -0,0 +1,38 @@
import type { RouteRecordRaw } from 'vue-router';
import { $t } from '#/locales';
const routes: RouteRecordRaw[] = [
{
meta: {
icon: 'lucide:layout-dashboard',
order: -1,
title: $t('page.dashboard.title'),
},
name: 'Dashboard',
path: '/dashboard',
children: [
{
name: 'Analytics',
path: '/analytics',
component: () => import('#/views/dashboard/analytics/index.vue'),
meta: {
affixTab: true,
icon: 'lucide:area-chart',
title: $t('page.dashboard.analytics'),
},
},
{
name: 'Workspace',
path: '/workspace',
component: () => import('#/views/dashboard/workspace/index.vue'),
meta: {
icon: 'carbon:workspace',
title: $t('page.dashboard.workspace'),
},
},
],
},
];
export default routes;

View File

@@ -0,0 +1,56 @@
import type { RouteRecordRaw } from 'vue-router';
import { VITE_DESIGNER_URL, VITE_V1_URL } from '#/constants';
const moduleName = 'micro';
const routes: Array<RouteRecordRaw> = [
{
path: '/micro',
name: moduleName,
meta: {
title: '微应用容器',
icon: 'ant-design:appstore-outlined',
},
children: [
{
path: 'designer',
name: `${moduleName}-designer`,
meta: {
title: '低代码编辑器',
keepAlive: true,
icon: 'ant-design:edit-outlined',
app: {
url: VITE_DESIGNER_URL,
name: 'y-code-designer',
projectId: 4,
sync: true,
alive: true,
degrade: true,
},
},
component: () => import('#/components/renderer-adapter/index.vue'),
},
{
path: 'y-code-v1',
name: `${moduleName}-y-code-v1`,
meta: {
title: '悦码 1.0',
keepAlive: true,
// hideInMenu: true,
icon: 'ant-design:delete-outlined',
app: {
url: VITE_V1_URL,
name: 'y-code-v1',
// sync: true,
// alive: true,
degrade: true,
},
},
component: () => import('#/components/renderer-adapter/index.vue'),
},
],
},
];
export default routes;

View File

@@ -0,0 +1,65 @@
import type { RouteRecordRaw } from 'vue-router';
import { VITE_RENDERER_URL } from '#/constants';
import {
LOW_CODE_APPLICATION_ID,
LOW_CODE_PROJECT_ID,
} from '#/constants/low-code';
// 微前端路由
const moduleName = 'project';
const routes: Array<RouteRecordRaw> = [
{
path: '/project',
name: moduleName,
meta: {
title: '项目管理',
icon: 'ant-design:appstore-outlined',
},
children: [
{
path: 'list',
name: `${moduleName}-list`,
meta: {
title: '项目列表',
keepAlive: true,
icon: 'ant-design:list',
app: {
url: VITE_RENDERER_URL,
name: 'y-code-platform-project-list',
// sync: true,
// alive: true,
// degrade: true,
applicationId: LOW_CODE_APPLICATION_ID,
projectId: LOW_CODE_PROJECT_ID,
fileId: '4g4mz6qi8u',
},
},
component: () => import('#/components/renderer-adapter/index.vue'),
},
{
path: 'file',
name: `${moduleName}-file`,
meta: {
title: 'dsl 文件列表',
keepAlive: true,
icon: 'ant-design:file',
app: {
url: VITE_RENDERER_URL,
name: 'y-code-platform-project-file',
// sync: true,
// alive: true,
// degrade: true,
applicationId: LOW_CODE_APPLICATION_ID,
projectId: LOW_CODE_PROJECT_ID,
fileId: '7pftwojzu',
},
},
component: () => import('#/components/renderer-adapter/index.vue'),
},
],
},
];
export default routes;

View File

@@ -0,0 +1,42 @@
import type { RouteRecordRaw } from 'vue-router';
import { VITE_RENDERER_URL } from '#/constants';
import {
LOW_CODE_APPLICATION_ID,
LOW_CODE_PROJECT_ID,
} from '#/constants/low-code';
// 微前端路由
const moduleName = 'static-file';
const routes: Array<RouteRecordRaw> = [
{
path: '/static-file',
name: moduleName,
meta: {
title: '静态文件管理',
icon: 'ant-design:file',
},
children: [
{
path: 'list',
name: `${moduleName}-list`,
meta: {
title: '静态文件列表',
keepAlive: false,
icon: 'ant-design:file',
app: {
url: VITE_RENDERER_URL,
name: 'y-code-platform-application-list',
applicationId: LOW_CODE_APPLICATION_ID,
projectId: LOW_CODE_PROJECT_ID,
fileId: '7pfr394d6',
},
},
component: () => import('#/components/renderer-adapter/index.vue'),
},
],
},
];
export default routes;

View File

@@ -0,0 +1,72 @@
import type { RouteRecordRaw } from 'vue-router';
import { $t } from '#/locales';
const routes: RouteRecordRaw[] = [
// {
// meta: {
// badgeType: 'dot',
// icon: VBEN_LOGO_URL,
// order: 9998,
// title: $t('demos.vben.title'),
// },
// name: 'VbenProject',
// path: '/vben-admin',
// children: [
// {
// name: 'VbenDocument',
// path: '/vben-admin/document',
// component: IFrameView,
// meta: {
// icon: 'lucide:book-open-text',
// link: VBEN_DOC_URL,
// title: $t('demos.vben.document'),
// },
// },
// {
// name: 'VbenGithub',
// path: '/vben-admin/github',
// component: IFrameView,
// meta: {
// icon: 'mdi:github',
// link: VBEN_GITHUB_URL,
// title: 'Github',
// },
// },
// {
// name: 'VbenNaive',
// path: '/vben-admin/naive',
// component: IFrameView,
// meta: {
// badgeType: 'dot',
// icon: 'logos:naiveui',
// link: VBEN_NAIVE_PREVIEW_URL,
// title: $t('demos.vben.naive-ui'),
// },
// },
// {
// name: 'VbenAntd',
// path: '/vben-admin/antd',
// component: IFrameView,
// meta: {
// badgeType: 'dot',
// icon: SvgAntdvLogoIcon,
// link: VBEN_ANT_PREVIEW_URL,
// title: $t('demos.vben.antdv'),
// },
// },
// ],
// },
{
name: 'VbenAbout',
path: '/vben-admin/about',
component: () => import('#/views/_core/about/index.vue'),
meta: {
icon: 'lucide:copyright',
title: $t('demos.vben.about'),
order: 9999,
},
},
];
export default routes;