@pubinfo/core 2.0.0-beta.2 → 2.0.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{es/AppSetting-BXQHV5F8.js → dist/AppSetting-DodCOb_z.js} +16 -16
- package/{es/HCheckList.vue_vue_type_script_setup_true_lang-DanhyVxU.js → dist/HCheckList.vue_vue_type_script_setup_true_lang-CMOw56Mk.js} +2 -2
- package/{es/PreferencesContent-CQkwkQ_1.js → dist/PreferencesContent-Dic24ifo.js} +56 -56
- package/{es/SettingBreadcrumb-Bp_66IFN.js → dist/SettingBreadcrumb-DWpbGcSy.js} +2 -2
- package/{es/SettingCopyright-BPSnoTQb.js → dist/SettingCopyright-CIY0pFMT.js} +1 -1
- package/{es/SettingEnableTransition-Rx2-0Wxj.js → dist/SettingEnableTransition-f0xuLIrZ.js} +1 -1
- package/{es/SettingHome-BW27PQqs.js → dist/SettingHome-BFtJsJsN.js} +1 -1
- package/{es/SettingMenu-D5gdNfal.js → dist/SettingMenu-DuPD3iSG.js} +2 -2
- package/{es/SettingMode-B4_HGVez.js → dist/SettingMode-nZ65qSWK.js} +1 -1
- package/{es/SettingNavSearch-CRovYxzh.js → dist/SettingNavSearch-CrarPE7d.js} +1 -1
- package/{es/SettingOther-D0zo11vM.js → dist/SettingOther-BddvExCF.js} +1 -1
- package/{es/SettingPage-B8GHuoKV.js → dist/SettingPage-C6Na8HEN.js} +1 -1
- package/{es/SettingTabbar-Cn_QzvA8.js → dist/SettingTabbar-nuwfRRaE.js} +2 -2
- package/{es/SettingThemes-D_DpEncn.js → dist/SettingThemes-DBq6j0zt.js} +2 -2
- package/{es/SettingToolbar-Csl2gnfi.js → dist/SettingToolbar-BdizZaGF.js} +1 -1
- package/{es/SettingTopbar-CaHjQULM.js → dist/SettingTopbar-D5BX5vS_.js} +2 -2
- package/{es/SettingWidthMode-BGiP7gTw.js → dist/SettingWidthMode-CHrLW3gs.js} +1 -1
- package/{es/TopThinMode-DWm0oY5Y.js → dist/TopThinMode-CttqTmaT.js} +1 -1
- package/{es/_...all_-DI_QAUox.js → dist/_...all_--d4S-8dL.js} +1 -1
- package/{es → dist}/api/index.d.ts +2 -1
- package/{es/colors-oRlAXMUC.js → dist/colors-BOKDjZQI.js} +1 -1
- package/{lib → dist}/components/PubinfoProvider/index.d.ts +1 -0
- package/{lib → dist}/composables/auth.d.ts +1 -1
- package/{es → dist}/context.d.ts +1 -1
- package/{es/index-ChOUZNbk.js → dist/index-B0i20hau.js} +2 -2
- package/{es/index-D8eeneI_.js → dist/index-Bz9lh14R.js} +25 -25
- package/{es/index-BHkrq701.js → dist/index-CC3GE307.js} +30 -30
- package/{es/index-BvVAS3S-.js → dist/index-Cf8yM5Cv.js} +14 -8
- package/{es/index-P2cA5UeU.js → dist/index-Cygbc-66.js} +30 -30
- package/{es/index-DvHnVMX5.js → dist/index-D0CMv5FJ.js} +5543 -5719
- package/{es/index-B9I6Pru6.js → dist/index-DORROKh7.js} +57 -62
- package/{es/index-Dav3jQVP.js → dist/index-DltN2SCZ.js} +31 -31
- package/{es/index-BkqnOkyO.js → dist/index-dPREgrj8.js} +1 -1
- package/{es → dist}/index.d.ts +1 -0
- package/dist/index.js +76 -0
- package/{es/index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-BBe8CvCV.js → dist/index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-Bmtn9Oo4.js} +1 -1
- package/{lib → dist}/interface.d.ts +11 -0
- package/{es → dist}/layout/composables/useContext.d.ts +1 -2
- package/{lib → dist}/layout/ui-kit/HDialog.vue.d.ts +12 -1
- package/{lib → dist}/layout/ui-kit/HSlideover.vue.d.ts +12 -1
- package/{es → dist}/layout/ui-kit/HTabList.vue.d.ts +2 -2
- package/{es/notification-6D5hA7Bp.js → dist/menu-Ddxel9ck.js} +3007 -3037
- package/{es/pick-Br-UKn7B.js → dist/pick-DEgsMKda.js} +1 -1
- package/{es → dist}/request.js +1 -1
- package/{es → dist}/route/index.d.ts +0 -1
- package/dist/route/routes.d.ts +22 -0
- package/{lib → dist}/stores/modules/favorites.d.ts +1 -0
- package/{es → dist}/stores/modules/iframe.d.ts +1 -0
- package/{es → dist}/stores/modules/index.d.ts +8 -1
- package/{es → dist}/stores/modules/keepAlive.d.ts +1 -0
- package/{es → dist}/stores/modules/menu.d.ts +1 -0
- package/{es → dist}/stores/modules/route.d.ts +1 -0
- package/{lib → dist}/stores/modules/settings.d.ts +1 -0
- package/{lib → dist}/stores/modules/tabbar.d.ts +1 -0
- package/dist/stores/modules/user.d.ts +36 -0
- package/{es → dist}/style.css +1 -1
- package/package.json +22 -28
- package/src/api/index.ts +3 -1
- package/src/components/PubinfoProvider/index.ts +2 -0
- package/src/composables/auth.ts +1 -1
- package/src/context.ts +1 -2
- package/src/index.ts +1 -0
- package/src/interface.ts +11 -0
- package/src/layout/components/Header/TopMode/index.vue +12 -16
- package/src/layout/components/SettingBar/index.vue +3 -1
- package/src/layout/components/Tools/index.vue +9 -25
- package/src/layout/composables/useContext.ts +0 -2
- package/src/layout/composables/useWatermark.ts +2 -2
- package/src/layout/provider.ts +0 -3
- package/src/layout/ui-kit/HDialog.vue +4 -1
- package/src/layout/ui-kit/HSlideover.vue +4 -1
- package/src/pages/system/change-organization/index.vue +3 -3
- package/src/route/index.ts +0 -1
- package/src/route/routes.ts +69 -55
- package/src/stores/helper.ts +2 -2
- package/src/stores/modules/favorites.ts +1 -0
- package/src/stores/modules/iframe.ts +1 -0
- package/src/stores/modules/index.ts +8 -1
- package/src/stores/modules/keepAlive.ts +1 -0
- package/src/stores/modules/menu.ts +25 -1
- package/src/stores/modules/route.ts +4 -3
- package/src/stores/modules/settings.ts +1 -0
- package/src/stores/modules/tabbar.ts +1 -0
- package/src/stores/modules/user.ts +56 -20
- package/src/stores/plugin/sideEffect/favoritesStorage.ts +1 -1
- package/src/stores/plugin/sideEffect/tabbarStorage.ts +1 -1
- package/src/utils/watermark.ts +1 -1
- package/es/components/PubinfoProvider/index.d.ts +0 -8
- package/es/composables/auth.d.ts +0 -8
- package/es/index-DTQQt_XY.js +0 -10
- package/es/index.js +0 -76
- package/es/interface.d.ts +0 -29
- package/es/layout/ui-kit/HDialog.vue.d.ts +0 -28
- package/es/layout/ui-kit/HSlideover.vue.d.ts +0 -30
- package/es/pages/system/not-permission/index.vue.d.ts +0 -2
- package/es/route/async.d.ts +0 -9
- package/es/route/routes.d.ts +0 -3
- package/es/stores/modules/favorites.d.ts +0 -32
- package/es/stores/modules/notification.d.ts +0 -18
- package/es/stores/modules/settings.d.ts +0 -85
- package/es/stores/modules/tabbar.d.ts +0 -59
- package/es/stores/modules/user.d.ts +0 -3
- package/lib/AppSetting-CCiwpjoq.cjs +0 -1
- package/lib/HButton.vue_vue_type_script_setup_true_lang-D-XkyoXl.cjs +0 -1
- package/lib/HCheckList.vue_vue_type_script_setup_true_lang-DwA8einQ.cjs +0 -1
- package/lib/HDivider-DCfDgE8l.cjs +0 -1
- package/lib/HInput.vue_vue_type_script_setup_true_lang-CwS0mGyL.cjs +0 -1
- package/lib/HToggle-BP6YYf-s.cjs +0 -1
- package/lib/PreferencesContent-DgL-Jc_J.cjs +0 -3
- package/lib/SettingBreadcrumb-BQ78yEP4.cjs +0 -1
- package/lib/SettingCopyright-x7aPlkQy.cjs +0 -1
- package/lib/SettingEnableTransition-CD3-44Iy.cjs +0 -1
- package/lib/SettingHome-u52oz6i8.cjs +0 -1
- package/lib/SettingMenu-DsElOvvv.cjs +0 -1
- package/lib/SettingMode-C_kgpTxw.cjs +0 -1
- package/lib/SettingNavSearch-3auTi8UW.cjs +0 -1
- package/lib/SettingOther-6XGQq7OA.cjs +0 -1
- package/lib/SettingPage-C8yIHpLc.cjs +0 -1
- package/lib/SettingTabbar-K-nHb89z.cjs +0 -1
- package/lib/SettingThemes-BeNwFz7K.cjs +0 -1
- package/lib/SettingToolbar-Be1V7lwV.cjs +0 -1
- package/lib/SettingTopbar-C-j8O3c8.cjs +0 -1
- package/lib/SettingWidthMode-GMjAF-s3.cjs +0 -1
- package/lib/TopThinMode-DGUvyHT2.cjs +0 -1
- package/lib/_...all_-C4CXjAo9.cjs +0 -1
- package/lib/_plugin-vue_export-helper-BHFhmbuH.cjs +0 -1
- package/lib/api/enum/code.d.ts +0 -67
- package/lib/api/helper.d.ts +0 -32
- package/lib/api/index.d.ts +0 -12
- package/lib/api/interface.d.ts +0 -14
- package/lib/api/modules/auth/index.d.ts +0 -1
- package/lib/api/modules/auth/renzhengfuwu.d.ts +0 -50
- package/lib/api/modules/configData/heibaimingdanfuwu.d.ts +0 -36
- package/lib/api/modules/configData/index.d.ts +0 -3
- package/lib/api/modules/configData/xitongpeizhifuwu.d.ts +0 -99
- package/lib/api/modules/configData/zidianfuwu.d.ts +0 -71
- package/lib/api/modules/rbac/gangweijiekou.d.ts +0 -43
- package/lib/api/modules/rbac/index.d.ts +0 -11
- package/lib/api/modules/rbac/jiaosejiekou.d.ts +0 -50
- package/lib/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +0 -43
- package/lib/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +0 -64
- package/lib/api/modules/rbac/yonghujiekou.d.ts +0 -106
- package/lib/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +0 -36
- package/lib/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +0 -29
- package/lib/api/modules/rbac/ziyuanjiekou.d.ts +0 -85
- package/lib/api/modules/rbac/zuhuguanlijiekou.d.ts +0 -36
- package/lib/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +0 -29
- package/lib/api/modules/rbac/zuzhijiekou.d.ts +0 -64
- package/lib/api/request.d.ts +0 -2
- package/lib/api/system/app.d.ts +0 -17
- package/lib/api/system/user.d.ts +0 -24
- package/lib/assets/styles/index.d.ts +0 -6
- package/lib/colors-KAaBT84S.cjs +0 -1
- package/lib/components/NotAllowed/index.vue.d.ts +0 -2
- package/lib/components/PageHeader/index.vue.d.ts +0 -23
- package/lib/components/PageMain/index.vue.d.ts +0 -27
- package/lib/components/PassStrengthValidator/index.vue.d.ts +0 -26
- package/lib/components/PassStrengthValidator/rule.vue.d.ts +0 -8
- package/lib/components/PubinfoApp/index.vue.d.ts +0 -2
- package/lib/components/PubinfoIcon/index.vue.d.ts +0 -10
- package/lib/components/index.d.ts +0 -8
- package/lib/composables/index.d.ts +0 -4
- package/lib/composables/log.d.ts +0 -6
- package/lib/composables/theme.d.ts +0 -3
- package/lib/composables/watchDiff.d.ts +0 -2
- package/lib/config/index.d.ts +0 -1
- package/lib/config/settings.d.ts +0 -3
- package/lib/context.d.ts +0 -14
- package/lib/create.d.ts +0 -3
- package/lib/directives/index.d.ts +0 -4
- package/lib/directives/plugins/permission.d.ts +0 -6
- package/lib/index-38bsQrho.cjs +0 -1
- package/lib/index-BEqD62a0.cjs +0 -1
- package/lib/index-Bbm9CQRP.cjs +0 -1
- package/lib/index-BqHsuJkr.cjs +0 -1
- package/lib/index-JZl6Zh3L.cjs +0 -44
- package/lib/index-VGR0Mt4q.cjs +0 -240
- package/lib/index-WMo0GAa6.cjs +0 -1
- package/lib/index-_YsHduAE.cjs +0 -1
- package/lib/index-gr8kFwPx.cjs +0 -18
- package/lib/index-zvGq9tSu.cjs +0 -1
- package/lib/index.cjs +0 -1
- package/lib/index.d.ts +0 -11
- package/lib/index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-SCJ5qyPu.cjs +0 -1
- package/lib/layout/Layout.vue.d.ts +0 -20
- package/lib/layout/components/BackTop/index.vue.d.ts +0 -2
- package/lib/layout/components/Content/IframeView.vue.d.ts +0 -4
- package/lib/layout/components/Content/LinkView.vue.d.ts +0 -2
- package/lib/layout/components/Content/index.vue.d.ts +0 -2
- package/lib/layout/components/Copyright/index.vue.d.ts +0 -2
- package/lib/layout/components/Header/TopMode/More.vue.d.ts +0 -26
- package/lib/layout/components/Header/TopMode/NotCursor.vue.d.ts +0 -25
- package/lib/layout/components/Header/TopMode/index.vue.d.ts +0 -4
- package/lib/layout/components/Header/TopThinMode.vue.d.ts +0 -4
- package/lib/layout/components/Header/index.vue.d.ts +0 -19
- package/lib/layout/components/Logo/index.vue.d.ts +0 -26
- package/lib/layout/components/Menu/index.vue.d.ts +0 -10
- package/lib/layout/components/Menu/item.vue.d.ts +0 -11
- package/lib/layout/components/Menu/sub.vue.d.ts +0 -219
- package/lib/layout/components/Menu/types.d.ts +0 -42
- package/lib/layout/components/SettingBar/AppSetting.vue.d.ts +0 -12
- package/lib/layout/components/SettingBar/components/DayNightToggle.vue.d.ts +0 -9
- package/lib/layout/components/SettingBar/components/SettingBreadcrumb.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingCopyright.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingEnableTransition.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingHome.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingMenu.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingMode.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingNavSearch.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingOther.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingPage.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingTabbar.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingThemes.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingToolbar.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingTopbar.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingWidthMode.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/index.vue.d.ts +0 -2
- package/lib/layout/components/Sidebar/MainSidebar.vue.d.ts +0 -2
- package/lib/layout/components/Sidebar/SubSidebar.vue.d.ts +0 -2
- package/lib/layout/components/Sidebar/index.vue.d.ts +0 -2
- package/lib/layout/components/Tools/Breadcrumb/index.vue.d.ts +0 -17
- package/lib/layout/components/Tools/Breadcrumb/item.vue.d.ts +0 -25
- package/lib/layout/components/Tools/DayNightSwitch.vue.d.ts +0 -2
- package/lib/layout/components/Tools/HotkeysIntro.vue.d.ts +0 -4
- package/lib/layout/components/Tools/Preferences/PreferencesContent.vue.d.ts +0 -2
- package/lib/layout/components/Tools/Preferences/index.vue.d.ts +0 -4
- package/lib/layout/components/Tools/Search.vue.d.ts +0 -199
- package/lib/layout/components/Tools/index.vue.d.ts +0 -233
- package/lib/layout/components/Topbar/Tabbar/MoreAction.vue.d.ts +0 -217
- package/lib/layout/components/Topbar/Tabbar/index.vue.d.ts +0 -14
- package/lib/layout/components/Topbar/Toolbar/Favorites.vue.d.ts +0 -4
- package/lib/layout/components/Topbar/Toolbar/Star.vue.d.ts +0 -2
- package/lib/layout/components/Topbar/Toolbar/index.vue.d.ts +0 -2
- package/lib/layout/components/Topbar/index.vue.d.ts +0 -2
- package/lib/layout/composables/useContext.d.ts +0 -18
- package/lib/layout/composables/useGetComputedStyle.d.ts +0 -15
- package/lib/layout/composables/useHotkey.d.ts +0 -5
- package/lib/layout/composables/useMainPage.d.ts +0 -14
- package/lib/layout/composables/useMenu.d.ts +0 -8
- package/lib/layout/composables/useTabbar.d.ts +0 -14
- package/lib/layout/composables/useTitle.d.ts +0 -3
- package/lib/layout/composables/useViewTransition.d.ts +0 -3
- package/lib/layout/composables/useWatermark.d.ts +0 -4
- package/lib/layout/index.d.ts +0 -19
- package/lib/layout/provider.d.ts +0 -1
- package/lib/layout/ui-kit/HBadge.vue.d.ts +0 -20
- package/lib/layout/ui-kit/HButton.vue.d.ts +0 -26
- package/lib/layout/ui-kit/HCheckList.vue.d.ts +0 -20
- package/lib/layout/ui-kit/HDivider.vue.d.ts +0 -20
- package/lib/layout/ui-kit/HDropdown.vue.d.ts +0 -18
- package/lib/layout/ui-kit/HDropdownMenu.vue.d.ts +0 -26
- package/lib/layout/ui-kit/HDropdownTree.vue.d.ts +0 -32
- package/lib/layout/ui-kit/HInput.vue.d.ts +0 -17
- package/lib/layout/ui-kit/HKbd.vue.d.ts +0 -17
- package/lib/layout/ui-kit/HSelect.vue.d.ts +0 -17
- package/lib/layout/ui-kit/HTabList.vue.d.ts +0 -22
- package/lib/layout/ui-kit/HToggle.vue.d.ts +0 -14
- package/lib/layout/ui-kit/HTooltip.vue.d.ts +0 -23
- package/lib/locales/index.d.ts +0 -301
- package/lib/locales/lang/en.json.d.ts +0 -99
- package/lib/locales/lang/zh-cn.json.d.ts +0 -100
- package/lib/locales/lang/zh-tw.json.d.ts +0 -100
- package/lib/locales/ui.d.ts +0 -3
- package/lib/modules.d.ts +0 -11
- package/lib/notification-IZqPm_OK.cjs +0 -199
- package/lib/pages/personal/profile/index.vue.d.ts +0 -2
- package/lib/pages/system/[...all].vue.d.ts +0 -2
- package/lib/pages/system/change-organization/index.vue.d.ts +0 -2
- package/lib/pages/system/change-password/components/ChangePasswordForm/index.vue.d.ts +0 -18
- package/lib/pages/system/change-password/index.vue.d.ts +0 -31
- package/lib/pages/system/index.vue.d.ts +0 -2
- package/lib/pages/system/not-permission/index.vue.d.ts +0 -2
- package/lib/pages/system/reload.vue.d.ts +0 -2
- package/lib/pick-y2yLda1R.cjs +0 -1
- package/lib/question-line-Cd0CU4hr.cjs +0 -1
- package/lib/reload-6L7Dzs7h.cjs +0 -1
- package/lib/request.cjs +0 -6
- package/lib/right-C5JQ_uRB.cjs +0 -1
- package/lib/route/async.d.ts +0 -9
- package/lib/route/guard/auth.d.ts +0 -3
- package/lib/route/guard/basic.d.ts +0 -3
- package/lib/route/guard/index.d.ts +0 -3
- package/lib/route/guard/setting.d.ts +0 -3
- package/lib/route/index.d.ts +0 -7
- package/lib/route/routes.d.ts +0 -3
- package/lib/stores/enum/index.d.ts +0 -20
- package/lib/stores/helper.d.ts +0 -2
- package/lib/stores/index.d.ts +0 -5
- package/lib/stores/modules/iframe.d.ts +0 -41
- package/lib/stores/modules/index.d.ts +0 -9
- package/lib/stores/modules/keepAlive.d.ts +0 -23
- package/lib/stores/modules/menu.d.ts +0 -32
- package/lib/stores/modules/notification.d.ts +0 -18
- package/lib/stores/modules/route.d.ts +0 -42
- package/lib/stores/modules/user.d.ts +0 -3
- package/lib/stores/plugin/persist.d.ts +0 -5
- package/lib/stores/plugin/sideEffect/cleanup.d.ts +0 -5
- package/lib/stores/plugin/sideEffect/favoritesStorage.d.ts +0 -5
- package/lib/stores/plugin/sideEffect/iframeCache.d.ts +0 -5
- package/lib/stores/plugin/sideEffect/index.d.ts +0 -5
- package/lib/stores/plugin/sideEffect/tabbarStorage.d.ts +0 -5
- package/lib/style.css +0 -9
- package/lib/utils/cleanup.d.ts +0 -8
- package/lib/utils/crypto.d.ts +0 -4
- package/lib/utils/eventBus.d.ts +0 -5
- package/lib/utils/index.d.ts +0 -14
- package/lib/utils/injectionKeys.d.ts +0 -2
- package/lib/utils/storage.d.ts +0 -21
- package/lib/utils/utils.d.ts +0 -3
- package/lib/utils/watermark.d.ts +0 -51
- package/src/assets/icons/add-child.svg +0 -1
- package/src/assets/icons/authority.svg +0 -1
- package/src/assets/icons/authorize.svg +0 -1
- package/src/assets/icons/blacklist-disable.svg +0 -1
- package/src/assets/icons/blacklist-enable.svg +0 -1
- package/src/assets/icons/browser-360.svg +0 -1
- package/src/assets/icons/browser-chrome.svg +0 -1
- package/src/assets/icons/browser-edge.svg +0 -1
- package/src/assets/icons/browser-ie.svg +0 -1
- package/src/assets/icons/browser-other.svg +0 -1
- package/src/assets/icons/browser-qq.svg +0 -1
- package/src/assets/icons/browser-safari.svg +0 -1
- package/src/assets/icons/browser-uc.svg +0 -1
- package/src/assets/icons/edit.svg +0 -1
- package/src/assets/icons/empty-data.svg +0 -1
- package/src/assets/icons/icard.svg +0 -1
- package/src/assets/icons/icon_animation.svg +0 -1
- package/src/assets/icons/icon_breadcrumb.svg +0 -1
- package/src/assets/icons/icon_copyright.svg +0 -1
- package/src/assets/icons/icon_jt.svg +0 -1
- package/src/assets/icons/icon_layout.svg +0 -1
- package/src/assets/icons/icon_mainpage.svg +0 -1
- package/src/assets/icons/icon_menu.svg +0 -1
- package/src/assets/icons/icon_page_size.svg +0 -1
- package/src/assets/icons/icon_position_type.svg +0 -1
- package/src/assets/icons/icon_safe_manage.svg +0 -1
- package/src/assets/icons/icon_screen_scale.svg +0 -6
- package/src/assets/icons/icon_system_manage.svg +0 -1
- package/src/assets/icons/icon_tabbar.svg +0 -1
- package/src/assets/icons/icon_toolbar.svg +0 -1
- package/src/assets/icons/icon_topbar.svg +0 -1
- package/src/assets/icons/icon_watermark.svg +0 -1
- package/src/assets/icons/image-load-fail.svg +0 -1
- package/src/assets/icons/log-center.svg +0 -1
- package/src/assets/icons/logo-sig.svg +0 -1
- package/src/assets/icons/not-data.svg +0 -1
- package/src/assets/icons/org-main.svg +0 -1
- package/src/assets/icons/org-unmain.svg +0 -1
- package/src/assets/icons/process-management.svg +0 -1
- package/src/assets/icons/project-management.svg +0 -1
- package/src/assets/icons/rbac.svg +0 -1
- package/src/assets/icons/remove.svg +0 -1
- package/src/assets/icons/resource-app.svg +0 -1
- package/src/assets/icons/resource-btn.svg +0 -1
- package/src/assets/icons/resource-index.svg +0 -1
- package/src/assets/icons/resource-menu.svg +0 -1
- package/src/assets/icons/resource-nonmenu.svg +0 -1
- package/src/assets/icons/setting-manage.svg +0 -1
- package/src/assets/icons/test.svg +0 -1
- package/src/assets/icons/theme-check-mark.svg +0 -1
- package/src/assets/icons/theme-title.svg +0 -1
- package/src/assets/icons/tree_icon.svg +0 -1
- package/src/assets/icons/tree_icon_checked.svg +0 -1
- package/src/assets/icons/view.svg +0 -1
- package/src/assets/icons/workbench.svg +0 -1
- package/src/assets/icons/zddata.svg +0 -1
- package/src/assets/icons/zy_checked.svg +0 -1
- package/src/assets/icons/zy_default.svg +0 -1
- package/src/assets/images/layout/item1.webp +0 -0
- package/src/assets/images/layout/item1_dark.webp +0 -0
- package/src/assets/images/layout/item2.webp +0 -0
- package/src/assets/images/layout/item2_dark.webp +0 -0
- package/src/assets/images/layout/item3.webp +0 -0
- package/src/assets/images/layout/item3_dark.webp +0 -0
- package/src/assets/images/layout/item4.webp +0 -0
- package/src/assets/images/layout/item4_dark.webp +0 -0
- package/src/assets/images/layout/item5.webp +0 -0
- package/src/assets/images/layout/item5_dark.webp +0 -0
- package/src/assets/images/page-width/anto_min_w_dark.webp +0 -0
- package/src/assets/images/page-width/auto.webp +0 -0
- package/src/assets/images/page-width/auto_dark.webp +0 -0
- package/src/assets/images/page-width/auto_min_w.webp +0 -0
- package/src/assets/images/page-width/auto_min_w_dark.webp +0 -0
- package/src/assets/images/page-width/icon_auto.webp +0 -0
- package/src/assets/images/page-width/icon_auto_dark.webp +0 -0
- package/src/assets/images/page-width/icon_auto_min_w.webp +0 -0
- package/src/assets/images/page-width/icon_auto_min_w_dark.webp +0 -0
- package/src/assets/images/page-width/icon_middle.webp +0 -0
- package/src/assets/images/page-width/icon_middle_dark.webp +0 -0
- package/src/assets/images/page-width/icon_middle_max_w.webp +0 -0
- package/src/assets/images/page-width/icon_middle_max_w_dark.webp +0 -0
- package/src/assets/images/page-width/middle.webp +0 -0
- package/src/assets/images/page-width/middle_dark.webp +0 -0
- package/src/assets/images/page-width/middle_max_w.webp +0 -0
- package/src/assets/images/page-width/middle_max_w_dark.webp +0 -0
- package/src/layout/components/Tools/Notification.vue +0 -152
- package/src/pages/personal/notification.vue +0 -58
- package/src/pages/system/index.vue +0 -5
- package/src/route/async.ts +0 -18
- package/src/stores/modules/notification.ts +0 -34
- package/{es → dist}/HButton.vue_vue_type_script_setup_true_lang-CYAzn9Mg.js +0 -0
- package/{es → dist}/HDivider-DgXBhPr0.js +0 -0
- package/{es → dist}/HInput.vue_vue_type_script_setup_true_lang-DBqCXRnn.js +0 -0
- package/{es → dist}/HToggle-Cd71WKvG.js +0 -0
- package/{es → dist}/_plugin-vue_export-helper-CHgC5LLL.js +0 -0
- package/{es → dist}/api/enum/code.d.ts +0 -0
- package/{es → dist}/api/helper.d.ts +0 -0
- package/{es → dist}/api/interface.d.ts +0 -0
- package/{es → dist}/api/modules/auth/index.d.ts +0 -0
- package/{es → dist}/api/modules/auth/renzhengfuwu.d.ts +0 -0
- package/{es → dist}/api/modules/configData/heibaimingdanfuwu.d.ts +0 -0
- package/{es → dist}/api/modules/configData/index.d.ts +0 -0
- package/{es → dist}/api/modules/configData/xitongpeizhifuwu.d.ts +0 -0
- package/{es → dist}/api/modules/configData/zidianfuwu.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/gangweijiekou.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/index.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/jiaosejiekou.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/yonghujiekou.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/ziyuanjiekou.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/zuhuguanlijiekou.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/zuzhijiekou.d.ts +0 -0
- package/{es → dist}/api/request.d.ts +0 -0
- package/{es → dist}/api/system/app.d.ts +0 -0
- package/{es → dist}/api/system/user.d.ts +0 -0
- package/{es → dist}/assets/styles/index.d.ts +0 -0
- package/{es → dist}/components/NotAllowed/index.vue.d.ts +0 -0
- package/{es → dist}/components/PageHeader/index.vue.d.ts +0 -0
- package/{es → dist}/components/PageMain/index.vue.d.ts +0 -0
- package/{es → dist}/components/PassStrengthValidator/index.vue.d.ts +2 -2
- package/{es → dist}/components/PassStrengthValidator/rule.vue.d.ts +0 -0
- package/{es → dist}/components/PubinfoApp/index.vue.d.ts +0 -0
- package/{es → dist}/components/PubinfoIcon/index.vue.d.ts +0 -0
- package/{es → dist}/components/index.d.ts +0 -0
- package/{es → dist}/composables/index.d.ts +0 -0
- package/{es → dist}/composables/log.d.ts +0 -0
- package/{es → dist}/composables/theme.d.ts +0 -0
- package/{es → dist}/composables/watchDiff.d.ts +0 -0
- package/{es → dist}/config/index.d.ts +0 -0
- package/{es → dist}/config/settings.d.ts +0 -0
- package/{es → dist}/create.d.ts +0 -0
- package/{es → dist}/directives/index.d.ts +0 -0
- package/{es → dist}/directives/plugins/permission.d.ts +0 -0
- package/{es → dist}/layout/Layout.vue.d.ts +0 -0
- package/{es → dist}/layout/components/BackTop/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Content/IframeView.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Content/LinkView.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Content/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Copyright/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Header/TopMode/More.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Header/TopMode/NotCursor.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Header/TopMode/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Header/TopThinMode.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Header/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Logo/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Menu/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Menu/item.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Menu/sub.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Menu/types.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/AppSetting.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/DayNightToggle.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingBreadcrumb.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingCopyright.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingEnableTransition.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingHome.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingMenu.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingMode.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingNavSearch.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingOther.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingPage.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingTabbar.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingThemes.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingToolbar.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingTopbar.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingWidthMode.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Sidebar/MainSidebar.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Sidebar/SubSidebar.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Sidebar/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Tools/Breadcrumb/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Tools/Breadcrumb/item.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Tools/DayNightSwitch.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Tools/HotkeysIntro.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Tools/Preferences/PreferencesContent.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Tools/Preferences/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Tools/Search.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Tools/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Topbar/Tabbar/MoreAction.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Topbar/Tabbar/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Topbar/Toolbar/Favorites.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Topbar/Toolbar/Star.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Topbar/Toolbar/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Topbar/index.vue.d.ts +0 -0
- package/{es → dist}/layout/composables/useGetComputedStyle.d.ts +0 -0
- package/{es → dist}/layout/composables/useHotkey.d.ts +0 -0
- package/{es → dist}/layout/composables/useMainPage.d.ts +0 -0
- package/{es → dist}/layout/composables/useMenu.d.ts +0 -0
- package/{es → dist}/layout/composables/useTabbar.d.ts +0 -0
- package/{es → dist}/layout/composables/useTitle.d.ts +0 -0
- package/{es → dist}/layout/composables/useViewTransition.d.ts +0 -0
- package/{es → dist}/layout/composables/useWatermark.d.ts +0 -0
- package/{es → dist}/layout/index.d.ts +0 -0
- package/{es → dist}/layout/provider.d.ts +0 -0
- package/{es → dist}/layout/ui-kit/HBadge.vue.d.ts +0 -0
- package/{es → dist}/layout/ui-kit/HButton.vue.d.ts +0 -0
- package/{es → dist}/layout/ui-kit/HCheckList.vue.d.ts +2 -2
- /package/{es → dist}/layout/ui-kit/HDivider.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HDropdown.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HDropdownMenu.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HDropdownTree.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HInput.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HKbd.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HSelect.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HToggle.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HTooltip.vue.d.ts +0 -0
- /package/{es → dist}/locales/index.d.ts +0 -0
- /package/{es → dist}/locales/lang/en.json.d.ts +0 -0
- /package/{es → dist}/locales/lang/zh-cn.json.d.ts +0 -0
- /package/{es → dist}/locales/lang/zh-tw.json.d.ts +0 -0
- /package/{es → dist}/locales/ui.d.ts +0 -0
- /package/{es → dist}/modules.d.ts +0 -0
- /package/{es → dist}/pages/personal/profile/index.vue.d.ts +0 -0
- /package/{es → dist}/pages/system/[...all].vue.d.ts +0 -0
- /package/{es → dist}/pages/system/change-organization/index.vue.d.ts +0 -0
- /package/{es → dist}/pages/system/change-password/components/ChangePasswordForm/index.vue.d.ts +0 -0
- /package/{es → dist}/pages/system/change-password/index.vue.d.ts +0 -0
- /package/{es/pages/system → dist/pages/system/not-permission}/index.vue.d.ts +0 -0
- /package/{es → dist}/pages/system/reload.vue.d.ts +0 -0
- /package/{es → dist}/question-line-CfkciTFq.js +0 -0
- /package/{es → dist}/reload-CUcPYtl7.js +0 -0
- /package/{es → dist}/right-Bfe2p1o0.js +0 -0
- /package/{es → dist}/route/guard/auth.d.ts +0 -0
- /package/{es → dist}/route/guard/basic.d.ts +0 -0
- /package/{es → dist}/route/guard/index.d.ts +0 -0
- /package/{es → dist}/route/guard/setting.d.ts +0 -0
- /package/{es → dist}/stores/enum/index.d.ts +0 -0
- /package/{es → dist}/stores/helper.d.ts +0 -0
- /package/{es → dist}/stores/index.d.ts +0 -0
- /package/{es → dist}/stores/plugin/persist.d.ts +0 -0
- /package/{es → dist}/stores/plugin/sideEffect/cleanup.d.ts +0 -0
- /package/{es → dist}/stores/plugin/sideEffect/favoritesStorage.d.ts +0 -0
- /package/{es → dist}/stores/plugin/sideEffect/iframeCache.d.ts +0 -0
- /package/{es → dist}/stores/plugin/sideEffect/index.d.ts +0 -0
- /package/{es → dist}/stores/plugin/sideEffect/tabbarStorage.d.ts +0 -0
- /package/{es → dist}/utils/cleanup.d.ts +0 -0
- /package/{es → dist}/utils/crypto.d.ts +0 -0
- /package/{es → dist}/utils/eventBus.d.ts +0 -0
- /package/{es → dist}/utils/index.d.ts +0 -0
- /package/{es → dist}/utils/injectionKeys.d.ts +0 -0
- /package/{es → dist}/utils/storage.d.ts +0 -0
- /package/{es → dist}/utils/utils.d.ts +0 -0
- /package/{es → dist}/utils/watermark.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,50 +1,44 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pubinfo/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.20",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
|
-
"types": "./
|
|
8
|
-
"
|
|
9
|
-
"require": "./lib/index.cjs"
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"default": "./dist/index.js"
|
|
10
9
|
},
|
|
11
10
|
"./request": {
|
|
12
|
-
"types": "./
|
|
13
|
-
"
|
|
14
|
-
"require": "./lib/request.cjs"
|
|
11
|
+
"types": "./dist/api/index.d.ts",
|
|
12
|
+
"default": "./dist/request.js"
|
|
15
13
|
},
|
|
16
|
-
"./style.css":
|
|
17
|
-
|
|
18
|
-
"require": "./lib/style.css"
|
|
19
|
-
},
|
|
20
|
-
"./types": "./types/index.d.ts"
|
|
14
|
+
"./style.css": "./dist/style.css",
|
|
15
|
+
"./types": "./dist/index.d.ts"
|
|
21
16
|
},
|
|
22
|
-
"main": "./
|
|
23
|
-
"module": "./
|
|
24
|
-
"types": "./
|
|
17
|
+
"main": "./dist/index.js",
|
|
18
|
+
"module": "./dist/index.js",
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
25
20
|
"files": [
|
|
26
|
-
"
|
|
27
|
-
"lib",
|
|
21
|
+
"dist",
|
|
28
22
|
"src",
|
|
29
23
|
"types"
|
|
30
24
|
],
|
|
31
25
|
"peerDependencies": {
|
|
32
|
-
"alova": "^3.2.
|
|
33
|
-
"pinia": "^2.3.
|
|
26
|
+
"alova": "^3.2.10",
|
|
27
|
+
"pinia": "^2.3.1",
|
|
34
28
|
"vue": "^3.5.13",
|
|
35
|
-
"vue-i18n": "^
|
|
29
|
+
"vue-i18n": "^10.0.5",
|
|
36
30
|
"vue-router": "^4.5.0",
|
|
37
|
-
"@pubinfo/config": "2.0.0-beta.
|
|
31
|
+
"@pubinfo/config": "2.0.0-beta.20"
|
|
38
32
|
},
|
|
39
33
|
"dependencies": {
|
|
40
34
|
"@alova/adapter-axios": "^2.0.13",
|
|
41
35
|
"@ant-design/icons-vue": "^7.0.1",
|
|
42
36
|
"@headlessui/vue": "^1.7.23",
|
|
43
37
|
"@imengyu/vue3-context-menu": "^1.4.4",
|
|
44
|
-
"@pubinfo/pro-components": "^1.
|
|
38
|
+
"@pubinfo/pro-components": "^1.7.0",
|
|
45
39
|
"@unocss/reset": "^65.5.0",
|
|
46
|
-
"@vueuse/core": "^
|
|
47
|
-
"@vueuse/integrations": "^
|
|
40
|
+
"@vueuse/core": "^13.0.0",
|
|
41
|
+
"@vueuse/integrations": "^13.0.0",
|
|
48
42
|
"ant-design-vue": "^4.2.6",
|
|
49
43
|
"axios": "^1.8.1",
|
|
50
44
|
"consola": "^3.4.0",
|
|
@@ -78,9 +72,9 @@
|
|
|
78
72
|
"@types/zxcvbn": "^4.4.5",
|
|
79
73
|
"@vitejs/plugin-vue": "^5.2.1",
|
|
80
74
|
"@vitejs/plugin-vue-jsx": "^4.1.1",
|
|
81
|
-
"alova": "^3.2.
|
|
75
|
+
"alova": "^3.2.10",
|
|
82
76
|
"pinia": "^2.3.1",
|
|
83
|
-
"sass": "1.
|
|
77
|
+
"sass": "1.83.0",
|
|
84
78
|
"type-fest": "^4.36.0",
|
|
85
79
|
"unocss": "^65.5.0",
|
|
86
80
|
"unplugin-auto-import": "^0.18.6",
|
|
@@ -89,9 +83,9 @@
|
|
|
89
83
|
"vite": "^6.2.0",
|
|
90
84
|
"vite-plugin-dts": "^4.5.3",
|
|
91
85
|
"vue": "^3.5.13",
|
|
92
|
-
"vue-i18n": "^
|
|
86
|
+
"vue-i18n": "^10.0.5",
|
|
93
87
|
"vue-router": "^4.5.0",
|
|
94
|
-
"@pubinfo/config": "2.0.0-beta.
|
|
88
|
+
"@pubinfo/config": "2.0.0-beta.20"
|
|
95
89
|
},
|
|
96
90
|
"scripts": {
|
|
97
91
|
"dev": "vite build -w -m watch",
|
package/src/api/index.ts
CHANGED
|
@@ -14,6 +14,8 @@ import {
|
|
|
14
14
|
ReSetTokenAndRefreshToken,
|
|
15
15
|
} from './helper';
|
|
16
16
|
|
|
17
|
+
export { RESPONSE_CODE } from './enum/code';
|
|
18
|
+
|
|
17
19
|
export function createTokenAuthentication() {
|
|
18
20
|
return createServerTokenAuthentication<typeof VueHook, typeof axiosRequestAdapter>({
|
|
19
21
|
/**
|
|
@@ -72,4 +74,4 @@ export function createRequest(options: RequestOptions) {
|
|
|
72
74
|
return instance;
|
|
73
75
|
}
|
|
74
76
|
|
|
75
|
-
export
|
|
77
|
+
export * from './interface';
|
package/src/composables/auth.ts
CHANGED
|
@@ -14,7 +14,7 @@ export function useAuth() {
|
|
|
14
14
|
const settingsStore = useSettingsStore();
|
|
15
15
|
const userStore = useUserStore();
|
|
16
16
|
if (settingsStore.settings.app.enablePermission) {
|
|
17
|
-
return userStore.permissions.includes(permission);
|
|
17
|
+
return userStore.user.permissions.includes(permission);
|
|
18
18
|
}
|
|
19
19
|
else {
|
|
20
20
|
return true;
|
package/src/context.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Context } from './interface';
|
|
2
2
|
import { createHooks } from 'hookable';
|
|
3
3
|
import { auth, basic } from 'pubinfo:project/api/request';
|
|
4
|
-
import layout from 'pubinfo:project/layouts/index.vue';
|
|
5
4
|
|
|
6
5
|
export const hooks = createHooks();
|
|
7
6
|
|
|
@@ -24,7 +23,7 @@ export function usePubinfoContext() {
|
|
|
24
23
|
*/
|
|
25
24
|
export function readProject() {
|
|
26
25
|
return {
|
|
27
|
-
layout,
|
|
26
|
+
layout: () => import('pubinfo:project/layouts/index.vue'),
|
|
28
27
|
request: { auth, basic },
|
|
29
28
|
};
|
|
30
29
|
}
|
package/src/index.ts
CHANGED
package/src/interface.ts
CHANGED
|
@@ -20,9 +20,20 @@ export interface Options {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export interface Module {
|
|
23
|
+
/** 唯一值 */
|
|
23
24
|
name: string
|
|
25
|
+
/** 初始化内容 */
|
|
24
26
|
setup?: (ctx: Context) => void
|
|
27
|
+
/**
|
|
28
|
+
* 插件调用顺序:
|
|
29
|
+
* - `enforce: pre` 插件
|
|
30
|
+
* - 腾龙核心功能(即内置的各类路由守卫、状态管理等)
|
|
31
|
+
* - 普通插件
|
|
32
|
+
* - 项目初始化函数(即 `createPubinfo` 第三个参数)
|
|
33
|
+
* - `enforce: post` 插件
|
|
34
|
+
*/
|
|
25
35
|
enforce?: 'pre' | 'post'
|
|
36
|
+
/** 钩子函数 */
|
|
26
37
|
hooks?: Partial<Hooks>
|
|
27
38
|
}
|
|
28
39
|
|
|
@@ -31,8 +31,6 @@ const menuRef = ref<HTMLElement | null>();
|
|
|
31
31
|
const { width } = useElementSize(menuRef);
|
|
32
32
|
const menuHideIndex = ref(0);
|
|
33
33
|
|
|
34
|
-
watchMenuItem();
|
|
35
|
-
|
|
36
34
|
const moreApple = computed(() => {
|
|
37
35
|
return menuHideIndex.value === menuStore.allMenus.length - 1;
|
|
38
36
|
});
|
|
@@ -42,19 +40,6 @@ function moreApplyClick(index: number, item: Menu.recordMainRaw) {
|
|
|
42
40
|
switchTo(menuIndex, item);
|
|
43
41
|
}
|
|
44
42
|
|
|
45
|
-
function watchMenuItem() {
|
|
46
|
-
onMounted(() => {
|
|
47
|
-
watch(
|
|
48
|
-
width,
|
|
49
|
-
() => {
|
|
50
|
-
menuHideIndex.value = fitMenus();
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
immediate: true,
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
|
|
58
43
|
// 计算顶部菜单宽度
|
|
59
44
|
function fitMenus() {
|
|
60
45
|
const containerRoot = menuRef.value!;
|
|
@@ -89,6 +74,17 @@ function fitMenus() {
|
|
|
89
74
|
|
|
90
75
|
return restrictedIndex;
|
|
91
76
|
}
|
|
77
|
+
|
|
78
|
+
onMounted(() => {
|
|
79
|
+
watch(
|
|
80
|
+
width,
|
|
81
|
+
() => {
|
|
82
|
+
menuHideIndex.value = fitMenus();
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
immediate: true,
|
|
86
|
+
});
|
|
87
|
+
});
|
|
92
88
|
</script>
|
|
93
89
|
|
|
94
90
|
<template>
|
|
@@ -99,7 +95,7 @@ function fitMenus() {
|
|
|
99
95
|
[`menu-active-${settingsStore.settings.menu.menuActiveStyle}`]: settingsStore.settings.menu.menuActiveStyle !== '',
|
|
100
96
|
}"
|
|
101
97
|
>
|
|
102
|
-
<template v-for="(item, index) in menuStore.allMenus" :key="index">
|
|
98
|
+
<template v-for="(item, index) in menuStore.allMenus" :key="item?.meta?.title || index">
|
|
103
99
|
<div
|
|
104
100
|
class="menu-item relative transition-all"
|
|
105
101
|
invisible
|
|
@@ -37,6 +37,8 @@ const [open, setOpen] = useToggle(false);
|
|
|
37
37
|
</template>
|
|
38
38
|
|
|
39
39
|
<style lang="scss" scoped>
|
|
40
|
+
@use "sass:color";
|
|
41
|
+
|
|
40
42
|
.app-setting-warp {
|
|
41
43
|
position: relative;
|
|
42
44
|
position: fixed;
|
|
@@ -92,7 +94,7 @@ const [open, setOpen] = useToggle(false);
|
|
|
92
94
|
.divider {
|
|
93
95
|
width: 10px;
|
|
94
96
|
height: 1px;
|
|
95
|
-
background-color:
|
|
97
|
+
background-color: color.scale($color: #fff, $lightness: -30%)
|
|
96
98
|
}
|
|
97
99
|
|
|
98
100
|
.icon {
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { useFullscreen } from '@vueuse/core';
|
|
3
3
|
import { useI18n } from 'vue-i18n';
|
|
4
4
|
import CarbonUserAvatarFilledAlt from '~icons/carbon/user-avatar-filled-alt';
|
|
5
|
-
// import FluentAlert12Regular from '~icons/fluent/alert-12-regular';
|
|
6
5
|
import FluentArrowSync16Filled from '~icons/fluent/arrow-sync-16-filled';
|
|
7
6
|
import FluentFullScreenMaximize16Filled from '~icons/fluent/full-screen-maximize-16-filled';
|
|
8
7
|
import FluentFullScreenMinimize16Filled from '~icons/fluent/full-screen-minimize-16-filled';
|
|
@@ -17,7 +16,6 @@ import useViewTransition from '../../composables/useViewTransition';
|
|
|
17
16
|
import DayNightSwitch from './DayNightSwitch.vue';
|
|
18
17
|
import HotkeysIntro from './HotkeysIntro.vue';
|
|
19
18
|
// import I18nSelector from './I18nSelector.vue';
|
|
20
|
-
// import Notification from './Notification.vue';
|
|
21
19
|
import Preferences from './Preferences/index.vue';
|
|
22
20
|
import Search from './Search.vue';
|
|
23
21
|
|
|
@@ -26,9 +24,7 @@ defineOptions({
|
|
|
26
24
|
});
|
|
27
25
|
|
|
28
26
|
const router = useRouter();
|
|
29
|
-
const { settingsStore, userStore,
|
|
30
|
-
|
|
31
|
-
notificationStore.init();
|
|
27
|
+
const { settingsStore, userStore, generateI18nTitle } = useContext();
|
|
32
28
|
|
|
33
29
|
const { t } = useI18n();
|
|
34
30
|
|
|
@@ -43,6 +39,7 @@ const userMenu = computed(() => [
|
|
|
43
39
|
[
|
|
44
40
|
{
|
|
45
41
|
label: generateI18nTitle('route.home', settingsStore.settings.home.title),
|
|
42
|
+
icon: 'i-ant-design:home-twotone',
|
|
46
43
|
handle: () => router.push({ name: 'Home' }),
|
|
47
44
|
hide: !settingsStore.settings.home.enable,
|
|
48
45
|
},
|
|
@@ -67,9 +64,9 @@ const userMenu = computed(() => [
|
|
|
67
64
|
icon: 'i-iconamoon-synchronize-duotone',
|
|
68
65
|
handle: () => router.push({
|
|
69
66
|
name: 'ChangeOrganization',
|
|
70
|
-
params: { orgId: userStore.orgId },
|
|
67
|
+
params: { orgId: userStore.user.orgId },
|
|
71
68
|
}),
|
|
72
|
-
hide: userStore.orgList.length <= 1,
|
|
69
|
+
hide: userStore.user.orgList.length <= 1,
|
|
73
70
|
},
|
|
74
71
|
{
|
|
75
72
|
label: t('route.personal.profile'),
|
|
@@ -133,7 +130,7 @@ function toggleColorScheme(event: MouseEvent) {
|
|
|
133
130
|
|
|
134
131
|
const avatarError = ref(false);
|
|
135
132
|
|
|
136
|
-
watch(() => userStore.avatar, () => {
|
|
133
|
+
watch(() => userStore.user.avatar, () => {
|
|
137
134
|
if (avatarError.value) {
|
|
138
135
|
avatarError.value = false;
|
|
139
136
|
}
|
|
@@ -175,20 +172,7 @@ const searchComponentsClass = computed(() => {
|
|
|
175
172
|
>
|
|
176
173
|
<IconamoonSearch text="14px" />
|
|
177
174
|
</span>
|
|
178
|
-
<!-- <
|
|
179
|
-
v-if="settingsStore.settings.toolbar.enableNotification"
|
|
180
|
-
class="item"
|
|
181
|
-
>
|
|
182
|
-
<HBadge
|
|
183
|
-
:value="notificationStore.total"
|
|
184
|
-
>
|
|
185
|
-
<FluentAlert12Regular text="15px" />
|
|
186
|
-
</HBadge>
|
|
187
|
-
<template #dropdown>
|
|
188
|
-
<Notification />
|
|
189
|
-
</template>
|
|
190
|
-
</HDropdown>
|
|
191
|
-
<I18nSelector class="item">
|
|
175
|
+
<!-- <I18nSelector class="item">
|
|
192
176
|
<RiTranslate text="15px" />
|
|
193
177
|
</I18nSelector> -->
|
|
194
178
|
<span
|
|
@@ -210,8 +194,8 @@ const searchComponentsClass = computed(() => {
|
|
|
210
194
|
</div>
|
|
211
195
|
<div flex-center cursor-pointer gap-1>
|
|
212
196
|
<img
|
|
213
|
-
v-if="userStore.avatar && !avatarError"
|
|
214
|
-
:src="userStore.avatar"
|
|
197
|
+
v-if="userStore.user.avatar && !avatarError"
|
|
198
|
+
:src="userStore.user.avatar"
|
|
215
199
|
:onerror="() => (avatarError = true)"
|
|
216
200
|
class="h-[24px] w-[24px] rounded-full"
|
|
217
201
|
>
|
|
@@ -222,7 +206,7 @@ const searchComponentsClass = computed(() => {
|
|
|
222
206
|
<PhLineVerticalThin />
|
|
223
207
|
<HDropdownMenu :items="userMenu">
|
|
224
208
|
<div flex-center cursor-pointer gap-1>
|
|
225
|
-
{{ userStore.account }}
|
|
209
|
+
{{ userStore.user.account }}
|
|
226
210
|
<MaterialSymbolsExpandMoreRounded ml="5px" mr="10px" />
|
|
227
211
|
</div>
|
|
228
212
|
</HDropdownMenu>
|
|
@@ -3,7 +3,6 @@ import type {
|
|
|
3
3
|
useIframeStore,
|
|
4
4
|
useKeepAliveStore,
|
|
5
5
|
useMenuStore,
|
|
6
|
-
useNotificationStore,
|
|
7
6
|
useRouteStore,
|
|
8
7
|
useSettingsStore,
|
|
9
8
|
useTabbarStore,
|
|
@@ -16,7 +15,6 @@ interface LayoutContext {
|
|
|
16
15
|
keepAliveStore: ReturnType<typeof useKeepAliveStore>
|
|
17
16
|
iframeStore: ReturnType<typeof useIframeStore>
|
|
18
17
|
userStore: ReturnType<typeof useUserStore>
|
|
19
|
-
notificationStore: ReturnType<typeof useNotificationStore>
|
|
20
18
|
menuStore: ReturnType<typeof useMenuStore>
|
|
21
19
|
routeStore: ReturnType<typeof useRouteStore>
|
|
22
20
|
tabbarStore: ReturnType<typeof useTabbarStore>
|
|
@@ -27,11 +27,11 @@ export default function useWatermark() {
|
|
|
27
27
|
const type = settingsStore.settings.watermark.text;
|
|
28
28
|
switch (type) {
|
|
29
29
|
case 'U':
|
|
30
|
-
return `${userStore.account}`;
|
|
30
|
+
return `${userStore.user.account}`;
|
|
31
31
|
case 'O':
|
|
32
32
|
return `${userStore.userOrgName}`;
|
|
33
33
|
case 'OU':
|
|
34
|
-
return `${userStore.userOrgName} ${userStore.account}`;
|
|
34
|
+
return `${userStore.userOrgName} ${userStore.user.account}`;
|
|
35
35
|
default:
|
|
36
36
|
return type;
|
|
37
37
|
}
|
package/src/layout/provider.ts
CHANGED
|
@@ -3,7 +3,6 @@ import {
|
|
|
3
3
|
useIframeStore,
|
|
4
4
|
useKeepAliveStore,
|
|
5
5
|
useMenuStore,
|
|
6
|
-
useNotificationStore,
|
|
7
6
|
useRouteStore,
|
|
8
7
|
useSettingsStore,
|
|
9
8
|
useTabbarStore,
|
|
@@ -33,7 +32,6 @@ export const Provider = defineComponent({
|
|
|
33
32
|
const keepAliveStore = useKeepAliveStore();
|
|
34
33
|
const iframeStore = useIframeStore();
|
|
35
34
|
const userStore = useUserStore();
|
|
36
|
-
const notificationStore = useNotificationStore();
|
|
37
35
|
const routeStore = useRouteStore();
|
|
38
36
|
const tabbarStore = useTabbarStore();
|
|
39
37
|
const favoritesStore = useFavoritesStore();
|
|
@@ -46,7 +44,6 @@ export const Provider = defineComponent({
|
|
|
46
44
|
keepAliveStore,
|
|
47
45
|
iframeStore,
|
|
48
46
|
userStore,
|
|
49
|
-
notificationStore,
|
|
50
47
|
routeStore,
|
|
51
48
|
tabbarStore,
|
|
52
49
|
favoritesStore,
|
|
@@ -11,7 +11,7 @@ const userStore = useUserStore();
|
|
|
11
11
|
const router = useRouter();
|
|
12
12
|
|
|
13
13
|
// 切断响应式,否则组织清楚后会导致页面闪烁
|
|
14
|
-
const rawOrganization = toRaw(userStore.orgList);
|
|
14
|
+
const rawOrganization = toRaw(userStore.user.orgList);
|
|
15
15
|
const orgList = computed(() => {
|
|
16
16
|
const org = rawOrganization.map((item) => {
|
|
17
17
|
return {
|
|
@@ -37,7 +37,7 @@ async function changeOrganization() {
|
|
|
37
37
|
const org = orgList.value[activeIndex.value];
|
|
38
38
|
const orgId = org?.orgId;
|
|
39
39
|
if (orgId) {
|
|
40
|
-
if (orgId === userStore.orgId) {
|
|
40
|
+
if (orgId === userStore.user.orgId) {
|
|
41
41
|
message.error('请避免切换到当前已选组织');
|
|
42
42
|
}
|
|
43
43
|
else {
|
|
@@ -83,7 +83,7 @@ async function changeOrganization() {
|
|
|
83
83
|
<span mr-10px>
|
|
84
84
|
{{ item.label }}
|
|
85
85
|
</span>
|
|
86
|
-
<a-tag v-if="userStore.orgId === item.orgId" color="blue">
|
|
86
|
+
<a-tag v-if="userStore.user.orgId === item.orgId" color="blue">
|
|
87
87
|
当前使用组织
|
|
88
88
|
</a-tag>
|
|
89
89
|
<a-tag v-if="item.main" color="red">
|
package/src/route/index.ts
CHANGED
package/src/route/routes.ts
CHANGED
|
@@ -1,9 +1,75 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Route } from '#/vue-router';
|
|
2
2
|
import type { RouteRecordRaw } from 'vue-router';
|
|
3
3
|
import { readProject } from '@/context';
|
|
4
4
|
import { useSettingsStore, useUserStore } from '@/stores';
|
|
5
5
|
import { isUndefined } from 'lodash-es';
|
|
6
6
|
|
|
7
|
+
let asyncRoutes: Route.recordMainRaw[] = [];
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* 定义并注册动态路由
|
|
11
|
+
*/
|
|
12
|
+
export function defineAsyncRoutes(routes: Route.recordMainRaw[]) {
|
|
13
|
+
asyncRoutes = [...asyncRoutes, ...routes];
|
|
14
|
+
return routes;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* 读取注册的动态路由
|
|
19
|
+
*/
|
|
20
|
+
export function getAsyncRoutes() {
|
|
21
|
+
return asyncRoutes;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const systemRoutes: RouteRecordRaw[] = [
|
|
25
|
+
{
|
|
26
|
+
path: '/',
|
|
27
|
+
component: readProject().layout,
|
|
28
|
+
meta: {
|
|
29
|
+
title: () => useSettingsStore().settings.home.title,
|
|
30
|
+
breadcrumb: false,
|
|
31
|
+
},
|
|
32
|
+
children: [
|
|
33
|
+
{
|
|
34
|
+
path: 'reload',
|
|
35
|
+
name: 'Reload',
|
|
36
|
+
component: () => import('@/pages/system/reload.vue'),
|
|
37
|
+
meta: {
|
|
38
|
+
title: '重新加载',
|
|
39
|
+
breadcrumb: false,
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
path: 'personal/profile',
|
|
44
|
+
name: 'Profile',
|
|
45
|
+
component: () => import('@/pages/personal/profile/index.vue'),
|
|
46
|
+
meta: {
|
|
47
|
+
title: '个人中心',
|
|
48
|
+
i18n: 'route.personal.profile',
|
|
49
|
+
icon: 'i-iconamoon-profile-duotone',
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
},
|
|
54
|
+
];
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* 定义并注册系统路由(含Layout)
|
|
58
|
+
*/
|
|
59
|
+
export function defineSystemRoutes(routes: RouteRecordRaw[]) {
|
|
60
|
+
systemRoutes[0].children = [...(systemRoutes?.[0]?.children ?? []), ...routes];
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* 读取注册的系统路由
|
|
65
|
+
*/
|
|
66
|
+
export function getSystemRoutes() {
|
|
67
|
+
return systemRoutes;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* 内置静态路由
|
|
72
|
+
*/
|
|
7
73
|
export const constantRoutes: RouteRecordRaw[] = [
|
|
8
74
|
{
|
|
9
75
|
path: '/change-password/:changePassWordToken',
|
|
@@ -27,8 +93,8 @@ export const constantRoutes: RouteRecordRaw[] = [
|
|
|
27
93
|
name: 'ChangeOrganization',
|
|
28
94
|
component: () => import('@/pages/system/change-organization/index.vue'),
|
|
29
95
|
beforeEnter: (to) => {
|
|
30
|
-
const
|
|
31
|
-
if (isUndefined(to.params.orgId) || to.params.orgId !== user.orgId) {
|
|
96
|
+
const userStore = useUserStore();
|
|
97
|
+
if (isUndefined(to.params.orgId) || to.params.orgId !== userStore.user.orgId) {
|
|
32
98
|
return { name: 'Login' };
|
|
33
99
|
}
|
|
34
100
|
return true;
|
|
@@ -56,55 +122,3 @@ export const constantRoutes: RouteRecordRaw[] = [
|
|
|
56
122
|
},
|
|
57
123
|
},
|
|
58
124
|
];
|
|
59
|
-
|
|
60
|
-
export const systemRoutes: RouteRecordRaw[] = [
|
|
61
|
-
{
|
|
62
|
-
path: '/',
|
|
63
|
-
component: readProject().layout,
|
|
64
|
-
meta: {
|
|
65
|
-
title: () => useSettingsStore().settings.home.title,
|
|
66
|
-
breadcrumb: false,
|
|
67
|
-
},
|
|
68
|
-
children: [
|
|
69
|
-
{
|
|
70
|
-
path: '',
|
|
71
|
-
name: 'Home',
|
|
72
|
-
component: () => import('@/pages/system/index.vue'),
|
|
73
|
-
meta: {
|
|
74
|
-
title: () => useSettingsStore().settings.home.title,
|
|
75
|
-
i18n: 'route.home',
|
|
76
|
-
icon: 'i-ant-design:home-twotone',
|
|
77
|
-
breadcrumb: false,
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
path: 'reload',
|
|
82
|
-
name: 'Reload',
|
|
83
|
-
component: () => import('@/pages/system/reload.vue'),
|
|
84
|
-
meta: {
|
|
85
|
-
title: '重新加载',
|
|
86
|
-
breadcrumb: false,
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
path: 'personal/profile',
|
|
91
|
-
name: 'Profile',
|
|
92
|
-
component: () => import('@/pages/personal/profile/index.vue'),
|
|
93
|
-
meta: {
|
|
94
|
-
title: '个人中心',
|
|
95
|
-
i18n: 'route.personal.profile',
|
|
96
|
-
icon: 'i-iconamoon-profile-duotone',
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
// {
|
|
100
|
-
// path: 'personal/notification',
|
|
101
|
-
// name: 'Notification',
|
|
102
|
-
// component: () => import('@/pages/personal/notification.vue'),
|
|
103
|
-
// meta: {
|
|
104
|
-
// title: '通知中心',
|
|
105
|
-
// i18n: 'route.personal.notification',
|
|
106
|
-
// },
|
|
107
|
-
// },
|
|
108
|
-
],
|
|
109
|
-
},
|
|
110
|
-
];
|
package/src/stores/helper.ts
CHANGED
|
@@ -13,8 +13,8 @@ export function getfavoritesMemoryKey() {
|
|
|
13
13
|
|
|
14
14
|
function getUserPrefix() {
|
|
15
15
|
const userStore = useUserStore();
|
|
16
|
-
const userId = userStore.userId;
|
|
17
|
-
const orgId = userStore.orgId;
|
|
16
|
+
const userId = userStore.user.userId;
|
|
17
|
+
const orgId = userStore.user.orgId;
|
|
18
18
|
return getHash(`${orgId}${userId}`);
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
export { default as useFavoritesStore } from './favorites';
|
|
2
|
+
export * from './favorites';
|
|
2
3
|
export { default as useIframeStore } from './iframe';
|
|
4
|
+
export * from './iframe';
|
|
3
5
|
export { default as useKeepAliveStore } from './keepAlive';
|
|
6
|
+
export * from './keepAlive';
|
|
4
7
|
export { default as useMenuStore } from './menu';
|
|
5
|
-
export
|
|
8
|
+
export * from './menu';
|
|
6
9
|
export { default as useRouteStore } from './route';
|
|
10
|
+
export * from './route';
|
|
7
11
|
export { default as useSettingsStore } from './settings';
|
|
12
|
+
export * from './settings';
|
|
8
13
|
export { default as useTabbarStore } from './tabbar';
|
|
14
|
+
export * from './tabbar';
|
|
9
15
|
export { default as useUserStore } from './user';
|
|
16
|
+
export * from './user';
|