@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,213 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { isFunction } from 'lodash-es';
|
|
3
|
+
import zxcvbn from 'zxcvbn';
|
|
4
|
+
import RuleItem from './rule.vue';
|
|
5
|
+
|
|
6
|
+
defineOptions({
|
|
7
|
+
name: 'PassStrengthValidator',
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
defineProps({
|
|
11
|
+
vertical: Boolean,
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
const value = defineModel<string>({
|
|
15
|
+
default: '',
|
|
16
|
+
});
|
|
17
|
+
const isValidate = defineModel('validate');
|
|
18
|
+
|
|
19
|
+
const Zxc = computed(() => {
|
|
20
|
+
return zxcvbn(value.value);
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
function validate(target: string) {
|
|
24
|
+
return () => {
|
|
25
|
+
if (value.value === '') {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
if (Array.isArray(Zxc.value.sequence)) {
|
|
29
|
+
return Zxc.value.sequence.every((item) => {
|
|
30
|
+
return item?.pattern !== target;
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
return false;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const rules = [
|
|
38
|
+
{
|
|
39
|
+
rule: /^.{8,16}$/,
|
|
40
|
+
message: '密码长度必须在8到16个字符之间。',
|
|
41
|
+
flag: false,
|
|
42
|
+
source: 'basic',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
rule: /[a-z]/,
|
|
46
|
+
message: '密码必须至少包含一个小写英文字母。',
|
|
47
|
+
flag: false,
|
|
48
|
+
source: 'basic',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
rule: /[A-Z]/,
|
|
52
|
+
message: '密码必须至少包含一个大写英文字母。',
|
|
53
|
+
flag: false,
|
|
54
|
+
source: 'basic',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
rule: /\d/,
|
|
58
|
+
message: '密码必须至少包含一个数字。',
|
|
59
|
+
flag: false,
|
|
60
|
+
source: 'basic',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
rule: /[~!@#$%^&*()_+=\-.,]/,
|
|
64
|
+
message: '密码必须至少包含一个特殊字符(例如:~!@#$%^&*()_+=\\-.,)。',
|
|
65
|
+
flag: false,
|
|
66
|
+
source: 'basic',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
rule: validate('dictionary'),
|
|
70
|
+
message: '密码不应包含常用字典中的单词或短语。',
|
|
71
|
+
flag: false,
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
rule: validate('spatial'),
|
|
75
|
+
message: '密码不应基于键盘布局的简单模式(例如:连续的字母或键盘行)。',
|
|
76
|
+
flag: false,
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
rule: validate('repeat'),
|
|
80
|
+
message: '密码不应包含重复使用的字符或序列。',
|
|
81
|
+
flag: false,
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
rule: validate('sequence'),
|
|
85
|
+
message: '密码不应包含顺序排列的数字或字母序列。',
|
|
86
|
+
flag: false,
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
rule: validate('date'),
|
|
90
|
+
message: '密码不应使用常见的日期格式或数字序列。',
|
|
91
|
+
flag: false,
|
|
92
|
+
},
|
|
93
|
+
];
|
|
94
|
+
|
|
95
|
+
watchEffect(() => {
|
|
96
|
+
rules.forEach(({ rule }, index) => {
|
|
97
|
+
if (isFunction(rule)) {
|
|
98
|
+
const flag = rule();
|
|
99
|
+
rules[index].flag = flag;
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
const flag = rule.test(value.value);
|
|
103
|
+
rules[index].flag = flag;
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
isValidate.value = rules.every(({ flag }) => flag);
|
|
107
|
+
});
|
|
108
|
+
</script>
|
|
109
|
+
|
|
110
|
+
<template>
|
|
111
|
+
<div
|
|
112
|
+
class="pass-strength-validator"
|
|
113
|
+
:class="{ vertical }"
|
|
114
|
+
>
|
|
115
|
+
<div class="title-wrap">
|
|
116
|
+
密码强度校验提示
|
|
117
|
+
</div>
|
|
118
|
+
<div class="rules-wrap">
|
|
119
|
+
<div class="basic-rules">
|
|
120
|
+
<div class="rules-title">
|
|
121
|
+
标准规则集
|
|
122
|
+
</div>
|
|
123
|
+
<div>
|
|
124
|
+
<template v-for="(rule, index) in rules" :key="index">
|
|
125
|
+
<RuleItem
|
|
126
|
+
v-if="rule.source === 'basic'"
|
|
127
|
+
:message="rule.message"
|
|
128
|
+
:flag="rule.flag"
|
|
129
|
+
:vertical="vertical"
|
|
130
|
+
/>
|
|
131
|
+
</template>
|
|
132
|
+
</div>
|
|
133
|
+
<a-divider v-if="!vertical" />
|
|
134
|
+
</div>
|
|
135
|
+
<div class="advanced-rules">
|
|
136
|
+
<div class="rules-title">
|
|
137
|
+
高级规则集
|
|
138
|
+
</div>
|
|
139
|
+
<div>
|
|
140
|
+
<template v-for="(rule, index) in rules" :key="index">
|
|
141
|
+
<RuleItem
|
|
142
|
+
v-if="rule.source !== 'basic'"
|
|
143
|
+
:rule="rule.rule"
|
|
144
|
+
:message="rule.message"
|
|
145
|
+
:flag="rule.flag"
|
|
146
|
+
:vertical="vertical"
|
|
147
|
+
/>
|
|
148
|
+
</template>
|
|
149
|
+
</div>
|
|
150
|
+
</div>
|
|
151
|
+
</div>
|
|
152
|
+
</div>
|
|
153
|
+
</template>
|
|
154
|
+
|
|
155
|
+
<style lang="scss" scoped>
|
|
156
|
+
.pass-strength-validator {
|
|
157
|
+
padding: 15px;
|
|
158
|
+
|
|
159
|
+
.title-wrap {
|
|
160
|
+
margin-bottom: 40px;
|
|
161
|
+
font-size: 24px;
|
|
162
|
+
font-weight: 600;
|
|
163
|
+
color: #1677ff;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.rules-title {
|
|
167
|
+
margin-bottom: 15px;
|
|
168
|
+
font-size: 16px;
|
|
169
|
+
font-weight: 500;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
&.vertical {
|
|
173
|
+
width: 1130px;
|
|
174
|
+
padding: 18px 32px 24px;
|
|
175
|
+
|
|
176
|
+
.title-wrap {
|
|
177
|
+
margin-bottom: 16px;
|
|
178
|
+
font-size: 16px;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.rules-wrap {
|
|
182
|
+
display: flex;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.basic-rules,
|
|
186
|
+
.advanced-rules {
|
|
187
|
+
position: relative;
|
|
188
|
+
flex: 1;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.basic-rules::after {
|
|
192
|
+
position: absolute;
|
|
193
|
+
top: 11px;
|
|
194
|
+
right: 35px;
|
|
195
|
+
bottom: 11px;
|
|
196
|
+
width: 1px;
|
|
197
|
+
height: auto;
|
|
198
|
+
content: "";
|
|
199
|
+
background: #e5e6eb;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.rules-title {
|
|
203
|
+
margin-bottom: 14px;
|
|
204
|
+
font-size: 14px;
|
|
205
|
+
font-weight: bold;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.dark .pass-strength-validator.vertical .basic-rules::after {
|
|
211
|
+
background: #424242;
|
|
212
|
+
}
|
|
213
|
+
</style>
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import AntDesignCheckCircleTwotone from '~icons/ant-design/check-circle-twotone';
|
|
3
|
+
import AntDesignCloseCircleTwotone from '~icons/ant-design/close-circle-twotone';
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{
|
|
6
|
+
// rule: RegExp | ((...arg: any[]) => boolean)
|
|
7
|
+
message: string
|
|
8
|
+
flag: boolean
|
|
9
|
+
source?: 'basic' | undefined
|
|
10
|
+
vertical: boolean
|
|
11
|
+
}>();
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<template>
|
|
15
|
+
<div class="rule-item" :class="props.vertical ? 'vertical' : ''">
|
|
16
|
+
<div class="icon">
|
|
17
|
+
<AntDesignCheckCircleTwotone v-if="props.flag" text="16px green" />
|
|
18
|
+
<AntDesignCloseCircleTwotone v-else text="16px red" />
|
|
19
|
+
</div>
|
|
20
|
+
<span :class="[props.flag ? 'line-through text-gray-400' : '']">
|
|
21
|
+
{{ props.message }}
|
|
22
|
+
</span>
|
|
23
|
+
</div>
|
|
24
|
+
</template>
|
|
25
|
+
|
|
26
|
+
<style scoped lang="scss">
|
|
27
|
+
.rule-item {
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: row;
|
|
30
|
+
padding: 10px 0;
|
|
31
|
+
font-size: 14px;
|
|
32
|
+
line-height: 19px;
|
|
33
|
+
|
|
34
|
+
.icon {
|
|
35
|
+
margin-right: 10px;
|
|
36
|
+
line-height: 23px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&.vertical {
|
|
40
|
+
padding: 0;
|
|
41
|
+
margin-bottom: 6px;
|
|
42
|
+
line-height: 18px;
|
|
43
|
+
color: #86909c;
|
|
44
|
+
|
|
45
|
+
.icon {
|
|
46
|
+
margin-right: 6px;
|
|
47
|
+
line-height: 18px;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
</style>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import NotAllowed from '../NotAllowed/index.vue';
|
|
3
|
+
|
|
4
|
+
defineOptions({
|
|
5
|
+
name: 'PubinfoApp',
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
const route = useRoute();
|
|
9
|
+
const { auth } = useAuth();
|
|
10
|
+
|
|
11
|
+
const isAuth = computed(() => {
|
|
12
|
+
return route.matched.every((item) => auth(item.meta.auth ?? ''));
|
|
13
|
+
});
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<template>
|
|
17
|
+
<RouterView v-slot="{ Component }">
|
|
18
|
+
<component :is="Component" v-if="isAuth" />
|
|
19
|
+
<NotAllowed v-else />
|
|
20
|
+
</RouterView>
|
|
21
|
+
</template>
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { Icon } from '@iconify/vue';
|
|
3
|
+
import { useProvider } from '../PubinfoProvider';
|
|
4
|
+
|
|
5
|
+
defineOptions({
|
|
6
|
+
name: 'PubinfoIcon',
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
const props = defineProps<{
|
|
10
|
+
name: string
|
|
11
|
+
async?: boolean
|
|
12
|
+
flip?: 'horizontal' | 'vertical' | 'both'
|
|
13
|
+
rotate?: number
|
|
14
|
+
color?: string
|
|
15
|
+
size?: string | number
|
|
16
|
+
}>();
|
|
17
|
+
|
|
18
|
+
const { loadIcon } = useProvider();
|
|
19
|
+
|
|
20
|
+
const outputType = computed(() => {
|
|
21
|
+
if (props.name.indexOf('i-') === 0) {
|
|
22
|
+
return props.async ? 'svg' : 'css';
|
|
23
|
+
}
|
|
24
|
+
else if (props.name.includes(':')) {
|
|
25
|
+
return 'svg';
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
return 'custom';
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
const outputName = computed(() => {
|
|
33
|
+
if (props.name.indexOf('i-') === 0) {
|
|
34
|
+
let conversionName = props.name;
|
|
35
|
+
if (props.async) {
|
|
36
|
+
conversionName = conversionName.replace('i-', '');
|
|
37
|
+
}
|
|
38
|
+
return conversionName;
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
return props.name;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
const style = computed(() => {
|
|
46
|
+
const transform: string[] = [];
|
|
47
|
+
if (props.flip) {
|
|
48
|
+
switch (props.flip) {
|
|
49
|
+
case 'horizontal':
|
|
50
|
+
transform.push('rotateY(180deg)');
|
|
51
|
+
break;
|
|
52
|
+
case 'vertical':
|
|
53
|
+
transform.push('rotateX(180deg)');
|
|
54
|
+
break;
|
|
55
|
+
case 'both':
|
|
56
|
+
transform.push('rotateX(180deg)');
|
|
57
|
+
transform.push('rotateY(180deg)');
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
if (props.rotate) {
|
|
62
|
+
transform.push(`rotate(${props.rotate % 360}deg)`);
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
...(props.color && { color: props.color }),
|
|
66
|
+
...(props.size && { fontSize: typeof props.size === 'number' ? `${props.size}px` : props.size }),
|
|
67
|
+
...(transform.length && { transform: transform.join(' ') }),
|
|
68
|
+
};
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
function _loadIcon() {
|
|
72
|
+
if (!loadIcon && outputType.value === 'custom') {
|
|
73
|
+
return new Error('Need pro `loadIcon`, according to [PubinfoProvider].');
|
|
74
|
+
}
|
|
75
|
+
return loadIcon?.(props.name);
|
|
76
|
+
}
|
|
77
|
+
</script>
|
|
78
|
+
|
|
79
|
+
<template>
|
|
80
|
+
<i class="relative h-[1em] w-[1em] flex-inline items-center justify-center fill-current leading-[1em]" :style="style">
|
|
81
|
+
<i v-if="outputType === 'css'" :class="outputName" />
|
|
82
|
+
<Icon v-else-if="outputType === 'svg'" :icon="outputName" />
|
|
83
|
+
<img v-else-if="loadIcon" class="w-1em h-1em" :src="_loadIcon()">
|
|
84
|
+
</i>
|
|
85
|
+
</template>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
interface PubinfoProviderProps {
|
|
2
|
+
loadIcon?: (name?: string) => any
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
export const pubinfoInjectionKey: InjectionKey<PubinfoProviderProps> = Symbol('injectionKey');
|
|
6
|
+
|
|
7
|
+
export function createPubinfoProvider(props: PubinfoProviderProps) {
|
|
8
|
+
provide(pubinfoInjectionKey, props);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function useProvider() {
|
|
12
|
+
return inject(pubinfoInjectionKey, {});
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default defineComponent({
|
|
16
|
+
name: 'PubinfoProvider',
|
|
17
|
+
props: {
|
|
18
|
+
loadIcon: {
|
|
19
|
+
type: Function as PubinfoProviderProps['loadIcon'],
|
|
20
|
+
required: true,
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
setup(props, { slots }) {
|
|
24
|
+
const provider = useProvider();
|
|
25
|
+
|
|
26
|
+
createPubinfoProvider({
|
|
27
|
+
loadIcon(name) {
|
|
28
|
+
return props.loadIcon(name) ?? provider?.loadIcon?.(name);
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
return () => slots?.default?.();
|
|
33
|
+
},
|
|
34
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as NotAllowed } from './NotAllowed/index.vue';
|
|
2
|
+
export { default as PageHeader } from './PageHeader/index.vue';
|
|
3
|
+
export { default as PageMain } from './PageMain/index.vue';
|
|
4
|
+
export { default as PassStrengthValidator } from './PassStrengthValidator/index.vue';
|
|
5
|
+
export { default as PubinfoApp } from './PubinfoApp/index.vue';
|
|
6
|
+
export { default as PubinfoIcon } from './PubinfoIcon/index.vue';
|
|
7
|
+
export { default as PubinfoProvider } from './PubinfoProvider';
|
|
8
|
+
export { createPubinfoProvider, pubinfoInjectionKey } from './PubinfoProvider';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { useSettingsStore, useUserStore } from '@/stores';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 处理身份验证和权限检查的自定义钩子。
|
|
5
|
+
* @returns 包含 auth 和 authAll 函数的对象。
|
|
6
|
+
*/
|
|
7
|
+
export function useAuth() {
|
|
8
|
+
/**
|
|
9
|
+
* 判断用户是否具有指定权限
|
|
10
|
+
* @param permission 权限字符串
|
|
11
|
+
* @returns 如果用户具有指定权限,则返回true;否则返回false
|
|
12
|
+
*/
|
|
13
|
+
function hasPermission(permission: string) {
|
|
14
|
+
const settingsStore = useSettingsStore();
|
|
15
|
+
const userStore = useUserStore();
|
|
16
|
+
if (settingsStore.settings.app.enablePermission) {
|
|
17
|
+
return userStore.permissions.includes(permission);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* 检查用户是否具有所需的权限。
|
|
26
|
+
* @param value - 要检查的权限,可以是单个权限或权限数组。
|
|
27
|
+
* @returns 一个布尔值,指示用户是否具有所需的权限。
|
|
28
|
+
*/
|
|
29
|
+
function auth(value: string | string[]) {
|
|
30
|
+
let auth;
|
|
31
|
+
if (typeof value === 'string') {
|
|
32
|
+
auth = value !== '' ? hasPermission(value) : true;
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
auth = value.length > 0 ? value.some(item => hasPermission(item)) : true;
|
|
36
|
+
}
|
|
37
|
+
return auth;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* 检查用户是否具有所有指定的权限。
|
|
42
|
+
* @param value - 权限字符串的数组。
|
|
43
|
+
* @returns 如果用户具有所有指定的权限,则返回true;否则返回false。
|
|
44
|
+
*/
|
|
45
|
+
function authAll(value: string[]) {
|
|
46
|
+
return value.length > 0 ? value.every(item => hasPermission(item)) : true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return {
|
|
50
|
+
auth,
|
|
51
|
+
authAll,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { consola } from 'consola';
|
|
2
|
+
|
|
3
|
+
enum LOG_TYPE {
|
|
4
|
+
ERROR = 'error',
|
|
5
|
+
SUCCESS = 'success',
|
|
6
|
+
WARN = 'warn',
|
|
7
|
+
INFO = 'info',
|
|
8
|
+
START = 'start',
|
|
9
|
+
BOX = 'box',
|
|
10
|
+
}
|
|
11
|
+
enum EMOJI {
|
|
12
|
+
ERROR = '🔴',
|
|
13
|
+
SUCCESS = '🟢',
|
|
14
|
+
WARN = '🟡',
|
|
15
|
+
INFO = '🔵',
|
|
16
|
+
START = '🟩',
|
|
17
|
+
BOX = '🟧',
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const createConsoleLog = consola.withTag('腾龙开发底座');
|
|
21
|
+
|
|
22
|
+
function createLog(type: LOG_TYPE, emoji: EMOJI) {
|
|
23
|
+
return (message: string | Error) => {
|
|
24
|
+
if (!import.meta.env.DEV) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
if (typeof message === 'string') {
|
|
29
|
+
const msg = message.length > 0 ? `${emoji} ${message}` : '';
|
|
30
|
+
createConsoleLog[type](msg);
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
const msg = message instanceof Error ? message : new Error(message);
|
|
34
|
+
createConsoleLog[type](msg);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export const useError = createLog(LOG_TYPE.ERROR, EMOJI.ERROR);
|
|
40
|
+
export const useSuccess = createLog(LOG_TYPE.SUCCESS, EMOJI.SUCCESS);
|
|
41
|
+
export const useWarn = createLog(LOG_TYPE.WARN, EMOJI.WARN);
|
|
42
|
+
export const useInfo = createLog(LOG_TYPE.INFO, EMOJI.INFO);
|
|
43
|
+
export const useStart = createLog(LOG_TYPE.START, EMOJI.START);
|
|
44
|
+
export const useBox = createLog(LOG_TYPE.BOX, EMOJI.BOX);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useSettingsStore } from '@/stores';
|
|
2
|
+
|
|
3
|
+
export function useTheme() {
|
|
4
|
+
const settingsStore = useSettingsStore();
|
|
5
|
+
|
|
6
|
+
const isDark = computed({
|
|
7
|
+
get() {
|
|
8
|
+
return settingsStore.settings.app.colorScheme === 'dark';
|
|
9
|
+
},
|
|
10
|
+
set(value) {
|
|
11
|
+
settingsStore.settings.app.colorScheme = (value ? 'dark' : 'light');
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
return { isDark };
|
|
16
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { WatchOptions, WatchSource } from 'vue';
|
|
2
|
+
import { cloneDeep, isEmpty, isObject } from 'lodash-es';
|
|
3
|
+
import { watch } from 'vue';
|
|
4
|
+
|
|
5
|
+
function deepDiff(original: Record<string, any>, updated: Record<string, any>) {
|
|
6
|
+
let hasDifferences = false;
|
|
7
|
+
const diff: Record<string, any> = Object.create(null);
|
|
8
|
+
|
|
9
|
+
const keys = new Set([...Object.keys(original), ...Object.keys(updated)]);
|
|
10
|
+
keys.forEach((key) => {
|
|
11
|
+
const origValue = original[key];
|
|
12
|
+
const updatedValue = updated[key];
|
|
13
|
+
|
|
14
|
+
if (isObject(origValue) && isObject(updatedValue)) {
|
|
15
|
+
const deeperDiff = deepDiff(origValue, updatedValue);
|
|
16
|
+
if (Object.keys(deeperDiff).length > 0) {
|
|
17
|
+
diff[key] = deeperDiff;
|
|
18
|
+
hasDifferences = true;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
else if (origValue !== updatedValue) {
|
|
22
|
+
diff[key] = updatedValue;
|
|
23
|
+
hasDifferences = true;
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
return hasDifferences ? diff : {};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function watchDiffObject<
|
|
31
|
+
T extends Record<string, any>, Immediate extends Readonly<boolean> = false>(
|
|
32
|
+
source: WatchSource<T> | T,
|
|
33
|
+
cb: (newVal: Record<string, any>, oldVal: Record<string, any>) => void,
|
|
34
|
+
options?: WatchOptions<Immediate>,
|
|
35
|
+
) {
|
|
36
|
+
let oldValue: Record<string, any> = options?.immediate
|
|
37
|
+
? {}
|
|
38
|
+
: cloneDeep(source instanceof Function
|
|
39
|
+
? source()
|
|
40
|
+
: source,
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
return watch(source, (newVal, _) => {
|
|
44
|
+
const diff = deepDiff(oldValue, newVal);
|
|
45
|
+
if (!isEmpty(diff)) {
|
|
46
|
+
cb(diff, oldValue);
|
|
47
|
+
}
|
|
48
|
+
oldValue = cloneDeep(newVal);
|
|
49
|
+
}, {
|
|
50
|
+
...options,
|
|
51
|
+
deep: true,
|
|
52
|
+
});
|
|
53
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './settings';
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type { RequiredDeep } from 'type-fest';
|
|
2
|
+
import { defaultsDeep } from 'lodash-es';
|
|
3
|
+
|
|
4
|
+
/** 默认配置 */
|
|
5
|
+
let globalSettings: RequiredDeep<Settings.all> = {
|
|
6
|
+
app: {
|
|
7
|
+
lightTheme: 'classic',
|
|
8
|
+
darkTheme: 'dark',
|
|
9
|
+
colorScheme: 'light',
|
|
10
|
+
defaultLang: 'zh-cn',
|
|
11
|
+
enablePermission: true,
|
|
12
|
+
enableProgress: true,
|
|
13
|
+
enableDynamicTitle: true,
|
|
14
|
+
storagePrefix: 'wsy_rbac',
|
|
15
|
+
// enableWatermark: false,
|
|
16
|
+
enableErrorLog: false,
|
|
17
|
+
routeBaseOn: 'frontend',
|
|
18
|
+
enableUserPreferences: true,
|
|
19
|
+
enableSettingPreferences: true,
|
|
20
|
+
enableAppSetting: true,
|
|
21
|
+
},
|
|
22
|
+
home: {
|
|
23
|
+
enable: false,
|
|
24
|
+
title: '主页',
|
|
25
|
+
},
|
|
26
|
+
layout: {
|
|
27
|
+
widthMode: 'adaption',
|
|
28
|
+
enableMobileAdaptation: false,
|
|
29
|
+
},
|
|
30
|
+
menu: {
|
|
31
|
+
menuMode: 'head',
|
|
32
|
+
isRounded: true,
|
|
33
|
+
menuActiveStyle: '',
|
|
34
|
+
switchMainMenuAndPageJump: true,
|
|
35
|
+
subMenuUniqueOpened: true,
|
|
36
|
+
subMenuOnlyOneHide: true,
|
|
37
|
+
subMenuCollapse: false,
|
|
38
|
+
enableSubMenuCollapseButton: true,
|
|
39
|
+
enableHotkeys: false,
|
|
40
|
+
},
|
|
41
|
+
topbar: {
|
|
42
|
+
mode: 'fixed',
|
|
43
|
+
switchTabbarAndToolbar: false,
|
|
44
|
+
},
|
|
45
|
+
tabbar: {
|
|
46
|
+
enable: true,
|
|
47
|
+
style: 'fashion',
|
|
48
|
+
enableIcon: true,
|
|
49
|
+
mergeTabsBy: 'activeMenu',
|
|
50
|
+
enableMemory: true,
|
|
51
|
+
enableHotkeys: true,
|
|
52
|
+
storageTo: 'local',
|
|
53
|
+
},
|
|
54
|
+
toolbar: {
|
|
55
|
+
enableNotification: true,
|
|
56
|
+
enableI18n: true,
|
|
57
|
+
enableFullscreen: true,
|
|
58
|
+
enablePageReload: true,
|
|
59
|
+
enableColorScheme: true,
|
|
60
|
+
},
|
|
61
|
+
favorites: {
|
|
62
|
+
enable: true,
|
|
63
|
+
storageTo: 'local',
|
|
64
|
+
},
|
|
65
|
+
breadcrumb: {
|
|
66
|
+
enable: true,
|
|
67
|
+
style: '',
|
|
68
|
+
enableMainMenu: true,
|
|
69
|
+
},
|
|
70
|
+
mainPage: {
|
|
71
|
+
enableHotkeys: true,
|
|
72
|
+
iframeCacheMax: 3,
|
|
73
|
+
enableTransition: true,
|
|
74
|
+
transitionMode: 'fade',
|
|
75
|
+
},
|
|
76
|
+
navSearch: {
|
|
77
|
+
enable: true,
|
|
78
|
+
enableHotkeys: true,
|
|
79
|
+
},
|
|
80
|
+
copyright: {
|
|
81
|
+
enable: false,
|
|
82
|
+
dates: '2024-2025',
|
|
83
|
+
company: '浙江省公众信息产业有限公司',
|
|
84
|
+
website: '',
|
|
85
|
+
beian: '',
|
|
86
|
+
},
|
|
87
|
+
watermark: {
|
|
88
|
+
enable: false,
|
|
89
|
+
text: 'PUBINFO',
|
|
90
|
+
width: 150,
|
|
91
|
+
x: 0,
|
|
92
|
+
y: 0,
|
|
93
|
+
x_space: 50,
|
|
94
|
+
y_space: 50,
|
|
95
|
+
alpha: 0.1,
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
/** 定义配置 */
|
|
100
|
+
export function defineSettings(settings: Settings.all) {
|
|
101
|
+
globalSettings = defaultsDeep(settings, globalSettings);
|
|
102
|
+
return settings;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function getSettings() {
|
|
106
|
+
return globalSettings;
|
|
107
|
+
};
|