xto-fronted 0.8.4 → 0.9.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/api/index.js +20 -19
- package/dist/api/system.d.ts +1 -0
- package/dist/{index-HqCkg98V.js → index-BL_15V_t.js} +1 -1
- package/dist/{index-BIRzoxFQ.js → index-BTlDtwrl.js} +1 -1
- package/dist/{index-DaSr411h.js → index-Biperpfs.js} +1 -1
- package/dist/{index-D2ArmTvR.js → index-Bv0RBhQX.js} +1 -1
- package/dist/{index-DSEQpjnn.js → index-C4XoKbUh.js} +1182 -1145
- package/dist/index.js +63 -60
- package/dist/stores/app.d.ts +8 -2
- package/dist/style.css +1 -1
- package/dist/{user-BfEOXV7Q.js → user-B0q24FmO.js} +465 -451
- package/dist/utils/config.d.ts +19 -0
- package/package.json +1 -1
- package/src/api/system.ts +6 -0
- package/src/components/Layout/Header.vue +35 -2
- package/src/index.ts +19 -1
- package/src/stores/app.ts +65 -26
- package/src/utils/config.ts +32 -0
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as a, c as t, G as o, d as r, e as n, H as u, L as i, i as p, M as l, b as
|
|
2
|
-
import {
|
|
1
|
+
import { F as a, c as t, G as o, d as r, e as n, H as u, L as i, i as p, M as l, b as g, f as T, g as d, h as R, S as c, a as f, j as h, T as S, k as U, l as k, m, n as A, o as M, p as y, q as C, r as x, s as L, t as D, u as b, v as B, w as I, x as F, y as G, z as P, A as v, B as E, C as w, D as O, E as H, I as N, J as j, K as q, N as z } from "./index-C4XoKbUh.js";
|
|
2
|
+
import { O as K, b as X, D as Q, c as V, a as W, d as Y, e as Z, f as _, g as $, J as ee, A as se, h as ae, H as te, G as oe, P as re, i as ne, j as ue, Q as ie, R as pe, k as le, l as ge, z as Te, B as de, S as Re, T as ce, m as fe, n as he, o as Se, C as Ue, U as ke, L as me, V as Ae, I as Me, y as ye, W as Ce, p as xe, q as Le, r as De, s as be, X as Be, Y as Ie, K as Fe, M as Ge, Z as Pe, _ as ve, $ as Ee, N as we, a0 as Oe, a1 as He, E as Ne, a2 as je, u as qe, t as ze, v as Je, w as Ke, x as Xe, F as Qe } from "./user-B0q24FmO.js";
|
|
3
3
|
export {
|
|
4
4
|
a as Footer,
|
|
5
5
|
t as Forbidden,
|
|
@@ -10,21 +10,21 @@ export {
|
|
|
10
10
|
i as Layout,
|
|
11
11
|
p as Login,
|
|
12
12
|
l as MenuType,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
g as MenuTypeOptions,
|
|
14
|
+
T as MenuTypeText,
|
|
15
|
+
d as NotFound,
|
|
16
16
|
R as Sidebar,
|
|
17
17
|
c as Status,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
f as StatusOptions,
|
|
19
|
+
h as StatusText,
|
|
20
|
+
S as Tabs,
|
|
21
21
|
K as appConfig,
|
|
22
22
|
X as batchDeleteUsers,
|
|
23
23
|
Q as clearToken,
|
|
24
|
-
|
|
24
|
+
U as createLayoutRoute,
|
|
25
25
|
V as createMenu,
|
|
26
26
|
W as createRole,
|
|
27
|
-
|
|
27
|
+
k as createRouter,
|
|
28
28
|
m as createTranslator,
|
|
29
29
|
Y as createUser,
|
|
30
30
|
A as createXtoApp,
|
|
@@ -34,67 +34,70 @@ export {
|
|
|
34
34
|
$ as deleteUser,
|
|
35
35
|
ee as getApiBaseUrl,
|
|
36
36
|
se as getAppId,
|
|
37
|
-
ae as
|
|
38
|
-
te as
|
|
39
|
-
oe as
|
|
40
|
-
re as
|
|
41
|
-
ne as
|
|
42
|
-
ue as
|
|
43
|
-
ie as
|
|
44
|
-
pe as
|
|
45
|
-
le as
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
Re as
|
|
50
|
-
ce as
|
|
51
|
-
|
|
37
|
+
ae as getAppUiConfig,
|
|
38
|
+
te as getBasePath,
|
|
39
|
+
oe as getClientId,
|
|
40
|
+
re as getCode,
|
|
41
|
+
ne as getMenuList,
|
|
42
|
+
ue as getMenuTree,
|
|
43
|
+
ie as getRefreshTime,
|
|
44
|
+
pe as getRefreshToken,
|
|
45
|
+
le as getRoleDetail,
|
|
46
|
+
ge as getRoleList,
|
|
47
|
+
Te as getServerUiConfig,
|
|
48
|
+
de as getToken,
|
|
49
|
+
Re as getTokenExpire,
|
|
50
|
+
ce as getTokenType,
|
|
51
|
+
fe as getUserDetail,
|
|
52
|
+
he as getUserInfo,
|
|
53
|
+
Se as getUserList,
|
|
52
54
|
y as hasPermission,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
55
|
+
C as hasRole,
|
|
56
|
+
Ue as hasToken,
|
|
57
|
+
ke as http,
|
|
58
|
+
me as initAppConfig,
|
|
59
|
+
x as isAdmin,
|
|
60
|
+
Ae as isTokenExpired,
|
|
61
|
+
L as layoutRoute,
|
|
62
|
+
Me as loadRuntimeConfig,
|
|
63
|
+
ye as local,
|
|
64
|
+
Ce as localStorageUtil,
|
|
65
|
+
xe as login,
|
|
66
|
+
Le as logout,
|
|
65
67
|
D as mockMenuData,
|
|
66
68
|
b as permissionDirective,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
+
De as refreshToken,
|
|
70
|
+
be as resetPassword,
|
|
69
71
|
B as resetRouter,
|
|
70
72
|
I as router,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
73
|
+
Be as session,
|
|
74
|
+
Ie as sessionStorageUtil,
|
|
75
|
+
Fe as setApiBaseUrl,
|
|
76
|
+
Ge as setBasePath,
|
|
77
|
+
Pe as setCode,
|
|
78
|
+
ve as setRefreshTime,
|
|
79
|
+
Ee as setRefreshToken,
|
|
80
|
+
we as setServerUiConfig,
|
|
81
|
+
Oe as setToken,
|
|
82
|
+
He as setTokenExpire,
|
|
83
|
+
Ne as setTokenInfo,
|
|
84
|
+
je as setTokenType,
|
|
82
85
|
F as setupRouterGuards,
|
|
83
86
|
G as staticRoutes,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
qe as updateMenu,
|
|
88
|
+
ze as updateRole,
|
|
89
|
+
Je as updateRoleStatus,
|
|
90
|
+
Ke as updateUser,
|
|
91
|
+
Xe as updateUserStatus,
|
|
89
92
|
P as useApp,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
v as useAppStore,
|
|
94
|
+
E as useAuth,
|
|
95
|
+
w as useAuthStore,
|
|
96
|
+
O as useForm,
|
|
94
97
|
H as useI18n,
|
|
95
98
|
N as useLocaleStore,
|
|
96
99
|
j as useMenuStore,
|
|
97
100
|
q as useTable,
|
|
98
101
|
z as useUserStore,
|
|
99
|
-
|
|
102
|
+
Qe as withBasePath
|
|
100
103
|
};
|
package/dist/stores/app.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare const useAppStore: import('pinia').StoreDefinition<"app", Pick<{
|
|
|
15
15
|
showFooter: import('vue').Ref<boolean, boolean>;
|
|
16
16
|
showBreadcrumb: import('vue').Ref<boolean, boolean>;
|
|
17
17
|
primaryColor: import('vue').Ref<string, string>;
|
|
18
|
+
allowUserOverride: import('vue').Ref<boolean, boolean>;
|
|
18
19
|
cachedViews: import('vue').Ref<string[], string[]>;
|
|
19
20
|
mixSubMenus: import('vue').Ref<any[], any[]>;
|
|
20
21
|
themeClass: import('vue').ComputedRef<"light" | "dark">;
|
|
@@ -29,12 +30,13 @@ export declare const useAppStore: import('pinia').StoreDefinition<"app", Pick<{
|
|
|
29
30
|
toggleFooter: () => void;
|
|
30
31
|
toggleBreadcrumb: () => void;
|
|
31
32
|
setPrimaryColor: (color: string) => void;
|
|
33
|
+
resetToServerDefaults: () => void;
|
|
32
34
|
addCachedView: (name: string) => void;
|
|
33
35
|
removeCachedView: (name: string) => void;
|
|
34
36
|
clearCachedViews: () => void;
|
|
35
37
|
setMixSubMenus: (menus: any[]) => void;
|
|
36
38
|
initTheme: () => void;
|
|
37
|
-
}, "
|
|
39
|
+
}, "layout" | "primaryColor" | "theme" | "isDark" | "showTabs" | "showBreadcrumb" | "showFooter" | "appName" | "indexPath" | "loginPath" | "isCollapsed" | "allowUserOverride" | "cachedViews" | "mixSubMenus">, Pick<{
|
|
38
40
|
appName: import('vue').Ref<string, string>;
|
|
39
41
|
indexPath: import('vue').Ref<string, string>;
|
|
40
42
|
loginPath: import('vue').Ref<string, string>;
|
|
@@ -46,6 +48,7 @@ export declare const useAppStore: import('pinia').StoreDefinition<"app", Pick<{
|
|
|
46
48
|
showFooter: import('vue').Ref<boolean, boolean>;
|
|
47
49
|
showBreadcrumb: import('vue').Ref<boolean, boolean>;
|
|
48
50
|
primaryColor: import('vue').Ref<string, string>;
|
|
51
|
+
allowUserOverride: import('vue').Ref<boolean, boolean>;
|
|
49
52
|
cachedViews: import('vue').Ref<string[], string[]>;
|
|
50
53
|
mixSubMenus: import('vue').Ref<any[], any[]>;
|
|
51
54
|
themeClass: import('vue').ComputedRef<"light" | "dark">;
|
|
@@ -60,6 +63,7 @@ export declare const useAppStore: import('pinia').StoreDefinition<"app", Pick<{
|
|
|
60
63
|
toggleFooter: () => void;
|
|
61
64
|
toggleBreadcrumb: () => void;
|
|
62
65
|
setPrimaryColor: (color: string) => void;
|
|
66
|
+
resetToServerDefaults: () => void;
|
|
63
67
|
addCachedView: (name: string) => void;
|
|
64
68
|
removeCachedView: (name: string) => void;
|
|
65
69
|
clearCachedViews: () => void;
|
|
@@ -77,6 +81,7 @@ export declare const useAppStore: import('pinia').StoreDefinition<"app", Pick<{
|
|
|
77
81
|
showFooter: import('vue').Ref<boolean, boolean>;
|
|
78
82
|
showBreadcrumb: import('vue').Ref<boolean, boolean>;
|
|
79
83
|
primaryColor: import('vue').Ref<string, string>;
|
|
84
|
+
allowUserOverride: import('vue').Ref<boolean, boolean>;
|
|
80
85
|
cachedViews: import('vue').Ref<string[], string[]>;
|
|
81
86
|
mixSubMenus: import('vue').Ref<any[], any[]>;
|
|
82
87
|
themeClass: import('vue').ComputedRef<"light" | "dark">;
|
|
@@ -91,9 +96,10 @@ export declare const useAppStore: import('pinia').StoreDefinition<"app", Pick<{
|
|
|
91
96
|
toggleFooter: () => void;
|
|
92
97
|
toggleBreadcrumb: () => void;
|
|
93
98
|
setPrimaryColor: (color: string) => void;
|
|
99
|
+
resetToServerDefaults: () => void;
|
|
94
100
|
addCachedView: (name: string) => void;
|
|
95
101
|
removeCachedView: (name: string) => void;
|
|
96
102
|
clearCachedViews: () => void;
|
|
97
103
|
setMixSubMenus: (menus: any[]) => void;
|
|
98
104
|
initTheme: () => void;
|
|
99
|
-
}, "setAppName" | "setIndexPath" | "setLoginPath" | "toggleTheme" | "toggleCollapse" | "setTheme" | "setLayout" | "toggleTabs" | "toggleFooter" | "toggleBreadcrumb" | "setPrimaryColor" | "addCachedView" | "removeCachedView" | "clearCachedViews" | "setMixSubMenus" | "initTheme">>;
|
|
105
|
+
}, "setAppName" | "setIndexPath" | "setLoginPath" | "toggleTheme" | "toggleCollapse" | "setTheme" | "setLayout" | "toggleTabs" | "toggleFooter" | "toggleBreadcrumb" | "setPrimaryColor" | "resetToServerDefaults" | "addCachedView" | "removeCachedView" | "clearCachedViews" | "setMixSubMenus" | "initTheme">>;
|