@pubinfo/core 2.0.0-beta.31 → 2.0.0-beta.33
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-C1dyZ-8E.js → AppSetting-DhcdApoo.js} +17 -17
- package/dist/{HCheckList.vue_vue_type_script_setup_true_lang-B3wESRn7.js → HCheckList.vue_vue_type_script_setup_true_lang-Bi9jyf-Y.js} +2 -2
- package/dist/HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js +20 -0
- package/dist/HToggle-Di3WNnzE.js +34 -0
- package/dist/{PreferencesContent-DgycKl9e.js → PreferencesContent-BdSTTSM-.js} +6 -6
- package/dist/{SettingBreadcrumb-BlgX0ZNE.js → SettingBreadcrumb-ChQx96br.js} +8 -8
- package/dist/{SettingCopyright-FmqadL1w.js → SettingCopyright-CkMab5VK.js} +8 -8
- package/dist/{SettingEnableTransition-dzMgw8cN.js → SettingEnableTransition-BSXU87vT.js} +15 -15
- package/dist/{SettingHome-BwlXsTTt.js → SettingHome-DwioPezC.js} +13 -13
- package/dist/{SettingMenu-B5tHMS24.js → SettingMenu-yvKu7Yoq.js} +25 -25
- package/dist/{SettingMode-Bh0mvh66.js → SettingMode-C99ADNad.js} +6 -6
- package/dist/{SettingNavSearch-D4g24uwl.js → SettingNavSearch-mURLLetZ.js} +8 -8
- package/dist/{SettingOther-DwTtu6As.js → SettingOther-BGoSdp7a.js} +9 -9
- package/dist/{SettingPage-cDQXtwcG.js → SettingPage-Wwy5PtzC.js} +7 -7
- package/dist/{SettingTabbar-m8X7jEJH.js → SettingTabbar-C2ya4r4U.js} +9 -9
- package/dist/{SettingThemes-CX9ISeD_.js → SettingThemes-7oYUooGR.js} +27 -27
- package/dist/{SettingToolbar-ByLjBezg.js → SettingToolbar-A6OiGfAD.js} +5 -5
- package/dist/{SettingTopbar-o8wBZolp.js → SettingTopbar-GDEPltxm.js} +9 -9
- package/dist/{SettingWidthMode-Ux60mKiv.js → SettingWidthMode-qwkmTFIK.js} +15 -15
- package/dist/{TopThinMode-17GrCZdo.js → TopThinMode-BkmPN66X.js} +1 -1
- package/dist/{_...all_-6l5FWUkL.js → _...all_-CdjdWhUr.js} +5 -5
- package/dist/assets/styles/index.d.ts +3 -3
- package/dist/{colors-DiWJrScm.js → colors-7rGvqeKK.js} +1 -1
- package/dist/{index-CfasTv4x.js → index-BC-gcL8e.js} +4 -4
- package/dist/{index-Md7zV10q.js → index-C-6XxK2D.js} +5 -5
- package/dist/{index-bsi-FZDt.js → index-CgLD0zqO.js} +169 -169
- package/dist/{index-BmMbAV1Y.js → index-CtyzB2cq.js} +13 -13
- package/dist/{index-Ckgil96Y.js → index-Cw1uN5m-.js} +2 -2
- package/dist/{index-Be7jJtXg.js → index-DVUDANdM.js} +5 -5
- package/dist/{index-Dzwhw1L9.js → index-Dpq4uqWd.js} +22 -22
- package/dist/{index-DgpcBgWl.js → index-DuoLZ3r3.js} +4394 -4294
- package/dist/{index-De_ME_Ws.js → index-sYaQXYQC.js} +2 -2
- package/dist/index.js +4 -4
- package/dist/{index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-B3Eieo0k.js → index.vue_vue_type_style_index_0_scoped_051f4e99_lang-CuU-JtjC.js} +870 -856
- package/dist/interface.d.ts +17 -2
- package/dist/layout/ui-kit/HDialog.vue.d.ts +1 -1
- package/dist/layout/ui-kit/HSlideover.vue.d.ts +1 -1
- package/dist/layout/ui-kit/HTooltip.vue.d.ts +1 -1
- package/dist/{menu-CC5544p-.js → menu-BL6hH6OM.js} +1862 -1856
- package/dist/{pick-CJo2YiT-.js → pick-CAmKymZJ.js} +1 -1
- package/dist/request.js +34 -32
- package/dist/stores/plugin/persist.d.ts +2 -2
- package/dist/style.css +3 -3
- package/package.json +25 -26
- package/src/assets/styles/globals.css +188 -0
- package/src/assets/styles/index.ts +3 -3
- package/src/assets/styles/nprogress.css +68 -0
- package/src/assets/styles/rbac.css +51 -0
- package/src/assets/styles/resources/utils.css +53 -0
- package/src/assets/styles/resources/variables.css +5 -0
- package/src/components/NotAllowed/index.vue +4 -6
- package/src/components/PassStrengthValidator/index.vue +33 -48
- package/src/components/PassStrengthValidator/rule.vue +13 -25
- package/src/components/PubinfoIcon/index.vue +4 -8
- package/src/composables/watchDiff.ts +1 -1
- package/src/create.ts +10 -3
- package/src/interface.ts +24 -2
- package/src/layout/Layout.vue +113 -161
- package/src/layout/components/Content/IframeView.vue +1 -2
- package/src/layout/components/Content/LinkView.vue +2 -2
- package/src/layout/components/Content/index.vue +1 -2
- package/src/layout/components/Copyright/index.vue +7 -8
- package/src/layout/components/Header/TopMode/More.vue +24 -32
- package/src/layout/components/Header/TopMode/NotCursor.vue +20 -29
- package/src/layout/components/Header/TopMode/index.vue +1 -1
- package/src/layout/components/Header/index.vue +118 -206
- package/src/layout/components/Logo/index.vue +4 -19
- package/src/layout/components/Menu/item.vue +16 -25
- package/src/layout/components/SettingBar/AppSetting.vue +11 -11
- package/src/layout/components/SettingBar/components/DayNightToggle.vue +26 -120
- package/src/layout/components/SettingBar/components/SettingEnableTransition.vue +111 -136
- package/src/layout/components/SettingBar/components/SettingMode.vue +78 -88
- package/src/layout/components/SettingBar/components/SettingThemes.vue +48 -85
- package/src/layout/components/SettingBar/components/SettingWidthMode.vue +63 -71
- package/src/layout/components/SettingBar/index.vue +29 -62
- package/src/layout/components/Sidebar/MainSidebar.vue +81 -126
- package/src/layout/components/Sidebar/SubSidebar.vue +50 -59
- package/src/layout/components/Tools/Breadcrumb/index.vue +6 -12
- package/src/layout/components/Tools/DayNightSwitch.vue +40 -63
- package/src/layout/components/Tools/Preferences/PreferencesContent.vue +210 -277
- package/src/layout/components/Tools/Search.vue +5 -5
- package/src/layout/components/Tools/index.vue +1 -1
- package/src/layout/components/Topbar/Tabbar/MoreAction.vue +98 -145
- package/src/layout/components/Topbar/Tabbar/index.vue +259 -395
- package/src/layout/components/Topbar/Toolbar/Favorites.vue +4 -4
- package/src/layout/components/Topbar/Toolbar/index.vue +39 -56
- package/src/layout/components/Topbar/index.vue +16 -19
- package/src/layout/composables/useContext.ts +1 -1
- package/src/layout/composables/useMenu.ts +1 -1
- package/src/layout/composables/useTabbar.ts +1 -1
- package/src/layout/composables/useTitle.ts +1 -1
- package/src/layout/provider.ts +1 -1
- package/src/layout/ui-kit/HDialog.vue +1 -1
- package/src/layout/ui-kit/HDivider.vue +6 -35
- package/src/layout/ui-kit/HSlideover.vue +1 -1
- package/src/layout/ui-kit/HToggle.vue +49 -93
- package/src/layout/ui-kit/HTooltip.vue +1 -1
- package/src/locales/index.ts +1 -1
- package/src/pages/personal/profile/index.vue +1 -1
- package/src/pages/system/[...all].vue +4 -6
- package/src/pages/system/change-organization/index.vue +23 -37
- package/src/pages/system/change-password/components/ChangePasswordForm/index.vue +1 -1
- package/src/pages/system/change-password/index.vue +16 -29
- package/src/pages/system/not-permission/index.vue +4 -6
- package/src/route/guard/basic.ts +1 -1
- package/src/route/routes.ts +1 -1
- package/src/stores/modules/favorites.ts +1 -1
- package/src/stores/modules/menu.ts +1 -1
- package/src/stores/modules/route.ts +2 -2
- package/src/stores/modules/settings.ts +7 -7
- package/src/stores/modules/user.ts +2 -2
- package/src/stores/plugin/persist.ts +3 -3
- package/src/stores/plugin/sideEffect/tabbarStorage.ts +1 -1
- package/src/utils/crypto.ts +1 -1
- package/types/auto-imports.d.ts +1 -1
- package/types/components.d.ts +1 -0
- package/types/vue-router.d.ts +8 -8
- package/dist/HDivider-DgXBhPr0.js +0 -21
- package/dist/HToggle-Cd71WKvG.js +0 -34
- package/src/assets/styles/globals.scss +0 -189
- package/src/assets/styles/nprogress.scss +0 -63
- package/src/assets/styles/rbac.scss +0 -61
- package/src/assets/styles/resources/utils.scss +0 -53
- package/src/assets/styles/resources/variables.scss +0 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c4 as u, c5 as f, c6 as l, c7 as o, c8 as k } from "./menu-
|
|
1
|
+
import { c4 as u, c5 as f, c6 as l, c7 as o, c8 as k } from "./menu-BL6hH6OM.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,11 +1,11 @@
|
|
|
1
1
|
import { createAlova as nt } from "alova";
|
|
2
2
|
import { createServerTokenAuthentication as rt } from "alova/client";
|
|
3
3
|
import st from "alova/vue";
|
|
4
|
-
import { u as le, a0 as ot, e as Ue } from "./menu-CC5544p-.js";
|
|
5
4
|
import "pinia-plugin-persistedstate";
|
|
5
|
+
import { u as le, a0 as ot, e as Ue } from "./menu-BL6hH6OM.js";
|
|
6
6
|
import "vue";
|
|
7
7
|
const ee = "undefined", it = void 0;
|
|
8
|
-
typeof window === ee && (typeof process !== ee && process.
|
|
8
|
+
typeof window === ee && (typeof process !== ee && process.browser);
|
|
9
9
|
const me = () => {
|
|
10
10
|
}, at = (e, ...t) => new e(...t);
|
|
11
11
|
function Le(e, t) {
|
|
@@ -16,7 +16,7 @@ function Le(e, t) {
|
|
|
16
16
|
const { toString: ct } = Object.prototype, { getPrototypeOf: fe } = Object, { iterator: K, toStringTag: _e } = Symbol, v = /* @__PURE__ */ ((e) => (t) => {
|
|
17
17
|
const n = ct.call(t);
|
|
18
18
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
19
|
-
})(/* @__PURE__ */ Object.create(null)), C = (e) => (e = e.toLowerCase(), (t) => v(t) === e), G = (e) => (t) => typeof t === e, { isArray:
|
|
19
|
+
})(/* @__PURE__ */ Object.create(null)), C = (e) => (e = e.toLowerCase(), (t) => v(t) === e), G = (e) => (t) => typeof t === e, { isArray: P } = Array, j = G("undefined");
|
|
20
20
|
function ut(e) {
|
|
21
21
|
return e !== null && !j(e) && e.constructor !== null && !j(e.constructor) && O(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
22
22
|
}
|
|
@@ -39,7 +39,7 @@ function q(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
39
39
|
if (e === null || typeof e > "u")
|
|
40
40
|
return;
|
|
41
41
|
let r, s;
|
|
42
|
-
if (typeof e != "object" && (e = [e]),
|
|
42
|
+
if (typeof e != "object" && (e = [e]), P(e))
|
|
43
43
|
for (r = 0, s = e.length; r < s; r++)
|
|
44
44
|
t.call(null, e[r], r, e);
|
|
45
45
|
else {
|
|
@@ -49,7 +49,7 @@ function q(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
49
49
|
c = o[r], t.call(null, e[c], c, e);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Be(e, t) {
|
|
53
53
|
t = t.toLowerCase();
|
|
54
54
|
const n = Object.keys(e);
|
|
55
55
|
let r = n.length, s;
|
|
@@ -58,11 +58,11 @@ function Pe(e, t) {
|
|
|
58
58
|
return s;
|
|
59
59
|
return null;
|
|
60
60
|
}
|
|
61
|
-
const k = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
61
|
+
const k = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Pe = (e) => !j(e) && e !== k;
|
|
62
62
|
function se() {
|
|
63
|
-
const { caseless: e } =
|
|
64
|
-
const o = e &&
|
|
65
|
-
z(t[o]) && z(r) ? t[o] = se(t[o], r) : z(r) ? t[o] = se({}, r) :
|
|
63
|
+
const { caseless: e } = Pe(this) && this || {}, t = {}, n = (r, s) => {
|
|
64
|
+
const o = e && Be(t, s) || s;
|
|
65
|
+
z(t[o]) && z(r) ? t[o] = se(t[o], r) : z(r) ? t[o] = se({}, r) : P(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] && q(arguments[r], n);
|
|
@@ -90,7 +90,7 @@ const Ot = (e, t, n, { allOwnKeys: r } = {}) => (q(t, (s, o) => {
|
|
|
90
90
|
return r !== -1 && r === n;
|
|
91
91
|
}, Lt = (e) => {
|
|
92
92
|
if (!e) return null;
|
|
93
|
-
if (
|
|
93
|
+
if (P(e)) return e;
|
|
94
94
|
let t = e.length;
|
|
95
95
|
if (!Fe(t)) return null;
|
|
96
96
|
const n = new Array(t);
|
|
@@ -110,7 +110,7 @@ const Ot = (e, t, n, { allOwnKeys: r } = {}) => (q(t, (s, o) => {
|
|
|
110
110
|
for (; (n = e.exec(t)) !== null; )
|
|
111
111
|
r.push(n);
|
|
112
112
|
return r;
|
|
113
|
-
},
|
|
113
|
+
}, Bt = C("HTMLFormElement"), Pt = (e) => e.toLowerCase().replace(
|
|
114
114
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
115
115
|
function(n, r, s) {
|
|
116
116
|
return r.toUpperCase() + s;
|
|
@@ -142,7 +142,7 @@ const Ot = (e, t, n, { allOwnKeys: r } = {}) => (q(t, (s, o) => {
|
|
|
142
142
|
n[o] = !0;
|
|
143
143
|
});
|
|
144
144
|
};
|
|
145
|
-
return
|
|
145
|
+
return P(e) ? r(e) : r(String(e).split(t)), n;
|
|
146
146
|
}, qt = () => {
|
|
147
147
|
}, Ht = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
148
148
|
function Mt(e) {
|
|
@@ -155,7 +155,7 @@ const zt = (e) => {
|
|
|
155
155
|
return;
|
|
156
156
|
if (!("toJSON" in r)) {
|
|
157
157
|
t[s] = r;
|
|
158
|
-
const o =
|
|
158
|
+
const o = P(r) ? [] : {};
|
|
159
159
|
return q(r, (i, c) => {
|
|
160
160
|
const f = n(i, s + 1);
|
|
161
161
|
!j(f) && (o[c] = f);
|
|
@@ -173,7 +173,7 @@ const zt = (e) => {
|
|
|
173
173
|
typeof setImmediate == "function",
|
|
174
174
|
O(k.postMessage)
|
|
175
175
|
), Wt = typeof queueMicrotask < "u" ? queueMicrotask.bind(k) : typeof process < "u" && process.nextTick || Ie, Jt = (e) => e != null && O(e[K]), a = {
|
|
176
|
-
isArray:
|
|
176
|
+
isArray: P,
|
|
177
177
|
isArrayBuffer: ke,
|
|
178
178
|
isBuffer: ut,
|
|
179
179
|
isFormData: wt,
|
|
@@ -210,19 +210,19 @@ const zt = (e) => {
|
|
|
210
210
|
toArray: Lt,
|
|
211
211
|
forEachEntry: kt,
|
|
212
212
|
matchAll: Ft,
|
|
213
|
-
isHTMLForm:
|
|
213
|
+
isHTMLForm: Bt,
|
|
214
214
|
hasOwnProperty: ye,
|
|
215
215
|
hasOwnProp: ye,
|
|
216
216
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
217
217
|
reduceDescriptors: De,
|
|
218
218
|
freezeMethods: It,
|
|
219
219
|
toObjectSet: jt,
|
|
220
|
-
toCamelCase:
|
|
220
|
+
toCamelCase: Pt,
|
|
221
221
|
noop: qt,
|
|
222
222
|
toFiniteNumber: Ht,
|
|
223
|
-
findKey:
|
|
223
|
+
findKey: Be,
|
|
224
224
|
global: k,
|
|
225
|
-
isContextDefined:
|
|
225
|
+
isContextDefined: Pe,
|
|
226
226
|
isSpecCompliantForm: Mt,
|
|
227
227
|
toJSONObject: zt,
|
|
228
228
|
isAsyncFn: $t,
|
|
@@ -316,6 +316,8 @@ function Z(e, t, n) {
|
|
|
316
316
|
if (p === null) return "";
|
|
317
317
|
if (a.isDate(p))
|
|
318
318
|
return p.toISOString();
|
|
319
|
+
if (a.isBoolean(p))
|
|
320
|
+
return p.toString();
|
|
319
321
|
if (!f && a.isBlob(p))
|
|
320
322
|
throw new m("Blob is not supported. Use a Buffer instead.");
|
|
321
323
|
return a.isArrayBuffer(p) || a.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
|
@@ -924,7 +926,7 @@ function Ke(e, t, n) {
|
|
|
924
926
|
return e && (r || n == !1) ? Tn(e, t) : t;
|
|
925
927
|
}
|
|
926
928
|
const Se = (e) => e instanceof x ? { ...e } : e;
|
|
927
|
-
function
|
|
929
|
+
function B(e, t) {
|
|
928
930
|
t = t || {};
|
|
929
931
|
const n = {};
|
|
930
932
|
function r(u, l, d, y) {
|
|
@@ -989,7 +991,7 @@ function P(e, t) {
|
|
|
989
991
|
}), n;
|
|
990
992
|
}
|
|
991
993
|
const ve = (e) => {
|
|
992
|
-
const t =
|
|
994
|
+
const t = B({}, e);
|
|
993
995
|
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
|
|
994
996
|
t.headers = i = x.from(i), t.url = ze(Ke(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && i.set(
|
|
995
997
|
"Authorization",
|
|
@@ -1236,7 +1238,7 @@ const _n = async (e) => {
|
|
|
1236
1238
|
duplex: "half",
|
|
1237
1239
|
credentials: w ? d : void 0
|
|
1238
1240
|
});
|
|
1239
|
-
let A = await fetch(p);
|
|
1241
|
+
let A = await fetch(p, y);
|
|
1240
1242
|
const T = ae && (u === "stream" || u === "response");
|
|
1241
1243
|
if (ae && (c || T && b)) {
|
|
1242
1244
|
const E = {};
|
|
@@ -1288,7 +1290,7 @@ a.forEach(ce, (e, t) => {
|
|
|
1288
1290
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1289
1291
|
}
|
|
1290
1292
|
});
|
|
1291
|
-
const xe = (e) => `- ${e}`,
|
|
1293
|
+
const xe = (e) => `- ${e}`, Bn = (e) => a.isFunction(e) || e === null || e === !1, Ze = {
|
|
1292
1294
|
getAdapter: (e) => {
|
|
1293
1295
|
e = a.isArray(e) ? e : [e];
|
|
1294
1296
|
const { length: t } = e;
|
|
@@ -1297,7 +1299,7 @@ const xe = (e) => `- ${e}`, Pn = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1297
1299
|
for (let o = 0; o < t; o++) {
|
|
1298
1300
|
n = e[o];
|
|
1299
1301
|
let i;
|
|
1300
|
-
if (r = n, !
|
|
1302
|
+
if (r = n, !Bn(n) && (r = ce[(i = String(n)).toLowerCase()], r === void 0))
|
|
1301
1303
|
throw new m(`Unknown adapter '${i}'`);
|
|
1302
1304
|
if (r)
|
|
1303
1305
|
break;
|
|
@@ -1341,7 +1343,7 @@ function Ce(e) {
|
|
|
1341
1343
|
), r.response.headers = x.from(r.response.headers))), Promise.reject(r);
|
|
1342
1344
|
});
|
|
1343
1345
|
}
|
|
1344
|
-
const Qe = "1.
|
|
1346
|
+
const Qe = "1.10.0", Y = {};
|
|
1345
1347
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1346
1348
|
Y[e] = function(r) {
|
|
1347
1349
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
@@ -1369,7 +1371,7 @@ Y.transitional = function(t, n, r) {
|
|
|
1369
1371
|
Y.spelling = function(t) {
|
|
1370
1372
|
return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
|
|
1371
1373
|
};
|
|
1372
|
-
function
|
|
1374
|
+
function Pn(e, t, n) {
|
|
1373
1375
|
if (typeof e != "object")
|
|
1374
1376
|
throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
|
|
1375
1377
|
const r = Object.keys(e);
|
|
@@ -1387,7 +1389,7 @@ function Bn(e, t, n) {
|
|
|
1387
1389
|
}
|
|
1388
1390
|
}
|
|
1389
1391
|
const V = {
|
|
1390
|
-
assertOptions:
|
|
1392
|
+
assertOptions: Pn,
|
|
1391
1393
|
validators: Y
|
|
1392
1394
|
}, N = V.validators;
|
|
1393
1395
|
let F = class {
|
|
@@ -1423,7 +1425,7 @@ let F = class {
|
|
|
1423
1425
|
}
|
|
1424
1426
|
}
|
|
1425
1427
|
_request(t, n) {
|
|
1426
|
-
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n =
|
|
1428
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = B(this.defaults, n);
|
|
1427
1429
|
const { transitional: r, paramsSerializer: s, headers: o } = n;
|
|
1428
1430
|
r !== void 0 && V.assertOptions(r, {
|
|
1429
1431
|
silentJSONParsing: N.transitional(N.boolean),
|
|
@@ -1485,14 +1487,14 @@ let F = class {
|
|
|
1485
1487
|
return l;
|
|
1486
1488
|
}
|
|
1487
1489
|
getUri(t) {
|
|
1488
|
-
t =
|
|
1490
|
+
t = B(this.defaults, t);
|
|
1489
1491
|
const n = Ke(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1490
1492
|
return ze(n, t.params, t.paramsSerializer);
|
|
1491
1493
|
}
|
|
1492
1494
|
};
|
|
1493
1495
|
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1494
1496
|
F.prototype[t] = function(n, r) {
|
|
1495
|
-
return this.request(
|
|
1497
|
+
return this.request(B(r || {}, {
|
|
1496
1498
|
method: t,
|
|
1497
1499
|
url: n,
|
|
1498
1500
|
data: (r || {}).data
|
|
@@ -1502,7 +1504,7 @@ a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
1502
1504
|
a.forEach(["post", "put", "patch"], function(t) {
|
|
1503
1505
|
function n(r) {
|
|
1504
1506
|
return function(o, i, c) {
|
|
1505
|
-
return this.request(
|
|
1507
|
+
return this.request(B(c || {}, {
|
|
1506
1508
|
method: t,
|
|
1507
1509
|
headers: r ? {
|
|
1508
1510
|
"Content-Type": "multipart/form-data"
|
|
@@ -1666,7 +1668,7 @@ Object.entries(ue).forEach(([e, t]) => {
|
|
|
1666
1668
|
function et(e) {
|
|
1667
1669
|
const t = new F(e), n = Le(F.prototype.request, t);
|
|
1668
1670
|
return a.extend(n, F.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1669
|
-
return et(
|
|
1671
|
+
return et(B(e, s));
|
|
1670
1672
|
}, n;
|
|
1671
1673
|
}
|
|
1672
1674
|
const R = et(H);
|
|
@@ -1683,7 +1685,7 @@ R.all = function(t) {
|
|
|
1683
1685
|
};
|
|
1684
1686
|
R.spread = In;
|
|
1685
1687
|
R.isAxiosError = jn;
|
|
1686
|
-
R.mergeConfig =
|
|
1688
|
+
R.mergeConfig = B;
|
|
1687
1689
|
R.AxiosHeaders = x;
|
|
1688
1690
|
R.formToJSON = (e) => Ve(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1689
1691
|
R.getAdapter = Ze.getAdapter;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Pinia } from 'pinia';
|
|
2
|
-
import {
|
|
2
|
+
import { PluginOptions, Serializer } from 'pinia-plugin-persistedstate';
|
|
3
3
|
export declare function customSerializer(): Serializer;
|
|
4
|
-
export declare function createPersistedStateOptions():
|
|
4
|
+
export declare function createPersistedStateOptions(): PluginOptions;
|
|
5
5
|
export declare function registerPiniaPersistPlugin(pinia: Pinia): void;
|