@pubinfo/core 2.0.0-beta.3 → 2.0.0-beta.30
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-CVExa3_K.js} +21 -20
- package/{es/HCheckList.vue_vue_type_script_setup_true_lang-DanhyVxU.js → dist/HCheckList.vue_vue_type_script_setup_true_lang-B3wESRn7.js} +2 -2
- package/{es/PreferencesContent-CQkwkQ_1.js → dist/PreferencesContent-p9KS2Pve.js} +124 -120
- package/{es/SettingBreadcrumb-Bp_66IFN.js → dist/SettingBreadcrumb-DwvQtev2.js} +2 -2
- package/{es/SettingCopyright-BPSnoTQb.js → dist/SettingCopyright-Wb3hkKZZ.js} +1 -1
- package/{es/SettingEnableTransition-Rx2-0Wxj.js → dist/SettingEnableTransition-DT23T8dO.js} +1 -1
- package/{es/SettingHome-BW27PQqs.js → dist/SettingHome-C0K6wkyt.js} +1 -1
- package/{es/SettingMenu-D5gdNfal.js → dist/SettingMenu-CCKj46sg.js} +2 -2
- package/{es/SettingMode-B4_HGVez.js → dist/SettingMode-pwpzZcxj.js} +1 -1
- package/{es/SettingNavSearch-CRovYxzh.js → dist/SettingNavSearch-zoiP1hL2.js} +1 -1
- package/{es/SettingOther-D0zo11vM.js → dist/SettingOther-OIZZcjfo.js} +1 -1
- package/{es/SettingPage-B8GHuoKV.js → dist/SettingPage-CyljqOiV.js} +1 -1
- package/{es/SettingTabbar-Cn_QzvA8.js → dist/SettingTabbar-DCQai4_R.js} +2 -2
- package/dist/SettingThemes-DJIaIqy1.js +145 -0
- package/{es/SettingToolbar-Csl2gnfi.js → dist/SettingToolbar-Dvv11piV.js} +1 -1
- package/{es/SettingTopbar-CaHjQULM.js → dist/SettingTopbar-CMpP98WU.js} +2 -2
- package/{es/SettingWidthMode-BGiP7gTw.js → dist/SettingWidthMode-DVPAA6Xs.js} +1 -1
- package/{es/TopThinMode-DWm0oY5Y.js → dist/TopThinMode-D8rMfa-C.js} +1 -1
- package/{es/_...all_-DI_QAUox.js → dist/_...all_-6l5FWUkL.js} +1 -1
- package/{es → dist}/api/index.d.ts +2 -1
- package/{es/colors-oRlAXMUC.js → dist/colors-DiWJrScm.js} +1 -1
- package/dist/components/PubinfoIcon/register.d.ts +9 -0
- package/{lib → dist}/components/PubinfoProvider/index.d.ts +1 -0
- package/{lib → dist}/composables/auth.d.ts +1 -1
- package/{es → dist}/context.d.ts +1 -1
- package/{es/index-P2cA5UeU.js → dist/index-Be7jJtXg.js} +38 -36
- package/{es/index-BHkrq701.js → dist/index-BmMbAV1Y.js} +33 -29
- package/{es/index-ChOUZNbk.js → dist/index-CfasTv4x.js} +6 -6
- package/{es/index-D8eeneI_.js → dist/index-Ckgil96Y.js} +25 -25
- package/{es/index-DvHnVMX5.js → dist/index-CyyndQxa.js} +6189 -5995
- package/{es/index-Dav3jQVP.js → dist/index-De_ME_Ws.js} +31 -31
- package/{es/index-BkqnOkyO.js → dist/index-Md7zV10q.js} +12 -12
- package/{es/index-BvVAS3S-.js → dist/index-bsi-FZDt.js} +21 -13
- package/{es/index-B9I6Pru6.js → dist/index-lv9zqWqR.js} +57 -62
- package/{es → dist}/index.d.ts +1 -0
- package/dist/index.js +77 -0
- 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-B3Eieo0k.js} +315 -297
- package/{lib → dist}/interface.d.ts +13 -0
- package/{lib → dist}/layout/Layout.vue.d.ts +2 -2
- 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 → dist}/layout/ui-kit/HTabList.vue.d.ts +2 -2
- package/{es/notification-6D5hA7Bp.js → dist/menu-CC5544p-.js} +2669 -2681
- package/{es/pick-Br-UKn7B.js → dist/pick-CJo2YiT-.js} +1 -1
- package/{es → dist}/request.js +399 -390
- package/{es → dist}/route/index.d.ts +0 -1
- package/dist/route/routes.d.ts +24 -0
- 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 +36 -0
- package/dist/style.css +9 -0
- package/{lib → dist}/utils/index.d.ts +6 -0
- package/package.json +38 -44
- package/src/api/index.ts +3 -1
- package/src/api/modules/configData/xitongpeizhifuwu.ts +3 -3
- package/src/components/PubinfoApp/index.vue +1 -1
- package/src/components/PubinfoIcon/index.vue +3 -1
- package/src/components/PubinfoIcon/register.ts +19 -0
- package/src/components/PubinfoProvider/index.ts +3 -2
- package/src/composables/auth.ts +1 -1
- package/src/context.ts +1 -2
- package/src/create.ts +7 -0
- package/src/index.ts +1 -0
- package/src/interface.ts +13 -0
- package/src/layout/Layout.vue +50 -59
- package/src/layout/components/Content/index.vue +34 -13
- package/src/layout/components/Header/TopMode/index.vue +12 -16
- package/src/layout/components/SettingBar/components/SettingThemes.vue +7 -5
- package/src/layout/components/SettingBar/index.vue +3 -1
- package/src/layout/components/Sidebar/MainSidebar.vue +4 -7
- package/src/layout/components/Tools/Preferences/PreferencesContent.vue +2 -1
- package/src/layout/components/Tools/index.vue +9 -32
- package/src/layout/composables/useContext.ts +0 -2
- package/src/layout/composables/useMainPage.ts +1 -1
- package/src/layout/composables/useWatermark.ts +2 -2
- package/src/layout/provider.ts +7 -4
- 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/pages/system/not-permission/index.vue +2 -2
- package/src/route/index.ts +0 -1
- package/src/route/routes.ts +87 -55
- 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 +25 -1
- package/src/stores/modules/route.ts +14 -5
- package/src/stores/modules/settings.ts +1 -0
- package/src/stores/modules/tabbar.ts +1 -0
- package/src/stores/modules/user.ts +56 -20
- package/src/stores/plugin/sideEffect/favoritesStorage.ts +1 -1
- package/src/stores/plugin/sideEffect/tabbarStorage.ts +1 -1
- package/src/utils/index.ts +14 -0
- package/src/utils/watermark.ts +1 -1
- package/types/vue-router.d.ts +3 -1
- package/es/SettingThemes-D_DpEncn.js +0 -144
- package/es/components/PubinfoProvider/index.d.ts +0 -8
- package/es/composables/auth.d.ts +0 -8
- package/es/index-DTQQt_XY.js +0 -10
- package/es/index.js +0 -76
- package/es/interface.d.ts +0 -29
- package/es/layout/Layout.vue.d.ts +0 -20
- package/es/layout/ui-kit/HDialog.vue.d.ts +0 -28
- package/es/layout/ui-kit/HSlideover.vue.d.ts +0 -30
- package/es/pages/system/not-permission/index.vue.d.ts +0 -2
- package/es/route/async.d.ts +0 -9
- package/es/route/routes.d.ts +0 -3
- 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/es/style.css +0 -9
- package/es/utils/index.d.ts +0 -14
- 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/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/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/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/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/layout/components/Tools/I18nSelector.vue +0 -52
- package/src/layout/components/Tools/Notification.vue +0 -152
- package/src/pages/personal/notification.vue +0 -58
- 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/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/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 +2 -2
- 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/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}/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}/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 +2 -2
- /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/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/pages/system → 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/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}/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/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,5 +1,5 @@
|
|
|
1
1
|
import type { AxiosRequestHeaders } from 'axios';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ComputedRef } from 'vue';
|
|
3
3
|
import { postAuthChangeLoginOrg, postAuthLogin } from '@/api/modules/auth';
|
|
4
4
|
import { getRbacResourceGrantedResources, getRbacUserUserEntireInfo, putRbacUserChangePassword } from '@/api/modules/rbac';
|
|
5
5
|
import { usePubinfoContext } from '@/context';
|
|
@@ -8,7 +8,50 @@ import { find } from 'lodash-es';
|
|
|
8
8
|
import { defineStore } from 'pinia';
|
|
9
9
|
import { STORE_NAME } from '../enum';
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
export interface UserStore {
|
|
12
|
+
/** 用户信息 */
|
|
13
|
+
user: User
|
|
14
|
+
|
|
15
|
+
/** 用户组织名称 */
|
|
16
|
+
userOrgName: ComputedRef<string>
|
|
17
|
+
|
|
18
|
+
/** 是否登录 */
|
|
19
|
+
isLogin: ComputedRef<boolean>
|
|
20
|
+
|
|
21
|
+
/** 获取用户信息 */
|
|
22
|
+
getUserInfo: () => Promise<API.ResponseDataPubUserBo>
|
|
23
|
+
|
|
24
|
+
/** 获取用户权限码 */
|
|
25
|
+
getPermissions: () => Promise<string[]>
|
|
26
|
+
|
|
27
|
+
/** 登录 */
|
|
28
|
+
login: (data: {
|
|
29
|
+
account: string
|
|
30
|
+
password: string
|
|
31
|
+
captchas: string
|
|
32
|
+
captchaHash: string
|
|
33
|
+
loginType?: 'password' | string
|
|
34
|
+
}) => Promise<API.ResponseDataLoginTokenVo>
|
|
35
|
+
|
|
36
|
+
/** 登出 */
|
|
37
|
+
logout: () => void
|
|
38
|
+
|
|
39
|
+
/** 修改密码 */
|
|
40
|
+
changeUserPassword: (form: API.putRbacUserChangePasswordParams & {
|
|
41
|
+
token?: string | string[]
|
|
42
|
+
}) => Promise<API.ResponseDataVoid>
|
|
43
|
+
|
|
44
|
+
/** 切换组织 */
|
|
45
|
+
changeOrg: (changeOrgId: string) => Promise<void>
|
|
46
|
+
|
|
47
|
+
/** 设置TOKEN */
|
|
48
|
+
setToken: (accessToken: string, refreshToken: string) => void
|
|
49
|
+
|
|
50
|
+
/** 清空用户信息 */
|
|
51
|
+
clean: () => void
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const useUserStore = defineStore<STORE_NAME.USER, UserStore>(
|
|
12
55
|
STORE_NAME.USER,
|
|
13
56
|
() => {
|
|
14
57
|
const { router } = usePubinfoContext();
|
|
@@ -65,7 +108,7 @@ const useUserStore = defineStore(
|
|
|
65
108
|
password: string
|
|
66
109
|
captchas: string
|
|
67
110
|
captchaHash: string
|
|
68
|
-
loginType?: 'password'
|
|
111
|
+
loginType?: 'password' | string
|
|
69
112
|
}) {
|
|
70
113
|
const {
|
|
71
114
|
account: loginName,
|
|
@@ -83,14 +126,14 @@ const useUserStore = defineStore(
|
|
|
83
126
|
code,
|
|
84
127
|
});
|
|
85
128
|
const { accessToken, refreshToken } = result.data as Required<API.LoginTokenVo>;
|
|
86
|
-
|
|
129
|
+
setToken(accessToken, refreshToken);
|
|
130
|
+
return result;
|
|
87
131
|
}
|
|
88
132
|
|
|
89
133
|
/**
|
|
90
134
|
* 执行用户注销操作,并跳转到登录页面。
|
|
91
|
-
* @param _redirect - 注销后的重定向路径,默认为当前页面的完整路径。
|
|
92
135
|
*/
|
|
93
|
-
|
|
136
|
+
function logout() {
|
|
94
137
|
router?.push({
|
|
95
138
|
name: 'Login',
|
|
96
139
|
});
|
|
@@ -123,6 +166,7 @@ const useUserStore = defineStore(
|
|
|
123
166
|
if (userData.userOrgList?.length && !user.orgId) {
|
|
124
167
|
user.orgId = find(userData.userOrgList, ['main', true])!.orgId!;
|
|
125
168
|
}
|
|
169
|
+
return res;
|
|
126
170
|
}
|
|
127
171
|
|
|
128
172
|
/**
|
|
@@ -130,7 +174,7 @@ const useUserStore = defineStore(
|
|
|
130
174
|
* @param form - 包含要修改的密码和令牌的表单数据
|
|
131
175
|
* @returns 修改密码的结果
|
|
132
176
|
*/
|
|
133
|
-
async function changeUserPassword(form: API.putRbacUserChangePasswordParams & { token?:
|
|
177
|
+
async function changeUserPassword(form: API.putRbacUserChangePasswordParams & { token?: string | string[] }) {
|
|
134
178
|
const headers = {} as AxiosRequestHeaders;
|
|
135
179
|
if (form.token) {
|
|
136
180
|
headers.authorization = form.token;
|
|
@@ -151,7 +195,7 @@ const useUserStore = defineStore(
|
|
|
151
195
|
* @param accessToken 访问令牌
|
|
152
196
|
* @param refreshToken 刷新令牌数据
|
|
153
197
|
*/
|
|
154
|
-
|
|
198
|
+
function setToken(accessToken: string, refreshToken: string) {
|
|
155
199
|
user.token = accessToken;
|
|
156
200
|
user.refreshToken = refreshToken;
|
|
157
201
|
}
|
|
@@ -173,33 +217,25 @@ const useUserStore = defineStore(
|
|
|
173
217
|
async function changeOrg(changeOrgId: string) {
|
|
174
218
|
const res = await postAuthChangeLoginOrg({ orgId: changeOrgId });
|
|
175
219
|
const { accessToken, refreshToken } = res.data as Required<API.LoginTokenVo>;
|
|
176
|
-
|
|
220
|
+
setToken(accessToken, refreshToken);
|
|
177
221
|
user.orgId = changeOrgId;
|
|
178
222
|
router?.push({
|
|
179
223
|
path: '/',
|
|
180
224
|
});
|
|
181
225
|
}
|
|
182
226
|
|
|
183
|
-
async function phoneLogin(phone: string, verify: string) {
|
|
184
|
-
// message.success(`${phone}登录成功`);
|
|
185
|
-
// await setToken(accessToken, refreshTokenData);
|
|
186
|
-
// await getUserInfo();
|
|
187
|
-
}
|
|
188
|
-
|
|
189
227
|
return {
|
|
190
228
|
user,
|
|
229
|
+
userOrgName,
|
|
191
230
|
isLogin,
|
|
231
|
+
getUserInfo,
|
|
232
|
+
getPermissions,
|
|
192
233
|
login,
|
|
193
234
|
logout,
|
|
194
|
-
phoneLogin,
|
|
195
|
-
getPermissions,
|
|
196
235
|
changeUserPassword,
|
|
197
|
-
userOrgName,
|
|
198
236
|
changeOrg,
|
|
199
237
|
setToken,
|
|
200
|
-
getUserInfo,
|
|
201
238
|
clean,
|
|
202
|
-
...toRefs(user),
|
|
203
239
|
};
|
|
204
240
|
},
|
|
205
241
|
{
|
|
@@ -13,7 +13,7 @@ import useUserStore from '../../modules/user';
|
|
|
13
13
|
export function createFavoritesStoragePlugin({ store }: PiniaPluginContext) {
|
|
14
14
|
if (store.$id === STORE_NAME.FAVORITES) {
|
|
15
15
|
const favoritesStore = store as ReturnType<typeof useFavoritesStore>;
|
|
16
|
-
const favoritesId = computed(() => useUserStore().account);
|
|
16
|
+
const favoritesId = computed(() => useUserStore().user.account);
|
|
17
17
|
const settingsStore = useSettingsStore();
|
|
18
18
|
|
|
19
19
|
// list 变化时更新存储
|
|
@@ -14,7 +14,7 @@ import useUserStore from '../../modules/user';
|
|
|
14
14
|
export function createTabbarStoragePlugin({ store }: PiniaPluginContext) {
|
|
15
15
|
if (store.$id === STORE_NAME.TABBAR) {
|
|
16
16
|
const tabbarStore = store as ReturnType<typeof useTabbarStore>;
|
|
17
|
-
const tabbarId = computed(() => useUserStore().account);
|
|
17
|
+
const tabbarId = computed(() => useUserStore().user.account);
|
|
18
18
|
const settingsStore = useSettingsStore();
|
|
19
19
|
|
|
20
20
|
// list 变化时更新存储
|
package/src/utils/index.ts
CHANGED
|
@@ -35,6 +35,20 @@ export function objectToPaths(obj: Record<string, any>, prefix = '') {
|
|
|
35
35
|
}, [] as string[]);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
/**
|
|
39
|
+
* 基于 `import.meta.glob` 读取 `iconMap`
|
|
40
|
+
*/
|
|
41
|
+
export function loadIconsFromGlob(modules: Record<string, { default: string }>): Record<string, string> {
|
|
42
|
+
return Object.fromEntries(
|
|
43
|
+
Object.entries(modules)
|
|
44
|
+
.map(([path, mod]) => {
|
|
45
|
+
const name = path.match(/([^/]+)(?=\.svg$)/)?.[1];
|
|
46
|
+
return name ? [name, mod.default] : null;
|
|
47
|
+
})
|
|
48
|
+
.filter(Boolean) as [string, string][],
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
|
|
38
52
|
export * from './cleanup';
|
|
39
53
|
export * from './crypto';
|
|
40
54
|
export { default as eventBus } from './eventBus';
|
package/src/utils/watermark.ts
CHANGED
package/types/vue-router.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export interface RouterMetaRawBaseOptions {
|
|
|
25
25
|
breadcrumbNeste: Route.breadcrumb[]
|
|
26
26
|
isDev: boolean
|
|
27
27
|
enabled: boolean
|
|
28
|
+
provider?: any
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
type RouterMetaRaw = RequireExactlyOne<Partial<RouterMetaRawBaseOptions>, 'title'>;
|
|
@@ -37,7 +38,8 @@ export declare namespace Route {
|
|
|
37
38
|
| 'icon'
|
|
38
39
|
| 'activeIcon'
|
|
39
40
|
| 'auth'
|
|
40
|
-
| 'enabled'
|
|
41
|
+
| 'enabled'
|
|
42
|
+
| 'provider';
|
|
41
43
|
|
|
42
44
|
type recordMainRawBasicMeta = Partial<Pick<RouterMetaRawBaseOptions, mainMeta>>;
|
|
43
45
|
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import { _ as T } from "./HDivider-DgXBhPr0.js";
|
|
2
|
-
import { markRaw as b, createElementBlock as d, openBlock as o, createElementVNode as t, defineComponent as k, useModel as V, withDirectives as S, createStaticVNode as $, vModelCheckbox as w, toRef as D, computed as B, createBlock as N, withCtx as j, createVNode as u, unref as c, isRef as L, Fragment as g, renderList as f, normalizeClass as M, normalizeStyle as h, toDisplayString as z } from "vue";
|
|
3
|
-
import "./notification-6D5hA7Bp.js";
|
|
4
|
-
import "pinia-plugin-persistedstate";
|
|
5
|
-
import { d as F, u as R } from "./index-DvHnVMX5.js";
|
|
6
|
-
import { themes as v } from "@pubinfo/config/themes";
|
|
7
|
-
import { _ as x } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
-
const A = {
|
|
9
|
-
viewBox: "-5 -2 24 24",
|
|
10
|
-
width: "1.2em",
|
|
11
|
-
height: "1.2em"
|
|
12
|
-
};
|
|
13
|
-
function E(i, e) {
|
|
14
|
-
return o(), d("svg", A, e[0] || (e[0] = [
|
|
15
|
-
t("path", {
|
|
16
|
-
fill: "currentColor",
|
|
17
|
-
d: "M3 0h8a3 3 0 0 1 3 3v15a2 2 0 0 1-3.348 1.477L7.674 16.76a1 1 0 0 0-1.348 0l-2.978 2.717A2 2 0 0 1 0 18V3a3 3 0 0 1 3-3"
|
|
18
|
-
}, null, -1)
|
|
19
|
-
]));
|
|
20
|
-
}
|
|
21
|
-
const H = b({ name: "jam-bookmark-f", render: E }), I = {
|
|
22
|
-
viewBox: "0 0 16 16",
|
|
23
|
-
width: "1.2em",
|
|
24
|
-
height: "1.2em"
|
|
25
|
-
};
|
|
26
|
-
function U(i, e) {
|
|
27
|
-
return o(), d("svg", I, e[0] || (e[0] = [
|
|
28
|
-
t("path", {
|
|
29
|
-
fill: "currentColor",
|
|
30
|
-
"fill-rule": "evenodd",
|
|
31
|
-
d: "M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m3.78-9.72a.75.75 0 0 0-1.06-1.06L6.75 9.19L5.53 7.97a.75.75 0 0 0-1.06 1.06l1.75 1.75a.75.75 0 0 0 1.06 0z",
|
|
32
|
-
"clip-rule": "evenodd"
|
|
33
|
-
}, null, -1)
|
|
34
|
-
]));
|
|
35
|
-
}
|
|
36
|
-
const W = b({ name: "pajamas-check-circle-filled", render: U }), J = {
|
|
37
|
-
flex: "",
|
|
38
|
-
"justify-center": "",
|
|
39
|
-
"pb-15px": ""
|
|
40
|
-
}, O = { class: "toggleWrapper" }, P = /* @__PURE__ */ k({
|
|
41
|
-
name: "DayNightToggle",
|
|
42
|
-
__name: "DayNightToggle",
|
|
43
|
-
props: {
|
|
44
|
-
modelValue: {},
|
|
45
|
-
modelModifiers: {}
|
|
46
|
-
},
|
|
47
|
-
emits: ["update:modelValue"],
|
|
48
|
-
setup(i) {
|
|
49
|
-
const e = V(i, "modelValue");
|
|
50
|
-
return (_, s) => (o(), d("div", J, [
|
|
51
|
-
t("div", O, [
|
|
52
|
-
S(t("input", {
|
|
53
|
-
id: "dn",
|
|
54
|
-
"onUpdate:modelValue": s[0] || (s[0] = (p) => e.value = p),
|
|
55
|
-
type: "checkbox",
|
|
56
|
-
class: "dn"
|
|
57
|
-
}, null, 512), [
|
|
58
|
-
[w, e.value]
|
|
59
|
-
]),
|
|
60
|
-
s[1] || (s[1] = $('<label for="dn" class="toggle" data-v-d927ea22><span class="toggle__handler" data-v-d927ea22><span class="crater crater--1" data-v-d927ea22></span><span class="crater crater--2" data-v-d927ea22></span><span class="crater crater--3" data-v-d927ea22></span></span><span class="star star--1" data-v-d927ea22></span><span class="star star--2" data-v-d927ea22></span><span class="star star--3" data-v-d927ea22></span><span class="star star--4" data-v-d927ea22></span><span class="star star--5" data-v-d927ea22></span><span class="star star--6" data-v-d927ea22></span></label>', 1))
|
|
61
|
-
])
|
|
62
|
-
]));
|
|
63
|
-
}
|
|
64
|
-
}), q = /* @__PURE__ */ x(P, [["__scopeId", "data-v-d927ea22"]]), G = { class: "themes" }, K = ["onClick"], Q = {
|
|
65
|
-
class: "theme-type",
|
|
66
|
-
flex: "",
|
|
67
|
-
"items-center": ""
|
|
68
|
-
}, X = { class: "theme-point" }, Y = { class: "explosion" }, Z = /* @__PURE__ */ k({
|
|
69
|
-
name: "SettingThemes",
|
|
70
|
-
__name: "SettingThemes",
|
|
71
|
-
setup(i) {
|
|
72
|
-
const { isDark: e } = F(), { settingsStore: _ } = R(), s = D(_.settings, "app"), p = [
|
|
73
|
-
"--ui-primary",
|
|
74
|
-
"--ui-text",
|
|
75
|
-
"--g-bg",
|
|
76
|
-
"--g-header-bg",
|
|
77
|
-
"--g-main-sidebar-bg",
|
|
78
|
-
"--g-sub-sidebar-bg"
|
|
79
|
-
], y = B(
|
|
80
|
-
() => Object.keys(v).map((n) => {
|
|
81
|
-
const l = v[n], m = p.map((r) => l[r].startsWith("#") ? l[r] : `rgb(${l[r]})`), a = v[n].label;
|
|
82
|
-
return {
|
|
83
|
-
label: n,
|
|
84
|
-
value: l,
|
|
85
|
-
colors: m,
|
|
86
|
-
name: a
|
|
87
|
-
};
|
|
88
|
-
}).filter(
|
|
89
|
-
(n) => n.value["color-scheme"] === s.value.colorScheme
|
|
90
|
-
)
|
|
91
|
-
);
|
|
92
|
-
function C(n) {
|
|
93
|
-
const l = n.label;
|
|
94
|
-
e.value ? s.value.darkTheme = l : s.value.lightTheme = l;
|
|
95
|
-
}
|
|
96
|
-
return (n, l) => {
|
|
97
|
-
const m = T;
|
|
98
|
-
return o(), N(m, { title: "颜色主题风格" }, {
|
|
99
|
-
default: j(() => [
|
|
100
|
-
t("div", null, [
|
|
101
|
-
u(q, {
|
|
102
|
-
modelValue: c(e),
|
|
103
|
-
"onUpdate:modelValue": l[0] || (l[0] = (a) => L(e) ? e.value = a : null)
|
|
104
|
-
}, null, 8, ["modelValue"])
|
|
105
|
-
]),
|
|
106
|
-
t("div", G, [
|
|
107
|
-
(o(!0), d(g, null, f(c(y), (a) => (o(), d("div", {
|
|
108
|
-
key: a.label,
|
|
109
|
-
class: M(["theme", { active: c(e) ? c(s).darkTheme === a.label : c(s).lightTheme === a.label }]),
|
|
110
|
-
onClick: (r) => C(a)
|
|
111
|
-
}, [
|
|
112
|
-
t("div", Q, [
|
|
113
|
-
t("span", {
|
|
114
|
-
style: h({ color: a.colors.at(0) }),
|
|
115
|
-
"mr-5px": ""
|
|
116
|
-
}, [
|
|
117
|
-
u(c(H))
|
|
118
|
-
], 4),
|
|
119
|
-
t("span", {
|
|
120
|
-
style: h({ color: a.colors.at(0) }),
|
|
121
|
-
"text-sm": ""
|
|
122
|
-
}, z(a.name || a.label), 5)
|
|
123
|
-
]),
|
|
124
|
-
t("div", X, [
|
|
125
|
-
(o(!0), d(g, null, f(a.colors, (r) => (o(), d("div", {
|
|
126
|
-
key: r,
|
|
127
|
-
class: "point",
|
|
128
|
-
style: h({ backgroundColor: r })
|
|
129
|
-
}, null, 4))), 128))
|
|
130
|
-
]),
|
|
131
|
-
t("div", Y, [
|
|
132
|
-
u(c(W))
|
|
133
|
-
])
|
|
134
|
-
], 10, K))), 128))
|
|
135
|
-
])
|
|
136
|
-
]),
|
|
137
|
-
_: 1
|
|
138
|
-
});
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
}), ce = /* @__PURE__ */ x(Z, [["__scopeId", "data-v-066297c5"]]);
|
|
142
|
-
export {
|
|
143
|
-
ce as default
|
|
144
|
-
};
|
|
@@ -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;
|
package/es/composables/auth.d.ts
DELETED
package/es/index-DTQQt_XY.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { createElementBlock as e, openBlock as o } from "vue";
|
|
2
|
-
import { _ as c } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
const t = {}, r = { class: "home" };
|
|
4
|
-
function n(s, _) {
|
|
5
|
-
return o(), e("div", r, " 主页 ");
|
|
6
|
-
}
|
|
7
|
-
const i = /* @__PURE__ */ c(t, [["render", n]]);
|
|
8
|
-
export {
|
|
9
|
-
i as default
|
|
10
|
-
};
|
package/es/index.js
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { o as s, C as t, L as o, j as r, k as u, P as n, l as i, _ as c, N as P, e as p, f, g as S, S as b, n as d, T as g, m as y, A as l, x as m, y as h, q as v, r as T, z as x, i as A, t as L, s as R, p as j, v as C, h as I, d as K, w as k } from "./index-DvHnVMX5.js";
|
|
2
|
-
import { P as w } from "./index-ChOUZNbk.js";
|
|
3
|
-
import { _ as G, P as M, c as N, p as W } from "./index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-BBe8CvCV.js";
|
|
4
|
-
import { X as E, E as H, F as U, R as _, N as z, Z as O, C as V, T as q, _ as J, Y as Q, O as X, D as Y, V as Z, W as $, Q as ee, r as ae, s as se, U as te, L as oe, n as re, g as ue, k as ne, J as ie, l as ce, c as Pe, o as pe, P as fe, b as Se, e as be, K as de, H as ge, a as ye, u as le, I as me, M as he } from "./notification-6D5hA7Bp.js";
|
|
5
|
-
export {
|
|
6
|
-
s as BackTop,
|
|
7
|
-
t as Copyright,
|
|
8
|
-
o as Layout,
|
|
9
|
-
r as LayoutContent,
|
|
10
|
-
u as LayoutHeader,
|
|
11
|
-
n as LayoutProvider,
|
|
12
|
-
i as Logo,
|
|
13
|
-
c as Menu,
|
|
14
|
-
P as NotAllowed,
|
|
15
|
-
p as PageHeader,
|
|
16
|
-
f as PageMain,
|
|
17
|
-
w as PassStrengthValidator,
|
|
18
|
-
S as PubinfoApp,
|
|
19
|
-
G as PubinfoIcon,
|
|
20
|
-
M as PubinfoProvider,
|
|
21
|
-
b as SettingBar,
|
|
22
|
-
d as Sidebar,
|
|
23
|
-
g as Tools,
|
|
24
|
-
y as Topbar,
|
|
25
|
-
l as asyncFlatten,
|
|
26
|
-
m as cleanup,
|
|
27
|
-
h as cleanupWithoutUser,
|
|
28
|
-
E as compilePublicKey,
|
|
29
|
-
H as constantRoutes,
|
|
30
|
-
v as createAuthGuard,
|
|
31
|
-
T as createBasicGuard,
|
|
32
|
-
x as createInjectionKey,
|
|
33
|
-
A as createPubinfo,
|
|
34
|
-
U as createPubinfoContext,
|
|
35
|
-
N as createPubinfoProvider,
|
|
36
|
-
L as createSettingGuard,
|
|
37
|
-
_ as defineAsyncRoutes,
|
|
38
|
-
z as defineSettings,
|
|
39
|
-
O as encryptWithPublicKey,
|
|
40
|
-
V as eventBus,
|
|
41
|
-
q as getAsyncRoutes,
|
|
42
|
-
J as getEncryptedData,
|
|
43
|
-
Q as getPem,
|
|
44
|
-
X as getSettings,
|
|
45
|
-
Y as hooks,
|
|
46
|
-
Z as normalizePrimitiveToFunction,
|
|
47
|
-
$ as objectToPaths,
|
|
48
|
-
W as pubinfoInjectionKey,
|
|
49
|
-
ee as readProject,
|
|
50
|
-
ae as resolveRoutePath,
|
|
51
|
-
R as setupLayout,
|
|
52
|
-
j as setupRouterGuard,
|
|
53
|
-
C as setupStore,
|
|
54
|
-
se as storage,
|
|
55
|
-
te as systemRoutes,
|
|
56
|
-
I as useAuth,
|
|
57
|
-
oe as useBox,
|
|
58
|
-
re as useError,
|
|
59
|
-
ue as useFavoritesStore,
|
|
60
|
-
ne as useIframeStore,
|
|
61
|
-
ie as useInfo,
|
|
62
|
-
ce as useKeepAliveStore,
|
|
63
|
-
Pe as useMenuStore,
|
|
64
|
-
pe as useNotificationStore,
|
|
65
|
-
fe as usePubinfoContext,
|
|
66
|
-
Se as useRouteStore,
|
|
67
|
-
be as useSettingsStore,
|
|
68
|
-
de as useStart,
|
|
69
|
-
ge as useSuccess,
|
|
70
|
-
ye as useTabbarStore,
|
|
71
|
-
K as useTheme,
|
|
72
|
-
le as useUserStore,
|
|
73
|
-
me as useWarn,
|
|
74
|
-
he as watchDiffObject,
|
|
75
|
-
k as watermark
|
|
76
|
-
};
|
package/es/interface.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Pinia } from 'pinia';
|
|
2
|
-
import { App } from 'vue';
|
|
3
|
-
import { Router, RouterOptions as VueRouterOptions } from 'vue-router';
|
|
4
|
-
type PartialKeys<T, Keys extends keyof T> = Omit<T, Keys> & Partial<Pick<T, Keys>>;
|
|
5
|
-
export type RouterOptions = PartialKeys<VueRouterOptions, 'history'> & {
|
|
6
|
-
base?: string;
|
|
7
|
-
};
|
|
8
|
-
export interface Context {
|
|
9
|
-
app: App<Element>;
|
|
10
|
-
store: Pinia;
|
|
11
|
-
router: Router;
|
|
12
|
-
}
|
|
13
|
-
export interface Options {
|
|
14
|
-
rootContainer?: string | Element;
|
|
15
|
-
immediate?: boolean;
|
|
16
|
-
modules?: ModuleOptions[];
|
|
17
|
-
hooks?: Partial<Hooks>;
|
|
18
|
-
}
|
|
19
|
-
export interface Module {
|
|
20
|
-
name: string;
|
|
21
|
-
setup?: (ctx: Context) => void;
|
|
22
|
-
enforce?: 'pre' | 'post';
|
|
23
|
-
hooks?: Partial<Hooks>;
|
|
24
|
-
}
|
|
25
|
-
export type FalsyModule = false | null | undefined;
|
|
26
|
-
export type ModuleOptions = Module | ModuleOptions[] | FalsyModule;
|
|
27
|
-
export interface Hooks {
|
|
28
|
-
}
|
|
29
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
declare function __VLS_template(): {
|
|
2
|
-
attrs: Partial<{}>;
|
|
3
|
-
slots: {
|
|
4
|
-
header?(_: {}): any;
|
|
5
|
-
topbar?(_: {}): any;
|
|
6
|
-
default?(_: {}): any;
|
|
7
|
-
footer?(_: {}): any;
|
|
8
|
-
};
|
|
9
|
-
refs: {};
|
|
10
|
-
rootEl: any;
|
|
11
|
-
};
|
|
12
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
-
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
14
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
|
-
export default _default;
|
|
16
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
17
|
-
new (): {
|
|
18
|
-
$slots: S;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
@@ -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,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
-
export default _default;
|
package/es/route/async.d.ts
DELETED
package/es/route/routes.d.ts
DELETED
|
@@ -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;
|