@pubinfo/core 2.0.0-beta.9 → 2.0.0-rc.2
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-BQT7OI6K.js → AppSetting-D2RJrc9O.js} +37 -39
- package/dist/{HCheckList.vue_vue_type_script_setup_true_lang-D4u_haxr.js → HCheckList.vue_vue_type_script_setup_true_lang-DusVz35O.js} +12 -14
- package/dist/HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js +20 -0
- package/dist/HToggle-DMcVgMVY.js +34 -0
- package/dist/PreferencesContent-Dtd9rtew.js +923 -0
- package/dist/{SettingBreadcrumb-CgugOTgx.js → SettingBreadcrumb-QSCSviKM.js} +9 -9
- package/dist/{SettingCopyright-BPeCJBLi.js → SettingCopyright-Dr5P6yfq.js} +8 -8
- package/dist/{SettingEnableTransition-BK0_EH_N.js → SettingEnableTransition-DGiHEbCI.js} +20 -21
- package/dist/{SettingHome-DGnxlXLd.js → SettingHome-CEPcBlds.js} +20 -20
- package/dist/{SettingMenu-BqAd9zbL.js → SettingMenu-BJdjnRA6.js} +26 -26
- package/dist/{SettingMode-CgA3XDwW.js → SettingMode-BnuCHoEY.js} +11 -12
- package/dist/{SettingNavSearch-WFnkcRQ3.js → SettingNavSearch-CiU4BmlU.js} +9 -9
- package/dist/{SettingOther-CG4RI6mO.js → SettingOther-DTHjVlFe.js} +13 -13
- package/dist/SettingPage-D75_Nf05.js +29 -0
- package/dist/{SettingTabbar-CQA6ZT9l.js → SettingTabbar-D48dzvgA.js} +18 -18
- package/dist/SettingThemes-D-8vTs5n.js +142 -0
- package/dist/{SettingToolbar-DdR2940j.js → SettingToolbar-DjIjm9V-.js} +10 -10
- package/dist/{SettingTopbar-C_jYO_Ax.js → SettingTopbar-Cg30OTH3.js} +16 -16
- package/dist/{SettingWidthMode-ir_28SE3.js → SettingWidthMode-BKV_7kb8.js} +19 -20
- package/dist/{TopThinMode-jHDpKsma.js → TopThinMode-JFYsp_lJ.js} +1 -1
- package/dist/built-in/authentication/helper.d.ts +1 -0
- package/dist/built-in/authentication/index.d.ts +10 -0
- package/dist/built-in/authentication/interface.d.ts +7 -0
- package/dist/built-in/authentication/router.d.ts +2 -0
- package/dist/built-in/authorization/directives.d.ts +2 -0
- package/dist/built-in/authorization/helper.d.ts +6 -0
- package/dist/built-in/authorization/index.d.ts +7 -0
- package/dist/built-in/authorization/router.d.ts +3 -0
- package/dist/built-in/index.d.ts +8 -0
- package/dist/{layout → built-in/layout-component}/Layout.vue.d.ts +2 -2
- package/dist/{layout → built-in/layout-component}/components/Header/TopMode/More.vue.d.ts +1 -1
- package/dist/{layout → built-in/layout-component}/components/Header/TopMode/NotCursor.vue.d.ts +2 -0
- package/dist/{layout → built-in/layout-component}/components/Menu/sub.vue.d.ts +43 -43
- package/dist/{layout → built-in/layout-component}/components/Menu/types.d.ts +1 -1
- package/dist/{layout → built-in/layout-component}/components/Tools/Search.vue.d.ts +43 -43
- package/dist/built-in/layout-component/components/Tools/index.vue.d.ts +27 -0
- package/dist/built-in/layout-component/components/Topbar/Tabbar/MoreAction.vue.d.ts +11 -0
- package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HDialog.vue.d.ts +1 -1
- package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HSlideover.vue.d.ts +1 -1
- package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HTabList.vue.d.ts +2 -2
- package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HTooltip.vue.d.ts +1 -1
- package/dist/{layout → built-in/layout-component}/composables/useContext.d.ts +1 -1
- package/dist/built-in/layout-component/composables/useGlobalSearch.d.ts +19 -0
- package/dist/{layout → built-in/layout-component}/composables/useHotkey.d.ts +1 -1
- package/dist/{layout → built-in/layout-component}/composables/useMenu.d.ts +1 -1
- package/dist/{layout → built-in/layout-component}/index.d.ts +5 -4
- package/dist/built-in/layout-component/utils/eventBus.d.ts +5 -0
- package/dist/built-in/layout-component/utils/index.d.ts +3 -0
- package/dist/{utils → built-in/layout-component/utils}/watermark.d.ts +1 -1
- package/dist/built-in/locales/helpler.d.ts +594 -0
- package/dist/built-in/locales/index.d.ts +5 -0
- package/dist/built-in/n-progress/index.d.ts +6 -0
- package/dist/built-in/pinia-plugin/enum.d.ts +1 -0
- package/dist/built-in/pinia-plugin/index.d.ts +5 -0
- package/dist/built-in/pinia-plugin/plugins/persist.d.ts +3 -0
- package/dist/built-in/pre-access/index.d.ts +7 -0
- package/dist/built-in/settings/index.d.ts +5 -0
- package/dist/built-in/settings/router.d.ts +3 -0
- package/dist/{colors-gu4NABiz.js → colors-CODcBxrF.js} +1 -1
- package/dist/core/create.d.ts +2 -0
- package/dist/core/ctx.d.ts +1 -0
- package/dist/core/index.d.ts +4 -0
- package/dist/core/interface.d.ts +74 -0
- package/dist/{modules.d.ts → core/modules.d.ts} +9 -0
- package/dist/{api/index.d.ts → core/request.d.ts} +2 -4
- package/dist/core/resolver/icon.d.ts +5 -0
- package/dist/core/resolver/index.d.ts +4 -0
- package/dist/core/resolver/layout.d.ts +2 -0
- package/dist/core/resolver/page.d.ts +17 -0
- package/dist/core/resolver/resolver.d.ts +10 -0
- package/dist/{api → features/api}/modules/auth/renzhengfuwu.d.ts +7 -0
- package/dist/{api → features/api}/modules/configData/index.d.ts +1 -1
- package/dist/{api → features/api}/modules/rbac/pubJiaosezukongzhiqi.d.ts +7 -0
- package/dist/{api → features/api}/modules/rbac/ziyuanjiekou.d.ts +7 -0
- package/dist/features/api/request.d.ts +2 -0
- package/dist/{assets → features/assets}/styles/index.d.ts +2 -3
- package/dist/{composables → features/composables}/auth.d.ts +1 -1
- package/dist/features/context/index.d.ts +12 -0
- package/dist/features/enum.d.ts +21 -0
- package/dist/features/index.d.ts +7 -0
- package/dist/features/router/asyncRoutes.d.ts +14 -0
- package/dist/features/router/index.d.ts +2 -0
- package/dist/features/router/systemRoutes.d.ts +9 -0
- package/dist/features/stores/index.d.ts +1 -0
- package/dist/{stores → features/stores}/modules/favorites.d.ts +2 -2
- package/dist/{stores → features/stores}/modules/route.d.ts +6 -6
- package/dist/{stores → features/stores}/modules/tabbar.d.ts +1 -1
- package/dist/features/stores/modules/user.d.ts +36 -0
- package/dist/features/stores/utils/crypto.d.ts +1 -0
- package/dist/features/stores/utils/index.d.ts +2 -0
- package/dist/features/stores/utils/routerHelper.d.ts +17 -0
- package/dist/index-BAoB7aoj.js +49 -0
- package/dist/{reload-CUcPYtl7.js → index-BD2fkZis.js} +5 -5
- package/dist/index-BROqFYXS.js +44 -0
- package/dist/{index-CjsnFBwd.js → index-BVLkBCRY.js} +7733 -8240
- package/dist/index-D4_xmL_A.js +258 -0
- package/dist/index-DQn1WFMa.js +139 -0
- package/dist/{index-CWIfG62O.js → index-DmcblkoZ.js} +1804 -1897
- package/dist/{index-NpS61xSA.js → index-DvJr0paY.js} +54 -54
- package/dist/index-Jd3PYkpj.js +52561 -0
- package/dist/index-RT-QBzm0.js +234 -0
- package/dist/index.d.ts +23 -11
- package/dist/index.js +59 -72
- package/dist/pick-BLJM77QN.js +12 -0
- package/dist/style.css +3 -3
- package/dist/utils/index.d.ts +4 -13
- package/dist/utils/path.d.ts +1 -0
- package/dist/utils/proxy.d.ts +1 -0
- package/dist/utils/storage.d.ts +1 -2
- package/package.json +41 -43
- package/src/built-in/authentication/helper.ts +55 -0
- package/src/built-in/authentication/index.ts +42 -0
- package/src/built-in/authentication/interface.ts +7 -0
- package/src/built-in/authentication/pages/change-organization/assets/change-org.svg +1 -0
- package/src/{pages/system → built-in/authentication/pages}/change-organization/index.vue +29 -43
- package/src/built-in/authentication/pages/change-password/assets/login-small.png +0 -0
- package/src/built-in/authentication/pages/change-password/assets/login-small_dark.webp +0 -0
- package/src/built-in/authentication/pages/change-password/assets/mima.svg +1 -0
- package/src/{pages/system → built-in/authentication/pages}/change-password/components/ChangePasswordForm/index.vue +1 -1
- package/src/{pages/system → built-in/authentication/pages}/change-password/index.vue +19 -36
- package/src/built-in/authentication/router.ts +57 -0
- package/src/{directives/plugins/permission.ts → built-in/authorization/directives.ts} +6 -7
- package/src/built-in/authorization/helper.ts +11 -0
- package/src/built-in/authorization/index.ts +25 -0
- package/src/built-in/authorization/pages/not-permission/403.svg +1 -0
- package/src/built-in/authorization/pages/not-permission/403_dark.svg +1 -0
- package/src/{pages/system → built-in/authorization/pages}/not-permission/index.vue +9 -13
- package/src/{route/guard/auth.ts → built-in/authorization/router.ts} +39 -9
- package/src/built-in/index.ts +8 -0
- package/src/built-in/layout-component/Layout.vue +273 -0
- package/src/built-in/layout-component/assets/icons/favorites.svg +1 -0
- package/src/built-in/layout-component/assets/icons/toolbar-collapse.svg +1 -0
- package/src/{layout → built-in/layout-component}/components/Content/IframeView.vue +1 -2
- package/src/{layout → built-in/layout-component}/components/Content/LinkView.vue +2 -2
- package/src/built-in/layout-component/components/Content/index.vue +146 -0
- package/src/{layout → built-in/layout-component}/components/Copyright/index.vue +7 -8
- package/src/{layout → built-in/layout-component}/components/Header/TopMode/More.vue +26 -34
- package/src/built-in/layout-component/components/Header/TopMode/NotCursor.vue +70 -0
- package/src/{layout → built-in/layout-component}/components/Header/TopMode/index.vue +14 -18
- package/src/built-in/layout-component/components/Header/index.vue +171 -0
- package/src/{layout → built-in/layout-component}/components/Logo/index.vue +5 -20
- package/src/{layout → built-in/layout-component}/components/Menu/index.vue +3 -3
- package/src/{layout → built-in/layout-component}/components/Menu/item.vue +22 -27
- package/src/{layout → built-in/layout-component}/components/Menu/types.ts +1 -1
- package/src/{layout → built-in/layout-component}/components/SettingBar/AppSetting.vue +11 -11
- package/src/{layout → built-in/layout-component}/components/SettingBar/components/DayNightToggle.vue +26 -120
- package/src/built-in/layout-component/components/SettingBar/components/SettingEnableTransition.vue +190 -0
- package/src/built-in/layout-component/components/SettingBar/components/SettingMode.vue +154 -0
- package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingThemes.vue +55 -90
- package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingWidthMode.vue +63 -71
- package/src/built-in/layout-component/components/SettingBar/index.vue +81 -0
- package/src/{layout → built-in/layout-component}/components/Sidebar/MainSidebar.vue +87 -135
- package/src/{layout → built-in/layout-component}/components/Sidebar/SubSidebar.vue +50 -59
- package/src/built-in/layout-component/components/Tools/Breadcrumb/index.vue +15 -0
- package/src/built-in/layout-component/components/Tools/DayNightSwitch.vue +70 -0
- package/src/{layout → built-in/layout-component}/components/Tools/Preferences/PreferencesContent.vue +214 -278
- package/src/{layout → built-in/layout-component}/components/Tools/Search.vue +15 -9
- package/src/{layout → built-in/layout-component}/components/Tools/index.vue +16 -20
- package/src/{layout → built-in/layout-component}/components/Topbar/Tabbar/MoreAction.vue +102 -148
- package/src/{layout → built-in/layout-component}/components/Topbar/Tabbar/index.vue +293 -405
- package/src/{layout → built-in/layout-component}/components/Topbar/Toolbar/Favorites.vue +5 -5
- package/src/{layout → built-in/layout-component}/components/Topbar/Toolbar/index.vue +72 -67
- package/src/{layout → built-in/layout-component}/components/Topbar/index.vue +16 -19
- package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HCheckList.vue +1 -1
- package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HDialog.vue +1 -1
- package/src/built-in/layout-component/components/ui/HDivider.vue +24 -0
- package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HDropdownMenu.vue +1 -1
- package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HDropdownTree.vue +1 -1
- package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HSlideover.vue +1 -1
- package/src/built-in/layout-component/components/ui/HToggle.vue +133 -0
- package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HTooltip.vue +1 -1
- package/src/{layout → built-in/layout-component}/composables/useContext.ts +2 -2
- package/src/{layout → built-in/layout-component}/composables/useGetComputedStyle.ts +1 -1
- package/src/built-in/layout-component/composables/useGlobalSearch.ts +48 -0
- package/src/{layout → built-in/layout-component}/composables/useHotkey.ts +1 -1
- package/src/{layout → built-in/layout-component}/composables/useMainPage.ts +2 -2
- package/src/{layout → built-in/layout-component}/composables/useMenu.ts +1 -1
- package/src/{layout → built-in/layout-component}/composables/useTabbar.ts +1 -1
- package/src/{layout → built-in/layout-component}/composables/useTitle.ts +1 -1
- package/src/{layout → built-in/layout-component}/composables/useWatermark.ts +4 -4
- package/src/{layout → built-in/layout-component}/index.ts +38 -16
- package/src/{layout → built-in/layout-component}/provider.ts +8 -2
- package/src/built-in/layout-component/utils/eventBus.ts +8 -0
- package/src/built-in/layout-component/utils/index.ts +3 -0
- package/src/{utils → built-in/layout-component/utils}/watermark.ts +2 -2
- package/src/{locales/index.ts → built-in/locales/helpler.ts} +13 -17
- package/src/built-in/locales/index.ts +20 -0
- package/src/built-in/n-progress/index.ts +31 -0
- package/src/built-in/n-progress/nprogress.css +68 -0
- package/src/built-in/pinia-plugin/enum.ts +1 -0
- package/src/{stores → built-in/pinia-plugin}/helper.ts +3 -3
- package/src/built-in/pinia-plugin/index.ts +27 -0
- package/src/{stores/plugin/sideEffect → built-in/pinia-plugin/plugins}/cleanup.ts +1 -1
- package/src/{stores/plugin/sideEffect → built-in/pinia-plugin/plugins}/favoritesStorage.ts +6 -7
- package/src/{stores/plugin/sideEffect → built-in/pinia-plugin/plugins}/iframeCache.ts +3 -3
- package/src/built-in/pinia-plugin/plugins/persist.ts +21 -0
- package/src/{stores/plugin/sideEffect → built-in/pinia-plugin/plugins}/tabbarStorage.ts +7 -8
- package/src/built-in/pre-access/index.ts +20 -0
- package/src/built-in/settings/index.ts +15 -0
- package/src/{route/guard/setting.ts → built-in/settings/router.ts} +3 -2
- package/src/core/create.ts +70 -0
- package/src/core/ctx.ts +3 -0
- package/src/core/index.ts +4 -0
- package/src/core/interface.ts +89 -0
- package/src/{modules.ts → core/modules.ts} +19 -5
- package/src/core/request.ts +52 -0
- package/src/core/resolver/icon.ts +75 -0
- package/src/core/resolver/index.ts +4 -0
- package/src/core/resolver/layout.ts +23 -0
- package/src/core/resolver/page.ts +89 -0
- package/src/core/resolver/resolver.ts +25 -0
- package/src/{api → features/api}/modules/auth/renzhengfuwu.ts +47 -15
- package/src/{api → features/api}/modules/auth/typings.d.ts +34 -28
- package/src/{api → features/api}/modules/configData/heibaimingdanfuwu.ts +13 -4
- package/src/{api → features/api}/modules/configData/index.ts +1 -1
- package/src/{api → features/api}/modules/configData/typings.d.ts +79 -79
- package/src/{api → features/api}/modules/configData/xitongpeizhifuwu.ts +43 -19
- package/src/{api/modules/configData/zidianfuwu.ts → features/api/modules/configData/zidifuwu.ts} +41 -11
- package/src/{api → features/api}/modules/rbac/gangweijiekou.ts +25 -10
- package/src/{api → features/api}/modules/rbac/jiaosejiekou.ts +25 -10
- package/src/{api → features/api}/modules/rbac/pubJiaosezukongzhiqi.ts +46 -7
- package/src/{api → features/api}/modules/rbac/shujuquanxianzhubiaokongzhiqi.ts +27 -13
- package/src/{api → features/api}/modules/rbac/typings.d.ts +323 -304
- package/src/{api → features/api}/modules/rbac/yonghujiekou.ts +49 -16
- package/src/{api → features/api}/modules/rbac/yonghushoucangbiaojiekou.ts +21 -6
- package/src/{api → features/api}/modules/rbac/yonghuzuijinchangyongbiaojiekou.ts +13 -4
- package/src/{api → features/api}/modules/rbac/ziyuanjiekou.ts +44 -5
- package/src/{api → features/api}/modules/rbac/zuhuguanlijiekou.ts +21 -12
- package/src/{api → features/api}/modules/rbac/zuzhijiaosebiaokongzhiqi.ts +13 -4
- package/src/{api → features/api}/modules/rbac/zuzhijiekou.ts +29 -11
- package/src/features/api/request.ts +5 -0
- package/src/{api → features/api}/system/user.ts +1 -1
- package/src/{assets → features/assets}/fonts/digital-7/digital-7-webfont.svg +131 -133
- package/src/{assets → features/assets}/fonts/digital-7_mono/digital-7_mono-webfont.svg +130 -132
- package/src/{assets → features/assets}/images/org.svg +2 -2
- package/src/features/assets/styles/globals.css +188 -0
- package/src/{assets → features/assets}/styles/index.ts +2 -3
- package/src/features/assets/styles/rbac.css +51 -0
- package/src/features/assets/styles/resources/utils.css +53 -0
- package/src/features/assets/styles/resources/variables.css +5 -0
- package/src/features/components/MicroAppContainer/index.vue +9 -0
- package/src/features/components/NotAllowed/assets/403.svg +1 -0
- package/src/features/components/NotAllowed/assets/403_dark.svg +1 -0
- package/src/{components → features/components}/NotAllowed/index.vue +6 -8
- package/src/{components → features/components}/PassStrengthValidator/index.vue +33 -48
- package/src/{components → features/components}/PassStrengthValidator/rule.vue +13 -25
- package/src/{components → features/components}/PubinfoApp/index.vue +2 -1
- package/src/features/components/PubinfoIcon/index.vue +140 -0
- package/src/{components → features/components}/PubinfoProvider/index.ts +1 -2
- package/src/{composables → features/composables}/auth.ts +2 -2
- package/src/{composables → features/composables}/theme.ts +1 -1
- package/src/{composables → features/composables}/watchDiff.ts +1 -1
- package/src/features/context/index.ts +40 -0
- package/src/features/enum.ts +21 -0
- package/src/features/index.ts +8 -0
- package/src/features/pages/not-found/assets/404.svg +1 -0
- package/src/features/pages/not-found/assets/404_dark.svg +1 -0
- package/src/{pages/system/[...all].vue → features/pages/not-found/index.vue} +6 -8
- package/src/{pages/personal → features/pages}/profile/index.vue +1 -1
- package/src/features/router/asyncRoutes.ts +35 -0
- package/src/features/router/index.ts +2 -0
- package/src/features/router/systemRoutes.ts +45 -0
- package/src/{config/settings.ts → features/settings/index.ts} +0 -1
- package/src/{stores/enum/index.ts → features/stores/enum.ts} +0 -1
- package/src/features/stores/index.ts +1 -0
- package/src/{stores → features/stores}/modules/keepAlive.ts +1 -0
- package/src/{stores → features/stores}/modules/menu.ts +44 -6
- package/src/{stores → features/stores}/modules/route.ts +89 -65
- package/src/{stores → features/stores}/modules/settings.ts +27 -10
- package/src/{stores → features/stores}/modules/tabbar.ts +8 -5
- package/src/{stores → features/stores}/modules/user.ts +60 -25
- package/src/{utils → features/stores/utils}/crypto.ts +7 -10
- package/src/features/stores/utils/index.ts +2 -0
- package/src/features/stores/utils/routerHelper.ts +221 -0
- package/src/index.ts +117 -12
- package/src/utils/cleanup.ts +1 -1
- package/src/utils/index.ts +4 -43
- package/src/utils/path.ts +5 -0
- package/src/utils/proxy.ts +36 -0
- package/src/utils/storage.ts +2 -4
- package/types/auto-imports.d.ts +3 -10
- package/types/components.d.ts +16 -15
- package/types/menu.d.ts +2 -0
- package/types/module.d.ts +2 -15
- package/types/settings.d.ts +0 -8
- package/types/tabbar.d.ts +1 -0
- package/types/vue-router.d.ts +11 -7
- package/dist/HButton.vue_vue_type_script_setup_true_lang-CYAzn9Mg.js +0 -25
- package/dist/HDivider-DgXBhPr0.js +0 -21
- package/dist/HToggle-Cd71WKvG.js +0 -34
- package/dist/PreferencesContent-MR1Db7z7.js +0 -972
- package/dist/SettingPage-C1CT1Mm8.js +0 -29
- package/dist/SettingThemes-BJu9czNK.js +0 -144
- package/dist/_...all_-18BnHmEa.js +0 -52
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/api/helper.d.ts +0 -32
- package/dist/api/interface.d.ts +0 -14
- package/dist/api/request.d.ts +0 -2
- package/dist/api/system/app.d.ts +0 -17
- package/dist/config/index.d.ts +0 -1
- package/dist/context.d.ts +0 -14
- package/dist/create.d.ts +0 -3
- package/dist/directives/index.d.ts +0 -4
- package/dist/directives/plugins/permission.d.ts +0 -6
- package/dist/index-C1p_tY7i.js +0 -49
- package/dist/index-CCPTQYuB.js +0 -12910
- package/dist/index-CNUEMTao.js +0 -354
- package/dist/index-CmXo8ShY.js +0 -276
- package/dist/index-DL8Y7jFG.js +0 -137
- package/dist/index-DTQQt_XY.js +0 -10
- package/dist/index-Dj8zy7hH.js +0 -230
- package/dist/index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-BCo6Ft-Q.js +0 -2300
- package/dist/interface.d.ts +0 -29
- package/dist/layout/components/Tools/index.vue.d.ts +0 -233
- package/dist/layout/components/Topbar/Tabbar/MoreAction.vue.d.ts +0 -217
- package/dist/locales/index.d.ts +0 -301
- package/dist/menu-CLiZ1BO_.js +0 -15315
- package/dist/pick-C9bU8_xv.js +0 -19
- package/dist/request.js +0 -1811
- package/dist/route/async.d.ts +0 -9
- package/dist/route/guard/auth.d.ts +0 -3
- package/dist/route/guard/basic.d.ts +0 -3
- package/dist/route/guard/index.d.ts +0 -3
- package/dist/route/guard/setting.d.ts +0 -3
- package/dist/route/index.d.ts +0 -7
- package/dist/route/routes.d.ts +0 -3
- package/dist/stores/index.d.ts +0 -5
- package/dist/stores/modules/user.d.ts +0 -4
- package/dist/stores/plugin/persist.d.ts +0 -5
- package/dist/stores/plugin/sideEffect/index.d.ts +0 -5
- package/dist/utils/crypto.d.ts +0 -4
- package/dist/utils/eventBus.d.ts +0 -5
- package/src/api/helper.ts +0 -64
- package/src/api/index.ts +0 -75
- package/src/api/interface.ts +0 -15
- package/src/api/request.ts +0 -4
- package/src/api/system/app.ts +0 -28
- package/src/assets/icons/403.svg +0 -1
- package/src/assets/icons/403_dark.svg +0 -1
- package/src/assets/icons/404.svg +0 -1
- package/src/assets/icons/404_dark.svg +0 -1
- 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/change-org.svg +0 -1
- package/src/assets/icons/edit.svg +0 -1
- package/src/assets/icons/empty-data.svg +0 -1
- package/src/assets/icons/favorites.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/mima.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/toolbar-collapse.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/assets/styles/globals.scss +0 -189
- package/src/assets/styles/nprogress.scss +0 -63
- package/src/assets/styles/rbac.scss +0 -61
- package/src/assets/styles/resources/utils.scss +0 -53
- package/src/assets/styles/resources/variables.scss +0 -6
- package/src/components/PubinfoIcon/index.vue +0 -85
- package/src/config/index.ts +0 -1
- package/src/context.ts +0 -30
- package/src/create.ts +0 -88
- package/src/directives/index.ts +0 -6
- package/src/interface.ts +0 -35
- package/src/layout/Layout.vue +0 -330
- package/src/layout/components/Content/index.vue +0 -100
- package/src/layout/components/Header/TopMode/NotCursor.vue +0 -77
- package/src/layout/components/Header/index.vue +0 -263
- package/src/layout/components/SettingBar/components/SettingEnableTransition.vue +0 -215
- package/src/layout/components/SettingBar/components/SettingMode.vue +0 -164
- package/src/layout/components/SettingBar/index.vue +0 -112
- package/src/layout/components/Tools/Breadcrumb/index.vue +0 -21
- package/src/layout/components/Tools/DayNightSwitch.vue +0 -93
- package/src/layout/components/Tools/I18nSelector.vue +0 -52
- package/src/layout/ui-kit/HDivider.vue +0 -53
- package/src/layout/ui-kit/HToggle.vue +0 -177
- package/src/pages/system/change-password/page.vue +0 -58
- package/src/pages/system/index.vue +0 -5
- package/src/route/async.ts +0 -18
- package/src/route/guard/basic.ts +0 -23
- package/src/route/guard/index.ts +0 -3
- package/src/route/index.ts +0 -12
- package/src/route/routes.ts +0 -101
- package/src/stores/index.ts +0 -10
- package/src/stores/plugin/persist.ts +0 -27
- package/src/stores/plugin/sideEffect/index.ts +0 -15
- package/src/utils/eventBus.ts +0 -15
- package/dist/{api/enum/code.d.ts → built-in/authentication/enum.d.ts} +0 -0
- package/dist/{components/NotAllowed → built-in/authentication/pages/change-organization}/index.vue.d.ts +0 -0
- package/dist/{pages/system → built-in/authentication/pages}/change-password/components/ChangePasswordForm/index.vue.d.ts +0 -0
- package/dist/{pages/system → built-in/authentication/pages}/change-password/index.vue.d.ts +0 -0
- package/dist/{layout/components/Topbar/Toolbar → built-in/authorization/pages/not-permission}/index.vue.d.ts +0 -0
- package/dist/{components/PubinfoApp → built-in/layout-component/components/BackTop}/index.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Content/IframeView.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Content/LinkView.vue.d.ts +0 -0
- package/dist/{layout/components/BackTop → built-in/layout-component/components/Content}/index.vue.d.ts +0 -0
- package/dist/{layout/components/Content → built-in/layout-component/components/Copyright}/index.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Header/TopMode/index.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Header/TopThinMode.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Header/index.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Logo/index.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Menu/index.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Menu/item.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/SettingBar/AppSetting.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/SettingBar/components/DayNightToggle.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingBreadcrumb.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingCopyright.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingEnableTransition.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingHome.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingMenu.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingMode.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingNavSearch.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingOther.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingPage.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingTabbar.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingThemes.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingToolbar.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingTopbar.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/SettingBar/components/SettingWidthMode.vue.d.ts +0 -0
- package/dist/{layout/components/Copyright → built-in/layout-component/components/SettingBar}/index.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Sidebar/MainSidebar.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Sidebar/SubSidebar.vue.d.ts +0 -0
- package/dist/{layout/components/SettingBar → built-in/layout-component/components/Sidebar}/index.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Tools/Breadcrumb/index.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Tools/Breadcrumb/item.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Tools/DayNightSwitch.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Tools/HotkeysIntro.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Tools/Preferences/PreferencesContent.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Tools/Preferences/index.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Topbar/Tabbar/index.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Topbar/Toolbar/Favorites.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/components/Topbar/Toolbar/Star.vue.d.ts +0 -0
- package/dist/{layout/components/Topbar → built-in/layout-component/components/Topbar/Toolbar}/index.vue.d.ts +0 -0
- package/dist/{pages/personal/profile → built-in/layout-component/components/Topbar}/index.vue.d.ts +0 -0
- package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HBadge.vue.d.ts +0 -0
- package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HButton.vue.d.ts +1 -1
- package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HCheckList.vue.d.ts +2 -2
- package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HDivider.vue.d.ts +0 -0
- package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HDropdown.vue.d.ts +0 -0
- package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HDropdownMenu.vue.d.ts +0 -0
- package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HDropdownTree.vue.d.ts +0 -0
- package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HInput.vue.d.ts +0 -0
- package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HKbd.vue.d.ts +0 -0
- package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HSelect.vue.d.ts +0 -0
- package/dist/{layout/ui-kit → built-in/layout-component/components/ui}/HToggle.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/composables/useGetComputedStyle.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/composables/useMainPage.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/composables/useTabbar.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/composables/useTitle.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/composables/useViewTransition.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/composables/useWatermark.d.ts +0 -0
- package/dist/{pages/system/change-organization → built-in/layout-component/pages/reload}/index.vue.d.ts +0 -0
- package/dist/{layout → built-in/layout-component}/provider.d.ts +0 -0
- package/dist/{utils → built-in/layout-component/utils}/injectionKeys.d.ts +0 -0
- package/dist/{locales → built-in/locales}/lang/en.json.d.ts +0 -0
- package/dist/{locales → built-in/locales}/lang/zh-cn.json.d.ts +0 -0
- package/dist/{locales → built-in/locales}/lang/zh-tw.json.d.ts +0 -0
- package/dist/{locales → built-in/locales}/ui.d.ts +0 -0
- package/dist/{stores → built-in/pinia-plugin}/helper.d.ts +0 -0
- package/dist/{stores/plugin/sideEffect → built-in/pinia-plugin/plugins}/cleanup.d.ts +0 -0
- package/dist/{stores/plugin/sideEffect → built-in/pinia-plugin/plugins}/favoritesStorage.d.ts +0 -0
- package/dist/{stores/plugin/sideEffect → built-in/pinia-plugin/plugins}/iframeCache.d.ts +0 -0
- package/dist/{stores/plugin/sideEffect → built-in/pinia-plugin/plugins}/tabbarStorage.d.ts +0 -0
- package/dist/{utils → core}/utils.d.ts +0 -0
- package/dist/{api → features/api}/modules/auth/index.d.ts +0 -0
- package/dist/{api → features/api}/modules/configData/heibaimingdanfuwu.d.ts +0 -0
- package/dist/{api → features/api}/modules/configData/xitongpeizhifuwu.d.ts +0 -0
- package/dist/{api/modules/configData/zidianfuwu.d.ts → features/api/modules/configData/zidifuwu.d.ts} +0 -0
- package/dist/{api → features/api}/modules/rbac/gangweijiekou.d.ts +0 -0
- package/dist/{api → features/api}/modules/rbac/index.d.ts +0 -0
- package/dist/{api → features/api}/modules/rbac/jiaosejiekou.d.ts +0 -0
- package/dist/{api → features/api}/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +0 -0
- package/dist/{api → features/api}/modules/rbac/yonghujiekou.d.ts +0 -0
- package/dist/{api → features/api}/modules/rbac/yonghushoucangbiaojiekou.d.ts +0 -0
- package/dist/{api → features/api}/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +0 -0
- package/dist/{api → features/api}/modules/rbac/zuhuguanlijiekou.d.ts +0 -0
- package/dist/{api → features/api}/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +0 -0
- package/dist/{api → features/api}/modules/rbac/zuzhijiekou.d.ts +0 -0
- package/dist/{api → features/api}/system/user.d.ts +0 -0
- package/dist/{pages/system → features/components/MicroAppContainer}/index.vue.d.ts +0 -0
- package/dist/{pages/system/not-permission → features/components/NotAllowed}/index.vue.d.ts +0 -0
- package/dist/{components → features/components}/PageHeader/index.vue.d.ts +0 -0
- package/dist/{components → features/components}/PageMain/index.vue.d.ts +0 -0
- package/dist/{components → features/components}/PassStrengthValidator/index.vue.d.ts +2 -2
- package/dist/{components → features/components}/PassStrengthValidator/rule.vue.d.ts +0 -0
- package/dist/{layout/components/Sidebar → features/components/PubinfoApp}/index.vue.d.ts +0 -0
- package/dist/{components → features/components}/PubinfoIcon/index.vue.d.ts +0 -0
- package/dist/{components → features/components}/PubinfoProvider/index.d.ts +0 -0
- package/dist/{components → features/components}/index.d.ts +0 -0
- package/dist/{composables → features/composables}/index.d.ts +0 -0
- package/dist/{composables → features/composables}/log.d.ts +0 -0
- package/dist/{composables → features/composables}/theme.d.ts +0 -0
- package/dist/{composables → features/composables}/watchDiff.d.ts +0 -0
- package/dist/{pages/system/[...all].vue.d.ts → features/pages/not-found/index.vue.d.ts} +0 -0
- package/dist/{pages/system/reload.vue.d.ts → features/pages/profile/index.vue.d.ts} +0 -0
- package/dist/{config/settings.d.ts → features/settings/index.d.ts} +0 -0
- package/dist/{stores/enum/index.d.ts → features/stores/enum.d.ts} +0 -0
- package/dist/{stores → features/stores}/modules/iframe.d.ts +0 -0
- package/dist/{stores → features/stores}/modules/index.d.ts +0 -0
- package/dist/{stores → features/stores}/modules/keepAlive.d.ts +0 -0
- package/dist/{stores → features/stores}/modules/menu.d.ts +0 -0
- package/dist/{stores → features/stores}/modules/settings.d.ts +0 -0
- package/src/{api/enum/code.ts → built-in/authentication/enum.ts} +0 -0
- package/src/{assets/images → built-in/authentication/pages/change-organization/assets}/login-small.png +0 -0
- package/src/{assets/images → built-in/authentication/pages/change-organization/assets}/login-small_dark.webp +0 -0
- package/src/{assets → built-in/layout-component/assets}/images/not-cursor.png +0 -0
- package/src/{layout → built-in/layout-component}/components/BackTop/index.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/Header/TopThinMode.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/Menu/sub.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingBreadcrumb.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingCopyright.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingHome.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingMenu.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingNavSearch.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingOther.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingPage.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingTabbar.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingToolbar.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/SettingBar/components/SettingTopbar.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/Sidebar/index.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/Tools/Breadcrumb/item.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/Tools/HotkeysIntro.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/Tools/Preferences/index.vue +0 -0
- package/src/{layout → built-in/layout-component}/components/Topbar/Toolbar/Star.vue +0 -0
- package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HBadge.vue +0 -0
- package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HButton.vue +0 -0
- package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HDropdown.vue +0 -0
- package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HInput.vue +0 -0
- package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HKbd.vue +0 -0
- package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HSelect.vue +0 -0
- package/src/{layout/ui-kit → built-in/layout-component/components/ui}/HTabList.vue +0 -0
- package/src/{layout → built-in/layout-component}/composables/useViewTransition.ts +0 -0
- package/src/{pages/system/reload.vue → built-in/layout-component/pages/reload/index.vue} +0 -0
- package/src/{utils → built-in/layout-component/utils}/injectionKeys.ts +0 -0
- package/src/{locales → built-in/locales}/lang/en.json +0 -0
- package/src/{locales → built-in/locales}/lang/zh-cn.json +0 -0
- package/src/{locales → built-in/locales}/lang/zh-tw.json +0 -0
- package/src/{locales → built-in/locales}/ui.ts +0 -0
- package/src/{utils → core}/utils.ts +0 -0
- package/src/{api → features/api}/modules/auth/index.ts +0 -0
- package/src/{api → features/api}/modules/rbac/index.ts +0 -0
- package/src/{api → features/api}/system/typings.d.ts +0 -0
- package/src/{assets → features/assets}/fonts/digital-7/digital-7-webfont.eot +0 -0
- package/src/{assets → features/assets}/fonts/digital-7/digital-7-webfont.woff +0 -0
- package/src/{assets → features/assets}/fonts/digital-7/digital-7-webfont.woff2 +0 -0
- package/src/{assets → features/assets}/fonts/digital-7/stylesheet.css +0 -0
- package/src/{assets → features/assets}/fonts/digital-7_mono/digital-7_mono-webfont.eot +0 -0
- package/src/{assets → features/assets}/fonts/digital-7_mono/digital-7_mono-webfont.woff +0 -0
- package/src/{assets → features/assets}/fonts/digital-7_mono/digital-7_mono-webfont.woff2 +0 -0
- package/src/{assets → features/assets}/fonts/digital-7_mono/stylesheet.css +0 -0
- package/src/{assets → features/assets}/fonts/title.otf +0 -0
- package/src/{assets → features/assets}/images/change-org-bc.webp +0 -0
- package/src/{assets → features/assets}/images/header-bg.png +0 -0
- package/src/{assets → features/assets}/images/logo.png +0 -0
- package/src/{assets → features/assets}/images/slider-bg.png +0 -0
- package/src/{components → features/components}/PageHeader/index.vue +0 -0
- package/src/{components → features/components}/PageMain/index.vue +0 -0
- package/src/{components → features/components}/index.ts +0 -0
- package/src/{composables → features/composables}/index.ts +0 -0
- package/src/{composables → features/composables}/log.ts +0 -0
- package/src/{stores → features/stores}/modules/favorites.ts +1 -1
- /package/src/{stores → features/stores}/modules/iframe.ts +0 -0
- /package/src/{stores → features/stores}/modules/index.ts +0 -0
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { SubMenuItemProps } from './types';
|
|
3
|
-
import { PubinfoIcon } from '@/components';
|
|
3
|
+
import { PubinfoIcon } from '@/features/components';
|
|
4
4
|
import { useContext } from '../../composables/useContext';
|
|
5
5
|
import { rootMenuInjectionKey } from './types';
|
|
6
6
|
|
|
7
|
+
defineOptions({
|
|
8
|
+
name: 'MenuItem',
|
|
9
|
+
});
|
|
10
|
+
|
|
7
11
|
const props = withDefaults(
|
|
8
12
|
defineProps<SubMenuItemProps>(),
|
|
9
13
|
{
|
|
@@ -128,39 +132,30 @@ defineExpose({
|
|
|
128
132
|
</div>
|
|
129
133
|
</template>
|
|
130
134
|
|
|
131
|
-
<style
|
|
132
|
-
.badge {
|
|
133
|
-
:
|
|
134
|
-
|
|
135
|
-
left: initial !important;
|
|
136
|
-
}
|
|
135
|
+
<style scoped>
|
|
136
|
+
.badge :deep(> span) {
|
|
137
|
+
--at-apply: right-0;
|
|
138
|
+
left: initial !important;
|
|
137
139
|
}
|
|
138
140
|
|
|
139
141
|
.sharp-corner {
|
|
140
142
|
--at-apply: relative ml-1 w-[10px];
|
|
143
|
+
}
|
|
141
144
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
+
.sharp-corner::before {
|
|
146
|
+
--at-apply: absolute h-1.5px w-[6px] bg-current transition-transform-200 content-empty -translate-y-[1px];
|
|
147
|
+
}
|
|
145
148
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}
|
|
149
|
+
.sharp-corner::after {
|
|
150
|
+
--at-apply: absolute h-1.5px w-[6px] bg-current transition-transform-200 content-empty -translate-y-[1px];
|
|
149
151
|
}
|
|
150
152
|
|
|
151
|
-
.sub-sidebar-container {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
width: 6px;
|
|
159
|
-
height: 6px;
|
|
160
|
-
content: "";
|
|
161
|
-
background: var(--g-sub-sidebar-menu-active-color);
|
|
162
|
-
border-radius: 50%;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
153
|
+
.sub-sidebar-container .menu-item-container-layout:has(.system-point) {
|
|
154
|
+
--at-apply: relative;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.sub-sidebar-container .menu-item-container-layout:has(.system-point)::before {
|
|
158
|
+
--at-apply: absolute w-1.5 h-1.5 content-empty rounded-[50%] left-3;
|
|
159
|
+
background: var(--g-sub-sidebar-menu-active-color);
|
|
165
160
|
}
|
|
166
161
|
</style>
|
|
@@ -119,8 +119,8 @@ function excludesComponents(all: string[], excludes: string[]) {
|
|
|
119
119
|
</HSlideover>
|
|
120
120
|
</template>
|
|
121
121
|
|
|
122
|
-
<style
|
|
123
|
-
|
|
122
|
+
<style scoped>
|
|
123
|
+
:deep(.setting-item) {
|
|
124
124
|
--at-apply:
|
|
125
125
|
flex
|
|
126
126
|
items-center
|
|
@@ -130,17 +130,17 @@ function excludesComponents(all: string[], excludes: string[]) {
|
|
|
130
130
|
py-2
|
|
131
131
|
rounded-2
|
|
132
132
|
transition;
|
|
133
|
+
}
|
|
133
134
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
:deep(.setting-item:hover) {
|
|
136
|
+
--at-apply: bg-stone-1 dark:bg-stone-1 dark:bg-stone-9;
|
|
137
|
+
}
|
|
137
138
|
|
|
138
|
-
|
|
139
|
-
|
|
139
|
+
:deep(.setting-item .label) {
|
|
140
|
+
--at-apply: flex items-center flex-shrink-0 gap-2 text-sm;
|
|
141
|
+
}
|
|
140
142
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
}
|
|
144
|
-
}
|
|
143
|
+
:deep(.setting-item .label i) {
|
|
144
|
+
--at-apply: text-xl text-orange cursor-help;
|
|
145
145
|
}
|
|
146
146
|
</style>
|
package/src/{layout → built-in/layout-component}/components/SettingBar/components/DayNightToggle.vue
RENAMED
|
@@ -31,207 +31,113 @@ const enabled = defineModel();
|
|
|
31
31
|
</div>
|
|
32
32
|
</template>
|
|
33
33
|
|
|
34
|
-
<style scoped
|
|
34
|
+
<style scoped>
|
|
35
35
|
.toggleWrapper {
|
|
36
|
-
|
|
36
|
+
--at-apply: overflow-hidden;
|
|
37
37
|
transform: scale(0.5);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.toggleWrapper input {
|
|
41
|
-
|
|
42
|
-
left: -99em;
|
|
41
|
+
--at-apply: absolute left-[-99em];
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
.toggle {
|
|
46
|
-
|
|
47
|
-
display: inline-block;
|
|
48
|
-
width: 90px;
|
|
49
|
-
height: 50px;
|
|
50
|
-
cursor: pointer;
|
|
51
|
-
background-color: #83d8ff;
|
|
52
|
-
border-radius: 84px;
|
|
45
|
+
--at-apply: relative inline-block w-[90px] h-[50px] cursor-pointer bg-[#83d8ff] rounded-[84px];
|
|
53
46
|
transition: background-color 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
|
|
54
47
|
}
|
|
55
48
|
|
|
56
49
|
.toggle::before {
|
|
57
|
-
|
|
58
|
-
top: 15px;
|
|
59
|
-
left: -50px;
|
|
60
|
-
font-size: 18px;
|
|
61
|
-
content: "Day";
|
|
50
|
+
--at-apply: absolute left-[-50px] text-lg content-["Day"] top-[15px];;
|
|
62
51
|
}
|
|
63
52
|
|
|
64
53
|
.toggle::after {
|
|
65
|
-
|
|
66
|
-
top: 15px;
|
|
67
|
-
right: -60px;
|
|
68
|
-
font-size: 18px;
|
|
69
|
-
color: #384f6d;
|
|
70
|
-
content: "Night";
|
|
54
|
+
--at-apply: absolute right-[-60px] text-lg text-[#384f6d] content-["Night"] top-[15px];
|
|
71
55
|
}
|
|
72
56
|
|
|
73
57
|
.toggle__handler {
|
|
74
|
-
|
|
75
|
-
top: 3px;
|
|
76
|
-
left: 3px;
|
|
77
|
-
z-index: 1;
|
|
78
|
-
display: inline-block;
|
|
79
|
-
width: 44px;
|
|
80
|
-
height: 44px;
|
|
81
|
-
background-color: #ffdb98;
|
|
82
|
-
border-radius: 50px;
|
|
58
|
+
--at-apply: relative z-[1] inline-block w-11 h-11 bg-[#ffdb98] rounded-[50px] left-[3px] top-[3px];
|
|
83
59
|
box-shadow: 0 2px 6px rgb(0 0 0 / 30%);
|
|
84
60
|
transition: all 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
|
|
85
61
|
transform: rotate(-45deg);
|
|
86
62
|
}
|
|
87
63
|
|
|
88
64
|
.toggle__handler .crater {
|
|
89
|
-
|
|
90
|
-
background-color: #e8cda5;
|
|
91
|
-
border-radius: 100%;
|
|
92
|
-
opacity: 0;
|
|
93
|
-
transition: opacity 200ms ease-in-out;
|
|
65
|
+
--at-apply: absolute bg-[#e8cda5] opacity-0 transition-opacity duration-200 ease-[ease-in-out] rounded-[100%];
|
|
94
66
|
}
|
|
95
67
|
|
|
96
68
|
.toggle__handler .crater--1 {
|
|
97
|
-
|
|
98
|
-
left: 10px;
|
|
99
|
-
width: 4px;
|
|
100
|
-
height: 4px;
|
|
69
|
+
--at-apply: w-1 h-1 left-2.5 top-[18px];
|
|
101
70
|
}
|
|
102
|
-
|
|
103
71
|
.toggle__handler .crater--2 {
|
|
104
|
-
|
|
105
|
-
left: 22px;
|
|
106
|
-
width: 6px;
|
|
107
|
-
height: 6px;
|
|
72
|
+
--at-apply: w-1.5 h-1.5 left-[22px] top-7;
|
|
108
73
|
}
|
|
109
|
-
|
|
110
74
|
.toggle__handler .crater--3 {
|
|
111
|
-
|
|
112
|
-
left: 25px;
|
|
113
|
-
width: 8px;
|
|
114
|
-
height: 8px;
|
|
75
|
+
--at-apply: w-2 h-2 left-[25px] top-2.5;
|
|
115
76
|
}
|
|
116
77
|
|
|
117
78
|
.star {
|
|
118
|
-
|
|
119
|
-
background-color: #fff;
|
|
120
|
-
border-radius: 50%;
|
|
121
|
-
transition: all 300ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
|
|
79
|
+
--at-apply: absolute bg-white transition-all duration-300 ease-[cubic-bezier(0.445,0.05,0.55,0.95)] rounded-[50%];
|
|
122
80
|
}
|
|
123
|
-
|
|
124
81
|
.star--1 {
|
|
125
|
-
|
|
126
|
-
left: 35px;
|
|
127
|
-
z-index: 0;
|
|
128
|
-
width: 30px;
|
|
129
|
-
height: 3px;
|
|
82
|
+
--at-apply: z-0 w-[30px] h-[3px] left-[35px] top-2.5;
|
|
130
83
|
}
|
|
131
|
-
|
|
132
84
|
.star--2 {
|
|
133
|
-
|
|
134
|
-
left: 28px;
|
|
135
|
-
z-index: 1;
|
|
136
|
-
width: 30px;
|
|
137
|
-
height: 3px;
|
|
85
|
+
--at-apply: z-[1] w-[30px] h-[3px] left-7 top-[18px];
|
|
138
86
|
}
|
|
139
|
-
|
|
140
87
|
.star--3 {
|
|
141
|
-
|
|
142
|
-
left: 40px;
|
|
143
|
-
z-index: 0;
|
|
144
|
-
width: 30px;
|
|
145
|
-
height: 3px;
|
|
88
|
+
--at-apply: z-0 w-[30px] h-[3px] left-10 top-[27px];
|
|
146
89
|
}
|
|
147
|
-
|
|
148
90
|
.star--4,
|
|
149
91
|
.star--5,
|
|
150
92
|
.star--6 {
|
|
151
|
-
|
|
93
|
+
--at-apply: opacity-0;
|
|
152
94
|
transition: all 300ms 0 cubic-bezier(0.445, 0.05, 0.55, 0.95);
|
|
153
95
|
}
|
|
154
|
-
|
|
155
96
|
.star--4 {
|
|
156
|
-
|
|
157
|
-
left: 11px;
|
|
158
|
-
z-index: 0;
|
|
159
|
-
width: 2px;
|
|
160
|
-
height: 2px;
|
|
97
|
+
--at-apply: z-0 w-0.5 h-0.5 left-[11px] top-4;
|
|
161
98
|
transform: translate3d(3px, 0, 0);
|
|
162
99
|
}
|
|
163
|
-
|
|
164
100
|
.star--5 {
|
|
165
|
-
|
|
166
|
-
left: 17px;
|
|
167
|
-
z-index: 0;
|
|
168
|
-
width: 3px;
|
|
169
|
-
height: 3px;
|
|
101
|
+
--at-apply: z-0 w-[3px] h-[3px] left-[17px] top-8;
|
|
170
102
|
transform: translate3d(3px, 0, 0);
|
|
171
103
|
}
|
|
172
|
-
|
|
173
104
|
.star--6 {
|
|
174
|
-
|
|
175
|
-
left: 28px;
|
|
176
|
-
z-index: 0;
|
|
177
|
-
width: 2px;
|
|
178
|
-
height: 2px;
|
|
105
|
+
--at-apply: z-0 w-0.5 h-0.5 left-7 top-9;
|
|
179
106
|
transform: translate3d(3px, 0, 0);
|
|
180
107
|
}
|
|
181
|
-
|
|
182
108
|
input:checked + .toggle {
|
|
183
|
-
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
input:checked + .toggle::before {
|
|
187
|
-
color: #749ed7;
|
|
109
|
+
--at-apply: bg-[#749dd6] before:text-[#749ed7] after:text-white;
|
|
188
110
|
}
|
|
189
|
-
|
|
190
|
-
input:checked + .toggle::after {
|
|
191
|
-
color: #fff;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
111
|
input:checked + .toggle .toggle__handler {
|
|
195
|
-
|
|
112
|
+
--at-apply: bg-[#ffe5b5];
|
|
196
113
|
transform: translate3d(40px, 0, 0) rotate(0);
|
|
197
114
|
}
|
|
198
|
-
|
|
199
115
|
input:checked + .toggle .toggle__handler .crater {
|
|
200
|
-
|
|
116
|
+
--at-apply: opacity-100;
|
|
201
117
|
}
|
|
202
|
-
|
|
203
118
|
input:checked + .toggle .star--1 {
|
|
204
|
-
|
|
205
|
-
height: 2px;
|
|
119
|
+
--at-apply: w-0.5 h-0.5;
|
|
206
120
|
}
|
|
207
|
-
|
|
208
121
|
input:checked + .toggle .star--2 {
|
|
209
|
-
|
|
210
|
-
height: 4px;
|
|
122
|
+
--at-apply: w-1 h-1;
|
|
211
123
|
transform: translate3d(-5px, 0, 0);
|
|
212
124
|
}
|
|
213
|
-
|
|
214
125
|
input:checked + .toggle .star--3 {
|
|
215
|
-
|
|
216
|
-
height: 2px;
|
|
126
|
+
--at-apply: w-0.5 h-0.5;
|
|
217
127
|
transform: translate3d(-7px, 0, 0);
|
|
218
128
|
}
|
|
219
|
-
|
|
220
129
|
input:checked + .toggle .star--4,
|
|
221
130
|
input:checked + .toggle .star--5,
|
|
222
131
|
input:checked + .toggle .star--6 {
|
|
223
|
-
|
|
132
|
+
--at-apply: opacity-100;
|
|
224
133
|
transform: translate3d(0, 0, 0);
|
|
225
134
|
}
|
|
226
|
-
|
|
227
135
|
input:checked + .toggle .star--4 {
|
|
228
136
|
transition: all 300ms 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
|
|
229
137
|
}
|
|
230
|
-
|
|
231
138
|
input:checked + .toggle .star--5 {
|
|
232
139
|
transition: all 300ms 300ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
|
|
233
140
|
}
|
|
234
|
-
|
|
235
141
|
input:checked + .toggle .star--6 {
|
|
236
142
|
transition: all 300ms 400ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
|
|
237
143
|
}
|
package/src/built-in/layout-component/components/SettingBar/components/SettingEnableTransition.vue
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { useContext } from '../../../composables/useContext';
|
|
3
|
+
|
|
4
|
+
defineOptions({
|
|
5
|
+
name: 'SettingEnableTransition',
|
|
6
|
+
});
|
|
7
|
+
const { settingsStore } = useContext();
|
|
8
|
+
|
|
9
|
+
const { enableTransition, transitionMode } = toRefs(settingsStore.settings.mainPage);
|
|
10
|
+
|
|
11
|
+
function clickHandle(item: Settings.mainPage['transitionMode']) {
|
|
12
|
+
if (item) {
|
|
13
|
+
transitionMode.value = item;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
const transitionModeList = reactive<
|
|
17
|
+
{
|
|
18
|
+
describe: string
|
|
19
|
+
active: Settings.mainPage['transitionMode']
|
|
20
|
+
class: string
|
|
21
|
+
}[]
|
|
22
|
+
>([
|
|
23
|
+
{
|
|
24
|
+
describe: '淡入淡出',
|
|
25
|
+
active: 'fade',
|
|
26
|
+
class: 'mode-fade',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
describe: '向左滑动',
|
|
30
|
+
active: 'slide-left',
|
|
31
|
+
class: 'mode-slide-left',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
describe: '向右滑动',
|
|
35
|
+
active: 'slide-right',
|
|
36
|
+
class: 'mode-slide-right',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
describe: '向上滑动',
|
|
40
|
+
active: 'slide-top',
|
|
41
|
+
class: 'mode-slide-top',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
describe: '向下滑动',
|
|
45
|
+
active: 'slide-bottom',
|
|
46
|
+
class: 'mode-slide-bottom',
|
|
47
|
+
},
|
|
48
|
+
]);
|
|
49
|
+
</script>
|
|
50
|
+
|
|
51
|
+
<template>
|
|
52
|
+
<HDivider title="页面切换动画">
|
|
53
|
+
<div class="flex items-center justify-center pb-4">
|
|
54
|
+
<HToggle v-model="enableTransition" />
|
|
55
|
+
</div>
|
|
56
|
+
<div v-if="enableTransition" class="transition-mode">
|
|
57
|
+
<HTooltip
|
|
58
|
+
v-for="(transition, index) in transitionModeList"
|
|
59
|
+
:key="index"
|
|
60
|
+
:text="transition.describe"
|
|
61
|
+
placement="bottom"
|
|
62
|
+
:delay="500"
|
|
63
|
+
>
|
|
64
|
+
<div
|
|
65
|
+
class="mode"
|
|
66
|
+
:class="[transitionMode === transition.active ? 'active' : '', transition.class]"
|
|
67
|
+
@click="clickHandle(transition.active)"
|
|
68
|
+
/>
|
|
69
|
+
</HTooltip>
|
|
70
|
+
</div>
|
|
71
|
+
</HDivider>
|
|
72
|
+
</template>
|
|
73
|
+
|
|
74
|
+
<style scoped>
|
|
75
|
+
.transition-mode {
|
|
76
|
+
--at-apply: flex items-center justify-center gap-4 pb-4;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.transition-mode .mode {
|
|
80
|
+
--at-apply: relative flex items-center justify-center w-14 h-10 rounded-2 ring-1 ring-stone-2 dark:ring-stone-7 cursor-pointer;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.transition-mode .mode.active {
|
|
84
|
+
--at-apply: ring-ui-primary ring-2;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.transition-mode .mode::after {
|
|
88
|
+
--at-apply: content-empty absolute w-3/5 h-3/5 top-1/5 left-1/5 rounded-2 bg-stone-2 dark:bg-stone-9 transition;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.transition-mode .mode.mode-fade::after {
|
|
92
|
+
animation: transition-mode-fade-after 1.5s infinite;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@keyframes transition-mode-fade-after {
|
|
96
|
+
0% {
|
|
97
|
+
opacity: 1;
|
|
98
|
+
}
|
|
99
|
+
30%, 35% {
|
|
100
|
+
opacity: 0;
|
|
101
|
+
}
|
|
102
|
+
65% {
|
|
103
|
+
opacity: 1;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.transition-mode .mode.mode-slide-left::after {
|
|
108
|
+
animation: transition-mode-slide-left 1.5s infinite;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@keyframes transition-mode-slide-left {
|
|
112
|
+
0% {
|
|
113
|
+
opacity: 1;
|
|
114
|
+
}
|
|
115
|
+
30% {
|
|
116
|
+
opacity: 0;
|
|
117
|
+
transform: translate(-30%, 0);
|
|
118
|
+
}
|
|
119
|
+
35% {
|
|
120
|
+
opacity: 0;
|
|
121
|
+
transform: translate(30%, 0);
|
|
122
|
+
}
|
|
123
|
+
65% {
|
|
124
|
+
opacity: 1;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.transition-mode .mode.mode-slide-right::after {
|
|
129
|
+
animation: transition-mode-slide-right 1.5s infinite;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
@keyframes transition-mode-slide-right {
|
|
133
|
+
0% {
|
|
134
|
+
opacity: 1;
|
|
135
|
+
}
|
|
136
|
+
30% {
|
|
137
|
+
opacity: 0;
|
|
138
|
+
transform: translate(30%, 0);
|
|
139
|
+
}
|
|
140
|
+
35% {
|
|
141
|
+
opacity: 0;
|
|
142
|
+
transform: translate(-30%, 0);
|
|
143
|
+
}
|
|
144
|
+
100% {
|
|
145
|
+
opacity: 1;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.transition-mode .mode.mode-slide-top::after {
|
|
150
|
+
animation: transition-mode-slide-top 1.5s infinite;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
@keyframes transition-mode-slide-top {
|
|
154
|
+
0% {
|
|
155
|
+
opacity: 1;
|
|
156
|
+
}
|
|
157
|
+
30% {
|
|
158
|
+
opacity: 0;
|
|
159
|
+
transform: translate(0, -30%);
|
|
160
|
+
}
|
|
161
|
+
35% {
|
|
162
|
+
opacity: 0;
|
|
163
|
+
transform: translate(0, 30%);
|
|
164
|
+
}
|
|
165
|
+
100% {
|
|
166
|
+
opacity: 1;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.transition-mode .mode.mode-slide-bottom::after {
|
|
171
|
+
animation: transition-mode-slide-bottom 1.5s infinite;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
@keyframes transition-mode-slide-bottom {
|
|
175
|
+
0% {
|
|
176
|
+
opacity: 1;
|
|
177
|
+
}
|
|
178
|
+
30% {
|
|
179
|
+
opacity: 0;
|
|
180
|
+
transform: translate(0, 30%);
|
|
181
|
+
}
|
|
182
|
+
35% {
|
|
183
|
+
opacity: 0;
|
|
184
|
+
transform: translate(0, -30%);
|
|
185
|
+
}
|
|
186
|
+
100% {
|
|
187
|
+
opacity: 1;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
</style>
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { useContext } from '../../../composables/useContext';
|
|
3
|
+
|
|
4
|
+
defineOptions({
|
|
5
|
+
name: 'SettingMode',
|
|
6
|
+
});
|
|
7
|
+
const { settingsStore } = useContext();
|
|
8
|
+
const menu = toRef(settingsStore.settings.menu, 'menuMode');
|
|
9
|
+
|
|
10
|
+
const modeSide = reactive<
|
|
11
|
+
{
|
|
12
|
+
describe: string
|
|
13
|
+
placement: string
|
|
14
|
+
active: Settings.menu['menuMode']
|
|
15
|
+
}[]
|
|
16
|
+
>([
|
|
17
|
+
{
|
|
18
|
+
describe: '侧边栏模式 (含主导航)',
|
|
19
|
+
placement: 'bottom',
|
|
20
|
+
active: 'side',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
describe: '顶部模式',
|
|
24
|
+
placement: 'bottom',
|
|
25
|
+
active: 'head',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
describe: '侧边栏模式 (不含主导航)',
|
|
29
|
+
placement: 'bottom',
|
|
30
|
+
active: 'single',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
describe: '侧边栏精简模式',
|
|
34
|
+
placement: 'bottom',
|
|
35
|
+
active: 'only-side',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
describe: '顶部精简模式',
|
|
39
|
+
placement: 'bottom',
|
|
40
|
+
active: 'only-head',
|
|
41
|
+
},
|
|
42
|
+
]);
|
|
43
|
+
function clickHandle(item: Settings.menu['menuMode']) {
|
|
44
|
+
if (item) {
|
|
45
|
+
menu.value = item;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
</script>
|
|
49
|
+
|
|
50
|
+
<template>
|
|
51
|
+
<HDivider title="导航栏模式">
|
|
52
|
+
<div class="menu-mode">
|
|
53
|
+
<template v-for="mode in modeSide" :key="mode.active">
|
|
54
|
+
<HTooltip
|
|
55
|
+
:text="mode.describe"
|
|
56
|
+
:placement="mode.placement"
|
|
57
|
+
:delay="500"
|
|
58
|
+
>
|
|
59
|
+
<div
|
|
60
|
+
class="mode"
|
|
61
|
+
:class="[menu === mode.active ? 'active' : '', `mode-${mode.active}`]"
|
|
62
|
+
@click="clickHandle(mode.active)"
|
|
63
|
+
>
|
|
64
|
+
<div class="mode-container" />
|
|
65
|
+
</div>
|
|
66
|
+
</HTooltip>
|
|
67
|
+
</template>
|
|
68
|
+
</div>
|
|
69
|
+
</HDivider>
|
|
70
|
+
</template>
|
|
71
|
+
|
|
72
|
+
<style scoped>
|
|
73
|
+
.menu-mode {
|
|
74
|
+
--at-apply: flex items-center justify-center gap-4 pb-4;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.menu-mode .mode {
|
|
78
|
+
--at-apply: relative w-16 h-12 rounded-2 ring-1 ring-stone-2 dark:ring-stone-7 cursor-pointer transition;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.menu-mode .mode.active {
|
|
82
|
+
--at-apply: ring-ui-primary ring-2;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.menu-mode .mode::before,
|
|
86
|
+
.menu-mode .mode::after,
|
|
87
|
+
.menu-mode .mode .mode-container {
|
|
88
|
+
--at-apply: absolute pointer-events-none;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.menu-mode .mode::before {
|
|
92
|
+
--at-apply: content-empty bg-ui-primary;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.menu-mode .mode::after {
|
|
96
|
+
--at-apply: content-empty bg-ui-primary/60;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.menu-mode .mode .mode-container {
|
|
100
|
+
--at-apply: bg-ui-primary/20 border-dashed border-ui-primary;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.menu-mode .mode .mode-container::before {
|
|
104
|
+
--at-apply: content-empty absolute w-full h-full;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.menu-mode .mode-side::before {
|
|
108
|
+
--at-apply: top-2 bottom-2 left-2 w-2 rounded-tl-1 rounded-bl-1;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.menu-mode .mode-side::after {
|
|
112
|
+
--at-apply: top-2 bottom-2 left-4.5 w-3;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.menu-mode .mode-side .mode-container {
|
|
116
|
+
--at-apply: inset-t-2 inset-r-2 inset-b-2 inset-l-8 rounded-tr-1 rounded-br-1;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.menu-mode .mode-head::before {
|
|
120
|
+
--at-apply: top-2 left-2 right-2 h-2 rounded-tl-1 rounded-tr-1;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.menu-mode .mode-head::after {
|
|
124
|
+
--at-apply: top-4.5 left-2 bottom-2 w-3 rounded-bl-1;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.menu-mode .mode-head .mode-container {
|
|
128
|
+
--at-apply: inset-t-4.5 inset-r-2 inset-b-2 inset-l-5.5 rounded-br-1;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.menu-mode .mode-single::after {
|
|
132
|
+
--at-apply: top-2 left-2 bottom-2 w-3 rounded-tl-1 rounded-bl-1;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.menu-mode .mode-single .mode-container {
|
|
136
|
+
--at-apply: inset-t-2 inset-r-2 inset-b-2 inset-l-5.5 rounded-tr-1 rounded-br-1;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.menu-mode .mode-only-side::before {
|
|
140
|
+
--at-apply: top-2 bottom-2 left-2 w-2 rounded-tl-1 rounded-bl-1;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.menu-mode .mode-only-side .mode-container {
|
|
144
|
+
--at-apply: inset-t-2 inset-r-2 inset-b-2 inset-l-4.5 rounded-tr-1 rounded-br-1;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.menu-mode .mode-only-head::before {
|
|
148
|
+
--at-apply: top-2 left-2 right-2 h-2 rounded-tl-1 rounded-tr-1;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.menu-mode .mode-only-head .mode-container {
|
|
152
|
+
--at-apply: inset-t-4.5 inset-r-2 inset-b-2 inset-l-2 rounded-bl-1 rounded-br-1;
|
|
153
|
+
}
|
|
154
|
+
</style>
|