@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,20 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { useToggle } from '@vueuse/core';
|
|
3
|
+
|
|
4
|
+
defineOptions({
|
|
5
|
+
name: 'Preferences',
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
const PreferencesContent = defineAsyncComponent(() => import('./PreferencesContent.vue'));
|
|
9
|
+
const [isShow, toggle] = useToggle(false);
|
|
10
|
+
|
|
11
|
+
defineExpose({
|
|
12
|
+
open: () => toggle(),
|
|
13
|
+
});
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<template>
|
|
17
|
+
<HSlideover v-model="isShow" title="个人偏好设置">
|
|
18
|
+
<PreferencesContent />
|
|
19
|
+
</HSlideover>
|
|
20
|
+
</template>
|
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { Tabbar } from '#/tabbar';
|
|
3
|
+
import type { OverlayScrollbarsComponentRef } from 'overlayscrollbars-vue';
|
|
4
|
+
import type { RouteRecordRaw } from 'vue-router';
|
|
5
|
+
import { PubinfoIcon } from '@/components';
|
|
6
|
+
import { resolveRoutePath } from '@/utils';
|
|
7
|
+
import { Dialog, DialogDescription, DialogPanel, TransitionChild, TransitionRoot } from '@headlessui/vue';
|
|
8
|
+
import hotkeys from 'hotkeys-js';
|
|
9
|
+
import { cloneDeep } from 'lodash-es';
|
|
10
|
+
import { OverlayScrollbarsComponent } from 'overlayscrollbars-vue';
|
|
11
|
+
import { useI18n } from 'vue-i18n';
|
|
12
|
+
|
|
13
|
+
import AntDesignCaretDownFilled from '~icons/ant-design/caret-down-filled';
|
|
14
|
+
|
|
15
|
+
import AntDesignCaretUpFilled from '~icons/ant-design/caret-up-filled';
|
|
16
|
+
import EpSearch from '~icons/ep/search';
|
|
17
|
+
import IonMdReturnLeft from '~icons/ion/md-return-left';
|
|
18
|
+
import TablerMoodEmpty from '~icons/tabler/mood-empty';
|
|
19
|
+
import { useContext } from '../../composables/useContext';
|
|
20
|
+
import Breadcrumb from './Breadcrumb/index.vue';
|
|
21
|
+
import BreadcrumbItem from './Breadcrumb/item.vue';
|
|
22
|
+
|
|
23
|
+
defineOptions({
|
|
24
|
+
name: 'Search',
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
const overlayTransitionClass = ref({
|
|
28
|
+
enter: 'ease-in-out duration-500',
|
|
29
|
+
enterFrom: 'opacity-0',
|
|
30
|
+
enterTo: 'opacity-100',
|
|
31
|
+
leave: 'ease-in-out duration-500',
|
|
32
|
+
leaveFrom: 'opacity-100',
|
|
33
|
+
leaveTo: 'opacity-0',
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
const transitionClass = computed(() => {
|
|
37
|
+
return {
|
|
38
|
+
enter: 'ease-out duration-300',
|
|
39
|
+
enterFrom: 'opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95',
|
|
40
|
+
enterTo: 'opacity-100 translate-y-0 sm:scale-100',
|
|
41
|
+
leave: 'ease-in duration-200',
|
|
42
|
+
leaveFrom: 'opacity-100 translate-y-0 sm:scale-100',
|
|
43
|
+
leaveTo: 'opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95',
|
|
44
|
+
};
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
const { t } = useI18n();
|
|
48
|
+
|
|
49
|
+
const router = useRouter();
|
|
50
|
+
const { settingsStore, routeStore, tabbarStore, generateI18nTitle } = useContext();
|
|
51
|
+
|
|
52
|
+
type searchTypes = 'menu' | 'tab';
|
|
53
|
+
interface listTypes {
|
|
54
|
+
path: string
|
|
55
|
+
icon?: string
|
|
56
|
+
title?: string | (() => string)
|
|
57
|
+
i18n?: string
|
|
58
|
+
link?: string
|
|
59
|
+
breadcrumb: any[]
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const isShow = ref(false);
|
|
63
|
+
const searchType = ref<searchTypes>();
|
|
64
|
+
const searchInput = ref('');
|
|
65
|
+
const sourceList = ref<listTypes[]>([]);
|
|
66
|
+
const actived = ref(-1);
|
|
67
|
+
|
|
68
|
+
const searchInputRef = ref();
|
|
69
|
+
const searchResultRef = ref<OverlayScrollbarsComponentRef>();
|
|
70
|
+
const searchResultItemRef = ref<HTMLElement[]>([]);
|
|
71
|
+
onBeforeUpdate(() => {
|
|
72
|
+
searchResultItemRef.value = [];
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
const resultList = computed(() => {
|
|
76
|
+
let result = [];
|
|
77
|
+
result = sourceList.value.filter((item) => {
|
|
78
|
+
let flag = false;
|
|
79
|
+
if (generateI18nTitle(item.i18n, item.title).toString().includes(searchInput.value)) {
|
|
80
|
+
flag = true;
|
|
81
|
+
}
|
|
82
|
+
if (item.path.includes(searchInput.value)) {
|
|
83
|
+
flag = true;
|
|
84
|
+
}
|
|
85
|
+
if (item.breadcrumb.some((b: { i18n: any, title: any }) => generateI18nTitle(b.i18n, b.title).toString().includes(searchInput.value))) {
|
|
86
|
+
flag = true;
|
|
87
|
+
}
|
|
88
|
+
return flag;
|
|
89
|
+
});
|
|
90
|
+
return result;
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
watch(() => isShow.value, (val) => {
|
|
94
|
+
if (val) {
|
|
95
|
+
searchInput.value = '';
|
|
96
|
+
actived.value = -1;
|
|
97
|
+
// 当搜索显示的时候绑定上、下、回车快捷键,隐藏的时候再解绑。另外当 input 处于 focus 状态时,采用 vue 来绑定键盘事件
|
|
98
|
+
hotkeys('up', keyUp);
|
|
99
|
+
hotkeys('down', keyDown);
|
|
100
|
+
hotkeys('enter', keyEnter);
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
hotkeys.unbind('up', keyUp);
|
|
104
|
+
hotkeys.unbind('down', keyDown);
|
|
105
|
+
hotkeys.unbind('enter', keyEnter);
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
watch(() => resultList.value, () => {
|
|
109
|
+
actived.value = -1;
|
|
110
|
+
handleScroll();
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
onMounted(() => {
|
|
114
|
+
hotkeys('alt+s', (e) => {
|
|
115
|
+
if (settingsStore.settings.navSearch.enable && settingsStore.settings.navSearch.enableHotkeys) {
|
|
116
|
+
e.preventDefault();
|
|
117
|
+
initSourceList();
|
|
118
|
+
isShow.value = true;
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
hotkeys('esc', (e) => {
|
|
122
|
+
if (settingsStore.settings.navSearch.enable && settingsStore.settings.navSearch.enableHotkeys) {
|
|
123
|
+
e.preventDefault();
|
|
124
|
+
isShow.value = false;
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
initSourceList();
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
function switchType(type: any) {
|
|
131
|
+
searchInputRef.value.focus();
|
|
132
|
+
initSourceList(type);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
function initSourceList(type: searchTypes = 'menu') {
|
|
136
|
+
searchType.value = type;
|
|
137
|
+
sourceList.value = [];
|
|
138
|
+
switch (type) {
|
|
139
|
+
case 'menu':
|
|
140
|
+
routeStore.routes.forEach((item) => {
|
|
141
|
+
if (item.children) {
|
|
142
|
+
getSourceList(item.children as RouteRecordRaw[]);
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
break;
|
|
146
|
+
case 'tab':
|
|
147
|
+
getSourceListByTabs(tabbarStore.list);
|
|
148
|
+
break;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
function hasChildren(item: RouteRecordRaw) {
|
|
153
|
+
let flag = true;
|
|
154
|
+
if (item.children?.every(i => i.meta?.sidebar === false)) {
|
|
155
|
+
flag = false;
|
|
156
|
+
}
|
|
157
|
+
return flag;
|
|
158
|
+
}
|
|
159
|
+
function getSourceList(arr: RouteRecordRaw[], basePath?: string, icon?: string, breadcrumb?: { title?: string | (() => string), i18n?: string }[]) {
|
|
160
|
+
arr.forEach((item) => {
|
|
161
|
+
if (item.meta?.sidebar !== false) {
|
|
162
|
+
const breadcrumbTemp = cloneDeep(breadcrumb) || [];
|
|
163
|
+
if (item.children && hasChildren(item)) {
|
|
164
|
+
breadcrumbTemp.push({
|
|
165
|
+
title: item.meta?.title,
|
|
166
|
+
i18n: item.meta?.i18n,
|
|
167
|
+
});
|
|
168
|
+
getSourceList(item.children, resolveRoutePath(basePath, item.path), item.meta?.icon ?? icon, breadcrumbTemp);
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
breadcrumbTemp.push({
|
|
172
|
+
title: item.meta?.title,
|
|
173
|
+
i18n: item.meta?.i18n,
|
|
174
|
+
});
|
|
175
|
+
sourceList.value.push({
|
|
176
|
+
path: resolveRoutePath(basePath, item.path),
|
|
177
|
+
icon: item.meta?.icon ?? icon,
|
|
178
|
+
title: item.meta?.title,
|
|
179
|
+
i18n: item.meta?.i18n,
|
|
180
|
+
link: item.meta?.link,
|
|
181
|
+
breadcrumb: breadcrumbTemp,
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
function getSourceListByTabs(arr: Tabbar.recordRaw[]) {
|
|
189
|
+
arr.forEach((item) => {
|
|
190
|
+
sourceList.value.push({
|
|
191
|
+
icon: item.icon,
|
|
192
|
+
title: item.title,
|
|
193
|
+
path: item.fullPath,
|
|
194
|
+
i18n: item.i18n,
|
|
195
|
+
breadcrumb: [],
|
|
196
|
+
});
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
function keyUp() {
|
|
201
|
+
if (resultList.value.length) {
|
|
202
|
+
actived.value -= 1;
|
|
203
|
+
if (actived.value < 0) {
|
|
204
|
+
actived.value = resultList.value.length - 1;
|
|
205
|
+
}
|
|
206
|
+
handleScroll();
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
function keyDown() {
|
|
210
|
+
if (resultList.value.length) {
|
|
211
|
+
actived.value += 1;
|
|
212
|
+
if (actived.value > resultList.value.length - 1) {
|
|
213
|
+
actived.value = 0;
|
|
214
|
+
}
|
|
215
|
+
handleScroll();
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
function keyEnter() {
|
|
219
|
+
if (actived.value !== -1) {
|
|
220
|
+
searchResultItemRef.value.find(item => Number.parseInt(item.dataset.index!) === actived.value)?.click();
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
function handleScroll() {
|
|
224
|
+
if (searchResultRef.value) {
|
|
225
|
+
const contentDom = searchResultRef.value.osInstance()!.elements().content;
|
|
226
|
+
let scrollTo = 0;
|
|
227
|
+
if (actived.value !== -1) {
|
|
228
|
+
scrollTo = contentDom.scrollTop;
|
|
229
|
+
const activedOffsetTop = searchResultItemRef.value.find(item => Number.parseInt(item.dataset.index!) === actived.value)?.offsetTop ?? 0;
|
|
230
|
+
const activedClientHeight = searchResultItemRef.value.find(item => Number.parseInt(item.dataset.index!) === actived.value)?.clientHeight ?? 0;
|
|
231
|
+
const searchScrollTop = contentDom.scrollTop;
|
|
232
|
+
const searchClientHeight = contentDom.clientHeight;
|
|
233
|
+
if (activedOffsetTop + activedClientHeight > searchScrollTop + searchClientHeight) {
|
|
234
|
+
scrollTo = activedOffsetTop + activedClientHeight - searchClientHeight;
|
|
235
|
+
}
|
|
236
|
+
else if (activedOffsetTop <= searchScrollTop) {
|
|
237
|
+
scrollTo = activedOffsetTop;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
contentDom.scrollTo({
|
|
241
|
+
top: scrollTo,
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
function pageJump(path: listTypes['path'], link: listTypes['link']) {
|
|
247
|
+
if (link) {
|
|
248
|
+
window.open(link, '_blank');
|
|
249
|
+
}
|
|
250
|
+
else {
|
|
251
|
+
router.push(path);
|
|
252
|
+
}
|
|
253
|
+
isShow.value = false;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
function toggle(type?: 'menu' | 'tab') {
|
|
257
|
+
if (!isShow.value) {
|
|
258
|
+
initSourceList(type);
|
|
259
|
+
}
|
|
260
|
+
isShow.value = !isShow.value;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
defineExpose({
|
|
264
|
+
toggle,
|
|
265
|
+
});
|
|
266
|
+
</script>
|
|
267
|
+
|
|
268
|
+
<template>
|
|
269
|
+
<TransitionRoot as="template" :show="isShow">
|
|
270
|
+
<Dialog :initial-focus="searchInputRef" class="fixed inset-0 z-2000 flex" @close="isShow && toggle()">
|
|
271
|
+
<TransitionChild as="template" v-bind="overlayTransitionClass">
|
|
272
|
+
<div class="fixed inset-0 bg-stone-200/75 backdrop-blur-sm transition-opacity dark:bg-stone-8/75" />
|
|
273
|
+
</TransitionChild>
|
|
274
|
+
<div class="fixed inset-0">
|
|
275
|
+
<div class="h-full flex items-end justify-center p-4 text-center sm:items-center sm:p-0">
|
|
276
|
+
<TransitionChild as="template" v-bind="transitionClass">
|
|
277
|
+
<DialogPanel class="relative h-full max-h-4/5 w-full flex flex-col text-left sm:max-w-2xl">
|
|
278
|
+
<HTabList
|
|
279
|
+
v-if="settingsStore.settings.tabbar.enable"
|
|
280
|
+
v-model="searchType"
|
|
281
|
+
:options="[
|
|
282
|
+
{ label: t('app.search.type.menu'), value: 'menu' },
|
|
283
|
+
{ label: t('app.search.type.tab'), value: 'tab' },
|
|
284
|
+
]"
|
|
285
|
+
class="mb-4 flex!"
|
|
286
|
+
@click.stop
|
|
287
|
+
@change="switchType"
|
|
288
|
+
/>
|
|
289
|
+
<div class="flex flex-col overflow-y-auto rounded-xl bg-white shadow-xl dark:bg-stone-8">
|
|
290
|
+
<div class="flex items-center px-4 py-3" border-b="~ solid stone-2 dark:stone-7">
|
|
291
|
+
<EpSearch text="18px" class="text-stone-5" />
|
|
292
|
+
<input
|
|
293
|
+
ref="searchInputRef"
|
|
294
|
+
v-model="searchInput"
|
|
295
|
+
:placeholder="t('app.search.input')"
|
|
296
|
+
class="w-full border-0 rounded-md bg-transparent px-3 text-base text-dark dark:text-white focus:outline-none placeholder-stone-4 dark:placeholder-stone-5"
|
|
297
|
+
@keydown.esc="toggle()"
|
|
298
|
+
@keydown.up.prevent="keyUp"
|
|
299
|
+
@keydown.down.prevent="keyDown"
|
|
300
|
+
@keydown.enter.prevent="keyEnter"
|
|
301
|
+
>
|
|
302
|
+
</div>
|
|
303
|
+
<DialogDescription class="relative m-0 of-y-hidden">
|
|
304
|
+
<OverlayScrollbarsComponent
|
|
305
|
+
ref="searchResultRef"
|
|
306
|
+
:options="{ scrollbars: { autoHide: 'leave', autoHideDelay: 300 } }"
|
|
307
|
+
defer
|
|
308
|
+
class="h-full"
|
|
309
|
+
>
|
|
310
|
+
<template v-if="resultList.length > 0">
|
|
311
|
+
<a
|
|
312
|
+
v-for="(item, index) in resultList"
|
|
313
|
+
ref="searchResultItemRef"
|
|
314
|
+
:key="item.path"
|
|
315
|
+
class="flex cursor-pointer items-center"
|
|
316
|
+
:class="{ 'bg-stone-2/40 dark:bg-stone-7/40': index === actived }"
|
|
317
|
+
:data-index="index"
|
|
318
|
+
@click="pageJump(item.path, item.link)"
|
|
319
|
+
@mouseover="actived = index"
|
|
320
|
+
>
|
|
321
|
+
<PubinfoIcon
|
|
322
|
+
v-if="item.icon"
|
|
323
|
+
:name="item.icon"
|
|
324
|
+
:size="20"
|
|
325
|
+
class="basis-16 transition"
|
|
326
|
+
:class="{ 'scale-120 text-ui-primary': index === actived }"
|
|
327
|
+
/>
|
|
328
|
+
<div class="flex flex-1 flex-col gap-1 truncate px-4 py-3" border-l="~ solid stone-2 dark:stone-7">
|
|
329
|
+
<div class="truncate text-base font-bold">{{ generateI18nTitle(item.i18n, item.title) }}</div>
|
|
330
|
+
<Breadcrumb v-if="item.breadcrumb.length" class="truncate">
|
|
331
|
+
<BreadcrumbItem v-for="(bc, bcIndex) in item.breadcrumb" :key="bcIndex" class="text-xs">
|
|
332
|
+
{{ generateI18nTitle(bc.i18n, bc.title) }}
|
|
333
|
+
</BreadcrumbItem>
|
|
334
|
+
</Breadcrumb>
|
|
335
|
+
</div>
|
|
336
|
+
</a>
|
|
337
|
+
</template>
|
|
338
|
+
<template v-else>
|
|
339
|
+
<div flex="center col" py-6 text-stone-5>
|
|
340
|
+
<TablerMoodEmpty text="40px" />
|
|
341
|
+
<p m-2 text-base>
|
|
342
|
+
没有找到你想要的
|
|
343
|
+
</p>
|
|
344
|
+
</div>
|
|
345
|
+
</template>
|
|
346
|
+
</OverlayScrollbarsComponent>
|
|
347
|
+
</DialogDescription>
|
|
348
|
+
<div v-if="settingsStore.mode === 'pc'" class="flex justify-between px-4 py-3" border-t="~ solid stone-2 dark:stone-7">
|
|
349
|
+
<div class="flex gap-8">
|
|
350
|
+
<div class="inline-flex items-center gap-1 text-xs">
|
|
351
|
+
<HKbd>
|
|
352
|
+
<IonMdReturnLeft text="14px" />
|
|
353
|
+
</HKbd>
|
|
354
|
+
<span>{{ t('app.search.enter') }}</span>
|
|
355
|
+
</div>
|
|
356
|
+
<div class="inline-flex items-center gap-1 text-xs">
|
|
357
|
+
<HKbd>
|
|
358
|
+
<AntDesignCaretUpFilled text="14px" />
|
|
359
|
+
</HKbd>
|
|
360
|
+
<HKbd>
|
|
361
|
+
<AntDesignCaretDownFilled text="14px" />
|
|
362
|
+
</HKbd>
|
|
363
|
+
<span>{{ t('app.search.up_down') }}</span>
|
|
364
|
+
</div>
|
|
365
|
+
</div>
|
|
366
|
+
<div v-if="settingsStore.settings.navSearch.enableHotkeys" class="inline-flex items-center gap-1 text-xs">
|
|
367
|
+
<HKbd>
|
|
368
|
+
ESC
|
|
369
|
+
</HKbd>
|
|
370
|
+
<span>{{ t('app.search.esc') }}</span>
|
|
371
|
+
</div>
|
|
372
|
+
</div>
|
|
373
|
+
</div>
|
|
374
|
+
</DialogPanel>
|
|
375
|
+
</TransitionChild>
|
|
376
|
+
</div>
|
|
377
|
+
</div>
|
|
378
|
+
</Dialog>
|
|
379
|
+
</TransitionRoot>
|
|
380
|
+
</template>
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { useFullscreen } from '@vueuse/core';
|
|
3
|
+
import { useI18n } from 'vue-i18n';
|
|
4
|
+
import CarbonUserAvatarFilledAlt from '~icons/carbon/user-avatar-filled-alt';
|
|
5
|
+
// import FluentAlert12Regular from '~icons/fluent/alert-12-regular';
|
|
6
|
+
import FluentArrowSync16Filled from '~icons/fluent/arrow-sync-16-filled';
|
|
7
|
+
import FluentFullScreenMaximize16Filled from '~icons/fluent/full-screen-maximize-16-filled';
|
|
8
|
+
import FluentFullScreenMinimize16Filled from '~icons/fluent/full-screen-minimize-16-filled';
|
|
9
|
+
import IconamoonSearch from '~icons/iconamoon/search';
|
|
10
|
+
import MaterialSymbolsExpandMoreRounded from '~icons/material-symbols/expand-more-rounded';
|
|
11
|
+
import PhLineVerticalThin from '~icons/ph/line-vertical-thin';
|
|
12
|
+
// import RiTranslate from '~icons/ri/translate';
|
|
13
|
+
|
|
14
|
+
import { useContext } from '../../composables/useContext';
|
|
15
|
+
import useMainPage from '../../composables/useMainPage';
|
|
16
|
+
import useViewTransition from '../../composables/useViewTransition';
|
|
17
|
+
import DayNightSwitch from './DayNightSwitch.vue';
|
|
18
|
+
import HotkeysIntro from './HotkeysIntro.vue';
|
|
19
|
+
// import I18nSelector from './I18nSelector.vue';
|
|
20
|
+
// import Notification from './Notification.vue';
|
|
21
|
+
import Preferences from './Preferences/index.vue';
|
|
22
|
+
import Search from './Search.vue';
|
|
23
|
+
|
|
24
|
+
defineOptions({
|
|
25
|
+
name: 'Tools',
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
const router = useRouter();
|
|
29
|
+
const { settingsStore, userStore, notificationStore, generateI18nTitle } = useContext();
|
|
30
|
+
|
|
31
|
+
notificationStore.init();
|
|
32
|
+
|
|
33
|
+
const { t } = useI18n();
|
|
34
|
+
|
|
35
|
+
const mainPage = useMainPage();
|
|
36
|
+
const { isFullscreen, toggle } = useFullscreen();
|
|
37
|
+
|
|
38
|
+
const hotkeysIntroRef = ref();
|
|
39
|
+
const preferencesRef = ref();
|
|
40
|
+
const searchRef = ref();
|
|
41
|
+
|
|
42
|
+
const userMenu = computed(() => [
|
|
43
|
+
[
|
|
44
|
+
{
|
|
45
|
+
label: generateI18nTitle('route.home', settingsStore.settings.home.title),
|
|
46
|
+
handle: () => router.push({ name: 'Home' }),
|
|
47
|
+
hide: !settingsStore.settings.home.enable,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
label: t('app.preferences'),
|
|
51
|
+
icon: 'i-iconamoon-star-duotone',
|
|
52
|
+
handle: () => preferencesRef.value?.open?.(),
|
|
53
|
+
hide: !settingsStore.settings.app.enableUserPreferences,
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
[
|
|
57
|
+
{
|
|
58
|
+
label: t('app.hotkeys'),
|
|
59
|
+
icon: 'i-iconamoon-lightning-2-duotone',
|
|
60
|
+
handle: () => hotkeysIntroRef.value?.open?.(),
|
|
61
|
+
hide: settingsStore.mode !== 'pc',
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
[
|
|
65
|
+
{
|
|
66
|
+
label: t('app.changeOrg'),
|
|
67
|
+
icon: 'i-iconamoon-synchronize-duotone',
|
|
68
|
+
handle: () => router.push({
|
|
69
|
+
name: 'ChangeOrganization',
|
|
70
|
+
params: { orgId: userStore.orgId },
|
|
71
|
+
}),
|
|
72
|
+
hide: userStore.orgList.length <= 1,
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
label: t('route.personal.profile'),
|
|
76
|
+
icon: 'i-iconamoon-profile-duotone',
|
|
77
|
+
handle: () => router.push({
|
|
78
|
+
name: 'Profile',
|
|
79
|
+
}),
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
label: t('app.changePassword'),
|
|
83
|
+
icon: 'i-iconamoon-lock-duotone',
|
|
84
|
+
handle: () => router.push({
|
|
85
|
+
name: 'ChangePassword',
|
|
86
|
+
params: {
|
|
87
|
+
changePassWordToken: userStore.user.token,
|
|
88
|
+
},
|
|
89
|
+
}),
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
label: t('app.logout'),
|
|
93
|
+
icon: 'i-iconamoon-arrow-left-3-square-duotone',
|
|
94
|
+
handle: () => userStore.logout(),
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
]);
|
|
98
|
+
|
|
99
|
+
function toggleColorScheme(event: MouseEvent) {
|
|
100
|
+
const { startViewTransition } = useViewTransition(async () => {
|
|
101
|
+
const colorScheme = settingsStore.settings.app.colorScheme === 'dark' ? 'light' : 'dark';
|
|
102
|
+
settingsStore.setColorScheme(colorScheme);
|
|
103
|
+
await settingsStore.setPreferencesSetting({
|
|
104
|
+
app: {
|
|
105
|
+
colorScheme,
|
|
106
|
+
},
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
startViewTransition()?.ready.then(() => {
|
|
111
|
+
const x = event.clientX;
|
|
112
|
+
const y = event.clientY;
|
|
113
|
+
const endRadius = Math.hypot(
|
|
114
|
+
Math.max(x, innerWidth - x),
|
|
115
|
+
Math.max(y, innerHeight - y),
|
|
116
|
+
);
|
|
117
|
+
const clipPath = [
|
|
118
|
+
`circle(0px at ${x}px ${y}px)`,
|
|
119
|
+
`circle(${endRadius}px at ${x}px ${y}px)`,
|
|
120
|
+
];
|
|
121
|
+
document.documentElement.animate(
|
|
122
|
+
{
|
|
123
|
+
clipPath: settingsStore.settings.app.colorScheme !== 'dark' ? clipPath : clipPath.reverse(),
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
duration: 300,
|
|
127
|
+
easing: 'ease-out',
|
|
128
|
+
pseudoElement: settingsStore.settings.app.colorScheme !== 'dark' ? '::view-transition-new(root)' : '::view-transition-old(root)',
|
|
129
|
+
},
|
|
130
|
+
);
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
const avatarError = ref(false);
|
|
135
|
+
|
|
136
|
+
watch(() => userStore.avatar, () => {
|
|
137
|
+
if (avatarError.value) {
|
|
138
|
+
avatarError.value = false;
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
const searchComponentsClass = computed(() => {
|
|
143
|
+
const componentsClass = {
|
|
144
|
+
'side': 'ring-1 ',
|
|
145
|
+
'head': 'bg-[var(--g-header-menu-active-bg)]',
|
|
146
|
+
'single': ' ring-1',
|
|
147
|
+
'only-side': 'ring-1',
|
|
148
|
+
'only-head': ' bg-[var(--g-header-menu-active-bg)]',
|
|
149
|
+
};
|
|
150
|
+
const menuMode = settingsStore.settings.menu.menuMode;
|
|
151
|
+
return componentsClass[menuMode];
|
|
152
|
+
});
|
|
153
|
+
</script>
|
|
154
|
+
|
|
155
|
+
<template>
|
|
156
|
+
<div class="tools flex items-center gap-4 whitespace-nowrap px-4">
|
|
157
|
+
<span
|
|
158
|
+
v-if="settingsStore.settings.navSearch.enable && settingsStore.mode === 'pc'"
|
|
159
|
+
class="group inline-flex cursor-pointer items-center gap-1 rounded-2 px-2 py-1.5 hover:ring-1 ring-inset transition ring-stone-3 dark:ring-stone-7"
|
|
160
|
+
:class="searchComponentsClass"
|
|
161
|
+
@click="searchRef?.toggle?.()"
|
|
162
|
+
>
|
|
163
|
+
<IconamoonSearch text="14px" />
|
|
164
|
+
<span class="text-sm transition ">{{ t('app.search.text') }}</span>
|
|
165
|
+
<HKbd
|
|
166
|
+
v-if="settingsStore.settings.navSearch.enableHotkeys"
|
|
167
|
+
class="ml-2"
|
|
168
|
+
>{{ settingsStore.os === 'mac' ? '⌥' : 'Alt' }} S</HKbd>
|
|
169
|
+
</span>
|
|
170
|
+
<div class="flex items-center empty:hidden">
|
|
171
|
+
<span
|
|
172
|
+
v-if="settingsStore.settings.navSearch.enable && settingsStore.mode === 'mobile'"
|
|
173
|
+
class="item"
|
|
174
|
+
@click="searchRef?.toggle?.()"
|
|
175
|
+
>
|
|
176
|
+
<IconamoonSearch text="14px" />
|
|
177
|
+
</span>
|
|
178
|
+
<!-- <HDropdown
|
|
179
|
+
v-if="settingsStore.settings.toolbar.enableNotification"
|
|
180
|
+
class="item"
|
|
181
|
+
>
|
|
182
|
+
<HBadge
|
|
183
|
+
:value="notificationStore.total"
|
|
184
|
+
>
|
|
185
|
+
<FluentAlert12Regular text="15px" />
|
|
186
|
+
</HBadge>
|
|
187
|
+
<template #dropdown>
|
|
188
|
+
<Notification />
|
|
189
|
+
</template>
|
|
190
|
+
</HDropdown>
|
|
191
|
+
<I18nSelector class="item">
|
|
192
|
+
<RiTranslate text="15px" />
|
|
193
|
+
</I18nSelector> -->
|
|
194
|
+
<span
|
|
195
|
+
v-if="settingsStore.mode === 'pc' && settingsStore.settings.toolbar.enableFullscreen"
|
|
196
|
+
class="item"
|
|
197
|
+
@click="toggle"
|
|
198
|
+
>
|
|
199
|
+
<FluentFullScreenMinimize16Filled v-if="isFullscreen" text="16px" />
|
|
200
|
+
<FluentFullScreenMaximize16Filled v-else text="16px" />
|
|
201
|
+
</span>
|
|
202
|
+
<span
|
|
203
|
+
v-if="settingsStore.settings.toolbar.enablePageReload"
|
|
204
|
+
class="item"
|
|
205
|
+
@click="mainPage.reload()"
|
|
206
|
+
>
|
|
207
|
+
<FluentArrowSync16Filled text="15px" />
|
|
208
|
+
</span>
|
|
209
|
+
<DayNightSwitch @click="toggleColorScheme" />
|
|
210
|
+
</div>
|
|
211
|
+
<div flex-center cursor-pointer gap-1>
|
|
212
|
+
<img
|
|
213
|
+
v-if="userStore.avatar && !avatarError"
|
|
214
|
+
:src="userStore.avatar"
|
|
215
|
+
:onerror="() => (avatarError = true)"
|
|
216
|
+
class="h-[24px] w-[24px] rounded-full"
|
|
217
|
+
>
|
|
218
|
+
<CarbonUserAvatarFilledAlt v-else text="20px" mr-2px />
|
|
219
|
+
<div flex-center cursor-pointer>
|
|
220
|
+
{{ userStore.userOrgName }}
|
|
221
|
+
</div>
|
|
222
|
+
<PhLineVerticalThin />
|
|
223
|
+
<HDropdownMenu :items="userMenu">
|
|
224
|
+
<div flex-center cursor-pointer gap-1>
|
|
225
|
+
{{ userStore.account }}
|
|
226
|
+
<MaterialSymbolsExpandMoreRounded ml="5px" mr="10px" />
|
|
227
|
+
</div>
|
|
228
|
+
</HDropdownMenu>
|
|
229
|
+
</div>
|
|
230
|
+
|
|
231
|
+
<HotkeysIntro ref="hotkeysIntroRef" />
|
|
232
|
+
<Search ref="searchRef" />
|
|
233
|
+
<Preferences v-if="settingsStore.settings.app.enableUserPreferences" ref="preferencesRef" />
|
|
234
|
+
</div>
|
|
235
|
+
</template>
|
|
236
|
+
|
|
237
|
+
<style lang="scss" scoped>
|
|
238
|
+
.item {
|
|
239
|
+
--at-apply: flex px-2 py-1 cursor-pointer;
|
|
240
|
+
}
|
|
241
|
+
</style>
|