@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
package/src/context.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { Context } from './interface';
|
|
2
|
+
import { createHooks } from 'hookable';
|
|
3
|
+
import { auth, basic } from 'pubinfo:project/api/request';
|
|
4
|
+
import layout from 'pubinfo:project/layouts/index.vue';
|
|
5
|
+
|
|
6
|
+
export const hooks = createHooks();
|
|
7
|
+
|
|
8
|
+
let context: Context | undefined;
|
|
9
|
+
|
|
10
|
+
export function createPubinfoContext(newState: Context) {
|
|
11
|
+
context = newState;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export function usePubinfoContext() {
|
|
15
|
+
if (!context) {
|
|
16
|
+
throw new Error('Global context is not defined');
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
return context;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* 读取项目中的约定式目录
|
|
24
|
+
*/
|
|
25
|
+
export function readProject() {
|
|
26
|
+
return {
|
|
27
|
+
layout,
|
|
28
|
+
request: { auth, basic },
|
|
29
|
+
};
|
|
30
|
+
}
|
package/src/create.ts
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type { Component } from 'vue';
|
|
2
|
+
import type { Context, Options, RouterOptions } from './interface';
|
|
3
|
+
import { createPinia } from 'pinia';
|
|
4
|
+
import { createApp as createVueApp } from 'vue';
|
|
5
|
+
import { createRouter, createWebHashHistory } from 'vue-router';
|
|
6
|
+
|
|
7
|
+
import { GetAPIValidateIp } from './api/system/app';
|
|
8
|
+
|
|
9
|
+
import { createPubinfoContext, hooks } from './context';
|
|
10
|
+
import { setupDirectives } from './directives';
|
|
11
|
+
import { setupLayout } from './layout';
|
|
12
|
+
import { setupI18n } from './locales';
|
|
13
|
+
import { extractModules, resolveModules } from './modules';
|
|
14
|
+
import { constantRoutes, setupRouterGuard } from './route';
|
|
15
|
+
import { setupStore } from './stores';
|
|
16
|
+
|
|
17
|
+
export function createPubinfo(
|
|
18
|
+
App: Component,
|
|
19
|
+
routerOptions: RouterOptions,
|
|
20
|
+
setup?: (context: Context) => Promise<void> | void,
|
|
21
|
+
options: Options = {},
|
|
22
|
+
) {
|
|
23
|
+
const {
|
|
24
|
+
rootContainer = '#app',
|
|
25
|
+
immediate = true,
|
|
26
|
+
modules = [],
|
|
27
|
+
hooks: _hooks = {},
|
|
28
|
+
} = options;
|
|
29
|
+
|
|
30
|
+
async function createApp() {
|
|
31
|
+
const app = createVueApp(App);
|
|
32
|
+
const store = createPinia();
|
|
33
|
+
|
|
34
|
+
const { routes, base, ...restRouterOptions } = routerOptions;
|
|
35
|
+
const router = createRouter({
|
|
36
|
+
history: createWebHashHistory(base),
|
|
37
|
+
...restRouterOptions,
|
|
38
|
+
routes: [
|
|
39
|
+
...constantRoutes,
|
|
40
|
+
...routes,
|
|
41
|
+
],
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
const context: Context = {
|
|
45
|
+
app,
|
|
46
|
+
store,
|
|
47
|
+
router,
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
app.use(store);
|
|
51
|
+
app.use(router);
|
|
52
|
+
|
|
53
|
+
// create context
|
|
54
|
+
createPubinfoContext(context);
|
|
55
|
+
|
|
56
|
+
// add hooks
|
|
57
|
+
hooks.addHooks(_hooks);
|
|
58
|
+
|
|
59
|
+
// extract modules by enforce
|
|
60
|
+
const _modules = extractModules(modules);
|
|
61
|
+
|
|
62
|
+
await resolveModules(_modules.pre, context);
|
|
63
|
+
setupBasic(context);
|
|
64
|
+
await resolveModules(_modules.default, context);
|
|
65
|
+
await setup?.(context);
|
|
66
|
+
await resolveModules(_modules.post, context);
|
|
67
|
+
return context;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if (immediate) {
|
|
71
|
+
(async () => {
|
|
72
|
+
const { app, router } = await createApp();
|
|
73
|
+
await router.isReady();
|
|
74
|
+
await GetAPIValidateIp();
|
|
75
|
+
app.mount(rootContainer, true);
|
|
76
|
+
})();
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return createApp;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function setupBasic(context: Context) {
|
|
83
|
+
setupStore(context);
|
|
84
|
+
setupRouterGuard(context);
|
|
85
|
+
setupDirectives(context);
|
|
86
|
+
setupLayout(context);
|
|
87
|
+
setupI18n(context);
|
|
88
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { App } from 'vue';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 设置权限指令
|
|
5
|
+
* @param app 应用程序实例
|
|
6
|
+
*/
|
|
7
|
+
export function setupPermissionDirective(app: App) {
|
|
8
|
+
app.directive('auth', {
|
|
9
|
+
mounted: (el, binding) => {
|
|
10
|
+
if (!useAuth().auth(binding.value)) {
|
|
11
|
+
el.remove();
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
app.directive('auth-all', {
|
|
17
|
+
mounted: (el, binding) => {
|
|
18
|
+
if (!useAuth().authAll(binding.value)) {
|
|
19
|
+
el.remove();
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import './assets/styles';
|
|
2
|
+
|
|
3
|
+
export * from './components';
|
|
4
|
+
export * from './composables';
|
|
5
|
+
export * from './config';
|
|
6
|
+
export * from './context';
|
|
7
|
+
export * from './create';
|
|
8
|
+
export * from './interface';
|
|
9
|
+
export * from './layout';
|
|
10
|
+
export * from './route';
|
|
11
|
+
export * from './stores';
|
|
12
|
+
export * from './utils';
|
package/src/interface.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { Pinia } from 'pinia';
|
|
2
|
+
import type { App } from 'vue';
|
|
3
|
+
import type { Router, RouterOptions as VueRouterOptions } from 'vue-router';
|
|
4
|
+
|
|
5
|
+
type PartialKeys<T, Keys extends keyof T> = Omit<T, Keys> & Partial<Pick<T, Keys>>;
|
|
6
|
+
|
|
7
|
+
export type RouterOptions = PartialKeys<VueRouterOptions, 'history'> & { base?: string };
|
|
8
|
+
|
|
9
|
+
export interface Context {
|
|
10
|
+
app: App<Element>
|
|
11
|
+
store: Pinia
|
|
12
|
+
router: Router
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface Options {
|
|
16
|
+
rootContainer?: string | Element
|
|
17
|
+
immediate?: boolean
|
|
18
|
+
modules?: ModuleOptions[]
|
|
19
|
+
hooks?: Partial<Hooks>
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface Module {
|
|
23
|
+
name: string
|
|
24
|
+
setup?: (ctx: Context) => void
|
|
25
|
+
enforce?: 'pre' | 'post'
|
|
26
|
+
hooks?: Partial<Hooks>
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type FalsyModule = false | null | undefined;
|
|
30
|
+
|
|
31
|
+
export type ModuleOptions = Module | ModuleOptions[] | FalsyModule;
|
|
32
|
+
|
|
33
|
+
export interface Hooks {
|
|
34
|
+
|
|
35
|
+
}
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { PubinfoProvider } from '@/components';
|
|
3
|
+
import RiLogoutBoxLine from '~icons/ri/logout-box-line';
|
|
4
|
+
import BackTop from './components/BackTop/index.vue';
|
|
5
|
+
import LayoutContent from './components/Content/index.vue';
|
|
6
|
+
import Copyright from './components/Copyright/index.vue';
|
|
7
|
+
import LayoutHeader from './components/Header/index.vue';
|
|
8
|
+
|
|
9
|
+
import SettingBar from './components/SettingBar/index.vue';
|
|
10
|
+
// import Sidebar from './components/Sidebar/index.vue';
|
|
11
|
+
import MainSidebar from './components/Sidebar/MainSidebar.vue';
|
|
12
|
+
import SubSidebar from './components/Sidebar/SubSidebar.vue';
|
|
13
|
+
import Topbar from './components/Topbar/index.vue';
|
|
14
|
+
import { useContext } from './composables/useContext';
|
|
15
|
+
import { useGetSidebarActualWidth } from './composables/useGetComputedStyle';
|
|
16
|
+
import { useHotkey } from './composables/useHotkey';
|
|
17
|
+
import useWatermark from './composables/useWatermark';
|
|
18
|
+
|
|
19
|
+
defineOptions({
|
|
20
|
+
name: 'Layout',
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
const routeInfo = useRoute();
|
|
24
|
+
const { settingsStore, menuStore } = useContext();
|
|
25
|
+
const { mainSidebarActualWidth, subSidebarActualWidth } = useGetSidebarActualWidth();
|
|
26
|
+
|
|
27
|
+
useHotkey({
|
|
28
|
+
settingsStore,
|
|
29
|
+
menuStore,
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
useWatermark();
|
|
33
|
+
|
|
34
|
+
watch(() => settingsStore.settings.menu.subMenuCollapse, (val) => {
|
|
35
|
+
if (settingsStore.mode === 'mobile') {
|
|
36
|
+
if (!val) {
|
|
37
|
+
document.body.classList.add('overflow-hidden');
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
document.body.classList.remove('overflow-hidden');
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
watch(() => routeInfo.path, () => {
|
|
46
|
+
if (settingsStore.mode === 'mobile') {
|
|
47
|
+
settingsStore.$patch((state) => {
|
|
48
|
+
state.settings.menu.subMenuCollapse = true;
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
function loadIcon(name: string) {
|
|
54
|
+
const modules = (import.meta as any).glob('../assets/icons/*', { eager: true });
|
|
55
|
+
const path = `../assets/icons/${name}.svg`;
|
|
56
|
+
return modules[path]?.default;
|
|
57
|
+
}
|
|
58
|
+
</script>
|
|
59
|
+
|
|
60
|
+
<template>
|
|
61
|
+
<PubinfoProvider :load-icon="loadIcon">
|
|
62
|
+
<div
|
|
63
|
+
class="layout"
|
|
64
|
+
:style="{
|
|
65
|
+
'--g-main-sidebar-actual-width': mainSidebarActualWidth,
|
|
66
|
+
'--g-sub-sidebar-actual-width': subSidebarActualWidth,
|
|
67
|
+
}"
|
|
68
|
+
>
|
|
69
|
+
<div id="app-main" :class="{ 'main-page-maximize': settingsStore.mainPageMaximizeStatus }">
|
|
70
|
+
<slot name="header">
|
|
71
|
+
<LayoutHeader />
|
|
72
|
+
</slot>
|
|
73
|
+
|
|
74
|
+
<div class="wrapper">
|
|
75
|
+
<div
|
|
76
|
+
class="sidebar-container"
|
|
77
|
+
:class="{ show: settingsStore.mode === 'mobile' && !settingsStore.settings.menu.subMenuCollapse }"
|
|
78
|
+
>
|
|
79
|
+
<!-- TODO 这种写法会导致侧边栏模式的布局下,有样式问题 -->
|
|
80
|
+
<!-- <slot name="sidebar">
|
|
81
|
+
<Sidebar />
|
|
82
|
+
</slot> -->
|
|
83
|
+
|
|
84
|
+
<MainSidebar />
|
|
85
|
+
<SubSidebar />
|
|
86
|
+
</div>
|
|
87
|
+
|
|
88
|
+
<div
|
|
89
|
+
class="sidebar-mask"
|
|
90
|
+
:class="{ show: settingsStore.mode === 'mobile' && !settingsStore.settings.menu.subMenuCollapse }"
|
|
91
|
+
@click="settingsStore.toggleSidebarCollapse()"
|
|
92
|
+
/>
|
|
93
|
+
|
|
94
|
+
<div class="main-container" :style="{ 'padding-bottom': routeInfo.meta.paddingBottom }">
|
|
95
|
+
<slot name="topbar">
|
|
96
|
+
<Topbar />
|
|
97
|
+
</slot>
|
|
98
|
+
|
|
99
|
+
<div class="main">
|
|
100
|
+
<div
|
|
101
|
+
v-show="settingsStore.mainPageMaximizeStatus"
|
|
102
|
+
class="exit-main-page-maximize"
|
|
103
|
+
@click="settingsStore.setMainPageMaximize()"
|
|
104
|
+
>
|
|
105
|
+
<RiLogoutBoxLine />
|
|
106
|
+
</div>
|
|
107
|
+
|
|
108
|
+
<slot>
|
|
109
|
+
<LayoutContent />
|
|
110
|
+
</slot>
|
|
111
|
+
</div>
|
|
112
|
+
|
|
113
|
+
<slot name="footer">
|
|
114
|
+
<Copyright />
|
|
115
|
+
</slot>
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
</div>
|
|
119
|
+
|
|
120
|
+
<SettingBar />
|
|
121
|
+
<BackTop />
|
|
122
|
+
</div>
|
|
123
|
+
</PubinfoProvider>
|
|
124
|
+
</template>
|
|
125
|
+
|
|
126
|
+
<style lang="scss" scoped>
|
|
127
|
+
[data-app-width-mode="adaption"] {
|
|
128
|
+
#app-main {
|
|
129
|
+
width: 100%;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
[data-app-width-mode="adaption-min-width"] {
|
|
134
|
+
#app-main {
|
|
135
|
+
width: max(var(--g-app-width), 100%);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
[data-app-width-mode="center"] {
|
|
140
|
+
#app-main {
|
|
141
|
+
width: var(--g-app-width);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
[data-app-width-mode="center-max-width"] {
|
|
146
|
+
#app-main {
|
|
147
|
+
width: min(var(--g-app-width), 100%);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
[data-mode="mobile"] {
|
|
152
|
+
#app-main {
|
|
153
|
+
width: 100%;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.sidebar-container {
|
|
157
|
+
transform: translateX(calc((var(--g-main-sidebar-width) + var(--g-sub-sidebar-width)) * -1));
|
|
158
|
+
|
|
159
|
+
&.show {
|
|
160
|
+
transform: translateX(0);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.main-container {
|
|
165
|
+
margin-left: 0 !important;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
&[data-menu-mode="single"] {
|
|
169
|
+
.sidebar-container {
|
|
170
|
+
transform: translateX(calc(var(--g-sub-sidebar-width) * -1));
|
|
171
|
+
|
|
172
|
+
&.show {
|
|
173
|
+
transform: translateX(0);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.layout {
|
|
180
|
+
height: 100%;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
#app-main {
|
|
184
|
+
height: 100%;
|
|
185
|
+
margin: 0 auto;
|
|
186
|
+
background-color: var(--g-bg);
|
|
187
|
+
|
|
188
|
+
// 当前标签页全屏
|
|
189
|
+
&.main-page-maximize {
|
|
190
|
+
header,
|
|
191
|
+
.sidebar-container {
|
|
192
|
+
display: none;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.wrapper {
|
|
196
|
+
padding-top: 0;
|
|
197
|
+
|
|
198
|
+
.main-container {
|
|
199
|
+
margin-left: 0;
|
|
200
|
+
|
|
201
|
+
.topbar-container {
|
|
202
|
+
display: none;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.main {
|
|
206
|
+
margin: 0;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
:deep([data-fixed-calc-width]) {
|
|
212
|
+
width: 100%;
|
|
213
|
+
transform: translateX(-50%);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.wrapper {
|
|
219
|
+
position: relative;
|
|
220
|
+
width: 100%;
|
|
221
|
+
height: 100%;
|
|
222
|
+
transition: padding-top 0.3s;
|
|
223
|
+
|
|
224
|
+
.sidebar-container {
|
|
225
|
+
position: fixed;
|
|
226
|
+
top: 0;
|
|
227
|
+
bottom: 0;
|
|
228
|
+
z-index: 501;
|
|
229
|
+
display: flex;
|
|
230
|
+
width: calc(var(--g-main-sidebar-actual-width) + var(--g-sub-sidebar-actual-width));
|
|
231
|
+
box-shadow: -1px 0 0 0 var(--g-border-color), 1px 0 0 0 var(--g-border-color);
|
|
232
|
+
transition: width 0.3s, transform 0.3s, box-shadow 0.3s, top 0.3s;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.sidebar-mask {
|
|
236
|
+
position: fixed;
|
|
237
|
+
top: 0;
|
|
238
|
+
left: 0;
|
|
239
|
+
z-index: 500;
|
|
240
|
+
width: 100%;
|
|
241
|
+
height: 100%;
|
|
242
|
+
visibility: hidden;
|
|
243
|
+
background-image: radial-gradient(transparent 1px, rgb(0 0 0 / 30%) 1px);
|
|
244
|
+
background-size: 4px 4px;
|
|
245
|
+
backdrop-filter: saturate(50%) blur(4px);
|
|
246
|
+
opacity: 0;
|
|
247
|
+
transition: all 0.2s;
|
|
248
|
+
|
|
249
|
+
&.show {
|
|
250
|
+
visibility: visible;
|
|
251
|
+
opacity: 1;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.main-sidebar-container:not(.main-sidebar-leave-active) + .sub-sidebar-container {
|
|
256
|
+
left: var(--g-main-sidebar-width);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.main-container {
|
|
260
|
+
display: flex;
|
|
261
|
+
flex-direction: column;
|
|
262
|
+
height: 0;
|
|
263
|
+
min-height: 100%;
|
|
264
|
+
margin-left: calc(var(--g-main-sidebar-actual-width) + var(--g-sub-sidebar-actual-width));
|
|
265
|
+
box-shadow: -1px 0 0 0 var(--g-border-color), 1px 0 0 0 var(--g-border-color);
|
|
266
|
+
transition: margin-left 0.3s, background-color 0.3s, box-shadow 0.3s;
|
|
267
|
+
|
|
268
|
+
.main {
|
|
269
|
+
position: relative;
|
|
270
|
+
flex: auto;
|
|
271
|
+
flex-basis: 0;
|
|
272
|
+
height: 0;
|
|
273
|
+
transition: 0.3s;
|
|
274
|
+
|
|
275
|
+
.exit-main-page-maximize {
|
|
276
|
+
--at-apply: bg-stone-7 dark:bg-stone-3 text-stone-3 dark:text-stone-7 op-50 hover:op-100 transition-opacity;
|
|
277
|
+
|
|
278
|
+
position: fixed;
|
|
279
|
+
top: -40px;
|
|
280
|
+
right: -40px;
|
|
281
|
+
z-index: 1000;
|
|
282
|
+
width: 80px;
|
|
283
|
+
height: 80px;
|
|
284
|
+
cursor: pointer;
|
|
285
|
+
border-radius: 50%;
|
|
286
|
+
|
|
287
|
+
svg {
|
|
288
|
+
position: absolute;
|
|
289
|
+
bottom: 16px;
|
|
290
|
+
left: 16px;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.topbar-container.has-tabbar + .main {
|
|
296
|
+
margin: var(--g-tabbar-height) 0 0;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.topbar-container.has-toolbar + .main {
|
|
300
|
+
margin: var(--g-toolbar-height) 0 0;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.topbar-container.has-tabbar.has-toolbar + .main {
|
|
304
|
+
margin: calc(var(--g-tabbar-height) + var(--g-toolbar-height)) 0 0;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
header:not(.header-leave-active) + .wrapper {
|
|
310
|
+
padding-top: var(--g-header-height);
|
|
311
|
+
|
|
312
|
+
.sidebar-container {
|
|
313
|
+
top: var(--g-header-height);
|
|
314
|
+
|
|
315
|
+
:deep(.sidebar-logo) {
|
|
316
|
+
display: none;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.main-container {
|
|
321
|
+
.topbar-container {
|
|
322
|
+
top: var(--g-header-height);
|
|
323
|
+
|
|
324
|
+
:deep(.tools) {
|
|
325
|
+
display: none;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
</style>
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import IconParkOutlineToTopOne from '~icons/icon-park-outline/to-top-one';
|
|
3
|
+
|
|
4
|
+
defineOptions({
|
|
5
|
+
name: 'BackTop',
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
const transitionClass = {
|
|
9
|
+
enterActiveClass: 'ease-out duration-300',
|
|
10
|
+
enterFromClass: 'opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95',
|
|
11
|
+
enterToClass: 'opacity-100 translate-y-0 sm:scale-100',
|
|
12
|
+
leaveActiveClass: 'ease-in duration-200',
|
|
13
|
+
leaveFromClass: 'opacity-100 translate-y-0 sm:scale-100',
|
|
14
|
+
leaveToClass: 'opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95',
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
onMounted(() => {
|
|
18
|
+
window.addEventListener('scroll', handleScroll);
|
|
19
|
+
handleScroll();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
onBeforeUnmount(() => {
|
|
23
|
+
window.removeEventListener('scroll', handleScroll);
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
const scrollTop = ref<number | null>(null);
|
|
27
|
+
function handleScroll() {
|
|
28
|
+
scrollTop.value = document.documentElement.scrollTop;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function handleClick() {
|
|
32
|
+
document.documentElement.scrollTo({
|
|
33
|
+
top: 0,
|
|
34
|
+
behavior: 'smooth',
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
</script>
|
|
38
|
+
|
|
39
|
+
<template>
|
|
40
|
+
<Teleport to="body">
|
|
41
|
+
<Transition v-bind="transitionClass">
|
|
42
|
+
<div v-if="scrollTop && scrollTop >= 200" class="fixed bottom-4 right-4 z-1000 h-12 w-12 flex cursor-pointer items-center justify-center rounded-full bg-white shadow-lg ring-1 ring-stone-3 ring-inset dark:bg-dark hover:bg-stone-1 dark:ring-stone-7 dark:hover:bg-dark/50" @click="handleClick">
|
|
43
|
+
<IconParkOutlineToTopOne text="24px" />
|
|
44
|
+
</div>
|
|
45
|
+
</Transition>
|
|
46
|
+
</Teleport>
|
|
47
|
+
</template>
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import LineMdLoadingTwotoneLoop from '~icons/line-md/loading-twotone-loop';
|
|
3
|
+
import { useContext } from '../../composables/useContext';
|
|
4
|
+
|
|
5
|
+
defineOptions({
|
|
6
|
+
name: 'IframeView',
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
const route = useRoute();
|
|
10
|
+
const { settingsStore, iframeStore } = useContext();
|
|
11
|
+
|
|
12
|
+
const iframeRef = ref();
|
|
13
|
+
|
|
14
|
+
watch(() => route.fullPath, (val) => {
|
|
15
|
+
nextTick(() => {
|
|
16
|
+
iframeRef.value?.forEach((item: HTMLIFrameElement) => {
|
|
17
|
+
if (item.dataset.path === val) {
|
|
18
|
+
item.onload = () => {
|
|
19
|
+
iframeStore.closeLoading(val);
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
immediate: true,
|
|
27
|
+
});
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
<template>
|
|
31
|
+
<div class="iframe-view absolute left-0 top-0 h-full w-full flex flex-col">
|
|
32
|
+
<div
|
|
33
|
+
v-for="item in iframeStore.openedList"
|
|
34
|
+
:key="item.path"
|
|
35
|
+
class="absolute left-0 top-0 h-full w-full flex flex-col"
|
|
36
|
+
:class="{ 'z-1': route.fullPath === item.path }"
|
|
37
|
+
>
|
|
38
|
+
<Transition :name="settingsStore.settings.mainPage.enableTransition ? settingsStore.settings.mainPage.transitionMode : ''" mode="out-in" appear>
|
|
39
|
+
<iframe
|
|
40
|
+
v-show="route.fullPath === item.path"
|
|
41
|
+
ref="iframeRef"
|
|
42
|
+
:data-path="item.path"
|
|
43
|
+
:src="item.src"
|
|
44
|
+
frameborder="0"
|
|
45
|
+
class="h-full w-full flex-1"
|
|
46
|
+
/>
|
|
47
|
+
</Transition>
|
|
48
|
+
<div v-show="item.isLoading" class="absolute left-0 top-0 h-full w-full flex-center bg-stone-2/75 dark:bg-stone-8/75">
|
|
49
|
+
<LineMdLoadingTwotoneLoop text="34px" />
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
</template>
|
|
54
|
+
|
|
55
|
+
<style lang="scss" scoped>
|
|
56
|
+
// iframe区动画
|
|
57
|
+
.fade-enter-active,
|
|
58
|
+
.slide-left-enter-active,
|
|
59
|
+
.slide-right-enter-active,
|
|
60
|
+
.slide-top-enter-active,
|
|
61
|
+
.slide-bottom-enter-active {
|
|
62
|
+
transition: 0.4s;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.fade-leave-active,
|
|
66
|
+
.slide-left-leave-active,
|
|
67
|
+
.slide-right-leave-active,
|
|
68
|
+
.slide-top-leave-active,
|
|
69
|
+
.slide-bottom-leave-active {
|
|
70
|
+
transition: 0.3s;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.fade-enter-from {
|
|
74
|
+
opacity: 0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.fade-leave-to {
|
|
78
|
+
opacity: 0;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.slide-left-enter-from {
|
|
82
|
+
margin-left: 20px;
|
|
83
|
+
opacity: 0;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.slide-left-leave-to {
|
|
87
|
+
margin-left: -20px;
|
|
88
|
+
opacity: 0;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.slide-right-enter-from {
|
|
92
|
+
margin-left: -20px;
|
|
93
|
+
opacity: 0;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.slide-right-leave-to {
|
|
97
|
+
margin-left: 20px;
|
|
98
|
+
opacity: 0;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.slide-top-enter-from {
|
|
102
|
+
margin-top: 20px;
|
|
103
|
+
opacity: 0;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.slide-top-leave-to {
|
|
107
|
+
margin-top: -20px;
|
|
108
|
+
opacity: 0;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.slide-bottom-enter-from {
|
|
112
|
+
margin-top: -20px;
|
|
113
|
+
opacity: 0;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.slide-bottom-leave-to {
|
|
117
|
+
margin-top: 20px;
|
|
118
|
+
opacity: 0;
|
|
119
|
+
}
|
|
120
|
+
</style>
|