@pubinfo/core 2.0.0-beta.7 → 2.0.0-beta.8

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.
Files changed (47) hide show
  1. package/dist/{AppSetting-Bv7xCe88.js → AppSetting-BQT7OI6K.js} +16 -16
  2. package/dist/{HCheckList.vue_vue_type_script_setup_true_lang-DanhyVxU.js → HCheckList.vue_vue_type_script_setup_true_lang-D4u_haxr.js} +2 -2
  3. package/dist/{PreferencesContent-5bwij0az.js → PreferencesContent-MR1Db7z7.js} +46 -46
  4. package/dist/{SettingBreadcrumb-DxnZ4kvv.js → SettingBreadcrumb-CgugOTgx.js} +2 -2
  5. package/dist/{SettingCopyright-C4rrvQ52.js → SettingCopyright-BPeCJBLi.js} +1 -1
  6. package/dist/{SettingEnableTransition-Dgss1jFn.js → SettingEnableTransition-BK0_EH_N.js} +1 -1
  7. package/dist/{SettingHome-Dcqz6iCb.js → SettingHome-DGnxlXLd.js} +1 -1
  8. package/dist/{SettingMenu-BMaSeklX.js → SettingMenu-BqAd9zbL.js} +2 -2
  9. package/dist/{SettingMode-CJXj9LL9.js → SettingMode-CgA3XDwW.js} +1 -1
  10. package/dist/{SettingNavSearch-BMN3jDNW.js → SettingNavSearch-WFnkcRQ3.js} +1 -1
  11. package/dist/{SettingOther-DeLyS4HI.js → SettingOther-CG4RI6mO.js} +1 -1
  12. package/dist/{SettingPage-B2Cj8x_L.js → SettingPage-C1CT1Mm8.js} +1 -1
  13. package/dist/{SettingTabbar-DipvqgLC.js → SettingTabbar-CQA6ZT9l.js} +2 -2
  14. package/dist/{SettingThemes-APuKr4OB.js → SettingThemes-BJu9czNK.js} +2 -2
  15. package/dist/{SettingToolbar-BIYD2Pvu.js → SettingToolbar-DdR2940j.js} +1 -1
  16. package/dist/{SettingTopbar-C8o6tnVH.js → SettingTopbar-C_jYO_Ax.js} +2 -2
  17. package/dist/{SettingWidthMode-DBz8Kxmh.js → SettingWidthMode-ir_28SE3.js} +1 -1
  18. package/dist/{TopThinMode-6oFZVnh7.js → TopThinMode-jHDpKsma.js} +1 -1
  19. package/dist/{_...all_-DI_QAUox.js → _...all_-18BnHmEa.js} +1 -1
  20. package/dist/{colors-oRlAXMUC.js → colors-gu4NABiz.js} +1 -1
  21. package/dist/{index-BkqnOkyO.js → index-C1p_tY7i.js} +1 -1
  22. package/dist/{index-CUFIyWeP.js → index-CCPTQYuB.js} +2108 -2111
  23. package/dist/{index-ChOUZNbk.js → index-CNUEMTao.js} +2 -2
  24. package/dist/{index-Dav3jQVP.js → index-CWIfG62O.js} +2 -2
  25. package/dist/{index-BvVAS3S-.js → index-CjsnFBwd.js} +14 -8
  26. package/dist/{index-BjwuS5bV.js → index-CmXo8ShY.js} +12 -12
  27. package/dist/{index-BHkrq701.js → index-DL8Y7jFG.js} +9 -9
  28. package/dist/{index-P2cA5UeU.js → index-Dj8zy7hH.js} +4 -4
  29. package/dist/{index-D8eeneI_.js → index-NpS61xSA.js} +22 -22
  30. package/dist/index.js +25 -26
  31. package/dist/{index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-BBe8CvCV.js → index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-BCo6Ft-Q.js} +1 -1
  32. package/dist/layout/composables/useContext.d.ts +1 -2
  33. package/dist/{notification-6D5hA7Bp.js → menu-CLiZ1BO_.js} +481 -513
  34. package/dist/{pick-Br-UKn7B.js → pick-C9bU8_xv.js} +1 -1
  35. package/dist/request.js +23 -23
  36. package/dist/stores/modules/index.d.ts +0 -2
  37. package/dist/style.css +1 -1
  38. package/package.json +7 -7
  39. package/src/layout/components/Tools/index.vue +2 -19
  40. package/src/layout/composables/useContext.ts +0 -2
  41. package/src/layout/provider.ts +0 -3
  42. package/src/route/routes.ts +0 -9
  43. package/src/stores/modules/index.ts +0 -2
  44. package/dist/stores/modules/notification.d.ts +0 -19
  45. package/src/layout/components/Tools/Notification.vue +0 -152
  46. package/src/pages/personal/notification.vue +0 -58
  47. package/src/stores/modules/notification.ts +0 -35
@@ -1,4 +1,4 @@
1
- import { c3 as u, c4 as f, c5 as l, c6 as o, c7 as k } from "./notification-6D5hA7Bp.js";
1
+ import { c2 as u, c3 as f, c4 as l, c5 as o, c6 as k } from "./menu-CLiZ1BO_.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, $ as rt, e as Ne } from "./notification-6D5hA7Bp.js";
4
+ import { u as ue, _ as rt, e as Ne } from "./menu-CLiZ1BO_.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, $ = (e) => {
28
+ const ut = v("string"), x = v("function"), _e = v("number"), G = (e) => e !== null && typeof e == "object", lt = (e) => e === !0 || e === !1, z = (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
- $(t[o]) && $(r) ? t[o] = re(t[o], r) : $(r) ? t[o] = re({}, r) : B(r) ? t[o] = r.slice() : t[o] = r;
65
+ z(t[o]) && z(r) ? t[o] = re(t[o], r) : z(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"), $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 }) => {
168
+ }, Mt = C("AsyncFunction"), zt = (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
- ), zt = typeof queueMicrotask < "u" ? queueMicrotask.bind(k) : typeof process < "u" && process.nextTick || Be, a = {
175
+ ), $t = 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: z,
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: $t,
229
+ isThenable: zt,
230
230
  setImmediate: Be,
231
- asap: zt
231
+ asap: $t
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 $e(e) {
506
+ function ze(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($e(t)) : t;
537
+ return s ? JSON.stringify(ze(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 z(e) {
630
- return e === !1 || e == null ? e : a.isArray(e) ? e.map(z) : String(e);
629
+ function $(e) {
630
+ return e === !1 || e == null ? e : a.isArray(e) ? e.map($) : 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] = z(c));
675
+ (!d || s[d] === void 0 || u === !0 || u === void 0 && s[d] !== !1) && (s[d || f] = $(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] = z(s), delete n[o];
738
+ n[i] = $(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] = z(s), r[c] = !0;
742
+ c !== o && delete n[o], n[c] = $(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 ze(e) {
800
+ function $e(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 ze(r) || (ne(e), r && r.response && (r.response.data = te.call(
1328
+ return $e(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 = ze;
1667
+ R.isCancel = $e;
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) => $e(a.isHTMLForm(e) ? new FormData(e) : e);
1679
+ R.formToJSON = (e) => ze(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 $n(e) {
1756
+ function zn(e) {
1757
1757
  return e === Ye.ACCESS_TOKEN_INVALID;
1758
1758
  }
1759
- function zn(e, t) {
1759
+ function $n(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) => $n(e.data.code),
1782
+ isExpired: (e) => zn(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
- zn(t, n);
1789
+ $n(t, n);
1790
1790
  }
1791
1791
  }
1792
1792
  });
@@ -6,8 +6,6 @@ export { default as useKeepAliveStore } from './keepAlive';
6
6
  export * from './keepAlive';
7
7
  export { default as useMenuStore } from './menu';
8
8
  export * from './menu';
9
- export { default as useNotificationStore } from './notification';
10
- export * from './notification';
11
9
  export { default as useRouteStore } from './route';
12
10
  export * from './route';
13
11
  export { default as useSettingsStore } from './settings';