@fmdeui/fmui 1.0.33 → 1.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/es/component.mjs +3 -1
- package/es/components/fm-settings/index.d.ts +7 -0
- package/es/components/fm-settings/src/index.vue.d.ts +8 -0
- package/es/components/fm-settings/style/css.d.ts +0 -0
- package/es/components/fm-settings/style/index.d.ts +0 -0
- package/es/components/index.d.ts +1 -0
- package/es/index.mjs +1 -1
- package/es/packages/components/fm-settings/index.mjs +6 -0
- package/es/packages/components/fm-settings/src/index.vue.mjs +5 -0
- package/es/packages/components/fm-settings/src/index.vue2.mjs +1904 -0
- package/es/packages/components/index.mjs +1 -0
- package/es/packages/router/index.mjs +1 -1
- package/es/packages/router/route.mjs +4 -123
- package/es/router/index.d.ts +2 -2
- package/es/router/route.d.ts +0 -5
- package/index.js +2035 -264
- package/index.min.js +10 -5
- package/index.min.mjs +10 -5
- package/index.mjs +2033 -261
- package/lib/component.js +3 -1
- package/lib/components/fm-settings/index.d.ts +7 -0
- package/lib/components/fm-settings/src/index.vue.d.ts +8 -0
- package/lib/components/fm-settings/style/css.d.ts +0 -0
- package/lib/components/fm-settings/style/index.d.ts +0 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/{version.css → defaults.css} +2 -2
- package/lib/index.js +0 -1
- package/lib/packages/components/fm-settings/index.js +8 -0
- package/lib/packages/components/fm-settings/src/index.vue.js +9 -0
- package/lib/packages/components/fm-settings/src/index.vue2.js +1908 -0
- package/lib/packages/components/index.js +4 -2
- package/lib/packages/router/index.js +0 -1
- package/lib/packages/router/route.js +3 -123
- package/lib/router/index.d.ts +2 -2
- package/lib/router/route.d.ts +0 -5
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/package.json +1 -1
- package/theme-chalk/f-settings.css +1 -0
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/index.scss +2 -1
- package/theme-chalk/src/settings.scss +157 -0
|
@@ -2,7 +2,7 @@ import { storeToRefs } from 'pinia';
|
|
|
2
2
|
import { useRoutesList } from '../stores/routesList.mjs';
|
|
3
3
|
import { useThemeConfig } from '../stores/themeConfig.mjs';
|
|
4
4
|
import { Session, Local } from '../utils/storage.mjs';
|
|
5
|
-
export { configureRoutes,
|
|
5
|
+
export { configureRoutes, staticRoutes } from './route.mjs';
|
|
6
6
|
import { initFrontEndControlRoutes } from './frontEnd.mjs';
|
|
7
7
|
import { initBackEndControlRoutes } from './backEnd.mjs';
|
|
8
8
|
export { setDynamicViewsModules } from './backEnd.mjs';
|
|
@@ -1,122 +1,6 @@
|
|
|
1
|
-
let
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
function getPath(path) {
|
|
6
|
-
return `${pathPrefix}${path}`;
|
|
7
|
-
}
|
|
8
|
-
let dynamicRoutes = [
|
|
9
|
-
{
|
|
10
|
-
path: "/",
|
|
11
|
-
name: "/",
|
|
12
|
-
component: () => import(getPath("/layout/index.vue")),
|
|
13
|
-
redirect: "/dashboard/home",
|
|
14
|
-
meta: {
|
|
15
|
-
isKeepAlive: true
|
|
16
|
-
},
|
|
17
|
-
children: []
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
path: "/llm/aiChat",
|
|
21
|
-
name: "aiChat",
|
|
22
|
-
component: () => import(getPath("/views/aiChat/index.vue")),
|
|
23
|
-
meta: {
|
|
24
|
-
title: "AI\u5BF9\u8BDD",
|
|
25
|
-
isKeepAlive: true
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
path: "/platform/job/dashboard",
|
|
30
|
-
name: "jobDashboard",
|
|
31
|
-
component: () => import(getPath("/views/system/job/dashboard.vue")),
|
|
32
|
-
meta: {
|
|
33
|
-
title: "\u4EFB\u52A1\u770B\u677F",
|
|
34
|
-
isLink: window.__env__.VITE_API_URL + "/schedule",
|
|
35
|
-
isHide: true,
|
|
36
|
-
isKeepAlive: true,
|
|
37
|
-
isAffix: false,
|
|
38
|
-
isIframe: true,
|
|
39
|
-
icon: "ele-Clock"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
path: "/develop/database/visual",
|
|
44
|
-
name: "databaseVisual",
|
|
45
|
-
component: () => import(getPath("/views/system/database/component/visualTable.vue")),
|
|
46
|
-
meta: {
|
|
47
|
-
title: "\u5E93\u8868\u53EF\u89C6\u5316",
|
|
48
|
-
isHide: true,
|
|
49
|
-
isKeepAlive: true,
|
|
50
|
-
isAffix: false,
|
|
51
|
-
// isIframe: true,
|
|
52
|
-
icon: "ele-View"
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
path: "/report/view/:reportConfigId/:tagsViewName?",
|
|
57
|
-
name: "sysReportView",
|
|
58
|
-
component: () => import(getPath("/views/system/reportConfig/component/reportView.vue")),
|
|
59
|
-
meta: {
|
|
60
|
-
title: "\u62A5\u8868\u67E5\u770B",
|
|
61
|
-
isHide: true,
|
|
62
|
-
isKeepAlive: true,
|
|
63
|
-
isAffix: false,
|
|
64
|
-
isIframe: false,
|
|
65
|
-
icon: ""
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
];
|
|
69
|
-
let notFoundAndNoPower = [
|
|
70
|
-
{
|
|
71
|
-
path: "/:path(.*)*",
|
|
72
|
-
name: "notFound",
|
|
73
|
-
component: () => import(getPath("/views/error/404.vue")),
|
|
74
|
-
meta: {
|
|
75
|
-
title: "message.staticRoutes.notFound",
|
|
76
|
-
isHide: true
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
path: "/401",
|
|
81
|
-
name: "noPower",
|
|
82
|
-
component: () => import(getPath("/views/error/401.vue")),
|
|
83
|
-
meta: {
|
|
84
|
-
title: "message.staticRoutes.noPower",
|
|
85
|
-
isHide: true
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
];
|
|
89
|
-
let staticRoutes = [
|
|
90
|
-
{
|
|
91
|
-
path: "/login",
|
|
92
|
-
name: "login",
|
|
93
|
-
component: () => import(getPath("/views/login/index.vue")),
|
|
94
|
-
meta: {
|
|
95
|
-
title: "Login",
|
|
96
|
-
isPublic: true
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* 提示:写在这里的为全屏界面,不建议写在这里
|
|
101
|
-
* 请写在 `dynamicRoutes` 路由数组中
|
|
102
|
-
*/
|
|
103
|
-
// {
|
|
104
|
-
// path: '/visualizingDemo1',
|
|
105
|
-
// name: 'visualizingDemo1',
|
|
106
|
-
// component: () => import('/@/views/visualizing/demo1.vue'),
|
|
107
|
-
// meta: {
|
|
108
|
-
// title: 'message.router.visualizingLinkDemo1',
|
|
109
|
-
// },
|
|
110
|
-
// },
|
|
111
|
-
// {
|
|
112
|
-
// path: '/visualizingDemo2',
|
|
113
|
-
// name: 'visualizingDemo2',
|
|
114
|
-
// component: () => import('/@/views/visualizing/demo2.vue'),
|
|
115
|
-
// meta: {
|
|
116
|
-
// title: 'message.router.visualizingLinkDemo2',
|
|
117
|
-
// },
|
|
118
|
-
// },
|
|
119
|
-
];
|
|
1
|
+
let dynamicRoutes = [];
|
|
2
|
+
let notFoundAndNoPower = [];
|
|
3
|
+
let staticRoutes = [];
|
|
120
4
|
function configureRoutes(options) {
|
|
121
5
|
if (options.dynamicRoutes) {
|
|
122
6
|
if (options.merge) {
|
|
@@ -139,9 +23,6 @@ function configureRoutes(options) {
|
|
|
139
23
|
notFoundAndNoPower = options.notFoundAndNoPower;
|
|
140
24
|
}
|
|
141
25
|
}
|
|
142
|
-
if (options.pathPrefix) {
|
|
143
|
-
setPathPrefix(options.pathPrefix);
|
|
144
|
-
}
|
|
145
26
|
}
|
|
146
27
|
|
|
147
|
-
export { configureRoutes, dynamicRoutes, notFoundAndNoPower,
|
|
28
|
+
export { configureRoutes, dynamicRoutes, notFoundAndNoPower, staticRoutes };
|
package/es/router/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { configureRoutes,
|
|
1
|
+
import { configureRoutes, staticRoutes } from './route';
|
|
2
2
|
import { initFrontEndControlRoutes } from './frontEnd';
|
|
3
3
|
import { initBackEndControlRoutes, setDynamicViewsModules } from './backEnd';
|
|
4
4
|
import { router } from './createRouter';
|
|
@@ -9,4 +9,4 @@ import { Router } from 'vue-router';
|
|
|
9
9
|
*/
|
|
10
10
|
export declare function initRouter(): Router;
|
|
11
11
|
export default router;
|
|
12
|
-
export { configureRoutes, staticRoutes,
|
|
12
|
+
export { configureRoutes, staticRoutes, setDynamicViewsModules, initBackEndControlRoutes, initFrontEndControlRoutes };
|
package/es/router/route.d.ts
CHANGED