@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c2 as u, c3 as f, c4 as l, c5 as o, c6 as k } from "./menu-lns6oFYd.js";
|
|
2
2
|
function v(n, r, s) {
|
|
3
3
|
for (var a = -1, c = r.length, t = {}; ++a < c; ) {
|
|
4
4
|
var e = r[a], i = u(n, e);
|
package/{es → dist}/request.js
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createAlova as et } from "alova";
|
|
2
2
|
import { createServerTokenAuthentication as tt } from "alova/client";
|
|
3
3
|
import nt from "alova/vue";
|
|
4
|
-
import { u as ue,
|
|
4
|
+
import { u as ue, _ as rt, e as Ne } from "./menu-lns6oFYd.js";
|
|
5
5
|
import "pinia-plugin-persistedstate";
|
|
6
6
|
import "vue";
|
|
7
7
|
const Y = "undefined", st = void 0;
|
|
@@ -25,7 +25,7 @@ function ct(e) {
|
|
|
25
25
|
let t;
|
|
26
26
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Le(e.buffer), t;
|
|
27
27
|
}
|
|
28
|
-
const ut = v("string"), x = v("function"), _e = v("number"), G = (e) => e !== null && typeof e == "object", lt = (e) => e === !0 || e === !1,
|
|
28
|
+
const ut = v("string"), x = v("function"), _e = v("number"), G = (e) => e !== null && typeof e == "object", lt = (e) => e === !0 || e === !1, z = (e) => {
|
|
29
29
|
if (K(e) !== "object")
|
|
30
30
|
return !1;
|
|
31
31
|
const t = le(e);
|
|
@@ -62,7 +62,7 @@ const k = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : type
|
|
|
62
62
|
function re() {
|
|
63
63
|
const { caseless: e } = Fe(this) && this || {}, t = {}, n = (r, s) => {
|
|
64
64
|
const o = e && ke(t, s) || s;
|
|
65
|
-
|
|
65
|
+
z(t[o]) && z(r) ? t[o] = re(t[o], r) : z(r) ? t[o] = re({}, r) : B(r) ? t[o] = r.slice() : t[o] = r;
|
|
66
66
|
};
|
|
67
67
|
for (let r = 0, s = arguments.length; r < s; r++)
|
|
68
68
|
arguments[r] && j(arguments[r], n);
|
|
@@ -165,14 +165,14 @@ const Ht = (e) => {
|
|
|
165
165
|
return r;
|
|
166
166
|
};
|
|
167
167
|
return n(e, 0);
|
|
168
|
-
}, Mt = C("AsyncFunction"),
|
|
168
|
+
}, Mt = C("AsyncFunction"), zt = (e) => e && (G(e) || x(e)) && x(e.then) && x(e.catch), Be = ((e, t) => e ? setImmediate : t ? ((n, r) => (k.addEventListener("message", ({ source: s, data: o }) => {
|
|
169
169
|
s === k && o === n && r.length && r.shift()();
|
|
170
170
|
}, !1), (s) => {
|
|
171
171
|
r.push(s), k.postMessage(n, "*");
|
|
172
172
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
173
173
|
typeof setImmediate == "function",
|
|
174
174
|
x(k.postMessage)
|
|
175
|
-
),
|
|
175
|
+
), $t = typeof queueMicrotask < "u" ? queueMicrotask.bind(k) : typeof process < "u" && process.nextTick || Be, a = {
|
|
176
176
|
isArray: B,
|
|
177
177
|
isArrayBuffer: Le,
|
|
178
178
|
isBuffer: at,
|
|
@@ -182,7 +182,7 @@ const Ht = (e) => {
|
|
|
182
182
|
isNumber: _e,
|
|
183
183
|
isBoolean: lt,
|
|
184
184
|
isObject: G,
|
|
185
|
-
isPlainObject:
|
|
185
|
+
isPlainObject: z,
|
|
186
186
|
isReadableStream: wt,
|
|
187
187
|
isRequest: Rt,
|
|
188
188
|
isResponse: gt,
|
|
@@ -226,9 +226,9 @@ const Ht = (e) => {
|
|
|
226
226
|
isSpecCompliantForm: jt,
|
|
227
227
|
toJSONObject: Ht,
|
|
228
228
|
isAsyncFn: Mt,
|
|
229
|
-
isThenable:
|
|
229
|
+
isThenable: zt,
|
|
230
230
|
setImmediate: Be,
|
|
231
|
-
asap:
|
|
231
|
+
asap: $t
|
|
232
232
|
};
|
|
233
233
|
function m(e, t, n, r, s) {
|
|
234
234
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
|
|
@@ -503,7 +503,7 @@ function sn(e) {
|
|
|
503
503
|
o = n[r], t[o] = e[o];
|
|
504
504
|
return t;
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function ze(e) {
|
|
507
507
|
function t(n, r, s, o) {
|
|
508
508
|
let i = n[o++];
|
|
509
509
|
if (i === "__proto__") return !0;
|
|
@@ -534,7 +534,7 @@ const H = {
|
|
|
534
534
|
transformRequest: [function(t, n) {
|
|
535
535
|
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
|
|
536
536
|
if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
537
|
-
return s ? JSON.stringify(
|
|
537
|
+
return s ? JSON.stringify(ze(t)) : t;
|
|
538
538
|
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
|
|
539
539
|
return t;
|
|
540
540
|
if (a.isArrayBufferView(t))
|
|
@@ -626,8 +626,8 @@ const an = a.toObjectSet([
|
|
|
626
626
|
function I(e) {
|
|
627
627
|
return e && String(e).trim().toLowerCase();
|
|
628
628
|
}
|
|
629
|
-
function
|
|
630
|
-
return e === !1 || e == null ? e : a.isArray(e) ? e.map(
|
|
629
|
+
function $(e) {
|
|
630
|
+
return e === !1 || e == null ? e : a.isArray(e) ? e.map($) : String(e);
|
|
631
631
|
}
|
|
632
632
|
function un(e) {
|
|
633
633
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -672,7 +672,7 @@ let O = class {
|
|
|
672
672
|
if (!l)
|
|
673
673
|
throw new Error("header name must be a non-empty string");
|
|
674
674
|
const d = a.findKey(s, l);
|
|
675
|
-
(!d || s[d] === void 0 || u === !0 || u === void 0 && s[d] !== !1) && (s[d || f] =
|
|
675
|
+
(!d || s[d] === void 0 || u === !0 || u === void 0 && s[d] !== !1) && (s[d || f] = $(c));
|
|
676
676
|
}
|
|
677
677
|
const i = (c, f) => a.forEach(c, (u, l) => o(u, l, f));
|
|
678
678
|
if (a.isPlainObject(t) || t instanceof this.constructor)
|
|
@@ -735,11 +735,11 @@ let O = class {
|
|
|
735
735
|
return a.forEach(this, (s, o) => {
|
|
736
736
|
const i = a.findKey(r, o);
|
|
737
737
|
if (i) {
|
|
738
|
-
n[i] =
|
|
738
|
+
n[i] = $(s), delete n[o];
|
|
739
739
|
return;
|
|
740
740
|
}
|
|
741
741
|
const c = t ? fn(o) : String(o).trim();
|
|
742
|
-
c !== o && delete n[o], n[c] =
|
|
742
|
+
c !== o && delete n[o], n[c] = $(s), r[c] = !0;
|
|
743
743
|
}), this;
|
|
744
744
|
}
|
|
745
745
|
concat(...t) {
|
|
@@ -797,7 +797,7 @@ function te(e, t) {
|
|
|
797
797
|
o = c.call(n, o, s.normalize(), t ? t.status : void 0);
|
|
798
798
|
}), s.normalize(), o;
|
|
799
799
|
}
|
|
800
|
-
function
|
|
800
|
+
function $e(e) {
|
|
801
801
|
return !!(e && e.__CANCEL__);
|
|
802
802
|
}
|
|
803
803
|
function D(e, t, n) {
|
|
@@ -1325,7 +1325,7 @@ function xe(e) {
|
|
|
1325
1325
|
r
|
|
1326
1326
|
), r.headers = O.from(r.headers), r;
|
|
1327
1327
|
}, function(r) {
|
|
1328
|
-
return
|
|
1328
|
+
return $e(r) || (ne(e), r && r.response && (r.response.data = te.call(
|
|
1329
1329
|
e,
|
|
1330
1330
|
e.transformResponse,
|
|
1331
1331
|
r.response
|
|
@@ -1664,7 +1664,7 @@ const R = Qe(H);
|
|
|
1664
1664
|
R.Axios = F;
|
|
1665
1665
|
R.CanceledError = D;
|
|
1666
1666
|
R.CancelToken = Fn;
|
|
1667
|
-
R.isCancel =
|
|
1667
|
+
R.isCancel = $e;
|
|
1668
1668
|
R.VERSION = Xe;
|
|
1669
1669
|
R.toFormData = X;
|
|
1670
1670
|
R.AxiosError = m;
|
|
@@ -1676,7 +1676,7 @@ R.spread = Pn;
|
|
|
1676
1676
|
R.isAxiosError = Bn;
|
|
1677
1677
|
R.mergeConfig = P;
|
|
1678
1678
|
R.AxiosHeaders = O;
|
|
1679
|
-
R.formToJSON = (e) =>
|
|
1679
|
+
R.formToJSON = (e) => ze(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1680
1680
|
R.getAdapter = Ge.getAdapter;
|
|
1681
1681
|
R.HttpStatusCode = ce;
|
|
1682
1682
|
R.default = R;
|
|
@@ -1753,10 +1753,10 @@ function Mn() {
|
|
|
1753
1753
|
authRole: "refreshToken"
|
|
1754
1754
|
}, t;
|
|
1755
1755
|
}
|
|
1756
|
-
function
|
|
1756
|
+
function zn(e) {
|
|
1757
1757
|
return e === Ye.ACCESS_TOKEN_INVALID;
|
|
1758
1758
|
}
|
|
1759
|
-
function
|
|
1759
|
+
function $n(e, t) {
|
|
1760
1760
|
const n = ue();
|
|
1761
1761
|
n.user.token = e, n.user.refreshToken = t;
|
|
1762
1762
|
}
|
|
@@ -1779,14 +1779,14 @@ function Vn() {
|
|
|
1779
1779
|
* 检测token是否过期
|
|
1780
1780
|
* @returns 是否token过期
|
|
1781
1781
|
*/
|
|
1782
|
-
isExpired: (e) =>
|
|
1782
|
+
isExpired: (e) => zn(e.data.code),
|
|
1783
1783
|
/**
|
|
1784
1784
|
* @description
|
|
1785
1785
|
* 当token过期时触发,在此函数中触发刷新token
|
|
1786
1786
|
*/
|
|
1787
1787
|
handler: async () => {
|
|
1788
1788
|
const e = await Mn(), { accessToken: t, refreshToken: n } = e.data;
|
|
1789
|
-
|
|
1789
|
+
$n(t, n);
|
|
1790
1790
|
}
|
|
1791
1791
|
}
|
|
1792
1792
|
});
|
|
@@ -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';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { STORE_NAME } from '../enum';
|
|
2
|
+
export interface UserStore {
|
|
3
|
+
/** 用户信息 */
|
|
4
|
+
user: User;
|
|
5
|
+
/** 用户组织名称 */
|
|
6
|
+
userOrgName: ComputedRef<string>;
|
|
7
|
+
/** 是否登录 */
|
|
8
|
+
isLogin: ComputedRef<boolean>;
|
|
9
|
+
/** 获取用户信息 */
|
|
10
|
+
getUserInfo: () => Promise<API.ResponseDataPubUserBo>;
|
|
11
|
+
/** 获取用户权限码 */
|
|
12
|
+
getPermissions: () => Promise<string[]>;
|
|
13
|
+
/** 登录 */
|
|
14
|
+
login: (data: {
|
|
15
|
+
account: string;
|
|
16
|
+
password: string;
|
|
17
|
+
captchas: string;
|
|
18
|
+
captchaHash: string;
|
|
19
|
+
loginType?: 'password' | string;
|
|
20
|
+
}) => Promise<void>;
|
|
21
|
+
/** 登出 */
|
|
22
|
+
logout: () => void;
|
|
23
|
+
/** 修改密码 */
|
|
24
|
+
changeUserPassword: (form: API.putRbacUserChangePasswordParams & {
|
|
25
|
+
token?: string | string[];
|
|
26
|
+
}) => Promise<API.ResponseDataVoid>;
|
|
27
|
+
/** 切换组织 */
|
|
28
|
+
changeOrg: (changeOrgId: string) => Promise<void>;
|
|
29
|
+
/** 设置TOKEN */
|
|
30
|
+
setToken: (accessToken: string, refreshToken: string) => void;
|
|
31
|
+
/** 清空用户信息 */
|
|
32
|
+
clean: () => void;
|
|
33
|
+
}
|
|
34
|
+
declare const useUserStore: import('pinia').StoreDefinition<STORE_NAME.USER, Pick<UserStore, "user" | "userOrgName" | "isLogin">, Pick<UserStore, "userOrgName" | "isLogin">, Pick<UserStore, "userOrgName" | "isLogin" | "getUserInfo" | "getPermissions" | "login" | "logout" | "changeUserPassword" | "changeOrg" | "setToken" | "clean">>;
|
|
35
|
+
export default useUserStore;
|