@pubinfo-nightly/core 2025.11.14
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/LICENSE +21 -0
- package/dist/AppSetting-D5eSdPuB.js +123 -0
- package/dist/HCheckList.vue_vue_type_script_setup_true_lang-DgeRhutB.js +39 -0
- package/dist/HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js +20 -0
- package/dist/HInput.vue_vue_type_script_setup_true_lang-DBqCXRnn.js +33 -0
- package/dist/HToggle-BajvSdEE.js +34 -0
- package/dist/HeaderThinMenu-ouAiyBjb.js +4 -0
- package/dist/PreferencesContent-mr3zgq9x.js +923 -0
- package/dist/SettingBreadcrumb-Chx1c5oE.js +50 -0
- package/dist/SettingCopyright-BgIL_X3d.js +62 -0
- package/dist/SettingEnableTransition-16PeKbCJ.js +77 -0
- package/dist/SettingHome-DuLT9846.js +46 -0
- package/dist/SettingMenu-DDOmRqGo.js +120 -0
- package/dist/SettingMode-B6OwuuHR.js +68 -0
- package/dist/SettingNavSearch-BzmXK8I0.js +46 -0
- package/dist/SettingOther-DcDn9I3J.js +81 -0
- package/dist/SettingPage-DmfsDzGF.js +29 -0
- package/dist/SettingTabbar-BxxzDY5f.js +154 -0
- package/dist/SettingThemes-DoTkccTu.js +143 -0
- package/dist/SettingToolbar-ogjoj5NI.js +78 -0
- package/dist/SettingTopbar-BRZEIJZt.js +52 -0
- package/dist/SettingWidthMode-DQmewGT6.js +67 -0
- package/dist/abap-Y8Dl9g_6.js +6 -0
- package/dist/actionscript-3-DZzbMeqX.js +6 -0
- package/dist/ada-vP6ak0IW.js +6 -0
- package/dist/andromeeda-BIpZ7gaU.js +4 -0
- package/dist/angular-html-BmadGEgW.js +32 -0
- package/dist/angular-ts-D-QQnnGT.js +21 -0
- package/dist/apache-BUjz-sD2.js +6 -0
- package/dist/apex-D_wPycVx.js +6 -0
- package/dist/apl-sitt7C8I.js +16 -0
- package/dist/applescript-BPx7YFFu.js +6 -0
- package/dist/ara-Z2fSOxSw.js +6 -0
- package/dist/asciidoc-B-pCoB3G.js +6 -0
- package/dist/asm-BTWLY5ym.js +6 -0
- package/dist/astro-DHnp0xIo.js +18 -0
- package/dist/aurora-x-BwoVEUWZ.js +4 -0
- package/dist/awk-Fb0P9dkn.js +6 -0
- package/dist/ayu-dark-CxPZkpb2.js +4 -0
- package/dist/ballerina-oZK-YekG.js +6 -0
- package/dist/bat-0FvbqU9S.js +6 -0
- package/dist/beancount-DEfTbbFX.js +6 -0
- package/dist/berry-PwsHPR_K.js +6 -0
- package/dist/bibtex-EULQRLY5.js +6 -0
- package/dist/bicep-DFU2oTl7.js +6 -0
- package/dist/blade-OPzGcV14.js +20 -0
- package/dist/bsl-NkNNwerW.js +8 -0
- package/dist/built-in/authentication/alova/helper.d.ts +34 -0
- package/dist/built-in/authentication/alova/token.d.ts +16 -0
- package/dist/built-in/authentication/enum.d.ts +67 -0
- package/dist/built-in/authentication/helper.d.ts +10 -0
- package/dist/built-in/authentication/index.d.ts +10 -0
- package/dist/built-in/authentication/interface.d.ts +7 -0
- package/dist/built-in/authentication/pages/change-organization/index.vue.d.ts +2 -0
- package/dist/built-in/authentication/pages/change-password/components/ChangePasswordForm/index.vue.d.ts +18 -0
- package/dist/built-in/authentication/pages/change-password/index.vue.d.ts +31 -0
- package/dist/built-in/authentication/router.d.ts +2 -0
- package/dist/built-in/authorization/directives.d.ts +2 -0
- package/dist/built-in/authorization/helper.d.ts +6 -0
- package/dist/built-in/authorization/index.d.ts +7 -0
- package/dist/built-in/authorization/pages/not-permission/index.vue.d.ts +2 -0
- package/dist/built-in/authorization/router.d.ts +3 -0
- package/dist/built-in/devtools/index.d.ts +13 -0
- package/dist/built-in/index.d.ts +9 -0
- package/dist/built-in/layout-component/Layout.vue.d.ts +28 -0
- package/dist/built-in/layout-component/components/BackTop/index.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/Content/IframeView.vue.d.ts +4 -0
- package/dist/built-in/layout-component/components/Content/LinkView.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/Content/index.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/Copyright/index.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/Header/HeaderFullMenu/More.vue.d.ts +26 -0
- package/dist/built-in/layout-component/components/Header/HeaderFullMenu/NotCursor.vue.d.ts +27 -0
- package/dist/built-in/layout-component/components/Header/HeaderFullMenu/index.vue.d.ts +4 -0
- package/dist/built-in/layout-component/components/Header/HeaderMenu.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/Header/HeaderThinMenu.vue.d.ts +4 -0
- package/dist/built-in/layout-component/components/Header/index.vue.d.ts +24 -0
- package/dist/built-in/layout-component/components/Logo/index.vue.d.ts +26 -0
- package/dist/built-in/layout-component/components/Menu/index.vue.d.ts +10 -0
- package/dist/built-in/layout-component/components/Menu/item.vue.d.ts +11 -0
- package/dist/built-in/layout-component/components/Menu/sub.vue.d.ts +219 -0
- package/dist/built-in/layout-component/components/Menu/types.d.ts +42 -0
- package/dist/built-in/layout-component/components/NotAllowed/index.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/SettingBar/AppSetting.vue.d.ts +12 -0
- package/dist/built-in/layout-component/components/SettingBar/components/DayNightToggle.vue.d.ts +9 -0
- package/dist/built-in/layout-component/components/SettingBar/components/SettingBreadcrumb.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/SettingBar/components/SettingCopyright.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/SettingBar/components/SettingEnableTransition.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/SettingBar/components/SettingHome.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/SettingBar/components/SettingMenu.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/SettingBar/components/SettingMode.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/SettingBar/components/SettingNavSearch.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/SettingBar/components/SettingOther.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/SettingBar/components/SettingPage.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/SettingBar/components/SettingTabbar.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/SettingBar/components/SettingThemes.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/SettingBar/components/SettingToolbar.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/SettingBar/components/SettingTopbar.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/SettingBar/components/SettingWidthMode.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/SettingBar/index.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/Sidebar/MainSidebar.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/Sidebar/SubSidebar.vue.d.ts +7 -0
- package/dist/built-in/layout-component/components/Sidebar/index.vue.d.ts +9 -0
- package/dist/built-in/layout-component/components/Tools/Breadcrumb/index.vue.d.ts +17 -0
- package/dist/built-in/layout-component/components/Tools/Breadcrumb/item.vue.d.ts +25 -0
- package/dist/built-in/layout-component/components/Tools/DarkModeToggle.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/Tools/Fullscreen.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/Tools/HotkeysIntro.vue.d.ts +4 -0
- package/dist/built-in/layout-component/components/Tools/PageReload.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/Tools/Preferences/PreferencesContent.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/Tools/Preferences/index.vue.d.ts +4 -0
- package/dist/built-in/layout-component/components/Tools/SearchBar.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/Tools/SearchPanel.vue.d.ts +204 -0
- package/dist/built-in/layout-component/components/Tools/index.vue.d.ts +73 -0
- package/dist/built-in/layout-component/components/Tools/interface.d.ts +26 -0
- package/dist/built-in/layout-component/components/Topbar/Tabbar/MoreAction.vue.d.ts +11 -0
- package/dist/built-in/layout-component/components/Topbar/Tabbar/index.vue.d.ts +14 -0
- package/dist/built-in/layout-component/components/Topbar/Toolbar/Favorites.vue.d.ts +4 -0
- package/dist/built-in/layout-component/components/Topbar/Toolbar/Star.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/Topbar/Toolbar/index.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/Topbar/index.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/ui/HBadge.vue.d.ts +20 -0
- package/dist/built-in/layout-component/components/ui/HButton.vue.d.ts +26 -0
- package/dist/built-in/layout-component/components/ui/HCheckList.vue.d.ts +20 -0
- package/dist/built-in/layout-component/components/ui/HDialog.vue.d.ts +39 -0
- package/dist/built-in/layout-component/components/ui/HDivider.vue.d.ts +20 -0
- package/dist/built-in/layout-component/components/ui/HDropdown.vue.d.ts +18 -0
- package/dist/built-in/layout-component/components/ui/HDropdownMenu.vue.d.ts +21 -0
- package/dist/built-in/layout-component/components/ui/HDropdownTree.vue.d.ts +32 -0
- package/dist/built-in/layout-component/components/ui/HInput.vue.d.ts +17 -0
- package/dist/built-in/layout-component/components/ui/HKbd.vue.d.ts +17 -0
- package/dist/built-in/layout-component/components/ui/HSelect.vue.d.ts +17 -0
- package/dist/built-in/layout-component/components/ui/HSlideover.vue.d.ts +41 -0
- package/dist/built-in/layout-component/components/ui/HTabList.vue.d.ts +22 -0
- package/dist/built-in/layout-component/components/ui/HToggle.vue.d.ts +14 -0
- package/dist/built-in/layout-component/components/ui/HTooltip.vue.d.ts +23 -0
- package/dist/built-in/layout-component/composables/useContext.d.ts +17 -0
- package/dist/built-in/layout-component/composables/useGetComputedStyle.d.ts +15 -0
- package/dist/built-in/layout-component/composables/useGlobalSearch.d.ts +26 -0
- package/dist/built-in/layout-component/composables/useHotkey.d.ts +1 -0
- package/dist/built-in/layout-component/composables/useLayoutVisible.d.ts +8 -0
- package/dist/built-in/layout-component/composables/useMainPage.d.ts +14 -0
- package/dist/built-in/layout-component/composables/useMenu.d.ts +8 -0
- package/dist/built-in/layout-component/composables/useTabbar.d.ts +14 -0
- package/dist/built-in/layout-component/composables/useTitle.d.ts +4 -0
- package/dist/built-in/layout-component/composables/useViewTransition.d.ts +3 -0
- package/dist/built-in/layout-component/composables/useWatermark.d.ts +6 -0
- package/dist/built-in/layout-component/index.d.ts +27 -0
- package/dist/built-in/layout-component/interface.d.ts +22 -0
- package/dist/built-in/layout-component/pages/reload/index.vue.d.ts +2 -0
- package/dist/built-in/layout-component/provider.d.ts +1 -0
- package/dist/built-in/layout-component/utils/index.d.ts +2 -0
- package/dist/built-in/layout-component/utils/injectionKeys.d.ts +2 -0
- package/dist/built-in/layout-component/utils/watermark.d.ts +51 -0
- package/dist/built-in/n-progress/index.d.ts +6 -0
- package/dist/built-in/pinia-plugin/enum.d.ts +1 -0
- package/dist/built-in/pinia-plugin/helper.d.ts +2 -0
- package/dist/built-in/pinia-plugin/index.d.ts +5 -0
- package/dist/built-in/pinia-plugin/plugins/cleanup.d.ts +5 -0
- package/dist/built-in/pinia-plugin/plugins/favoritesStorage.d.ts +5 -0
- package/dist/built-in/pinia-plugin/plugins/iframeCache.d.ts +5 -0
- package/dist/built-in/pinia-plugin/plugins/persist.d.ts +3 -0
- package/dist/built-in/pinia-plugin/plugins/persistedstate/index.d.ts +3 -0
- package/dist/built-in/pinia-plugin/plugins/persistedstate/persistedstate.d.ts +15 -0
- package/dist/built-in/pinia-plugin/plugins/persistedstate/types.d.ts +150 -0
- package/dist/built-in/pinia-plugin/plugins/persistedstate/utils.d.ts +17 -0
- package/dist/built-in/pinia-plugin/plugins/tabbarStorage.d.ts +5 -0
- package/dist/built-in/pre-access/index.d.ts +7 -0
- package/dist/built-in/settings/index.d.ts +5 -0
- package/dist/built-in/settings/router.d.ts +3 -0
- package/dist/built-in/system-info/components/SystemInfo.vue.d.ts +2 -0
- package/dist/built-in/system-info/index.d.ts +5 -0
- package/dist/c-eeMepfLm.js +6 -0
- package/dist/cadence-DMRWHJp4.js +6 -0
- package/dist/cairo-DM6WF2e3.js +8 -0
- package/dist/catppuccin-frappe-5udUqgsX.js +4 -0
- package/dist/catppuccin-latte-ufkS-HWv.js +4 -0
- package/dist/catppuccin-macchiato-DzL2LPek.js +4 -0
- package/dist/catppuccin-mocha-DDDDwkUT.js +4 -0
- package/dist/clarity-BseSxcHx.js +6 -0
- package/dist/clojure-CXJfHrL3.js +6 -0
- package/dist/cmake-BJz8BOTU.js +6 -0
- package/dist/cobol-R4Vn9a46.js +10 -0
- package/dist/codeowners-Bt9yU6NX.js +6 -0
- package/dist/codeql-DHkodjjI.js +6 -0
- package/dist/coffee-Dl27lzbd.js +8 -0
- package/dist/common-lisp-EVqT9Zhp.js +6 -0
- package/dist/coq-B0L9upzn.js +6 -0
- package/dist/core/create.d.ts +2 -0
- package/dist/core/ctx.d.ts +3 -0
- package/dist/core/index.d.ts +4 -0
- package/dist/core/interface.d.ts +115 -0
- package/dist/core/modules.d.ts +20 -0
- package/dist/core/request.d.ts +4 -0
- package/dist/core/resolver/icon.d.ts +7 -0
- package/dist/core/resolver/index.d.ts +4 -0
- package/dist/core/resolver/layout.d.ts +2 -0
- package/dist/core/resolver/page.d.ts +17 -0
- package/dist/core/resolver/resolver.d.ts +10 -0
- package/dist/core/utils/global.d.ts +33 -0
- package/dist/core/utils/index.d.ts +2 -0
- package/dist/core/utils/utils.d.ts +3 -0
- package/dist/cpp-Cj177cuW.js +18 -0
- package/dist/crystal-ymVvJzbZ.js +18 -0
- package/dist/csharp-DmxfTLWR.js +6 -0
- package/dist/css-CECN5uSL.js +6 -0
- package/dist/csv-CmYOceLb.js +6 -0
- package/dist/cue-ZzumE7IT.js +6 -0
- package/dist/cypher-jpdmjtA6.js +6 -0
- package/dist/d-CBagWSwH.js +6 -0
- package/dist/dark-plus-pUHDTVV0.js +4 -0
- package/dist/dart-6ObCrKr9.js +6 -0
- package/dist/dax-CcDT-8dH.js +6 -0
- package/dist/desktop-B93p9R9O.js +6 -0
- package/dist/diff-BxzP2J8R.js +6 -0
- package/dist/docker-CsHqm9tx.js +6 -0
- package/dist/dotenv-BMjVjUL1.js +6 -0
- package/dist/dracula-BtZx2Kac.js +4 -0
- package/dist/dracula-soft-BKa-aqBv.js +4 -0
- package/dist/dream-maker-PAx17jaB.js +6 -0
- package/dist/edge-_LvgTcmu.js +12 -0
- package/dist/elixir-BTCUAmQk.js +8 -0
- package/dist/elm-BtNbw_Cd.js +8 -0
- package/dist/emacs-lisp-Cfxdx5D-.js +6 -0
- package/dist/erb-D0PIpZCP.js +10 -0
- package/dist/erlang-DNcDT8Hi.js +8 -0
- package/dist/everforest-dark-DMCBqXCK.js +4 -0
- package/dist/everforest-light-BbXl82Em.js +4 -0
- package/dist/features/api/modules/auth/index.d.ts +1 -0
- package/dist/features/api/modules/auth/renzhengfuwu.d.ts +99 -0
- package/dist/features/api/modules/configData/heibaimingdanfuwu.d.ts +36 -0
- package/dist/features/api/modules/configData/index.d.ts +3 -0
- package/dist/features/api/modules/configData/xitongpeizhifuwu.d.ts +99 -0
- package/dist/features/api/modules/configData/zidifuwu.d.ts +71 -0
- package/dist/features/api/modules/rbac/gangweijiekou.d.ts +43 -0
- package/dist/features/api/modules/rbac/index.d.ts +12 -0
- package/dist/features/api/modules/rbac/jiaosejiekou.d.ts +50 -0
- package/dist/features/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +50 -0
- package/dist/features/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +64 -0
- package/dist/features/api/modules/rbac/yonghujiekou.d.ts +113 -0
- package/dist/features/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +36 -0
- package/dist/features/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +29 -0
- package/dist/features/api/modules/rbac/ziyuandaorudaochuxiangguanjiekou.d.ts +43 -0
- package/dist/features/api/modules/rbac/ziyuanjiekou.d.ts +99 -0
- package/dist/features/api/modules/rbac/zuhuguanlijiekou.d.ts +36 -0
- package/dist/features/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +29 -0
- package/dist/features/api/modules/rbac/zuzhijiekou.d.ts +64 -0
- package/dist/features/api/request.d.ts +2 -0
- package/dist/features/api/system/user.d.ts +24 -0
- package/dist/features/assets/styles/index.d.ts +5 -0
- package/dist/features/components/PageHeader/index.vue.d.ts +23 -0
- package/dist/features/components/PageMain/index.vue.d.ts +27 -0
- package/dist/features/components/PartyLogin/MethodSelect.vue.d.ts +10 -0
- package/dist/features/components/PartyLogin/Modal.vue.d.ts +31 -0
- package/dist/features/components/PartyLogin/ParamsItem.vue.d.ts +94 -0
- package/dist/features/components/PartyLogin/ParamsPanel.vue.d.ts +13 -0
- package/dist/features/components/PartyLogin/RequestFieldSelector.vue.d.ts +18 -0
- package/dist/features/components/PartyLogin/SystemFieldSelector.vue.d.ts +15 -0
- package/dist/features/components/PartyLogin/steps/One.vue.d.ts +28 -0
- package/dist/features/components/PartyLogin/steps/Two.vue.d.ts +14 -0
- package/dist/features/components/PartyLogin/type.d.ts +37 -0
- package/dist/features/components/PartyLogin/usePartyRequest.d.ts +21 -0
- package/dist/features/components/PassStrengthValidator/index.vue.d.ts +26 -0
- package/dist/features/components/PassStrengthValidator/rule.vue.d.ts +8 -0
- package/dist/features/components/PubinfoApp/index.vue.d.ts +2 -0
- package/dist/features/components/PubinfoIcon/PrismBox.vue.d.ts +21 -0
- package/dist/features/components/PubinfoIcon/SquareBox.vue.d.ts +17 -0
- package/dist/features/components/PubinfoIcon/index.vue.d.ts +2 -0
- package/dist/features/components/PubinfoIcon/props.d.ts +65 -0
- package/dist/features/components/PubinfoProvider/index.d.ts +9 -0
- package/dist/features/components/index.d.ts +10 -0
- package/dist/features/composables/auth.d.ts +8 -0
- package/dist/features/composables/index.d.ts +5 -0
- package/dist/features/composables/log.d.ts +6 -0
- package/dist/features/composables/partyLogin.d.ts +19 -0
- package/dist/features/composables/theme.d.ts +3 -0
- package/dist/features/composables/watchDiff.d.ts +2 -0
- package/dist/features/context/index.d.ts +12 -0
- package/dist/features/enum.d.ts +20 -0
- package/dist/features/index.d.ts +7 -0
- package/dist/features/pages/not-found/index.vue.d.ts +2 -0
- package/dist/features/pages/profile/index.vue.d.ts +2 -0
- package/dist/features/router/asyncRoutes.d.ts +14 -0
- package/dist/features/router/index.d.ts +2 -0
- package/dist/features/router/systemRoutes.d.ts +9 -0
- package/dist/features/settings/index.d.ts +3 -0
- package/dist/features/stores/enum.d.ts +20 -0
- package/dist/features/stores/index.d.ts +1 -0
- package/dist/features/stores/modules/favorites.d.ts +33 -0
- package/dist/features/stores/modules/iframe.d.ts +45 -0
- package/dist/features/stores/modules/index.d.ts +16 -0
- package/dist/features/stores/modules/keepAlive.d.ts +24 -0
- package/dist/features/stores/modules/menu.d.ts +35 -0
- package/dist/features/stores/modules/route.d.ts +52 -0
- package/dist/features/stores/modules/settings.d.ts +86 -0
- package/dist/features/stores/modules/tabbar.d.ts +60 -0
- package/dist/features/stores/modules/user.d.ts +48 -0
- package/dist/features/stores/utils/index.d.ts +1 -0
- package/dist/features/stores/utils/routerHelper.d.ts +18 -0
- package/dist/fennel-N4WcXuKx.js +6 -0
- package/dist/fish-B6QqlqeT.js +6 -0
- package/dist/fluent-BMXUxfv1.js +6 -0
- package/dist/fortran-fixed-form-DUsA-VGo.js +8 -0
- package/dist/fortran-free-form-DPIT_jbP.js +6 -0
- package/dist/fsharp-Pr2u3cIG.js +8 -0
- package/dist/gdresource-BwtMIoBm.js +10 -0
- package/dist/gdscript-BifyeYhI.js +6 -0
- package/dist/gdshader-Bk8fF6yr.js +6 -0
- package/dist/genie-DzUvd7U9.js +6 -0
- package/dist/gherkin-DHRaV0YP.js +6 -0
- package/dist/git-commit-Bd32YZ0K.js +8 -0
- package/dist/git-rebase-ZWUFO_T4.js +8 -0
- package/dist/github-dark-DenFmJkN.js +4 -0
- package/dist/github-dark-default-BJPUVz4H.js +4 -0
- package/dist/github-dark-dimmed-DUshB20C.js +4 -0
- package/dist/github-dark-high-contrast-D3aGCnF8.js +4 -0
- package/dist/github-light-JYsPkUQd.js +4 -0
- package/dist/github-light-default-D99KPAby.js +4 -0
- package/dist/github-light-high-contrast-BbmZE-Mp.js +4 -0
- package/dist/gleam-Bv284lvN.js +6 -0
- package/dist/glimmer-js-CkxRszZZ.js +14 -0
- package/dist/glimmer-ts-Bi6BYQCn.js +14 -0
- package/dist/glsl-CkUcVZNK.js +8 -0
- package/dist/gnuplot-yPG9-sE_.js +6 -0
- package/dist/go-ChxJuLYK.js +6 -0
- package/dist/graphql-BLaPX4fU.js +14 -0
- package/dist/groovy-CJQTphOW.js +6 -0
- package/dist/gruvbox-dark-hard-C2ND4cMr.js +4 -0
- package/dist/gruvbox-dark-medium-C8k4c8au.js +4 -0
- package/dist/gruvbox-dark-soft-xx9Q6FaG.js +4 -0
- package/dist/gruvbox-light-hard-BpUXv5in.js +4 -0
- package/dist/gruvbox-light-medium-D3XFCoU1.js +4 -0
- package/dist/gruvbox-light-soft-u7hpfz6Z.js +4 -0
- package/dist/hack-Bx1jMtBC.js +10 -0
- package/dist/haml-6FagfhCM.js +10 -0
- package/dist/handlebars-Bd5Y4M6I.js +14 -0
- package/dist/haskell-WeIwNIP6.js +6 -0
- package/dist/haxe-TztHsm5T.js +6 -0
- package/dist/hcl-D438OF-I.js +6 -0
- package/dist/hjson-DYBUbqOl.js +6 -0
- package/dist/hlsl-Bk8TCZNL.js +6 -0
- package/dist/houston-BDYrDoDW.js +4 -0
- package/dist/html-7XVNRwN7.js +10 -0
- package/dist/html-derivative-BNxZ5Yf6.js +8 -0
- package/dist/http-WC357zBG.js +14 -0
- package/dist/hxml-GbqSQCLa.js +8 -0
- package/dist/hy-Brt5EZ7-.js +6 -0
- package/dist/imba-CimUv-Uh.js +6 -0
- package/dist/index-73TLLAnx.js +25373 -0
- package/dist/index-B3GOGQYd.js +79648 -0
- package/dist/index-BD2fkZis.js +14 -0
- package/dist/index-BRjgatUZ.js +139 -0
- package/dist/index-BrK3HYDT.js +4 -0
- package/dist/index-CkUIa4JM.js +229 -0
- package/dist/index-D2zvNBbe.js +44 -0
- package/dist/index-DwF3aqst.js +49 -0
- package/dist/index-NOUM2y9h.js +2827 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +70 -0
- package/dist/ini-BZIuRIvJ.js +6 -0
- package/dist/java-DY6VlHhP.js +6 -0
- package/dist/javascript-Dp1Jmi5H.js +6 -0
- package/dist/jinja-WEhOU5ES.js +11 -0
- package/dist/jison-c2JI40PB.js +8 -0
- package/dist/json-DxJze_jm.js +6 -0
- package/dist/json5-BT4Fjg39.js +6 -0
- package/dist/jsonc-CHjZD8gR.js +6 -0
- package/dist/jsonl-BGuvDmy9.js +6 -0
- package/dist/jsonnet-Bx2cfsXg.js +6 -0
- package/dist/jssm-BcADi6EI.js +6 -0
- package/dist/jsx-BtKADgXT.js +6 -0
- package/dist/julia-DcoDQokW.js +16 -0
- package/dist/kanagawa-dragon-CiKur4Hl.js +4 -0
- package/dist/kanagawa-lotus-BKu-smKu.js +4 -0
- package/dist/kanagawa-wave-CQwozSzG.js +4 -0
- package/dist/kotlin-ByBMgTeR.js +6 -0
- package/dist/kusto-VWFLl2T0.js +6 -0
- package/dist/laserwave-6a00oqik.js +4 -0
- package/dist/latex-MZCpjnva.js +8 -0
- package/dist/lean-DXqEE_d1.js +6 -0
- package/dist/less-B1GLI2Di.js +6 -0
- package/dist/light-plus-CZuVqSLX.js +4 -0
- package/dist/liquid-3HHuHOZ2.js +14 -0
- package/dist/llvm-6RQLId6G.js +6 -0
- package/dist/log-Al8wyEFV.js +6 -0
- package/dist/logo-DBa4JDzV.js +6 -0
- package/dist/lua-kX5WP_P5.js +8 -0
- package/dist/luau-DtBSxLyz.js +6 -0
- package/dist/make-CsMclxtr.js +6 -0
- package/dist/markdown-CrScaQ96.js +6 -0
- package/dist/marko-DDi9qpQP.js +14 -0
- package/dist/material-theme-D6KBX41T.js +4 -0
- package/dist/material-theme-darker-CkRroheE.js +4 -0
- package/dist/material-theme-lighter-BUBw43Yz.js +4 -0
- package/dist/material-theme-ocean-ClGX14Ja.js +4 -0
- package/dist/material-theme-palenight-C1RVm8K1.js +4 -0
- package/dist/matlab-BOAaUVP0.js +6 -0
- package/dist/mdc-FI2x3BiY.js +12 -0
- package/dist/mdx-BOhZZUJ8.js +6 -0
- package/dist/mermaid-B0ixDHKN.js +6 -0
- package/dist/min-dark-C7ak0t6c.js +4 -0
- package/dist/min-light-CKFxVcPp.js +4 -0
- package/dist/mipsasm-CTx18fBl.js +6 -0
- package/dist/mojo-BD611d7o.js +6 -0
- package/dist/monokai-C1KBYcO0.js +4 -0
- package/dist/move-DSb5dTSj.js +6 -0
- package/dist/narrat-DmhDCBs-.js +6 -0
- package/dist/nextflow-BAAEJxI_.js +6 -0
- package/dist/nginx-5vhPAEw3.js +8 -0
- package/dist/night-owl-Bm2rzalh.js +4 -0
- package/dist/nim-BhS8gg0S.js +20 -0
- package/dist/nix-ceY58Dty.js +6 -0
- package/dist/nord-CC5OiUXg.js +4 -0
- package/dist/nushell-CQi4NV-2.js +6 -0
- package/dist/objective-c-Itk8tzmv.js +6 -0
- package/dist/objective-cpp-DGt5UKRO.js +6 -0
- package/dist/ocaml-eSVK32Eg.js +6 -0
- package/dist/one-dark-pro-DTA3VF0_.js +4 -0
- package/dist/one-light-D9sNaUtq.js +4 -0
- package/dist/pascal-xy8pJNns.js +6 -0
- package/dist/perl-BoEn6HmT.js +16 -0
- package/dist/php-BRU9zhoN.js +18 -0
- package/dist/pick-dLE6MD9A.js +12 -0
- package/dist/plastic-CSTz3KZp.js +4 -0
- package/dist/plsql-pVbGZfOv.js +6 -0
- package/dist/po-BNfHvqmm.js +6 -0
- package/dist/poimandres-C-VADXHD.js +4 -0
- package/dist/polar-CAZahv3u.js +6 -0
- package/dist/postcss-05aHdL-n.js +6 -0
- package/dist/powerquery-DI9HkTvs.js +6 -0
- package/dist/powershell-Clc4ydu-.js +6 -0
- package/dist/prisma-FZjmVtSl.js +6 -0
- package/dist/prolog-C5-yg4TO.js +6 -0
- package/dist/proto-MmCPeFAD.js +6 -0
- package/dist/pug-CJWI-qSo.js +12 -0
- package/dist/puppet-CUJHmnxV.js +6 -0
- package/dist/purescript-rUfGld-4.js +6 -0
- package/dist/python-BFNSHbwJ.js +6 -0
- package/dist/qml-D3ATcgGh.js +8 -0
- package/dist/qmldir-BInDYbpo.js +6 -0
- package/dist/qss-AeJTysr_.js +6 -0
- package/dist/question-line-DCMVyZ3e.js +18 -0
- package/dist/r-Bm0uF0U2.js +6 -0
- package/dist/racket-B83wSAja.js +6 -0
- package/dist/raku-nEQ4ZJJ7.js +6 -0
- package/dist/razor-BPFYEoc9.js +10 -0
- package/dist/red-7y8PH7HH.js +4 -0
- package/dist/reg-m_s_Kiip.js +6 -0
- package/dist/regexp-BazyLpPg.js +6 -0
- package/dist/rel-BcRfyd6Q.js +6 -0
- package/dist/right-aIVrXLnr.js +36 -0
- package/dist/riscv-Ce8MAQLP.js +6 -0
- package/dist/rose-pine-Cr4kwgAY.js +4 -0
- package/dist/rose-pine-dawn-ClRRUdXX.js +4 -0
- package/dist/rose-pine-moon-ucNn3Gm8.js +4 -0
- package/dist/rst-B6mPMsKo.js +22 -0
- package/dist/ruby-DInklMmU.js +30 -0
- package/dist/rust-CLzF9zIN.js +6 -0
- package/dist/sas-fpEvgATw.js +8 -0
- package/dist/sass-DxHp5rTx.js +6 -0
- package/dist/scala-D4grkFkl.js +6 -0
- package/dist/scheme-BCRWuEm4.js +6 -0
- package/dist/scss-B1FaCqwR.js +8 -0
- package/dist/sdbl-B7T8abf4.js +6 -0
- package/dist/shaderlab-Cr62-Wb4.js +8 -0
- package/dist/shellscript-InADTalH.js +6 -0
- package/dist/shellsession-DiDJNQdy.js +8 -0
- package/dist/slack-dark-i7wN4OET.js +4 -0
- package/dist/slack-ochin-ndHf0LoP.js +4 -0
- package/dist/smalltalk-BlI1_OkM.js +6 -0
- package/dist/snazzy-light-BlSJXAu4.js +4 -0
- package/dist/solarized-dark-UTmkh7lw.js +4 -0
- package/dist/solarized-light-BheCkDPT.js +4 -0
- package/dist/solidity-CneOhxmR.js +6 -0
- package/dist/soy-LybuU3Y_.js +8 -0
- package/dist/sparql-B0KWFEri.js +8 -0
- package/dist/splunk-CRXR8A9s.js +6 -0
- package/dist/sql-Cn_v3PB0.js +6 -0
- package/dist/ssh-config-DP-hNVbF.js +6 -0
- package/dist/stata-B8c5fTjX.js +8 -0
- package/dist/style.css +9 -0
- package/dist/stylus-CyKEU1Ej.js +6 -0
- package/dist/svelte-BjDUPxZ1.js +14 -0
- package/dist/swift-9UzSvamq.js +6 -0
- package/dist/synthwave-84-NU3C_KFZ.js +4 -0
- package/dist/system-verilog-BCm7smPJ.js +6 -0
- package/dist/systemd-C-4qm6XH.js +6 -0
- package/dist/talonscript-CFF3LF_O.js +6 -0
- package/dist/tasl-Cg_WBUAe.js +6 -0
- package/dist/tcl-DN7buRTF.js +6 -0
- package/dist/templ-Brj2RH7A.js +12 -0
- package/dist/terraform-DGvcn9zM.js +6 -0
- package/dist/tex-CmrLTxbG.js +8 -0
- package/dist/tokyo-night-DP4TmcQl.js +4 -0
- package/dist/toml-DY62mUL_.js +6 -0
- package/dist/ts-tags-CZMzuZh-.js +41 -0
- package/dist/tsv-BtvSkaG0.js +6 -0
- package/dist/tsx-B8rCNbgL.js +6 -0
- package/dist/turtle-_H59FV7D.js +6 -0
- package/dist/twig-GjIxYqCX.js +18 -0
- package/dist/typescript-mg6ATTE8.js +6 -0
- package/dist/typespec-Djmco60m.js +6 -0
- package/dist/typst-D_1QKWns.js +6 -0
- package/dist/utils/cleanup.d.ts +8 -0
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/path.d.ts +1 -0
- package/dist/utils/proxy.d.ts +1 -0
- package/dist/utils/publicKey.d.ts +4 -0
- package/dist/utils/storage.d.ts +20 -0
- package/dist/v-BW14IZv7.js +6 -0
- package/dist/vala-uxaPR7d1.js +6 -0
- package/dist/vb-D8_c5-KN.js +6 -0
- package/dist/verilog-B-bybjPF.js +6 -0
- package/dist/vesper-BckBta1U.js +4 -0
- package/dist/vhdl-CUlNa8ac.js +6 -0
- package/dist/viml-DsfA-sWm.js +6 -0
- package/dist/vitesse-black-BoGvW84i.js +4 -0
- package/dist/vitesse-dark-Cym-eLtO.js +4 -0
- package/dist/vitesse-light-CcmG315c.js +4 -0
- package/dist/vue-D-ba2-Rx.js +31 -0
- package/dist/vue-html-Dn2ZoOSz.js +10 -0
- package/dist/vue-vine-Jmfkm6lF.js +20 -0
- package/dist/vyper-CPQuu50u.js +6 -0
- package/dist/wasm-BBXxrAl7.js +6 -0
- package/dist/wasm-DQxwEHae.js +7 -0
- package/dist/wenyan-pbVjoM9_.js +6 -0
- package/dist/wgsl-DY4iK1q1.js +6 -0
- package/dist/wikitext-Z-MoUasO.js +6 -0
- package/dist/wit-CQMQOlTg.js +6 -0
- package/dist/wolfram-Dz4KXISs.js +6 -0
- package/dist/xml-C2J0sS9M.js +8 -0
- package/dist/xsl-BmSZphgC.js +8 -0
- package/dist/yaml-DaO7k5B1.js +6 -0
- package/dist/zenscript-CxBjpf9c.js +6 -0
- package/dist/zig-Vm0PO9wB.js +6 -0
- package/package.json +104 -0
- package/runtime/components/PubinfoDev/index.d.ts +18 -0
- package/runtime/components/PubinfoDev/index.js +15 -0
- package/runtime/components/index.d.ts +1 -0
- package/runtime/components/index.js +1 -0
- package/runtime/index.d.ts +1 -0
- package/runtime/index.js +1 -0
- package/src/built-in/authentication/alova/helper.ts +158 -0
- package/src/built-in/authentication/alova/token.ts +122 -0
- package/src/built-in/authentication/enum.ts +78 -0
- package/src/built-in/authentication/helper.ts +59 -0
- package/src/built-in/authentication/index.ts +28 -0
- package/src/built-in/authentication/interface.ts +7 -0
- package/src/built-in/authentication/pages/change-organization/assets/change-org.svg +1 -0
- package/src/built-in/authentication/pages/change-organization/assets/login-small.png +0 -0
- package/src/built-in/authentication/pages/change-organization/assets/login-small_dark.webp +0 -0
- package/src/built-in/authentication/pages/change-organization/index.vue +160 -0
- package/src/built-in/authentication/pages/change-password/assets/login-small.png +0 -0
- package/src/built-in/authentication/pages/change-password/assets/login-small_dark.webp +0 -0
- package/src/built-in/authentication/pages/change-password/assets/mima.svg +1 -0
- package/src/built-in/authentication/pages/change-password/components/ChangePasswordForm/index.vue +144 -0
- package/src/built-in/authentication/pages/change-password/index.vue +85 -0
- package/src/built-in/authentication/router.ts +57 -0
- package/src/built-in/authorization/directives.ts +22 -0
- package/src/built-in/authorization/helper.ts +11 -0
- package/src/built-in/authorization/index.ts +25 -0
- package/src/built-in/authorization/pages/not-permission/403.svg +1 -0
- package/src/built-in/authorization/pages/not-permission/403_dark.svg +1 -0
- package/src/built-in/authorization/pages/not-permission/index.vue +69 -0
- package/src/built-in/authorization/router.ts +122 -0
- package/src/built-in/devtools/index.ts +292 -0
- package/src/built-in/index.ts +9 -0
- package/src/built-in/layout-component/Layout.vue +358 -0
- package/src/built-in/layout-component/assets/icons/favorites.svg +1 -0
- package/src/built-in/layout-component/assets/icons/toolbar-collapse.svg +1 -0
- package/src/built-in/layout-component/assets/images/403.svg +1 -0
- package/src/built-in/layout-component/assets/images/403_dark.svg +1 -0
- package/src/built-in/layout-component/assets/images/not-cursor.png +0 -0
- package/src/built-in/layout-component/components/BackTop/index.vue +47 -0
- package/src/built-in/layout-component/components/Content/IframeView.vue +150 -0
- package/src/built-in/layout-component/components/Content/LinkView.vue +118 -0
- package/src/built-in/layout-component/components/Content/index.vue +147 -0
- package/src/built-in/layout-component/components/Copyright/index.vue +48 -0
- package/src/built-in/layout-component/components/Header/HeaderFullMenu/More.vue +95 -0
- package/src/built-in/layout-component/components/Header/HeaderFullMenu/NotCursor.vue +70 -0
- package/src/built-in/layout-component/components/Header/HeaderFullMenu/index.vue +173 -0
- package/src/built-in/layout-component/components/Header/HeaderMenu.vue +19 -0
- package/src/built-in/layout-component/components/Header/HeaderThinMenu.vue +41 -0
- package/src/built-in/layout-component/components/Header/index.vue +175 -0
- package/src/built-in/layout-component/components/Logo/index.vue +55 -0
- package/src/built-in/layout-component/components/Menu/index.vue +206 -0
- package/src/built-in/layout-component/components/Menu/item.vue +198 -0
- package/src/built-in/layout-component/components/Menu/sub.vue +220 -0
- package/src/built-in/layout-component/components/Menu/types.ts +49 -0
- package/src/built-in/layout-component/components/NotAllowed/index.vue +44 -0
- package/src/built-in/layout-component/components/SettingBar/AppSetting.vue +146 -0
- package/src/built-in/layout-component/components/SettingBar/components/DayNightToggle.vue +144 -0
- package/src/built-in/layout-component/components/SettingBar/components/SettingBreadcrumb.vue +42 -0
- package/src/built-in/layout-component/components/SettingBar/components/SettingCopyright.vue +44 -0
- package/src/built-in/layout-component/components/SettingBar/components/SettingEnableTransition.vue +190 -0
- package/src/built-in/layout-component/components/SettingBar/components/SettingHome.vue +30 -0
- package/src/built-in/layout-component/components/SettingBar/components/SettingMenu.vue +108 -0
- package/src/built-in/layout-component/components/SettingBar/components/SettingMode.vue +154 -0
- package/src/built-in/layout-component/components/SettingBar/components/SettingNavSearch.vue +30 -0
- package/src/built-in/layout-component/components/SettingBar/components/SettingOther.vue +53 -0
- package/src/built-in/layout-component/components/SettingBar/components/SettingPage.vue +20 -0
- package/src/built-in/layout-component/components/SettingBar/components/SettingTabbar.vue +70 -0
- package/src/built-in/layout-component/components/SettingBar/components/SettingThemes.vue +167 -0
- package/src/built-in/layout-component/components/SettingBar/components/SettingToolbar.vue +48 -0
- package/src/built-in/layout-component/components/SettingBar/components/SettingTopbar.vue +37 -0
- package/src/built-in/layout-component/components/SettingBar/components/SettingWidthMode.vue +141 -0
- package/src/built-in/layout-component/components/SettingBar/index.vue +81 -0
- package/src/built-in/layout-component/components/Sidebar/MainSidebar.vue +194 -0
- package/src/built-in/layout-component/components/Sidebar/SubSidebar.vue +152 -0
- package/src/built-in/layout-component/components/Sidebar/index.vue +29 -0
- package/src/built-in/layout-component/components/Tools/Breadcrumb/index.vue +15 -0
- package/src/built-in/layout-component/components/Tools/Breadcrumb/item.vue +44 -0
- package/src/built-in/layout-component/components/Tools/DarkModeToggle.vue +126 -0
- package/src/built-in/layout-component/components/Tools/Fullscreen.vue +24 -0
- package/src/built-in/layout-component/components/Tools/HotkeysIntro.vue +103 -0
- package/src/built-in/layout-component/components/Tools/PageReload.vue +22 -0
- package/src/built-in/layout-component/components/Tools/Preferences/PreferencesContent.vue +658 -0
- package/src/built-in/layout-component/components/Tools/Preferences/index.vue +20 -0
- package/src/built-in/layout-component/components/Tools/SearchBar.vue +42 -0
- package/src/built-in/layout-component/components/Tools/SearchPanel.vue +454 -0
- package/src/built-in/layout-component/components/Tools/index.vue +149 -0
- package/src/built-in/layout-component/components/Tools/interface.ts +27 -0
- package/src/built-in/layout-component/components/Topbar/Tabbar/MoreAction.vue +329 -0
- package/src/built-in/layout-component/components/Topbar/Tabbar/index.vue +744 -0
- package/src/built-in/layout-component/components/Topbar/Toolbar/Favorites.vue +135 -0
- package/src/built-in/layout-component/components/Topbar/Toolbar/Star.vue +30 -0
- package/src/built-in/layout-component/components/Topbar/Toolbar/index.vue +312 -0
- package/src/built-in/layout-component/components/Topbar/index.vue +16 -0
- package/src/built-in/layout-component/components/ui/HBadge.vue +41 -0
- package/src/built-in/layout-component/components/ui/HButton.vue +28 -0
- package/src/built-in/layout-component/components/ui/HCheckList.vue +49 -0
- package/src/built-in/layout-component/components/ui/HDialog.vue +111 -0
- package/src/built-in/layout-component/components/ui/HDivider.vue +24 -0
- package/src/built-in/layout-component/components/ui/HDropdown.vue +13 -0
- package/src/built-in/layout-component/components/ui/HDropdownMenu.vue +43 -0
- package/src/built-in/layout-component/components/ui/HDropdownTree.vue +79 -0
- package/src/built-in/layout-component/components/ui/HInput.vue +40 -0
- package/src/built-in/layout-component/components/ui/HKbd.vue +33 -0
- package/src/built-in/layout-component/components/ui/HSelect.vue +66 -0
- package/src/built-in/layout-component/components/ui/HSlideover.vue +122 -0
- package/src/built-in/layout-component/components/ui/HTabList.vue +56 -0
- package/src/built-in/layout-component/components/ui/HToggle.vue +133 -0
- package/src/built-in/layout-component/components/ui/HTooltip.vue +21 -0
- package/src/built-in/layout-component/composables/useContext.ts +36 -0
- package/src/built-in/layout-component/composables/useGetComputedStyle.ts +72 -0
- package/src/built-in/layout-component/composables/useGlobalSearch.ts +87 -0
- package/src/built-in/layout-component/composables/useHotkey.ts +45 -0
- package/src/built-in/layout-component/composables/useLayoutVisible.ts +87 -0
- package/src/built-in/layout-component/composables/useMainPage.ts +67 -0
- package/src/built-in/layout-component/composables/useMenu.ts +27 -0
- package/src/built-in/layout-component/composables/useTabbar.ts +163 -0
- package/src/built-in/layout-component/composables/useTitle.ts +34 -0
- package/src/built-in/layout-component/composables/useViewTransition.ts +16 -0
- package/src/built-in/layout-component/composables/useWatermark.ts +80 -0
- package/src/built-in/layout-component/index.ts +105 -0
- package/src/built-in/layout-component/interface.ts +25 -0
- package/src/built-in/layout-component/pages/reload/index.vue +11 -0
- package/src/built-in/layout-component/provider.ts +65 -0
- package/src/built-in/layout-component/utils/index.ts +2 -0
- package/src/built-in/layout-component/utils/injectionKeys.ts +5 -0
- package/src/built-in/layout-component/utils/watermark.ts +256 -0
- package/src/built-in/n-progress/index.ts +31 -0
- package/src/built-in/n-progress/nprogress.css +68 -0
- package/src/built-in/pinia-plugin/enum.ts +1 -0
- package/src/built-in/pinia-plugin/helper.ts +37 -0
- package/src/built-in/pinia-plugin/index.ts +27 -0
- package/src/built-in/pinia-plugin/plugins/cleanup.ts +20 -0
- package/src/built-in/pinia-plugin/plugins/favoritesStorage.ts +61 -0
- package/src/built-in/pinia-plugin/plugins/iframeCache.ts +32 -0
- package/src/built-in/pinia-plugin/plugins/persist.ts +32 -0
- package/src/built-in/pinia-plugin/plugins/persistedstate/README.md +551 -0
- package/src/built-in/pinia-plugin/plugins/persistedstate/index.ts +3 -0
- package/src/built-in/pinia-plugin/plugins/persistedstate/persistedstate.ts +575 -0
- package/src/built-in/pinia-plugin/plugins/persistedstate/types.ts +162 -0
- package/src/built-in/pinia-plugin/plugins/persistedstate/utils.ts +46 -0
- package/src/built-in/pinia-plugin/plugins/tabbarStorage.ts +97 -0
- package/src/built-in/pre-access/index.ts +20 -0
- package/src/built-in/settings/index.ts +15 -0
- package/src/built-in/settings/router.ts +138 -0
- package/src/built-in/system-info/components/SystemInfo.vue +83 -0
- package/src/built-in/system-info/index.ts +16 -0
- package/src/core/create.ts +71 -0
- package/src/core/ctx.ts +46 -0
- package/src/core/index.ts +4 -0
- package/src/core/interface.ts +142 -0
- package/src/core/modules.ts +63 -0
- package/src/core/request.ts +71 -0
- package/src/core/resolver/icon.ts +115 -0
- package/src/core/resolver/index.ts +4 -0
- package/src/core/resolver/layout.ts +33 -0
- package/src/core/resolver/page.ts +88 -0
- package/src/core/resolver/resolver.ts +25 -0
- package/src/core/utils/global.ts +161 -0
- package/src/core/utils/index.ts +2 -0
- package/src/core/utils/utils.ts +12 -0
- package/src/features/api/modules/auth/index.ts +1 -0
- package/src/features/api/modules/auth/renzhengfuwu.ts +294 -0
- package/src/features/api/modules/auth/typings.d.ts +177 -0
- package/src/features/api/modules/configData/heibaimingdanfuwu.ts +106 -0
- package/src/features/api/modules/configData/index.ts +3 -0
- package/src/features/api/modules/configData/typings.d.ts +357 -0
- package/src/features/api/modules/configData/xitongpeizhifuwu.ts +346 -0
- package/src/features/api/modules/configData/zidifuwu.ts +227 -0
- package/src/features/api/modules/rbac/gangweijiekou.ts +132 -0
- package/src/features/api/modules/rbac/index.ts +12 -0
- package/src/features/api/modules/rbac/jiaosejiekou.ts +139 -0
- package/src/features/api/modules/rbac/pubJiaosezukongzhiqi.ts +152 -0
- package/src/features/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.ts +200 -0
- package/src/features/api/modules/rbac/typings.d.ts +2145 -0
- package/src/features/api/modules/rbac/yonghujiekou.ts +352 -0
- package/src/features/api/modules/rbac/yonghushoucangbiaojiekou.ts +110 -0
- package/src/features/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.ts +82 -0
- package/src/features/api/modules/rbac/ziyuandaorudaochuxiangguanjiekou.ts +158 -0
- package/src/features/api/modules/rbac/ziyuanjiekou.ts +283 -0
- package/src/features/api/modules/rbac/zuhuguanlijiekou.ts +100 -0
- package/src/features/api/modules/rbac/zuzhijiaosebiaokongzhiqi.ts +85 -0
- package/src/features/api/modules/rbac/zuzhijiekou.ts +189 -0
- package/src/features/api/request.ts +5 -0
- package/src/features/api/system/typings.d.ts +77 -0
- package/src/features/api/system/user.ts +47 -0
- package/src/features/assets/fonts/digital-7/digital-7-webfont.eot +0 -0
- package/src/features/assets/fonts/digital-7/digital-7-webfont.svg +133 -0
- package/src/features/assets/fonts/digital-7/digital-7-webfont.woff +0 -0
- package/src/features/assets/fonts/digital-7/digital-7-webfont.woff2 +0 -0
- package/src/features/assets/fonts/digital-7/stylesheet.css +12 -0
- package/src/features/assets/fonts/digital-7_mono/digital-7_mono-webfont.eot +0 -0
- package/src/features/assets/fonts/digital-7_mono/digital-7_mono-webfont.svg +132 -0
- package/src/features/assets/fonts/digital-7_mono/digital-7_mono-webfont.woff +0 -0
- package/src/features/assets/fonts/digital-7_mono/digital-7_mono-webfont.woff2 +0 -0
- package/src/features/assets/fonts/digital-7_mono/stylesheet.css +12 -0
- package/src/features/assets/fonts/title.otf +0 -0
- package/src/features/assets/images/change-org-bc.webp +0 -0
- package/src/features/assets/images/header-bg.png +0 -0
- package/src/features/assets/images/logo.png +0 -0
- package/src/features/assets/images/org.svg +19 -0
- package/src/features/assets/images/slider-bg.png +0 -0
- package/src/features/assets/styles/globals.css +180 -0
- package/src/features/assets/styles/index.ts +5 -0
- package/src/features/assets/styles/rbac.css +51 -0
- package/src/features/assets/styles/resources/utils.css +53 -0
- package/src/features/assets/styles/resources/variables.css +5 -0
- package/src/features/components/PageHeader/index.vue +32 -0
- package/src/features/components/PageMain/index.vue +51 -0
- package/src/features/components/PartyLogin/MethodSelect.vue +32 -0
- package/src/features/components/PartyLogin/Modal.vue +370 -0
- package/src/features/components/PartyLogin/ParamsItem.vue +196 -0
- package/src/features/components/PartyLogin/ParamsPanel.vue +61 -0
- package/src/features/components/PartyLogin/README.md +621 -0
- package/src/features/components/PartyLogin/RequestFieldSelector.vue +205 -0
- package/src/features/components/PartyLogin/SystemFieldSelector.vue +213 -0
- package/src/features/components/PartyLogin/steps/One.vue +212 -0
- package/src/features/components/PartyLogin/steps/Two.vue +86 -0
- package/src/features/components/PartyLogin/type.ts +43 -0
- package/src/features/components/PartyLogin/usePartyRequest.ts +244 -0
- package/src/features/components/PassStrengthValidator/index.vue +198 -0
- package/src/features/components/PassStrengthValidator/rule.vue +39 -0
- package/src/features/components/PubinfoApp/index.vue +9 -0
- package/src/features/components/PubinfoIcon/PrismBox.vue +203 -0
- package/src/features/components/PubinfoIcon/SquareBox.vue +59 -0
- package/src/features/components/PubinfoIcon/index.vue +338 -0
- package/src/features/components/PubinfoIcon/props.ts +61 -0
- package/src/features/components/PubinfoProvider/index.ts +35 -0
- package/src/features/components/index.ts +11 -0
- package/src/features/composables/auth.ts +53 -0
- package/src/features/composables/index.ts +5 -0
- package/src/features/composables/log.ts +42 -0
- package/src/features/composables/partyLogin.ts +565 -0
- package/src/features/composables/theme.ts +16 -0
- package/src/features/composables/watchDiff.ts +53 -0
- package/src/features/context/index.ts +25 -0
- package/src/features/enum.ts +21 -0
- package/src/features/index.ts +8 -0
- package/src/features/pages/not-found/assets/404.svg +1 -0
- package/src/features/pages/not-found/assets/404_dark.svg +1 -0
- package/src/features/pages/not-found/index.vue +72 -0
- package/src/features/pages/profile/index.vue +125 -0
- package/src/features/router/asyncRoutes.ts +35 -0
- package/src/features/router/index.ts +2 -0
- package/src/features/router/systemRoutes.ts +44 -0
- package/src/features/settings/index.ts +105 -0
- package/src/features/stores/enum.ts +28 -0
- package/src/features/stores/index.ts +1 -0
- package/src/features/stores/modules/favorites.ts +152 -0
- package/src/features/stores/modules/iframe.ts +130 -0
- package/src/features/stores/modules/index.ts +16 -0
- package/src/features/stores/modules/keepAlive.ts +66 -0
- package/src/features/stores/modules/menu.ts +261 -0
- package/src/features/stores/modules/route.ts +582 -0
- package/src/features/stores/modules/settings.ts +384 -0
- package/src/features/stores/modules/tabbar.ts +339 -0
- package/src/features/stores/modules/user.ts +301 -0
- package/src/features/stores/utils/index.ts +1 -0
- package/src/features/stores/utils/routerHelper.ts +240 -0
- package/src/index.ts +127 -0
- package/src/utils/cleanup.ts +19 -0
- package/src/utils/index.ts +6 -0
- package/src/utils/path.ts +5 -0
- package/src/utils/proxy.ts +35 -0
- package/src/utils/publicKey.ts +23 -0
- package/src/utils/storage.ts +55 -0
- package/types/auto-imports.d.ts +78 -0
- package/types/components.d.ts +48 -0
- package/types/favorites.d.ts +8 -0
- package/types/global.d.ts +12 -0
- package/types/iframe.d.ts +8 -0
- package/types/index.d.ts +10 -0
- package/types/menu.d.ts +45 -0
- package/types/module.d.ts +10 -0
- package/types/pinia.d.ts +94 -0
- package/types/settings.d.ts +556 -0
- package/types/tabbar.d.ts +24 -0
- package/types/user.d.ts +46 -0
- package/types/vite-env.d.ts +39 -0
- package/types/vue-router.d.ts +80 -0
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import type { Favorites } from '#/favorites';
|
|
2
|
+
import type { Route } from '#/vue-router';
|
|
3
|
+
import type { RouteLocationNormalized, RouteRecordRaw } from 'vue-router';
|
|
4
|
+
|
|
5
|
+
import { defineStore } from 'pinia';
|
|
6
|
+
import { resolveRoutePath } from '@/utils';
|
|
7
|
+
import { STORE_NAME } from '../enum';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* 用于管理收藏夹的自定义存储。
|
|
11
|
+
*
|
|
12
|
+
* @returns 包含各种函数和响应式属性以管理收藏夹的对象。
|
|
13
|
+
*/
|
|
14
|
+
const useFavoritesStore = defineStore(
|
|
15
|
+
STORE_NAME.FAVORITES,
|
|
16
|
+
() => {
|
|
17
|
+
const list = ref<Favorites.recordRaw[]>([]);
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* 判断路由项是否有子项
|
|
21
|
+
* @param item 路由项
|
|
22
|
+
* @returns 返回布尔值,表示是否有子项
|
|
23
|
+
*/
|
|
24
|
+
function hasChildren(item: RouteRecordRaw) {
|
|
25
|
+
let flag = true;
|
|
26
|
+
if (item.children?.every(i => i.meta?.sidebar === false)) {
|
|
27
|
+
flag = false;
|
|
28
|
+
}
|
|
29
|
+
return flag;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* 获取源列表
|
|
34
|
+
* @param arr 路由记录数组
|
|
35
|
+
* @param basePath 基础路径
|
|
36
|
+
* @returns 源列表
|
|
37
|
+
* @example
|
|
38
|
+
* const routes: RouteRecordRaw[] = [
|
|
39
|
+
* {
|
|
40
|
+
* path: '/home',
|
|
41
|
+
* component: Home,
|
|
42
|
+
* meta: { sidebar: true },
|
|
43
|
+
* children: [
|
|
44
|
+
* { path: '/dashboard', component: Dashboard, meta: { sidebar: true } },
|
|
45
|
+
* { path: '/profile', component: Profile, meta: { sidebar: true } },
|
|
46
|
+
* ],
|
|
47
|
+
* },
|
|
48
|
+
* { path: '/about', component: About, meta: { sidebar: false } },
|
|
49
|
+
* ];
|
|
50
|
+
* const basePath = '/home';
|
|
51
|
+
* const sourceList = getSourceList(routes, basePath);
|
|
52
|
+
* console.log(sourceList); // Output: ['/home/dashboard', '/home/profile']
|
|
53
|
+
*/
|
|
54
|
+
function getSourceList(arr: RouteRecordRaw[], basePath?: string) {
|
|
55
|
+
const list: string[] = [];
|
|
56
|
+
for (const item of arr) {
|
|
57
|
+
if (item.meta?.sidebar !== false) {
|
|
58
|
+
if (item.children && hasChildren(item)) {
|
|
59
|
+
list.push(...getSourceList(item.children, resolveRoutePath(basePath, item.path)));
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
list.push((item.redirect as string) ?? resolveRoutePath(basePath, item.path));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return list;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* 获取扁平化的侧边栏菜单列表
|
|
71
|
+
* @param routes - routeStore中的routes。
|
|
72
|
+
* @returns 扁平化的侧边栏菜单列表
|
|
73
|
+
*/
|
|
74
|
+
function flatSidebarMenu(routes: Route.recordMainRaw[] = []) {
|
|
75
|
+
const list: string[] = [];
|
|
76
|
+
|
|
77
|
+
routes.forEach((item) => {
|
|
78
|
+
if (item.children) {
|
|
79
|
+
const childrenList = getSourceList(item.children as RouteRecordRaw[]);
|
|
80
|
+
list.push(...childrenList);
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
return list;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* 确定给定的fullPath是否可以添加到收藏夹。
|
|
89
|
+
* @param fullPath - 要检查的fullPath。
|
|
90
|
+
* @param routes - routeStore中的routes。
|
|
91
|
+
* @returns 如果可以添加到收藏夹,则为true;否则为false。
|
|
92
|
+
*/
|
|
93
|
+
function canAdd(fullPath: Favorites.recordRaw['fullPath'], routes: Route.recordMainRaw[] = []) {
|
|
94
|
+
return flatSidebarMenu(routes).includes(fullPath);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* 判断是否已添加到收藏夹
|
|
99
|
+
* @param fullPath 完整路径
|
|
100
|
+
* @returns 如果已添加返回true,否则返回false
|
|
101
|
+
*/
|
|
102
|
+
function isAdd(fullPath: Favorites.recordRaw['fullPath']) {
|
|
103
|
+
return list.value.some(item => item.fullPath === fullPath);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* 添加收藏夹项
|
|
108
|
+
* @param {RouteLocationNormalized} route - 路由对象
|
|
109
|
+
*/
|
|
110
|
+
function add(route: RouteLocationNormalized) {
|
|
111
|
+
const meta = route.matched.at(-1)?.meta;
|
|
112
|
+
if (!list.value.find(item => item.fullPath === route.fullPath)) {
|
|
113
|
+
list.value.push({
|
|
114
|
+
fullPath: route.fullPath,
|
|
115
|
+
title: meta?.title,
|
|
116
|
+
icon: meta?.icon ?? meta?.breadcrumbNeste?.findLast(item => item.icon)?.icon,
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* 从收藏夹中移除一个项目。
|
|
123
|
+
* @param fullPath 要移除的项目的完整路径。
|
|
124
|
+
*/
|
|
125
|
+
function remove(fullPath: Favorites.recordRaw['fullPath']) {
|
|
126
|
+
list.value = list.value.filter((item) => {
|
|
127
|
+
return item.fullPath !== fullPath;
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* 将列表中的项目从旧索引移动到新索引,以对项目进行排序。
|
|
133
|
+
* @param newIndex - 应将项目移动到的新索引。
|
|
134
|
+
* @param oldIndex - 应移动的项目的旧索引。
|
|
135
|
+
*/
|
|
136
|
+
function sort(newIndex: number, oldIndex: number) {
|
|
137
|
+
list.value.splice(newIndex, 0, list.value.splice(oldIndex, 1)[0]);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
return {
|
|
141
|
+
list,
|
|
142
|
+
canAdd,
|
|
143
|
+
isAdd,
|
|
144
|
+
add,
|
|
145
|
+
remove,
|
|
146
|
+
sort,
|
|
147
|
+
};
|
|
148
|
+
},
|
|
149
|
+
);
|
|
150
|
+
|
|
151
|
+
export default useFavoritesStore;
|
|
152
|
+
export type FavoritesStore = ReturnType<typeof useFavoritesStore>;
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import type { Iframe } from '#/iframe';
|
|
2
|
+
import type { RouteRecordNormalized } from 'vue-router';
|
|
3
|
+
import { isFunction, isString } from 'lodash-es';
|
|
4
|
+
import { defineStore } from 'pinia';
|
|
5
|
+
import { STORE_NAME } from '../enum';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* useIframeStore 是一个自定义的 Vue 组合函数,提供了用于管理 store 中 iframe 的响应式状态和方法。
|
|
9
|
+
* 它返回一个包含以下属性和方法的对象:
|
|
10
|
+
* - isGenerate: 一个 ref,表示 iframe 列表是否已生成。
|
|
11
|
+
* - openedList: 一个计算属性,返回当前打开的 iframe 的过滤列表。
|
|
12
|
+
* - generateList: 一个根据提供的路由配置生成 iframe 列表的方法。
|
|
13
|
+
* - closeLoading: 一个关闭特定 iframe 的加载状态的方法。
|
|
14
|
+
* - open: 一个打开特定 iframe 并更新最近路径列表的方法。
|
|
15
|
+
* - close: 一个关闭一个或多个 iframe 并从最近路径列表中移除它们的方法。
|
|
16
|
+
*/
|
|
17
|
+
const useIframeStore = defineStore(
|
|
18
|
+
STORE_NAME.IFRAME,
|
|
19
|
+
() => {
|
|
20
|
+
const isGenerate = ref(false);
|
|
21
|
+
const list = ref<Iframe.recordRaw[]>([]);
|
|
22
|
+
const recentPathList = ref<Iframe.recordRaw['path'][]>([]);
|
|
23
|
+
const openedList = computed(() => list.value.filter(item => item.isOpen));
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* 生成列表
|
|
27
|
+
* @param router 路由记录数组
|
|
28
|
+
*/
|
|
29
|
+
async function generateList(router: RouteRecordNormalized[], user: any) {
|
|
30
|
+
for (const routeRecord of router) {
|
|
31
|
+
if (routeRecord.meta.iframe && !routeRecord.meta.link) {
|
|
32
|
+
if (isFunction(routeRecord.meta.iframe)) {
|
|
33
|
+
routeRecord.meta.iframe = await routeRecord.meta.iframe(toRaw(user));
|
|
34
|
+
}
|
|
35
|
+
list.value.push({
|
|
36
|
+
path: routeRecord.path,
|
|
37
|
+
src: routeRecord.meta.iframe,
|
|
38
|
+
isOpen: false,
|
|
39
|
+
isLoading: true,
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
isGenerate.value = true;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* 关闭指定路径的iframe加载状态。
|
|
49
|
+
* @param path - iframe的路径。
|
|
50
|
+
*/
|
|
51
|
+
function closeLoading(path: string) {
|
|
52
|
+
const index = list.value.findIndex(item => item.path === path);
|
|
53
|
+
list.value[index].isLoading = !~index;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* 打开指定路径的 iframe
|
|
58
|
+
* @param path 要打开的路径
|
|
59
|
+
*/
|
|
60
|
+
function open(path: string) {
|
|
61
|
+
const item = list.value.find(item => item.path === path);
|
|
62
|
+
if (item) {
|
|
63
|
+
item.isOpen = true;
|
|
64
|
+
const idx = recentPathList.value.findIndex(item => item === path);
|
|
65
|
+
if (~idx) {
|
|
66
|
+
recentPathList.value.splice(0, 0, recentPathList.value[idx]);
|
|
67
|
+
recentPathList.value.splice(idx);
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
recentPathList.value.unshift(path);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* 关闭指定路径的 iframe 路由。
|
|
77
|
+
* 如果路径是一个字符串,则关闭单个 iframe 路由。
|
|
78
|
+
* 如果路径是一个字符串数组,则关闭多个 iframe 路由。
|
|
79
|
+
* @param path 要关闭的 iframe 路由的路径(路径)。
|
|
80
|
+
* @param destroy 是否真正销毁 iframe(true: 从 openedList 移除;false: 仅标记为非激活保留 DOM)
|
|
81
|
+
*/
|
|
82
|
+
function close(path: string | string[], destroy = false) {
|
|
83
|
+
function closeIframeRoute(path: string | string[]) {
|
|
84
|
+
const idx = list.value.findIndex(item => item.path === path);
|
|
85
|
+
if (~idx) {
|
|
86
|
+
if (destroy) {
|
|
87
|
+
// 真正销毁:从 openedList 移除,下次进入会重新创建
|
|
88
|
+
list.value[idx].isOpen = false;
|
|
89
|
+
list.value[idx].isLoading = true;
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
// 仅标记非激活:保留 isOpen=true,通过 v-show 隐藏,保持 DOM 实例
|
|
93
|
+
// 不修改 isOpen 状态,让 iframe 继续存在于 openedList
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
// 无论是否销毁,都从最近访问列表中移除
|
|
97
|
+
recentPathList.value = recentPathList.value.filter(item => item !== path);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
if (isString(path)) {
|
|
101
|
+
closeIframeRoute(path);
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
path.forEach(closeIframeRoute);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
function clean() {
|
|
109
|
+
list.value = [];
|
|
110
|
+
isGenerate.value = false;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
return {
|
|
114
|
+
isGenerate,
|
|
115
|
+
openedList,
|
|
116
|
+
generateList,
|
|
117
|
+
closeLoading,
|
|
118
|
+
open,
|
|
119
|
+
close,
|
|
120
|
+
clean,
|
|
121
|
+
|
|
122
|
+
// 提供给sideEffect插件
|
|
123
|
+
recentPathList,
|
|
124
|
+
list,
|
|
125
|
+
};
|
|
126
|
+
},
|
|
127
|
+
);
|
|
128
|
+
|
|
129
|
+
export default useIframeStore;
|
|
130
|
+
export type IframeStore = ReturnType<typeof useIframeStore>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { default as useFavoritesStore } from './favorites';
|
|
2
|
+
export * from './favorites';
|
|
3
|
+
export { default as useIframeStore } from './iframe';
|
|
4
|
+
export * from './iframe';
|
|
5
|
+
export { default as useKeepAliveStore } from './keepAlive';
|
|
6
|
+
export * from './keepAlive';
|
|
7
|
+
export { default as useMenuStore } from './menu';
|
|
8
|
+
export * from './menu';
|
|
9
|
+
export { default as useRouteStore } from './route';
|
|
10
|
+
export * from './route';
|
|
11
|
+
export { default as useSettingsStore } from './settings';
|
|
12
|
+
export * from './settings';
|
|
13
|
+
export { default as useTabbarStore } from './tabbar';
|
|
14
|
+
export * from './tabbar';
|
|
15
|
+
export { default as useUserStore } from './user';
|
|
16
|
+
export * from './user';
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { isArray, isString } from 'lodash-es';
|
|
2
|
+
import { defineStore } from 'pinia';
|
|
3
|
+
import { useWarn } from '@/features/composables';
|
|
4
|
+
import { STORE_NAME } from '../enum';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* 创建一个用于管理 keep-alive 组件的存储对象。
|
|
8
|
+
*
|
|
9
|
+
* @returns keep-alive 存储对象。
|
|
10
|
+
*/
|
|
11
|
+
const useKeepAliveStore = defineStore(
|
|
12
|
+
STORE_NAME.KEEP_ALIVE,
|
|
13
|
+
() => {
|
|
14
|
+
const list = ref<string[]>([]);
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* 添加要缓存的组件名称到列表中
|
|
18
|
+
* @param name - 要添加的组件名称,可以是字符串或字符串数组
|
|
19
|
+
* @returns 如果成功添加了组件名称,则返回true;否则返回false
|
|
20
|
+
*/
|
|
21
|
+
function add(name: string | string[]) {
|
|
22
|
+
if (isString(name)) {
|
|
23
|
+
return !list.value.includes(name) && list.value.push(name);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
if (isArray(name)) {
|
|
27
|
+
name.forEach(_name => add(_name));
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
useWarn(`KeepAlive 需要接受一个字符串或者字符串数组作为参数, 但是接受到了 ${typeof name} 类型`);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* 从需要保持活动状态的组件列表中移除指定的组件名称。
|
|
36
|
+
*
|
|
37
|
+
* @param name - 要移除的组件名称或名称数组。
|
|
38
|
+
*/
|
|
39
|
+
function remove(name: string | string[]) {
|
|
40
|
+
if (isString(name)) {
|
|
41
|
+
list.value = list.value.filter(v => v !== name);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
if (isArray(name)) {
|
|
45
|
+
list.value = list.value.filter(v => !name.includes(v));
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* 清空列表
|
|
51
|
+
*/
|
|
52
|
+
function clean() {
|
|
53
|
+
list.value = [];
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return {
|
|
57
|
+
list,
|
|
58
|
+
add,
|
|
59
|
+
remove,
|
|
60
|
+
clean,
|
|
61
|
+
};
|
|
62
|
+
},
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
export default useKeepAliveStore;
|
|
66
|
+
export type KeepAliveStore = ReturnType<typeof useKeepAliveStore>;
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import type { Menu } from '#/menu';
|
|
2
|
+
|
|
3
|
+
import { computedAsync } from '@vueuse/core';
|
|
4
|
+
import { get, isNumber } from 'lodash-es';
|
|
5
|
+
import { match } from 'path-to-regexp';
|
|
6
|
+
import { defineStore } from 'pinia';
|
|
7
|
+
import { callHookAsync } from '@/core/ctx';
|
|
8
|
+
import { useWarn } from '@/features/composables';
|
|
9
|
+
import { resolveRoutePath } from '@/utils';
|
|
10
|
+
import { STORE_NAME } from '../enum';
|
|
11
|
+
import useRouteStore from './route';
|
|
12
|
+
import useSettingsStore from './settings';
|
|
13
|
+
|
|
14
|
+
export type MenuData = Menu.recordMainRaw;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* 用于管理与菜单相关数据的自定义存储。
|
|
18
|
+
*
|
|
19
|
+
* @returns 包含与菜单相关的各种计算属性和函数的对象。
|
|
20
|
+
*/
|
|
21
|
+
const useMenuStore = defineStore(
|
|
22
|
+
STORE_NAME.MENU,
|
|
23
|
+
() => {
|
|
24
|
+
const settingsStore = useSettingsStore();
|
|
25
|
+
const routeStore = useRouteStore();
|
|
26
|
+
const menus = ref<MenuData[]>([{
|
|
27
|
+
meta: {},
|
|
28
|
+
children: [],
|
|
29
|
+
}]);
|
|
30
|
+
const actived = ref(0);
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* 通过根据基本路径解析菜单项的相对路径,将其转换为完整路径
|
|
34
|
+
* @param menu - 要转换的菜单数组。
|
|
35
|
+
* @param path - 用于解析相对路径的基本路径。默认为空字符串。
|
|
36
|
+
* @returns 具有转换后的完整路径的菜单数组。
|
|
37
|
+
* @example
|
|
38
|
+
* // Example usage:
|
|
39
|
+
* const menu = [
|
|
40
|
+
* { path: 'home', title: 'Home' },
|
|
41
|
+
* { path: 'about', title: 'About' },
|
|
42
|
+
* ];
|
|
43
|
+
* const basePath = '/app';
|
|
44
|
+
* const convertedMenu = convertToFullPath(menu, basePath);
|
|
45
|
+
* console.log(convertedMenu);
|
|
46
|
+
* // Output:
|
|
47
|
+
* // [
|
|
48
|
+
* // { path: '/app/home', title: 'Home' },
|
|
49
|
+
* // { path: '/app/about', title: 'About' },
|
|
50
|
+
* // ]
|
|
51
|
+
*/
|
|
52
|
+
function convertToFullPath(menu: any[] = [], path: string = '') {
|
|
53
|
+
return menu.map((item) => {
|
|
54
|
+
item.path = resolveRoutePath(path, item.path);
|
|
55
|
+
if (item.children) {
|
|
56
|
+
item.children = convertToFullPath(item.children, item.path);
|
|
57
|
+
}
|
|
58
|
+
return item;
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* 获取所有菜单项
|
|
64
|
+
* @returns 所有菜单项的数组
|
|
65
|
+
*/
|
|
66
|
+
const allMenus = computedAsync<MenuData[]>(
|
|
67
|
+
async () => {
|
|
68
|
+
let returnMenus: MenuData[] = [{
|
|
69
|
+
meta: {},
|
|
70
|
+
children: [],
|
|
71
|
+
}];
|
|
72
|
+
|
|
73
|
+
if (settingsStore.settings.menu.menuMode === 'single') {
|
|
74
|
+
returnMenus[0].children = [];
|
|
75
|
+
routeStore.routes.forEach((item) => {
|
|
76
|
+
if (!get(item, 'meta.isDev', false)) {
|
|
77
|
+
returnMenus[0].children?.push(...item.children as Menu.recordRaw[]);
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
useWarn(`侧边栏模式(不含主导航)下省略${item.meta.title}的子集菜单,因为该菜单开启了isDev属性。`);
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
returnMenus = routeStore.routes as MenuData[];
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
returnMenus.forEach(item => convertToFullPath(item.children));
|
|
89
|
+
|
|
90
|
+
return await callHookAsync<MenuData[]>('menu:transform', returnMenus);
|
|
91
|
+
},
|
|
92
|
+
[],
|
|
93
|
+
);
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* 侧边栏菜单的计算属性。
|
|
97
|
+
* @returns {MenuData['children']} 当前活动菜单的子菜单,如果没有菜单则返回空数组。
|
|
98
|
+
*/
|
|
99
|
+
const sidebarMenus = computed<MenuData['children']>(() => {
|
|
100
|
+
// 过滤 meta.isDev 为 true 的应用
|
|
101
|
+
const filteredAllMenus = allMenus.value.filter(item => !get(item, 'meta.isDev', false));
|
|
102
|
+
|
|
103
|
+
if (filteredAllMenus.length === 0) {
|
|
104
|
+
return [];
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
while (true) {
|
|
108
|
+
const menu = allMenus.value[actived.value];
|
|
109
|
+
|
|
110
|
+
if (actived.value >= allMenus.value.length - 1) {
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// 有子菜单且不为开发中的应用
|
|
115
|
+
if (menu.children.length > 0 && !get(menu, 'meta.isDev', false)) {
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
actived.value++;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
return allMenus.value[actived.value].children ?? [];
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* 返回第一个侧边栏菜单的最深路径的计算属性。
|
|
127
|
+
*
|
|
128
|
+
* @returns {string} 第一个侧边栏菜单的最深路径,如果没有侧边栏菜单则返回'/'。
|
|
129
|
+
*/
|
|
130
|
+
const sidebarMenusFirstDeepestPath = computed(() => {
|
|
131
|
+
return sidebarMenus.value.length > 0
|
|
132
|
+
? getDeepestPath(sidebarMenus.value[0])
|
|
133
|
+
: '/';
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* 获取最深层级的路径
|
|
138
|
+
* @param menu 菜单对象
|
|
139
|
+
* @param rootPath 根路径
|
|
140
|
+
* @returns 最深层级的路径
|
|
141
|
+
*/
|
|
142
|
+
function getDeepestPath(menu: Menu.recordRaw, rootPath = '') {
|
|
143
|
+
let retnPath = '';
|
|
144
|
+
if (menu.children && menu.children.length > 0) {
|
|
145
|
+
// CLOSE: 优化菜单查找逻辑,优先找到可显示在侧边栏的菜单
|
|
146
|
+
const item = menu.children.find(item => item.meta?.sidebar !== false);
|
|
147
|
+
if (item) {
|
|
148
|
+
retnPath = getDeepestPath(item, resolveRoutePath(rootPath, menu.path));
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
// TODO: 如果没有找到可显示的菜单,检查是否所有子菜单都被隐藏
|
|
152
|
+
const hasVisibleChildren = menu.children.some(child =>
|
|
153
|
+
child.meta?.sidebar !== false || (child.children && child.children.length > 0),
|
|
154
|
+
);
|
|
155
|
+
|
|
156
|
+
if (hasVisibleChildren) {
|
|
157
|
+
retnPath = getDeepestPath(menu.children[0], resolveRoutePath(rootPath, menu.path));
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
// FIX-ME: 目录下没有可显示的菜单时,返回当前路径或默认路径
|
|
161
|
+
useWarn(`目录"${menu.meta?.title || menu.path}"下没有可显示的菜单项`);
|
|
162
|
+
retnPath = resolveRoutePath(rootPath, menu.path);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
else {
|
|
167
|
+
retnPath = resolveRoutePath(rootPath, menu.path);
|
|
168
|
+
}
|
|
169
|
+
return retnPath;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* 默认打开的路径计算属性。
|
|
174
|
+
* @returns 一个字符串数组,表示默认打开的路径。
|
|
175
|
+
*/
|
|
176
|
+
const defaultOpenedPaths = computed(() => {
|
|
177
|
+
const defaultOpenedPaths: string[] = [];
|
|
178
|
+
|
|
179
|
+
allMenus.value.forEach((item) => {
|
|
180
|
+
defaultOpenedPaths.push(...getDefaultOpenedPaths(item.children));
|
|
181
|
+
});
|
|
182
|
+
|
|
183
|
+
return defaultOpenedPaths;
|
|
184
|
+
});
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* 获取默认展开的路径数组
|
|
188
|
+
* @param menus 菜单数据
|
|
189
|
+
* @param rootPath 根路径
|
|
190
|
+
* @returns 默认展开的路径数组
|
|
191
|
+
*/
|
|
192
|
+
function getDefaultOpenedPaths(menus: Menu.recordRaw[] = [], rootPath = '') {
|
|
193
|
+
const defaultOpenedPaths: string[] = [];
|
|
194
|
+
menus.forEach((item) => {
|
|
195
|
+
if (item.meta?.defaultOpened && item.children) {
|
|
196
|
+
defaultOpenedPaths.push(resolveRoutePath(rootPath, item.path));
|
|
197
|
+
const childrenDefaultOpenedPaths = getDefaultOpenedPaths(item.children, resolveRoutePath(rootPath, item.path));
|
|
198
|
+
if (childrenDefaultOpenedPaths.length > 0) {
|
|
199
|
+
defaultOpenedPaths.push(...childrenDefaultOpenedPaths);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
return defaultOpenedPaths;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* 设置活动项
|
|
208
|
+
* @param data - 活动项的索引或路由
|
|
209
|
+
*/
|
|
210
|
+
function setActived(data: number | string) {
|
|
211
|
+
if (isNumber(data)) {
|
|
212
|
+
// 如果是 number 类型,则认为是主导航的索引
|
|
213
|
+
actived.value = data;
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
// 如果是 string 类型,则认为是路由,需要查找对应的主导航索引
|
|
217
|
+
const findIndex = findRootIndexByPath(allMenus.value, data);
|
|
218
|
+
if (findIndex >= 0) {
|
|
219
|
+
actived.value = findIndex;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* 根据路径查找主导航索引
|
|
226
|
+
*/
|
|
227
|
+
function findRootIndexByPath(routes: Menu.recordRaw[], targetPath: string) {
|
|
228
|
+
function containsPath(route: Menu.recordRaw): boolean {
|
|
229
|
+
const matcher = match(route.path ?? '', { decode: decodeURIComponent });
|
|
230
|
+
if (matcher(targetPath)) {
|
|
231
|
+
return true;
|
|
232
|
+
}
|
|
233
|
+
if (route.children) {
|
|
234
|
+
return route.children.some(child => containsPath(child));
|
|
235
|
+
}
|
|
236
|
+
return false;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
for (let i = 0; i < routes.length; i++) {
|
|
240
|
+
if (containsPath(routes[i])) {
|
|
241
|
+
return i;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
return 0;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
return {
|
|
249
|
+
menus,
|
|
250
|
+
actived,
|
|
251
|
+
allMenus,
|
|
252
|
+
sidebarMenus,
|
|
253
|
+
sidebarMenusFirstDeepestPath,
|
|
254
|
+
defaultOpenedPaths,
|
|
255
|
+
setActived,
|
|
256
|
+
};
|
|
257
|
+
},
|
|
258
|
+
);
|
|
259
|
+
|
|
260
|
+
export default useMenuStore;
|
|
261
|
+
export type MenuStore = ReturnType<typeof useMenuStore>;
|