@ibiz-template/vue3-components 0.6.1-alpha.3 → 0.6.2-dev.0
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/dist/index-NdPkOMvL.js +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{xlsx-util-E-30JfqY.js → xlsx-util-HHwgsM7j.js} +1 -1
- package/es/common/no-data/no-data.css +1 -1
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +3 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +25 -0
- package/es/control/gantt/gantt.d.ts +1 -1
- package/es/control/gantt/index.d.ts +1 -1
- package/es/control/grid/grid/grid.css +1 -1
- package/es/control/grid/grid/grid.mjs +2 -2
- package/es/control/tab-exp-panel/tab-exp-panel.mjs +1 -1
- package/es/index.mjs +1 -0
- package/es/panel-component/index-actions/index-actions.css +1 -1
- package/es/panel-component/panel-index-view-search/panel-index-view-search.mjs +2 -9
- package/es/util/open-view-util/open-view-util.d.ts +1 -1
- package/es/util/open-view-util/open-view-util.mjs +6 -2
- package/es/view/login-view/login-view.mjs +3 -3
- package/es/web-app/components/modal-router-shell/modal-router-shell.mjs +4 -2
- package/es/web-app/components/router-shell/router-shell.d.ts +8 -3999
- package/es/web-app/components/router-shell/router-shell.mjs +4 -4
- package/es/web-app/guard/auth-guard/auth-guard.d.ts +88 -9
- package/es/web-app/guard/auth-guard/auth-guard.mjs +183 -134
- package/es/web-app/guard/auth-guard/dyna-auth-guard.d.ts +6 -0
- package/es/web-app/guard/auth-guard/dyna-auth-guard.mjs +67 -0
- package/es/web-app/guard/index.d.ts +1 -0
- package/es/web-app/guard/index.mjs +1 -0
- package/es/web-app/index.d.ts +1 -0
- package/es/web-app/index.mjs +2 -0
- package/es/web-app/main.d.ts +4 -1
- package/es/web-app/main.mjs +10 -1
- package/es/web-app/router/index.d.ts +2 -0
- package/es/web-app/router/index.mjs +7 -5
- package/lib/common/no-data/no-data.css +1 -1
- package/lib/control/grid/grid/grid.cjs +2 -2
- package/lib/control/grid/grid/grid.css +1 -1
- package/lib/control/tab-exp-panel/tab-exp-panel.cjs +1 -1
- package/lib/index.cjs +2 -0
- package/lib/panel-component/index-actions/index-actions.css +1 -1
- package/lib/panel-component/panel-index-view-search/panel-index-view-search.cjs +2 -9
- package/lib/util/open-view-util/open-view-util.cjs +6 -2
- package/lib/view/login-view/login-view.cjs +3 -3
- package/lib/web-app/components/modal-router-shell/modal-router-shell.cjs +4 -2
- package/lib/web-app/components/router-shell/router-shell.cjs +4 -4
- package/lib/web-app/guard/auth-guard/auth-guard.cjs +182 -133
- package/lib/web-app/guard/auth-guard/dyna-auth-guard.cjs +69 -0
- package/lib/web-app/guard/index.cjs +2 -0
- package/lib/web-app/index.cjs +3 -0
- package/lib/web-app/main.cjs +10 -1
- package/lib/web-app/router/index.cjs +7 -5
- package/package.json +6 -6
- package/dist/index-_HUj1AMZ.js +0 -4
|
@@ -4,11 +4,9 @@ var vueRouter = require('vue-router');
|
|
|
4
4
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
5
|
var runtime = require('@ibiz-template/runtime');
|
|
6
6
|
var nprogress = require('../../node_modules/.pnpm/nprogress@0.2.0/node_modules/nprogress/nprogress.cjs');
|
|
7
|
-
require('../guard/index.cjs');
|
|
8
7
|
require('../../view/index.cjs');
|
|
9
8
|
require('../components/index.cjs');
|
|
10
9
|
require('nprogress/nprogress.css');
|
|
11
|
-
var authGuard = require('../guard/auth-guard/auth-guard.cjs');
|
|
12
10
|
var loginView = require('../../view/login-view/login-view.cjs');
|
|
13
11
|
var _404View = require('../../view/404-view/404-view.cjs');
|
|
14
12
|
var routerShell = require('../components/router-shell/router-shell.cjs');
|
|
@@ -22,6 +20,9 @@ var __publicField = (obj, key, value) => {
|
|
|
22
20
|
return value;
|
|
23
21
|
};
|
|
24
22
|
class AppRouter {
|
|
23
|
+
static setAuthGuard(authGuard) {
|
|
24
|
+
this.authGuard = authGuard;
|
|
25
|
+
}
|
|
25
26
|
static getRouter() {
|
|
26
27
|
const placeholder = ibiz.env.routePlaceholder;
|
|
27
28
|
const paramReg = "[^/]+=[^/]+|".concat(placeholder);
|
|
@@ -39,7 +40,7 @@ class AppRouter {
|
|
|
39
40
|
path: "/login",
|
|
40
41
|
name: "loginView",
|
|
41
42
|
beforeEnter: async (_to, _from, next) => {
|
|
42
|
-
await authGuard
|
|
43
|
+
await this.authGuard(false);
|
|
43
44
|
next();
|
|
44
45
|
},
|
|
45
46
|
component: loginView.LoginView
|
|
@@ -53,7 +54,7 @@ class AppRouter {
|
|
|
53
54
|
path: "/appredirectview",
|
|
54
55
|
name: "appRedirectView",
|
|
55
56
|
beforeEnter: async (_to, _from, next) => {
|
|
56
|
-
const authority = await authGuard
|
|
57
|
+
const authority = await this.authGuard();
|
|
57
58
|
if (authority) {
|
|
58
59
|
next();
|
|
59
60
|
} else {
|
|
@@ -65,7 +66,7 @@ class AppRouter {
|
|
|
65
66
|
{
|
|
66
67
|
path: "/:appContext(".concat(paramReg, ")/:view1(").concat(viewReg, ")/:params1(").concat(paramReg, ")"),
|
|
67
68
|
beforeEnter: async (_to, _from, next) => {
|
|
68
|
-
const authority = await authGuard
|
|
69
|
+
const authority = await this.authGuard();
|
|
69
70
|
if (authority) {
|
|
70
71
|
next();
|
|
71
72
|
} else {
|
|
@@ -198,5 +199,6 @@ class AppRouter {
|
|
|
198
199
|
}
|
|
199
200
|
}
|
|
200
201
|
__publicField(AppRouter, "router");
|
|
202
|
+
__publicField(AppRouter, "authGuard");
|
|
201
203
|
|
|
202
204
|
exports.AppRouter = AppRouter;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/vue3-components",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2-dev.0",
|
|
4
4
|
"description": "使用 rollup 编译 vue 组件或者 jsx",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"@floating-ui/dom": "^1.5.3",
|
|
31
31
|
"@ibiz-template-plugin/ai-chat": "^0.0.1",
|
|
32
32
|
"@ibiz-template-plugin/gantt": "0.1.3-alpha.23",
|
|
33
|
-
"@ibiz-template/core": "0.6.
|
|
33
|
+
"@ibiz-template/core": "0.6.2-dev.0",
|
|
34
34
|
"@ibiz-template/devtool": "0.0.1-dev.4",
|
|
35
|
-
"@ibiz-template/model-helper": "0.6.
|
|
36
|
-
"@ibiz-template/runtime": "0.6.
|
|
35
|
+
"@ibiz-template/model-helper": "0.6.2-dev.0",
|
|
36
|
+
"@ibiz-template/runtime": "0.6.2-dev.0",
|
|
37
37
|
"@ibiz-template/theme": "^0.6.0",
|
|
38
|
-
"@ibiz-template/vue3-util": "0.6.
|
|
38
|
+
"@ibiz-template/vue3-util": "0.6.2-dev.0",
|
|
39
39
|
"@ibiz-template/web-theme": "^1.1.10",
|
|
40
|
-
"@ibiz/model-core": "^0.1.
|
|
40
|
+
"@ibiz/model-core": "^0.1.14",
|
|
41
41
|
"@imengyu/vue3-context-menu": "^1.3.5",
|
|
42
42
|
"@monaco-editor/loader": "^1.4.0",
|
|
43
43
|
"@wangeditor/editor": "^5.1.23",
|