@pubinfo/core 2.0.0-beta.1 → 2.0.0-beta.10
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/{es/AppSetting-BXQHV5F8.js → dist/AppSetting-BkkBhQs8.js} +16 -16
- package/{es/HCheckList.vue_vue_type_script_setup_true_lang-DanhyVxU.js → dist/HCheckList.vue_vue_type_script_setup_true_lang-CCAu4BLQ.js} +2 -2
- package/{es/PreferencesContent-CQkwkQ_1.js → dist/PreferencesContent-CR--f_NB.js} +46 -46
- package/{es/SettingBreadcrumb-Bp_66IFN.js → dist/SettingBreadcrumb-G3tCFpLA.js} +2 -2
- package/{es/SettingCopyright-BPSnoTQb.js → dist/SettingCopyright-CX0focMI.js} +1 -1
- package/{es/SettingEnableTransition-Rx2-0Wxj.js → dist/SettingEnableTransition-DOKJnR4L.js} +1 -1
- package/{es/SettingHome-BW27PQqs.js → dist/SettingHome-BYO222_e.js} +1 -1
- package/{es/SettingMenu-D5gdNfal.js → dist/SettingMenu-wjOwhCSF.js} +2 -2
- package/{es/SettingMode-B4_HGVez.js → dist/SettingMode-Bvavz1iE.js} +1 -1
- package/{es/SettingNavSearch-CRovYxzh.js → dist/SettingNavSearch-BNgCCL_g.js} +1 -1
- package/{es/SettingOther-D0zo11vM.js → dist/SettingOther-Bkg_d75_.js} +1 -1
- package/{es/SettingPage-B8GHuoKV.js → dist/SettingPage-CoxnW-C8.js} +1 -1
- package/{es/SettingTabbar-Cn_QzvA8.js → dist/SettingTabbar-CSbAXsSc.js} +2 -2
- package/{es/SettingThemes-D_DpEncn.js → dist/SettingThemes-DWIUI9Jm.js} +2 -2
- package/{es/SettingToolbar-Csl2gnfi.js → dist/SettingToolbar-B2ieO89s.js} +1 -1
- package/{es/SettingTopbar-CaHjQULM.js → dist/SettingTopbar-O8atqRyC.js} +2 -2
- package/{es/SettingWidthMode-BGiP7gTw.js → dist/SettingWidthMode-xRqJUEGW.js} +1 -1
- package/{es/TopThinMode-DWm0oY5Y.js → dist/TopThinMode-B5bzupL0.js} +1 -1
- package/{es/_...all_-DI_QAUox.js → dist/_...all_-BhkWBVsP.js} +1 -1
- package/{es/colors-oRlAXMUC.js → dist/colors-D1em-qbN.js} +1 -1
- package/{lib → dist}/components/PubinfoProvider/index.d.ts +1 -0
- package/{es/index-D8eeneI_.js → dist/index-B82_RIAQ.js} +22 -22
- package/{es/index-Dav3jQVP.js → dist/index-B_G9XMp4.js} +2 -2
- package/{es/index-P2cA5UeU.js → dist/index-Bt_iFTZm.js} +4 -4
- package/{es/index-BHkrq701.js → dist/index-C9Ne6frc.js} +21 -21
- package/{es/index-BvVAS3S-.js → dist/index-CInEsIq9.js} +14 -8
- package/{es/index-DvHnVMX5.js → dist/index-D1uzRPbe.js} +2116 -2119
- package/{es/index-BkqnOkyO.js → dist/index-D4ZKd0qO.js} +1 -1
- package/{es/index-ChOUZNbk.js → dist/index-DkuKtlnz.js} +2 -2
- package/{es/index-B9I6Pru6.js → dist/index-LwHAdG5B.js} +12 -12
- package/{es → dist}/index.js +25 -26
- package/{es/index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-BBe8CvCV.js → dist/index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-Cf4EKYdE.js} +1 -1
- package/{es → dist}/layout/composables/useContext.d.ts +1 -2
- package/{lib → dist}/layout/ui-kit/HDialog.vue.d.ts +12 -1
- package/{lib → dist}/layout/ui-kit/HSlideover.vue.d.ts +12 -1
- package/{es/notification-6D5hA7Bp.js → dist/menu-lns6oFYd.js} +1866 -1902
- package/{es/pick-Br-UKn7B.js → dist/pick-D4R-sEsr.js} +1 -1
- package/{es → dist}/request.js +23 -23
- package/{lib → dist}/stores/modules/favorites.d.ts +1 -0
- package/{es → dist}/stores/modules/iframe.d.ts +1 -0
- package/{es → dist}/stores/modules/index.d.ts +8 -1
- package/{es → dist}/stores/modules/keepAlive.d.ts +1 -0
- package/{es → dist}/stores/modules/menu.d.ts +1 -0
- package/{es → dist}/stores/modules/route.d.ts +1 -0
- package/{lib → dist}/stores/modules/settings.d.ts +1 -0
- package/{lib → dist}/stores/modules/tabbar.d.ts +1 -0
- package/dist/stores/modules/user.d.ts +35 -0
- package/{es → dist}/style.css +1 -1
- package/package.json +18 -24
- package/src/components/PubinfoProvider/index.ts +2 -0
- package/src/layout/components/Tools/index.vue +8 -25
- package/src/layout/composables/useContext.ts +0 -2
- package/src/layout/composables/useWatermark.ts +2 -2
- package/src/layout/provider.ts +0 -3
- package/src/layout/ui-kit/HDialog.vue +4 -1
- package/src/layout/ui-kit/HSlideover.vue +4 -1
- package/src/pages/system/change-organization/index.vue +3 -3
- package/src/route/routes.ts +0 -9
- package/src/stores/helper.ts +2 -2
- package/src/stores/modules/favorites.ts +1 -0
- package/src/stores/modules/iframe.ts +1 -0
- package/src/stores/modules/index.ts +8 -1
- package/src/stores/modules/keepAlive.ts +1 -0
- package/src/stores/modules/menu.ts +1 -0
- package/src/stores/modules/route.ts +2 -1
- package/src/stores/modules/settings.ts +1 -0
- package/src/stores/modules/tabbar.ts +1 -0
- package/src/stores/modules/user.ts +54 -20
- package/es/components/PubinfoProvider/index.d.ts +0 -8
- package/es/layout/ui-kit/HDialog.vue.d.ts +0 -28
- package/es/layout/ui-kit/HSlideover.vue.d.ts +0 -30
- package/es/stores/modules/favorites.d.ts +0 -32
- package/es/stores/modules/notification.d.ts +0 -18
- package/es/stores/modules/settings.d.ts +0 -85
- package/es/stores/modules/tabbar.d.ts +0 -59
- package/es/stores/modules/user.d.ts +0 -3
- package/lib/AppSetting-CCiwpjoq.cjs +0 -1
- package/lib/HButton.vue_vue_type_script_setup_true_lang-D-XkyoXl.cjs +0 -1
- package/lib/HCheckList.vue_vue_type_script_setup_true_lang-DwA8einQ.cjs +0 -1
- package/lib/HDivider-DCfDgE8l.cjs +0 -1
- package/lib/HInput.vue_vue_type_script_setup_true_lang-CwS0mGyL.cjs +0 -1
- package/lib/HToggle-BP6YYf-s.cjs +0 -1
- package/lib/PreferencesContent-DgL-Jc_J.cjs +0 -3
- package/lib/SettingBreadcrumb-BQ78yEP4.cjs +0 -1
- package/lib/SettingCopyright-x7aPlkQy.cjs +0 -1
- package/lib/SettingEnableTransition-CD3-44Iy.cjs +0 -1
- package/lib/SettingHome-u52oz6i8.cjs +0 -1
- package/lib/SettingMenu-DsElOvvv.cjs +0 -1
- package/lib/SettingMode-C_kgpTxw.cjs +0 -1
- package/lib/SettingNavSearch-3auTi8UW.cjs +0 -1
- package/lib/SettingOther-6XGQq7OA.cjs +0 -1
- package/lib/SettingPage-C8yIHpLc.cjs +0 -1
- package/lib/SettingTabbar-K-nHb89z.cjs +0 -1
- package/lib/SettingThemes-BeNwFz7K.cjs +0 -1
- package/lib/SettingToolbar-Be1V7lwV.cjs +0 -1
- package/lib/SettingTopbar-C-j8O3c8.cjs +0 -1
- package/lib/SettingWidthMode-GMjAF-s3.cjs +0 -1
- package/lib/TopThinMode-DGUvyHT2.cjs +0 -1
- package/lib/_...all_-C4CXjAo9.cjs +0 -1
- package/lib/_plugin-vue_export-helper-BHFhmbuH.cjs +0 -1
- package/lib/api/enum/code.d.ts +0 -67
- package/lib/api/helper.d.ts +0 -32
- package/lib/api/index.d.ts +0 -12
- package/lib/api/interface.d.ts +0 -14
- package/lib/api/modules/auth/index.d.ts +0 -1
- package/lib/api/modules/auth/renzhengfuwu.d.ts +0 -50
- package/lib/api/modules/configData/heibaimingdanfuwu.d.ts +0 -36
- package/lib/api/modules/configData/index.d.ts +0 -3
- package/lib/api/modules/configData/xitongpeizhifuwu.d.ts +0 -99
- package/lib/api/modules/configData/zidianfuwu.d.ts +0 -71
- package/lib/api/modules/rbac/gangweijiekou.d.ts +0 -43
- package/lib/api/modules/rbac/index.d.ts +0 -11
- package/lib/api/modules/rbac/jiaosejiekou.d.ts +0 -50
- package/lib/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +0 -43
- package/lib/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +0 -64
- package/lib/api/modules/rbac/yonghujiekou.d.ts +0 -106
- package/lib/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +0 -36
- package/lib/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +0 -29
- package/lib/api/modules/rbac/ziyuanjiekou.d.ts +0 -85
- package/lib/api/modules/rbac/zuhuguanlijiekou.d.ts +0 -36
- package/lib/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +0 -29
- package/lib/api/modules/rbac/zuzhijiekou.d.ts +0 -64
- package/lib/api/request.d.ts +0 -2
- package/lib/api/system/app.d.ts +0 -17
- package/lib/api/system/user.d.ts +0 -24
- package/lib/assets/styles/index.d.ts +0 -6
- package/lib/colors-KAaBT84S.cjs +0 -1
- package/lib/components/NotAllowed/index.vue.d.ts +0 -2
- package/lib/components/PageHeader/index.vue.d.ts +0 -23
- package/lib/components/PageMain/index.vue.d.ts +0 -27
- package/lib/components/PassStrengthValidator/index.vue.d.ts +0 -26
- package/lib/components/PassStrengthValidator/rule.vue.d.ts +0 -8
- package/lib/components/PubinfoApp/index.vue.d.ts +0 -2
- package/lib/components/PubinfoIcon/index.vue.d.ts +0 -10
- package/lib/components/index.d.ts +0 -8
- package/lib/composables/auth.d.ts +0 -8
- package/lib/composables/index.d.ts +0 -4
- package/lib/composables/log.d.ts +0 -6
- package/lib/composables/theme.d.ts +0 -3
- package/lib/composables/watchDiff.d.ts +0 -2
- package/lib/config/index.d.ts +0 -1
- package/lib/config/settings.d.ts +0 -3
- package/lib/context.d.ts +0 -14
- package/lib/create.d.ts +0 -3
- package/lib/directives/index.d.ts +0 -4
- package/lib/directives/plugins/permission.d.ts +0 -6
- package/lib/index-38bsQrho.cjs +0 -1
- package/lib/index-BEqD62a0.cjs +0 -1
- package/lib/index-Bbm9CQRP.cjs +0 -1
- package/lib/index-BqHsuJkr.cjs +0 -1
- package/lib/index-JZl6Zh3L.cjs +0 -44
- package/lib/index-VGR0Mt4q.cjs +0 -240
- package/lib/index-WMo0GAa6.cjs +0 -1
- package/lib/index-_YsHduAE.cjs +0 -1
- package/lib/index-gr8kFwPx.cjs +0 -18
- package/lib/index-zvGq9tSu.cjs +0 -1
- package/lib/index.cjs +0 -1
- package/lib/index.d.ts +0 -11
- package/lib/index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-SCJ5qyPu.cjs +0 -1
- package/lib/interface.d.ts +0 -29
- package/lib/layout/Layout.vue.d.ts +0 -20
- package/lib/layout/components/BackTop/index.vue.d.ts +0 -2
- package/lib/layout/components/Content/IframeView.vue.d.ts +0 -4
- package/lib/layout/components/Content/LinkView.vue.d.ts +0 -2
- package/lib/layout/components/Content/index.vue.d.ts +0 -2
- package/lib/layout/components/Copyright/index.vue.d.ts +0 -2
- package/lib/layout/components/Header/TopMode/More.vue.d.ts +0 -26
- package/lib/layout/components/Header/TopMode/NotCursor.vue.d.ts +0 -25
- package/lib/layout/components/Header/TopMode/index.vue.d.ts +0 -4
- package/lib/layout/components/Header/TopThinMode.vue.d.ts +0 -4
- package/lib/layout/components/Header/index.vue.d.ts +0 -19
- package/lib/layout/components/Logo/index.vue.d.ts +0 -26
- package/lib/layout/components/Menu/index.vue.d.ts +0 -10
- package/lib/layout/components/Menu/item.vue.d.ts +0 -11
- package/lib/layout/components/Menu/sub.vue.d.ts +0 -219
- package/lib/layout/components/Menu/types.d.ts +0 -42
- package/lib/layout/components/SettingBar/AppSetting.vue.d.ts +0 -12
- package/lib/layout/components/SettingBar/components/DayNightToggle.vue.d.ts +0 -9
- package/lib/layout/components/SettingBar/components/SettingBreadcrumb.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingCopyright.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingEnableTransition.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingHome.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingMenu.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingMode.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingNavSearch.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingOther.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingPage.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingTabbar.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingThemes.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingToolbar.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingTopbar.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingWidthMode.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/index.vue.d.ts +0 -2
- package/lib/layout/components/Sidebar/MainSidebar.vue.d.ts +0 -2
- package/lib/layout/components/Sidebar/SubSidebar.vue.d.ts +0 -2
- package/lib/layout/components/Sidebar/index.vue.d.ts +0 -2
- package/lib/layout/components/Tools/Breadcrumb/index.vue.d.ts +0 -17
- package/lib/layout/components/Tools/Breadcrumb/item.vue.d.ts +0 -25
- package/lib/layout/components/Tools/DayNightSwitch.vue.d.ts +0 -2
- package/lib/layout/components/Tools/HotkeysIntro.vue.d.ts +0 -4
- package/lib/layout/components/Tools/Preferences/PreferencesContent.vue.d.ts +0 -2
- package/lib/layout/components/Tools/Preferences/index.vue.d.ts +0 -4
- package/lib/layout/components/Tools/Search.vue.d.ts +0 -199
- package/lib/layout/components/Tools/index.vue.d.ts +0 -233
- package/lib/layout/components/Topbar/Tabbar/MoreAction.vue.d.ts +0 -217
- package/lib/layout/components/Topbar/Tabbar/index.vue.d.ts +0 -14
- package/lib/layout/components/Topbar/Toolbar/Favorites.vue.d.ts +0 -4
- package/lib/layout/components/Topbar/Toolbar/Star.vue.d.ts +0 -2
- package/lib/layout/components/Topbar/Toolbar/index.vue.d.ts +0 -2
- package/lib/layout/components/Topbar/index.vue.d.ts +0 -2
- package/lib/layout/composables/useContext.d.ts +0 -18
- package/lib/layout/composables/useGetComputedStyle.d.ts +0 -15
- package/lib/layout/composables/useHotkey.d.ts +0 -5
- package/lib/layout/composables/useMainPage.d.ts +0 -14
- package/lib/layout/composables/useMenu.d.ts +0 -8
- package/lib/layout/composables/useTabbar.d.ts +0 -14
- package/lib/layout/composables/useTitle.d.ts +0 -3
- package/lib/layout/composables/useViewTransition.d.ts +0 -3
- package/lib/layout/composables/useWatermark.d.ts +0 -4
- package/lib/layout/index.d.ts +0 -19
- package/lib/layout/provider.d.ts +0 -1
- package/lib/layout/ui-kit/HBadge.vue.d.ts +0 -20
- package/lib/layout/ui-kit/HButton.vue.d.ts +0 -26
- package/lib/layout/ui-kit/HCheckList.vue.d.ts +0 -20
- package/lib/layout/ui-kit/HDivider.vue.d.ts +0 -20
- package/lib/layout/ui-kit/HDropdown.vue.d.ts +0 -18
- package/lib/layout/ui-kit/HDropdownMenu.vue.d.ts +0 -26
- package/lib/layout/ui-kit/HDropdownTree.vue.d.ts +0 -32
- package/lib/layout/ui-kit/HInput.vue.d.ts +0 -17
- package/lib/layout/ui-kit/HKbd.vue.d.ts +0 -17
- package/lib/layout/ui-kit/HSelect.vue.d.ts +0 -17
- package/lib/layout/ui-kit/HTabList.vue.d.ts +0 -22
- package/lib/layout/ui-kit/HToggle.vue.d.ts +0 -14
- package/lib/layout/ui-kit/HTooltip.vue.d.ts +0 -23
- package/lib/locales/index.d.ts +0 -301
- package/lib/locales/lang/en.json.d.ts +0 -99
- package/lib/locales/lang/zh-cn.json.d.ts +0 -100
- package/lib/locales/lang/zh-tw.json.d.ts +0 -100
- package/lib/locales/ui.d.ts +0 -3
- package/lib/modules.d.ts +0 -11
- package/lib/notification-IZqPm_OK.cjs +0 -199
- package/lib/pages/personal/profile/index.vue.d.ts +0 -2
- package/lib/pages/system/[...all].vue.d.ts +0 -2
- package/lib/pages/system/change-organization/index.vue.d.ts +0 -2
- package/lib/pages/system/change-password/components/ChangePasswordForm/index.vue.d.ts +0 -18
- package/lib/pages/system/change-password/index.vue.d.ts +0 -31
- package/lib/pages/system/index.vue.d.ts +0 -2
- package/lib/pages/system/not-permission/index.vue.d.ts +0 -2
- package/lib/pages/system/reload.vue.d.ts +0 -2
- package/lib/pick-y2yLda1R.cjs +0 -1
- package/lib/question-line-Cd0CU4hr.cjs +0 -1
- package/lib/reload-6L7Dzs7h.cjs +0 -1
- package/lib/request.cjs +0 -6
- package/lib/right-C5JQ_uRB.cjs +0 -1
- package/lib/route/async.d.ts +0 -9
- package/lib/route/guard/auth.d.ts +0 -3
- package/lib/route/guard/basic.d.ts +0 -3
- package/lib/route/guard/index.d.ts +0 -3
- package/lib/route/guard/setting.d.ts +0 -3
- package/lib/route/index.d.ts +0 -7
- package/lib/route/routes.d.ts +0 -3
- package/lib/stores/enum/index.d.ts +0 -20
- package/lib/stores/helper.d.ts +0 -2
- package/lib/stores/index.d.ts +0 -5
- package/lib/stores/modules/iframe.d.ts +0 -41
- package/lib/stores/modules/index.d.ts +0 -9
- package/lib/stores/modules/keepAlive.d.ts +0 -23
- package/lib/stores/modules/menu.d.ts +0 -32
- package/lib/stores/modules/notification.d.ts +0 -18
- package/lib/stores/modules/route.d.ts +0 -42
- package/lib/stores/modules/user.d.ts +0 -3
- package/lib/stores/plugin/persist.d.ts +0 -5
- package/lib/stores/plugin/sideEffect/cleanup.d.ts +0 -5
- package/lib/stores/plugin/sideEffect/favoritesStorage.d.ts +0 -5
- package/lib/stores/plugin/sideEffect/iframeCache.d.ts +0 -5
- package/lib/stores/plugin/sideEffect/index.d.ts +0 -5
- package/lib/stores/plugin/sideEffect/tabbarStorage.d.ts +0 -5
- package/lib/style.css +0 -9
- package/lib/utils/cleanup.d.ts +0 -8
- package/lib/utils/crypto.d.ts +0 -4
- package/lib/utils/eventBus.d.ts +0 -5
- package/lib/utils/index.d.ts +0 -14
- package/lib/utils/injectionKeys.d.ts +0 -2
- package/lib/utils/storage.d.ts +0 -21
- package/lib/utils/utils.d.ts +0 -3
- package/lib/utils/watermark.d.ts +0 -51
- package/src/layout/components/Tools/Notification.vue +0 -152
- package/src/pages/personal/notification.vue +0 -58
- package/src/stores/modules/notification.ts +0 -34
- /package/{es → dist}/HButton.vue_vue_type_script_setup_true_lang-CYAzn9Mg.js +0 -0
- /package/{es → dist}/HDivider-DgXBhPr0.js +0 -0
- /package/{es → dist}/HInput.vue_vue_type_script_setup_true_lang-DBqCXRnn.js +0 -0
- /package/{es → dist}/HToggle-Cd71WKvG.js +0 -0
- /package/{es → dist}/_plugin-vue_export-helper-CHgC5LLL.js +0 -0
- /package/{es → dist}/api/enum/code.d.ts +0 -0
- /package/{es → dist}/api/helper.d.ts +0 -0
- /package/{es → dist}/api/index.d.ts +0 -0
- /package/{es → dist}/api/interface.d.ts +0 -0
- /package/{es → dist}/api/modules/auth/index.d.ts +0 -0
- /package/{es → dist}/api/modules/auth/renzhengfuwu.d.ts +0 -0
- /package/{es → dist}/api/modules/configData/heibaimingdanfuwu.d.ts +0 -0
- /package/{es → dist}/api/modules/configData/index.d.ts +0 -0
- /package/{es → dist}/api/modules/configData/xitongpeizhifuwu.d.ts +0 -0
- /package/{es → dist}/api/modules/configData/zidianfuwu.d.ts +0 -0
- /package/{es → dist}/api/modules/rbac/gangweijiekou.d.ts +0 -0
- /package/{es → dist}/api/modules/rbac/index.d.ts +0 -0
- /package/{es → dist}/api/modules/rbac/jiaosejiekou.d.ts +0 -0
- /package/{es → dist}/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +0 -0
- /package/{es → dist}/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +0 -0
- /package/{es → dist}/api/modules/rbac/yonghujiekou.d.ts +0 -0
- /package/{es → dist}/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +0 -0
- /package/{es → dist}/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +0 -0
- /package/{es → dist}/api/modules/rbac/ziyuanjiekou.d.ts +0 -0
- /package/{es → dist}/api/modules/rbac/zuhuguanlijiekou.d.ts +0 -0
- /package/{es → dist}/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +0 -0
- /package/{es → dist}/api/modules/rbac/zuzhijiekou.d.ts +0 -0
- /package/{es → dist}/api/request.d.ts +0 -0
- /package/{es → dist}/api/system/app.d.ts +0 -0
- /package/{es → dist}/api/system/user.d.ts +0 -0
- /package/{es → dist}/assets/styles/index.d.ts +0 -0
- /package/{es → dist}/components/NotAllowed/index.vue.d.ts +0 -0
- /package/{es → dist}/components/PageHeader/index.vue.d.ts +0 -0
- /package/{es → dist}/components/PageMain/index.vue.d.ts +0 -0
- /package/{es → dist}/components/PassStrengthValidator/index.vue.d.ts +0 -0
- /package/{es → dist}/components/PassStrengthValidator/rule.vue.d.ts +0 -0
- /package/{es → dist}/components/PubinfoApp/index.vue.d.ts +0 -0
- /package/{es → dist}/components/PubinfoIcon/index.vue.d.ts +0 -0
- /package/{es → dist}/components/index.d.ts +0 -0
- /package/{es → dist}/composables/auth.d.ts +0 -0
- /package/{es → dist}/composables/index.d.ts +0 -0
- /package/{es → dist}/composables/log.d.ts +0 -0
- /package/{es → dist}/composables/theme.d.ts +0 -0
- /package/{es → dist}/composables/watchDiff.d.ts +0 -0
- /package/{es → dist}/config/index.d.ts +0 -0
- /package/{es → dist}/config/settings.d.ts +0 -0
- /package/{es → dist}/context.d.ts +0 -0
- /package/{es → dist}/create.d.ts +0 -0
- /package/{es → dist}/directives/index.d.ts +0 -0
- /package/{es → dist}/directives/plugins/permission.d.ts +0 -0
- /package/{es → dist}/index-DTQQt_XY.js +0 -0
- /package/{es → dist}/index.d.ts +0 -0
- /package/{es → dist}/interface.d.ts +0 -0
- /package/{es → dist}/layout/Layout.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/BackTop/index.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/Content/IframeView.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/Content/LinkView.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/Content/index.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/Copyright/index.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/Header/TopMode/More.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/Header/TopMode/NotCursor.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/Header/TopMode/index.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/Header/TopThinMode.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/Header/index.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/Logo/index.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/Menu/index.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/Menu/item.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/Menu/sub.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/Menu/types.d.ts +0 -0
- /package/{es → dist}/layout/components/SettingBar/AppSetting.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/SettingBar/components/DayNightToggle.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/SettingBar/components/SettingBreadcrumb.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/SettingBar/components/SettingCopyright.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/SettingBar/components/SettingEnableTransition.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/SettingBar/components/SettingHome.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/SettingBar/components/SettingMenu.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/SettingBar/components/SettingMode.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/SettingBar/components/SettingNavSearch.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/SettingBar/components/SettingOther.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/SettingBar/components/SettingPage.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/SettingBar/components/SettingTabbar.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/SettingBar/components/SettingThemes.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/SettingBar/components/SettingToolbar.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/SettingBar/components/SettingTopbar.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/SettingBar/components/SettingWidthMode.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/SettingBar/index.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/Sidebar/MainSidebar.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/Sidebar/SubSidebar.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/Sidebar/index.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/Tools/Breadcrumb/index.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/Tools/Breadcrumb/item.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/Tools/DayNightSwitch.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/Tools/HotkeysIntro.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/Tools/Preferences/PreferencesContent.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/Tools/Preferences/index.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/Tools/Search.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/Tools/index.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/Topbar/Tabbar/MoreAction.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/Topbar/Tabbar/index.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/Topbar/Toolbar/Favorites.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/Topbar/Toolbar/Star.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/Topbar/Toolbar/index.vue.d.ts +0 -0
- /package/{es → dist}/layout/components/Topbar/index.vue.d.ts +0 -0
- /package/{es → dist}/layout/composables/useGetComputedStyle.d.ts +0 -0
- /package/{es → dist}/layout/composables/useHotkey.d.ts +0 -0
- /package/{es → dist}/layout/composables/useMainPage.d.ts +0 -0
- /package/{es → dist}/layout/composables/useMenu.d.ts +0 -0
- /package/{es → dist}/layout/composables/useTabbar.d.ts +0 -0
- /package/{es → dist}/layout/composables/useTitle.d.ts +0 -0
- /package/{es → dist}/layout/composables/useViewTransition.d.ts +0 -0
- /package/{es → dist}/layout/composables/useWatermark.d.ts +0 -0
- /package/{es → dist}/layout/index.d.ts +0 -0
- /package/{es → dist}/layout/provider.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HBadge.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HButton.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HCheckList.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HDivider.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HDropdown.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HDropdownMenu.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HDropdownTree.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HInput.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HKbd.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HSelect.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HTabList.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HToggle.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HTooltip.vue.d.ts +0 -0
- /package/{es → dist}/locales/index.d.ts +0 -0
- /package/{es → dist}/locales/lang/en.json.d.ts +0 -0
- /package/{es → dist}/locales/lang/zh-cn.json.d.ts +0 -0
- /package/{es → dist}/locales/lang/zh-tw.json.d.ts +0 -0
- /package/{es → dist}/locales/ui.d.ts +0 -0
- /package/{es → dist}/modules.d.ts +0 -0
- /package/{es → dist}/pages/personal/profile/index.vue.d.ts +0 -0
- /package/{es → dist}/pages/system/[...all].vue.d.ts +0 -0
- /package/{es → dist}/pages/system/change-organization/index.vue.d.ts +0 -0
- /package/{es → dist}/pages/system/change-password/components/ChangePasswordForm/index.vue.d.ts +0 -0
- /package/{es → dist}/pages/system/change-password/index.vue.d.ts +0 -0
- /package/{es → dist}/pages/system/index.vue.d.ts +0 -0
- /package/{es → dist}/pages/system/not-permission/index.vue.d.ts +0 -0
- /package/{es → dist}/pages/system/reload.vue.d.ts +0 -0
- /package/{es → dist}/question-line-CfkciTFq.js +0 -0
- /package/{es → dist}/reload-CUcPYtl7.js +0 -0
- /package/{es → dist}/right-Bfe2p1o0.js +0 -0
- /package/{es → dist}/route/async.d.ts +0 -0
- /package/{es → dist}/route/guard/auth.d.ts +0 -0
- /package/{es → dist}/route/guard/basic.d.ts +0 -0
- /package/{es → dist}/route/guard/index.d.ts +0 -0
- /package/{es → dist}/route/guard/setting.d.ts +0 -0
- /package/{es → dist}/route/index.d.ts +0 -0
- /package/{es → dist}/route/routes.d.ts +0 -0
- /package/{es → dist}/stores/enum/index.d.ts +0 -0
- /package/{es → dist}/stores/helper.d.ts +0 -0
- /package/{es → dist}/stores/index.d.ts +0 -0
- /package/{es → dist}/stores/plugin/persist.d.ts +0 -0
- /package/{es → dist}/stores/plugin/sideEffect/cleanup.d.ts +0 -0
- /package/{es → dist}/stores/plugin/sideEffect/favoritesStorage.d.ts +0 -0
- /package/{es → dist}/stores/plugin/sideEffect/iframeCache.d.ts +0 -0
- /package/{es → dist}/stores/plugin/sideEffect/index.d.ts +0 -0
- /package/{es → dist}/stores/plugin/sideEffect/tabbarStorage.d.ts +0 -0
- /package/{es → dist}/utils/cleanup.d.ts +0 -0
- /package/{es → dist}/utils/crypto.d.ts +0 -0
- /package/{es → dist}/utils/eventBus.d.ts +0 -0
- /package/{es → dist}/utils/index.d.ts +0 -0
- /package/{es → dist}/utils/injectionKeys.d.ts +0 -0
- /package/{es → dist}/utils/storage.d.ts +0 -0
- /package/{es → dist}/utils/utils.d.ts +0 -0
- /package/{es → dist}/utils/watermark.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,50 +1,44 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pubinfo/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.10",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
|
-
"types": "./
|
|
8
|
-
"
|
|
9
|
-
"require": "./lib/index.cjs"
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"default": "./dist/index.js"
|
|
10
9
|
},
|
|
11
10
|
"./request": {
|
|
12
|
-
"types": "./
|
|
13
|
-
"
|
|
14
|
-
"require": "./lib/request.cjs"
|
|
15
|
-
},
|
|
16
|
-
"./style.css": {
|
|
17
|
-
"import": "./es/style.css",
|
|
18
|
-
"require": "./lib/style.css"
|
|
11
|
+
"types": "./dist/api/index.d.ts",
|
|
12
|
+
"default": "./dist/request.js"
|
|
19
13
|
},
|
|
14
|
+
"./style.css": "./dist/style.css",
|
|
20
15
|
"./types": "./types/index.d.ts"
|
|
21
16
|
},
|
|
22
|
-
"main": "./
|
|
23
|
-
"module": "./
|
|
24
|
-
"types": "./
|
|
17
|
+
"main": "./dist/index.js",
|
|
18
|
+
"module": "./dist/index.js",
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
25
20
|
"files": [
|
|
26
|
-
"
|
|
27
|
-
"lib",
|
|
21
|
+
"dist",
|
|
28
22
|
"src",
|
|
29
23
|
"types"
|
|
30
24
|
],
|
|
31
25
|
"peerDependencies": {
|
|
32
|
-
"alova": "^3.2.
|
|
33
|
-
"pinia": "^2.3.
|
|
26
|
+
"alova": "^3.2.9",
|
|
27
|
+
"pinia": "^2.3.1",
|
|
34
28
|
"vue": "^3.5.13",
|
|
35
|
-
"vue-i18n": "^
|
|
29
|
+
"vue-i18n": "^10.0.5",
|
|
36
30
|
"vue-router": "^4.5.0",
|
|
37
|
-
"@pubinfo/config": "2.0.0-beta.
|
|
31
|
+
"@pubinfo/config": "2.0.0-beta.10"
|
|
38
32
|
},
|
|
39
33
|
"dependencies": {
|
|
40
34
|
"@alova/adapter-axios": "^2.0.13",
|
|
41
35
|
"@ant-design/icons-vue": "^7.0.1",
|
|
42
36
|
"@headlessui/vue": "^1.7.23",
|
|
43
37
|
"@imengyu/vue3-context-menu": "^1.4.4",
|
|
44
|
-
"@pubinfo/pro-components": "^1.
|
|
38
|
+
"@pubinfo/pro-components": "^1.7.0",
|
|
45
39
|
"@unocss/reset": "^65.5.0",
|
|
46
40
|
"@vueuse/core": "^12.7.0",
|
|
47
|
-
"@vueuse/integrations": "^12.
|
|
41
|
+
"@vueuse/integrations": "^12.8.2",
|
|
48
42
|
"ant-design-vue": "^4.2.6",
|
|
49
43
|
"axios": "^1.8.1",
|
|
50
44
|
"consola": "^3.4.0",
|
|
@@ -89,9 +83,9 @@
|
|
|
89
83
|
"vite": "^6.2.0",
|
|
90
84
|
"vite-plugin-dts": "^4.5.3",
|
|
91
85
|
"vue": "^3.5.13",
|
|
92
|
-
"vue-i18n": "^
|
|
86
|
+
"vue-i18n": "^10.0.5",
|
|
93
87
|
"vue-router": "^4.5.0",
|
|
94
|
-
"@pubinfo/config": "2.0.0-beta.
|
|
88
|
+
"@pubinfo/config": "2.0.0-beta.10"
|
|
95
89
|
},
|
|
96
90
|
"scripts": {
|
|
97
91
|
"dev": "vite build -w -m watch",
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { useFullscreen } from '@vueuse/core';
|
|
3
3
|
import { useI18n } from 'vue-i18n';
|
|
4
4
|
import CarbonUserAvatarFilledAlt from '~icons/carbon/user-avatar-filled-alt';
|
|
5
|
-
// import FluentAlert12Regular from '~icons/fluent/alert-12-regular';
|
|
6
5
|
import FluentArrowSync16Filled from '~icons/fluent/arrow-sync-16-filled';
|
|
7
6
|
import FluentFullScreenMaximize16Filled from '~icons/fluent/full-screen-maximize-16-filled';
|
|
8
7
|
import FluentFullScreenMinimize16Filled from '~icons/fluent/full-screen-minimize-16-filled';
|
|
@@ -17,7 +16,6 @@ import useViewTransition from '../../composables/useViewTransition';
|
|
|
17
16
|
import DayNightSwitch from './DayNightSwitch.vue';
|
|
18
17
|
import HotkeysIntro from './HotkeysIntro.vue';
|
|
19
18
|
// import I18nSelector from './I18nSelector.vue';
|
|
20
|
-
// import Notification from './Notification.vue';
|
|
21
19
|
import Preferences from './Preferences/index.vue';
|
|
22
20
|
import Search from './Search.vue';
|
|
23
21
|
|
|
@@ -26,9 +24,7 @@ defineOptions({
|
|
|
26
24
|
});
|
|
27
25
|
|
|
28
26
|
const router = useRouter();
|
|
29
|
-
const { settingsStore, userStore,
|
|
30
|
-
|
|
31
|
-
notificationStore.init();
|
|
27
|
+
const { settingsStore, userStore, generateI18nTitle } = useContext();
|
|
32
28
|
|
|
33
29
|
const { t } = useI18n();
|
|
34
30
|
|
|
@@ -67,9 +63,9 @@ const userMenu = computed(() => [
|
|
|
67
63
|
icon: 'i-iconamoon-synchronize-duotone',
|
|
68
64
|
handle: () => router.push({
|
|
69
65
|
name: 'ChangeOrganization',
|
|
70
|
-
params: { orgId: userStore.orgId },
|
|
66
|
+
params: { orgId: userStore.user.orgId },
|
|
71
67
|
}),
|
|
72
|
-
hide: userStore.orgList.length <= 1,
|
|
68
|
+
hide: userStore.user.orgList.length <= 1,
|
|
73
69
|
},
|
|
74
70
|
{
|
|
75
71
|
label: t('route.personal.profile'),
|
|
@@ -133,7 +129,7 @@ function toggleColorScheme(event: MouseEvent) {
|
|
|
133
129
|
|
|
134
130
|
const avatarError = ref(false);
|
|
135
131
|
|
|
136
|
-
watch(() => userStore.avatar, () => {
|
|
132
|
+
watch(() => userStore.user.avatar, () => {
|
|
137
133
|
if (avatarError.value) {
|
|
138
134
|
avatarError.value = false;
|
|
139
135
|
}
|
|
@@ -175,20 +171,7 @@ const searchComponentsClass = computed(() => {
|
|
|
175
171
|
>
|
|
176
172
|
<IconamoonSearch text="14px" />
|
|
177
173
|
</span>
|
|
178
|
-
<!-- <
|
|
179
|
-
v-if="settingsStore.settings.toolbar.enableNotification"
|
|
180
|
-
class="item"
|
|
181
|
-
>
|
|
182
|
-
<HBadge
|
|
183
|
-
:value="notificationStore.total"
|
|
184
|
-
>
|
|
185
|
-
<FluentAlert12Regular text="15px" />
|
|
186
|
-
</HBadge>
|
|
187
|
-
<template #dropdown>
|
|
188
|
-
<Notification />
|
|
189
|
-
</template>
|
|
190
|
-
</HDropdown>
|
|
191
|
-
<I18nSelector class="item">
|
|
174
|
+
<!-- <I18nSelector class="item">
|
|
192
175
|
<RiTranslate text="15px" />
|
|
193
176
|
</I18nSelector> -->
|
|
194
177
|
<span
|
|
@@ -210,8 +193,8 @@ const searchComponentsClass = computed(() => {
|
|
|
210
193
|
</div>
|
|
211
194
|
<div flex-center cursor-pointer gap-1>
|
|
212
195
|
<img
|
|
213
|
-
v-if="userStore.avatar && !avatarError"
|
|
214
|
-
:src="userStore.avatar"
|
|
196
|
+
v-if="userStore.user.avatar && !avatarError"
|
|
197
|
+
:src="userStore.user.avatar"
|
|
215
198
|
:onerror="() => (avatarError = true)"
|
|
216
199
|
class="h-[24px] w-[24px] rounded-full"
|
|
217
200
|
>
|
|
@@ -222,7 +205,7 @@ const searchComponentsClass = computed(() => {
|
|
|
222
205
|
<PhLineVerticalThin />
|
|
223
206
|
<HDropdownMenu :items="userMenu">
|
|
224
207
|
<div flex-center cursor-pointer gap-1>
|
|
225
|
-
{{ userStore.account }}
|
|
208
|
+
{{ userStore.user.account }}
|
|
226
209
|
<MaterialSymbolsExpandMoreRounded ml="5px" mr="10px" />
|
|
227
210
|
</div>
|
|
228
211
|
</HDropdownMenu>
|
|
@@ -3,7 +3,6 @@ import type {
|
|
|
3
3
|
useIframeStore,
|
|
4
4
|
useKeepAliveStore,
|
|
5
5
|
useMenuStore,
|
|
6
|
-
useNotificationStore,
|
|
7
6
|
useRouteStore,
|
|
8
7
|
useSettingsStore,
|
|
9
8
|
useTabbarStore,
|
|
@@ -16,7 +15,6 @@ interface LayoutContext {
|
|
|
16
15
|
keepAliveStore: ReturnType<typeof useKeepAliveStore>
|
|
17
16
|
iframeStore: ReturnType<typeof useIframeStore>
|
|
18
17
|
userStore: ReturnType<typeof useUserStore>
|
|
19
|
-
notificationStore: ReturnType<typeof useNotificationStore>
|
|
20
18
|
menuStore: ReturnType<typeof useMenuStore>
|
|
21
19
|
routeStore: ReturnType<typeof useRouteStore>
|
|
22
20
|
tabbarStore: ReturnType<typeof useTabbarStore>
|
|
@@ -27,11 +27,11 @@ export default function useWatermark() {
|
|
|
27
27
|
const type = settingsStore.settings.watermark.text;
|
|
28
28
|
switch (type) {
|
|
29
29
|
case 'U':
|
|
30
|
-
return `${userStore.account}`;
|
|
30
|
+
return `${userStore.user.account}`;
|
|
31
31
|
case 'O':
|
|
32
32
|
return `${userStore.userOrgName}`;
|
|
33
33
|
case 'OU':
|
|
34
|
-
return `${userStore.userOrgName} ${userStore.account}`;
|
|
34
|
+
return `${userStore.userOrgName} ${userStore.user.account}`;
|
|
35
35
|
default:
|
|
36
36
|
return type;
|
|
37
37
|
}
|
package/src/layout/provider.ts
CHANGED
|
@@ -3,7 +3,6 @@ import {
|
|
|
3
3
|
useIframeStore,
|
|
4
4
|
useKeepAliveStore,
|
|
5
5
|
useMenuStore,
|
|
6
|
-
useNotificationStore,
|
|
7
6
|
useRouteStore,
|
|
8
7
|
useSettingsStore,
|
|
9
8
|
useTabbarStore,
|
|
@@ -33,7 +32,6 @@ export const Provider = defineComponent({
|
|
|
33
32
|
const keepAliveStore = useKeepAliveStore();
|
|
34
33
|
const iframeStore = useIframeStore();
|
|
35
34
|
const userStore = useUserStore();
|
|
36
|
-
const notificationStore = useNotificationStore();
|
|
37
35
|
const routeStore = useRouteStore();
|
|
38
36
|
const tabbarStore = useTabbarStore();
|
|
39
37
|
const favoritesStore = useFavoritesStore();
|
|
@@ -46,7 +44,6 @@ export const Provider = defineComponent({
|
|
|
46
44
|
keepAliveStore,
|
|
47
45
|
iframeStore,
|
|
48
46
|
userStore,
|
|
49
|
-
notificationStore,
|
|
50
47
|
routeStore,
|
|
51
48
|
tabbarStore,
|
|
52
49
|
favoritesStore,
|
|
@@ -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 {
|
|
@@ -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">
|
package/src/route/routes.ts
CHANGED
|
@@ -96,15 +96,6 @@ export const systemRoutes: RouteRecordRaw[] = [
|
|
|
96
96
|
icon: 'i-iconamoon-profile-duotone',
|
|
97
97
|
},
|
|
98
98
|
},
|
|
99
|
-
// {
|
|
100
|
-
// path: 'personal/notification',
|
|
101
|
-
// name: 'Notification',
|
|
102
|
-
// component: () => import('@/pages/personal/notification.vue'),
|
|
103
|
-
// meta: {
|
|
104
|
-
// title: '通知中心',
|
|
105
|
-
// i18n: 'route.personal.notification',
|
|
106
|
-
// },
|
|
107
|
-
// },
|
|
108
99
|
],
|
|
109
100
|
},
|
|
110
101
|
];
|
package/src/stores/helper.ts
CHANGED
|
@@ -13,8 +13,8 @@ export function getfavoritesMemoryKey() {
|
|
|
13
13
|
|
|
14
14
|
function getUserPrefix() {
|
|
15
15
|
const userStore = useUserStore();
|
|
16
|
-
const userId = userStore.userId;
|
|
17
|
-
const orgId = userStore.orgId;
|
|
16
|
+
const userId = userStore.user.userId;
|
|
17
|
+
const orgId = userStore.user.orgId;
|
|
18
18
|
return getHash(`${orgId}${userId}`);
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
export { default as useFavoritesStore } from './favorites';
|
|
2
|
+
export * from './favorites';
|
|
2
3
|
export { default as useIframeStore } from './iframe';
|
|
4
|
+
export * from './iframe';
|
|
3
5
|
export { default as useKeepAliveStore } from './keepAlive';
|
|
6
|
+
export * from './keepAlive';
|
|
4
7
|
export { default as useMenuStore } from './menu';
|
|
5
|
-
export
|
|
8
|
+
export * from './menu';
|
|
6
9
|
export { default as useRouteStore } from './route';
|
|
10
|
+
export * from './route';
|
|
7
11
|
export { default as useSettingsStore } from './settings';
|
|
12
|
+
export * from './settings';
|
|
8
13
|
export { default as useTabbarStore } from './tabbar';
|
|
14
|
+
export * from './tabbar';
|
|
9
15
|
export { default as useUserStore } from './user';
|
|
16
|
+
export * from './user';
|
|
@@ -266,7 +266,7 @@ const useRouteStore = defineStore(
|
|
|
266
266
|
let returnRoutes: Route.recordMainRaw[];
|
|
267
267
|
// 如果权限功能开启,则需要对路由数据进行筛选过滤
|
|
268
268
|
if (settingsStore.settings.app.enablePermission) {
|
|
269
|
-
returnRoutes = filterAsyncRoutes(routesRaw.value, userStore.permissions);
|
|
269
|
+
returnRoutes = filterAsyncRoutes(routesRaw.value, userStore.user.permissions);
|
|
270
270
|
}
|
|
271
271
|
else {
|
|
272
272
|
returnRoutes = cloneDeep(routesRaw.value);
|
|
@@ -433,3 +433,4 @@ const useRouteStore = defineStore(
|
|
|
433
433
|
);
|
|
434
434
|
|
|
435
435
|
export default useRouteStore;
|
|
436
|
+
export type RouteStore = ReturnType<typeof useRouteStore>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { AxiosRequestHeaders } from 'axios';
|
|
2
|
-
import type { LocationQueryValue } from 'vue-router';
|
|
3
2
|
import { postAuthChangeLoginOrg, postAuthLogin } from '@/api/modules/auth';
|
|
4
3
|
import { getRbacResourceGrantedResources, getRbacUserUserEntireInfo, putRbacUserChangePassword } from '@/api/modules/rbac';
|
|
5
4
|
import { usePubinfoContext } from '@/context';
|
|
@@ -8,7 +7,50 @@ import { find } from 'lodash-es';
|
|
|
8
7
|
import { defineStore } from 'pinia';
|
|
9
8
|
import { STORE_NAME } from '../enum';
|
|
10
9
|
|
|
11
|
-
|
|
10
|
+
export interface UserStore {
|
|
11
|
+
/** 用户信息 */
|
|
12
|
+
user: User
|
|
13
|
+
|
|
14
|
+
/** 用户组织名称 */
|
|
15
|
+
userOrgName: ComputedRef<string>
|
|
16
|
+
|
|
17
|
+
/** 是否登录 */
|
|
18
|
+
isLogin: ComputedRef<boolean>
|
|
19
|
+
|
|
20
|
+
/** 获取用户信息 */
|
|
21
|
+
getUserInfo: () => Promise<API.ResponseDataPubUserBo>
|
|
22
|
+
|
|
23
|
+
/** 获取用户权限码 */
|
|
24
|
+
getPermissions: () => Promise<string[]>
|
|
25
|
+
|
|
26
|
+
/** 登录 */
|
|
27
|
+
login: (data: {
|
|
28
|
+
account: string
|
|
29
|
+
password: string
|
|
30
|
+
captchas: string
|
|
31
|
+
captchaHash: string
|
|
32
|
+
loginType?: 'password' | string
|
|
33
|
+
}) => Promise<void>
|
|
34
|
+
|
|
35
|
+
/** 登出 */
|
|
36
|
+
logout: () => void
|
|
37
|
+
|
|
38
|
+
/** 修改密码 */
|
|
39
|
+
changeUserPassword: (form: API.putRbacUserChangePasswordParams & {
|
|
40
|
+
token?: string | string[]
|
|
41
|
+
}) => Promise<API.ResponseDataVoid>
|
|
42
|
+
|
|
43
|
+
/** 切换组织 */
|
|
44
|
+
changeOrg: (changeOrgId: string) => Promise<void>
|
|
45
|
+
|
|
46
|
+
/** 设置TOKEN */
|
|
47
|
+
setToken: (accessToken: string, refreshToken: string) => void
|
|
48
|
+
|
|
49
|
+
/** 清空用户信息 */
|
|
50
|
+
clean: () => void
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const useUserStore = defineStore<STORE_NAME.USER, UserStore>(
|
|
12
54
|
STORE_NAME.USER,
|
|
13
55
|
() => {
|
|
14
56
|
const { router } = usePubinfoContext();
|
|
@@ -65,7 +107,7 @@ const useUserStore = defineStore(
|
|
|
65
107
|
password: string
|
|
66
108
|
captchas: string
|
|
67
109
|
captchaHash: string
|
|
68
|
-
loginType?: 'password'
|
|
110
|
+
loginType?: 'password' | string
|
|
69
111
|
}) {
|
|
70
112
|
const {
|
|
71
113
|
account: loginName,
|
|
@@ -83,14 +125,13 @@ const useUserStore = defineStore(
|
|
|
83
125
|
code,
|
|
84
126
|
});
|
|
85
127
|
const { accessToken, refreshToken } = result.data as Required<API.LoginTokenVo>;
|
|
86
|
-
|
|
128
|
+
setToken(accessToken, refreshToken);
|
|
87
129
|
}
|
|
88
130
|
|
|
89
131
|
/**
|
|
90
132
|
* 执行用户注销操作,并跳转到登录页面。
|
|
91
|
-
* @param _redirect - 注销后的重定向路径,默认为当前页面的完整路径。
|
|
92
133
|
*/
|
|
93
|
-
|
|
134
|
+
function logout() {
|
|
94
135
|
router?.push({
|
|
95
136
|
name: 'Login',
|
|
96
137
|
});
|
|
@@ -123,6 +164,7 @@ const useUserStore = defineStore(
|
|
|
123
164
|
if (userData.userOrgList?.length && !user.orgId) {
|
|
124
165
|
user.orgId = find(userData.userOrgList, ['main', true])!.orgId!;
|
|
125
166
|
}
|
|
167
|
+
return res;
|
|
126
168
|
}
|
|
127
169
|
|
|
128
170
|
/**
|
|
@@ -130,7 +172,7 @@ const useUserStore = defineStore(
|
|
|
130
172
|
* @param form - 包含要修改的密码和令牌的表单数据
|
|
131
173
|
* @returns 修改密码的结果
|
|
132
174
|
*/
|
|
133
|
-
async function changeUserPassword(form: API.putRbacUserChangePasswordParams & { token?:
|
|
175
|
+
async function changeUserPassword(form: API.putRbacUserChangePasswordParams & { token?: string | string[] }) {
|
|
134
176
|
const headers = {} as AxiosRequestHeaders;
|
|
135
177
|
if (form.token) {
|
|
136
178
|
headers.authorization = form.token;
|
|
@@ -151,7 +193,7 @@ const useUserStore = defineStore(
|
|
|
151
193
|
* @param accessToken 访问令牌
|
|
152
194
|
* @param refreshToken 刷新令牌数据
|
|
153
195
|
*/
|
|
154
|
-
|
|
196
|
+
function setToken(accessToken: string, refreshToken: string) {
|
|
155
197
|
user.token = accessToken;
|
|
156
198
|
user.refreshToken = refreshToken;
|
|
157
199
|
}
|
|
@@ -173,33 +215,25 @@ const useUserStore = defineStore(
|
|
|
173
215
|
async function changeOrg(changeOrgId: string) {
|
|
174
216
|
const res = await postAuthChangeLoginOrg({ orgId: changeOrgId });
|
|
175
217
|
const { accessToken, refreshToken } = res.data as Required<API.LoginTokenVo>;
|
|
176
|
-
|
|
218
|
+
setToken(accessToken, refreshToken);
|
|
177
219
|
user.orgId = changeOrgId;
|
|
178
220
|
router?.push({
|
|
179
221
|
path: '/',
|
|
180
222
|
});
|
|
181
223
|
}
|
|
182
224
|
|
|
183
|
-
async function phoneLogin(phone: string, verify: string) {
|
|
184
|
-
// message.success(`${phone}登录成功`);
|
|
185
|
-
// await setToken(accessToken, refreshTokenData);
|
|
186
|
-
// await getUserInfo();
|
|
187
|
-
}
|
|
188
|
-
|
|
189
225
|
return {
|
|
190
226
|
user,
|
|
227
|
+
userOrgName,
|
|
191
228
|
isLogin,
|
|
229
|
+
getUserInfo,
|
|
230
|
+
getPermissions,
|
|
192
231
|
login,
|
|
193
232
|
logout,
|
|
194
|
-
phoneLogin,
|
|
195
|
-
getPermissions,
|
|
196
233
|
changeUserPassword,
|
|
197
|
-
userOrgName,
|
|
198
234
|
changeOrg,
|
|
199
235
|
setToken,
|
|
200
|
-
getUserInfo,
|
|
201
236
|
clean,
|
|
202
|
-
...toRefs(user),
|
|
203
237
|
};
|
|
204
238
|
},
|
|
205
239
|
{
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
interface PubinfoProviderProps {
|
|
2
|
-
loadIcon?: (name?: string) => any;
|
|
3
|
-
}
|
|
4
|
-
export declare const pubinfoInjectionKey: InjectionKey<PubinfoProviderProps>;
|
|
5
|
-
export declare function createPubinfoProvider(props: PubinfoProviderProps): void;
|
|
6
|
-
export declare function useProvider(): any;
|
|
7
|
-
declare const _default: any;
|
|
8
|
-
export default _default;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
modelValue: boolean;
|
|
3
|
-
appear?: boolean;
|
|
4
|
-
title?: string;
|
|
5
|
-
preventClose?: boolean;
|
|
6
|
-
overlay?: boolean;
|
|
7
|
-
};
|
|
8
|
-
declare function __VLS_template(): any;
|
|
9
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
-
close: () => any;
|
|
12
|
-
"update:modelValue": (args_0: boolean) => any;
|
|
13
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
-
onClose?: (() => any) | undefined;
|
|
15
|
-
"onUpdate:modelValue"?: ((args_0: boolean) => any) | undefined;
|
|
16
|
-
}>, {
|
|
17
|
-
modelValue: boolean;
|
|
18
|
-
appear: boolean;
|
|
19
|
-
preventClose: boolean;
|
|
20
|
-
overlay: boolean;
|
|
21
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
|
-
export default _default;
|
|
24
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
|
-
new (): {
|
|
26
|
-
$slots: S;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
modelValue: boolean;
|
|
3
|
-
appear?: boolean;
|
|
4
|
-
side?: 'left' | 'right';
|
|
5
|
-
title?: string;
|
|
6
|
-
preventClose?: boolean;
|
|
7
|
-
overlay?: boolean;
|
|
8
|
-
};
|
|
9
|
-
declare function __VLS_template(): any;
|
|
10
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
-
close: () => any;
|
|
13
|
-
"update:modelValue": (args_0: boolean) => any;
|
|
14
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
-
onClose?: (() => any) | undefined;
|
|
16
|
-
"onUpdate:modelValue"?: ((args_0: boolean) => any) | undefined;
|
|
17
|
-
}>, {
|
|
18
|
-
side: "left" | "right";
|
|
19
|
-
modelValue: boolean;
|
|
20
|
-
appear: boolean;
|
|
21
|
-
preventClose: boolean;
|
|
22
|
-
overlay: boolean;
|
|
23
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
24
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
25
|
-
export default _default;
|
|
26
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
27
|
-
new (): {
|
|
28
|
-
$slots: S;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Favorites } from '../../../types/favorites';
|
|
2
|
-
import { Route } from '../../../types/vue-router';
|
|
3
|
-
import { RouteLocationNormalized } from 'vue-router';
|
|
4
|
-
import { STORE_NAME } from '../enum';
|
|
5
|
-
/**
|
|
6
|
-
* 用于管理收藏夹的自定义存储。
|
|
7
|
-
*
|
|
8
|
-
* @returns 包含各种函数和响应式属性以管理收藏夹的对象。
|
|
9
|
-
*/
|
|
10
|
-
declare const useFavoritesStore: import('pinia').StoreDefinition<STORE_NAME.FAVORITES, Pick<{
|
|
11
|
-
list: any;
|
|
12
|
-
canAdd: (fullPath: Favorites.recordRaw["fullPath"], routes?: Route.recordMainRaw[]) => boolean;
|
|
13
|
-
isAdd: (fullPath: Favorites.recordRaw["fullPath"]) => any;
|
|
14
|
-
add: (route: RouteLocationNormalized) => void;
|
|
15
|
-
remove: (fullPath: Favorites.recordRaw["fullPath"]) => void;
|
|
16
|
-
sort: (newIndex: number, oldIndex: number) => void;
|
|
17
|
-
}, any>, Pick<{
|
|
18
|
-
list: any;
|
|
19
|
-
canAdd: (fullPath: Favorites.recordRaw["fullPath"], routes?: Route.recordMainRaw[]) => boolean;
|
|
20
|
-
isAdd: (fullPath: Favorites.recordRaw["fullPath"]) => any;
|
|
21
|
-
add: (route: RouteLocationNormalized) => void;
|
|
22
|
-
remove: (fullPath: Favorites.recordRaw["fullPath"]) => void;
|
|
23
|
-
sort: (newIndex: number, oldIndex: number) => void;
|
|
24
|
-
}, any>, Pick<{
|
|
25
|
-
list: any;
|
|
26
|
-
canAdd: (fullPath: Favorites.recordRaw["fullPath"], routes?: Route.recordMainRaw[]) => boolean;
|
|
27
|
-
isAdd: (fullPath: Favorites.recordRaw["fullPath"]) => any;
|
|
28
|
-
add: (route: RouteLocationNormalized) => void;
|
|
29
|
-
remove: (fullPath: Favorites.recordRaw["fullPath"]) => void;
|
|
30
|
-
sort: (newIndex: number, oldIndex: number) => void;
|
|
31
|
-
}, any>>;
|
|
32
|
-
export default useFavoritesStore;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { STORE_NAME } from '../enum';
|
|
2
|
-
declare const useNotificationStore: import('pinia').StoreDefinition<STORE_NAME.NOTIFICATION, Pick<{
|
|
3
|
-
message: any;
|
|
4
|
-
todo: any;
|
|
5
|
-
total: any;
|
|
6
|
-
init: () => void;
|
|
7
|
-
}, any>, Pick<{
|
|
8
|
-
message: any;
|
|
9
|
-
todo: any;
|
|
10
|
-
total: any;
|
|
11
|
-
init: () => void;
|
|
12
|
-
}, any>, Pick<{
|
|
13
|
-
message: any;
|
|
14
|
-
todo: any;
|
|
15
|
-
total: any;
|
|
16
|
-
init: () => void;
|
|
17
|
-
}, any>>;
|
|
18
|
-
export default useNotificationStore;
|