@pubinfo/core 2.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/AppSetting-BXQHV5F8.js +125 -0
- package/es/HButton.vue_vue_type_script_setup_true_lang-CYAzn9Mg.js +25 -0
- package/es/HCheckList.vue_vue_type_script_setup_true_lang-DanhyVxU.js +41 -0
- package/es/HDivider-DgXBhPr0.js +21 -0
- package/es/HInput.vue_vue_type_script_setup_true_lang-DBqCXRnn.js +33 -0
- package/es/HToggle-Cd71WKvG.js +34 -0
- package/es/PreferencesContent-CQkwkQ_1.js +972 -0
- package/es/SettingBreadcrumb-Bp_66IFN.js +50 -0
- package/es/SettingCopyright-BPSnoTQb.js +62 -0
- package/es/SettingEnableTransition-Rx2-0Wxj.js +78 -0
- package/es/SettingHome-BW27PQqs.js +55 -0
- package/es/SettingMenu-D5gdNfal.js +120 -0
- package/es/SettingMode-B4_HGVez.js +69 -0
- package/es/SettingNavSearch-CRovYxzh.js +46 -0
- package/es/SettingOther-D0zo11vM.js +81 -0
- package/es/SettingPage-B8GHuoKV.js +29 -0
- package/es/SettingTabbar-Cn_QzvA8.js +154 -0
- package/es/SettingThemes-D_DpEncn.js +144 -0
- package/es/SettingToolbar-Csl2gnfi.js +85 -0
- package/es/SettingTopbar-CaHjQULM.js +52 -0
- package/es/SettingWidthMode-BGiP7gTw.js +68 -0
- package/es/TopThinMode-DWm0oY5Y.js +35 -0
- package/es/_...all_-DI_QAUox.js +52 -0
- package/es/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/es/api/enum/code.d.ts +67 -0
- package/es/api/helper.d.ts +32 -0
- package/es/api/index.d.ts +12 -0
- package/es/api/interface.d.ts +14 -0
- package/es/api/modules/auth/index.d.ts +1 -0
- package/es/api/modules/auth/renzhengfuwu.d.ts +50 -0
- package/es/api/modules/configData/heibaimingdanfuwu.d.ts +36 -0
- package/es/api/modules/configData/index.d.ts +3 -0
- package/es/api/modules/configData/xitongpeizhifuwu.d.ts +99 -0
- package/es/api/modules/configData/zidianfuwu.d.ts +71 -0
- package/es/api/modules/rbac/gangweijiekou.d.ts +43 -0
- package/es/api/modules/rbac/index.d.ts +11 -0
- package/es/api/modules/rbac/jiaosejiekou.d.ts +50 -0
- package/es/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +43 -0
- package/es/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +64 -0
- package/es/api/modules/rbac/yonghujiekou.d.ts +106 -0
- package/es/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +36 -0
- package/es/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +29 -0
- package/es/api/modules/rbac/ziyuanjiekou.d.ts +85 -0
- package/es/api/modules/rbac/zuhuguanlijiekou.d.ts +36 -0
- package/es/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +29 -0
- package/es/api/modules/rbac/zuzhijiekou.d.ts +64 -0
- package/es/api/request.d.ts +2 -0
- package/es/api/system/app.d.ts +17 -0
- package/es/api/system/user.d.ts +24 -0
- package/es/assets/styles/index.d.ts +6 -0
- package/es/colors-oRlAXMUC.js +25 -0
- package/es/components/NotAllowed/index.vue.d.ts +2 -0
- package/es/components/PageHeader/index.vue.d.ts +23 -0
- package/es/components/PageMain/index.vue.d.ts +27 -0
- package/es/components/PassStrengthValidator/index.vue.d.ts +26 -0
- package/es/components/PassStrengthValidator/rule.vue.d.ts +8 -0
- package/es/components/PubinfoApp/index.vue.d.ts +2 -0
- package/es/components/PubinfoIcon/index.vue.d.ts +10 -0
- package/es/components/PubinfoProvider/index.d.ts +8 -0
- package/es/components/index.d.ts +8 -0
- package/es/composables/auth.d.ts +8 -0
- package/es/composables/index.d.ts +4 -0
- package/es/composables/log.d.ts +6 -0
- package/es/composables/theme.d.ts +3 -0
- package/es/composables/watchDiff.d.ts +2 -0
- package/es/config/index.d.ts +1 -0
- package/es/config/settings.d.ts +3 -0
- package/es/context.d.ts +14 -0
- package/es/create.d.ts +3 -0
- package/es/directives/index.d.ts +4 -0
- package/es/directives/plugins/permission.d.ts +6 -0
- package/es/index-B9I6Pru6.js +276 -0
- package/es/index-BHkrq701.js +137 -0
- package/es/index-BkqnOkyO.js +49 -0
- package/es/index-BvVAS3S-.js +35841 -0
- package/es/index-ChOUZNbk.js +354 -0
- package/es/index-D8eeneI_.js +271 -0
- package/es/index-DTQQt_XY.js +10 -0
- package/es/index-Dav3jQVP.js +8228 -0
- package/es/index-DvHnVMX5.js +12913 -0
- package/es/index-P2cA5UeU.js +230 -0
- package/es/index.d.ts +11 -0
- package/es/index.js +76 -0
- package/es/index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-BBe8CvCV.js +2300 -0
- package/es/interface.d.ts +29 -0
- package/es/layout/Layout.vue.d.ts +20 -0
- package/es/layout/components/BackTop/index.vue.d.ts +2 -0
- package/es/layout/components/Content/IframeView.vue.d.ts +4 -0
- package/es/layout/components/Content/LinkView.vue.d.ts +2 -0
- package/es/layout/components/Content/index.vue.d.ts +2 -0
- package/es/layout/components/Copyright/index.vue.d.ts +2 -0
- package/es/layout/components/Header/TopMode/More.vue.d.ts +26 -0
- package/es/layout/components/Header/TopMode/NotCursor.vue.d.ts +25 -0
- package/es/layout/components/Header/TopMode/index.vue.d.ts +4 -0
- package/es/layout/components/Header/TopThinMode.vue.d.ts +4 -0
- package/es/layout/components/Header/index.vue.d.ts +19 -0
- package/es/layout/components/Logo/index.vue.d.ts +26 -0
- package/es/layout/components/Menu/index.vue.d.ts +10 -0
- package/es/layout/components/Menu/item.vue.d.ts +11 -0
- package/es/layout/components/Menu/sub.vue.d.ts +219 -0
- package/es/layout/components/Menu/types.d.ts +42 -0
- package/es/layout/components/SettingBar/AppSetting.vue.d.ts +12 -0
- package/es/layout/components/SettingBar/components/DayNightToggle.vue.d.ts +9 -0
- package/es/layout/components/SettingBar/components/SettingBreadcrumb.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingCopyright.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingEnableTransition.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingHome.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingMenu.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingMode.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingNavSearch.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingOther.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingPage.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingTabbar.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingThemes.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingToolbar.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingTopbar.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/components/SettingWidthMode.vue.d.ts +2 -0
- package/es/layout/components/SettingBar/index.vue.d.ts +2 -0
- package/es/layout/components/Sidebar/MainSidebar.vue.d.ts +2 -0
- package/es/layout/components/Sidebar/SubSidebar.vue.d.ts +2 -0
- package/es/layout/components/Sidebar/index.vue.d.ts +2 -0
- package/es/layout/components/Tools/Breadcrumb/index.vue.d.ts +17 -0
- package/es/layout/components/Tools/Breadcrumb/item.vue.d.ts +25 -0
- package/es/layout/components/Tools/DayNightSwitch.vue.d.ts +2 -0
- package/es/layout/components/Tools/HotkeysIntro.vue.d.ts +4 -0
- package/es/layout/components/Tools/Preferences/PreferencesContent.vue.d.ts +2 -0
- package/es/layout/components/Tools/Preferences/index.vue.d.ts +4 -0
- package/es/layout/components/Tools/Search.vue.d.ts +199 -0
- package/es/layout/components/Tools/index.vue.d.ts +233 -0
- package/es/layout/components/Topbar/Tabbar/MoreAction.vue.d.ts +217 -0
- package/es/layout/components/Topbar/Tabbar/index.vue.d.ts +14 -0
- package/es/layout/components/Topbar/Toolbar/Favorites.vue.d.ts +4 -0
- package/es/layout/components/Topbar/Toolbar/Star.vue.d.ts +2 -0
- package/es/layout/components/Topbar/Toolbar/index.vue.d.ts +2 -0
- package/es/layout/components/Topbar/index.vue.d.ts +2 -0
- package/es/layout/composables/useContext.d.ts +18 -0
- package/es/layout/composables/useGetComputedStyle.d.ts +15 -0
- package/es/layout/composables/useHotkey.d.ts +5 -0
- package/es/layout/composables/useMainPage.d.ts +14 -0
- package/es/layout/composables/useMenu.d.ts +8 -0
- package/es/layout/composables/useTabbar.d.ts +14 -0
- package/es/layout/composables/useTitle.d.ts +3 -0
- package/es/layout/composables/useViewTransition.d.ts +3 -0
- package/es/layout/composables/useWatermark.d.ts +4 -0
- package/es/layout/index.d.ts +19 -0
- package/es/layout/provider.d.ts +1 -0
- package/es/layout/ui-kit/HBadge.vue.d.ts +20 -0
- package/es/layout/ui-kit/HButton.vue.d.ts +26 -0
- package/es/layout/ui-kit/HCheckList.vue.d.ts +20 -0
- package/es/layout/ui-kit/HDialog.vue.d.ts +28 -0
- package/es/layout/ui-kit/HDivider.vue.d.ts +20 -0
- package/es/layout/ui-kit/HDropdown.vue.d.ts +18 -0
- package/es/layout/ui-kit/HDropdownMenu.vue.d.ts +26 -0
- package/es/layout/ui-kit/HDropdownTree.vue.d.ts +32 -0
- package/es/layout/ui-kit/HInput.vue.d.ts +17 -0
- package/es/layout/ui-kit/HKbd.vue.d.ts +17 -0
- package/es/layout/ui-kit/HSelect.vue.d.ts +17 -0
- package/es/layout/ui-kit/HSlideover.vue.d.ts +30 -0
- package/es/layout/ui-kit/HTabList.vue.d.ts +22 -0
- package/es/layout/ui-kit/HToggle.vue.d.ts +14 -0
- package/es/layout/ui-kit/HTooltip.vue.d.ts +23 -0
- package/es/locales/index.d.ts +301 -0
- package/es/locales/lang/en.json.d.ts +99 -0
- package/es/locales/lang/zh-cn.json.d.ts +100 -0
- package/es/locales/lang/zh-tw.json.d.ts +100 -0
- package/es/locales/ui.d.ts +3 -0
- package/es/modules.d.ts +11 -0
- package/es/notification-6D5hA7Bp.js +15347 -0
- package/es/pages/personal/profile/index.vue.d.ts +2 -0
- package/es/pages/system/[...all].vue.d.ts +2 -0
- package/es/pages/system/change-organization/index.vue.d.ts +2 -0
- package/es/pages/system/change-password/components/ChangePasswordForm/index.vue.d.ts +18 -0
- package/es/pages/system/change-password/index.vue.d.ts +31 -0
- package/es/pages/system/index.vue.d.ts +2 -0
- package/es/pages/system/not-permission/index.vue.d.ts +2 -0
- package/es/pages/system/reload.vue.d.ts +2 -0
- package/es/pick-Br-UKn7B.js +19 -0
- package/es/question-line-CfkciTFq.js +18 -0
- package/es/reload-CUcPYtl7.js +14 -0
- package/es/request.js +1811 -0
- package/es/right-Bfe2p1o0.js +36 -0
- package/es/route/async.d.ts +9 -0
- package/es/route/guard/auth.d.ts +3 -0
- package/es/route/guard/basic.d.ts +3 -0
- package/es/route/guard/index.d.ts +3 -0
- package/es/route/guard/setting.d.ts +3 -0
- package/es/route/index.d.ts +7 -0
- package/es/route/routes.d.ts +3 -0
- package/es/stores/enum/index.d.ts +20 -0
- package/es/stores/helper.d.ts +2 -0
- package/es/stores/index.d.ts +5 -0
- package/es/stores/modules/favorites.d.ts +32 -0
- package/es/stores/modules/iframe.d.ts +41 -0
- package/es/stores/modules/index.d.ts +9 -0
- package/es/stores/modules/keepAlive.d.ts +23 -0
- package/es/stores/modules/menu.d.ts +32 -0
- package/es/stores/modules/notification.d.ts +18 -0
- package/es/stores/modules/route.d.ts +42 -0
- package/es/stores/modules/settings.d.ts +85 -0
- package/es/stores/modules/tabbar.d.ts +59 -0
- package/es/stores/modules/user.d.ts +3 -0
- package/es/stores/plugin/persist.d.ts +5 -0
- package/es/stores/plugin/sideEffect/cleanup.d.ts +5 -0
- package/es/stores/plugin/sideEffect/favoritesStorage.d.ts +5 -0
- package/es/stores/plugin/sideEffect/iframeCache.d.ts +5 -0
- package/es/stores/plugin/sideEffect/index.d.ts +5 -0
- package/es/stores/plugin/sideEffect/tabbarStorage.d.ts +5 -0
- package/es/style.css +9 -0
- package/es/utils/cleanup.d.ts +8 -0
- package/es/utils/crypto.d.ts +4 -0
- package/es/utils/eventBus.d.ts +5 -0
- package/es/utils/index.d.ts +14 -0
- package/es/utils/injectionKeys.d.ts +2 -0
- package/es/utils/storage.d.ts +21 -0
- package/es/utils/utils.d.ts +3 -0
- package/es/utils/watermark.d.ts +51 -0
- package/lib/AppSetting-CCiwpjoq.cjs +1 -0
- package/lib/HButton.vue_vue_type_script_setup_true_lang-D-XkyoXl.cjs +1 -0
- package/lib/HCheckList.vue_vue_type_script_setup_true_lang-DwA8einQ.cjs +1 -0
- package/lib/HDivider-DCfDgE8l.cjs +1 -0
- package/lib/HInput.vue_vue_type_script_setup_true_lang-CwS0mGyL.cjs +1 -0
- package/lib/HToggle-BP6YYf-s.cjs +1 -0
- package/lib/PreferencesContent-DgL-Jc_J.cjs +3 -0
- package/lib/SettingBreadcrumb-BQ78yEP4.cjs +1 -0
- package/lib/SettingCopyright-x7aPlkQy.cjs +1 -0
- package/lib/SettingEnableTransition-CD3-44Iy.cjs +1 -0
- package/lib/SettingHome-u52oz6i8.cjs +1 -0
- package/lib/SettingMenu-DsElOvvv.cjs +1 -0
- package/lib/SettingMode-C_kgpTxw.cjs +1 -0
- package/lib/SettingNavSearch-3auTi8UW.cjs +1 -0
- package/lib/SettingOther-6XGQq7OA.cjs +1 -0
- package/lib/SettingPage-C8yIHpLc.cjs +1 -0
- package/lib/SettingTabbar-K-nHb89z.cjs +1 -0
- package/lib/SettingThemes-BeNwFz7K.cjs +1 -0
- package/lib/SettingToolbar-Be1V7lwV.cjs +1 -0
- package/lib/SettingTopbar-C-j8O3c8.cjs +1 -0
- package/lib/SettingWidthMode-GMjAF-s3.cjs +1 -0
- package/lib/TopThinMode-DGUvyHT2.cjs +1 -0
- package/lib/_...all_-C4CXjAo9.cjs +1 -0
- package/lib/_plugin-vue_export-helper-BHFhmbuH.cjs +1 -0
- package/lib/api/enum/code.d.ts +67 -0
- package/lib/api/helper.d.ts +32 -0
- package/lib/api/index.d.ts +12 -0
- package/lib/api/interface.d.ts +14 -0
- package/lib/api/modules/auth/index.d.ts +1 -0
- package/lib/api/modules/auth/renzhengfuwu.d.ts +50 -0
- package/lib/api/modules/configData/heibaimingdanfuwu.d.ts +36 -0
- package/lib/api/modules/configData/index.d.ts +3 -0
- package/lib/api/modules/configData/xitongpeizhifuwu.d.ts +99 -0
- package/lib/api/modules/configData/zidianfuwu.d.ts +71 -0
- package/lib/api/modules/rbac/gangweijiekou.d.ts +43 -0
- package/lib/api/modules/rbac/index.d.ts +11 -0
- package/lib/api/modules/rbac/jiaosejiekou.d.ts +50 -0
- package/lib/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +43 -0
- package/lib/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +64 -0
- package/lib/api/modules/rbac/yonghujiekou.d.ts +106 -0
- package/lib/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +36 -0
- package/lib/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +29 -0
- package/lib/api/modules/rbac/ziyuanjiekou.d.ts +85 -0
- package/lib/api/modules/rbac/zuhuguanlijiekou.d.ts +36 -0
- package/lib/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +29 -0
- package/lib/api/modules/rbac/zuzhijiekou.d.ts +64 -0
- package/lib/api/request.d.ts +2 -0
- package/lib/api/system/app.d.ts +17 -0
- package/lib/api/system/user.d.ts +24 -0
- package/lib/assets/styles/index.d.ts +6 -0
- package/lib/colors-KAaBT84S.cjs +1 -0
- package/lib/components/NotAllowed/index.vue.d.ts +2 -0
- package/lib/components/PageHeader/index.vue.d.ts +23 -0
- package/lib/components/PageMain/index.vue.d.ts +27 -0
- package/lib/components/PassStrengthValidator/index.vue.d.ts +26 -0
- package/lib/components/PassStrengthValidator/rule.vue.d.ts +8 -0
- package/lib/components/PubinfoApp/index.vue.d.ts +2 -0
- package/lib/components/PubinfoIcon/index.vue.d.ts +10 -0
- package/lib/components/PubinfoProvider/index.d.ts +8 -0
- package/lib/components/index.d.ts +8 -0
- package/lib/composables/auth.d.ts +8 -0
- package/lib/composables/index.d.ts +4 -0
- package/lib/composables/log.d.ts +6 -0
- package/lib/composables/theme.d.ts +3 -0
- package/lib/composables/watchDiff.d.ts +2 -0
- package/lib/config/index.d.ts +1 -0
- package/lib/config/settings.d.ts +3 -0
- package/lib/context.d.ts +14 -0
- package/lib/create.d.ts +3 -0
- package/lib/directives/index.d.ts +4 -0
- package/lib/directives/plugins/permission.d.ts +6 -0
- package/lib/index-38bsQrho.cjs +1 -0
- package/lib/index-BEqD62a0.cjs +1 -0
- package/lib/index-Bbm9CQRP.cjs +1 -0
- package/lib/index-BqHsuJkr.cjs +1 -0
- package/lib/index-JZl6Zh3L.cjs +44 -0
- package/lib/index-VGR0Mt4q.cjs +240 -0
- package/lib/index-WMo0GAa6.cjs +1 -0
- package/lib/index-_YsHduAE.cjs +1 -0
- package/lib/index-gr8kFwPx.cjs +18 -0
- package/lib/index-zvGq9tSu.cjs +1 -0
- package/lib/index.cjs +1 -0
- package/lib/index.d.ts +11 -0
- package/lib/index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-SCJ5qyPu.cjs +1 -0
- package/lib/interface.d.ts +29 -0
- package/lib/layout/Layout.vue.d.ts +20 -0
- package/lib/layout/components/BackTop/index.vue.d.ts +2 -0
- package/lib/layout/components/Content/IframeView.vue.d.ts +4 -0
- package/lib/layout/components/Content/LinkView.vue.d.ts +2 -0
- package/lib/layout/components/Content/index.vue.d.ts +2 -0
- package/lib/layout/components/Copyright/index.vue.d.ts +2 -0
- package/lib/layout/components/Header/TopMode/More.vue.d.ts +26 -0
- package/lib/layout/components/Header/TopMode/NotCursor.vue.d.ts +25 -0
- package/lib/layout/components/Header/TopMode/index.vue.d.ts +4 -0
- package/lib/layout/components/Header/TopThinMode.vue.d.ts +4 -0
- package/lib/layout/components/Header/index.vue.d.ts +19 -0
- package/lib/layout/components/Logo/index.vue.d.ts +26 -0
- package/lib/layout/components/Menu/index.vue.d.ts +10 -0
- package/lib/layout/components/Menu/item.vue.d.ts +11 -0
- package/lib/layout/components/Menu/sub.vue.d.ts +219 -0
- package/lib/layout/components/Menu/types.d.ts +42 -0
- package/lib/layout/components/SettingBar/AppSetting.vue.d.ts +12 -0
- package/lib/layout/components/SettingBar/components/DayNightToggle.vue.d.ts +9 -0
- package/lib/layout/components/SettingBar/components/SettingBreadcrumb.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingCopyright.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingEnableTransition.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingHome.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingMenu.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingMode.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingNavSearch.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingOther.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingPage.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingTabbar.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingThemes.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingToolbar.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingTopbar.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/components/SettingWidthMode.vue.d.ts +2 -0
- package/lib/layout/components/SettingBar/index.vue.d.ts +2 -0
- package/lib/layout/components/Sidebar/MainSidebar.vue.d.ts +2 -0
- package/lib/layout/components/Sidebar/SubSidebar.vue.d.ts +2 -0
- package/lib/layout/components/Sidebar/index.vue.d.ts +2 -0
- package/lib/layout/components/Tools/Breadcrumb/index.vue.d.ts +17 -0
- package/lib/layout/components/Tools/Breadcrumb/item.vue.d.ts +25 -0
- package/lib/layout/components/Tools/DayNightSwitch.vue.d.ts +2 -0
- package/lib/layout/components/Tools/HotkeysIntro.vue.d.ts +4 -0
- package/lib/layout/components/Tools/Preferences/PreferencesContent.vue.d.ts +2 -0
- package/lib/layout/components/Tools/Preferences/index.vue.d.ts +4 -0
- package/lib/layout/components/Tools/Search.vue.d.ts +199 -0
- package/lib/layout/components/Tools/index.vue.d.ts +233 -0
- package/lib/layout/components/Topbar/Tabbar/MoreAction.vue.d.ts +217 -0
- package/lib/layout/components/Topbar/Tabbar/index.vue.d.ts +14 -0
- package/lib/layout/components/Topbar/Toolbar/Favorites.vue.d.ts +4 -0
- package/lib/layout/components/Topbar/Toolbar/Star.vue.d.ts +2 -0
- package/lib/layout/components/Topbar/Toolbar/index.vue.d.ts +2 -0
- package/lib/layout/components/Topbar/index.vue.d.ts +2 -0
- package/lib/layout/composables/useContext.d.ts +18 -0
- package/lib/layout/composables/useGetComputedStyle.d.ts +15 -0
- package/lib/layout/composables/useHotkey.d.ts +5 -0
- package/lib/layout/composables/useMainPage.d.ts +14 -0
- package/lib/layout/composables/useMenu.d.ts +8 -0
- package/lib/layout/composables/useTabbar.d.ts +14 -0
- package/lib/layout/composables/useTitle.d.ts +3 -0
- package/lib/layout/composables/useViewTransition.d.ts +3 -0
- package/lib/layout/composables/useWatermark.d.ts +4 -0
- package/lib/layout/index.d.ts +19 -0
- package/lib/layout/provider.d.ts +1 -0
- package/lib/layout/ui-kit/HBadge.vue.d.ts +20 -0
- package/lib/layout/ui-kit/HButton.vue.d.ts +26 -0
- package/lib/layout/ui-kit/HCheckList.vue.d.ts +20 -0
- package/lib/layout/ui-kit/HDialog.vue.d.ts +28 -0
- package/lib/layout/ui-kit/HDivider.vue.d.ts +20 -0
- package/lib/layout/ui-kit/HDropdown.vue.d.ts +18 -0
- package/lib/layout/ui-kit/HDropdownMenu.vue.d.ts +26 -0
- package/lib/layout/ui-kit/HDropdownTree.vue.d.ts +32 -0
- package/lib/layout/ui-kit/HInput.vue.d.ts +17 -0
- package/lib/layout/ui-kit/HKbd.vue.d.ts +17 -0
- package/lib/layout/ui-kit/HSelect.vue.d.ts +17 -0
- package/lib/layout/ui-kit/HSlideover.vue.d.ts +30 -0
- package/lib/layout/ui-kit/HTabList.vue.d.ts +22 -0
- package/lib/layout/ui-kit/HToggle.vue.d.ts +14 -0
- package/lib/layout/ui-kit/HTooltip.vue.d.ts +23 -0
- package/lib/locales/index.d.ts +301 -0
- package/lib/locales/lang/en.json.d.ts +99 -0
- package/lib/locales/lang/zh-cn.json.d.ts +100 -0
- package/lib/locales/lang/zh-tw.json.d.ts +100 -0
- package/lib/locales/ui.d.ts +3 -0
- package/lib/modules.d.ts +11 -0
- package/lib/notification-IZqPm_OK.cjs +199 -0
- package/lib/pages/personal/profile/index.vue.d.ts +2 -0
- package/lib/pages/system/[...all].vue.d.ts +2 -0
- package/lib/pages/system/change-organization/index.vue.d.ts +2 -0
- package/lib/pages/system/change-password/components/ChangePasswordForm/index.vue.d.ts +18 -0
- package/lib/pages/system/change-password/index.vue.d.ts +31 -0
- package/lib/pages/system/index.vue.d.ts +2 -0
- package/lib/pages/system/not-permission/index.vue.d.ts +2 -0
- package/lib/pages/system/reload.vue.d.ts +2 -0
- package/lib/pick-y2yLda1R.cjs +1 -0
- package/lib/question-line-Cd0CU4hr.cjs +1 -0
- package/lib/reload-6L7Dzs7h.cjs +1 -0
- package/lib/request.cjs +6 -0
- package/lib/right-C5JQ_uRB.cjs +1 -0
- package/lib/route/async.d.ts +9 -0
- package/lib/route/guard/auth.d.ts +3 -0
- package/lib/route/guard/basic.d.ts +3 -0
- package/lib/route/guard/index.d.ts +3 -0
- package/lib/route/guard/setting.d.ts +3 -0
- package/lib/route/index.d.ts +7 -0
- package/lib/route/routes.d.ts +3 -0
- package/lib/stores/enum/index.d.ts +20 -0
- package/lib/stores/helper.d.ts +2 -0
- package/lib/stores/index.d.ts +5 -0
- package/lib/stores/modules/favorites.d.ts +32 -0
- package/lib/stores/modules/iframe.d.ts +41 -0
- package/lib/stores/modules/index.d.ts +9 -0
- package/lib/stores/modules/keepAlive.d.ts +23 -0
- package/lib/stores/modules/menu.d.ts +32 -0
- package/lib/stores/modules/notification.d.ts +18 -0
- package/lib/stores/modules/route.d.ts +42 -0
- package/lib/stores/modules/settings.d.ts +85 -0
- package/lib/stores/modules/tabbar.d.ts +59 -0
- package/lib/stores/modules/user.d.ts +3 -0
- package/lib/stores/plugin/persist.d.ts +5 -0
- package/lib/stores/plugin/sideEffect/cleanup.d.ts +5 -0
- package/lib/stores/plugin/sideEffect/favoritesStorage.d.ts +5 -0
- package/lib/stores/plugin/sideEffect/iframeCache.d.ts +5 -0
- package/lib/stores/plugin/sideEffect/index.d.ts +5 -0
- package/lib/stores/plugin/sideEffect/tabbarStorage.d.ts +5 -0
- package/lib/style.css +9 -0
- package/lib/utils/cleanup.d.ts +8 -0
- package/lib/utils/crypto.d.ts +4 -0
- package/lib/utils/eventBus.d.ts +5 -0
- package/lib/utils/index.d.ts +14 -0
- package/lib/utils/injectionKeys.d.ts +2 -0
- package/lib/utils/storage.d.ts +21 -0
- package/lib/utils/utils.d.ts +3 -0
- package/lib/utils/watermark.d.ts +51 -0
- package/package.json +101 -0
- package/src/api/enum/code.ts +78 -0
- package/src/api/helper.ts +64 -0
- package/src/api/index.ts +75 -0
- package/src/api/interface.ts +15 -0
- package/src/api/modules/auth/index.ts +3 -0
- package/src/api/modules/auth/renzhengfuwu.ts +131 -0
- package/src/api/modules/auth/typings.d.ts +97 -0
- package/src/api/modules/configData/heibaimingdanfuwu.ts +95 -0
- package/src/api/modules/configData/index.ts +5 -0
- package/src/api/modules/configData/typings.d.ts +357 -0
- package/src/api/modules/configData/xitongpeizhifuwu.ts +322 -0
- package/src/api/modules/configData/zidianfuwu.ts +193 -0
- package/src/api/modules/rbac/gangweijiekou.ts +114 -0
- package/src/api/modules/rbac/index.ts +13 -0
- package/src/api/modules/rbac/jiaosejiekou.ts +124 -0
- package/src/api/modules/rbac/pubJiaosezukongzhiqi.ts +113 -0
- package/src/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.ts +186 -0
- package/src/api/modules/rbac/typings.d.ts +2030 -0
- package/src/api/modules/rbac/yonghujiekou.ts +294 -0
- package/src/api/modules/rbac/yonghushoucangbiaojiekou.ts +93 -0
- package/src/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.ts +72 -0
- package/src/api/modules/rbac/ziyuanjiekou.ts +223 -0
- package/src/api/modules/rbac/zuhuguanlijiekou.ts +91 -0
- package/src/api/modules/rbac/zuzhijiaosebiaokongzhiqi.ts +76 -0
- package/src/api/modules/rbac/zuzhijiekou.ts +171 -0
- package/src/api/request.ts +4 -0
- package/src/api/system/app.ts +28 -0
- package/src/api/system/typings.d.ts +77 -0
- package/src/api/system/user.ts +47 -0
- package/src/assets/fonts/digital-7/digital-7-webfont.eot +0 -0
- package/src/assets/fonts/digital-7/digital-7-webfont.svg +135 -0
- package/src/assets/fonts/digital-7/digital-7-webfont.woff +0 -0
- package/src/assets/fonts/digital-7/digital-7-webfont.woff2 +0 -0
- package/src/assets/fonts/digital-7/stylesheet.css +12 -0
- package/src/assets/fonts/digital-7_mono/digital-7_mono-webfont.eot +0 -0
- package/src/assets/fonts/digital-7_mono/digital-7_mono-webfont.svg +134 -0
- package/src/assets/fonts/digital-7_mono/digital-7_mono-webfont.woff +0 -0
- package/src/assets/fonts/digital-7_mono/digital-7_mono-webfont.woff2 +0 -0
- package/src/assets/fonts/digital-7_mono/stylesheet.css +12 -0
- package/src/assets/fonts/title.otf +0 -0
- package/src/assets/icons/403.svg +1 -0
- package/src/assets/icons/403_dark.svg +1 -0
- package/src/assets/icons/404.svg +1 -0
- package/src/assets/icons/404_dark.svg +1 -0
- package/src/assets/icons/add-child.svg +1 -0
- package/src/assets/icons/authority.svg +1 -0
- package/src/assets/icons/authorize.svg +1 -0
- package/src/assets/icons/blacklist-disable.svg +1 -0
- package/src/assets/icons/blacklist-enable.svg +1 -0
- package/src/assets/icons/browser-360.svg +1 -0
- package/src/assets/icons/browser-chrome.svg +1 -0
- package/src/assets/icons/browser-edge.svg +1 -0
- package/src/assets/icons/browser-ie.svg +1 -0
- package/src/assets/icons/browser-other.svg +1 -0
- package/src/assets/icons/browser-qq.svg +1 -0
- package/src/assets/icons/browser-safari.svg +1 -0
- package/src/assets/icons/browser-uc.svg +1 -0
- package/src/assets/icons/change-org.svg +1 -0
- package/src/assets/icons/edit.svg +1 -0
- package/src/assets/icons/empty-data.svg +1 -0
- package/src/assets/icons/favorites.svg +1 -0
- package/src/assets/icons/icard.svg +1 -0
- package/src/assets/icons/icon_animation.svg +1 -0
- package/src/assets/icons/icon_breadcrumb.svg +1 -0
- package/src/assets/icons/icon_copyright.svg +1 -0
- package/src/assets/icons/icon_jt.svg +1 -0
- package/src/assets/icons/icon_layout.svg +1 -0
- package/src/assets/icons/icon_mainpage.svg +1 -0
- package/src/assets/icons/icon_menu.svg +1 -0
- package/src/assets/icons/icon_page_size.svg +1 -0
- package/src/assets/icons/icon_position_type.svg +1 -0
- package/src/assets/icons/icon_safe_manage.svg +1 -0
- package/src/assets/icons/icon_screen_scale.svg +6 -0
- package/src/assets/icons/icon_system_manage.svg +1 -0
- package/src/assets/icons/icon_tabbar.svg +1 -0
- package/src/assets/icons/icon_toolbar.svg +1 -0
- package/src/assets/icons/icon_topbar.svg +1 -0
- package/src/assets/icons/icon_watermark.svg +1 -0
- package/src/assets/icons/image-load-fail.svg +1 -0
- package/src/assets/icons/log-center.svg +1 -0
- package/src/assets/icons/logo-sig.svg +1 -0
- package/src/assets/icons/mima.svg +1 -0
- package/src/assets/icons/not-data.svg +1 -0
- package/src/assets/icons/org-main.svg +1 -0
- package/src/assets/icons/org-unmain.svg +1 -0
- package/src/assets/icons/process-management.svg +1 -0
- package/src/assets/icons/project-management.svg +1 -0
- package/src/assets/icons/rbac.svg +1 -0
- package/src/assets/icons/remove.svg +1 -0
- package/src/assets/icons/resource-app.svg +1 -0
- package/src/assets/icons/resource-btn.svg +1 -0
- package/src/assets/icons/resource-index.svg +1 -0
- package/src/assets/icons/resource-menu.svg +1 -0
- package/src/assets/icons/resource-nonmenu.svg +1 -0
- package/src/assets/icons/setting-manage.svg +1 -0
- package/src/assets/icons/test.svg +1 -0
- package/src/assets/icons/theme-check-mark.svg +1 -0
- package/src/assets/icons/theme-title.svg +1 -0
- package/src/assets/icons/toolbar-collapse.svg +1 -0
- package/src/assets/icons/tree_icon.svg +1 -0
- package/src/assets/icons/tree_icon_checked.svg +1 -0
- package/src/assets/icons/view.svg +1 -0
- package/src/assets/icons/workbench.svg +1 -0
- package/src/assets/icons/zddata.svg +1 -0
- package/src/assets/icons/zy_checked.svg +1 -0
- package/src/assets/icons/zy_default.svg +1 -0
- package/src/assets/images/change-org-bc.webp +0 -0
- package/src/assets/images/header-bg.png +0 -0
- 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/login-small.png +0 -0
- package/src/assets/images/login-small_dark.webp +0 -0
- package/src/assets/images/logo.png +0 -0
- package/src/assets/images/not-cursor.png +0 -0
- package/src/assets/images/org.svg +19 -0
- package/src/assets/images/page-width/anto_min_w_dark.webp +0 -0
- package/src/assets/images/page-width/auto.webp +0 -0
- package/src/assets/images/page-width/auto_dark.webp +0 -0
- package/src/assets/images/page-width/auto_min_w.webp +0 -0
- package/src/assets/images/page-width/auto_min_w_dark.webp +0 -0
- package/src/assets/images/page-width/icon_auto.webp +0 -0
- package/src/assets/images/page-width/icon_auto_dark.webp +0 -0
- package/src/assets/images/page-width/icon_auto_min_w.webp +0 -0
- package/src/assets/images/page-width/icon_auto_min_w_dark.webp +0 -0
- package/src/assets/images/page-width/icon_middle.webp +0 -0
- package/src/assets/images/page-width/icon_middle_dark.webp +0 -0
- package/src/assets/images/page-width/icon_middle_max_w.webp +0 -0
- package/src/assets/images/page-width/icon_middle_max_w_dark.webp +0 -0
- package/src/assets/images/page-width/middle.webp +0 -0
- package/src/assets/images/page-width/middle_dark.webp +0 -0
- package/src/assets/images/page-width/middle_max_w.webp +0 -0
- package/src/assets/images/page-width/middle_max_w_dark.webp +0 -0
- package/src/assets/images/slider-bg.png +0 -0
- package/src/assets/styles/globals.scss +189 -0
- package/src/assets/styles/index.ts +6 -0
- package/src/assets/styles/nprogress.scss +63 -0
- package/src/assets/styles/rbac.scss +61 -0
- package/src/assets/styles/resources/utils.scss +53 -0
- package/src/assets/styles/resources/variables.scss +6 -0
- package/src/components/NotAllowed/index.vue +76 -0
- package/src/components/PageHeader/index.vue +32 -0
- package/src/components/PageMain/index.vue +51 -0
- package/src/components/PassStrengthValidator/index.vue +213 -0
- package/src/components/PassStrengthValidator/rule.vue +51 -0
- package/src/components/PubinfoApp/index.vue +21 -0
- package/src/components/PubinfoIcon/index.vue +85 -0
- package/src/components/PubinfoProvider/index.ts +34 -0
- package/src/components/index.ts +8 -0
- package/src/composables/auth.ts +53 -0
- package/src/composables/index.ts +4 -0
- package/src/composables/log.ts +44 -0
- package/src/composables/theme.ts +16 -0
- package/src/composables/watchDiff.ts +53 -0
- package/src/config/index.ts +1 -0
- package/src/config/settings.ts +107 -0
- package/src/context.ts +30 -0
- package/src/create.ts +88 -0
- package/src/directives/index.ts +6 -0
- package/src/directives/plugins/permission.ts +23 -0
- package/src/index.ts +12 -0
- package/src/interface.ts +35 -0
- package/src/layout/Layout.vue +330 -0
- package/src/layout/components/BackTop/index.vue +47 -0
- package/src/layout/components/Content/IframeView.vue +120 -0
- package/src/layout/components/Content/LinkView.vue +118 -0
- package/src/layout/components/Content/index.vue +100 -0
- package/src/layout/components/Copyright/index.vue +49 -0
- package/src/layout/components/Header/TopMode/More.vue +103 -0
- package/src/layout/components/Header/TopMode/NotCursor.vue +77 -0
- package/src/layout/components/Header/TopMode/index.vue +151 -0
- package/src/layout/components/Header/TopThinMode.vue +45 -0
- package/src/layout/components/Header/index.vue +263 -0
- package/src/layout/components/Logo/index.vue +70 -0
- package/src/layout/components/Menu/index.vue +195 -0
- package/src/layout/components/Menu/item.vue +166 -0
- package/src/layout/components/Menu/sub.vue +220 -0
- package/src/layout/components/Menu/types.ts +49 -0
- package/src/layout/components/SettingBar/AppSetting.vue +146 -0
- package/src/layout/components/SettingBar/components/DayNightToggle.vue +238 -0
- package/src/layout/components/SettingBar/components/SettingBreadcrumb.vue +42 -0
- package/src/layout/components/SettingBar/components/SettingCopyright.vue +44 -0
- package/src/layout/components/SettingBar/components/SettingEnableTransition.vue +215 -0
- package/src/layout/components/SettingBar/components/SettingHome.vue +33 -0
- package/src/layout/components/SettingBar/components/SettingMenu.vue +108 -0
- package/src/layout/components/SettingBar/components/SettingMode.vue +164 -0
- package/src/layout/components/SettingBar/components/SettingNavSearch.vue +30 -0
- package/src/layout/components/SettingBar/components/SettingOther.vue +53 -0
- package/src/layout/components/SettingBar/components/SettingPage.vue +20 -0
- package/src/layout/components/SettingBar/components/SettingTabbar.vue +70 -0
- package/src/layout/components/SettingBar/components/SettingThemes.vue +202 -0
- package/src/layout/components/SettingBar/components/SettingToolbar.vue +54 -0
- package/src/layout/components/SettingBar/components/SettingTopbar.vue +37 -0
- package/src/layout/components/SettingBar/components/SettingWidthMode.vue +149 -0
- package/src/layout/components/SettingBar/index.vue +112 -0
- package/src/layout/components/Sidebar/MainSidebar.vue +240 -0
- package/src/layout/components/Sidebar/SubSidebar.vue +165 -0
- package/src/layout/components/Sidebar/index.vue +13 -0
- package/src/layout/components/Tools/Breadcrumb/index.vue +21 -0
- package/src/layout/components/Tools/Breadcrumb/item.vue +44 -0
- package/src/layout/components/Tools/DayNightSwitch.vue +93 -0
- package/src/layout/components/Tools/HotkeysIntro.vue +103 -0
- package/src/layout/components/Tools/I18nSelector.vue +52 -0
- package/src/layout/components/Tools/Notification.vue +152 -0
- package/src/layout/components/Tools/Preferences/PreferencesContent.vue +722 -0
- package/src/layout/components/Tools/Preferences/index.vue +20 -0
- package/src/layout/components/Tools/Search.vue +380 -0
- package/src/layout/components/Tools/index.vue +241 -0
- package/src/layout/components/Topbar/Tabbar/MoreAction.vue +304 -0
- package/src/layout/components/Topbar/Tabbar/index.vue +781 -0
- package/src/layout/components/Topbar/Toolbar/Favorites.vue +138 -0
- package/src/layout/components/Topbar/Toolbar/Star.vue +30 -0
- package/src/layout/components/Topbar/Toolbar/index.vue +307 -0
- package/src/layout/components/Topbar/index.vue +106 -0
- package/src/layout/composables/useContext.ts +38 -0
- package/src/layout/composables/useGetComputedStyle.ts +70 -0
- package/src/layout/composables/useHotkey.ts +49 -0
- package/src/layout/composables/useMainPage.ts +68 -0
- package/src/layout/composables/useMenu.ts +29 -0
- package/src/layout/composables/useTabbar.ts +165 -0
- package/src/layout/composables/useTitle.ts +41 -0
- package/src/layout/composables/useViewTransition.ts +16 -0
- package/src/layout/composables/useWatermark.ts +67 -0
- package/src/layout/index.ts +59 -0
- package/src/layout/provider.ts +61 -0
- package/src/layout/ui-kit/HBadge.vue +41 -0
- package/src/layout/ui-kit/HButton.vue +28 -0
- package/src/layout/ui-kit/HCheckList.vue +49 -0
- package/src/layout/ui-kit/HDialog.vue +108 -0
- package/src/layout/ui-kit/HDivider.vue +53 -0
- package/src/layout/ui-kit/HDropdown.vue +13 -0
- package/src/layout/ui-kit/HDropdownMenu.vue +50 -0
- package/src/layout/ui-kit/HDropdownTree.vue +79 -0
- package/src/layout/ui-kit/HInput.vue +40 -0
- package/src/layout/ui-kit/HKbd.vue +33 -0
- package/src/layout/ui-kit/HSelect.vue +66 -0
- package/src/layout/ui-kit/HSlideover.vue +119 -0
- package/src/layout/ui-kit/HTabList.vue +56 -0
- package/src/layout/ui-kit/HToggle.vue +177 -0
- package/src/layout/ui-kit/HTooltip.vue +21 -0
- package/src/locales/index.ts +80 -0
- package/src/locales/lang/en.json +96 -0
- package/src/locales/lang/zh-cn.json +97 -0
- package/src/locales/lang/zh-tw.json +97 -0
- package/src/locales/ui.ts +3 -0
- package/src/modules.ts +49 -0
- package/src/pages/personal/notification.vue +58 -0
- package/src/pages/personal/profile/index.vue +125 -0
- package/src/pages/system/[...all].vue +74 -0
- package/src/pages/system/change-organization/index.vue +174 -0
- package/src/pages/system/change-password/components/ChangePasswordForm/index.vue +144 -0
- package/src/pages/system/change-password/index.vue +102 -0
- package/src/pages/system/change-password/page.vue +58 -0
- package/src/pages/system/index.vue +5 -0
- package/src/pages/system/not-permission/index.vue +73 -0
- package/src/pages/system/reload.vue +11 -0
- package/src/route/async.ts +18 -0
- package/src/route/guard/auth.ts +92 -0
- package/src/route/guard/basic.ts +23 -0
- package/src/route/guard/index.ts +3 -0
- package/src/route/guard/setting.ts +122 -0
- package/src/route/index.ts +12 -0
- package/src/route/routes.ts +110 -0
- package/src/stores/enum/index.ts +29 -0
- package/src/stores/helper.ts +37 -0
- package/src/stores/index.ts +10 -0
- package/src/stores/modules/favorites.ts +152 -0
- package/src/stores/modules/iframe.ts +114 -0
- package/src/stores/modules/index.ts +9 -0
- package/src/stores/modules/keepAlive.ts +68 -0
- package/src/stores/modules/menu.ts +207 -0
- package/src/stores/modules/notification.ts +34 -0
- package/src/stores/modules/route.ts +435 -0
- package/src/stores/modules/settings.ts +371 -0
- package/src/stores/modules/tabbar.ts +338 -0
- package/src/stores/modules/user.ts +210 -0
- package/src/stores/plugin/persist.ts +27 -0
- package/src/stores/plugin/sideEffect/cleanup.ts +20 -0
- package/src/stores/plugin/sideEffect/favoritesStorage.ts +62 -0
- package/src/stores/plugin/sideEffect/iframeCache.ts +32 -0
- package/src/stores/plugin/sideEffect/index.ts +15 -0
- package/src/stores/plugin/sideEffect/tabbarStorage.ts +98 -0
- package/src/utils/cleanup.ts +20 -0
- package/src/utils/crypto.ts +27 -0
- package/src/utils/eventBus.ts +15 -0
- package/src/utils/index.ts +44 -0
- package/src/utils/injectionKeys.ts +5 -0
- package/src/utils/storage.ts +57 -0
- package/src/utils/utils.ts +12 -0
- package/src/utils/watermark.ts +256 -0
- package/types/auto-imports.d.ts +85 -0
- package/types/components.d.ts +36 -0
- package/types/favorites.d.ts +8 -0
- package/types/iframe.d.ts +8 -0
- package/types/index.d.ts +9 -0
- package/types/menu.d.ts +31 -0
- package/types/module.d.ts +23 -0
- package/types/settings.d.ts +571 -0
- package/types/tabbar.d.ts +23 -0
- package/types/user.d.ts +46 -0
- package/types/vite-env.d.ts +39 -0
- package/types/vue-router.d.ts +68 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function compilePublicKey(key: string): string;
|
|
2
|
+
export declare function getPem(): Promise<string>;
|
|
3
|
+
export declare function encryptWithPublicKey(publicKey: string, data: string): Promise<string>;
|
|
4
|
+
export declare function getEncryptedData(str: string): Promise<string>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Primitive } from 'type-fest';
|
|
2
|
+
type ConditionalExceptType<T extends Record<PropertyKey, any>, Type> = {
|
|
3
|
+
[P in keyof T]: Exclude<T[P], Type>;
|
|
4
|
+
};
|
|
5
|
+
export declare function resolveRoutePath(basePath?: string, routePath?: string): string;
|
|
6
|
+
export declare function normalizePrimitiveToFunction<T extends Record<PropertyKey, any>>(options: T): ConditionalExceptType<T, Primitive>;
|
|
7
|
+
export declare function objectToPaths(obj: Record<string, any>, prefix?: string): string[];
|
|
8
|
+
export * from './cleanup';
|
|
9
|
+
export * from './crypto';
|
|
10
|
+
export { default as eventBus } from './eventBus';
|
|
11
|
+
export * from './injectionKeys';
|
|
12
|
+
export { default as storage } from './storage';
|
|
13
|
+
export * from './utils';
|
|
14
|
+
export { default as watermark } from './watermark';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const storage: {
|
|
2
|
+
local: {
|
|
3
|
+
has: (key: string) => boolean;
|
|
4
|
+
get: (key: string) => string | null;
|
|
5
|
+
set: (key: string, value: string) => void;
|
|
6
|
+
remove: (key: string) => void;
|
|
7
|
+
clear: () => void;
|
|
8
|
+
getItem: (key: string) => string | null;
|
|
9
|
+
setItem: (key: string, value: string) => void;
|
|
10
|
+
};
|
|
11
|
+
session: {
|
|
12
|
+
has: (key: string) => boolean;
|
|
13
|
+
get: (key: string) => string | null;
|
|
14
|
+
set: (key: string, value: string) => void;
|
|
15
|
+
remove: (key: string) => void;
|
|
16
|
+
clear: () => void;
|
|
17
|
+
getItem: (key: string) => string | null;
|
|
18
|
+
setItem: (key: string, value: string) => void;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export default storage;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 根据 watermark-dom 进行修改
|
|
3
|
+
* https://github.com/saucxs/watermark-dom
|
|
4
|
+
*/
|
|
5
|
+
interface settingsType {
|
|
6
|
+
/** 水印总体的id */
|
|
7
|
+
id?: string;
|
|
8
|
+
/** 小水印的id前缀 */
|
|
9
|
+
prefix?: string;
|
|
10
|
+
/** 水印文案 */
|
|
11
|
+
text?: string;
|
|
12
|
+
/** 水印起始位置x轴坐标 */
|
|
13
|
+
x?: number;
|
|
14
|
+
/** 水印起始位置Y轴坐标 */
|
|
15
|
+
y?: number;
|
|
16
|
+
/** 水印行数 */
|
|
17
|
+
rows?: number;
|
|
18
|
+
/** 水印列数 */
|
|
19
|
+
cols?: number;
|
|
20
|
+
/** 水印x轴间隔 */
|
|
21
|
+
x_space?: number;
|
|
22
|
+
/** 水印y轴间隔 */
|
|
23
|
+
y_space?: number;
|
|
24
|
+
/** 水印字体 */
|
|
25
|
+
font?: string;
|
|
26
|
+
/** 水印字体颜色 */
|
|
27
|
+
color?: string;
|
|
28
|
+
/** 水印字体大小 */
|
|
29
|
+
fontsize?: string;
|
|
30
|
+
/** 水印透明度,要求设置在大于等于0.005 */
|
|
31
|
+
alpha?: number;
|
|
32
|
+
/** 水印宽度 */
|
|
33
|
+
width?: number;
|
|
34
|
+
/** 水印长度 */
|
|
35
|
+
height?: number;
|
|
36
|
+
/** 水印倾斜度数 */
|
|
37
|
+
angle?: number;
|
|
38
|
+
/** 水印的总体宽度(默认值:body的scrollWidth和clientWidth的较大值) */
|
|
39
|
+
parent_width?: number;
|
|
40
|
+
/** 水印的总体高度(默认值:body的scrollHeight和clientHeight的较大值) */
|
|
41
|
+
parent_height?: number;
|
|
42
|
+
/** 水印插件挂载的父元素element,不输入则默认挂在body上 */
|
|
43
|
+
parent_node?: HTMLElement | null;
|
|
44
|
+
/** 是否监控,true: 不可删除水印; false: 可删水印 */
|
|
45
|
+
monitor?: boolean;
|
|
46
|
+
}
|
|
47
|
+
export default function wmFn(): {
|
|
48
|
+
init: (settings: settingsType) => void;
|
|
49
|
+
remove: () => void;
|
|
50
|
+
};
|
|
51
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pubinfo/core",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "2.0.0-beta.1",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": {
|
|
7
|
+
"types": "./es/index.d.ts",
|
|
8
|
+
"import": "./es/index.js",
|
|
9
|
+
"require": "./lib/index.cjs"
|
|
10
|
+
},
|
|
11
|
+
"./request": {
|
|
12
|
+
"types": "./es/api/index.d.ts",
|
|
13
|
+
"import": "./es/request.js",
|
|
14
|
+
"require": "./lib/request.cjs"
|
|
15
|
+
},
|
|
16
|
+
"./style.css": {
|
|
17
|
+
"import": "./es/style.css",
|
|
18
|
+
"require": "./lib/style.css"
|
|
19
|
+
},
|
|
20
|
+
"./types": "./types/index.d.ts"
|
|
21
|
+
},
|
|
22
|
+
"main": "./lib/index.js",
|
|
23
|
+
"module": "./es/index.js",
|
|
24
|
+
"types": "./es/index.d.ts",
|
|
25
|
+
"files": [
|
|
26
|
+
"es",
|
|
27
|
+
"lib",
|
|
28
|
+
"src",
|
|
29
|
+
"types"
|
|
30
|
+
],
|
|
31
|
+
"peerDependencies": {
|
|
32
|
+
"alova": "^3.2.6",
|
|
33
|
+
"pinia": "^2.3.0",
|
|
34
|
+
"vue": "^3.5.13",
|
|
35
|
+
"vue-i18n": "^9.14.0",
|
|
36
|
+
"vue-router": "^4.5.0",
|
|
37
|
+
"@pubinfo/config": "2.0.0-beta.1"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@alova/adapter-axios": "^2.0.13",
|
|
41
|
+
"@ant-design/icons-vue": "^7.0.1",
|
|
42
|
+
"@headlessui/vue": "^1.7.23",
|
|
43
|
+
"@imengyu/vue3-context-menu": "^1.4.4",
|
|
44
|
+
"@pubinfo/pro-components": "^1.6.1",
|
|
45
|
+
"@unocss/reset": "^65.5.0",
|
|
46
|
+
"@vueuse/core": "^12.7.0",
|
|
47
|
+
"@vueuse/integrations": "^12.7.0",
|
|
48
|
+
"ant-design-vue": "^4.2.6",
|
|
49
|
+
"axios": "^1.8.1",
|
|
50
|
+
"consola": "^3.4.0",
|
|
51
|
+
"floating-vue": "5.2.2",
|
|
52
|
+
"hookable": "^5.5.3",
|
|
53
|
+
"hotkeys-js": "^3.13.9",
|
|
54
|
+
"jsencrypt": "^3.3.2",
|
|
55
|
+
"lodash-es": "^4.17.21",
|
|
56
|
+
"md5": "^2.3.0",
|
|
57
|
+
"mitt": "^3.0.1",
|
|
58
|
+
"nprogress": "^0.2.0",
|
|
59
|
+
"overlayscrollbars": "^2.11.1",
|
|
60
|
+
"overlayscrollbars-vue": "^0.5.9",
|
|
61
|
+
"path-browserify": "^1.0.1",
|
|
62
|
+
"path-to-regexp": "^6.3.0",
|
|
63
|
+
"pinia-plugin-persistedstate": "^3.2.3",
|
|
64
|
+
"sortablejs": "^1.15.6",
|
|
65
|
+
"vue-m-message": "^4.0.2",
|
|
66
|
+
"zxcvbn": "^4.4.2"
|
|
67
|
+
},
|
|
68
|
+
"devDependencies": {
|
|
69
|
+
"@iconify/json": "^2.2.312",
|
|
70
|
+
"@iconify/vue": "^4.3.0",
|
|
71
|
+
"@pubinfo/openapi": "^0.8.4",
|
|
72
|
+
"@pubinfo/preset-openapi": "^0.8.4",
|
|
73
|
+
"@types/lodash-es": "^4.17.12",
|
|
74
|
+
"@types/md5": "^2.3.5",
|
|
75
|
+
"@types/nprogress": "^0.2.3",
|
|
76
|
+
"@types/path-browserify": "^1.0.3",
|
|
77
|
+
"@types/sortablejs": "^1.15.8",
|
|
78
|
+
"@types/zxcvbn": "^4.4.5",
|
|
79
|
+
"@vitejs/plugin-vue": "^5.2.1",
|
|
80
|
+
"@vitejs/plugin-vue-jsx": "^4.1.1",
|
|
81
|
+
"alova": "^3.2.9",
|
|
82
|
+
"pinia": "^2.3.1",
|
|
83
|
+
"sass": "1.77.8",
|
|
84
|
+
"type-fest": "^4.36.0",
|
|
85
|
+
"unocss": "^65.5.0",
|
|
86
|
+
"unplugin-auto-import": "^0.18.6",
|
|
87
|
+
"unplugin-icons": "^0.22.0",
|
|
88
|
+
"unplugin-vue-components": "^0.27.5",
|
|
89
|
+
"vite": "^6.2.0",
|
|
90
|
+
"vite-plugin-dts": "^4.5.3",
|
|
91
|
+
"vue": "^3.5.13",
|
|
92
|
+
"vue-i18n": "^9.14.2",
|
|
93
|
+
"vue-router": "^4.5.0",
|
|
94
|
+
"@pubinfo/config": "2.0.0-beta.1"
|
|
95
|
+
},
|
|
96
|
+
"scripts": {
|
|
97
|
+
"dev": "vite build -w -m watch",
|
|
98
|
+
"build": "vite build",
|
|
99
|
+
"openapi": "pnpx @pubinfo/openapi generate"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export enum RESPONSE_CODE {
|
|
2
|
+
/**
|
|
3
|
+
* @description
|
|
4
|
+
* 接口请求成功
|
|
5
|
+
*/
|
|
6
|
+
SUCCESS = 0,
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @description
|
|
10
|
+
* 运行异常
|
|
11
|
+
*/
|
|
12
|
+
ERROR = -1,
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @description
|
|
16
|
+
* 操作失败,业务异常
|
|
17
|
+
*/
|
|
18
|
+
BUSINESS_ERROR = 4,
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @description
|
|
22
|
+
* 账户锁定,请联系管理员
|
|
23
|
+
*/
|
|
24
|
+
ACCOUNT_LOCKED = 400001001,
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @description
|
|
28
|
+
* 登录名或密码不正确
|
|
29
|
+
*/
|
|
30
|
+
LOGINNAME_PASSWORD_WRONG = 400001002,
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @description
|
|
34
|
+
* 账户未启用,请联系管理员
|
|
35
|
+
*/
|
|
36
|
+
ACCOUT_NOT_ENABLE = 400001003,
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @description
|
|
40
|
+
* token已过期
|
|
41
|
+
*/
|
|
42
|
+
ACCESS_TOKEN_INVALID = 400001006,
|
|
43
|
+
/**
|
|
44
|
+
* @description
|
|
45
|
+
* 刷新refreshToken已过期
|
|
46
|
+
*/
|
|
47
|
+
LOGIN_TOKEN_INVALID = 400001004,
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @description
|
|
51
|
+
* 访问未授权
|
|
52
|
+
*/
|
|
53
|
+
UNAUTHORIZED_ACCESS = 400001007,
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @description
|
|
57
|
+
* 验证码失效
|
|
58
|
+
*/
|
|
59
|
+
CODE_OVERTIME = 400002001,
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @description
|
|
63
|
+
* 验证码不匹配
|
|
64
|
+
*/
|
|
65
|
+
CODE_WRONG = 400002002,
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @description
|
|
69
|
+
* 首次登录,请修改初始密码
|
|
70
|
+
*/
|
|
71
|
+
CHANGE_INIT_PASSWORD = 400003001,
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @description
|
|
75
|
+
* 登录密码已过期,请修改密码
|
|
76
|
+
*/
|
|
77
|
+
PASSWORD_EXPIRED = 400003002,
|
|
78
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { RequestMethod } from './interface';
|
|
2
|
+
import { useSettingsStore, useUserStore } from '@/stores';
|
|
3
|
+
import { RESPONSE_CODE } from './enum/code';
|
|
4
|
+
import { postAuthTokenRefresh } from './modules/auth';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* 根据用户登录状态,可能设置请求头中的令牌。
|
|
8
|
+
* @param method 请求方法对象
|
|
9
|
+
*/
|
|
10
|
+
export function maybeSetToken(method: RequestMethod) {
|
|
11
|
+
const userStore = useUserStore();
|
|
12
|
+
if (userStore.isLogin) {
|
|
13
|
+
method.config.headers.Authorization = userStore.user.token;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* 根据请求方法设置语言。
|
|
19
|
+
* @param method 请求方法
|
|
20
|
+
*/
|
|
21
|
+
export function maybeSetLanguage(method: RequestMethod) {
|
|
22
|
+
const settingsStore = useSettingsStore();
|
|
23
|
+
method.config.headers['Accept-Language'] = settingsStore.settings.app.defaultLang;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* 数据权限标识
|
|
28
|
+
* @param method 请求方法
|
|
29
|
+
*/
|
|
30
|
+
export function maybeSetAuthData(method: RequestMethod) {
|
|
31
|
+
const settingsStore = useSettingsStore();
|
|
32
|
+
method.config.headers['X-ResourceMark'] = method.config.headers['X-ResourceMark'] || settingsStore.auth;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* 刷新令牌
|
|
37
|
+
*/
|
|
38
|
+
export function refreshToken() {
|
|
39
|
+
const userStore = useUserStore();
|
|
40
|
+
const method = postAuthTokenRefresh({ refreshToken: userStore.user.refreshToken });
|
|
41
|
+
method.meta = {
|
|
42
|
+
authRole: 'refreshToken',
|
|
43
|
+
};
|
|
44
|
+
return method;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* 检查提供的代码是否表示过期的访问令牌。
|
|
49
|
+
* @param code - 要检查的代码。
|
|
50
|
+
*/
|
|
51
|
+
export function expired(code: number) {
|
|
52
|
+
return code === RESPONSE_CODE.ACCESS_TOKEN_INVALID;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* 设置访问令牌和刷新令牌到本地存储和用户存储中。
|
|
57
|
+
* @param accessToken - 要设置的访问令牌。
|
|
58
|
+
* @param refreshTokenData - 要设置的刷新令牌数据。
|
|
59
|
+
*/
|
|
60
|
+
export function ReSetTokenAndRefreshToken(accessToken: string, refreshTokenData: string) {
|
|
61
|
+
const userStore = useUserStore();
|
|
62
|
+
userStore.user.token = accessToken;
|
|
63
|
+
userStore.user.refreshToken = refreshTokenData;
|
|
64
|
+
}
|
package/src/api/index.ts
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type VueHook from 'alova/vue';
|
|
2
|
+
import type { AxiosResponse } from 'axios';
|
|
3
|
+
import type { RequestOptions, RequestResult } from './interface';
|
|
4
|
+
import { axiosRequestAdapter } from '@alova/adapter-axios';
|
|
5
|
+
import { createAlova } from 'alova';
|
|
6
|
+
import { createServerTokenAuthentication } from 'alova/client';
|
|
7
|
+
import vueHook from 'alova/vue';
|
|
8
|
+
import {
|
|
9
|
+
expired,
|
|
10
|
+
maybeSetAuthData,
|
|
11
|
+
maybeSetLanguage,
|
|
12
|
+
maybeSetToken,
|
|
13
|
+
refreshToken,
|
|
14
|
+
ReSetTokenAndRefreshToken,
|
|
15
|
+
} from './helper';
|
|
16
|
+
|
|
17
|
+
export function createTokenAuthentication() {
|
|
18
|
+
return createServerTokenAuthentication<typeof VueHook, typeof axiosRequestAdapter>({
|
|
19
|
+
/**
|
|
20
|
+
* @description
|
|
21
|
+
* 给权限接口添加Authorization
|
|
22
|
+
*/
|
|
23
|
+
assignToken: (method) => {
|
|
24
|
+
maybeSetToken(method as any);
|
|
25
|
+
},
|
|
26
|
+
/**
|
|
27
|
+
* @description
|
|
28
|
+
* 鉴权处理
|
|
29
|
+
*/
|
|
30
|
+
refreshTokenOnSuccess: {
|
|
31
|
+
/**
|
|
32
|
+
* @description
|
|
33
|
+
* 检测token是否过期
|
|
34
|
+
* @returns 是否token过期
|
|
35
|
+
*/
|
|
36
|
+
isExpired: (response: AxiosResponse<RequestResult>) => {
|
|
37
|
+
return expired(response.data.code);
|
|
38
|
+
},
|
|
39
|
+
/**
|
|
40
|
+
* @description
|
|
41
|
+
* 当token过期时触发,在此函数中触发刷新token
|
|
42
|
+
*/
|
|
43
|
+
handler: async () => {
|
|
44
|
+
const res = await refreshToken();
|
|
45
|
+
const { accessToken, refreshToken: refreshTokenData } = res.data as Required<API.LoginTokenVo>;
|
|
46
|
+
ReSetTokenAndRefreshToken(accessToken, refreshTokenData);
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const { onAuthRequired, onResponseRefreshToken } = createTokenAuthentication();
|
|
53
|
+
|
|
54
|
+
export function createRequest(options: RequestOptions) {
|
|
55
|
+
const { axios, beforeRequest, responded } = options;
|
|
56
|
+
|
|
57
|
+
const instance = createAlova({
|
|
58
|
+
statesHook: vueHook,
|
|
59
|
+
requestAdapter: axiosRequestAdapter(axios),
|
|
60
|
+
cacheFor: null,
|
|
61
|
+
|
|
62
|
+
timeout: 60 * 1000,
|
|
63
|
+
...options,
|
|
64
|
+
beforeRequest: onAuthRequired((method) => {
|
|
65
|
+
maybeSetAuthData(method as any);
|
|
66
|
+
maybeSetLanguage(method as any);
|
|
67
|
+
return beforeRequest?.(method);
|
|
68
|
+
}),
|
|
69
|
+
responded: onResponseRefreshToken(responded),
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
return instance;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export { RESPONSE_CODE } from './enum/code';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { AdapterCreateOptions, AlovaAxiosRequestConfig } from '@alova/adapter-axios';
|
|
2
|
+
import type { AlovaGenerics, AlovaOptions, Method } from 'alova';
|
|
3
|
+
import type { AxiosResponse, AxiosResponseHeaders } from 'axios';
|
|
4
|
+
|
|
5
|
+
export type RequestMethod = Method<AlovaGenerics<any, any, AlovaAxiosRequestConfig, AxiosResponse<any, any>, AxiosResponseHeaders, any, any, any>>;
|
|
6
|
+
|
|
7
|
+
export interface RequestResult<T = any> {
|
|
8
|
+
code: number
|
|
9
|
+
msg: string
|
|
10
|
+
hint: string
|
|
11
|
+
data: T
|
|
12
|
+
success: boolean
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type RequestOptions = Omit<AlovaOptions<AlovaGenerics>, 'statesHook' | 'requestAdapter'> & { axios?: AdapterCreateOptions };
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { auth as request } from '@/api/request';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description 切换登录组织
|
|
5
|
+
* @url /auth/changeLoginOrg
|
|
6
|
+
* @method POST
|
|
7
|
+
* @author @pubinfo/openapi
|
|
8
|
+
*/
|
|
9
|
+
export function postAuthChangeLoginOrg<
|
|
10
|
+
R = API.ResponseDataLoginTokenVo,
|
|
11
|
+
T = API.ResponseDataLoginTokenVo,
|
|
12
|
+
>(params: API.postAuthChangeLoginOrgParams, options?: Parameters<typeof request.Post<R, T>>[2]) {
|
|
13
|
+
return request.Post<R, T>(
|
|
14
|
+
'/auth/changeLoginOrg',
|
|
15
|
+
{},
|
|
16
|
+
{
|
|
17
|
+
params: {
|
|
18
|
+
...params,
|
|
19
|
+
},
|
|
20
|
+
...(options || {}),
|
|
21
|
+
},
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @description 判断缓存的token是否有效
|
|
27
|
+
* @url /auth/checkCacheToken
|
|
28
|
+
* @method GET
|
|
29
|
+
* @author @pubinfo/openapi
|
|
30
|
+
*/
|
|
31
|
+
export function getAuthCheckCacheToken<R = API.ResponseDataBoolean, T = API.ResponseDataBoolean>(
|
|
32
|
+
params: API.getAuthCheckCacheTokenParams,
|
|
33
|
+
options?: Parameters<typeof request.Get<R, T>>[1],
|
|
34
|
+
) {
|
|
35
|
+
return request.Get<R, T>('/auth/checkCacheToken', {
|
|
36
|
+
params: {
|
|
37
|
+
...params,
|
|
38
|
+
},
|
|
39
|
+
...(options || {}),
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @description 密码登录
|
|
45
|
+
* @url /auth/login
|
|
46
|
+
* @method POST
|
|
47
|
+
* @author @pubinfo/openapi
|
|
48
|
+
*/
|
|
49
|
+
export function postAuthLogin<R = API.ResponseDataLoginTokenVo, T = API.ResponseDataLoginTokenVo>(
|
|
50
|
+
body: API.LoginByPwdDto,
|
|
51
|
+
options?: Parameters<typeof request.Post<R, T>>[2],
|
|
52
|
+
) {
|
|
53
|
+
return request.Post<R, T>('/auth/login', body, {
|
|
54
|
+
headers: {
|
|
55
|
+
'Content-Type': 'application/json',
|
|
56
|
+
},
|
|
57
|
+
...(options || {}),
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @description 获取登录公钥
|
|
63
|
+
* @url /auth/login/key
|
|
64
|
+
* @method GET
|
|
65
|
+
* @author @pubinfo/openapi
|
|
66
|
+
*/
|
|
67
|
+
export function getAuthLoginKey<R = API.ResponseDataString, T = API.ResponseDataString>(
|
|
68
|
+
options?: Parameters<typeof request.Get<R, T>>[1],
|
|
69
|
+
) {
|
|
70
|
+
return request.Get<R, T>('/auth/login/key', {
|
|
71
|
+
...(options || {}),
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @description 获取图片验证码
|
|
77
|
+
* @url /auth/login/validCode
|
|
78
|
+
* @method GET
|
|
79
|
+
* @author @pubinfo/openapi
|
|
80
|
+
*/
|
|
81
|
+
export function getAuthLoginValidCode<
|
|
82
|
+
R = API.ResponseDataValidCodeVo,
|
|
83
|
+
T = API.ResponseDataValidCodeVo,
|
|
84
|
+
>(params: API.getAuthLoginValidCodeParams, options?: Parameters<typeof request.Get<R, T>>[1]) {
|
|
85
|
+
return request.Get<R, T>('/auth/login/validCode', {
|
|
86
|
+
params: {
|
|
87
|
+
...params,
|
|
88
|
+
},
|
|
89
|
+
...(options || {}),
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* @description 登出
|
|
95
|
+
* @url /auth/loginOut
|
|
96
|
+
* @method POST
|
|
97
|
+
* @author @pubinfo/openapi
|
|
98
|
+
*/
|
|
99
|
+
export function postAuthLoginOut<R = API.ResponseDataVoid, T = API.ResponseDataVoid>(
|
|
100
|
+
options?: Parameters<typeof request.Post<R, T>>[2],
|
|
101
|
+
) {
|
|
102
|
+
return request.Post<R, T>(
|
|
103
|
+
'/auth/loginOut',
|
|
104
|
+
{},
|
|
105
|
+
{
|
|
106
|
+
...(options || {}),
|
|
107
|
+
},
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* @description 刷新访问令牌
|
|
113
|
+
* @url /auth/token/refresh
|
|
114
|
+
* @method POST
|
|
115
|
+
* @author @pubinfo/openapi
|
|
116
|
+
*/
|
|
117
|
+
export function postAuthTokenRefresh<
|
|
118
|
+
R = API.ResponseDataLoginTokenVo,
|
|
119
|
+
T = API.ResponseDataLoginTokenVo,
|
|
120
|
+
>(params: API.postAuthTokenRefreshParams, options?: Parameters<typeof request.Post<R, T>>[2]) {
|
|
121
|
+
return request.Post<R, T>(
|
|
122
|
+
'/auth/token/refresh',
|
|
123
|
+
{},
|
|
124
|
+
{
|
|
125
|
+
params: {
|
|
126
|
+
...params,
|
|
127
|
+
},
|
|
128
|
+
...(options || {}),
|
|
129
|
+
},
|
|
130
|
+
);
|
|
131
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
declare namespace API {
|
|
4
|
+
interface getAuthCheckCacheTokenParams {
|
|
5
|
+
accessToken: string;
|
|
6
|
+
userId: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
interface getAuthLoginValidCodeParams {
|
|
10
|
+
/** 尺寸(长x宽),例:150x50表示长为150宽为50,不填默认150x50 */
|
|
11
|
+
size?: string;
|
|
12
|
+
/** 验证码长度,不填默认4位 */
|
|
13
|
+
length?: number;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface IResponseCode {
|
|
17
|
+
msg?: string;
|
|
18
|
+
code?: number;
|
|
19
|
+
hint?: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
interface LoginByPwdDto {
|
|
23
|
+
/** 登录类型 */
|
|
24
|
+
loginType: string;
|
|
25
|
+
/** 登录名 */
|
|
26
|
+
loginName: string;
|
|
27
|
+
/** 密码 */
|
|
28
|
+
loginPwd: string;
|
|
29
|
+
/** 验证码hash */
|
|
30
|
+
codeHash: string;
|
|
31
|
+
/** 验证码 */
|
|
32
|
+
code: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
interface LoginTokenVo {
|
|
36
|
+
/** 刷新令牌 */
|
|
37
|
+
refreshToken?: string;
|
|
38
|
+
/** 访问令牌 */
|
|
39
|
+
accessToken?: string;
|
|
40
|
+
loginResponse?: IResponseCode;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
interface postAuthChangeLoginOrgParams {
|
|
44
|
+
/** 新组织id */
|
|
45
|
+
orgId: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
interface postAuthTokenRefreshParams {
|
|
49
|
+
/** 刷新令牌 */
|
|
50
|
+
refreshToken: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
interface ResponseDataBoolean {
|
|
54
|
+
code?: number;
|
|
55
|
+
msg?: string;
|
|
56
|
+
hint?: string;
|
|
57
|
+
data?: boolean;
|
|
58
|
+
success?: boolean;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
interface ResponseDataLoginTokenVo {
|
|
62
|
+
code?: number;
|
|
63
|
+
msg?: string;
|
|
64
|
+
hint?: string;
|
|
65
|
+
data?: LoginTokenVo;
|
|
66
|
+
success?: boolean;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
interface ResponseDataString {
|
|
70
|
+
code?: number;
|
|
71
|
+
msg?: string;
|
|
72
|
+
hint?: string;
|
|
73
|
+
data?: string;
|
|
74
|
+
success?: boolean;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
interface ResponseDataValidCodeVo {
|
|
78
|
+
code?: number;
|
|
79
|
+
msg?: string;
|
|
80
|
+
hint?: string;
|
|
81
|
+
data?: ValidCodeVo;
|
|
82
|
+
success?: boolean;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
interface ResponseDataVoid {
|
|
86
|
+
code?: number;
|
|
87
|
+
msg?: string;
|
|
88
|
+
hint?: string;
|
|
89
|
+
data?: Record<string, any>;
|
|
90
|
+
success?: boolean;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
interface ValidCodeVo {
|
|
94
|
+
key?: string;
|
|
95
|
+
plaintext?: string;
|
|
96
|
+
}
|
|
97
|
+
}
|