@pubinfo/core 2.1.5 → 2.1.7
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-D5eSdPuB.js → AppSetting-CTIsHew8.js} +15 -15
- package/dist/{HCheckList.vue_vue_type_script_setup_true_lang-DgeRhutB.js → HCheckList.vue_vue_type_script_setup_true_lang-VeZLC9_3.js} +1 -1
- package/dist/{HToggle-BajvSdEE.js → HToggle-yjb49QxF.js} +1 -1
- package/dist/HeaderThinMenu-BVlGUPXh.js +4 -0
- package/dist/{PreferencesContent-mr3zgq9x.js → PreferencesContent-CZQf1_VU.js} +4 -4
- package/dist/{SettingBreadcrumb-Chx1c5oE.js → SettingBreadcrumb-BcIsqS3T.js} +3 -3
- package/dist/{SettingCopyright-BgIL_X3d.js → SettingCopyright-CLcJJ_ZY.js} +2 -2
- package/dist/{SettingEnableTransition-16PeKbCJ.js → SettingEnableTransition-8CPCBLhR.js} +2 -2
- package/dist/{SettingHome-DuLT9846.js → SettingHome-BmaIcr9s.js} +2 -2
- package/dist/{SettingMenu-DDOmRqGo.js → SettingMenu-CXV2tDsG.js} +3 -3
- package/dist/{SettingMode-B6OwuuHR.js → SettingMode-ClKWlQsK.js} +1 -1
- package/dist/{SettingNavSearch-BzmXK8I0.js → SettingNavSearch-BRDac2j6.js} +2 -2
- package/dist/{SettingOther-DcDn9I3J.js → SettingOther-BX1lfqmd.js} +2 -2
- package/dist/{SettingPage-DmfsDzGF.js → SettingPage-DHw1q1h7.js} +2 -2
- package/dist/{SettingTabbar-BxxzDY5f.js → SettingTabbar-mcZN2csR.js} +3 -3
- package/dist/{SettingThemes-DoTkccTu.js → SettingThemes-DGui2UHj.js} +1 -1
- package/dist/{SettingToolbar-ogjoj5NI.js → SettingToolbar-DhcVwzSM.js} +2 -2
- package/dist/{SettingTopbar-BRZEIJZt.js → SettingTopbar-BkzRB6Cj.js} +3 -3
- package/dist/{SettingWidthMode-DQmewGT6.js → SettingWidthMode-fBOSOYdB.js} +1 -1
- package/dist/built-in/authentication/pages/change-password/components/ChangePasswordForm/index.vue.d.ts +639 -2
- package/dist/built-in/authentication/pages/change-password/index.vue.d.ts +644 -3
- package/dist/built-in/layout-component/components/Menu/item.vue.d.ts +1 -1
- package/dist/built-in/layout-component/components/Menu/sub.vue.d.ts +17 -17
- package/dist/built-in/layout-component/components/Menu/types.d.ts +1 -1
- package/dist/built-in/layout-component/components/Sidebar/index.vue.d.ts +1 -1
- package/dist/built-in/layout-component/components/Tools/SearchPanel.vue.d.ts +15 -15
- package/dist/built-in/layout-component/components/ui/HInput.vue.d.ts +1 -1
- package/dist/built-in/layout-component/composables/useContext.d.ts +1 -1
- package/dist/built-in/layout-component/composables/useGetComputedStyle.d.ts +2 -2
- package/dist/built-in/layout-component/composables/useGlobalSearch.d.ts +3 -3
- package/dist/built-in/layout-component/composables/useLayoutVisible.d.ts +12 -1
- package/dist/built-in/layout-component/composables/useTabbar.d.ts +8 -8
- package/dist/built-in/layout-component/provider.d.ts +24 -1
- package/dist/features/components/PassStrengthValidator/index.vue.d.ts +6 -6
- package/dist/features/components/PubinfoProvider/index.d.ts +12 -2
- package/dist/features/composables/partyLogin.d.ts +3 -3
- package/dist/features/composables/theme.d.ts +1 -1
- package/dist/features/stores/modules/favorites.d.ts +39 -9
- package/dist/features/stores/modules/iframe.d.ts +61 -15
- package/dist/features/stores/modules/keepAlive.d.ts +9 -9
- package/dist/features/stores/modules/menu.d.ts +255 -21
- package/dist/features/stores/modules/route.d.ts +189 -21
- package/dist/features/stores/modules/settings.d.ts +1662 -33
- package/dist/features/stores/modules/tabbar.d.ts +117 -9
- package/dist/{index-DwF3aqst.js → index-Bw1ie7-j.js} +1 -1
- package/dist/index-C2JZzc0b.js +4 -0
- package/dist/{index-BRjgatUZ.js → index-C5mj5gP8.js} +1 -1
- package/dist/{index-NOUM2y9h.js → index-C7-lntpD.js} +1 -1
- package/dist/{index-CkUIa4JM.js → index-CALZPKTP.js} +2 -2
- package/dist/{index-73TLLAnx.js → index-CMZt4YAs.js} +3 -3
- package/dist/{index-B3GOGQYd.js → index-CcAZUk6R.js} +6576 -6558
- package/dist/{index-D2zvNBbe.js → index-CxObISsD.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{pick-dLE6MD9A.js → pick-DnLzjJ7h.js} +1 -1
- package/package.json +7 -7
- package/src/features/stores/modules/route.ts +5 -4
- package/src/features/stores/utils/routerHelper.ts +2 -2
- package/dist/HeaderThinMenu-ouAiyBjb.js +0 -4
- package/dist/index-BrK3HYDT.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ce as a, _ as i, b as u } from "./index-
|
|
1
|
+
import { ce as a, _ as i, b as u } from "./index-CcAZUk6R.js";
|
|
2
2
|
import { defineComponent as d, ref as c, onUnmounted as x, onMounted as f, createElementBlock as m, openBlock as p, createElementVNode as n, createVNode as v, withCtx as _, createTextVNode as w, toDisplayString as g, unref as N } from "vue";
|
|
3
3
|
import { useRouter as k } from "vue-router";
|
|
4
4
|
const b = { class: "absolute left-[50%] top-[50%] flex flex-col items-center justify-between lg:flex-row -translate-x-50% -translate-y-50% lg:gap-12" }, C = { class: "flex flex-col gap-4" }, I = /* @__PURE__ */ d({
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cV as a, cW as t, cX as d, cY as o, cZ as u, c_ as r, c$ as n, d0 as c, d1 as i, dm as P, dn as S, dp as l, ch as f, dq as g, cC as y, dr as b, ds as p, dt as R, dE as L, cU as m, d2 as A, d3 as E, dg as I, dh as M, db as h, dc as x, cT as C, du as T, di as v, d5 as w, dF as O, d6 as j, d7 as B, dJ as K, dH as N, d8 as U, d9 as W, dG as q, dd as D, de as H, dK as _, dI as k, dv as F, dj as V, da as Y, df as z, dk as G, d4 as J, dw as X, dC as Z, dx as $, dL as Q, dM as ee, dA as se, dN as ae, dO as te, dD as de, dP as oe, u as ue, dB as re, dy as ne, a as ce, cS as ie, ce as Pe, dz as Se, cL as le, dl as fe } from "./index-
|
|
1
|
+
import { cV as a, cW as t, cX as d, cY as o, cZ as u, c_ as r, c$ as n, d0 as c, d1 as i, dm as P, dn as S, dp as l, ch as f, dq as g, cC as y, dr as b, ds as p, dt as R, dE as L, cU as m, d2 as A, d3 as E, dg as I, dh as M, db as h, dc as x, cT as C, du as T, di as v, d5 as w, dF as O, d6 as j, d7 as B, dJ as K, dH as N, d8 as U, d9 as W, dG as q, dd as D, de as H, dK as _, dI as k, dv as F, dj as V, da as Y, df as z, dk as G, d4 as J, dw as X, dC as Z, dx as $, dL as Q, dM as ee, dA as se, dN as ae, dO as te, dD as de, dP as oe, u as ue, dB as re, dy as ne, a as ce, cS as ie, ce as Pe, dz as Se, cL as le, dl as fe } from "./index-CcAZUk6R.js";
|
|
2
2
|
export {
|
|
3
3
|
a as Copyright,
|
|
4
4
|
t as Layout,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pubinfo/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.7",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"pinia": "^3.0.3",
|
|
32
32
|
"vue": "^3.5.17",
|
|
33
33
|
"vue-router": "^4.5.1",
|
|
34
|
-
"@pubinfo/config": "2.1.
|
|
35
|
-
"@pubinfo/
|
|
36
|
-
"@pubinfo/
|
|
34
|
+
"@pubinfo/config": "2.1.7",
|
|
35
|
+
"@pubinfo/vite": "2.1.7",
|
|
36
|
+
"@pubinfo/devtools": "2.1.7"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@alova/adapter-axios": "^2.0.16",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"unctx": "^2.4.1",
|
|
64
64
|
"vue-m-message": "^4.0.2",
|
|
65
65
|
"zxcvbn": "^4.4.2",
|
|
66
|
-
"@pubinfo/shared": "2.1.
|
|
66
|
+
"@pubinfo/shared": "2.1.7"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@alova/mock": "^2.0.17",
|
|
@@ -93,8 +93,8 @@
|
|
|
93
93
|
"vite-plugin-dts": "^4.5.4",
|
|
94
94
|
"vue": "^3.5.17",
|
|
95
95
|
"vue-router": "^4.5.1",
|
|
96
|
-
"@pubinfo/
|
|
97
|
-
"@pubinfo/
|
|
96
|
+
"@pubinfo/vite": "2.1.7",
|
|
97
|
+
"@pubinfo/config": "2.1.7"
|
|
98
98
|
},
|
|
99
99
|
"scripts": {
|
|
100
100
|
"dev": "vite build -w -m watch",
|
|
@@ -356,6 +356,11 @@ const useRouteStore = defineStore(
|
|
|
356
356
|
* 生成路由
|
|
357
357
|
*/
|
|
358
358
|
async function generateRoutes() {
|
|
359
|
+
// 获取权限码
|
|
360
|
+
if (settingsStore.settings.app.enablePermission) {
|
|
361
|
+
await userStore.getPermissions();
|
|
362
|
+
}
|
|
363
|
+
|
|
359
364
|
const res = await postRbacResourceMineOrAllResourceTree({ needAll: !needFilterRoutes.value });
|
|
360
365
|
if (res.success) {
|
|
361
366
|
remoteRoutesRaw.value = res?.data ?? [];
|
|
@@ -406,10 +411,6 @@ const useRouteStore = defineStore(
|
|
|
406
411
|
routesRaw.value = await callHookAsync<RouteData[]>('route:transform', sortedRoutes);
|
|
407
412
|
}
|
|
408
413
|
|
|
409
|
-
if (settingsStore.settings.app.enablePermission) {
|
|
410
|
-
await userStore.getPermissions();
|
|
411
|
-
}
|
|
412
|
-
|
|
413
414
|
isGenerate.value = true;
|
|
414
415
|
|
|
415
416
|
// 加载常驻标签页
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RouterMetaRawBaseOptions } from '#/vue-router';
|
|
2
2
|
import type { RequireExactlyOne } from 'type-fest';
|
|
3
|
-
import { cloneDeep, isUndefined, omitBy } from 'lodash-es';
|
|
3
|
+
import { cloneDeep, isEmpty, isUndefined, omitBy } from 'lodash-es';
|
|
4
4
|
import { setupDefaultLayout, setupPage } from '@/core';
|
|
5
5
|
import { RESOURCE_TYPE } from '@/features/enum';
|
|
6
6
|
|
|
@@ -82,7 +82,7 @@ export function formatBackRoutes(
|
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
84
|
|
|
85
|
-
return formatRoutes;
|
|
85
|
+
return isEmpty(parent) ? filterEmptyComponentRoutes(formatRoutes) : formatRoutes;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
/** 过滤指定类型的路由 */
|
package/dist/index-BrK3HYDT.js
DELETED