@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,203 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { onBeforeUnmount, onMounted, ref } from 'vue';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* PrismBox(六边形容器)
|
|
6
|
+
*
|
|
7
|
+
* 目标:
|
|
8
|
+
* - 默认使用纯 CSS clip-path 生成六边形
|
|
9
|
+
* - 当检测到 CSS 变量 `--pubinfo-box-radius` > 0 且容器为“像素正方形”时,
|
|
10
|
+
* 通过运行时按需生成圆角六边形 SVG mask(mask-image / -webkit-mask-image),
|
|
11
|
+
* 兼容浏览器差异,保持与 SquareBox 一致的主题变量接口。
|
|
12
|
+
*
|
|
13
|
+
* 注:圆角六边形目前纯 CSS 难以稳定跨浏览器实现(clip-path 不支持圆角),
|
|
14
|
+
* 因此采用极薄的运行时以 CSS 变量为输入生成 mask;未满足条件时退回纯 CSS 六边形。
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
const el = ref<HTMLElement | null>(null);
|
|
18
|
+
let ro: ResizeObserver | null = null;
|
|
19
|
+
let mo: MutationObserver | null = null;
|
|
20
|
+
let pending = false;
|
|
21
|
+
|
|
22
|
+
function scheduleApply() {
|
|
23
|
+
if (pending) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
pending = true;
|
|
27
|
+
requestAnimationFrame(() => {
|
|
28
|
+
pending = false;
|
|
29
|
+
applyMask();
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function parsePx(input: string | null | undefined): number | null {
|
|
34
|
+
if (!input) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
const n = Number.parseFloat(input);
|
|
38
|
+
return Number.isFinite(n) ? n : null;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function genRoundedHexMask(size: number, rPx: number): string | null {
|
|
42
|
+
if (!(size > 0 && rPx > 0)) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
const maxR = size * 0.35;
|
|
46
|
+
const R = Math.min(rPx, maxR);
|
|
47
|
+
const rp = (R / size) * 100;
|
|
48
|
+
// 移除衰减系数以提高圆角的可见度
|
|
49
|
+
const pts = [
|
|
50
|
+
{ x: 50, y: 0 },
|
|
51
|
+
{ x: 93, y: 25 },
|
|
52
|
+
{ x: 93, y: 75 },
|
|
53
|
+
{ x: 50, y: 100 },
|
|
54
|
+
{ x: 7, y: 75 },
|
|
55
|
+
{ x: 7, y: 25 },
|
|
56
|
+
];
|
|
57
|
+
const normEdge = 43;
|
|
58
|
+
const t = Math.min(rp / normEdge, 0.5);
|
|
59
|
+
const lerp = (a: any, b: any, tt: number) => ({ x: a.x + (b.x - a.x) * tt, y: a.y + (b.y - a.y) * tt });
|
|
60
|
+
const before: any[] = [];
|
|
61
|
+
const after: any[] = [];
|
|
62
|
+
for (let i = 0; i < pts.length; i++) {
|
|
63
|
+
const p = pts[i];
|
|
64
|
+
const pPrev = pts[(i - 1 + pts.length) % pts.length];
|
|
65
|
+
const pNext = pts[(i + 1) % pts.length];
|
|
66
|
+
before.push(lerp(p, pPrev, t));
|
|
67
|
+
after.push(lerp(p, pNext, t));
|
|
68
|
+
}
|
|
69
|
+
let d = `M ${after[0].x} ${after[0].y}`;
|
|
70
|
+
for (let i = 1; i < pts.length; i++) {
|
|
71
|
+
d += ` L ${before[i].x} ${before[i].y} Q ${pts[i].x} ${pts[i].y} ${after[i].x} ${after[i].y}`;
|
|
72
|
+
}
|
|
73
|
+
d += ` L ${before[0].x} ${before[0].y} Q ${pts[0].x} ${pts[0].y} ${after[0].x} ${after[0].y} Z`;
|
|
74
|
+
const svg = `<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path fill='white' d='${d}'/></svg>`;
|
|
75
|
+
const encoded = encodeURIComponent(svg).replace(/'/g, '%27').replace(/"/g, '%22');
|
|
76
|
+
return `url("data:image/svg+xml,${encoded}")`;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function applyMask() {
|
|
80
|
+
const node = el.value;
|
|
81
|
+
if (!node) {
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
const cs = window.getComputedStyle(node);
|
|
85
|
+
|
|
86
|
+
const w = parsePx(cs.width);
|
|
87
|
+
const h = parsePx(cs.height);
|
|
88
|
+
// 允许通过 CSS 变量传递 px 值(推荐 px),非 px 或缺省将视作 0
|
|
89
|
+
const rVar = cs.getPropertyValue('--pubinfo-box-radius').trim();
|
|
90
|
+
let rPx: number = 0;
|
|
91
|
+
if (rVar) {
|
|
92
|
+
const numeric = parsePx(rVar);
|
|
93
|
+
rPx = numeric ?? (rVar.endsWith('px') ? parsePx(rVar) ?? 0 : 0);
|
|
94
|
+
}
|
|
95
|
+
// 变量取不到时,回退解析 border-radius 的左上角值(px)
|
|
96
|
+
if (!rPx) {
|
|
97
|
+
const br = cs.borderTopLeftRadius || cs.borderRadius;
|
|
98
|
+
const brNum = parsePx(br);
|
|
99
|
+
if (brNum) {
|
|
100
|
+
rPx = brNum;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// 宽高可解析且 r>0 时启用圆角 mask(非正方形也允许,形状会按元素比例拉伸)
|
|
105
|
+
if (w && h && rPx > 0) {
|
|
106
|
+
const size = Math.min(w, h);
|
|
107
|
+
const maskUrl = genRoundedHexMask(size, rPx);
|
|
108
|
+
if (maskUrl) {
|
|
109
|
+
const supportsMask = typeof CSS !== 'undefined' && (
|
|
110
|
+
CSS.supports('mask-image', 'url("data:image/svg+xml,%3Csvg%3E%3C/svg%3E")')
|
|
111
|
+
|| CSS.supports('-webkit-mask-image', 'url("data:image/svg+xml,%3Csvg%3E%3C/svg%3E")')
|
|
112
|
+
);
|
|
113
|
+
node.style.webkitMaskImage = maskUrl as any;
|
|
114
|
+
node.style.maskImage = maskUrl as any;
|
|
115
|
+
node.style.webkitMaskRepeat = 'no-repeat';
|
|
116
|
+
node.style.maskRepeat = 'no-repeat';
|
|
117
|
+
node.style.webkitMaskSize = '100% 100%';
|
|
118
|
+
node.style.maskSize = '100% 100%';
|
|
119
|
+
node.style.webkitMaskPosition = 'center';
|
|
120
|
+
node.style.maskPosition = 'center';
|
|
121
|
+
if (supportsMask) {
|
|
122
|
+
// 移除 clip-path,避免其直角边缘覆盖圆角效果
|
|
123
|
+
node.style.clipPath = 'none';
|
|
124
|
+
(node.style as any).webkitClipPath = 'none';
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
// 不支持 mask 时回退 clip-path 六边形
|
|
128
|
+
node.style.clipPath = 'polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%)';
|
|
129
|
+
(node.style as any).webkitClipPath = 'polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%)';
|
|
130
|
+
}
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
// 回退:去掉 mask,仅使用 clip-path 六边形
|
|
135
|
+
node.style.webkitMaskImage = '';
|
|
136
|
+
node.style.maskImage = '';
|
|
137
|
+
node.style.webkitMaskRepeat = '';
|
|
138
|
+
node.style.maskRepeat = '';
|
|
139
|
+
node.style.webkitMaskSize = '';
|
|
140
|
+
node.style.maskSize = '';
|
|
141
|
+
node.style.webkitMaskPosition = '';
|
|
142
|
+
node.style.maskPosition = '';
|
|
143
|
+
node.style.clipPath = 'polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%)';
|
|
144
|
+
(node.style as any).webkitClipPath = 'polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%)';
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
onMounted(() => {
|
|
148
|
+
applyMask();
|
|
149
|
+
ro = new ResizeObserver(() => applyMask());
|
|
150
|
+
if (el.value) {
|
|
151
|
+
ro.observe(el.value);
|
|
152
|
+
}
|
|
153
|
+
// 监听自身与文档根节点的样式/类变化,以捕获 CSS 变量或主题切换
|
|
154
|
+
mo = new MutationObserver(() => scheduleApply());
|
|
155
|
+
if (el.value) {
|
|
156
|
+
mo.observe(el.value, { attributes: true, attributeFilter: ['style', 'class'] });
|
|
157
|
+
}
|
|
158
|
+
mo.observe(document.documentElement, { attributes: true, attributeFilter: ['class', 'style'], subtree: true });
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
onBeforeUnmount(() => {
|
|
162
|
+
if (ro && el.value) {
|
|
163
|
+
ro.unobserve(el.value);
|
|
164
|
+
}
|
|
165
|
+
ro = null;
|
|
166
|
+
if (mo) {
|
|
167
|
+
mo.disconnect();
|
|
168
|
+
}
|
|
169
|
+
mo = null;
|
|
170
|
+
});
|
|
171
|
+
</script>
|
|
172
|
+
|
|
173
|
+
<template>
|
|
174
|
+
<div ref="el" class="prism-box">
|
|
175
|
+
<slot />
|
|
176
|
+
</div>
|
|
177
|
+
</template>
|
|
178
|
+
|
|
179
|
+
<style scoped>
|
|
180
|
+
.prism-box {
|
|
181
|
+
display: inline-flex;
|
|
182
|
+
align-items: center;
|
|
183
|
+
justify-content: center;
|
|
184
|
+
box-sizing: border-box;
|
|
185
|
+
overflow: hidden;
|
|
186
|
+
line-height: 1;
|
|
187
|
+
vertical-align: top;
|
|
188
|
+
width: var(--pubinfo-box-size, auto);
|
|
189
|
+
height: var(--pubinfo-box-size, auto);
|
|
190
|
+
border-radius: var(--pubinfo-box-radius) !important;
|
|
191
|
+
background: var(
|
|
192
|
+
--pubinfo-box-full-background,
|
|
193
|
+
linear-gradient(
|
|
194
|
+
var(--pubinfo-box-angle, 65deg),
|
|
195
|
+
var(--pubinfo-box-gradient-from, var(--pubinfo-box-background, #65E54A)),
|
|
196
|
+
var(--pubinfo-box-gradient-to, var(--pubinfo-box-background, #35C724))
|
|
197
|
+
)
|
|
198
|
+
);
|
|
199
|
+
/* 纯 CSS 六边形裁剪 */
|
|
200
|
+
-webkit-clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
|
|
201
|
+
clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
|
|
202
|
+
}
|
|
203
|
+
</style>
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* SquareBox
|
|
4
|
+
* 语义:图标 / 徽记 / 占位的方形或矩形“载体”容器。
|
|
5
|
+
*
|
|
6
|
+
* 设计目标:
|
|
7
|
+
* - 统一图标背景、圆角、渐变、尺寸计算逻辑(与 PrismBox 等保持一致)
|
|
8
|
+
* - 使用 <div> 而不是 <svg>,可直接放置任意 HTML / SVG / 组件
|
|
9
|
+
*
|
|
10
|
+
* 尺寸策略:
|
|
11
|
+
* - width / height / size 三种方式;size 作为宽高同步值
|
|
12
|
+
* - full=true 填充父容器(忽略 width/height/size)
|
|
13
|
+
* - 仅在固定 px 宽高时暴露:--square-inner-size / --box-inner-size = width - padding*2
|
|
14
|
+
*
|
|
15
|
+
* 圆角策略:
|
|
16
|
+
* - radius 支持 数字 | 纯数字字符串 | 其他合法 CSS 长度/百分比
|
|
17
|
+
* - 未传或空串 => 默认 6px;传 0 获得直角
|
|
18
|
+
* - 暴露 CSS 变量:--box-radius 便于主题覆写
|
|
19
|
+
*
|
|
20
|
+
* 背景策略:
|
|
21
|
+
* - 优先使用 props.background
|
|
22
|
+
* - 否则生成线性渐变:gradientFrom -> gradientTo
|
|
23
|
+
*
|
|
24
|
+
* 可访问性:
|
|
25
|
+
* - 不附带 role/aria-*,由使用方按内容语义自行添加
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
<template>
|
|
31
|
+
<div class="square-box">
|
|
32
|
+
<slot />
|
|
33
|
+
</div>
|
|
34
|
+
</template>
|
|
35
|
+
|
|
36
|
+
<style scoped>
|
|
37
|
+
.square-box {
|
|
38
|
+
display: inline-flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
box-sizing: border-box;
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
line-height: 1;
|
|
44
|
+
vertical-align: top;
|
|
45
|
+
border-radius: var(--pubinfo-box-radius) !important;
|
|
46
|
+
/*
|
|
47
|
+
Allow a complete background override via CSS var when provided,
|
|
48
|
+
otherwise fall back to previous linear gradient behavior.
|
|
49
|
+
*/
|
|
50
|
+
background: var(
|
|
51
|
+
--pubinfo-box-full-background,
|
|
52
|
+
linear-gradient(
|
|
53
|
+
var(--pubinfo-box-angle, 65deg),
|
|
54
|
+
var(--pubinfo-box-gradient-from, var(--pubinfo-box-background, #65E54A)),
|
|
55
|
+
var(--pubinfo-box-gradient-to, var(--pubinfo-box-background, #35C724))
|
|
56
|
+
)
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
</style>
|
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { PubinfoIconOptions } from './props';
|
|
3
|
+
import * as AntdIcons from '@ant-design/icons-vue';
|
|
4
|
+
import { Icon } from '@iconify/vue';
|
|
5
|
+
import { shallowRef, watch } from 'vue';
|
|
6
|
+
import { getCachedIcon, setCachedIcon, setupIcon } from '@/core';
|
|
7
|
+
import { useProvider } from '../PubinfoProvider';
|
|
8
|
+
import PrismBox from './PrismBox.vue';
|
|
9
|
+
import SquareBox from './SquareBox.vue';
|
|
10
|
+
|
|
11
|
+
defineOptions({
|
|
12
|
+
name: 'PubinfoIcon',
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
const props = withDefaults(defineProps<PubinfoIconOptions>(), {
|
|
16
|
+
size: '1rem',
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
const { loadIcon } = useProvider();
|
|
20
|
+
|
|
21
|
+
const outputType = computed<'svg' | 'css' | 'antd' | 'custom'>(() => {
|
|
22
|
+
if (props.name.indexOf('i-') === 0) {
|
|
23
|
+
return props.async ? 'svg' : 'css';
|
|
24
|
+
}
|
|
25
|
+
else if (props.name.includes(':') && !props.name.startsWith('antd:')) {
|
|
26
|
+
return 'svg';
|
|
27
|
+
}
|
|
28
|
+
else if (props.name.startsWith('antd:')) {
|
|
29
|
+
return 'antd';
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
return 'custom';
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
const outputName = computed(() => {
|
|
37
|
+
if (props.name.indexOf('i-') === 0) {
|
|
38
|
+
let conversionName = props.name;
|
|
39
|
+
if (props.async) {
|
|
40
|
+
conversionName = conversionName.replace('i-', '');
|
|
41
|
+
}
|
|
42
|
+
return conversionName;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
if (props.name.startsWith('antd:')) {
|
|
46
|
+
return props.name.replace('antd:', '');
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return props.name;
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
const isBox = computed<'square' | 'prism' | 'null'>(() => {
|
|
53
|
+
if (props.box === undefined) {
|
|
54
|
+
return 'null';
|
|
55
|
+
}
|
|
56
|
+
else if (['square', 'prism'].includes(props.box)) {
|
|
57
|
+
return props.box;
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
return 'null';
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
const element = computed(() => {
|
|
65
|
+
if (isBox.value === 'square') {
|
|
66
|
+
return SquareBox;
|
|
67
|
+
}
|
|
68
|
+
else if (isBox.value === 'prism') {
|
|
69
|
+
return PrismBox;
|
|
70
|
+
}
|
|
71
|
+
return 'i';
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
const icon = shallowRef<string | undefined>(undefined);
|
|
75
|
+
|
|
76
|
+
function getIconLookupMeta(rawName: string) {
|
|
77
|
+
const parsed = parseString(rawName);
|
|
78
|
+
const fileName = `${parsed.name}${parsed.ext || '.svg'}`;
|
|
79
|
+
const moduleId = parsed.prefix || undefined;
|
|
80
|
+
return { fileName, moduleId } as const;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function resolveCachedIcon(fileName: string, moduleId?: string) {
|
|
84
|
+
return getCachedIcon(fileName, moduleId) ?? getCachedIcon(fileName, undefined);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
function primeIconFromCache() {
|
|
88
|
+
if (outputType.value !== 'custom') {
|
|
89
|
+
icon.value = undefined;
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
const { fileName, moduleId } = getIconLookupMeta(props.name);
|
|
94
|
+
const cached = resolveCachedIcon(fileName, moduleId);
|
|
95
|
+
if (cached) {
|
|
96
|
+
icon.value = cached;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
primeIconFromCache();
|
|
101
|
+
|
|
102
|
+
watch(
|
|
103
|
+
() => ({ name: props.name, type: outputType.value }),
|
|
104
|
+
async ({ name, type }, _, onCleanup) => {
|
|
105
|
+
if (type !== 'custom') {
|
|
106
|
+
icon.value = undefined;
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
const { fileName, moduleId } = getIconLookupMeta(name);
|
|
111
|
+
|
|
112
|
+
const cached = resolveCachedIcon(fileName, moduleId);
|
|
113
|
+
if (cached) {
|
|
114
|
+
icon.value = cached;
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
let cancelled = false;
|
|
119
|
+
onCleanup(() => {
|
|
120
|
+
cancelled = true;
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
try {
|
|
124
|
+
const resolvedFromProvider = await loadIcon?.(name);
|
|
125
|
+
if (!cancelled && resolvedFromProvider) {
|
|
126
|
+
icon.value = resolvedFromProvider;
|
|
127
|
+
setCachedIcon(fileName, moduleId, resolvedFromProvider);
|
|
128
|
+
if (moduleId) {
|
|
129
|
+
setCachedIcon(fileName, undefined, resolvedFromProvider);
|
|
130
|
+
}
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
catch (error) {
|
|
135
|
+
if (import.meta.env.DEV) {
|
|
136
|
+
console.warn('[PUBINFO] loadIcon failed:', error);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
try {
|
|
141
|
+
const resolved = await setupIcon(fileName, moduleId);
|
|
142
|
+
if (cancelled) {
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
if (resolved) {
|
|
146
|
+
icon.value = resolved;
|
|
147
|
+
setCachedIcon(fileName, moduleId, resolved);
|
|
148
|
+
if (moduleId) {
|
|
149
|
+
setCachedIcon(fileName, undefined, resolved);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
catch (error) {
|
|
154
|
+
if (import.meta.env.DEV) {
|
|
155
|
+
console.warn('[PUBINFO] setupIcon failed:', error);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
{ immediate: true, flush: 'sync' },
|
|
160
|
+
);
|
|
161
|
+
|
|
162
|
+
interface Parsed {
|
|
163
|
+
prefix: string
|
|
164
|
+
name: string
|
|
165
|
+
ext: string
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
function parseString(str: string): Parsed {
|
|
169
|
+
let prefix = '';
|
|
170
|
+
let name = '';
|
|
171
|
+
let ext = '';
|
|
172
|
+
|
|
173
|
+
// 匹配 RBAC-[org.svg] 或 RBAC-[org]
|
|
174
|
+
const match = str.match(/^([^-\s]+)-\[(.+)\]$/);
|
|
175
|
+
|
|
176
|
+
if (match) {
|
|
177
|
+
prefix = match[1];
|
|
178
|
+
const inner = match[2];
|
|
179
|
+
|
|
180
|
+
const dotIdx = inner.lastIndexOf('.');
|
|
181
|
+
if (dotIdx !== -1) {
|
|
182
|
+
name = inner.slice(0, dotIdx);
|
|
183
|
+
ext = inner.slice(dotIdx);
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
name = inner;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
else {
|
|
190
|
+
// 如果没有前缀格式,就当普通文件处理
|
|
191
|
+
const dotIdx = str.lastIndexOf('.');
|
|
192
|
+
if (dotIdx !== -1) {
|
|
193
|
+
name = str.slice(0, dotIdx);
|
|
194
|
+
ext = str.slice(dotIdx);
|
|
195
|
+
}
|
|
196
|
+
else {
|
|
197
|
+
name = str;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
return { prefix, name, ext };
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
const style = computed(() => {
|
|
205
|
+
const transform: string[] = [];
|
|
206
|
+
if (props.flip) {
|
|
207
|
+
switch (props.flip) {
|
|
208
|
+
case 'horizontal':
|
|
209
|
+
transform.push('rotateY(180deg)');
|
|
210
|
+
break;
|
|
211
|
+
case 'vertical':
|
|
212
|
+
transform.push('rotateX(180deg)');
|
|
213
|
+
break;
|
|
214
|
+
case 'both':
|
|
215
|
+
transform.push('rotateX(180deg)');
|
|
216
|
+
transform.push('rotateY(180deg)');
|
|
217
|
+
break;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
if (props.rotate) {
|
|
221
|
+
transform.push(`rotate(${props.rotate % 360}deg)`);
|
|
222
|
+
}
|
|
223
|
+
const result: Record<string, string> = {
|
|
224
|
+
'--pubinfo-icon-color': '',
|
|
225
|
+
'--pubinfo-icon-size': '',
|
|
226
|
+
'--pubinfo-icon-transform': '',
|
|
227
|
+
};
|
|
228
|
+
if (props.color) {
|
|
229
|
+
result['--pubinfo-icon-color'] = props.color;
|
|
230
|
+
}
|
|
231
|
+
if (props.size) {
|
|
232
|
+
result['--pubinfo-icon-size'] = typeof props.size === 'number' ? `${props.size}px` : props.size;
|
|
233
|
+
}
|
|
234
|
+
if (transform.length) {
|
|
235
|
+
result['--pubinfo-icon-transform'] = transform.join(' ');
|
|
236
|
+
}
|
|
237
|
+
// 让内联元素在同一行内进行顶部对齐,避免默认 baseline 导致的视觉不齐
|
|
238
|
+
result.verticalAlign = 'top';
|
|
239
|
+
return result;
|
|
240
|
+
});
|
|
241
|
+
|
|
242
|
+
const bind = computed(() => {
|
|
243
|
+
if (isBox.value !== 'null') {
|
|
244
|
+
const result: Record<
|
|
245
|
+
'--pubinfo-box-background' | '--pubinfo-box-size' | '--pubinfo-box-radius' | '--pubinfo-box-gradient-from' | '--pubinfo-box-gradient-to' | '--pubinfo-box-angle' | '--pubinfo-box-full-background' | '--pubinfo-box-icon-size',
|
|
246
|
+
string> = {
|
|
247
|
+
'--pubinfo-box-background': '',
|
|
248
|
+
'--pubinfo-box-size': '',
|
|
249
|
+
'--pubinfo-box-radius': '',
|
|
250
|
+
'--pubinfo-box-gradient-from': '',
|
|
251
|
+
'--pubinfo-box-gradient-to': '',
|
|
252
|
+
'--pubinfo-box-angle': '',
|
|
253
|
+
'--pubinfo-box-full-background': '',
|
|
254
|
+
'--pubinfo-box-icon-size': '',
|
|
255
|
+
};
|
|
256
|
+
if (typeof props.angle === 'string') {
|
|
257
|
+
result['--pubinfo-box-angle'] = props.angle;
|
|
258
|
+
}
|
|
259
|
+
else {
|
|
260
|
+
result['--pubinfo-box-angle'] = `${props.angle || 65}deg`;
|
|
261
|
+
}
|
|
262
|
+
if (typeof props.background === 'string') {
|
|
263
|
+
// provide full override for any CSS background value (color or gradient)
|
|
264
|
+
result['--pubinfo-box-full-background'] = props.background;
|
|
265
|
+
// keep legacy variable for solid color fallback use-cases
|
|
266
|
+
result['--pubinfo-box-background'] = props.background;
|
|
267
|
+
}
|
|
268
|
+
else {
|
|
269
|
+
result['--pubinfo-box-gradient-from'] = props.background?.from || '#65E54A';
|
|
270
|
+
result['--pubinfo-box-gradient-to'] = props.background?.to || '#35C724';
|
|
271
|
+
}
|
|
272
|
+
result['--pubinfo-box-radius'] = props.radius !== undefined
|
|
273
|
+
? (typeof props.radius === 'number' ? `${props.small ? props.radius / 2 : props.radius}px` : props.small ? `${props.radius}` : props.radius)
|
|
274
|
+
: (props.box === 'prism' ? `${props.small ? '3px' : '6px'}` : `${props.small ? '7px' : '14px'}`);
|
|
275
|
+
if (props.size) {
|
|
276
|
+
result['--pubinfo-box-size'] = typeof props.size === 'number' ? `${props.size}px` : props.size;
|
|
277
|
+
}
|
|
278
|
+
// iconSize: 支持百分比或任意 CSS 长度;number 视为百分比
|
|
279
|
+
const iconSizeProp = (props as any).iconSize as number | string | undefined;
|
|
280
|
+
if (iconSizeProp !== undefined) {
|
|
281
|
+
if (typeof iconSizeProp === 'number' && Number.isFinite(iconSizeProp)) {
|
|
282
|
+
// 数字:视为百分比,直接生成 calc(px) 表达式(相对 box 尺寸)
|
|
283
|
+
result['--pubinfo-box-icon-size'] = `calc(var(--pubinfo-box-size) * ${iconSizeProp / 100})`;
|
|
284
|
+
}
|
|
285
|
+
else if (typeof iconSizeProp === 'string') {
|
|
286
|
+
const v = iconSizeProp.trim();
|
|
287
|
+
if (v.endsWith('%')) {
|
|
288
|
+
const n = Number.parseFloat(v);
|
|
289
|
+
if (Number.isFinite(n)) {
|
|
290
|
+
result['--pubinfo-box-icon-size'] = `calc(var(--pubinfo-box-size) * ${n / 100})`;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
else {
|
|
294
|
+
// 其他单位:直接作为绝对大小
|
|
295
|
+
result['--pubinfo-box-icon-size'] = v;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
return {
|
|
300
|
+
style: { ...result, ...style.value },
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
else {
|
|
304
|
+
return {
|
|
305
|
+
style: style.value,
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
</script>
|
|
310
|
+
|
|
311
|
+
<template>
|
|
312
|
+
<component
|
|
313
|
+
:is="element"
|
|
314
|
+
:data-icones="props.name"
|
|
315
|
+
:data-box="isBox !== 'null' ? '' : undefined"
|
|
316
|
+
:data-box-type="isBox"
|
|
317
|
+
:data-icon-type="outputType"
|
|
318
|
+
:data-icon-small="props.small ? '' : undefined"
|
|
319
|
+
class="
|
|
320
|
+
data-[box-type=null]:relative data-[box-type=null]:inline-flex
|
|
321
|
+
data-[box-type=null]:items-center data-[box-type=null]:justify-center
|
|
322
|
+
data-[box-type=null]:fill-current data-[box-type=null]:leading-[1]
|
|
323
|
+
data-[box-type=null]:align-top
|
|
324
|
+
data-[box]:size-[var(--pubinfo-box-size)]!
|
|
325
|
+
data-[box]:font-size-[var(--pubinfo-box-icon-size,_calc(var(--pubinfo-box-size)_*_.5))]!
|
|
326
|
+
font-size-[calc(var(--pubinfo-icon-size))]
|
|
327
|
+
text-[var(--pubinfo-icon-color)]
|
|
328
|
+
[transform:var(--pubinfo-icon-transform)]"
|
|
329
|
+
v-bind="bind"
|
|
330
|
+
>
|
|
331
|
+
<i v-if="outputType === 'css'" :class="outputName" />
|
|
332
|
+
<Icon v-else-if="outputType === 'svg'" :icon="outputName" />
|
|
333
|
+
<span v-else-if="outputType === 'antd'" class="antd-icon" :data-icon="outputName">
|
|
334
|
+
<component :is="(AntdIcons[outputName as keyof typeof AntdIcons] as any)" />
|
|
335
|
+
</span>
|
|
336
|
+
<img v-else-if="icon" class="size-1em" :src="icon">
|
|
337
|
+
</component>
|
|
338
|
+
</template>
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 不带盒子外观的图标配置。
|
|
3
|
+
* 当未显式设置 `box` 时将使用该形状;并且此时不允许传入 `background` / `radius`。
|
|
4
|
+
*/
|
|
5
|
+
export interface PubinfoIconNotBoxOptions {
|
|
6
|
+
/** 图标名称 */
|
|
7
|
+
name: string
|
|
8
|
+
/** 是否异步加载 */
|
|
9
|
+
async?: boolean
|
|
10
|
+
/** 翻转方向 */
|
|
11
|
+
flip?: 'horizontal' | 'vertical' | 'both'
|
|
12
|
+
/** 旋转角度 */
|
|
13
|
+
rotate?: number
|
|
14
|
+
/** 颜色 */
|
|
15
|
+
color?: string
|
|
16
|
+
/** 尺寸 */
|
|
17
|
+
size?: string | number
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* 带盒子外观的图标配置。判定条件:存在 `box` 字段。
|
|
22
|
+
* 这里将 `box` 设为必填,用作判别式属性。
|
|
23
|
+
*/
|
|
24
|
+
export interface PubinfoIconBoxOptions extends PubinfoIconNotBoxOptions {
|
|
25
|
+
/** 盒子类型(存在该字段即可触发 Box 选项) */
|
|
26
|
+
box: 'square' | 'prism'
|
|
27
|
+
/** 背景:纯色或渐变 */
|
|
28
|
+
background?: string | {
|
|
29
|
+
from: string
|
|
30
|
+
to: string
|
|
31
|
+
}
|
|
32
|
+
/** 圆角 */
|
|
33
|
+
radius?: number | string
|
|
34
|
+
/** 背景渐变的角度 */
|
|
35
|
+
angle?: number | string
|
|
36
|
+
/**
|
|
37
|
+
* 图标在盒子内的尺寸(百分比或任意 CSS 尺寸)。
|
|
38
|
+
* - 传 number:视为百分比,例如 80 => 80%
|
|
39
|
+
* - 传 '80%':将按比例缩放相对 box 尺寸
|
|
40
|
+
* - 传其他 CSS 长度(如 '24px' / '1.2rem'):将作为最终字体大小使用(不再与 box 关联)
|
|
41
|
+
*/
|
|
42
|
+
iconSize?: number | string
|
|
43
|
+
/** 是否是小 logo */
|
|
44
|
+
small?: boolean
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* 根据是否提供 `box` 自动区分两类配置:
|
|
49
|
+
* - 未提供 `box`:禁止出现 `background` 与 `radius`(否则 TS 报错)
|
|
50
|
+
* - 提供 `box`:允许使用盒子相关属性
|
|
51
|
+
*/
|
|
52
|
+
export type PubinfoIconOptions
|
|
53
|
+
= | PubinfoIconBoxOptions
|
|
54
|
+
| (PubinfoIconNotBoxOptions & { box?: undefined, background?: never, radius?: never, angle?: never, small?: false });
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* 可用于泛型推断的条件类型:传入的对象类型若含有 `box` 字段,则推断为 Box 版本,否则为普通版本。
|
|
58
|
+
* 一般情况下直接使用 `PubinfoIconOptions` 联合类型即可。
|
|
59
|
+
*/
|
|
60
|
+
export type InferPubinfoIconOptions<T extends { box?: any } | undefined>
|
|
61
|
+
= T extends { box: PubinfoIconBoxOptions['box'] } ? PubinfoIconBoxOptions : PubinfoIconNotBoxOptions;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { InjectionKey } from 'vue';
|
|
2
|
+
|
|
3
|
+
interface PubinfoProviderProps {
|
|
4
|
+
loadIcon?: (name?: string) => any
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export const pubinfoInjectionKey: InjectionKey<PubinfoProviderProps> = Symbol('injectionKey');
|
|
8
|
+
|
|
9
|
+
export function createPubinfoProvider(props: PubinfoProviderProps) {
|
|
10
|
+
provide(pubinfoInjectionKey, props);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export function useProvider() {
|
|
14
|
+
return inject(pubinfoInjectionKey, {});
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export default defineComponent({
|
|
18
|
+
name: 'PubinfoProvider',
|
|
19
|
+
props: {
|
|
20
|
+
loadIcon: {
|
|
21
|
+
type: Function as PubinfoProviderProps['loadIcon'],
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
setup(props, { slots }) {
|
|
25
|
+
const provider = useProvider();
|
|
26
|
+
|
|
27
|
+
createPubinfoProvider({
|
|
28
|
+
loadIcon(name) {
|
|
29
|
+
return props?.loadIcon?.(name) ?? provider?.loadIcon?.(name);
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
return () => slots?.default?.();
|
|
34
|
+
},
|
|
35
|
+
});
|