@pubinfo/core 2.0.0-beta.9 → 2.0.0-rc.1
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-BQT7OI6K.js → AppSetting-Bblni_W7.js} +37 -39
- package/dist/{HCheckList.vue_vue_type_script_setup_true_lang-D4u_haxr.js → HCheckList.vue_vue_type_script_setup_true_lang-A7PnhNKK.js} +12 -14
- package/dist/HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js +20 -0
- package/dist/HToggle-xibvPpmf.js +34 -0
- package/dist/PreferencesContent--JtPw_LT.js +923 -0
- package/dist/{SettingBreadcrumb-CgugOTgx.js → SettingBreadcrumb-BwhdAtkC.js} +9 -9
- package/dist/{SettingCopyright-BPeCJBLi.js → SettingCopyright-DPsRDagL.js} +8 -8
- package/dist/{SettingEnableTransition-BK0_EH_N.js → SettingEnableTransition-mtHTUb08.js} +20 -21
- package/dist/{SettingHome-DGnxlXLd.js → SettingHome-agxHFIKq.js} +20 -20
- package/dist/{SettingMenu-BqAd9zbL.js → SettingMenu-D6WwcOw-.js} +26 -26
- package/dist/{SettingMode-CgA3XDwW.js → SettingMode-CkmhszlD.js} +11 -12
- package/dist/{SettingNavSearch-WFnkcRQ3.js → SettingNavSearch-CEB5DZGf.js} +9 -9
- package/dist/{SettingOther-CG4RI6mO.js → SettingOther-Dzs1uwnC.js} +13 -13
- package/dist/SettingPage-bOThkL2-.js +29 -0
- package/dist/{SettingTabbar-CQA6ZT9l.js → SettingTabbar-L6yQxAeE.js} +18 -18
- package/dist/SettingThemes-Cxa5bR66.js +142 -0
- package/dist/{SettingToolbar-DdR2940j.js → SettingToolbar-BZ2uHom2.js} +10 -10
- package/dist/{SettingTopbar-C_jYO_Ax.js → SettingTopbar-hptxTh8m.js} +16 -16
- package/dist/{SettingWidthMode-ir_28SE3.js → SettingWidthMode-D2R2W4-n.js} +19 -20
- package/dist/{TopThinMode-jHDpKsma.js → TopThinMode-C26i10py.js} +1 -1
- package/dist/built-in/authentication/helper.d.ts +1 -0
- package/dist/built-in/authentication/index.d.ts +10 -0
- package/dist/built-in/authentication/interface.d.ts +7 -0
- package/dist/built-in/authentication/router.d.ts +2 -0
- package/dist/built-in/authorization/directives.d.ts +2 -0
- package/dist/built-in/authorization/helper.d.ts +6 -0
- package/dist/built-in/authorization/index.d.ts +7 -0
- package/dist/built-in/authorization/router.d.ts +3 -0
- package/dist/built-in/index.d.ts +8 -0
- package/dist/{layout → built-in/layout-component}/Layout.vue.d.ts +2 -2
- package/dist/{layout → built-in/layout-component}/components/Header/TopMode/More.vue.d.ts +1 -1
- package/dist/{layout → built-in/layout-component}/components/Header/TopMode/NotCursor.vue.d.ts +2 -0
- package/dist/{layout → built-in/layout-component}/components/Menu/sub.vue.d.ts +43 -43
- package/dist/{layout → built-in/layout-component}/components/Menu/types.d.ts +1 -1
- package/dist/{layout → built-in/layout-component}/components/Tools/Search.vue.d.ts +43 -43
- package/dist/{layout/components/Topbar/Tabbar/MoreAction.vue.d.ts → built-in/layout-component/components/Tools/index.vue.d.ts} +18 -2
- package/dist/{layout/components/Tools/index.vue.d.ts → built-in/layout-component/components/Topbar/Tabbar/MoreAction.vue.d.ts} +45 -61
- package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HDialog.vue.d.ts +1 -1
- package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HSlideover.vue.d.ts +1 -1
- package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HTabList.vue.d.ts +2 -2
- package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HTooltip.vue.d.ts +1 -1
- package/dist/{layout → built-in/layout-component}/composables/useContext.d.ts +1 -1
- package/dist/{layout → built-in/layout-component}/composables/useHotkey.d.ts +1 -1
- package/dist/{layout → built-in/layout-component}/composables/useMenu.d.ts +1 -1
- package/dist/{layout → built-in/layout-component}/index.d.ts +5 -4
- package/dist/built-in/layout-component/utils/eventBus.d.ts +5 -0
- package/dist/built-in/layout-component/utils/index.d.ts +3 -0
- package/dist/{utils → built-in/layout-component/utils}/watermark.d.ts +1 -1
- package/dist/built-in/locales/helpler.d.ts +594 -0
- package/dist/built-in/locales/index.d.ts +5 -0
- package/dist/built-in/n-progress/index.d.ts +6 -0
- package/dist/built-in/pinia-plugin/enum.d.ts +1 -0
- package/dist/built-in/pinia-plugin/index.d.ts +5 -0
- package/dist/built-in/pinia-plugin/plugins/persist.d.ts +3 -0
- package/dist/built-in/pre-access/index.d.ts +7 -0
- package/dist/built-in/settings/index.d.ts +5 -0
- package/dist/built-in/settings/router.d.ts +3 -0
- package/dist/{colors-gu4NABiz.js → colors-C8I6Fdyp.js} +1 -1
- package/dist/core/create.d.ts +2 -0
- package/dist/core/ctx.d.ts +1 -0
- package/dist/core/index.d.ts +4 -0
- package/dist/core/interface.d.ts +74 -0
- package/dist/{modules.d.ts → core/modules.d.ts} +9 -0
- package/dist/{api/index.d.ts → core/request.d.ts} +2 -4
- package/dist/core/resolver/icon.d.ts +5 -0
- package/dist/core/resolver/index.d.ts +4 -0
- package/dist/core/resolver/layout.d.ts +2 -0
- package/dist/core/resolver/page.d.ts +17 -0
- package/dist/core/resolver/resolver.d.ts +10 -0
- package/dist/{api → features/api}/modules/auth/renzhengfuwu.d.ts +7 -0
- package/dist/{api → features/api}/modules/configData/index.d.ts +1 -1
- package/dist/{api → features/api}/modules/rbac/pubJiaosezukongzhiqi.d.ts +7 -0
- package/dist/{api → features/api}/modules/rbac/ziyuanjiekou.d.ts +7 -0
- package/dist/features/api/request.d.ts +2 -0
- package/dist/{assets → features/assets}/styles/index.d.ts +2 -3
- package/dist/{composables → features/composables}/auth.d.ts +1 -1
- package/dist/features/context/index.d.ts +12 -0
- package/dist/features/enum.d.ts +21 -0
- package/dist/features/index.d.ts +7 -0
- package/dist/features/router/asyncRoutes.d.ts +14 -0
- package/dist/features/router/index.d.ts +2 -0
- package/dist/features/router/systemRoutes.d.ts +9 -0
- package/dist/features/stores/index.d.ts +1 -0
- package/dist/{stores → features/stores}/modules/favorites.d.ts +2 -2
- package/dist/{stores → features/stores}/modules/route.d.ts +6 -6
- package/dist/{stores → features/stores}/modules/tabbar.d.ts +1 -1
- package/dist/features/stores/modules/user.d.ts +36 -0
- package/dist/features/stores/utils/crypto.d.ts +1 -0
- package/dist/features/stores/utils/index.d.ts +2 -0
- package/dist/features/stores/utils/routerHelper.d.ts +17 -0
- package/dist/{reload-CUcPYtl7.js → index-BD2fkZis.js} +5 -5
- package/dist/index-CkyHqPON.js +139 -0
- package/dist/{index-NpS61xSA.js → index-D3zjK9rd.js} +54 -54
- package/dist/index-D948mfZb.js +49 -0
- package/dist/{index-CWIfG62O.js → index-DZ6SbWiv.js} +1804 -1897
- package/dist/{index-CjsnFBwd.js → index-DdS6qgK_.js} +7733 -8240
- package/dist/index-DeWCd_-p.js +44 -0
- package/dist/index-EOTrQlGo.js +258 -0
- package/dist/index-RwbJwutI.js +52514 -0
- package/dist/index-xzfvpJSq.js +234 -0
- package/dist/index.d.ts +23 -11
- package/dist/index.js +59 -72
- package/dist/pick-D6j4F3UM.js +12 -0
- package/dist/style.css +3 -3
- package/dist/utils/index.d.ts +4 -13
- package/dist/utils/path.d.ts +1 -0
- package/dist/utils/proxy.d.ts +1 -0
- package/dist/utils/storage.d.ts +1 -2
- package/package.json +41 -43
- package/src/built-in/authentication/helper.ts +55 -0
- package/src/built-in/authentication/index.ts +42 -0
- package/src/built-in/authentication/interface.ts +7 -0
- package/src/{pages/system → built-in/authentication/pages}/change-organization/index.vue +29 -43
- package/src/built-in/authentication/pages/change-password/assets/login-small.png +0 -0
- package/src/built-in/authentication/pages/change-password/assets/login-small_dark.webp +0 -0
- package/src/{pages/system → built-in/authentication/pages}/change-password/components/ChangePasswordForm/index.vue +1 -1
- package/src/{pages/system → built-in/authentication/pages}/change-password/index.vue +19 -36
- package/src/built-in/authentication/router.ts +57 -0
- package/src/{directives/plugins/permission.ts → built-in/authorization/directives.ts} +6 -7
- package/src/built-in/authorization/helper.ts +11 -0
- package/src/built-in/authorization/index.ts +25 -0
- package/src/{pages/system → built-in/authorization/pages}/not-permission/index.vue +9 -13
- package/src/{route/guard/auth.ts → built-in/authorization/router.ts} +39 -9
- package/src/built-in/index.ts +8 -0
- package/src/built-in/layout-component/Layout.vue +273 -0
- package/src/{layout → built-in/layout-component}/components/Content/IframeView.vue +1 -2
- package/src/{layout → built-in/layout-component}/components/Content/LinkView.vue +2 -2
- package/src/built-in/layout-component/components/Content/index.vue +146 -0
- package/src/{layout → built-in/layout-component}/components/Copyright/index.vue +7 -8
- package/src/{layout → built-in/layout-component}/components/Header/TopMode/More.vue +26 -34
- package/src/built-in/layout-component/components/Header/TopMode/NotCursor.vue +70 -0
- package/src/{layout → built-in/layout-component}/components/Header/TopMode/index.vue +14 -18
- package/src/built-in/layout-component/components/Header/index.vue +171 -0
- package/src/{layout → built-in/layout-component}/components/Logo/index.vue +5 -20
- package/src/{layout → built-in/layout-component}/components/Menu/index.vue +3 -3
- package/src/{layout → built-in/layout-component}/components/Menu/item.vue +22 -27
- package/src/{layout → built-in/layout-component}/components/Menu/types.ts +1 -1
- package/src/{layout → built-in/layout-component}/components/SettingBar/AppSetting.vue +11 -11
- package/src/{layout → built-in/layout-component}/components/SettingBar/components/DayNightToggle.vue +26 -120
- package/src/built-in/layout-component/components/SettingBar/components/SettingEnableTransition.vue +190 -0
- package/src/built-in/layout-component/components/SettingBar/components/SettingMode.vue +154 -0
- package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingThemes.vue +55 -90
- package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingWidthMode.vue +63 -71
- package/src/built-in/layout-component/components/SettingBar/index.vue +81 -0
- package/src/{layout → built-in/layout-component}/components/Sidebar/MainSidebar.vue +87 -135
- package/src/{layout → built-in/layout-component}/components/Sidebar/SubSidebar.vue +50 -59
- package/src/built-in/layout-component/components/Tools/Breadcrumb/index.vue +15 -0
- package/src/built-in/layout-component/components/Tools/DayNightSwitch.vue +70 -0
- package/src/{layout → built-in/layout-component}/components/Tools/Preferences/PreferencesContent.vue +214 -278
- package/src/{layout → built-in/layout-component}/components/Tools/Search.vue +5 -5
- package/src/{layout → built-in/layout-component}/components/Tools/index.vue +9 -15
- package/src/{layout → built-in/layout-component}/components/Topbar/Tabbar/MoreAction.vue +98 -145
- package/src/{layout → built-in/layout-component}/components/Topbar/Tabbar/index.vue +293 -405
- package/src/{layout → built-in/layout-component}/components/Topbar/Toolbar/Favorites.vue +5 -5
- package/src/{layout → built-in/layout-component}/components/Topbar/Toolbar/index.vue +40 -57
- package/src/{layout → built-in/layout-component}/components/Topbar/index.vue +16 -19
- package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HCheckList.vue +1 -1
- package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HDialog.vue +1 -1
- package/src/built-in/layout-component/components/ui/HDivider.vue +24 -0
- package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HDropdownMenu.vue +1 -1
- package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HDropdownTree.vue +1 -1
- package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HSlideover.vue +1 -1
- package/src/built-in/layout-component/components/ui/HToggle.vue +133 -0
- package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HTooltip.vue +1 -1
- package/src/{layout → built-in/layout-component}/composables/useContext.ts +2 -2
- package/src/{layout → built-in/layout-component}/composables/useGetComputedStyle.ts +1 -1
- package/src/{layout → built-in/layout-component}/composables/useHotkey.ts +1 -1
- package/src/{layout → built-in/layout-component}/composables/useMainPage.ts +2 -2
- package/src/{layout → built-in/layout-component}/composables/useMenu.ts +1 -1
- package/src/{layout → built-in/layout-component}/composables/useTabbar.ts +1 -1
- package/src/{layout → built-in/layout-component}/composables/useTitle.ts +1 -1
- package/src/{layout → built-in/layout-component}/composables/useWatermark.ts +4 -4
- package/src/{layout → built-in/layout-component}/index.ts +38 -16
- package/src/{layout → built-in/layout-component}/provider.ts +8 -2
- package/src/built-in/layout-component/utils/eventBus.ts +8 -0
- package/src/built-in/layout-component/utils/index.ts +3 -0
- package/src/{utils → built-in/layout-component/utils}/watermark.ts +2 -2
- package/src/{locales/index.ts → built-in/locales/helpler.ts} +13 -17
- package/src/built-in/locales/index.ts +20 -0
- package/src/built-in/n-progress/index.ts +31 -0
- package/src/built-in/n-progress/nprogress.css +68 -0
- package/src/built-in/pinia-plugin/enum.ts +1 -0
- package/src/{stores → built-in/pinia-plugin}/helper.ts +3 -3
- package/src/built-in/pinia-plugin/index.ts +27 -0
- package/src/{stores/plugin/sideEffect → built-in/pinia-plugin/plugins}/cleanup.ts +1 -1
- package/src/{stores/plugin/sideEffect → built-in/pinia-plugin/plugins}/favoritesStorage.ts +6 -7
- package/src/{stores/plugin/sideEffect → built-in/pinia-plugin/plugins}/iframeCache.ts +3 -3
- package/src/built-in/pinia-plugin/plugins/persist.ts +21 -0
- package/src/{stores/plugin/sideEffect → built-in/pinia-plugin/plugins}/tabbarStorage.ts +7 -8
- package/src/built-in/pre-access/index.ts +20 -0
- package/src/built-in/settings/index.ts +15 -0
- package/src/{route/guard/setting.ts → built-in/settings/router.ts} +3 -2
- package/src/core/create.ts +70 -0
- package/src/core/ctx.ts +3 -0
- package/src/core/index.ts +4 -0
- package/src/core/interface.ts +89 -0
- package/src/{modules.ts → core/modules.ts} +19 -5
- package/src/core/request.ts +52 -0
- package/src/core/resolver/icon.ts +75 -0
- package/src/core/resolver/index.ts +4 -0
- package/src/core/resolver/layout.ts +23 -0
- package/src/core/resolver/page.ts +89 -0
- package/src/core/resolver/resolver.ts +25 -0
- package/src/{api → features/api}/modules/auth/renzhengfuwu.ts +47 -15
- package/src/{api → features/api}/modules/auth/typings.d.ts +34 -28
- package/src/{api → features/api}/modules/configData/heibaimingdanfuwu.ts +13 -4
- package/src/{api → features/api}/modules/configData/index.ts +1 -1
- package/src/{api → features/api}/modules/configData/typings.d.ts +79 -79
- package/src/{api → features/api}/modules/configData/xitongpeizhifuwu.ts +43 -19
- package/src/{api/modules/configData/zidianfuwu.ts → features/api/modules/configData/zidifuwu.ts} +41 -11
- package/src/{api → features/api}/modules/rbac/gangweijiekou.ts +25 -10
- package/src/{api → features/api}/modules/rbac/jiaosejiekou.ts +25 -10
- package/src/{api → features/api}/modules/rbac/pubJiaosezukongzhiqi.ts +46 -7
- package/src/{api → features/api}/modules/rbac/shujuquanxianzhubiaokongzhiqi.ts +27 -13
- package/src/{api → features/api}/modules/rbac/typings.d.ts +323 -304
- package/src/{api → features/api}/modules/rbac/yonghujiekou.ts +49 -16
- package/src/{api → features/api}/modules/rbac/yonghushoucangbiaojiekou.ts +21 -6
- package/src/{api → features/api}/modules/rbac/yonghuzuijinchangyongbiaojiekou.ts +13 -4
- package/src/{api → features/api}/modules/rbac/ziyuanjiekou.ts +44 -5
- package/src/{api → features/api}/modules/rbac/zuhuguanlijiekou.ts +21 -12
- package/src/{api → features/api}/modules/rbac/zuzhijiaosebiaokongzhiqi.ts +13 -4
- package/src/{api → features/api}/modules/rbac/zuzhijiekou.ts +29 -11
- package/src/features/api/request.ts +5 -0
- package/src/{api → features/api}/system/user.ts +1 -1
- package/src/features/assets/styles/globals.css +188 -0
- package/src/{assets → features/assets}/styles/index.ts +2 -3
- package/src/features/assets/styles/rbac.css +51 -0
- package/src/features/assets/styles/resources/utils.css +53 -0
- package/src/features/assets/styles/resources/variables.css +5 -0
- package/src/features/components/MicroAppContainer/index.vue +9 -0
- package/src/features/components/NotAllowed/assets/403.svg +1 -0
- package/src/features/components/NotAllowed/assets/403_dark.svg +1 -0
- package/src/{components → features/components}/NotAllowed/index.vue +6 -8
- package/src/{components → features/components}/PassStrengthValidator/index.vue +33 -48
- package/src/{components → features/components}/PassStrengthValidator/rule.vue +13 -25
- package/src/{components → features/components}/PubinfoApp/index.vue +2 -1
- package/src/features/components/PubinfoIcon/index.vue +140 -0
- package/src/{components → features/components}/PubinfoProvider/index.ts +1 -2
- package/src/{composables → features/composables}/auth.ts +2 -2
- package/src/{composables → features/composables}/theme.ts +1 -1
- package/src/{composables → features/composables}/watchDiff.ts +1 -1
- package/src/features/context/index.ts +40 -0
- package/src/features/enum.ts +21 -0
- package/src/features/index.ts +8 -0
- package/src/{pages/system/[...all].vue → features/pages/not-found/index.vue} +6 -8
- package/src/{pages/personal → features/pages}/profile/index.vue +1 -1
- package/src/features/router/asyncRoutes.ts +35 -0
- package/src/features/router/index.ts +2 -0
- package/src/features/router/systemRoutes.ts +45 -0
- package/src/{config/settings.ts → features/settings/index.ts} +0 -1
- package/src/{stores/enum/index.ts → features/stores/enum.ts} +0 -1
- package/src/features/stores/index.ts +1 -0
- package/src/{stores → features/stores}/modules/keepAlive.ts +1 -0
- package/src/{stores → features/stores}/modules/menu.ts +44 -6
- package/src/{stores → features/stores}/modules/route.ts +89 -65
- package/src/{stores → features/stores}/modules/settings.ts +27 -10
- package/src/{stores → features/stores}/modules/tabbar.ts +8 -5
- package/src/{stores → features/stores}/modules/user.ts +60 -25
- package/src/{utils → features/stores/utils}/crypto.ts +7 -10
- package/src/features/stores/utils/index.ts +2 -0
- package/src/features/stores/utils/routerHelper.ts +221 -0
- package/src/index.ts +117 -12
- package/src/utils/cleanup.ts +1 -1
- package/src/utils/index.ts +4 -43
- package/src/utils/path.ts +5 -0
- package/src/utils/proxy.ts +36 -0
- package/src/utils/storage.ts +2 -4
- package/types/auto-imports.d.ts +3 -10
- package/types/components.d.ts +16 -15
- package/types/menu.d.ts +2 -0
- package/types/module.d.ts +2 -15
- package/types/settings.d.ts +0 -8
- package/types/tabbar.d.ts +1 -0
- package/types/vue-router.d.ts +11 -7
- package/dist/HButton.vue_vue_type_script_setup_true_lang-CYAzn9Mg.js +0 -25
- package/dist/HDivider-DgXBhPr0.js +0 -21
- package/dist/HToggle-Cd71WKvG.js +0 -34
- package/dist/PreferencesContent-MR1Db7z7.js +0 -972
- package/dist/SettingPage-C1CT1Mm8.js +0 -29
- package/dist/SettingThemes-BJu9czNK.js +0 -144
- package/dist/_...all_-18BnHmEa.js +0 -52
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/api/helper.d.ts +0 -32
- package/dist/api/interface.d.ts +0 -14
- package/dist/api/request.d.ts +0 -2
- package/dist/api/system/app.d.ts +0 -17
- package/dist/config/index.d.ts +0 -1
- package/dist/context.d.ts +0 -14
- package/dist/create.d.ts +0 -3
- package/dist/directives/index.d.ts +0 -4
- package/dist/directives/plugins/permission.d.ts +0 -6
- package/dist/index-C1p_tY7i.js +0 -49
- package/dist/index-CCPTQYuB.js +0 -12910
- package/dist/index-CNUEMTao.js +0 -354
- package/dist/index-CmXo8ShY.js +0 -276
- package/dist/index-DL8Y7jFG.js +0 -137
- package/dist/index-DTQQt_XY.js +0 -10
- package/dist/index-Dj8zy7hH.js +0 -230
- package/dist/index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-BCo6Ft-Q.js +0 -2300
- package/dist/interface.d.ts +0 -29
- package/dist/locales/index.d.ts +0 -301
- package/dist/menu-CLiZ1BO_.js +0 -15315
- package/dist/pick-C9bU8_xv.js +0 -19
- package/dist/request.js +0 -1811
- package/dist/route/async.d.ts +0 -9
- package/dist/route/guard/auth.d.ts +0 -3
- package/dist/route/guard/basic.d.ts +0 -3
- package/dist/route/guard/index.d.ts +0 -3
- package/dist/route/guard/setting.d.ts +0 -3
- package/dist/route/index.d.ts +0 -7
- package/dist/route/routes.d.ts +0 -3
- package/dist/stores/index.d.ts +0 -5
- package/dist/stores/modules/user.d.ts +0 -4
- package/dist/stores/plugin/persist.d.ts +0 -5
- package/dist/stores/plugin/sideEffect/index.d.ts +0 -5
- package/dist/utils/crypto.d.ts +0 -4
- package/dist/utils/eventBus.d.ts +0 -5
- package/src/api/helper.ts +0 -64
- package/src/api/index.ts +0 -75
- package/src/api/interface.ts +0 -15
- package/src/api/request.ts +0 -4
- package/src/api/system/app.ts +0 -28
- package/src/assets/icons/add-child.svg +0 -1
- package/src/assets/icons/authority.svg +0 -1
- package/src/assets/icons/authorize.svg +0 -1
- package/src/assets/icons/blacklist-disable.svg +0 -1
- package/src/assets/icons/blacklist-enable.svg +0 -1
- package/src/assets/icons/browser-360.svg +0 -1
- package/src/assets/icons/browser-chrome.svg +0 -1
- package/src/assets/icons/browser-edge.svg +0 -1
- package/src/assets/icons/browser-ie.svg +0 -1
- package/src/assets/icons/browser-other.svg +0 -1
- package/src/assets/icons/browser-qq.svg +0 -1
- package/src/assets/icons/browser-safari.svg +0 -1
- package/src/assets/icons/browser-uc.svg +0 -1
- package/src/assets/icons/edit.svg +0 -1
- package/src/assets/icons/empty-data.svg +0 -1
- package/src/assets/icons/icard.svg +0 -1
- package/src/assets/icons/icon_animation.svg +0 -1
- package/src/assets/icons/icon_breadcrumb.svg +0 -1
- package/src/assets/icons/icon_copyright.svg +0 -1
- package/src/assets/icons/icon_jt.svg +0 -1
- package/src/assets/icons/icon_layout.svg +0 -1
- package/src/assets/icons/icon_mainpage.svg +0 -1
- package/src/assets/icons/icon_menu.svg +0 -1
- package/src/assets/icons/icon_page_size.svg +0 -1
- package/src/assets/icons/icon_position_type.svg +0 -1
- package/src/assets/icons/icon_safe_manage.svg +0 -1
- package/src/assets/icons/icon_screen_scale.svg +0 -6
- package/src/assets/icons/icon_system_manage.svg +0 -1
- package/src/assets/icons/icon_tabbar.svg +0 -1
- package/src/assets/icons/icon_toolbar.svg +0 -1
- package/src/assets/icons/icon_topbar.svg +0 -1
- package/src/assets/icons/icon_watermark.svg +0 -1
- package/src/assets/icons/image-load-fail.svg +0 -1
- package/src/assets/icons/log-center.svg +0 -1
- package/src/assets/icons/logo-sig.svg +0 -1
- package/src/assets/icons/not-data.svg +0 -1
- package/src/assets/icons/org-main.svg +0 -1
- package/src/assets/icons/org-unmain.svg +0 -1
- package/src/assets/icons/process-management.svg +0 -1
- package/src/assets/icons/project-management.svg +0 -1
- package/src/assets/icons/rbac.svg +0 -1
- package/src/assets/icons/remove.svg +0 -1
- package/src/assets/icons/resource-app.svg +0 -1
- package/src/assets/icons/resource-btn.svg +0 -1
- package/src/assets/icons/resource-index.svg +0 -1
- package/src/assets/icons/resource-menu.svg +0 -1
- package/src/assets/icons/resource-nonmenu.svg +0 -1
- package/src/assets/icons/setting-manage.svg +0 -1
- package/src/assets/icons/test.svg +0 -1
- package/src/assets/icons/theme-check-mark.svg +0 -1
- package/src/assets/icons/theme-title.svg +0 -1
- package/src/assets/icons/tree_icon.svg +0 -1
- package/src/assets/icons/tree_icon_checked.svg +0 -1
- package/src/assets/icons/view.svg +0 -1
- package/src/assets/icons/workbench.svg +0 -1
- package/src/assets/icons/zddata.svg +0 -1
- package/src/assets/icons/zy_checked.svg +0 -1
- package/src/assets/icons/zy_default.svg +0 -1
- package/src/assets/images/layout/item1.webp +0 -0
- package/src/assets/images/layout/item1_dark.webp +0 -0
- package/src/assets/images/layout/item2.webp +0 -0
- package/src/assets/images/layout/item2_dark.webp +0 -0
- package/src/assets/images/layout/item3.webp +0 -0
- package/src/assets/images/layout/item3_dark.webp +0 -0
- package/src/assets/images/layout/item4.webp +0 -0
- package/src/assets/images/layout/item4_dark.webp +0 -0
- package/src/assets/images/layout/item5.webp +0 -0
- package/src/assets/images/layout/item5_dark.webp +0 -0
- package/src/assets/images/page-width/anto_min_w_dark.webp +0 -0
- package/src/assets/images/page-width/auto.webp +0 -0
- package/src/assets/images/page-width/auto_dark.webp +0 -0
- package/src/assets/images/page-width/auto_min_w.webp +0 -0
- package/src/assets/images/page-width/auto_min_w_dark.webp +0 -0
- package/src/assets/images/page-width/icon_auto.webp +0 -0
- package/src/assets/images/page-width/icon_auto_dark.webp +0 -0
- package/src/assets/images/page-width/icon_auto_min_w.webp +0 -0
- package/src/assets/images/page-width/icon_auto_min_w_dark.webp +0 -0
- package/src/assets/images/page-width/icon_middle.webp +0 -0
- package/src/assets/images/page-width/icon_middle_dark.webp +0 -0
- package/src/assets/images/page-width/icon_middle_max_w.webp +0 -0
- package/src/assets/images/page-width/icon_middle_max_w_dark.webp +0 -0
- package/src/assets/images/page-width/middle.webp +0 -0
- package/src/assets/images/page-width/middle_dark.webp +0 -0
- package/src/assets/images/page-width/middle_max_w.webp +0 -0
- package/src/assets/images/page-width/middle_max_w_dark.webp +0 -0
- 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
- package/src/components/PubinfoIcon/index.vue +0 -85
- package/src/config/index.ts +0 -1
- package/src/context.ts +0 -30
- package/src/create.ts +0 -88
- package/src/directives/index.ts +0 -6
- package/src/interface.ts +0 -35
- package/src/layout/Layout.vue +0 -330
- package/src/layout/components/Content/index.vue +0 -100
- package/src/layout/components/Header/TopMode/NotCursor.vue +0 -77
- package/src/layout/components/Header/index.vue +0 -263
- package/src/layout/components/SettingBar/components/SettingEnableTransition.vue +0 -215
- package/src/layout/components/SettingBar/components/SettingMode.vue +0 -164
- package/src/layout/components/SettingBar/index.vue +0 -112
- package/src/layout/components/Tools/Breadcrumb/index.vue +0 -21
- package/src/layout/components/Tools/DayNightSwitch.vue +0 -93
- package/src/layout/components/Tools/I18nSelector.vue +0 -52
- package/src/layout/ui-kit/HDivider.vue +0 -53
- package/src/layout/ui-kit/HToggle.vue +0 -177
- package/src/pages/system/change-password/page.vue +0 -58
- package/src/pages/system/index.vue +0 -5
- package/src/route/async.ts +0 -18
- package/src/route/guard/basic.ts +0 -23
- package/src/route/guard/index.ts +0 -3
- package/src/route/index.ts +0 -12
- package/src/route/routes.ts +0 -101
- package/src/stores/index.ts +0 -10
- package/src/stores/plugin/persist.ts +0 -27
- package/src/stores/plugin/sideEffect/index.ts +0 -15
- package/src/utils/eventBus.ts +0 -15
- package/dist/{api/enum/code.d.ts → built-in/authentication/enum.d.ts} +0 -0
- package/dist/{components/NotAllowed → built-in/authentication/pages/change-organization}/index.vue.d.ts +0 -0
- package/dist/{pages/system → built-in/authentication/pages}/change-password/components/ChangePasswordForm/index.vue.d.ts +0 -0
- package/dist/{pages/system → built-in/authentication/pages}/change-password/index.vue.d.ts +0 -0
- package/dist/{layout/components/Topbar/Toolbar → built-in/authorization/pages/not-permission}/index.vue.d.ts +0 -0
- package/dist/{components/PubinfoApp → built-in/layout-component/components/BackTop}/index.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Content/IframeView.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Content/LinkView.vue.d.ts +0 -0
- package/dist/{layout/components/BackTop → built-in/layout-component/components/Content}/index.vue.d.ts +0 -0
- package/dist/{layout/components/Content → built-in/layout-component/components/Copyright}/index.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Header/TopMode/index.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Header/TopThinMode.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Header/index.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Logo/index.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Menu/index.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Menu/item.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/SettingBar/AppSetting.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/SettingBar/components/DayNightToggle.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingBreadcrumb.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingCopyright.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingEnableTransition.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingHome.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingMenu.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingMode.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingNavSearch.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingOther.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingPage.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingTabbar.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingThemes.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingToolbar.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingTopbar.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingWidthMode.vue.d.ts +0 -0
- package/dist/{layout/components/Copyright → built-in/layout-component/components/SettingBar}/index.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Sidebar/MainSidebar.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Sidebar/SubSidebar.vue.d.ts +0 -0
- package/dist/{layout/components/SettingBar → built-in/layout-component/components/Sidebar}/index.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Tools/Breadcrumb/index.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Tools/Breadcrumb/item.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Tools/DayNightSwitch.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Tools/HotkeysIntro.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Tools/Preferences/PreferencesContent.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Tools/Preferences/index.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Topbar/Tabbar/index.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Topbar/Toolbar/Favorites.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Topbar/Toolbar/Star.vue.d.ts +0 -0
- package/dist/{layout/components/Topbar → built-in/layout-component/components/Topbar/Toolbar}/index.vue.d.ts +0 -0
- package/dist/{pages/personal/profile → built-in/layout-component/components/Topbar}/index.vue.d.ts +0 -0
- package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HBadge.vue.d.ts +0 -0
- package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HButton.vue.d.ts +1 -1
- package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HCheckList.vue.d.ts +2 -2
- package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HDivider.vue.d.ts +0 -0
- package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HDropdown.vue.d.ts +0 -0
- package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HDropdownMenu.vue.d.ts +0 -0
- package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HDropdownTree.vue.d.ts +0 -0
- package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HInput.vue.d.ts +0 -0
- package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HKbd.vue.d.ts +0 -0
- package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HSelect.vue.d.ts +0 -0
- package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HToggle.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/composables/useGetComputedStyle.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/composables/useMainPage.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/composables/useTabbar.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/composables/useTitle.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/composables/useViewTransition.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/composables/useWatermark.d.ts +0 -0
- package/dist/{pages/system/change-organization → built-in/layout-component/pages/reload}/index.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/provider.d.ts +0 -0
- package/dist/{utils → built-in/layout-component/utils}/injectionKeys.d.ts +0 -0
- package/dist/{locales → built-in/locales}/lang/en.json.d.ts +0 -0
- package/dist/{locales → built-in/locales}/lang/zh-cn.json.d.ts +0 -0
- package/dist/{locales → built-in/locales}/lang/zh-tw.json.d.ts +0 -0
- package/dist/{locales → built-in/locales}/ui.d.ts +0 -0
- package/dist/{stores → built-in/pinia-plugin}/helper.d.ts +0 -0
- package/dist/{stores/plugin/sideEffect → built-in/pinia-plugin/plugins}/cleanup.d.ts +0 -0
- package/dist/{stores/plugin/sideEffect → built-in/pinia-plugin/plugins}/favoritesStorage.d.ts +0 -0
- package/dist/{stores/plugin/sideEffect → built-in/pinia-plugin/plugins}/iframeCache.d.ts +0 -0
- package/dist/{stores/plugin/sideEffect → built-in/pinia-plugin/plugins}/tabbarStorage.d.ts +0 -0
- package/dist/{utils → core}/utils.d.ts +0 -0
- package/dist/{api → features/api}/modules/auth/index.d.ts +0 -0
- package/dist/{api → features/api}/modules/configData/heibaimingdanfuwu.d.ts +0 -0
- package/dist/{api → features/api}/modules/configData/xitongpeizhifuwu.d.ts +0 -0
- package/dist/{api/modules/configData/zidianfuwu.d.ts → features/api/modules/configData/zidifuwu.d.ts} +0 -0
- package/dist/{api → features/api}/modules/rbac/gangweijiekou.d.ts +0 -0
- package/dist/{api → features/api}/modules/rbac/index.d.ts +0 -0
- package/dist/{api → features/api}/modules/rbac/jiaosejiekou.d.ts +0 -0
- package/dist/{api → features/api}/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +0 -0
- package/dist/{api → features/api}/modules/rbac/yonghujiekou.d.ts +0 -0
- package/dist/{api → features/api}/modules/rbac/yonghushoucangbiaojiekou.d.ts +0 -0
- package/dist/{api → features/api}/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +0 -0
- package/dist/{api → features/api}/modules/rbac/zuhuguanlijiekou.d.ts +0 -0
- package/dist/{api → features/api}/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +0 -0
- package/dist/{api → features/api}/modules/rbac/zuzhijiekou.d.ts +0 -0
- package/dist/{api → features/api}/system/user.d.ts +0 -0
- package/dist/{pages/system → features/components/MicroAppContainer}/index.vue.d.ts +0 -0
- package/dist/{pages/system/not-permission → features/components/NotAllowed}/index.vue.d.ts +0 -0
- package/dist/{components → features/components}/PageHeader/index.vue.d.ts +0 -0
- package/dist/{components → features/components}/PageMain/index.vue.d.ts +0 -0
- package/dist/{components → features/components}/PassStrengthValidator/index.vue.d.ts +2 -2
- package/dist/{components → features/components}/PassStrengthValidator/rule.vue.d.ts +0 -0
- package/dist/{layout/components/Sidebar → features/components/PubinfoApp}/index.vue.d.ts +0 -0
- package/dist/{components → features/components}/PubinfoIcon/index.vue.d.ts +0 -0
- package/dist/{components → features/components}/PubinfoProvider/index.d.ts +0 -0
- package/dist/{components → features/components}/index.d.ts +0 -0
- package/dist/{composables → features/composables}/index.d.ts +0 -0
- package/dist/{composables → features/composables}/log.d.ts +0 -0
- package/dist/{composables → features/composables}/theme.d.ts +0 -0
- package/dist/{composables → features/composables}/watchDiff.d.ts +0 -0
- package/dist/{pages/system/[...all].vue.d.ts → features/pages/not-found/index.vue.d.ts} +0 -0
- package/dist/{pages/system/reload.vue.d.ts → features/pages/profile/index.vue.d.ts} +0 -0
- package/dist/{config/settings.d.ts → features/settings/index.d.ts} +0 -0
- package/dist/{stores/enum/index.d.ts → features/stores/enum.d.ts} +0 -0
- package/dist/{stores → features/stores}/modules/iframe.d.ts +0 -0
- package/dist/{stores → features/stores}/modules/index.d.ts +0 -0
- package/dist/{stores → features/stores}/modules/keepAlive.d.ts +0 -0
- package/dist/{stores → features/stores}/modules/menu.d.ts +0 -0
- package/dist/{stores → features/stores}/modules/settings.d.ts +0 -0
- package/src/{api/enum/code.ts → built-in/authentication/enum.ts} +0 -0
- package/src/{assets/icons → built-in/authentication/pages/change-organization/assets}/change-org.svg +0 -0
- package/src/{assets/images → built-in/authentication/pages/change-organization/assets}/login-small.png +0 -0
- package/src/{assets/images → built-in/authentication/pages/change-organization/assets}/login-small_dark.webp +0 -0
- package/src/{assets/icons → built-in/authentication/pages/change-password/assets}/mima.svg +0 -0
- package/src/{assets/icons → built-in/authorization/pages/not-permission}/403.svg +0 -0
- package/src/{assets/icons → built-in/authorization/pages/not-permission}/403_dark.svg +0 -0
- package/src/{assets → built-in/layout-component/assets}/icons/favorites.svg +0 -0
- package/src/{assets → built-in/layout-component/assets}/icons/toolbar-collapse.svg +0 -0
- package/src/{assets → built-in/layout-component/assets}/images/not-cursor.png +0 -0
- package/src/{layout → built-in/layout-component}/components/BackTop/index.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/Header/TopThinMode.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/Menu/sub.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingBreadcrumb.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingCopyright.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingHome.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingMenu.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingNavSearch.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingOther.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingPage.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingTabbar.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingToolbar.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingTopbar.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/Sidebar/index.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/Tools/Breadcrumb/item.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/Tools/HotkeysIntro.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/Tools/Preferences/index.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/Topbar/Toolbar/Star.vue +0 -0
- package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HBadge.vue +0 -0
- package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HButton.vue +0 -0
- package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HDropdown.vue +0 -0
- package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HInput.vue +0 -0
- package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HKbd.vue +0 -0
- package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HSelect.vue +0 -0
- package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HTabList.vue +0 -0
- package/src/{layout → built-in/layout-component}/composables/useViewTransition.ts +0 -0
- package/src/{pages/system/reload.vue → built-in/layout-component/pages/reload/index.vue} +0 -0
- package/src/{utils → built-in/layout-component/utils}/injectionKeys.ts +0 -0
- package/src/{locales → built-in/locales}/lang/en.json +0 -0
- package/src/{locales → built-in/locales}/lang/zh-cn.json +0 -0
- package/src/{locales → built-in/locales}/lang/zh-tw.json +0 -0
- package/src/{locales → built-in/locales}/ui.ts +0 -0
- package/src/{utils → core}/utils.ts +0 -0
- package/src/{api → features/api}/modules/auth/index.ts +0 -0
- package/src/{api → features/api}/modules/rbac/index.ts +0 -0
- package/src/{api → features/api}/system/typings.d.ts +0 -0
- package/src/{assets → features/assets}/fonts/digital-7/digital-7-webfont.eot +0 -0
- package/src/{assets → features/assets}/fonts/digital-7/digital-7-webfont.svg +0 -0
- package/src/{assets → features/assets}/fonts/digital-7/digital-7-webfont.woff +0 -0
- package/src/{assets → features/assets}/fonts/digital-7/digital-7-webfont.woff2 +0 -0
- package/src/{assets → features/assets}/fonts/digital-7/stylesheet.css +0 -0
- package/src/{assets → features/assets}/fonts/digital-7_mono/digital-7_mono-webfont.eot +0 -0
- package/src/{assets → features/assets}/fonts/digital-7_mono/digital-7_mono-webfont.svg +0 -0
- package/src/{assets → features/assets}/fonts/digital-7_mono/digital-7_mono-webfont.woff +0 -0
- package/src/{assets → features/assets}/fonts/digital-7_mono/digital-7_mono-webfont.woff2 +0 -0
- package/src/{assets → features/assets}/fonts/digital-7_mono/stylesheet.css +0 -0
- package/src/{assets → features/assets}/fonts/title.otf +0 -0
- package/src/{assets → features/assets}/images/change-org-bc.webp +0 -0
- package/src/{assets → features/assets}/images/header-bg.png +0 -0
- package/src/{assets → features/assets}/images/logo.png +0 -0
- package/src/{assets → features/assets}/images/org.svg +0 -0
- package/src/{assets → features/assets}/images/slider-bg.png +0 -0
- package/src/{components → features/components}/PageHeader/index.vue +0 -0
- package/src/{components → features/components}/PageMain/index.vue +0 -0
- package/src/{components → features/components}/index.ts +0 -0
- package/src/{composables → features/composables}/index.ts +0 -0
- package/src/{composables → features/composables}/log.ts +0 -0
- package/src/{assets/icons → features/pages/not-found/assets}/404.svg +0 -0
- package/src/{assets/icons → features/pages/not-found/assets}/404_dark.svg +0 -0
- package/src/{stores → features/stores}/modules/favorites.ts +1 -1
- /package/src/{stores → features/stores}/modules/iframe.ts +0 -0
- /package/src/{stores → features/stores}/modules/index.ts +0 -0
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
import { Primitive } from 'type-fest';
|
|
2
|
-
type ConditionalExceptType<T extends Record<PropertyKey, any>, Type> = {
|
|
3
|
-
[P in keyof T]: Exclude<T[P], Type>;
|
|
4
|
-
};
|
|
5
|
-
export declare function resolveRoutePath(basePath?: string, routePath?: string): string;
|
|
6
|
-
export declare function normalizePrimitiveToFunction<T extends Record<PropertyKey, any>>(options: T): ConditionalExceptType<T, Primitive>;
|
|
7
|
-
export declare function objectToPaths(obj: Record<string, any>, prefix?: string): string[];
|
|
8
1
|
export * from './cleanup';
|
|
9
|
-
export * from './
|
|
10
|
-
export
|
|
11
|
-
export * from './
|
|
12
|
-
export {
|
|
13
|
-
export * from './utils';
|
|
14
|
-
export { default as watermark } from './watermark';
|
|
2
|
+
export * from './path';
|
|
3
|
+
export * from './proxy';
|
|
4
|
+
export * from './storage';
|
|
5
|
+
export { createContext } from 'unctx';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function resolveRoutePath(basePath?: string, routePath?: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function wrapProxy<T extends Record<K, any>, K extends keyof T>(fn: () => T, key: K): T[K];
|
package/dist/utils/storage.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const storage: {
|
|
1
|
+
export declare const storage: {
|
|
2
2
|
local: {
|
|
3
3
|
has: (key: string) => boolean;
|
|
4
4
|
get: (key: string) => string | null;
|
|
@@ -18,4 +18,3 @@ declare const storage: {
|
|
|
18
18
|
setItem: (key: string, value: string) => void;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
|
-
export default storage;
|
package/package.json
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pubinfo/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.0-
|
|
4
|
+
"version": "2.0.0-rc.1",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"default": "./dist/index.js"
|
|
9
9
|
},
|
|
10
|
-
"./request": {
|
|
11
|
-
"types": "./dist/api/index.d.ts",
|
|
12
|
-
"default": "./dist/request.js"
|
|
13
|
-
},
|
|
14
10
|
"./style.css": "./dist/style.css",
|
|
15
|
-
"./types": "./
|
|
11
|
+
"./types": "./dist/index.d.ts"
|
|
16
12
|
},
|
|
17
13
|
"main": "./dist/index.js",
|
|
18
14
|
"module": "./dist/index.js",
|
|
@@ -23,45 +19,47 @@
|
|
|
23
19
|
"types"
|
|
24
20
|
],
|
|
25
21
|
"peerDependencies": {
|
|
26
|
-
"alova": "^3.
|
|
27
|
-
"pinia": "^
|
|
28
|
-
"vue": "^3.5.
|
|
29
|
-
"vue-i18n": "^10.0.
|
|
30
|
-
"vue-router": "^4.5.
|
|
31
|
-
"@pubinfo/config": "2.0.0-
|
|
22
|
+
"alova": "^3.3.4",
|
|
23
|
+
"pinia": "^3.0.3",
|
|
24
|
+
"vue": "^3.5.17",
|
|
25
|
+
"vue-i18n": "^10.0.7",
|
|
26
|
+
"vue-router": "^4.5.1",
|
|
27
|
+
"@pubinfo/config": "2.0.0-rc.1",
|
|
28
|
+
"@pubinfo/vite": "2.0.0-rc.1"
|
|
32
29
|
},
|
|
33
30
|
"dependencies": {
|
|
34
|
-
"@alova/adapter-axios": "^2.0.
|
|
31
|
+
"@alova/adapter-axios": "^2.0.16",
|
|
35
32
|
"@ant-design/icons-vue": "^7.0.1",
|
|
36
33
|
"@headlessui/vue": "^1.7.23",
|
|
37
|
-
"@imengyu/vue3-context-menu": "^1.
|
|
38
|
-
"@pubinfo/pro-components": "^1.7.
|
|
39
|
-
"@unocss/reset": "^
|
|
40
|
-
"@vueuse/core": "^
|
|
41
|
-
"@vueuse/integrations": "^
|
|
34
|
+
"@imengyu/vue3-context-menu": "^1.5.1",
|
|
35
|
+
"@pubinfo/pro-components": "^1.7.1",
|
|
36
|
+
"@unocss/reset": "^66.4.2",
|
|
37
|
+
"@vueuse/core": "^13.5.0",
|
|
38
|
+
"@vueuse/integrations": "^13.5.0",
|
|
42
39
|
"ant-design-vue": "^4.2.6",
|
|
43
|
-
"axios": "^1.
|
|
44
|
-
"consola": "^3.4.
|
|
40
|
+
"axios": "^1.10.0",
|
|
41
|
+
"consola": "^3.4.2",
|
|
45
42
|
"floating-vue": "5.2.2",
|
|
46
43
|
"hookable": "^5.5.3",
|
|
47
|
-
"hotkeys-js": "^3.13.
|
|
44
|
+
"hotkeys-js": "^3.13.14",
|
|
48
45
|
"jsencrypt": "^3.3.2",
|
|
49
46
|
"lodash-es": "^4.17.21",
|
|
50
47
|
"md5": "^2.3.0",
|
|
51
48
|
"mitt": "^3.0.1",
|
|
52
49
|
"nprogress": "^0.2.0",
|
|
53
|
-
"overlayscrollbars": "^2.11.
|
|
50
|
+
"overlayscrollbars": "^2.11.4",
|
|
54
51
|
"overlayscrollbars-vue": "^0.5.9",
|
|
55
52
|
"path-browserify": "^1.0.1",
|
|
56
|
-
"path-to-regexp": "^
|
|
57
|
-
"pinia-plugin-persistedstate": "^
|
|
53
|
+
"path-to-regexp": "^8.2.0",
|
|
54
|
+
"pinia-plugin-persistedstate": "^4.4.1",
|
|
58
55
|
"sortablejs": "^1.15.6",
|
|
56
|
+
"unctx": "^2.4.1",
|
|
59
57
|
"vue-m-message": "^4.0.2",
|
|
60
58
|
"zxcvbn": "^4.4.2"
|
|
61
59
|
},
|
|
62
60
|
"devDependencies": {
|
|
63
|
-
"@iconify/json": "^2.2.
|
|
64
|
-
"@iconify/vue": "^
|
|
61
|
+
"@iconify/json": "^2.2.354",
|
|
62
|
+
"@iconify/vue": "^5.0.0",
|
|
65
63
|
"@pubinfo/openapi": "^0.8.4",
|
|
66
64
|
"@pubinfo/preset-openapi": "^0.8.4",
|
|
67
65
|
"@types/lodash-es": "^4.17.12",
|
|
@@ -70,25 +68,25 @@
|
|
|
70
68
|
"@types/path-browserify": "^1.0.3",
|
|
71
69
|
"@types/sortablejs": "^1.15.8",
|
|
72
70
|
"@types/zxcvbn": "^4.4.5",
|
|
73
|
-
"@vitejs/plugin-vue": "^
|
|
74
|
-
"@vitejs/plugin-vue-jsx": "^
|
|
75
|
-
"alova": "^3.
|
|
76
|
-
"pinia": "^
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"unplugin-
|
|
81
|
-
"unplugin-
|
|
82
|
-
"
|
|
83
|
-
"vite": "^
|
|
84
|
-
"
|
|
85
|
-
"vue": "^
|
|
86
|
-
"vue-
|
|
87
|
-
"
|
|
88
|
-
"@pubinfo/
|
|
71
|
+
"@vitejs/plugin-vue": "^6.0.0",
|
|
72
|
+
"@vitejs/plugin-vue-jsx": "^5.0.1",
|
|
73
|
+
"alova": "^3.3.4",
|
|
74
|
+
"pinia": "^3.0.3",
|
|
75
|
+
"type-fest": "^4.41.0",
|
|
76
|
+
"unocss": "^66.4.2",
|
|
77
|
+
"unplugin-auto-import": "^20.0.0",
|
|
78
|
+
"unplugin-icons": "^22.2.0",
|
|
79
|
+
"unplugin-vue-components": "^29.0.0",
|
|
80
|
+
"vite": "^7.1.2",
|
|
81
|
+
"vite-plugin-dts": "^4.5.4",
|
|
82
|
+
"vue": "^3.5.17",
|
|
83
|
+
"vue-i18n": "^10.0.7",
|
|
84
|
+
"vue-router": "^4.5.1",
|
|
85
|
+
"@pubinfo/config": "2.0.0-rc.1",
|
|
86
|
+
"@pubinfo/vite": "2.0.0-rc.1"
|
|
89
87
|
},
|
|
90
88
|
"scripts": {
|
|
91
|
-
"dev": "vite build -w -m watch",
|
|
89
|
+
"dev": "vite build -w -m watch --sourcemap",
|
|
92
90
|
"build": "vite build",
|
|
93
91
|
"openapi": "pnpx @pubinfo/openapi generate"
|
|
94
92
|
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { axiosRequestAdapter } from '@alova/adapter-axios';
|
|
2
|
+
import type VueHook from 'alova/vue';
|
|
3
|
+
import type { AxiosResponse } from 'axios';
|
|
4
|
+
import type { RequestResult } from './interface';
|
|
5
|
+
import { createServerTokenAuthentication } from 'alova/client';
|
|
6
|
+
import { postAuthTokenRefresh } from '@/features/api/modules/auth';
|
|
7
|
+
import { useUserStore } from '@/features/stores';
|
|
8
|
+
import { RESPONSE_CODE } from './enum';
|
|
9
|
+
|
|
10
|
+
export function createTokenAuthentication() {
|
|
11
|
+
return createServerTokenAuthentication<typeof VueHook, typeof axiosRequestAdapter>({
|
|
12
|
+
/**
|
|
13
|
+
* 给权限接口添加Authorization
|
|
14
|
+
*/
|
|
15
|
+
assignToken: (method) => {
|
|
16
|
+
const userStore = useUserStore();
|
|
17
|
+
|
|
18
|
+
// 根据用户登录状态,可能设置请求头中的令牌。
|
|
19
|
+
if (userStore.isLogin) {
|
|
20
|
+
method.config.headers.Authorization = userStore.user.token;
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* 鉴权处理
|
|
26
|
+
*/
|
|
27
|
+
refreshTokenOnSuccess: {
|
|
28
|
+
/**
|
|
29
|
+
* 检测token是否过期
|
|
30
|
+
* @returns 是否token过期
|
|
31
|
+
*/
|
|
32
|
+
isExpired: (response: AxiosResponse<RequestResult>) => {
|
|
33
|
+
// 检查提供的代码是否表示过期的访问令牌。
|
|
34
|
+
return response.data.code === RESPONSE_CODE.ACCESS_TOKEN_INVALID;
|
|
35
|
+
},
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* 当token过期时触发,在此函数中触发刷新token
|
|
39
|
+
*/
|
|
40
|
+
handler: async () => {
|
|
41
|
+
const userStore = useUserStore();
|
|
42
|
+
|
|
43
|
+
// 刷新token
|
|
44
|
+
const res = await postAuthTokenRefresh(
|
|
45
|
+
{ refreshToken: userStore.user.refreshToken },
|
|
46
|
+
{ meta: { authRole: 'refreshToken' } },
|
|
47
|
+
);
|
|
48
|
+
const { accessToken, refreshToken } = res.data as Required<API.LoginTokenVo>;
|
|
49
|
+
|
|
50
|
+
// 设置访问令牌和刷新令牌到本地存储和用户存储中。
|
|
51
|
+
userStore.setToken(accessToken, refreshToken);
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { ModuleOptions } from '@/core';
|
|
2
|
+
// import { createTokenAuthentication } from './helper';
|
|
3
|
+
import { createRouterGuard } from './router';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 身份认证 (用户级拦截)
|
|
7
|
+
*
|
|
8
|
+
* 双 token 校验,确认用户身份,注册修改密码和切换组织页面
|
|
9
|
+
*/
|
|
10
|
+
export function Authentication(): ModuleOptions {
|
|
11
|
+
// TODO 以 hooks 的形式注册 alova 的 Token 认证拦截器,
|
|
12
|
+
// Token 过期时的请求,在刷新完 Token 后虽然会重新请求,但是过期请求还是会继续抛出错误。
|
|
13
|
+
// 若是用如下形式注册,则没有问题:
|
|
14
|
+
// const alova = createAlova({
|
|
15
|
+
// beforeRequest: onAuthRequired(method => {
|
|
16
|
+
// }),
|
|
17
|
+
// responded: onResponseRefreshToken({
|
|
18
|
+
// onSuccess(response, method) {
|
|
19
|
+
// },
|
|
20
|
+
// onError(error, method) {
|
|
21
|
+
// },
|
|
22
|
+
// })
|
|
23
|
+
// });
|
|
24
|
+
|
|
25
|
+
// const { onAuthRequired, onResponseRefreshToken } = createTokenAuthentication();
|
|
26
|
+
|
|
27
|
+
return {
|
|
28
|
+
name: 'built-in:authentication',
|
|
29
|
+
setup(ctx) {
|
|
30
|
+
const { router } = ctx;
|
|
31
|
+
createRouterGuard(router);
|
|
32
|
+
},
|
|
33
|
+
// hooks: {
|
|
34
|
+
// 'http:request': onAuthRequired(),
|
|
35
|
+
// 'http:response': onResponseRefreshToken(),
|
|
36
|
+
// },
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { RESPONSE_CODE } from './enum';
|
|
41
|
+
export { createTokenAuthentication } from './helper';
|
|
42
|
+
export * from './interface';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { PubinfoIcon } from '@/components';
|
|
3
|
-
import { useUserStore } from '@/stores';
|
|
4
2
|
import { message } from 'ant-design-vue';
|
|
3
|
+
import { PubinfoIcon } from '@/features/components';
|
|
4
|
+
import { useUserStore } from '@/features/stores';
|
|
5
5
|
|
|
6
6
|
defineOptions({
|
|
7
7
|
name: 'ChangeOrganization',
|
|
@@ -11,7 +11,7 @@ const userStore = useUserStore();
|
|
|
11
11
|
const router = useRouter();
|
|
12
12
|
|
|
13
13
|
// 切断响应式,否则组织清楚后会导致页面闪烁
|
|
14
|
-
const rawOrganization = toRaw(userStore.orgList);
|
|
14
|
+
const rawOrganization = toRaw(userStore.user.orgList);
|
|
15
15
|
const orgList = computed(() => {
|
|
16
16
|
const org = rawOrganization.map((item) => {
|
|
17
17
|
return {
|
|
@@ -37,7 +37,7 @@ async function changeOrganization() {
|
|
|
37
37
|
const org = orgList.value[activeIndex.value];
|
|
38
38
|
const orgId = org?.orgId;
|
|
39
39
|
if (orgId) {
|
|
40
|
-
if (orgId === userStore.orgId) {
|
|
40
|
+
if (orgId === userStore.user.orgId) {
|
|
41
41
|
message.error('请避免切换到当前已选组织');
|
|
42
42
|
}
|
|
43
43
|
else {
|
|
@@ -72,7 +72,7 @@ async function changeOrganization() {
|
|
|
72
72
|
<div v-for="(item, index) in orgList" :key="index" @click="setActive(index)">
|
|
73
73
|
<div class="org-item" :class="{ active: index === activeIndex }">
|
|
74
74
|
<div flex="~" h-full>
|
|
75
|
-
<
|
|
75
|
+
<img src="./assets/change-org.svg" class="size-[48px]" alt="">
|
|
76
76
|
<div
|
|
77
77
|
flex="~ col"
|
|
78
78
|
h-full
|
|
@@ -83,7 +83,7 @@ async function changeOrganization() {
|
|
|
83
83
|
<span mr-10px>
|
|
84
84
|
{{ item.label }}
|
|
85
85
|
</span>
|
|
86
|
-
<a-tag v-if="userStore.orgId === item.orgId" color="blue">
|
|
86
|
+
<a-tag v-if="userStore.user.orgId === item.orgId" color="blue">
|
|
87
87
|
当前使用组织
|
|
88
88
|
</a-tag>
|
|
89
89
|
<a-tag v-if="item.main" color="red">
|
|
@@ -125,50 +125,36 @@ async function changeOrganization() {
|
|
|
125
125
|
</div>
|
|
126
126
|
</template>
|
|
127
127
|
|
|
128
|
-
<style
|
|
128
|
+
<style scoped>
|
|
129
129
|
.change-org {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
background: url("@/assets/images/login-small.png") no-repeat 50%;
|
|
130
|
+
--at-apply: size-full;
|
|
131
|
+
background: url("./assets/login-small.png") no-repeat 50%;
|
|
133
132
|
background-size: cover;
|
|
133
|
+
}
|
|
134
134
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
height: 91px;
|
|
142
|
-
padding: 22px 32px;
|
|
143
|
-
margin-bottom: 15px;
|
|
144
|
-
overflow: hidden;
|
|
145
|
-
color: #86909c;
|
|
146
|
-
cursor: pointer;
|
|
147
|
-
background: #fff;
|
|
148
|
-
border: 1px solid #f2f3f5;
|
|
149
|
-
border-radius: 8px;
|
|
135
|
+
.change-org .org-item {
|
|
136
|
+
--at-apply: box-border flex items-center justify-between w-full h-[91px]
|
|
137
|
+
overflow-hidden text-[#86909c] cursor-pointer border mb-[15px] px-8
|
|
138
|
+
py-[22px] rounded-lg border-solid border-[#f2f3f5];
|
|
139
|
+
background: #fff;
|
|
140
|
+
}
|
|
150
141
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
border-color: #1677ff;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
142
|
+
.change-org .org-item.active {
|
|
143
|
+
--at-apply: bg-[#1677FF] bg-op-10 border-[#1677ff];
|
|
156
144
|
}
|
|
157
145
|
|
|
158
|
-
[data-theme="dark"] {
|
|
159
|
-
.
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
}
|
|
146
|
+
[data-theme="dark"] .change-org {
|
|
147
|
+
background: url("./assets/login-small_dark.webp") no-repeat 50%;
|
|
148
|
+
background-size: cover;
|
|
149
|
+
}
|
|
163
150
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
151
|
+
[data-theme="dark"] .org-item {
|
|
152
|
+
background: #2c2c2c;
|
|
153
|
+
border: 1px solid #2c2c2c;
|
|
154
|
+
}
|
|
167
155
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}
|
|
172
|
-
}
|
|
156
|
+
[data-theme="dark"] .org-item.active {
|
|
157
|
+
background: rgb(20 20 20 / 60%);
|
|
158
|
+
border-color: #1668dc;
|
|
173
159
|
}
|
|
174
160
|
</style>
|
|
Binary file
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { FormInstance, Rule } from 'ant-design-vue/es/form';
|
|
3
3
|
import type { RouteParamValue } from 'vue-router';
|
|
4
|
-
import { useUserStore } from '@/stores';
|
|
5
4
|
import { message } from 'ant-design-vue';
|
|
6
5
|
import { delay } from 'lodash-es';
|
|
6
|
+
import { useUserStore } from '@/features/stores';
|
|
7
7
|
|
|
8
8
|
defineOptions({
|
|
9
9
|
name: 'ChangePasswordForm',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { PassStrengthValidator
|
|
2
|
+
import { PassStrengthValidator } from '@/features/components';
|
|
3
3
|
import ChangePasswordForm from './components/ChangePasswordForm/index.vue';
|
|
4
4
|
|
|
5
5
|
defineOptions({
|
|
@@ -45,11 +45,7 @@ const isValidate = ref(false);
|
|
|
45
45
|
rounded="50%"
|
|
46
46
|
mb-15px
|
|
47
47
|
>
|
|
48
|
-
<
|
|
49
|
-
name="mima"
|
|
50
|
-
color="transparent"
|
|
51
|
-
:size="88"
|
|
52
|
-
/>
|
|
48
|
+
<img src="./assets/mima.svg" class="size-[88px]" alt="">
|
|
53
49
|
</div>
|
|
54
50
|
<span text="18px" font="bold">
|
|
55
51
|
更改密码
|
|
@@ -62,41 +58,28 @@ const isValidate = ref(false);
|
|
|
62
58
|
</div>
|
|
63
59
|
</template>
|
|
64
60
|
|
|
65
|
-
<style
|
|
61
|
+
<style scoped>
|
|
66
62
|
.password-bg {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
flex-direction: column;
|
|
70
|
-
width: 100%;
|
|
71
|
-
height: 100%;
|
|
72
|
-
padding: 25px;
|
|
73
|
-
background: url("@/assets/images/login-small.png") no-repeat 50%;
|
|
63
|
+
--at-apply: box-border flex flex-col size-full p-[25px];
|
|
64
|
+
background: url("./assets/login-small.png") no-repeat 50%;
|
|
74
65
|
background-size: cover;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.change-password-form {
|
|
69
|
+
--at-apply: flex flex-col w-[560px] min-h-[680px] overflow-hidden backdrop-blur-[7.5px]
|
|
70
|
+
pt-16 pb-[34px] px-20 rounded-lg border-2 border-solid border-white;
|
|
75
71
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
flex-direction: column;
|
|
79
|
-
width: 560px;
|
|
80
|
-
min-height: 680px;
|
|
81
|
-
padding: 64px 80px 34px;
|
|
82
|
-
overflow: hidden;
|
|
83
|
-
background: linear-gradient(180deg, hsl(0deg 0% 100% / 90%), hsl(0deg 0% 100% / 75%));
|
|
84
|
-
backdrop-filter: blur(7.5px);
|
|
85
|
-
border: 2px solid #fff;
|
|
86
|
-
border-radius: 8px;
|
|
87
|
-
box-shadow: 0 20px 50px rgb(29 42 165 / 5%);
|
|
88
|
-
}
|
|
72
|
+
box-shadow: 0 20px 50px rgb(29 42 165 / 5%);
|
|
73
|
+
background: linear-gradient(180deg, hsl(0deg 0% 100% / 90%), hsl(0deg 0% 100% / 75%));
|
|
89
74
|
}
|
|
90
75
|
|
|
91
|
-
[data-theme="dark"] {
|
|
92
|
-
.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
76
|
+
:deep([data-theme="dark"]) .password-bg {
|
|
77
|
+
background: url("./assets/login-small_dark.webp") no-repeat 50%;
|
|
78
|
+
background-size: cover;
|
|
79
|
+
}
|
|
96
80
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
81
|
+
:deep([data-theme="dark"]) .change-password-form {
|
|
82
|
+
background: #0f1e3b;
|
|
83
|
+
border-color: #0f1e3b;
|
|
101
84
|
}
|
|
102
85
|
</style>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { Router, RouteRecordRaw } from 'vue-router';
|
|
2
|
+
import { isUndefined } from 'lodash-es';
|
|
3
|
+
import { useUserStore } from '@/features';
|
|
4
|
+
|
|
5
|
+
const routes: RouteRecordRaw[] = [
|
|
6
|
+
{
|
|
7
|
+
path: '/change-password/:changePassWordToken',
|
|
8
|
+
name: 'ChangePassword',
|
|
9
|
+
component: () => import('./pages/change-password/index.vue'),
|
|
10
|
+
// 特殊处理changelog-password路由,不允许直接访问
|
|
11
|
+
// 其实应该移入到鉴权组路由,但是会导致需要频繁挂载销毁路由
|
|
12
|
+
beforeEnter: (to) => {
|
|
13
|
+
if (isUndefined(to.params.changePassWordToken)) {
|
|
14
|
+
return { name: 'Login' };
|
|
15
|
+
}
|
|
16
|
+
return true;
|
|
17
|
+
},
|
|
18
|
+
meta: {
|
|
19
|
+
whiteList: true,
|
|
20
|
+
title: '修改密码',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
path: '/change-organization/:orgId',
|
|
25
|
+
name: 'ChangeOrganization',
|
|
26
|
+
component: () => import('./pages/change-organization/index.vue'),
|
|
27
|
+
beforeEnter: (to) => {
|
|
28
|
+
const userStore = useUserStore();
|
|
29
|
+
if (isUndefined(to.params.orgId) || to.params.orgId !== userStore.user.orgId) {
|
|
30
|
+
return { name: 'Login' };
|
|
31
|
+
}
|
|
32
|
+
return true;
|
|
33
|
+
},
|
|
34
|
+
meta: {
|
|
35
|
+
whiteList: true,
|
|
36
|
+
title: '切换组织',
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
];
|
|
40
|
+
|
|
41
|
+
export function createRouterGuard(router: Router) {
|
|
42
|
+
let isRouteAdded = false;
|
|
43
|
+
|
|
44
|
+
router.beforeEach((to) => {
|
|
45
|
+
if (!isRouteAdded) {
|
|
46
|
+
routes.forEach((route) => {
|
|
47
|
+
if (!router.hasRoute(route.name!)) {
|
|
48
|
+
router.addRoute(route);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
isRouteAdded = true;
|
|
53
|
+
|
|
54
|
+
return { ...to, replace: true };
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import type { App } from 'vue';
|
|
2
|
+
import { useAuth } from '@/features/composables';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
* 设置权限指令
|
|
5
|
-
* @param app 应用程序实例
|
|
6
|
-
*/
|
|
7
|
-
export function setupPermissionDirective(app: App) {
|
|
4
|
+
export function setupDirectives(app: App) {
|
|
8
5
|
app.directive('auth', {
|
|
9
6
|
mounted: (el, binding) => {
|
|
10
|
-
|
|
7
|
+
const { auth } = useAuth();
|
|
8
|
+
if (!auth(binding.value)) {
|
|
11
9
|
el.remove();
|
|
12
10
|
}
|
|
13
11
|
},
|
|
@@ -15,7 +13,8 @@ export function setupPermissionDirective(app: App) {
|
|
|
15
13
|
|
|
16
14
|
app.directive('auth-all', {
|
|
17
15
|
mounted: (el, binding) => {
|
|
18
|
-
|
|
16
|
+
const { authAll } = useAuth();
|
|
17
|
+
if (!authAll(binding.value)) {
|
|
19
18
|
el.remove();
|
|
20
19
|
}
|
|
21
20
|
},
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { RequestMethod } from '@/core';
|
|
2
|
+
import { useSettingsStore } from '@/features/stores';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 数据权限标识
|
|
6
|
+
* @param method 请求方法
|
|
7
|
+
*/
|
|
8
|
+
export function maybeSetAuthData(method: RequestMethod) {
|
|
9
|
+
const settingsStore = useSettingsStore();
|
|
10
|
+
method.config.headers['X-ResourceMark'] = method.config.headers['X-ResourceMark'] || settingsStore.auth;
|
|
11
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ModuleOptions } from '@/core';
|
|
2
|
+
import { setupDirectives } from './directives';
|
|
3
|
+
import { maybeSetAuthData } from './helper';
|
|
4
|
+
import { setupRouterGuard } from './router';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* 权限授权 (资源级拦截)
|
|
8
|
+
*
|
|
9
|
+
* 用户是否有访问某个页面/按钮的权限
|
|
10
|
+
*/
|
|
11
|
+
export function Authorization(): ModuleOptions {
|
|
12
|
+
return {
|
|
13
|
+
name: 'built-in:authorization',
|
|
14
|
+
setup(ctx) {
|
|
15
|
+
const { app, router } = ctx;
|
|
16
|
+
setupDirectives(app);
|
|
17
|
+
setupRouterGuard(router);
|
|
18
|
+
},
|
|
19
|
+
hooks: {
|
|
20
|
+
'http:request': (method) => {
|
|
21
|
+
maybeSetAuthData(method);
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { useUserStore } from '@/stores';
|
|
2
|
+
import { useUserStore } from '@/features/stores';
|
|
3
3
|
|
|
4
4
|
defineOptions({
|
|
5
5
|
name: 'NotPermission',
|
|
@@ -31,11 +31,9 @@ onMounted(() => {
|
|
|
31
31
|
}, 1000);
|
|
32
32
|
});
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
router.push(
|
|
37
|
-
name: 'login',
|
|
38
|
-
});
|
|
34
|
+
function goBack() {
|
|
35
|
+
userStore.logout();
|
|
36
|
+
router.push('/login');
|
|
39
37
|
}
|
|
40
38
|
</script>
|
|
41
39
|
|
|
@@ -58,16 +56,14 @@ async function goBack() {
|
|
|
58
56
|
</div>
|
|
59
57
|
</template>
|
|
60
58
|
|
|
61
|
-
<style
|
|
59
|
+
<style scoped>
|
|
62
60
|
.noPermissionIcon {
|
|
63
|
-
background: url("
|
|
61
|
+
background: url("./403.svg") no-repeat;
|
|
64
62
|
background-size: 100% 100%;
|
|
65
63
|
}
|
|
66
64
|
|
|
67
|
-
[data-theme="dark"] {
|
|
68
|
-
.
|
|
69
|
-
|
|
70
|
-
background-size: 100% 100%;
|
|
71
|
-
}
|
|
65
|
+
[data-theme="dark"] .noPermissionIcon {
|
|
66
|
+
background: url("./403_dark.svg") no-repeat;
|
|
67
|
+
background-size: 100% 100%;
|
|
72
68
|
}
|
|
73
69
|
</style>
|