@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,138 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { PubinfoIcon } from '@/components';
|
|
3
|
+
import { isUndefined } from 'lodash-es';
|
|
4
|
+
import { OverlayScrollbarsComponent } from 'overlayscrollbars-vue';
|
|
5
|
+
import Sortable from 'sortablejs';
|
|
6
|
+
import { useI18n } from 'vue-i18n';
|
|
7
|
+
import FluentDelete24Filled from '~icons/fluent/delete-24-filled';
|
|
8
|
+
import FluentStarAdd16Regular from '~icons/fluent/star-add-16-regular';
|
|
9
|
+
import FluentStarDismiss16Regular from '~icons/fluent/star-dismiss-16-regular';
|
|
10
|
+
import { useContext } from '../../../composables/useContext';
|
|
11
|
+
|
|
12
|
+
defineOptions({
|
|
13
|
+
name: 'Favorites',
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
const route = useRoute();
|
|
17
|
+
const router = useRouter();
|
|
18
|
+
const { favoritesStore, routeStore, generateI18nTitle } = useContext();
|
|
19
|
+
const { t } = useI18n();
|
|
20
|
+
|
|
21
|
+
const favoritesContainerRef = ref<HTMLElement | null>(null);
|
|
22
|
+
|
|
23
|
+
let _favoritesSortable: Sortable | null = null;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* 监听收藏夹容器的变化,并创建可排序的实例
|
|
27
|
+
* @param {Ref} favoritesContainerRef - 收藏夹容器的引用
|
|
28
|
+
*/
|
|
29
|
+
watch(favoritesContainerRef, (newSortableContainer) => {
|
|
30
|
+
if (newSortableContainer) {
|
|
31
|
+
_favoritesSortable = new Sortable(newSortableContainer, {
|
|
32
|
+
animation: 200,
|
|
33
|
+
ghostClass: 'draggable-ghost',
|
|
34
|
+
draggable: '.draggable-item',
|
|
35
|
+
onUpdate: (e) => {
|
|
36
|
+
if (!isUndefined(e.newIndex) && !isUndefined(e.oldIndex)) {
|
|
37
|
+
favoritesStore.sort(e.newIndex, e.oldIndex);
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
</script>
|
|
44
|
+
|
|
45
|
+
<template>
|
|
46
|
+
<div class="favorites-container w-80 dark:bg-[var(--g-container-bg)]">
|
|
47
|
+
<div class="flex items-center justify-between px-4 py-3">
|
|
48
|
+
<div class="text-sm font-bold">
|
|
49
|
+
{{ t('app.tabbar.favorites.my-favorites') }}
|
|
50
|
+
</div>
|
|
51
|
+
<template v-if="favoritesStore.canAdd(route.fullPath, routeStore.routes)">
|
|
52
|
+
<FluentStarAdd16Regular
|
|
53
|
+
v-if="!favoritesStore.isAdd(route.fullPath)"
|
|
54
|
+
text-18px
|
|
55
|
+
class="cursor-pointer"
|
|
56
|
+
@click="favoritesStore.add(route)"
|
|
57
|
+
/>
|
|
58
|
+
<FluentStarDismiss16Regular
|
|
59
|
+
v-else
|
|
60
|
+
text-18px
|
|
61
|
+
class="cursor-pointer"
|
|
62
|
+
@click="favoritesStore.remove(route.fullPath)"
|
|
63
|
+
/>
|
|
64
|
+
</template>
|
|
65
|
+
</div>
|
|
66
|
+
<OverlayScrollbarsComponent
|
|
67
|
+
:options="{
|
|
68
|
+
scrollbars: {
|
|
69
|
+
autoHide: 'leave',
|
|
70
|
+
autoHideDelay: 300,
|
|
71
|
+
},
|
|
72
|
+
}"
|
|
73
|
+
defer
|
|
74
|
+
class="max-h-220px"
|
|
75
|
+
>
|
|
76
|
+
<div
|
|
77
|
+
v-if="favoritesStore.list.length > 0"
|
|
78
|
+
ref="favoritesContainerRef"
|
|
79
|
+
class="flex flex-wrap items-center justify-between gap-2 px-4 pb-4"
|
|
80
|
+
>
|
|
81
|
+
<div
|
|
82
|
+
v-for="item in favoritesStore.list"
|
|
83
|
+
:key="item.fullPath"
|
|
84
|
+
:title="generateI18nTitle(item.i18n, item.title)"
|
|
85
|
+
class="draggable-item relative w-[calc(50%-0.25rem)] flex cursor-pointer items-center gap-1 rounded px-2 py-2 ring-1 ring-stone-3 ring-inset hover:bg-stone-1 dark:ring-stone-7 dark:hover:bg-dark/50"
|
|
86
|
+
@click="router.push(item.fullPath)"
|
|
87
|
+
>
|
|
88
|
+
<PubinfoIcon v-if="item.icon" :name="item.icon" :size="18" />
|
|
89
|
+
<div class="name flex-1 truncate pe-4">
|
|
90
|
+
{{ generateI18nTitle(item.i18n, item.title) }}
|
|
91
|
+
</div>
|
|
92
|
+
<FluentDelete24Filled
|
|
93
|
+
text-12px
|
|
94
|
+
class="right-1 h-5 w-6 rounded-full text-stone-3 !absolute dark:text-stone-7 hover:text-stone-7 dark:hover:text-stone-3"
|
|
95
|
+
@click.stop="favoritesStore.remove(item.fullPath)"
|
|
96
|
+
/>
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
<div
|
|
100
|
+
v-else
|
|
101
|
+
flex="center col"
|
|
102
|
+
py-6
|
|
103
|
+
text-stone-5
|
|
104
|
+
>
|
|
105
|
+
<PubinfoIcon name="favorites" :size="150" />
|
|
106
|
+
<p
|
|
107
|
+
v-show="favoritesStore.canAdd(route.fullPath, routeStore.routes)"
|
|
108
|
+
m-0
|
|
109
|
+
flex-center
|
|
110
|
+
text-sm
|
|
111
|
+
op-75
|
|
112
|
+
>
|
|
113
|
+
点击右上角
|
|
114
|
+
<FluentStarAdd16Regular
|
|
115
|
+
text-18px mx-1
|
|
116
|
+
text-stone-6
|
|
117
|
+
dark:text-stone-4
|
|
118
|
+
/>
|
|
119
|
+
将当前页面添加到收藏夹
|
|
120
|
+
</p>
|
|
121
|
+
</div>
|
|
122
|
+
</OverlayScrollbarsComponent>
|
|
123
|
+
</div>
|
|
124
|
+
</template>
|
|
125
|
+
|
|
126
|
+
<style lang="scss" scoped>
|
|
127
|
+
:deep([data-overlayscrollbars-viewport]) {
|
|
128
|
+
overscroll-behavior: contain;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.draggable-ghost {
|
|
132
|
+
opacity: 0;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.name {
|
|
136
|
+
mask-image: linear-gradient(to right, #000 calc(100% - 80px), transparent);
|
|
137
|
+
}
|
|
138
|
+
</style>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { findIndex } from 'lodash-es';
|
|
3
|
+
import FluentStar12Filled from '~icons/fluent/star-12-filled';
|
|
4
|
+
import FluentStar16Regular from '~icons/fluent/star-16-regular';
|
|
5
|
+
import { useContext } from '../../../composables/useContext';
|
|
6
|
+
|
|
7
|
+
defineOptions({
|
|
8
|
+
name: 'Star',
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
const { favoritesStore } = useContext();
|
|
12
|
+
const isActive = ref(false);
|
|
13
|
+
const router = useRouter();
|
|
14
|
+
|
|
15
|
+
watchEffect(() => {
|
|
16
|
+
const currentRoute = router.currentRoute.value.fullPath;
|
|
17
|
+
isActive.value = !!~findIndex(favoritesStore.list, ['fullPath', currentRoute]);
|
|
18
|
+
});
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<template>
|
|
22
|
+
<div
|
|
23
|
+
flex
|
|
24
|
+
items-center
|
|
25
|
+
justify-center
|
|
26
|
+
>
|
|
27
|
+
<FluentStar12Filled v-if="isActive" text="[#FBC71D] 18px" />
|
|
28
|
+
<FluentStar16Regular v-else text-18px />
|
|
29
|
+
</div>
|
|
30
|
+
</template>
|
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { RouteRecordRaw } from 'vue-router';
|
|
3
|
+
import { PubinfoIcon } from '@/components';
|
|
4
|
+
import { cloneDeep } from 'lodash-es';
|
|
5
|
+
import { compile } from 'path-to-regexp';
|
|
6
|
+
import { useContext } from '../../../composables/useContext';
|
|
7
|
+
import Breadcrumb from '../../Tools/Breadcrumb/index.vue';
|
|
8
|
+
import BreadcrumbItem from '../../Tools/Breadcrumb/item.vue';
|
|
9
|
+
import Tools from '../../Tools/index.vue';
|
|
10
|
+
import Favorites from './Favorites.vue';
|
|
11
|
+
import Star from './Star.vue';
|
|
12
|
+
|
|
13
|
+
defineOptions({
|
|
14
|
+
name: 'Toolbar',
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
const route = useRoute();
|
|
18
|
+
const router = useRouter();
|
|
19
|
+
|
|
20
|
+
const { settingsStore, menuStore, generateI18nTitle } = useContext();
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* 计算属性:是否启用子菜单折叠按钮
|
|
24
|
+
*
|
|
25
|
+
* @return {boolean}
|
|
26
|
+
*/
|
|
27
|
+
const enableSubMenuCollapseButton = computed(() => {
|
|
28
|
+
return settingsStore.mode === 'mobile' || (
|
|
29
|
+
['side', 'head', 'single'].includes(settingsStore.settings.menu.menuMode)
|
|
30
|
+
&& settingsStore.settings.menu.enableSubMenuCollapseButton
|
|
31
|
+
&& !(
|
|
32
|
+
settingsStore.settings.menu.subMenuOnlyOneHide
|
|
33
|
+
&& menuStore.sidebarMenus.length === 1
|
|
34
|
+
&& (
|
|
35
|
+
!menuStore.sidebarMenus[0].children
|
|
36
|
+
|| menuStore.sidebarMenus[0]?.children.every(item => item.meta?.sidebar === false)
|
|
37
|
+
)
|
|
38
|
+
)
|
|
39
|
+
);
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* 顶部工具栏组件
|
|
44
|
+
*
|
|
45
|
+
* @returns {boolean}
|
|
46
|
+
*/
|
|
47
|
+
const breadcrumbIsShow = computed(() =>
|
|
48
|
+
settingsStore.mode === 'pc'
|
|
49
|
+
&& settingsStore.settings.breadcrumb.enable,
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
function createHomeBreadcrumb() {
|
|
53
|
+
return {
|
|
54
|
+
path: '/',
|
|
55
|
+
title: generateI18nTitle('route.home', settingsStore.settings.home.title),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const breadcrumbList = computed(() => {
|
|
60
|
+
const breadcrumbList: Array<{ title: string, path: string }> = [];
|
|
61
|
+
if (settingsStore.settings.home.enable) {
|
|
62
|
+
breadcrumbList.push(createHomeBreadcrumb());
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (route.name !== 'Home'
|
|
66
|
+
&& settingsStore.settings.breadcrumb.enableMainMenu
|
|
67
|
+
&& !['single'].includes(settingsStore.settings.menu.menuMode)
|
|
68
|
+
) {
|
|
69
|
+
const index = menuStore.allMenus.findIndex((item) => {
|
|
70
|
+
return item.children.some((r) => {
|
|
71
|
+
return route.fullPath.indexOf(`${r.path}/`) === 0 || route.fullPath === r.path;
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
if (menuStore.allMenus[index]?.meta) {
|
|
76
|
+
breadcrumbList.push({
|
|
77
|
+
path: '',
|
|
78
|
+
title: generateI18nTitle(menuStore.allMenus[index].meta?.i18n, menuStore.allMenus[index].meta?.title),
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
if (route.meta.breadcrumbNeste) {
|
|
84
|
+
route.meta.breadcrumbNeste.forEach((item) => {
|
|
85
|
+
if (item.hide === false) {
|
|
86
|
+
breadcrumbList.push({
|
|
87
|
+
path: item.path,
|
|
88
|
+
title: generateI18nTitle(item.i18n, item.title),
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
const findItem = settingsStore.customTitleList.find(item => item.fullPath === route.fullPath);
|
|
93
|
+
const lastBreadcrumb = breadcrumbList.at(-1);
|
|
94
|
+
if (findItem && lastBreadcrumb) {
|
|
95
|
+
lastBreadcrumb.title = findItem.title;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return breadcrumbList;
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
function pathCompile(path: string) {
|
|
102
|
+
const toPath = compile(path);
|
|
103
|
+
return toPath(route.params);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
const breadcrumbTree = computed(() => {
|
|
107
|
+
const menus = cloneDeep(menuStore.allMenus);
|
|
108
|
+
|
|
109
|
+
// 过滤非菜单的页面
|
|
110
|
+
const breadcrumbTreeRaw = recursiveTreeFilter(
|
|
111
|
+
menus as RouteRecordRaw[],
|
|
112
|
+
(node) => {
|
|
113
|
+
if (node?.meta?.sidebar === false) {
|
|
114
|
+
return false;
|
|
115
|
+
}
|
|
116
|
+
return true;
|
|
117
|
+
},
|
|
118
|
+
);
|
|
119
|
+
|
|
120
|
+
return recursiveTreeMap(
|
|
121
|
+
breadcrumbTreeRaw,
|
|
122
|
+
(node) => {
|
|
123
|
+
return {
|
|
124
|
+
title: node.meta?.title,
|
|
125
|
+
path: node.path,
|
|
126
|
+
children: node.children,
|
|
127
|
+
};
|
|
128
|
+
},
|
|
129
|
+
);
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
function recursiveTreeFilter<T extends { children?: T[] }>(tree: T[], fn: (node: T) => any) {
|
|
133
|
+
return tree?.filter((node) => {
|
|
134
|
+
node.children = node.children && recursiveTreeFilter(node.children, fn);
|
|
135
|
+
return fn(node);
|
|
136
|
+
}) ?? [];
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
function recursiveTreeMap<T extends { children?: T[] }>(tree: T[], fn: (node: T) => any) {
|
|
140
|
+
return tree?.map((node) => {
|
|
141
|
+
node.children = node.children && recursiveTreeMap(node.children, fn);
|
|
142
|
+
return fn(node);
|
|
143
|
+
}) ?? [];
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* 根据 path 字段读取树中的指定节点
|
|
148
|
+
*/
|
|
149
|
+
function getCurrentBreadcrumb(path: string) {
|
|
150
|
+
const fn = (node: Record<string, any>) => node.path === path;
|
|
151
|
+
const list = [...breadcrumbTree.value];
|
|
152
|
+
let currentNode;
|
|
153
|
+
|
|
154
|
+
for (const node of list) {
|
|
155
|
+
if (fn(node)) {
|
|
156
|
+
currentNode = node;
|
|
157
|
+
break;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
if (node?.children) {
|
|
161
|
+
list.push(...node.children);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
return currentNode ?? {};
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* 点击面包屑的下拉树节点
|
|
170
|
+
*/
|
|
171
|
+
function onSelect(node: RouteRecordRaw, index: number) {
|
|
172
|
+
if (!node.path || (index === (breadcrumbList.value.length - 1))) {
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
if (!node) {
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
if (!node?.children?.length) {
|
|
181
|
+
router.push(pathCompile(node?.path));
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
</script>
|
|
185
|
+
|
|
186
|
+
<template>
|
|
187
|
+
<div class="toolbar-container">
|
|
188
|
+
<div class="left-box">
|
|
189
|
+
<div
|
|
190
|
+
v-if="enableSubMenuCollapseButton"
|
|
191
|
+
class="flex-center cursor-pointer px-2 py-1 transition-transform"
|
|
192
|
+
:class="{ '-rotate-z-180': settingsStore.settings.menu.subMenuCollapse }"
|
|
193
|
+
@click="settingsStore.toggleSidebarCollapse()"
|
|
194
|
+
>
|
|
195
|
+
<PubinfoIcon name="toolbar-collapse" class="icon" />
|
|
196
|
+
</div>
|
|
197
|
+
<HDropdown
|
|
198
|
+
v-if="settingsStore.mode === 'pc' && settingsStore.settings.favorites.enable"
|
|
199
|
+
placement="bottom-start"
|
|
200
|
+
class="flex-center cursor-pointer px-2 py-1 "
|
|
201
|
+
>
|
|
202
|
+
<Star />
|
|
203
|
+
<template #dropdown>
|
|
204
|
+
<Favorites />
|
|
205
|
+
</template>
|
|
206
|
+
</HDropdown>
|
|
207
|
+
<Breadcrumb
|
|
208
|
+
v-if="breadcrumbIsShow"
|
|
209
|
+
class="breadcrumb"
|
|
210
|
+
:class="{
|
|
211
|
+
[`breadcrumb-${settingsStore.settings.breadcrumb.style}`]: settingsStore.settings.breadcrumb.style !== '',
|
|
212
|
+
}"
|
|
213
|
+
>
|
|
214
|
+
<TransitionGroup name="breadcrumb">
|
|
215
|
+
<BreadcrumbItem
|
|
216
|
+
v-for="(item, index) in breadcrumbList"
|
|
217
|
+
:key="`${index}_${item.path}_${item.title}`"
|
|
218
|
+
>
|
|
219
|
+
<HDropdownTree
|
|
220
|
+
:item="getCurrentBreadcrumb(item.path)"
|
|
221
|
+
:disabled="!item.path || (index === breadcrumbList.length - 1) || getCurrentBreadcrumb(item.path)?.children?.length === 1"
|
|
222
|
+
@select="onSelect($event, index)"
|
|
223
|
+
>
|
|
224
|
+
<span class="flex items-center gap-0.5">
|
|
225
|
+
<span>{{ item.title }}</span>
|
|
226
|
+
<PubinfoIcon
|
|
227
|
+
v-if="(getCurrentBreadcrumb(item.path)?.children?.length > 1) && (index !== breadcrumbList.length - 1)"
|
|
228
|
+
name="i-material-symbols-keyboard-arrow-down"
|
|
229
|
+
/>
|
|
230
|
+
</span>
|
|
231
|
+
</HDropdownTree>
|
|
232
|
+
</BreadcrumbItem>
|
|
233
|
+
</TransitionGroup>
|
|
234
|
+
</Breadcrumb>
|
|
235
|
+
</div>
|
|
236
|
+
|
|
237
|
+
<Tools />
|
|
238
|
+
</div>
|
|
239
|
+
</template>
|
|
240
|
+
|
|
241
|
+
<style lang="scss" scoped>
|
|
242
|
+
.toolbar-container {
|
|
243
|
+
display: flex;
|
|
244
|
+
align-items: center;
|
|
245
|
+
justify-content: space-between;
|
|
246
|
+
height: var(--g-toolbar-height);
|
|
247
|
+
background-color: var(--g-container-bg);
|
|
248
|
+
transition: background-color 0.3s;
|
|
249
|
+
|
|
250
|
+
.left-box {
|
|
251
|
+
display: flex;
|
|
252
|
+
align-items: center;
|
|
253
|
+
padding-right: 50px;
|
|
254
|
+
padding-left: 10px;
|
|
255
|
+
overflow: hidden;
|
|
256
|
+
mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 50px), transparent);
|
|
257
|
+
|
|
258
|
+
.breadcrumb {
|
|
259
|
+
padding-left: 10px;
|
|
260
|
+
white-space: nowrap;
|
|
261
|
+
|
|
262
|
+
&.breadcrumb-modern {
|
|
263
|
+
:deep(.breadcrumb-item) {
|
|
264
|
+
.text {
|
|
265
|
+
--at-apply: bg-stone-2/80 dark:bg-stone-8/80;
|
|
266
|
+
|
|
267
|
+
padding: 6px 16px;
|
|
268
|
+
clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%, 8px 50%);
|
|
269
|
+
|
|
270
|
+
&.is-link:hover {
|
|
271
|
+
--at-apply: bg-stone-2 dark:bg-stone-8;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
&:first-child .text {
|
|
276
|
+
padding-left: 12px;
|
|
277
|
+
clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
|
|
278
|
+
border-radius: 6px 0 0 6px;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
&:last-child:not(:first-child) .text {
|
|
282
|
+
--at-apply: bg-stone-2 dark:bg-stone-8;
|
|
283
|
+
|
|
284
|
+
padding-right: 12px;
|
|
285
|
+
clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 8px 50%);
|
|
286
|
+
border-radius: 0 6px 6px 0;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.separator {
|
|
290
|
+
display: none;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
// 面包屑动画
|
|
299
|
+
.breadcrumb-enter-active {
|
|
300
|
+
transition: transform 0.3s, opacity 0.3s;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.breadcrumb-enter-from {
|
|
304
|
+
opacity: 0;
|
|
305
|
+
transform: translateX(30px) skewX(-50deg);
|
|
306
|
+
}
|
|
307
|
+
</style>
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { useCssVar } from '@vueuse/core';
|
|
3
|
+
import { useContext } from '../../composables/useContext';
|
|
4
|
+
import Tabbar from './Tabbar/index.vue';
|
|
5
|
+
import Toolbar from './Toolbar/index.vue';
|
|
6
|
+
|
|
7
|
+
defineOptions({
|
|
8
|
+
name: 'Topbar',
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
const { settingsStore } = useContext();
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* 计算属性:是否开启工具栏
|
|
15
|
+
*
|
|
16
|
+
* @return {boolean}
|
|
17
|
+
*/
|
|
18
|
+
const enableToolbar = computed(() => {
|
|
19
|
+
return !(
|
|
20
|
+
(
|
|
21
|
+
settingsStore.settings.menu.menuMode === 'head'
|
|
22
|
+
&& !settingsStore.settings.menu.enableSubMenuCollapseButton
|
|
23
|
+
&& !settingsStore.settings.favorites.enable
|
|
24
|
+
&& !settingsStore.settings.breadcrumb.enable
|
|
25
|
+
) || (
|
|
26
|
+
settingsStore.settings.menu.menuMode === 'only-head'
|
|
27
|
+
&& !settingsStore.settings.favorites.enable
|
|
28
|
+
&& !settingsStore.settings.breadcrumb.enable
|
|
29
|
+
)
|
|
30
|
+
);
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
const scrollTop = ref(0);
|
|
34
|
+
const scrollOnHide = ref(false);
|
|
35
|
+
const globalTabbarHeight = useCssVar('--g-tabbar-height', document.documentElement || document.body);
|
|
36
|
+
const globalToolBarHeight = useCssVar('--g-toolbar-height', document.documentElement || document.body);
|
|
37
|
+
|
|
38
|
+
const topbarHeight = computed(() => {
|
|
39
|
+
const tabbarHeight = settingsStore.settings.tabbar.enable
|
|
40
|
+
? Number.parseInt(globalTabbarHeight.value!)
|
|
41
|
+
: 0;
|
|
42
|
+
const toolbarHeight = enableToolbar.value
|
|
43
|
+
? Number.parseInt(globalToolBarHeight.value!)
|
|
44
|
+
: 0;
|
|
45
|
+
return tabbarHeight + toolbarHeight;
|
|
46
|
+
});
|
|
47
|
+
onMounted(() => {
|
|
48
|
+
window.addEventListener('scroll', onScroll);
|
|
49
|
+
});
|
|
50
|
+
onUnmounted(() => {
|
|
51
|
+
window.removeEventListener('scroll', onScroll);
|
|
52
|
+
});
|
|
53
|
+
function onScroll() {
|
|
54
|
+
scrollTop.value = (document.documentElement || document.body).scrollTop;
|
|
55
|
+
}
|
|
56
|
+
watch(scrollTop, (val, oldVal) => {
|
|
57
|
+
scrollOnHide.value = settingsStore.settings.topbar.mode === 'sticky' && val > oldVal && val > topbarHeight.value;
|
|
58
|
+
});
|
|
59
|
+
</script>
|
|
60
|
+
|
|
61
|
+
<template>
|
|
62
|
+
<div
|
|
63
|
+
class="topbar-container"
|
|
64
|
+
:class="{
|
|
65
|
+
'has-tabbar': settingsStore.settings.tabbar.enable,
|
|
66
|
+
'has-toolbar': enableToolbar,
|
|
67
|
+
[`topbar-${settingsStore.settings.topbar.mode}`]: true,
|
|
68
|
+
'shadow': !settingsStore.settings.topbar.switchTabbarAndToolbar && scrollTop,
|
|
69
|
+
'hide': scrollOnHide,
|
|
70
|
+
'switch-tabbar-toolbar': settingsStore.settings.topbar.switchTabbarAndToolbar,
|
|
71
|
+
}"
|
|
72
|
+
data-fixed-calc-width
|
|
73
|
+
>
|
|
74
|
+
<Tabbar v-if="settingsStore.settings.tabbar.enable" />
|
|
75
|
+
<Toolbar v-if="enableToolbar" />
|
|
76
|
+
</div>
|
|
77
|
+
</template>
|
|
78
|
+
|
|
79
|
+
<style lang="scss" scoped>
|
|
80
|
+
.topbar-container {
|
|
81
|
+
position: absolute;
|
|
82
|
+
top: 0;
|
|
83
|
+
z-index: 100;
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-direction: column;
|
|
86
|
+
box-shadow: 0 1px 0 0 var(--g-border-color);
|
|
87
|
+
transition: width 0.3s, top 0.3s, transform 0.3s, box-shadow 0.3s;
|
|
88
|
+
|
|
89
|
+
&.topbar-fixed,
|
|
90
|
+
&.topbar-sticky {
|
|
91
|
+
position: fixed;
|
|
92
|
+
|
|
93
|
+
&.shadow {
|
|
94
|
+
box-shadow: 0 10px 10px -10px var(--g-box-shadow-color);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&.topbar-sticky.hide {
|
|
99
|
+
top: calc((var(--g-tabbar-height) + var(--g-toolbar-height)) * -1) !important;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&.switch-tabbar-toolbar {
|
|
103
|
+
flex-direction: column-reverse;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
</style>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
useFavoritesStore,
|
|
3
|
+
useIframeStore,
|
|
4
|
+
useKeepAliveStore,
|
|
5
|
+
useMenuStore,
|
|
6
|
+
useNotificationStore,
|
|
7
|
+
useRouteStore,
|
|
8
|
+
useSettingsStore,
|
|
9
|
+
useTabbarStore,
|
|
10
|
+
useUserStore,
|
|
11
|
+
} from '@/stores';
|
|
12
|
+
import type { InjectionKey } from 'vue';
|
|
13
|
+
|
|
14
|
+
interface LayoutContext {
|
|
15
|
+
settingsStore: ReturnType<typeof useSettingsStore>
|
|
16
|
+
keepAliveStore: ReturnType<typeof useKeepAliveStore>
|
|
17
|
+
iframeStore: ReturnType<typeof useIframeStore>
|
|
18
|
+
userStore: ReturnType<typeof useUserStore>
|
|
19
|
+
notificationStore: ReturnType<typeof useNotificationStore>
|
|
20
|
+
menuStore: ReturnType<typeof useMenuStore>
|
|
21
|
+
routeStore: ReturnType<typeof useRouteStore>
|
|
22
|
+
tabbarStore: ReturnType<typeof useTabbarStore>
|
|
23
|
+
favoritesStore: ReturnType<typeof useFavoritesStore>
|
|
24
|
+
|
|
25
|
+
appTitle: string
|
|
26
|
+
isDev: boolean
|
|
27
|
+
generateI18nTitle: any
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const layoutInjectionKey: InjectionKey<LayoutContext> = Symbol('Layout');
|
|
31
|
+
|
|
32
|
+
export function createContext(options: LayoutContext) {
|
|
33
|
+
provide(layoutInjectionKey, options);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function useContext() {
|
|
37
|
+
return inject(layoutInjectionKey)!;
|
|
38
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { useMenuStore, useSettingsStore } from '@/stores';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 获取指定元素的计算样式属性值
|
|
5
|
+
* @param property - 要获取的样式属性
|
|
6
|
+
* @param root - 根元素,默认为 document.documentElement
|
|
7
|
+
* @returns 样式属性值的整数形式
|
|
8
|
+
*/
|
|
9
|
+
export function useGetComputedStyle(property: string, root: HTMLElement = document.documentElement) {
|
|
10
|
+
return Number.parseInt(getComputedStyle(root).getPropertyValue(property));
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
type unit = `${string}px`;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* 根据各种设置和条件计算主侧边栏和子侧边栏的实际宽度。
|
|
17
|
+
* @returns 包含主侧边栏和子侧边栏实际宽度的计算属性对象。
|
|
18
|
+
*/
|
|
19
|
+
export function useGetSidebarActualWidth() {
|
|
20
|
+
const settingsStore = useSettingsStore();
|
|
21
|
+
const menuStore = useMenuStore();
|
|
22
|
+
|
|
23
|
+
const mainSidebarActualWidth = computed<unit>(() => {
|
|
24
|
+
const menuMode = settingsStore.settings.menu.menuMode;
|
|
25
|
+
const isMobile = settingsStore.mode !== 'mobile';
|
|
26
|
+
const isSingle = menuMode === 'single';
|
|
27
|
+
const isHeadAndOnlyHead = ['head', 'only-head'].includes(menuMode);
|
|
28
|
+
if (isSingle || (isHeadAndOnlyHead && isMobile)) {
|
|
29
|
+
return '0px';
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
return `${useGetComputedStyle('--g-main-sidebar-width')}px`;
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* subSidebarActualWidth 的计算属性,用于获取子侧边栏的实际宽度。
|
|
38
|
+
* 它考虑了各种设置和条件来确定最终的宽度。
|
|
39
|
+
* @returns 子侧边栏的实际宽度(以像素为单位)。
|
|
40
|
+
*/
|
|
41
|
+
const subSidebarActualWidth = computed<unit>(() => {
|
|
42
|
+
let actualWidth = useGetComputedStyle('--g-sub-sidebar-width');
|
|
43
|
+
const subSidebarActualWidth = settingsStore.settings.menu.subMenuCollapse;
|
|
44
|
+
const subMenuOnlyOneHide = settingsStore.settings.menu.subMenuOnlyOneHide;
|
|
45
|
+
const menuMode = settingsStore.settings.menu.menuMode;
|
|
46
|
+
const isMobile = settingsStore.mode !== 'mobile';
|
|
47
|
+
const onlySideOrHead = ['only-side', 'only-head'].includes(menuMode);
|
|
48
|
+
|
|
49
|
+
if (subSidebarActualWidth && isMobile) {
|
|
50
|
+
actualWidth = useGetComputedStyle('--g-sub-sidebar-collapse-width');
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
if (onlySideOrHead && isMobile) {
|
|
54
|
+
actualWidth = 0;
|
|
55
|
+
}
|
|
56
|
+
if (
|
|
57
|
+
subMenuOnlyOneHide
|
|
58
|
+
&& menuStore.sidebarMenus.length === 1
|
|
59
|
+
&& (
|
|
60
|
+
!menuStore.sidebarMenus[0].children
|
|
61
|
+
|| menuStore.sidebarMenus[0]?.children.every(item => item.meta?.sidebar === false)
|
|
62
|
+
)
|
|
63
|
+
) {
|
|
64
|
+
actualWidth = 0;
|
|
65
|
+
}
|
|
66
|
+
return `${actualWidth}px`;
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
return { mainSidebarActualWidth, subSidebarActualWidth };
|
|
70
|
+
}
|