@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,206 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { MenuInjection, MenuProps } from './types';
|
|
3
|
+
import type { PartyLoginConfig } from '@/features/components/PartyLogin/type';
|
|
4
|
+
import { message } from 'ant-design-vue';
|
|
5
|
+
import { usePartyLogin } from '@/features/composables/partyLogin';
|
|
6
|
+
import Item from './item.vue';
|
|
7
|
+
import SubMenu from './sub.vue';
|
|
8
|
+
import { rootMenuInjectionKey } from './types';
|
|
9
|
+
|
|
10
|
+
defineOptions({
|
|
11
|
+
name: 'MainMenu',
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
const props = withDefaults(
|
|
15
|
+
defineProps<MenuProps>(),
|
|
16
|
+
{
|
|
17
|
+
accordion: true,
|
|
18
|
+
defaultOpeneds: () => [],
|
|
19
|
+
mode: 'vertical',
|
|
20
|
+
collapse: false,
|
|
21
|
+
showCollapseName: false,
|
|
22
|
+
rounded: false,
|
|
23
|
+
},
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
const router = useRouter();
|
|
27
|
+
|
|
28
|
+
const activeIndex = ref<MenuInjection['activeIndex']>(props.value);
|
|
29
|
+
const items = ref<MenuInjection['items']>({});
|
|
30
|
+
const subMenus = ref<MenuInjection['subMenus']>({});
|
|
31
|
+
const openedMenus = ref<MenuInjection['openedMenus']>(props.defaultOpeneds.slice(0));
|
|
32
|
+
const mouseInMenu = ref<MenuInjection['mouseInMenu']>([]);
|
|
33
|
+
const isMenuPopup = computed<MenuInjection['isMenuPopup']>(() => {
|
|
34
|
+
return props.mode === 'horizontal' || (props.mode === 'vertical' && props.collapse);
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
// 解析传入的 menu 数据,并保存到 items 和 subMenus 对象中
|
|
38
|
+
function initItems(menu: MenuProps['menu'] = [], parentPaths: string[] = []) {
|
|
39
|
+
menu.forEach((item) => {
|
|
40
|
+
const index = item.path ?? JSON.stringify(item);
|
|
41
|
+
if (item.children && item.children.length > 0) {
|
|
42
|
+
const indexPath = [...parentPaths, index];
|
|
43
|
+
subMenus.value[index] = {
|
|
44
|
+
index,
|
|
45
|
+
indexPath,
|
|
46
|
+
active: false,
|
|
47
|
+
};
|
|
48
|
+
initItems(item.children, indexPath);
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
items.value[index] = {
|
|
52
|
+
index,
|
|
53
|
+
indexPath: parentPaths,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const openMenu: MenuInjection['openMenu'] = (index, indexPath) => {
|
|
60
|
+
if (openedMenus.value.includes(index)) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
if (props.accordion) {
|
|
64
|
+
openedMenus.value = openedMenus.value.filter(key => indexPath.includes(key));
|
|
65
|
+
}
|
|
66
|
+
openedMenus.value.push(index);
|
|
67
|
+
};
|
|
68
|
+
const closeMenu: MenuInjection['closeMenu'] = (index) => {
|
|
69
|
+
if (Array.isArray(index)) {
|
|
70
|
+
nextTick(() => {
|
|
71
|
+
closeMenu(index.at(-1)!);
|
|
72
|
+
if (index.length > 1) {
|
|
73
|
+
closeMenu(index.slice(0, -1));
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
Object.keys(subMenus.value).forEach((item) => {
|
|
79
|
+
if (subMenus.value[item].indexPath.includes(index)) {
|
|
80
|
+
openedMenus.value = openedMenus.value.filter(item => item !== index);
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
function setSubMenusActive(index: string) {
|
|
86
|
+
Object.keys(subMenus.value).forEach((index) => {
|
|
87
|
+
subMenus.value[index].active = false;
|
|
88
|
+
});
|
|
89
|
+
items.value[index]?.indexPath.forEach((index) => {
|
|
90
|
+
subMenus.value[index].active = true;
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
const handleMenuItemClick: MenuInjection['handleMenuItemClick'] = async (index, meta) => {
|
|
95
|
+
if (meta?.isDev) {
|
|
96
|
+
message.info('暂未上线,敬请期待!');
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
if (props.mode === 'horizontal' || props.collapse) {
|
|
100
|
+
openedMenus.value = [];
|
|
101
|
+
}
|
|
102
|
+
setSubMenusActive(index);
|
|
103
|
+
if (meta?.link) {
|
|
104
|
+
// todo 在这里处理外部链接
|
|
105
|
+
const partyLogin = meta?.partyLogin as PartyLoginConfig | undefined;
|
|
106
|
+
if (partyLogin && Array.isArray(partyLogin) && partyLogin.length > 0) {
|
|
107
|
+
const { url } = await usePartyLogin(partyLogin, meta.link);
|
|
108
|
+
window.open(url.value);
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
window.open(meta.link);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
router.push(index);
|
|
117
|
+
};
|
|
118
|
+
const handleSubMenuClick: MenuInjection['handleSubMenuClick'] = (index, indexPath) => {
|
|
119
|
+
if (openedMenus.value.includes(index)) {
|
|
120
|
+
closeMenu(index);
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
openMenu(index, indexPath);
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
function initMenu() {
|
|
128
|
+
const activeItem = activeIndex.value && items.value[activeIndex.value];
|
|
129
|
+
setSubMenusActive(activeIndex.value);
|
|
130
|
+
if (!activeItem || props.collapse) {
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
// 展开该菜单项的路径上所有子菜单
|
|
134
|
+
activeItem.indexPath.forEach((index) => {
|
|
135
|
+
const subMenu = subMenus.value[index];
|
|
136
|
+
if (subMenu) {
|
|
137
|
+
openMenu(index, subMenu.indexPath);
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
watch(() => props.menu, (val) => {
|
|
143
|
+
initItems(val);
|
|
144
|
+
initMenu();
|
|
145
|
+
}, {
|
|
146
|
+
deep: true,
|
|
147
|
+
immediate: true,
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
watch(() => props.value, (currentValue) => {
|
|
151
|
+
if (!items.value[currentValue]) {
|
|
152
|
+
activeIndex.value = '';
|
|
153
|
+
}
|
|
154
|
+
const item = items.value[currentValue] || (activeIndex.value && items.value[activeIndex.value]) || items.value[props.value];
|
|
155
|
+
if (item) {
|
|
156
|
+
activeIndex.value = item.index;
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
activeIndex.value = currentValue;
|
|
160
|
+
}
|
|
161
|
+
initMenu();
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
watch(() => props.collapse, (value) => {
|
|
165
|
+
if (value) {
|
|
166
|
+
openedMenus.value = [];
|
|
167
|
+
}
|
|
168
|
+
initMenu();
|
|
169
|
+
});
|
|
170
|
+
|
|
171
|
+
provide(rootMenuInjectionKey, reactive({
|
|
172
|
+
props,
|
|
173
|
+
items,
|
|
174
|
+
subMenus,
|
|
175
|
+
activeIndex,
|
|
176
|
+
openedMenus,
|
|
177
|
+
mouseInMenu,
|
|
178
|
+
isMenuPopup,
|
|
179
|
+
openMenu,
|
|
180
|
+
closeMenu,
|
|
181
|
+
handleMenuItemClick,
|
|
182
|
+
handleSubMenuClick,
|
|
183
|
+
}));
|
|
184
|
+
</script>
|
|
185
|
+
|
|
186
|
+
<template>
|
|
187
|
+
<div
|
|
188
|
+
class="flex flex-col of-hidden transition-all"
|
|
189
|
+
:class="{
|
|
190
|
+
'w-[200px]': !isMenuPopup && props.mode === 'vertical',
|
|
191
|
+
'w-[64px]': isMenuPopup && props.mode === 'vertical',
|
|
192
|
+
'h-[80px]': props.mode === 'horizontal',
|
|
193
|
+
'flex-row! w-auto': isMenuPopup && props.mode === 'horizontal',
|
|
194
|
+
}"
|
|
195
|
+
>
|
|
196
|
+
<template v-for="(item, index) in menu" :key="index">
|
|
197
|
+
<SubMenu v-if="item.children?.length && item.meta?.sidebar !== false" :menu="item" :unique-key="[item.path ?? JSON.stringify(item)]" />
|
|
198
|
+
<Item
|
|
199
|
+
v-else-if="item.meta?.sidebar !== false"
|
|
200
|
+
:item="item"
|
|
201
|
+
:unique-key="[item.path ?? JSON.stringify(item)]"
|
|
202
|
+
@click="handleMenuItemClick(item.path ?? JSON.stringify(item), item.meta)"
|
|
203
|
+
/>
|
|
204
|
+
</template>
|
|
205
|
+
</div>
|
|
206
|
+
</template>
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { SubMenuItemProps } from './types';
|
|
3
|
+
import { PubinfoIcon } from '@/features/components';
|
|
4
|
+
import { useContext } from '../../composables/useContext';
|
|
5
|
+
import { rootMenuInjectionKey } from './types';
|
|
6
|
+
|
|
7
|
+
defineOptions({
|
|
8
|
+
name: 'MenuItem',
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
const props = withDefaults(
|
|
12
|
+
defineProps<SubMenuItemProps>(),
|
|
13
|
+
{
|
|
14
|
+
level: 0,
|
|
15
|
+
subMenu: false,
|
|
16
|
+
expand: false,
|
|
17
|
+
},
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
const rootMenu = inject(rootMenuInjectionKey)!;
|
|
21
|
+
const { generateTitle } = useContext();
|
|
22
|
+
|
|
23
|
+
const itemRef = ref<HTMLElement>();
|
|
24
|
+
|
|
25
|
+
const isActived = computed(() => {
|
|
26
|
+
return props.subMenu
|
|
27
|
+
? rootMenu.subMenus[props.uniqueKey[props.uniqueKey.length - 1]]?.active
|
|
28
|
+
: rootMenu.activeIndex === props.uniqueKey[props.uniqueKey.length - 1];
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
const isItemActive = computed(() => {
|
|
32
|
+
return isActived.value && (!props.subMenu || rootMenu.isMenuPopup);
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
const icon = computed(() => {
|
|
36
|
+
let icon;
|
|
37
|
+
if (props.item.meta?.icon) {
|
|
38
|
+
icon = props.item.meta.icon;
|
|
39
|
+
}
|
|
40
|
+
if (isActived.value) {
|
|
41
|
+
if (props.item.meta?.activeIcon === 'system-point') {
|
|
42
|
+
icon = 'system-point';
|
|
43
|
+
}
|
|
44
|
+
else if (props.item.meta?.activeIcon) {
|
|
45
|
+
icon = props.item.meta.activeIcon;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return icon;
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
// 读取菜单条目的 iconOptions(后端可能未定义,使用 any 安全读取)
|
|
52
|
+
const iconOptions = computed(() => ((props.item.meta as any)?.iconOptions) as undefined | {
|
|
53
|
+
boxType?: 'square' | 'prism' | 'null'
|
|
54
|
+
angle?: number | string
|
|
55
|
+
background?: any
|
|
56
|
+
radius?: number | string
|
|
57
|
+
iconSize?: number | string
|
|
58
|
+
iconColor?: string
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
// 统一盒子类型:仅当显式为 square/prism 时启用盒子
|
|
62
|
+
const computedBoxType = computed<'square' | 'prism' | undefined>(() => {
|
|
63
|
+
const bt = iconOptions.value?.boxType;
|
|
64
|
+
return bt && bt !== 'null' ? bt : undefined;
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
// 统一安全的图标颜色(仅 AntD 图标使用);无配置则为 undefined
|
|
68
|
+
const safeIconColor = computed<string | undefined>(() => iconOptions.value?.iconColor || undefined);
|
|
69
|
+
|
|
70
|
+
// 缩进样式
|
|
71
|
+
const indentStyle = computed(() => {
|
|
72
|
+
return !rootMenu.isMenuPopup
|
|
73
|
+
? `padding-left: ${32 * (props.level ?? 0)}px`
|
|
74
|
+
: '';
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
defineExpose({
|
|
78
|
+
ref: itemRef,
|
|
79
|
+
});
|
|
80
|
+
</script>
|
|
81
|
+
|
|
82
|
+
<template>
|
|
83
|
+
<div
|
|
84
|
+
ref="itemRef"
|
|
85
|
+
class="menu-item relative transition-all"
|
|
86
|
+
:class="{
|
|
87
|
+
'active': isItemActive,
|
|
88
|
+
'px-2 py-1': rootMenu.props.rounded,
|
|
89
|
+
'px-1! py-2!': rootMenu.props.rounded && rootMenu.isMenuPopup && level === 0 && rootMenu.props.mode === 'horizontal',
|
|
90
|
+
}"
|
|
91
|
+
>
|
|
92
|
+
<div
|
|
93
|
+
class="group menu-item-container h-full w-full flex cursor-pointer items-center justify-between gap-1 px-5 py-14px text-[var(--g-sub-sidebar-menu-color)] transition-all hover:(bg-[var(--g-sub-sidebar-menu-hover-bg)] text-[var(--g-sub-sidebar-menu-hover-color)])"
|
|
94
|
+
:class="{
|
|
95
|
+
'text-[var(--g-sub-sidebar-menu-active-color)]! bg-[var(--g-sub-sidebar-menu-active-bg)]!': isItemActive,
|
|
96
|
+
'rounded-2': rootMenu.props.rounded,
|
|
97
|
+
'px-2!': rootMenu.isMenuPopup && level === 0,
|
|
98
|
+
'py-3!': rootMenu.props.rounded && rootMenu.isMenuPopup && level !== 0,
|
|
99
|
+
}"
|
|
100
|
+
:title="generateTitle(item.meta?.title)"
|
|
101
|
+
>
|
|
102
|
+
<div
|
|
103
|
+
class="menu-item-container-layout inline-flex flex-1 items-center justify-center gap-[12px]"
|
|
104
|
+
:class="{
|
|
105
|
+
'flex-col gap-none': rootMenu.isMenuPopup && level === 0,
|
|
106
|
+
'flex-col gap-[2px]!': rootMenu.isMenuPopup && level === 0 && rootMenu.props.showCollapseName,
|
|
107
|
+
'w-full': rootMenu.isMenuPopup && level === 0 && rootMenu.props.showCollapseName && rootMenu.props.mode === 'vertical',
|
|
108
|
+
'w-[50px]': rootMenu.isMenuPopup && level === 0 && rootMenu.props.showCollapseName && rootMenu.props.mode === 'horizontal',
|
|
109
|
+
}"
|
|
110
|
+
:style="indentStyle"
|
|
111
|
+
>
|
|
112
|
+
<!-- 特殊化处理,有些时候想要的是一个点 -->
|
|
113
|
+
<template v-if="icon && icon !== 'system-point'">
|
|
114
|
+
<!-- 有 iconOptions 时启用带边框/渐变的盒子效果 -->
|
|
115
|
+
<PubinfoIcon
|
|
116
|
+
v-if="iconOptions && computedBoxType"
|
|
117
|
+
small
|
|
118
|
+
:name="icon"
|
|
119
|
+
:box="computedBoxType!"
|
|
120
|
+
:size="20"
|
|
121
|
+
:icon-size="iconOptions?.iconSize"
|
|
122
|
+
:angle="iconOptions?.angle"
|
|
123
|
+
:background="iconOptions?.background"
|
|
124
|
+
:radius="iconOptions?.radius"
|
|
125
|
+
:color="(icon || '').startsWith('antd:') ? (safeIconColor || '#ffffff') : undefined"
|
|
126
|
+
class="menu-item-container-icon transition-transform group-hover:scale-115"
|
|
127
|
+
/>
|
|
128
|
+
<!-- 无 iconOptions 时保持原样(纯图标),但若提供图标色也生效 -->
|
|
129
|
+
<PubinfoIcon
|
|
130
|
+
v-else
|
|
131
|
+
:name="icon"
|
|
132
|
+
:size="20"
|
|
133
|
+
:color="(icon || '').startsWith('antd:') ? safeIconColor : undefined"
|
|
134
|
+
class="menu-item-container-icon transition-transform group-hover:scale-115"
|
|
135
|
+
/>
|
|
136
|
+
</template>
|
|
137
|
+
<span
|
|
138
|
+
v-if="!(rootMenu.isMenuPopup && level === 0 && !rootMenu.props.showCollapseName)"
|
|
139
|
+
class="title w-0 flex-1 truncate text-sm transition-height transition-opacity transition-width"
|
|
140
|
+
:class="{
|
|
141
|
+
'opacity-0 w-0 h-0': rootMenu.isMenuPopup && level === 0 && !rootMenu.props.showCollapseName,
|
|
142
|
+
'w-full text-center': rootMenu.isMenuPopup && level === 0 && rootMenu.props.showCollapseName,
|
|
143
|
+
'system-point': icon === 'system-point' && isItemActive,
|
|
144
|
+
}"
|
|
145
|
+
>
|
|
146
|
+
{{ generateTitle(item.meta?.title) }}
|
|
147
|
+
</span>
|
|
148
|
+
<HBadge
|
|
149
|
+
v-if="item.meta?.badge"
|
|
150
|
+
:value="typeof item.meta.badge === 'function' ? item.meta.badge() : item.meta.badge"
|
|
151
|
+
class="badge"
|
|
152
|
+
:class="{
|
|
153
|
+
'opacity-0': rootMenu.isMenuPopup && level === 0,
|
|
154
|
+
}"
|
|
155
|
+
/>
|
|
156
|
+
</div>
|
|
157
|
+
<i
|
|
158
|
+
v-if="subMenu && !(rootMenu.isMenuPopup && level === 0)"
|
|
159
|
+
class="sharp-corner"
|
|
160
|
+
:class="[
|
|
161
|
+
expand
|
|
162
|
+
? 'before:-rotate-45 before:-translate-x-[2px] after:rotate-45 after:translate-x-[2px]'
|
|
163
|
+
: 'before:rotate-45 before:-translate-x-[2px] after:-rotate-45 after:translate-x-[2px] ',
|
|
164
|
+
rootMenu.isMenuPopup && level === 0 && 'opacity-0',
|
|
165
|
+
rootMenu.isMenuPopup && level !== 0 && '-rotate-90 -top-[1.5px]',
|
|
166
|
+
]"
|
|
167
|
+
/>
|
|
168
|
+
</div>
|
|
169
|
+
</div>
|
|
170
|
+
</template>
|
|
171
|
+
|
|
172
|
+
<style scoped>
|
|
173
|
+
.badge :deep(> span) {
|
|
174
|
+
--at-apply: right-0;
|
|
175
|
+
left: initial !important;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.sharp-corner {
|
|
179
|
+
--at-apply: relative ml-1 w-[10px];
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.sharp-corner::before {
|
|
183
|
+
--at-apply: absolute h-1.5px w-[6px] bg-current transition-transform-200 content-empty -translate-y-[1px];
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.sharp-corner::after {
|
|
187
|
+
--at-apply: absolute h-1.5px w-[6px] bg-current transition-transform-200 content-empty -translate-y-[1px];
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.sub-sidebar-container .menu-item-container-layout:has(.system-point) {
|
|
191
|
+
--at-apply: relative;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.sub-sidebar-container .menu-item-container-layout:has(.system-point)::before {
|
|
195
|
+
--at-apply: absolute w-1.5 h-1.5 content-empty rounded-[50%] left-3;
|
|
196
|
+
background: var(--g-sub-sidebar-menu-active-color);
|
|
197
|
+
}
|
|
198
|
+
</style>
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { OverlayScrollbarsComponentRef } from 'overlayscrollbars-vue';
|
|
3
|
+
import type { SubMenuProps } from './types';
|
|
4
|
+
import { useTimeoutFn } from '@vueuse/core';
|
|
5
|
+
import { OverlayScrollbarsComponent } from 'overlayscrollbars-vue';
|
|
6
|
+
import Item from './item.vue';
|
|
7
|
+
import { rootMenuInjectionKey } from './types';
|
|
8
|
+
|
|
9
|
+
defineOptions({
|
|
10
|
+
name: 'SubMenu',
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
const props = withDefaults(
|
|
14
|
+
defineProps<SubMenuProps>(),
|
|
15
|
+
{
|
|
16
|
+
level: 0,
|
|
17
|
+
},
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
const index = props.menu.path ?? JSON.stringify(props.menu);
|
|
21
|
+
const itemRef = shallowRef();
|
|
22
|
+
const subMenuRef = shallowRef<OverlayScrollbarsComponentRef>();
|
|
23
|
+
const rootMenu = inject(rootMenuInjectionKey)!;
|
|
24
|
+
|
|
25
|
+
const opened = computed(() => {
|
|
26
|
+
return rootMenu.openedMenus.includes(props.uniqueKey[props.uniqueKey.length - 1]);
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
const transitionEvent = computed(() => {
|
|
30
|
+
return rootMenu.isMenuPopup
|
|
31
|
+
? {
|
|
32
|
+
enter(el: HTMLElement) {
|
|
33
|
+
if (el.offsetHeight > window.innerHeight) {
|
|
34
|
+
el.style.height = `${window.innerHeight}px`;
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
afterEnter: () => {},
|
|
38
|
+
beforeLeave: (el: HTMLElement) => {
|
|
39
|
+
el.style.overflow = 'hidden';
|
|
40
|
+
el.style.maxHeight = `${el.offsetHeight}px`;
|
|
41
|
+
},
|
|
42
|
+
leave: (el: HTMLElement) => {
|
|
43
|
+
el.style.maxHeight = '0';
|
|
44
|
+
},
|
|
45
|
+
afterLeave(el: HTMLElement) {
|
|
46
|
+
el.style.overflow = '';
|
|
47
|
+
el.style.maxHeight = '';
|
|
48
|
+
},
|
|
49
|
+
}
|
|
50
|
+
: {
|
|
51
|
+
enter(el: HTMLElement) {
|
|
52
|
+
const memorizedHeight = el.offsetHeight;
|
|
53
|
+
el.style.maxHeight = '0';
|
|
54
|
+
el.style.overflow = 'hidden';
|
|
55
|
+
void el.offsetHeight;
|
|
56
|
+
el.style.maxHeight = `${memorizedHeight}px`;
|
|
57
|
+
},
|
|
58
|
+
afterEnter(el: HTMLElement) {
|
|
59
|
+
el.style.overflow = '';
|
|
60
|
+
el.style.maxHeight = '';
|
|
61
|
+
},
|
|
62
|
+
beforeLeave(el: HTMLElement) {
|
|
63
|
+
el.style.overflow = 'hidden';
|
|
64
|
+
el.style.maxHeight = `${el.offsetHeight}px`;
|
|
65
|
+
},
|
|
66
|
+
leave(el: HTMLElement) {
|
|
67
|
+
el.style.maxHeight = '0';
|
|
68
|
+
},
|
|
69
|
+
afterLeave(el: HTMLElement) {
|
|
70
|
+
el.style.overflow = '';
|
|
71
|
+
el.style.maxHeight = '';
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
const transitionClass = computed(() => {
|
|
77
|
+
return rootMenu.isMenuPopup
|
|
78
|
+
? {
|
|
79
|
+
enterActiveClass: 'ease-in-out duration-300',
|
|
80
|
+
enterFromClass: 'opacity-0 translate-x-4',
|
|
81
|
+
enterToClass: 'opacity-100',
|
|
82
|
+
leaveActiveClass: 'ease-in-out duration-300',
|
|
83
|
+
leaveFromClass: 'opacity-100',
|
|
84
|
+
leaveToClass: 'opacity-0',
|
|
85
|
+
}
|
|
86
|
+
: {
|
|
87
|
+
enterActiveClass: 'ease-in-out duration-300',
|
|
88
|
+
enterFromClass: 'opacity-0',
|
|
89
|
+
enterToClass: 'opacity-100',
|
|
90
|
+
leaveActiveClass: 'ease-in-out duration-300',
|
|
91
|
+
leaveFromClass: 'opacity-100',
|
|
92
|
+
leaveToClass: 'opacity-0',
|
|
93
|
+
};
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
const hasChildren = computed(() => {
|
|
97
|
+
let flag = true;
|
|
98
|
+
if (props.menu.children) {
|
|
99
|
+
if (props.menu.children.every((item: any) => item.meta?.sidebar === false)) {
|
|
100
|
+
flag = false;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
flag = false;
|
|
105
|
+
}
|
|
106
|
+
return flag;
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
function handleClick() {
|
|
110
|
+
if (rootMenu.isMenuPopup && hasChildren.value) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
if (hasChildren.value) {
|
|
114
|
+
rootMenu.handleSubMenuClick(index, props.uniqueKey);
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
rootMenu.handleMenuItemClick(index, props.menu.meta);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
let timeout: (() => void) | undefined;
|
|
122
|
+
|
|
123
|
+
function handleMouseenter() {
|
|
124
|
+
if (!rootMenu.isMenuPopup) {
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
rootMenu.mouseInMenu = props.uniqueKey;
|
|
128
|
+
timeout?.()
|
|
129
|
+
;({ stop: timeout } = useTimeoutFn(() => {
|
|
130
|
+
if (hasChildren.value) {
|
|
131
|
+
rootMenu.openMenu(index, props.uniqueKey);
|
|
132
|
+
nextTick(() => {
|
|
133
|
+
const el = itemRef.value.ref;
|
|
134
|
+
let top = 0;
|
|
135
|
+
let left = 0;
|
|
136
|
+
if (rootMenu.props.mode === 'vertical' || props.level !== 0) {
|
|
137
|
+
top = el.getBoundingClientRect().top + el.scrollTop;
|
|
138
|
+
left = el.getBoundingClientRect().left + el.getBoundingClientRect().width;
|
|
139
|
+
if (top + subMenuRef.value!.getElement()!.offsetHeight > window.innerHeight) {
|
|
140
|
+
top = window.innerHeight - subMenuRef.value!.getElement()!.offsetHeight;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
else {
|
|
144
|
+
top = el.getBoundingClientRect().top + el.getBoundingClientRect().height;
|
|
145
|
+
left = el.getBoundingClientRect().left;
|
|
146
|
+
if (top + subMenuRef.value!.getElement()!.offsetHeight > window.innerHeight) {
|
|
147
|
+
subMenuRef.value!.getElement()!.style.height = `${window.innerHeight - top}px`;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
subMenuRef.value!.getElement()!.style.top = `${top}px`;
|
|
151
|
+
subMenuRef.value!.getElement()!.style.left = `${left}px`;
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
const path = props.menu.children ? rootMenu.subMenus[index].indexPath.at(-1)! : rootMenu.items[index].indexPath.at(-1)!;
|
|
156
|
+
rootMenu.openMenu(path, rootMenu.subMenus[path].indexPath);
|
|
157
|
+
}
|
|
158
|
+
}, 300));
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
function handleMouseleave() {
|
|
162
|
+
if (!rootMenu.isMenuPopup) {
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
rootMenu.mouseInMenu = [];
|
|
166
|
+
timeout?.()
|
|
167
|
+
;({ stop: timeout } = useTimeoutFn(() => {
|
|
168
|
+
if (rootMenu.mouseInMenu.length === 0) {
|
|
169
|
+
rootMenu.closeMenu(props.uniqueKey);
|
|
170
|
+
}
|
|
171
|
+
else {
|
|
172
|
+
if (hasChildren.value) {
|
|
173
|
+
if (!rootMenu.mouseInMenu.includes(props.uniqueKey.at(-1)!)) {
|
|
174
|
+
rootMenu.closeMenu(props.uniqueKey.at(-1)!);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}, 300));
|
|
179
|
+
}
|
|
180
|
+
</script>
|
|
181
|
+
|
|
182
|
+
<template>
|
|
183
|
+
<Item
|
|
184
|
+
ref="itemRef"
|
|
185
|
+
:unique-key="uniqueKey"
|
|
186
|
+
:item="menu"
|
|
187
|
+
:level="level"
|
|
188
|
+
:sub-menu="hasChildren"
|
|
189
|
+
:expand="opened"
|
|
190
|
+
@click="handleClick"
|
|
191
|
+
@mouseenter="handleMouseenter"
|
|
192
|
+
@mouseleave="handleMouseleave"
|
|
193
|
+
/>
|
|
194
|
+
<Teleport v-if="hasChildren" to="body" :disabled="!rootMenu.isMenuPopup">
|
|
195
|
+
<Transition v-bind="transitionClass" v-on="transitionEvent">
|
|
196
|
+
<OverlayScrollbarsComponent
|
|
197
|
+
v-if="opened"
|
|
198
|
+
ref="subMenuRef"
|
|
199
|
+
:options="{ scrollbars: { visibility: 'hidden' } }"
|
|
200
|
+
defer
|
|
201
|
+
class="sub-menu"
|
|
202
|
+
:class="{
|
|
203
|
+
'bg-[var(--g-sub-sidebar-bg)]': rootMenu.isMenuPopup,
|
|
204
|
+
'ring-1 ring-stone-2 dark:ring-stone-8 shadow-xl fixed z-3000 w-[200px]': rootMenu.isMenuPopup,
|
|
205
|
+
'mx-2': rootMenu.isMenuPopup && (rootMenu.props.mode === 'vertical' || level !== 0),
|
|
206
|
+
'rounded-2 py-1': rootMenu.props.rounded && rootMenu.isMenuPopup,
|
|
207
|
+
}"
|
|
208
|
+
>
|
|
209
|
+
<template v-for="item in menu.children" :key="item.path ?? JSON.stringify(item)">
|
|
210
|
+
<SubMenu
|
|
211
|
+
v-if="item.meta?.sidebar !== false"
|
|
212
|
+
:unique-key="[...uniqueKey, item.path ?? JSON.stringify(item)]"
|
|
213
|
+
:menu="item"
|
|
214
|
+
:level="level + 1"
|
|
215
|
+
/>
|
|
216
|
+
</template>
|
|
217
|
+
</OverlayScrollbarsComponent>
|
|
218
|
+
</Transition>
|
|
219
|
+
</Teleport>
|
|
220
|
+
</template>
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { Menu } from '#/menu';
|
|
2
|
+
import { createInjectionKey } from '../../utils';
|
|
3
|
+
|
|
4
|
+
export interface MenuItem {
|
|
5
|
+
index: string
|
|
6
|
+
indexPath: string[]
|
|
7
|
+
active?: boolean
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface MenuProps {
|
|
11
|
+
menu: Menu.recordRaw[]
|
|
12
|
+
value: string
|
|
13
|
+
accordion?: boolean
|
|
14
|
+
defaultOpeneds?: string[]
|
|
15
|
+
mode?: 'horizontal' | 'vertical'
|
|
16
|
+
collapse?: boolean
|
|
17
|
+
showCollapseName?: boolean
|
|
18
|
+
rounded?: boolean
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface MenuInjection {
|
|
22
|
+
props: MenuProps
|
|
23
|
+
items: Record<string, MenuItem>
|
|
24
|
+
subMenus: Record<string, MenuItem>
|
|
25
|
+
activeIndex: MenuProps['value']
|
|
26
|
+
openedMenus: string[]
|
|
27
|
+
mouseInMenu: string[]
|
|
28
|
+
isMenuPopup: boolean
|
|
29
|
+
openMenu: (index: string, indexPath: string[]) => void
|
|
30
|
+
closeMenu: (index: string | string[]) => void
|
|
31
|
+
handleMenuItemClick: (index: string, meta?: Menu.recordRaw['meta']) => void
|
|
32
|
+
handleSubMenuClick: (index: string, indexPath: string[]) => void
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export const rootMenuInjectionKey = createInjectionKey<MenuInjection>('rootMenu');
|
|
36
|
+
|
|
37
|
+
export interface SubMenuProps {
|
|
38
|
+
uniqueKey: string[]
|
|
39
|
+
menu: Menu.recordRaw
|
|
40
|
+
level?: number
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface SubMenuItemProps {
|
|
44
|
+
uniqueKey: string[]
|
|
45
|
+
item: Menu.recordRaw
|
|
46
|
+
level?: number
|
|
47
|
+
subMenu?: boolean
|
|
48
|
+
expand?: boolean
|
|
49
|
+
}
|