@pubinfo/core 2.0.12 → 2.0.13
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/dist/{AppSetting-B3jGWi0s.js → AppSetting-Df8mPhxN.js} +34 -34
- package/dist/{HCheckList.vue_vue_type_script_setup_true_lang-D2OA6DQk.js → HCheckList.vue_vue_type_script_setup_true_lang-CD2VmdPG.js} +7 -6
- package/dist/{HToggle-wdIhtmUo.js → HToggle-CcxWxVmB.js} +1 -1
- package/dist/HeaderThinMenu-BMjyPDYS.js +4 -0
- package/dist/{PreferencesContent-BKKNflrp.js → PreferencesContent-Bu8-g2qs.js} +117 -117
- package/dist/{SettingBreadcrumb-DugZlP9x.js → SettingBreadcrumb-CTLEf4nt.js} +7 -7
- package/dist/{SettingCopyright-D6WXUaya.js → SettingCopyright-B_ZS9FXO.js} +5 -5
- package/dist/{SettingEnableTransition-Cl7uPofT.js → SettingEnableTransition-DgZyY8Rh.js} +16 -16
- package/dist/{SettingHome-Cbzfn9ko.js → SettingHome-BN6WzWxX.js} +10 -10
- package/dist/{SettingMenu-BfHW7kFB.js → SettingMenu-CNgEpRN_.js} +14 -14
- package/dist/{SettingMode-D4UfX577.js → SettingMode-B_Sf7CqN.js} +4 -4
- package/dist/{SettingNavSearch-B9_82zYn.js → SettingNavSearch-SQuD6lr7.js} +8 -8
- package/dist/{SettingOther-BcCr5K4d.js → SettingOther-CrgOHNra.js} +16 -16
- package/dist/{SettingPage-T9eoEZks.js → SettingPage-B4hfRME8.js} +4 -4
- package/dist/{SettingTabbar-DAnxa039.js → SettingTabbar-7EcsmyZo.js} +12 -12
- package/dist/{SettingThemes-D7JBXPTs.js → SettingThemes-CVjQoEk4.js} +9 -9
- package/dist/{SettingToolbar-DMiyIQkh.js → SettingToolbar-Bls_SdlL.js} +12 -12
- package/dist/{SettingTopbar-BX1DcBp9.js → SettingTopbar-jqUqG5vW.js} +10 -10
- package/dist/{SettingWidthMode-h2-4_TUO.js → SettingWidthMode-8LFo6UKy.js} +9 -9
- 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/layout-component/components/ui/HDialog.vue.d.ts +2 -2
- package/dist/built-in/layout-component/components/ui/HSlideover.vue.d.ts +2 -2
- 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/ctx.d.ts +1 -0
- package/dist/core/interface.d.ts +4 -2
- 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/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/PubinfoIcon/props.d.ts +7 -0
- package/dist/features/components/index.d.ts +1 -0
- package/dist/features/composables/partyLogin.d.ts +13 -0
- package/dist/features/stores/modules/menu.d.ts +1 -0
- package/dist/features/stores/modules/route.d.ts +9 -0
- package/dist/features/stores/utils/routerHelper.d.ts +2 -1
- 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-BAIUGhyE.js → index-BX0RSX9i.js} +5 -5
- package/dist/index-Bl4PBBmY.js +2827 -0
- package/dist/{index-CfPeR7ym.js → index-C6HIzbdv.js} +1 -1
- package/dist/index-CUbMQSBZ.js +4 -0
- package/dist/{index-BqHnVVhW.js → index-Cc8zVLOC.js} +11 -10
- package/dist/{index-D77TmeiT.js → index-Cjl98Ty_.js} +7 -7
- package/dist/{index-Q4dgy_3e.js → index-Dalsj2EI.js} +58900 -33442
- package/dist/index-Dw9-vGGZ.js +24519 -0
- package/dist/index.js +59 -58
- 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-Cghe_Z7L.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/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/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 +1 -1
- 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/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 +7 -5
- package/src/built-in/layout-component/components/Content/IframeView.vue +28 -2
- package/src/built-in/layout-component/components/Header/HeaderFullMenu/index.vue +2 -1
- package/src/built-in/layout-component/components/Header/index.vue +9 -2
- package/src/built-in/layout-component/components/Menu/index.vue +13 -2
- package/src/built-in/layout-component/components/Menu/item.vue +2 -0
- package/src/built-in/layout-component/components/Sidebar/SubSidebar.vue +6 -2
- package/src/built-in/layout-component/components/Topbar/Tabbar/index.vue +2 -0
- package/src/built-in/layout-component/components/Topbar/index.vue +21 -7
- package/src/built-in/layout-component/composables/useContext.ts +1 -1
- package/src/core/create.ts +3 -0
- package/src/core/ctx.ts +14 -0
- package/src/core/interface.ts +5 -2
- 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/PubinfoIcon/index.vue +26 -4
- package/src/features/components/PubinfoIcon/props.ts +7 -0
- package/src/features/components/index.ts +2 -1
- package/src/features/composables/partyLogin.ts +423 -0
- package/src/features/settings/index.ts +0 -1
- package/src/features/stores/modules/menu.ts +10 -20
- package/src/features/stores/modules/route.ts +140 -39
- package/src/features/stores/utils/routerHelper.ts +8 -23
- package/types/components.d.ts +11 -0
- package/types/menu.d.ts +2 -0
- package/types/settings.d.ts +0 -6
- package/types/vue-router.d.ts +5 -1
- package/dist/HeaderThinMenu-CzAyTOhQ.js +0 -4
- package/dist/colors-CIY2S0v0.js +0 -25
- package/dist/features/components/MicroAppContainer/index.vue.d.ts +0 -2
- package/dist/index-7WoSPUpd.js +0 -8135
- package/dist/index-B041J475.js +0 -271
- package/dist/index-Bk-Yxmj1.js +0 -4
- package/dist/index-LOaJK4GI.js +0 -35319
- package/dist/pick-Drqqoyjl.js +0 -12
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { Route } from '#/vue-router';
|
|
2
|
-
import type { RouteMeta, RouteRecordRaw } from 'vue-router';
|
|
2
|
+
import type { RouteLocationNormalizedLoaded, RouteMeta, RouteRecordRaw } from 'vue-router';
|
|
3
3
|
|
|
4
4
|
import { cloneDeep, defaultTo, get, has, isArray, isString, isUndefined, merge, omit } from 'lodash-es';
|
|
5
5
|
import { defineStore } from 'pinia';
|
|
6
6
|
import { setupDefaultLayout } from '@/core';
|
|
7
|
+
import { callHookAsync } from '@/core/ctx';
|
|
7
8
|
import { postRbacResourceMineOrAllResourceTree } from '@/features/api/modules/rbac';
|
|
8
9
|
import { useWarn } from '@/features/composables';
|
|
9
10
|
import { RESOURCE_TYPE } from '@/features/enum';
|
|
@@ -15,6 +16,8 @@ import useSettingsStore from './settings';
|
|
|
15
16
|
import useTabbarStore from './tabbar';
|
|
16
17
|
import useUserStore from './user';
|
|
17
18
|
|
|
19
|
+
export type RouteData = Route.recordMainRaw;
|
|
20
|
+
|
|
18
21
|
const useRouteStore = defineStore(
|
|
19
22
|
STORE_NAME.ROUTE,
|
|
20
23
|
() => {
|
|
@@ -25,7 +28,7 @@ const useRouteStore = defineStore(
|
|
|
25
28
|
const tabbarStore = useTabbarStore();
|
|
26
29
|
|
|
27
30
|
const isGenerate = ref(false);
|
|
28
|
-
const routesRaw = ref<
|
|
31
|
+
const routesRaw = ref<RouteData[]>([]);
|
|
29
32
|
const remoteRoutesRaw = ref<API.PubResourceTreeBo[]>([]);
|
|
30
33
|
const filesystemRoutesRaw = ref<RouteRecordRaw[]>([]);
|
|
31
34
|
const currentRemoveRoutes = ref<Array<{
|
|
@@ -121,7 +124,8 @@ const useRouteStore = defineStore(
|
|
|
121
124
|
rawRoutes: RouteRecordRaw[],
|
|
122
125
|
breadcrumb: Route.breadcrumb[] = [],
|
|
123
126
|
baseUrl = '',
|
|
124
|
-
baseAuth: RouteMeta['auth']
|
|
127
|
+
baseAuth: RouteMeta['auth'],
|
|
128
|
+
): RouteRecordRaw[] {
|
|
125
129
|
return toRaw(rawRoutes).reduce<RouteRecordRaw[]>((flatRoute, rawRoute) => {
|
|
126
130
|
const childrenBaseUrl = resolveRoutePath(baseUrl, rawRoute.path);
|
|
127
131
|
const childrenBaseAuth = defaultTo(rawRoute.meta?.auth, baseAuth);
|
|
@@ -216,7 +220,7 @@ const useRouteStore = defineStore(
|
|
|
216
220
|
* @param route - 要检查权限的路由。
|
|
217
221
|
* @returns 一个布尔值,指示用户是否有权限。
|
|
218
222
|
*/
|
|
219
|
-
function hasPermission(permissions: string[], route:
|
|
223
|
+
function hasPermission(permissions: string[], route: RouteData | RouteRecordRaw) {
|
|
220
224
|
if (isUndefined(route.meta?.auth)) {
|
|
221
225
|
return true;
|
|
222
226
|
}
|
|
@@ -247,8 +251,8 @@ const useRouteStore = defineStore(
|
|
|
247
251
|
* @param {string[]} permissions - 要检查的权限。
|
|
248
252
|
* @returns {T} - 过滤后的路由数组。
|
|
249
253
|
*/
|
|
250
|
-
function filterAsyncRoutes<T extends Array<
|
|
251
|
-
const res: Array<
|
|
254
|
+
function filterAsyncRoutes<T extends Array<RouteData | RouteRecordRaw>>(routes: T, permissions: string[]): T {
|
|
255
|
+
const res: Array<RouteData | RouteRecordRaw> = [];
|
|
252
256
|
routes.forEach((route) => {
|
|
253
257
|
if (hasPermission(permissions, route)) {
|
|
254
258
|
const tmpRoute = cloneDeep(route);
|
|
@@ -275,21 +279,16 @@ const useRouteStore = defineStore(
|
|
|
275
279
|
* 如果权限功能已启用,则对路由进行筛选。
|
|
276
280
|
* 否则,原样返回路由。
|
|
277
281
|
*
|
|
278
|
-
* @returns {
|
|
282
|
+
* @returns {RouteData[]} 筛选后的路由。
|
|
279
283
|
*/
|
|
280
|
-
const routes = computed(() => {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
}
|
|
285
|
-
else {
|
|
286
|
-
returnRoutes = cloneDeep(routesRaw.value);
|
|
287
|
-
}
|
|
288
|
-
return returnRoutes;
|
|
284
|
+
const routes = computed<RouteData[]>(() => {
|
|
285
|
+
return needFilterRoutes.value
|
|
286
|
+
? filterAsyncRoutes(routesRaw.value, userStore.user.permissions)
|
|
287
|
+
: cloneDeep(routesRaw.value);
|
|
289
288
|
});
|
|
290
289
|
|
|
291
290
|
// 将设置 meta.singleMenu 的一级路由转换成二级路由
|
|
292
|
-
function convertSingleRoutes<T extends
|
|
291
|
+
function convertSingleRoutes<T extends RouteData[]>(routes: T) {
|
|
293
292
|
const Layout = setupDefaultLayout();
|
|
294
293
|
|
|
295
294
|
routes.map((route) => {
|
|
@@ -323,7 +322,7 @@ const useRouteStore = defineStore(
|
|
|
323
322
|
// 给一级路由设置 provider
|
|
324
323
|
if (route.meta?.provider) {
|
|
325
324
|
(item.meta as any) = {
|
|
326
|
-
...
|
|
325
|
+
...item.meta,
|
|
327
326
|
provider: route.meta.provider,
|
|
328
327
|
};
|
|
329
328
|
}
|
|
@@ -338,7 +337,7 @@ const useRouteStore = defineStore(
|
|
|
338
337
|
* 过滤不启用的路由
|
|
339
338
|
* @param routes
|
|
340
339
|
*/
|
|
341
|
-
function filterEnabledRoutes(routes:
|
|
340
|
+
function filterEnabledRoutes(routes: RouteData[]) {
|
|
342
341
|
if (!routes.length) {
|
|
343
342
|
return [];
|
|
344
343
|
}
|
|
@@ -382,36 +381,36 @@ const useRouteStore = defineStore(
|
|
|
382
381
|
return formatBackRoutes([route])[0] as any;
|
|
383
382
|
}
|
|
384
383
|
|
|
385
|
-
// 将微应用数据格式化成路由数据
|
|
386
|
-
if (route.type === RESOURCE_TYPE.MICRO_APP) {
|
|
387
|
-
return formatBackRoutes([route])[0];
|
|
388
|
-
}
|
|
389
|
-
|
|
390
384
|
return false;
|
|
391
385
|
}).filter(route => !!route) ?? [];
|
|
392
386
|
|
|
393
387
|
// 未出现在后端路由树中的静态路由
|
|
394
388
|
const restStaticRoutes = staticRoutes.filter((staticRoute) => {
|
|
395
389
|
const { auth } = staticRoute.meta ?? {};
|
|
390
|
+
|
|
396
391
|
if (isString(auth)) {
|
|
397
392
|
return !res.data?.map(route => route.code).includes(auth);
|
|
398
393
|
}
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
}
|
|
394
|
+
|
|
395
|
+
return true;
|
|
402
396
|
});
|
|
403
397
|
|
|
404
398
|
// 对后端路由和本地路由进行排序
|
|
405
|
-
|
|
399
|
+
const sortedRoutes = sortRoutesByRemoteOrder(
|
|
406
400
|
[...remoteRoutes, ...restStaticRoutes],
|
|
407
401
|
res.data ?? [],
|
|
408
402
|
);
|
|
403
|
+
|
|
404
|
+
// 对路由进行转换
|
|
405
|
+
routesRaw.value = await callHookAsync<RouteData[]>('route:transform', sortedRoutes);
|
|
409
406
|
}
|
|
410
407
|
|
|
411
408
|
if (settingsStore.settings.app.enablePermission) {
|
|
412
409
|
await userStore.getPermissions();
|
|
413
410
|
}
|
|
411
|
+
|
|
414
412
|
isGenerate.value = true;
|
|
413
|
+
|
|
415
414
|
// 加载常驻标签页
|
|
416
415
|
if (settingsStore.settings.tabbar.enable) {
|
|
417
416
|
tabbarStore.initPermanentTab();
|
|
@@ -419,13 +418,13 @@ const useRouteStore = defineStore(
|
|
|
419
418
|
}
|
|
420
419
|
|
|
421
420
|
function sortRoutesByRemoteOrder(
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
):
|
|
425
|
-
const orderMap = new Map(
|
|
421
|
+
_routesRaw: RouteData[],
|
|
422
|
+
_remoteRoutesRaw: API.PubResourceTreeBo[],
|
|
423
|
+
): RouteData[] {
|
|
424
|
+
const orderMap = new Map(_remoteRoutesRaw.map((r, i) => [r.code, i]));
|
|
426
425
|
|
|
427
|
-
const matched =
|
|
428
|
-
const unmatched =
|
|
426
|
+
const matched = _routesRaw.filter(r => orderMap.has(r.meta?.auth as string));
|
|
427
|
+
const unmatched = _routesRaw.filter(r => !orderMap.has(r.meta?.auth as string));
|
|
429
428
|
|
|
430
429
|
matched.sort((a, b) => {
|
|
431
430
|
const orderA = orderMap.get(a.meta.auth! as string) ?? Infinity;
|
|
@@ -454,12 +453,112 @@ const useRouteStore = defineStore(
|
|
|
454
453
|
isGenerate.value = false;
|
|
455
454
|
routesRaw.value = [];
|
|
456
455
|
filesystemRoutesRaw.value = [];
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
456
|
+
|
|
457
|
+
if (isRefresh) {
|
|
458
|
+
currentRemoveRoutes.value = currentRemoveRoutes.value.filter(fn => fn.system);
|
|
459
|
+
}
|
|
460
|
+
else {
|
|
461
|
+
currentRemoveRoutes.value.forEach(removeRoute => removeRoute());
|
|
462
|
+
currentRemoveRoutes.value = [];
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* 根据路由的 meta.id 从远程路由原始数据中查找对应的资源
|
|
468
|
+
* @param route - 路由对象,如果不传则从当前路由获取
|
|
469
|
+
* @returns {API.PubResourceTreeBo | undefined} 找到的远程路由数据,未找到则返回 undefined
|
|
470
|
+
*/
|
|
471
|
+
function getRemoteRouteById(route?: RouteData | RouteRecordRaw | RouteLocationNormalizedLoaded): API.PubResourceTreeBo | undefined {
|
|
472
|
+
// 如果没有传入 route,则尝试从 vue-router 获取当前路由
|
|
473
|
+
const targetRoute = route ?? (typeof useRoute === 'function' ? useRoute() : undefined);
|
|
474
|
+
|
|
475
|
+
if (!targetRoute) {
|
|
476
|
+
useWarn('getRemoteRouteById: 无法获取路由对象');
|
|
477
|
+
return undefined;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
const id = targetRoute.meta?.id;
|
|
481
|
+
|
|
482
|
+
if (!id) {
|
|
483
|
+
useWarn('getRemoteRouteById: 路由 meta 中未找到 id');
|
|
484
|
+
return undefined;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* 递归搜索路由树
|
|
489
|
+
* @param routes - 路由数组
|
|
490
|
+
* @returns 找到的路由数据
|
|
491
|
+
*/
|
|
492
|
+
function searchInTree(routes: API.PubResourceTreeBo[]): API.PubResourceTreeBo | undefined {
|
|
493
|
+
for (const route of routes) {
|
|
494
|
+
if (route.id === id) {
|
|
495
|
+
return route;
|
|
496
|
+
}
|
|
497
|
+
if (route.children && route.children.length > 0) {
|
|
498
|
+
const found = searchInTree(route.children);
|
|
499
|
+
if (found) {
|
|
500
|
+
return found;
|
|
501
|
+
}
|
|
502
|
+
}
|
|
460
503
|
}
|
|
461
|
-
|
|
462
|
-
|
|
504
|
+
return undefined;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
return searchInTree(remoteRoutesRaw.value);
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* 获取当前路由所属的顶层应用(APP)的远程路由原始数据
|
|
512
|
+
* @param route - 路由对象,如果不传则从当前路由获取
|
|
513
|
+
* @returns {API.PubResourceTreeBo | undefined} 找到的顶层应用远程路由数据,未找到则返回 undefined
|
|
514
|
+
*/
|
|
515
|
+
function getRemoteAppRouteById(route?: RouteData | RouteRecordRaw | RouteLocationNormalizedLoaded): API.PubResourceTreeBo | undefined {
|
|
516
|
+
// 如果没有传入 route,则尝试从 vue-router 获取当前路由
|
|
517
|
+
const targetRoute = route ?? (typeof useRoute === 'function' ? useRoute() : undefined);
|
|
518
|
+
|
|
519
|
+
if (!targetRoute) {
|
|
520
|
+
useWarn('getRemoteAppRouteById: 无法获取路由对象');
|
|
521
|
+
return undefined;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
const id = targetRoute.meta?.id;
|
|
525
|
+
|
|
526
|
+
if (!id) {
|
|
527
|
+
useWarn('getRemoteAppRouteById: 路由 meta 中未找到 id');
|
|
528
|
+
return undefined;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* 递归搜索路由树,返回找到的节点的顶层应用
|
|
533
|
+
* @param routes - 路由数组
|
|
534
|
+
* @param parentApp - 当前的顶层应用
|
|
535
|
+
* @returns 找到的顶层应用
|
|
536
|
+
*/
|
|
537
|
+
function searchInTree(
|
|
538
|
+
routes: API.PubResourceTreeBo[],
|
|
539
|
+
parentApp?: API.PubResourceTreeBo,
|
|
540
|
+
): API.PubResourceTreeBo | undefined {
|
|
541
|
+
for (const route of routes) {
|
|
542
|
+
// 记录当前的顶层应用(type 为 APP 或 DYNAMIC_APP)
|
|
543
|
+
const currentApp = route.type === RESOURCE_TYPE.APP || route.type === RESOURCE_TYPE.DYNAMIC_APP
|
|
544
|
+
? route
|
|
545
|
+
: parentApp;
|
|
546
|
+
|
|
547
|
+
if (route.id === id) {
|
|
548
|
+
return currentApp;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
if (route.children && route.children.length > 0) {
|
|
552
|
+
const found = searchInTree(route.children, currentApp);
|
|
553
|
+
if (found) {
|
|
554
|
+
return found;
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
return undefined;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
return searchInTree(remoteRoutesRaw.value);
|
|
463
562
|
}
|
|
464
563
|
|
|
465
564
|
return {
|
|
@@ -472,6 +571,8 @@ const useRouteStore = defineStore(
|
|
|
472
571
|
generateRoutes,
|
|
473
572
|
setCurrentRemoveRoutes,
|
|
474
573
|
removeRoutes,
|
|
574
|
+
getRemoteRouteById,
|
|
575
|
+
getRemoteAppRouteById,
|
|
475
576
|
};
|
|
476
577
|
},
|
|
477
578
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RouterMetaRawBaseOptions } from '#/vue-router';
|
|
2
2
|
import type { RequireExactlyOne } from 'type-fest';
|
|
3
|
-
import { cloneDeep,
|
|
3
|
+
import { cloneDeep, isUndefined, omitBy } from 'lodash-es';
|
|
4
4
|
import { setupDefaultLayout, setupPage } from '@/core';
|
|
5
5
|
import { RESOURCE_TYPE } from '@/features/enum';
|
|
6
6
|
|
|
@@ -12,8 +12,6 @@ export interface BackEndRoute {
|
|
|
12
12
|
meta: RequireExactlyOne<Partial<RouterMetaRawBaseOptions>, 'title'> & Record<string, any>
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
-
export const MicroAppContainer = () => import('@/features/components/MicroAppContainer/index.vue');
|
|
16
|
-
|
|
17
15
|
/**
|
|
18
16
|
* 格式化后端返回的路由数据
|
|
19
17
|
* @param routes 路由数据
|
|
@@ -32,6 +30,7 @@ export function formatBackRoutes(
|
|
|
32
30
|
: [];
|
|
33
31
|
|
|
34
32
|
const meta = omitBy<BackEndRoute['meta']>({
|
|
33
|
+
id: route?.id,
|
|
35
34
|
title: route?.name ?? '',
|
|
36
35
|
auth: route?.code,
|
|
37
36
|
icon: route?.icon,
|
|
@@ -65,7 +64,6 @@ export function formatBackRoutes(
|
|
|
65
64
|
|
|
66
65
|
switch (route.type) {
|
|
67
66
|
case RESOURCE_TYPE.DYNAMIC_APP:
|
|
68
|
-
case RESOURCE_TYPE.MICRO_APP:
|
|
69
67
|
return finalRoute;
|
|
70
68
|
|
|
71
69
|
case RESOURCE_TYPE.INDEX:
|
|
@@ -73,20 +71,18 @@ export function formatBackRoutes(
|
|
|
73
71
|
|
|
74
72
|
case RESOURCE_TYPE.MENU:
|
|
75
73
|
case RESOURCE_TYPE.IFRAME:
|
|
74
|
+
case RESOURCE_TYPE.LINK:
|
|
76
75
|
return transformMenuAndIframe(finalRoute, parent);
|
|
77
76
|
|
|
78
77
|
case RESOURCE_TYPE.NON_MENU:
|
|
79
78
|
return transformNonMenu(finalRoute, parent);
|
|
80
79
|
|
|
81
|
-
case RESOURCE_TYPE.LINK:
|
|
82
|
-
return finalRoute;
|
|
83
|
-
|
|
84
80
|
default:
|
|
85
81
|
return finalRoute;
|
|
86
82
|
}
|
|
87
83
|
});
|
|
88
84
|
|
|
89
|
-
return
|
|
85
|
+
return formatRoutes;
|
|
90
86
|
}
|
|
91
87
|
|
|
92
88
|
/** 过滤指定类型的路由 */
|
|
@@ -100,7 +96,7 @@ function filterRoutes(routes: API.PubResourceTreeBo[] = [], excludes: string[])
|
|
|
100
96
|
}
|
|
101
97
|
|
|
102
98
|
/** 过滤找不到SFC组件的路由 */
|
|
103
|
-
function filterEmptyComponentRoutes(routes: BackEndRoute[], minDepth = 3): BackEndRoute[] {
|
|
99
|
+
export function filterEmptyComponentRoutes(routes: BackEndRoute[], minDepth = 3): BackEndRoute[] {
|
|
104
100
|
function recurse(route: BackEndRoute): BackEndRoute | null {
|
|
105
101
|
const children = route.children?.map(recurse).filter(Boolean) as BackEndRoute[] | undefined;
|
|
106
102
|
|
|
@@ -108,9 +104,9 @@ function filterEmptyComponentRoutes(routes: BackEndRoute[], minDepth = 3): BackE
|
|
|
108
104
|
return { ...route, children };
|
|
109
105
|
}
|
|
110
106
|
|
|
107
|
+
// 叶子且有 component
|
|
111
108
|
if (children?.length === 0 && route.component) {
|
|
112
|
-
|
|
113
|
-
const { children, ...rest } = route;
|
|
109
|
+
const { children: _, ...rest } = route;
|
|
114
110
|
return { ...rest, children: [] };
|
|
115
111
|
}
|
|
116
112
|
|
|
@@ -135,7 +131,6 @@ function transformIndex(route: BackEndRoute, parent: API.PubResourceTreeBo = {})
|
|
|
135
131
|
switch (parent.type) {
|
|
136
132
|
// 父级是应用
|
|
137
133
|
case RESOURCE_TYPE.DYNAMIC_APP:
|
|
138
|
-
case RESOURCE_TYPE.MICRO_APP:
|
|
139
134
|
return {
|
|
140
135
|
...route,
|
|
141
136
|
path: startsWithSlash(route.path),
|
|
@@ -157,7 +152,7 @@ function transformIndex(route: BackEndRoute, parent: API.PubResourceTreeBo = {})
|
|
|
157
152
|
|
|
158
153
|
/** 转换菜单和内嵌 */
|
|
159
154
|
function transformMenuAndIframe(route: BackEndRoute, parent: API.PubResourceTreeBo = {}): BackEndRoute {
|
|
160
|
-
if (!route?.component && !route?.meta?.iframe) {
|
|
155
|
+
if (!route?.component && !route?.meta?.iframe && !route?.meta?.link) {
|
|
161
156
|
console.warn(`[PUBINFO] 资源"${route.meta.title}"的component字段不存在, 将会导致未知错误!`);
|
|
162
157
|
}
|
|
163
158
|
|
|
@@ -183,7 +178,6 @@ function transformMenuAndIframe(route: BackEndRoute, parent: API.PubResourceTree
|
|
|
183
178
|
switch (parent.type) {
|
|
184
179
|
// 父级是应用
|
|
185
180
|
case RESOURCE_TYPE.DYNAMIC_APP:
|
|
186
|
-
case RESOURCE_TYPE.MICRO_APP:
|
|
187
181
|
menuRoute = {
|
|
188
182
|
...route,
|
|
189
183
|
path: startsWithSlash(route.path),
|
|
@@ -240,15 +234,6 @@ function startsWithSlash(str?: string) {
|
|
|
240
234
|
return str.startsWith('/') ? str : `/${str}`;
|
|
241
235
|
}
|
|
242
236
|
|
|
243
|
-
/** 开头去掉 / */
|
|
244
|
-
function startsWithNoSlash(str?: string) {
|
|
245
|
-
if (!str) {
|
|
246
|
-
return '';
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
return str.startsWith('/') ? str.replace('/', '') : str;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
237
|
/** 替换 component 为实际组件 */
|
|
253
238
|
function replaceComponent(component: any, id?: string) {
|
|
254
239
|
return setupPage(component, id);
|
package/types/components.d.ts
CHANGED
|
@@ -11,11 +11,22 @@ declare module 'vue' {
|
|
|
11
11
|
AAlert: typeof import('ant-design-vue/es')['Alert']
|
|
12
12
|
AButton: typeof import('ant-design-vue/es')['Button']
|
|
13
13
|
ACard: typeof import('ant-design-vue/es')['Card']
|
|
14
|
+
ACheckbox: typeof import('ant-design-vue/es')['Checkbox']
|
|
14
15
|
ADivider: typeof import('ant-design-vue/es')['Divider']
|
|
15
16
|
AForm: typeof import('ant-design-vue/es')['Form']
|
|
16
17
|
AFormItem: typeof import('ant-design-vue/es')['FormItem']
|
|
18
|
+
AInput: typeof import('ant-design-vue/es')['Input']
|
|
19
|
+
AInputNumber: typeof import('ant-design-vue/es')['InputNumber']
|
|
17
20
|
AInputPassword: typeof import('ant-design-vue/es')['InputPassword']
|
|
21
|
+
AModal: typeof import('ant-design-vue/es')['Modal']
|
|
22
|
+
ARadioButton: typeof import('ant-design-vue/es')['RadioButton']
|
|
23
|
+
ARadioGroup: typeof import('ant-design-vue/es')['RadioGroup']
|
|
24
|
+
ASelect: typeof import('ant-design-vue/es')['Select']
|
|
25
|
+
ASelectOption: typeof import('ant-design-vue/es')['SelectOption']
|
|
18
26
|
ATag: typeof import('ant-design-vue/es')['Tag']
|
|
27
|
+
ATooltip: typeof import('ant-design-vue/es')['Tooltip']
|
|
28
|
+
ATreeSelect: typeof import('ant-design-vue/es')['TreeSelect']
|
|
29
|
+
DeleteOutlined: typeof import('@ant-design/icons-vue')['DeleteOutlined']
|
|
19
30
|
HBadge: typeof import('./../src/built-in/layout-component/components/ui/HBadge.vue')['default']
|
|
20
31
|
HButton: typeof import('./../src/built-in/layout-component/components/ui/HButton.vue')['default']
|
|
21
32
|
HCheckList: typeof import('./../src/built-in/layout-component/components/ui/HCheckList.vue')['default']
|
package/types/menu.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export declare namespace Menu {
|
|
|
13
13
|
badge?: boolean | string | number | (() => boolean | string | number)
|
|
14
14
|
link?: string
|
|
15
15
|
isDev?: boolean
|
|
16
|
+
partyLogin?: any[]
|
|
16
17
|
}
|
|
17
18
|
children?: recordRaw[]
|
|
18
19
|
}
|
|
@@ -32,6 +33,7 @@ export declare namespace Menu {
|
|
|
32
33
|
}
|
|
33
34
|
boxType?: 'square' | 'prism' | 'null'
|
|
34
35
|
iconColor?: string
|
|
36
|
+
iconSize?: number | string
|
|
35
37
|
radius?: number | string
|
|
36
38
|
}
|
|
37
39
|
sidebar?: boolean
|
package/types/settings.d.ts
CHANGED
package/types/vue-router.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Merge, RequireExactlyOne } from 'type-fest';
|
|
2
2
|
import type { RouteRecordRaw } from 'vue-router';
|
|
3
|
+
import type { PartyLoginStepConfig } from '../src/features/components/PartyLogin/type';
|
|
3
4
|
import type { User } from './user';
|
|
4
5
|
|
|
5
6
|
export interface RouterMetaRawBaseOptions {
|
|
@@ -27,6 +28,8 @@ export interface RouterMetaRawBaseOptions {
|
|
|
27
28
|
provider?: any
|
|
28
29
|
pin?: boolean
|
|
29
30
|
routeName?: string
|
|
31
|
+
id?: string | number
|
|
32
|
+
partyLogin?: PartyLoginStepConfig[]
|
|
30
33
|
}
|
|
31
34
|
|
|
32
35
|
type RouterMetaRaw = RequireExactlyOne<Partial<RouterMetaRawBaseOptions>, 'title'>;
|
|
@@ -34,7 +37,8 @@ type RouterMetaRaw = RequireExactlyOne<Partial<RouterMetaRawBaseOptions>, 'title
|
|
|
34
37
|
export declare namespace Route {
|
|
35
38
|
|
|
36
39
|
type mainMeta
|
|
37
|
-
=
|
|
40
|
+
= 'id'
|
|
41
|
+
| 'title'
|
|
38
42
|
| 'icon'
|
|
39
43
|
| 'activeIcon'
|
|
40
44
|
| 'auth'
|
package/dist/colors-CIY2S0v0.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { e as t } from "./index-Q4dgy_3e.js";
|
|
2
|
-
const n = ["blue", "purple", "cyan", "green", "magenta", "pink", "red", "orange", "yellow", "volcano", "geekblue", "lime", "gold"];
|
|
3
|
-
function C(e, s) {
|
|
4
|
-
return n.reduce((o, r) => {
|
|
5
|
-
const u = e[`${r}-1`], l = e[`${r}-3`], i = e[`${r}-6`], a = e[`${r}-7`];
|
|
6
|
-
return t(t({}, o), s(r, {
|
|
7
|
-
lightColor: u,
|
|
8
|
-
lightBorderColor: l,
|
|
9
|
-
darkColor: i,
|
|
10
|
-
textColor: a
|
|
11
|
-
}));
|
|
12
|
-
}, {});
|
|
13
|
-
}
|
|
14
|
-
const c = n.map((e) => `${e}-inverse`), g = ["success", "processing", "error", "default", "warning"];
|
|
15
|
-
function m(e) {
|
|
16
|
-
return (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0) ? [...c, ...n].includes(e) : n.includes(e);
|
|
17
|
-
}
|
|
18
|
-
function p(e) {
|
|
19
|
-
return g.includes(e);
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
p as a,
|
|
23
|
-
C as g,
|
|
24
|
-
m as i
|
|
25
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
-
export default _default;
|