@pubinfo/core 2.0.0-beta.14 → 2.0.0-beta.15
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/{AppSetting-CCvx0lqd.js → AppSetting-jAFvWPf_.js} +16 -16
- package/dist/{HCheckList.vue_vue_type_script_setup_true_lang-BP4YCym4.js → HCheckList.vue_vue_type_script_setup_true_lang-03vNFTY7.js} +2 -2
- package/dist/{PreferencesContent-B2uvCxH7.js → PreferencesContent-BKospVVk.js} +58 -58
- package/dist/{SettingBreadcrumb-CQYovqN-.js → SettingBreadcrumb-B-MGqvCL.js} +2 -2
- package/dist/{SettingCopyright-B3kEXFe1.js → SettingCopyright-DJYD0pRt.js} +1 -1
- package/dist/{SettingEnableTransition-DMI2qjWt.js → SettingEnableTransition-CbigI-kJ.js} +1 -1
- package/dist/{SettingHome-C7dhemZ5.js → SettingHome-srwYPPUa.js} +1 -1
- package/dist/{SettingMenu-DVblMz0x.js → SettingMenu-6cFfXyh6.js} +2 -2
- package/dist/{SettingMode-AiRRWrFq.js → SettingMode-DCVZHznZ.js} +1 -1
- package/dist/{SettingNavSearch-DVda3ppO.js → SettingNavSearch-8SpKAVyw.js} +1 -1
- package/dist/{SettingOther-Zl4WPgxd.js → SettingOther-BcYQ2Ed7.js} +1 -1
- package/dist/{SettingPage-BEqFAFAZ.js → SettingPage-obBObHeU.js} +1 -1
- package/dist/{SettingTabbar-BIQgX8Qq.js → SettingTabbar-BsGbQ-D2.js} +2 -2
- package/dist/{SettingThemes-C5MbD1OJ.js → SettingThemes-m8f3gPn2.js} +2 -2
- package/dist/{SettingToolbar-DkFBagLe.js → SettingToolbar-WmyCi6TX.js} +1 -1
- package/dist/{SettingTopbar-CPGYfMic.js → SettingTopbar-bBmoKC9Z.js} +2 -2
- package/dist/{SettingWidthMode-KUYF9mmX.js → SettingWidthMode-B1OdsVl5.js} +1 -1
- package/dist/{TopThinMode-CWlzIWyR.js → TopThinMode-D4d9RmKt.js} +1 -1
- package/dist/{_...all_-ByL_l69K.js → _...all_-D6gpCuEL.js} +1 -1
- package/dist/{colors-suUdBG0G.js → colors-C5Ze8zIC.js} +1 -1
- package/dist/components/PassStrengthValidator/index.vue.d.ts +2 -2
- package/dist/{index-DavJkyu2.js → index-B-J9tu40.js} +2 -2
- package/dist/{index-BEukdLoy.js → index-B2C38hfC.js} +31 -31
- package/dist/{index-CZl5B_BS.js → index-BP62vA7t.js} +19 -19
- package/dist/{index-CJuwuJt2.js → index-BSzSj0b3.js} +4 -4
- package/dist/{index-Bcos6jMe.js → index-CAoR4_8l.js} +1562 -1561
- package/dist/{index-CfD8orIa.js → index-CMTmyz7f.js} +15 -15
- package/dist/{index-D1T15Wbu.js → index-DQbvPQCH.js} +30 -30
- package/dist/{index-D8HgRilY.js → index-DQlWenum.js} +12 -12
- package/dist/{index-DiFGrnRo.js → index-SGumP-Y7.js} +1 -1
- package/dist/index.js +45 -44
- package/dist/{index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-Cux2HLXY.js → index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang--zsKN-Gh.js} +1 -1
- package/dist/layout/ui-kit/HCheckList.vue.d.ts +2 -2
- package/dist/layout/ui-kit/HTabList.vue.d.ts +2 -2
- package/dist/{menu-Cu11pQEA.js → menu-x8H6Akde.js} +2335 -2337
- package/dist/{pick-DI_ndFGY.js → pick-DMuBL1OS.js} +1 -1
- package/dist/request.js +23 -23
- package/dist/route/index.d.ts +0 -1
- package/dist/route/routes.d.ts +20 -1
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/src/layout/components/Tools/index.vue +1 -0
- package/src/route/index.ts +0 -1
- package/src/route/routes.ts +67 -44
- package/src/stores/modules/route.ts +2 -2
- package/dist/index-DTQQt_XY.js +0 -10
- package/dist/pages/system/index.vue.d.ts +0 -2
- package/dist/route/async.d.ts +0 -9
- package/src/pages/system/index.vue +0 -5
- package/src/route/async.ts +0 -18
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c3 as u, c4 as f, c5 as l, c6 as o, c7 as k } from "./menu-x8H6Akde.js";
|
|
2
2
|
function v(n, r, s) {
|
|
3
3
|
for (var a = -1, c = r.length, t = {}; ++a < c; ) {
|
|
4
4
|
var e = r[a], i = u(n, e);
|
package/dist/request.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createAlova as et } from "alova";
|
|
2
2
|
import { createServerTokenAuthentication as tt } from "alova/client";
|
|
3
3
|
import nt from "alova/vue";
|
|
4
|
-
import { u as ue,
|
|
4
|
+
import { u as ue, $ as rt, e as Ne } from "./menu-x8H6Akde.js";
|
|
5
5
|
import "pinia-plugin-persistedstate";
|
|
6
6
|
import "vue";
|
|
7
7
|
const Y = "undefined", st = void 0;
|
|
@@ -25,7 +25,7 @@ function ct(e) {
|
|
|
25
25
|
let t;
|
|
26
26
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Le(e.buffer), t;
|
|
27
27
|
}
|
|
28
|
-
const ut = v("string"), x = v("function"), _e = v("number"), G = (e) => e !== null && typeof e == "object", lt = (e) => e === !0 || e === !1,
|
|
28
|
+
const ut = v("string"), x = v("function"), _e = v("number"), G = (e) => e !== null && typeof e == "object", lt = (e) => e === !0 || e === !1, $ = (e) => {
|
|
29
29
|
if (K(e) !== "object")
|
|
30
30
|
return !1;
|
|
31
31
|
const t = le(e);
|
|
@@ -62,7 +62,7 @@ const k = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : type
|
|
|
62
62
|
function re() {
|
|
63
63
|
const { caseless: e } = Fe(this) && this || {}, t = {}, n = (r, s) => {
|
|
64
64
|
const o = e && ke(t, s) || s;
|
|
65
|
-
|
|
65
|
+
$(t[o]) && $(r) ? t[o] = re(t[o], r) : $(r) ? t[o] = re({}, r) : B(r) ? t[o] = r.slice() : t[o] = r;
|
|
66
66
|
};
|
|
67
67
|
for (let r = 0, s = arguments.length; r < s; r++)
|
|
68
68
|
arguments[r] && j(arguments[r], n);
|
|
@@ -165,14 +165,14 @@ const Ht = (e) => {
|
|
|
165
165
|
return r;
|
|
166
166
|
};
|
|
167
167
|
return n(e, 0);
|
|
168
|
-
}, Mt = C("AsyncFunction"),
|
|
168
|
+
}, Mt = C("AsyncFunction"), $t = (e) => e && (G(e) || x(e)) && x(e.then) && x(e.catch), Be = ((e, t) => e ? setImmediate : t ? ((n, r) => (k.addEventListener("message", ({ source: s, data: o }) => {
|
|
169
169
|
s === k && o === n && r.length && r.shift()();
|
|
170
170
|
}, !1), (s) => {
|
|
171
171
|
r.push(s), k.postMessage(n, "*");
|
|
172
172
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
173
173
|
typeof setImmediate == "function",
|
|
174
174
|
x(k.postMessage)
|
|
175
|
-
),
|
|
175
|
+
), zt = typeof queueMicrotask < "u" ? queueMicrotask.bind(k) : typeof process < "u" && process.nextTick || Be, a = {
|
|
176
176
|
isArray: B,
|
|
177
177
|
isArrayBuffer: Le,
|
|
178
178
|
isBuffer: at,
|
|
@@ -182,7 +182,7 @@ const Ht = (e) => {
|
|
|
182
182
|
isNumber: _e,
|
|
183
183
|
isBoolean: lt,
|
|
184
184
|
isObject: G,
|
|
185
|
-
isPlainObject:
|
|
185
|
+
isPlainObject: $,
|
|
186
186
|
isReadableStream: wt,
|
|
187
187
|
isRequest: Rt,
|
|
188
188
|
isResponse: gt,
|
|
@@ -226,9 +226,9 @@ const Ht = (e) => {
|
|
|
226
226
|
isSpecCompliantForm: jt,
|
|
227
227
|
toJSONObject: Ht,
|
|
228
228
|
isAsyncFn: Mt,
|
|
229
|
-
isThenable:
|
|
229
|
+
isThenable: $t,
|
|
230
230
|
setImmediate: Be,
|
|
231
|
-
asap:
|
|
231
|
+
asap: zt
|
|
232
232
|
};
|
|
233
233
|
function m(e, t, n, r, s) {
|
|
234
234
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
|
|
@@ -503,7 +503,7 @@ function sn(e) {
|
|
|
503
503
|
o = n[r], t[o] = e[o];
|
|
504
504
|
return t;
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function $e(e) {
|
|
507
507
|
function t(n, r, s, o) {
|
|
508
508
|
let i = n[o++];
|
|
509
509
|
if (i === "__proto__") return !0;
|
|
@@ -534,7 +534,7 @@ const H = {
|
|
|
534
534
|
transformRequest: [function(t, n) {
|
|
535
535
|
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
|
|
536
536
|
if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
537
|
-
return s ? JSON.stringify(
|
|
537
|
+
return s ? JSON.stringify($e(t)) : t;
|
|
538
538
|
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
|
|
539
539
|
return t;
|
|
540
540
|
if (a.isArrayBufferView(t))
|
|
@@ -626,8 +626,8 @@ const an = a.toObjectSet([
|
|
|
626
626
|
function I(e) {
|
|
627
627
|
return e && String(e).trim().toLowerCase();
|
|
628
628
|
}
|
|
629
|
-
function
|
|
630
|
-
return e === !1 || e == null ? e : a.isArray(e) ? e.map(
|
|
629
|
+
function z(e) {
|
|
630
|
+
return e === !1 || e == null ? e : a.isArray(e) ? e.map(z) : String(e);
|
|
631
631
|
}
|
|
632
632
|
function un(e) {
|
|
633
633
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -672,7 +672,7 @@ let O = class {
|
|
|
672
672
|
if (!l)
|
|
673
673
|
throw new Error("header name must be a non-empty string");
|
|
674
674
|
const d = a.findKey(s, l);
|
|
675
|
-
(!d || s[d] === void 0 || u === !0 || u === void 0 && s[d] !== !1) && (s[d || f] =
|
|
675
|
+
(!d || s[d] === void 0 || u === !0 || u === void 0 && s[d] !== !1) && (s[d || f] = z(c));
|
|
676
676
|
}
|
|
677
677
|
const i = (c, f) => a.forEach(c, (u, l) => o(u, l, f));
|
|
678
678
|
if (a.isPlainObject(t) || t instanceof this.constructor)
|
|
@@ -735,11 +735,11 @@ let O = class {
|
|
|
735
735
|
return a.forEach(this, (s, o) => {
|
|
736
736
|
const i = a.findKey(r, o);
|
|
737
737
|
if (i) {
|
|
738
|
-
n[i] =
|
|
738
|
+
n[i] = z(s), delete n[o];
|
|
739
739
|
return;
|
|
740
740
|
}
|
|
741
741
|
const c = t ? fn(o) : String(o).trim();
|
|
742
|
-
c !== o && delete n[o], n[c] =
|
|
742
|
+
c !== o && delete n[o], n[c] = z(s), r[c] = !0;
|
|
743
743
|
}), this;
|
|
744
744
|
}
|
|
745
745
|
concat(...t) {
|
|
@@ -797,7 +797,7 @@ function te(e, t) {
|
|
|
797
797
|
o = c.call(n, o, s.normalize(), t ? t.status : void 0);
|
|
798
798
|
}), s.normalize(), o;
|
|
799
799
|
}
|
|
800
|
-
function
|
|
800
|
+
function ze(e) {
|
|
801
801
|
return !!(e && e.__CANCEL__);
|
|
802
802
|
}
|
|
803
803
|
function D(e, t, n) {
|
|
@@ -1325,7 +1325,7 @@ function xe(e) {
|
|
|
1325
1325
|
r
|
|
1326
1326
|
), r.headers = O.from(r.headers), r;
|
|
1327
1327
|
}, function(r) {
|
|
1328
|
-
return
|
|
1328
|
+
return ze(r) || (ne(e), r && r.response && (r.response.data = te.call(
|
|
1329
1329
|
e,
|
|
1330
1330
|
e.transformResponse,
|
|
1331
1331
|
r.response
|
|
@@ -1664,7 +1664,7 @@ const R = Qe(H);
|
|
|
1664
1664
|
R.Axios = F;
|
|
1665
1665
|
R.CanceledError = D;
|
|
1666
1666
|
R.CancelToken = Fn;
|
|
1667
|
-
R.isCancel =
|
|
1667
|
+
R.isCancel = ze;
|
|
1668
1668
|
R.VERSION = Xe;
|
|
1669
1669
|
R.toFormData = X;
|
|
1670
1670
|
R.AxiosError = m;
|
|
@@ -1676,7 +1676,7 @@ R.spread = Pn;
|
|
|
1676
1676
|
R.isAxiosError = Bn;
|
|
1677
1677
|
R.mergeConfig = P;
|
|
1678
1678
|
R.AxiosHeaders = O;
|
|
1679
|
-
R.formToJSON = (e) =>
|
|
1679
|
+
R.formToJSON = (e) => $e(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1680
1680
|
R.getAdapter = Ge.getAdapter;
|
|
1681
1681
|
R.HttpStatusCode = ce;
|
|
1682
1682
|
R.default = R;
|
|
@@ -1753,10 +1753,10 @@ function Mn() {
|
|
|
1753
1753
|
authRole: "refreshToken"
|
|
1754
1754
|
}, t;
|
|
1755
1755
|
}
|
|
1756
|
-
function
|
|
1756
|
+
function $n(e) {
|
|
1757
1757
|
return e === Ye.ACCESS_TOKEN_INVALID;
|
|
1758
1758
|
}
|
|
1759
|
-
function
|
|
1759
|
+
function zn(e, t) {
|
|
1760
1760
|
const n = ue();
|
|
1761
1761
|
n.user.token = e, n.user.refreshToken = t;
|
|
1762
1762
|
}
|
|
@@ -1779,14 +1779,14 @@ function Vn() {
|
|
|
1779
1779
|
* 检测token是否过期
|
|
1780
1780
|
* @returns 是否token过期
|
|
1781
1781
|
*/
|
|
1782
|
-
isExpired: (e) =>
|
|
1782
|
+
isExpired: (e) => $n(e.data.code),
|
|
1783
1783
|
/**
|
|
1784
1784
|
* @description
|
|
1785
1785
|
* 当token过期时触发,在此函数中触发刷新token
|
|
1786
1786
|
*/
|
|
1787
1787
|
handler: async () => {
|
|
1788
1788
|
const e = await Mn(), { accessToken: t, refreshToken: n } = e.data;
|
|
1789
|
-
|
|
1789
|
+
zn(t, n);
|
|
1790
1790
|
}
|
|
1791
1791
|
}
|
|
1792
1792
|
});
|
package/dist/route/index.d.ts
CHANGED
package/dist/route/routes.d.ts
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
import { Route } from '../../types/vue-router';
|
|
1
2
|
import { RouteRecordRaw } from 'vue-router';
|
|
3
|
+
/**
|
|
4
|
+
* 定义并注册动态路由
|
|
5
|
+
*/
|
|
6
|
+
export declare function defineAsyncRoutes(routes: Route.recordMainRaw[]): Route.recordMainRaw[];
|
|
7
|
+
/**
|
|
8
|
+
* 读取注册的动态路由
|
|
9
|
+
*/
|
|
10
|
+
export declare function getAsyncRoutes(): Route.recordMainRaw[];
|
|
11
|
+
/**
|
|
12
|
+
* 定义并注册系统路由(含Layout)
|
|
13
|
+
*/
|
|
14
|
+
export declare function defineSystemRoutes(routes: RouteRecordRaw[]): void;
|
|
15
|
+
/**
|
|
16
|
+
* 读取注册的系统路由
|
|
17
|
+
*/
|
|
18
|
+
export declare function getSystemRoutes(): RouteRecordRaw[];
|
|
19
|
+
/**
|
|
20
|
+
* 内置静态路由
|
|
21
|
+
*/
|
|
2
22
|
export declare const constantRoutes: RouteRecordRaw[];
|
|
3
|
-
export declare const systemRoutes: RouteRecordRaw[];
|