@pubinfo-nightly/module-rbac 2025.11.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/ComponentSelect-ZLey_5w7.js +4 -0
- package/dist/ComponentSelect.css +1 -0
- package/dist/ComponentSelect.vue_vue_type_style_index_0_lang-CMEO08Uz.js +3981 -0
- package/dist/DynamicRoutesForm-BU4EAISs.js +4 -0
- package/dist/DynamicRoutesForm.vue_vue_type_script_setup_true_lang-bEqJ03T_.js +179 -0
- package/dist/HCheckList-Dkxhu1br.js +4 -0
- package/dist/HCheckList.vue_vue_type_script_setup_true_lang-n_QczT28.js +41 -0
- package/dist/HoverCard-7agF2aDO.js +4 -0
- package/dist/HoverCard.vue_vue_type_script_setup_true_lang-DEScDCo1.js +62 -0
- package/dist/IconSelect-DtNpk3Rj.js +4 -0
- package/dist/IconSelect.css +1 -0
- package/dist/IconSelect.vue_vue_type_script_setup_true_lang-D450SiKg.js +757 -0
- package/dist/ImportExport-DAe_Sl13.js +4 -0
- package/dist/ImportExport.vue_vue_type_script_setup_true_lang-CV0DrMvw.js +456 -0
- package/dist/LayoutForm-Pv6UyKl3.js +173 -0
- package/dist/LayoutForm.css +1 -0
- package/dist/MetaForm-BMPtZc0g.js +42413 -0
- package/dist/MetaForm.css +1 -0
- package/dist/OrgAndPosition-R-YixdXG.js +4 -0
- package/dist/OrgAndPosition.vue_vue_type_script_setup_true_lang-jEjTok4n.js +195 -0
- package/dist/ResourceEdit-D59JUDvG.js +4 -0
- package/dist/ResourceEdit.vue_vue_type_script_setup_true_lang-IWn27Vz1.js +429 -0
- package/dist/ResourceRelation-CeM9Eq39.js +90 -0
- package/dist/ResourceRelation-qhIdXLAy.js +111 -0
- package/dist/ResourceRelation.css +1 -0
- package/dist/ResourceRelation2.css +1 -0
- package/dist/RoleRelation-BuqK0cnl.js +4 -0
- package/dist/RoleRelation.vue_vue_type_script_setup_true_lang-BjEOlM2g.js +93 -0
- package/dist/RoleSelector.vue_vue_type_script_setup_true_lang-ZwsINUBu.js +352 -0
- package/dist/TenantEdit-C61O1pSu.js +4 -0
- package/dist/TenantEdit.vue_vue_type_script_setup_true_lang-BwsA9hth.js +306 -0
- package/dist/UserAuthorization-Ch_iKzms.js +273 -0
- package/dist/UserAuthorization.css +1 -0
- package/dist/UserEdit-B1fnFcSC.js +4 -0
- package/dist/UserEdit.vue_vue_type_script_setup_true_lang-SIR1ZO_N.js +315 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/add-child-B9gDBQjZ.js +4 -0
- package/dist/animation_item-BZ1HNA6o.js +4 -0
- package/dist/animation_item.vue_vue_type_script_setup_true_lang-CmwThjHB.js +4858 -0
- package/dist/api/modules/assist/gonggaofuwu.d.ts +43 -0
- package/dist/api/modules/assist/index.d.ts +3 -0
- package/dist/api/modules/assist/qunzujiekou.d.ts +43 -0
- package/dist/api/modules/assist/quyujiekou.d.ts +36 -0
- package/dist/api/modules/configData/heibaimingdanfuwu.d.ts +36 -0
- package/dist/api/modules/configData/index.d.ts +3 -0
- package/dist/api/modules/configData/xitongpeizhifuwu.d.ts +99 -0
- package/dist/api/modules/configData/zidifuwu.d.ts +71 -0
- package/dist/api/modules/log/caozuorizhifuwu.d.ts +15 -0
- package/dist/api/modules/log/denglurizhifuwu.d.ts +15 -0
- package/dist/api/modules/log/index.d.ts +2 -0
- package/dist/api/modules/rbac/gangweijiekou.d.ts +43 -0
- package/dist/api/modules/rbac/index.d.ts +12 -0
- package/dist/api/modules/rbac/jiaosejiekou.d.ts +50 -0
- package/dist/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +50 -0
- package/dist/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +64 -0
- package/dist/api/modules/rbac/yonghujiekou.d.ts +106 -0
- package/dist/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +36 -0
- package/dist/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +29 -0
- package/dist/api/modules/rbac/ziyuandaorudaochuxiangguanjiekou.d.ts +43 -0
- package/dist/api/modules/rbac/ziyuanjiekou.d.ts +92 -0
- package/dist/api/modules/rbac/zuhuguanlijiekou.d.ts +36 -0
- package/dist/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +29 -0
- package/dist/api/modules/rbac/zuzhijiekou.d.ts +64 -0
- package/dist/api/request.d.ts +1 -0
- package/dist/authority-B-0S66Fv.js +4 -0
- package/dist/authorize-DnyYvAo3.js +4 -0
- package/dist/blacklist-disable-DzVU8JLV.js +4 -0
- package/dist/blacklist-enable-BmWQR1i4.js +4 -0
- package/dist/browser-chrome-O9MASusF.js +4 -0
- package/dist/browser-edge-Dk6N_uRy.js +4 -0
- package/dist/browser-ie-Dtz7hQTC.js +4 -0
- package/dist/browser-other-Crzi8vov.js +4 -0
- package/dist/browser-safari-DF0pVlrn.js +4 -0
- package/dist/browserType-DQySszjD.js +4 -0
- package/dist/browserType.vue_vue_type_script_setup_true_lang-od1-AmrS.js +32 -0
- package/dist/cloneDeep-BOLZdR62.js +8 -0
- package/dist/components/DirectoryIcones/ComponentsIcones.vue.d.ts +7 -0
- package/dist/components/DirectoryIcones/FolderIcones.vue.d.ts +7 -0
- package/dist/components/DirectoryIcones/ModuleIcones.vue.d.ts +7 -0
- package/dist/components/DirectoryIcones/PackagesIcones.vue.d.ts +7 -0
- package/dist/components/DirectoryIcones/SrcIcones.vue.d.ts +7 -0
- package/dist/components/DirectoryIcones/ViewIcones.vue.d.ts +7 -0
- package/dist/components/DirectoryIcones/VueIcones.vue.d.ts +2 -0
- package/dist/components/GroupSelector/index.vue.d.ts +15 -0
- package/dist/components/GroupSelector/interface.d.ts +6 -0
- package/dist/components/OrgUserSelector/OrgSelector.vue.d.ts +68 -0
- package/dist/components/OrgUserSelector/UserSelector.vue.d.ts +72 -0
- package/dist/components/OrgUserSelector/index.d.ts +9 -0
- package/dist/components/OrgUserSelector/provider.d.ts +24 -0
- package/dist/components/ResourceIcones/BoxColorPicker.vue.d.ts +26 -0
- package/dist/components/ResourceIcones/Select.vue.d.ts +58 -0
- package/dist/components/ResourceSelector/enum.d.ts +5 -0
- package/dist/components/ResourceSelector/hooks/useAppAndResource.d.ts +29 -0
- package/dist/components/ResourceSelector/index.vue.d.ts +24 -0
- package/dist/components/RoleSelector/RoleSearch.vue.d.ts +19 -0
- package/dist/components/RoleSelector/RoleSelector.vue.d.ts +20 -0
- package/dist/components/RoleSelector/TooltipLabel.vue.d.ts +8 -0
- package/dist/components/RoleSelector/index.d.ts +2 -0
- package/dist/components/RoleSelector/interface.d.ts +4 -0
- package/dist/components/RoleSelector/useRole.d.ts +13 -0
- package/dist/composables/useLottie.d.ts +11 -0
- package/dist/composables/useWebSocketManager.d.ts +8 -0
- package/dist/context.d.ts +2 -0
- package/dist/createAndEditDataPermission-DPeFulie.js +4 -0
- package/dist/createAndEditDataPermission.css +1 -0
- package/dist/createAndEditDataPermission.vue_vue_type_script_setup_true_lang-DlUIYtif.js +528 -0
- package/dist/dayjs.min-B2Yn1Frg.js +284 -0
- package/dist/drawerBlackWhiteList-eWyKScZN.js +4 -0
- package/dist/drawerBlackWhiteList.vue_vue_type_script_setup_true_lang-CNBKo3Jg.js +173 -0
- package/dist/drawerDictionary-BRGmcIFT.js +4 -0
- package/dist/drawerDictionary.vue_vue_type_script_setup_true_lang-0zsptmrP.js +146 -0
- package/dist/drawerDictionaryItem-CFBfyhEw.js +4 -0
- package/dist/drawerDictionaryItem.vue_vue_type_script_setup_true_lang-DeJblyyZ.js +158 -0
- package/dist/drawerGroup-Bs1Z8XPo.js +4 -0
- package/dist/drawerGroup.vue_vue_type_script_setup_true_lang-ClG-M0Ru.js +202 -0
- package/dist/drawerOrganization-Bs0YtPuo.js +4 -0
- package/dist/drawerOrganization.vue_vue_type_script_setup_true_lang-5YJaULAh.js +250 -0
- package/dist/drawerPosition-BA_gLotd.js +4 -0
- package/dist/drawerPosition.vue_vue_type_script_setup_true_lang-ZqfbI05C.js +181 -0
- package/dist/drawerRegion-CauOP4lh.js +4 -0
- package/dist/drawerRegion.vue_vue_type_script_setup_true_lang-DeL9jV-P.js +235 -0
- package/dist/drawerRole-CXGVqxPX.js +4 -0
- package/dist/drawerRole-CfJjf3v_.js +4 -0
- package/dist/drawerRole-nmMTIQYS.js +4 -0
- package/dist/drawerRole.vue_vue_type_script_setup_true_lang-B-VZS3gq.js +243 -0
- package/dist/drawerRole.vue_vue_type_script_setup_true_lang-B1eT0e_Q.js +197 -0
- package/dist/drawerRole.vue_vue_type_script_setup_true_lang-Surpf3ov.js +191 -0
- package/dist/edit-B69fMWPH.js +4 -0
- package/dist/enum-C9ihxJe7.js +4 -0
- package/dist/enum-D5iPiZiT.js +17 -0
- package/dist/enum-DDKThkSw.js +24 -0
- package/dist/enum-DkSNwGbC.js +74 -0
- package/dist/gangweijiekou-CUGlx4Ni.js +48 -0
- package/dist/icard-C4FaIC0V.js +4 -0
- package/dist/icon_animation-CfRxn8ne.js +4 -0
- package/dist/icon_breadcrumb-CAPCH16K.js +4 -0
- package/dist/icon_copyright-T9HuRtib.js +4 -0
- package/dist/icon_jt-BZgxEG_D.js +4 -0
- package/dist/icon_layout-BynQzkfn.js +4 -0
- package/dist/icon_mainpage-Bu_lyj_6.js +4 -0
- package/dist/icon_menu-D41hl_4p.js +4 -0
- package/dist/icon_page_size-Bioi61il.js +4 -0
- package/dist/icon_position_type-QpezzPDJ.js +4 -0
- package/dist/icon_safe_manage-ByWMOnwf.js +4 -0
- package/dist/icon_screen_scale-CuPyb7Ni.js +4 -0
- package/dist/icon_system_manage-BxRLv7Nw.js +4 -0
- package/dist/icon_tabbar-CetwmJHN.js +4 -0
- package/dist/icon_toolbar-DXt_LXp8.js +4 -0
- package/dist/icon_topbar-C186yIiC.js +4 -0
- package/dist/icon_watermark-DhaloO3m.js +4 -0
- package/dist/index-B0zXLUdu.js +350 -0
- package/dist/index-B5aP0re3.js +170 -0
- package/dist/index-BEB4liGe.js +151 -0
- package/dist/index-BNwGLzXe.js +168 -0
- package/dist/index-BXvJhqJD.js +97 -0
- package/dist/index-BhZNbJp6.js +189 -0
- package/dist/index-Bm3WQuJD.js +226 -0
- package/dist/index-C2G4xRrJ.js +144 -0
- package/dist/index-C5WD-YUu.js +246 -0
- package/dist/index-CJQB8KAz.js +186 -0
- package/dist/index-CLnFLvHy.js +193 -0
- package/dist/index-CbVJdR5M.js +194 -0
- package/dist/index-ChWnVs6j.js +196 -0
- package/dist/index-CoZM8pyH.js +197 -0
- package/dist/index-Copy5kiW.js +17701 -0
- package/dist/index-D3Xw_aOi.js +144 -0
- package/dist/index-DHVEXch0.js +253 -0
- package/dist/index-DQhQqT_Z.js +269 -0
- package/dist/index-Dl0hWfIE.js +118 -0
- package/dist/index-En8oOf9e.js +168 -0
- package/dist/index-VZuizuKs.js +257 -0
- package/dist/index-XhYtVVT9.js +88 -0
- package/dist/index-iBmBJd50.js +181 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +7496 -0
- package/dist/index10.css +1 -0
- package/dist/index11.css +1 -0
- package/dist/index12.css +1 -0
- package/dist/index13.css +1 -0
- package/dist/index14.css +1 -0
- package/dist/index15.css +1 -0
- package/dist/index16.css +1 -0
- package/dist/index17.css +1 -0
- package/dist/index2.css +1 -0
- package/dist/index3.css +1 -0
- package/dist/index4.css +1 -0
- package/dist/index5.css +1 -0
- package/dist/index6.css +1 -0
- package/dist/index7.css +1 -0
- package/dist/index8.css +1 -0
- package/dist/index9.css +1 -0
- package/dist/interface.d.ts +71 -0
- package/dist/isEmpty-BgDIb4aS.js +20 -0
- package/dist/itemlist-zTYJtoSs.js +172 -0
- package/dist/jiaosejiekou-p42Hm9h3.js +58 -0
- package/dist/log-center-Bw9UlmOq.js +4 -0
- package/dist/loginHistoryDetail-BZVwG8m2.js +105 -0
- package/dist/loginHistoryDetail.css +1 -0
- package/dist/login_history-CMZGS2PN.js +221 -0
- package/dist/login_history.css +1 -0
- package/dist/not-data-BDuvYboz.js +4 -0
- package/dist/operateHistoryDetail-Badx3zl-.js +123 -0
- package/dist/operateHistoryDetail.css +1 -0
- package/dist/operate_history-B42WNY1u.js +217 -0
- package/dist/operate_history.css +1 -0
- package/dist/org-main-DfWpX8Wv.js +4 -0
- package/dist/org-unmain-DrX63NH5.js +4 -0
- package/dist/remove-D2ES5tEr.js +4 -0
- package/dist/resource-app-1lqF6C6F.js +4 -0
- package/dist/resource-btn-Cfo6ddAY.js +4 -0
- package/dist/resource-dynamic-BAwkCWS4.js +4 -0
- package/dist/resource-index-BS4V5uy8.js +4 -0
- package/dist/resource-menu-CEWU8Iis.js +4 -0
- package/dist/resource-micro-9S0h5AlK.js +4 -0
- package/dist/resource-nonmenu-BZ9e4ynT.js +4 -0
- package/dist/routes/index.d.ts +16 -0
- package/dist/routes/modules/authority.manage.menu.d.ts +3 -0
- package/dist/routes/modules/log.manage.menu.d.ts +3 -0
- package/dist/routes/modules/safe.manage.menu.d.ts +3 -0
- package/dist/routes/modules/stylesetting.manage.menu.d.ts +3 -0
- package/dist/routes/modules/system.manage.menu.d.ts +3 -0
- package/dist/setItem-Blb3dox4.js +87 -0
- package/dist/setItem.css +1 -0
- package/dist/setting-manage-Xj_s0OoK.js +4 -0
- package/dist/shujuquanxianzhubiaokongzhiqi-SpN37fyO.js +65 -0
- package/dist/stores/index.d.ts +1 -0
- package/dist/stores/view.d.ts +56 -0
- package/dist/theme-check-mark-D58efagJ.js +4 -0
- package/dist/theme-title-CYUX2SBW.js +4 -0
- package/dist/useAppAndResource-DDywX2iz.js +54 -0
- package/dist/utils/dict.d.ts +6 -0
- package/dist/utils/routeSystem.d.ts +55 -0
- package/dist/utils/validateObjectStructure.d.ts +11 -0
- package/dist/vanilla-picker-BAEwS4Fy.js +536 -0
- package/dist/view-BCWU0JWM.js +4 -0
- package/dist/views/blackWhiteList/components/drawerBlackWhiteList.vue.d.ts +14 -0
- package/dist/views/blackWhiteList/enum.d.ts +7 -0
- package/dist/views/blackWhiteList/index.vue.d.ts +1535 -0
- package/dist/views/blackWhiteList/types.d.ts +4 -0
- package/dist/views/breadcrumb_setting/animationData.d.ts +7 -0
- package/dist/views/breadcrumb_setting/index.vue.d.ts +2 -0
- package/dist/views/components/HCheckList.vue.d.ts +20 -0
- package/dist/views/components/animation_item.vue.d.ts +14 -0
- package/dist/views/components/setItem.vue.d.ts +61 -0
- package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +172 -0
- package/dist/views/data-permission/enum.d.ts +34 -0
- package/dist/views/data-permission/index.vue.d.ts +1691 -0
- package/dist/views/dictionary/components/drawerDictionary.vue.d.ts +12 -0
- package/dist/views/dictionary/components/drawerDictionaryItem.vue.d.ts +12 -0
- package/dist/views/dictionary/enum.d.ts +8 -0
- package/dist/views/dictionary/index.vue.d.ts +1532 -0
- package/dist/views/dictionary/itemlist.vue.d.ts +1532 -0
- package/dist/views/group/components/drawerGroup.vue.d.ts +12 -0
- package/dist/views/group/enum.d.ts +21 -0
- package/dist/views/group/index.vue.d.ts +1532 -0
- package/dist/views/layout_setting/index.vue.d.ts +2 -0
- package/dist/views/log_center/components/browserType.vue.d.ts +12 -0
- package/dist/views/log_center/components/loginHistoryDetail.vue.d.ts +14 -0
- package/dist/views/log_center/components/operateHistoryDetail.vue.d.ts +14 -0
- package/dist/views/log_center/login_history.vue.d.ts +1511 -0
- package/dist/views/log_center/operate_history.vue.d.ts +1511 -0
- package/dist/views/menu_setting/animationData.d.ts +13 -0
- package/dist/views/menu_setting/index.vue.d.ts +2 -0
- package/dist/views/organization/components/drawerOrganization.vue.d.ts +12 -0
- package/dist/views/organization/components/drawerRole.vue.d.ts +44 -0
- package/dist/views/organization/enum.d.ts +25 -0
- package/dist/views/organization/index.vue.d.ts +81 -0
- package/dist/views/other_setting/animationData.d.ts +7 -0
- package/dist/views/other_setting/index.vue.d.ts +2 -0
- package/dist/views/other_setting/interface.d.ts +23 -0
- package/dist/views/page_animation_setting/animationData.d.ts +11 -0
- package/dist/views/page_animation_setting/index.vue.d.ts +2 -0
- package/dist/views/page_w_setting/index.vue.d.ts +2 -0
- package/dist/views/position/components/drawerPosition.vue.d.ts +12 -0
- package/dist/views/position/enum.d.ts +8 -0
- package/dist/views/position/index.vue.d.ts +1532 -0
- package/dist/views/region/components/drawerRegion.vue.d.ts +12 -0
- package/dist/views/region/enum.d.ts +22 -0
- package/dist/views/region/index.vue.d.ts +1533 -0
- package/dist/views/resource/components/ComponentSelect.vue.d.ts +14 -0
- package/dist/views/resource/components/DynamicRoutesForm.vue.d.ts +13 -0
- package/dist/views/resource/components/HoverCard.vue.d.ts +21 -0
- package/dist/views/resource/components/IconSelect.vue.d.ts +10 -0
- package/dist/views/resource/components/ImportExport.vue.d.ts +13 -0
- package/dist/views/resource/components/LayoutForm.vue.d.ts +10 -0
- package/dist/views/resource/components/MetaForm.vue.d.ts +10 -0
- package/dist/views/resource/components/ResourceEdit.vue.d.ts +16 -0
- package/dist/views/resource/components/RoleRelation.vue.d.ts +6 -0
- package/dist/views/resource/enum.d.ts +23 -0
- package/dist/views/resource/hooks/useLayoutForm.d.ts +12 -0
- package/dist/views/resource/hooks/useMetaForm.d.ts +6 -0
- package/dist/views/resource/index.vue.d.ts +1571 -0
- package/dist/views/resource/interface.d.ts +9 -0
- package/dist/views/resource/model.d.ts +53 -0
- package/dist/views/role/components/ResourceRelation.vue.d.ts +1515 -0
- package/dist/views/role/components/drawerRole.vue.d.ts +49 -0
- package/dist/views/role/enum.d.ts +25 -0
- package/dist/views/role/index.vue.d.ts +3090 -0
- package/dist/views/role/interface.d.ts +6 -0
- package/dist/views/role_group/components/drawerRole.vue.d.ts +45 -0
- package/dist/views/role_group/enum.d.ts +21 -0
- package/dist/views/role_group/index.vue.d.ts +1565 -0
- package/dist/views/role_group/interface.d.ts +6 -0
- package/dist/views/safe_setting/index.vue.d.ts +4 -0
- package/dist/views/tabbar_setting/animationData.d.ts +11 -0
- package/dist/views/tabbar_setting/index.vue.d.ts +2 -0
- package/dist/views/tenant/components/TenantEdit.vue.d.ts +14 -0
- package/dist/views/tenant/enum.d.ts +7 -0
- package/dist/views/tenant/index.vue.d.ts +1534 -0
- package/dist/views/tenant/interface.d.ts +6 -0
- package/dist/views/theme_setting/index.vue.d.ts +2 -0
- package/dist/views/toolbar_setting/animationData.d.ts +15 -0
- package/dist/views/toolbar_setting/index.vue.d.ts +2 -0
- package/dist/views/user/components/OrgAndPosition.vue.d.ts +14 -0
- package/dist/views/user/components/UserAuthorization.vue.d.ts +47 -0
- package/dist/views/user/components/UserEdit.vue.d.ts +16 -0
- package/dist/views/user/enum.d.ts +13 -0
- package/dist/views/user/index.vue.d.ts +1594 -0
- package/dist/views/user/interface.d.ts +39 -0
- package/dist/views/watermark_setting/animationData.d.ts +3 -0
- package/dist/views/watermark_setting/index.vue.d.ts +31 -0
- package/dist/xitongpeizhifuwu-BoCbGEk7.js +23 -0
- package/dist/zddata-DQP5Kx3c.js +4 -0
- package/dist/ziyuanjiekou-BC65-bFK.js +69 -0
- package/dist/zuzhijiaosebiaokongzhiqi-Cj4ZjkfZ.js +28 -0
- package/dist/zy_checked-Bb6zRsYe.js +4 -0
- package/dist/zy_default-BGjhoury.js +4 -0
- package/package.json +59 -0
- package/src/api/modules/assist/gonggaofuwu.ts +124 -0
- package/src/api/modules/assist/index.ts +3 -0
- package/src/api/modules/assist/qunzujiekou.ts +128 -0
- package/src/api/modules/assist/quyujiekou.ts +108 -0
- package/src/api/modules/assist/typings.d.ts +368 -0
- package/src/api/modules/configData/heibaimingdanfuwu.ts +106 -0
- package/src/api/modules/configData/index.ts +3 -0
- package/src/api/modules/configData/typings.d.ts +357 -0
- package/src/api/modules/configData/xitongpeizhifuwu.ts +346 -0
- package/src/api/modules/configData/zidifuwu.ts +227 -0
- package/src/api/modules/log/caozuorizhifuwu.ts +43 -0
- package/src/api/modules/log/denglurizhifuwu.ts +43 -0
- package/src/api/modules/log/index.ts +2 -0
- package/src/api/modules/log/typings.d.ts +183 -0
- package/src/api/modules/rbac/gangweijiekou.ts +132 -0
- package/src/api/modules/rbac/index.ts +12 -0
- package/src/api/modules/rbac/jiaosejiekou.ts +139 -0
- package/src/api/modules/rbac/pubJiaosezukongzhiqi.ts +152 -0
- package/src/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.ts +200 -0
- package/src/api/modules/rbac/typings.d.ts +2124 -0
- package/src/api/modules/rbac/yonghujiekou.ts +327 -0
- package/src/api/modules/rbac/yonghushoucangbiaojiekou.ts +110 -0
- package/src/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.ts +82 -0
- package/src/api/modules/rbac/ziyuandaorudaochuxiangguanjiekou.ts +158 -0
- package/src/api/modules/rbac/ziyuanjiekou.ts +262 -0
- package/src/api/modules/rbac/zuhuguanlijiekou.ts +100 -0
- package/src/api/modules/rbac/zuzhijiaosebiaokongzhiqi.ts +85 -0
- package/src/api/modules/rbac/zuzhijiekou.ts +189 -0
- package/src/api/request.ts +4 -0
- package/src/assets/icons/add-child.svg +1 -0
- package/src/assets/icons/authority.svg +1 -0
- package/src/assets/icons/authorize.svg +1 -0
- package/src/assets/icons/blacklist-disable.svg +1 -0
- package/src/assets/icons/blacklist-enable.svg +1 -0
- package/src/assets/icons/browser-chrome.svg +1 -0
- package/src/assets/icons/browser-edge.svg +1 -0
- package/src/assets/icons/browser-ie.svg +1 -0
- package/src/assets/icons/browser-other.svg +1 -0
- package/src/assets/icons/browser-safari.svg +1 -0
- package/src/assets/icons/edit.svg +1 -0
- package/src/assets/icons/icard.svg +1 -0
- package/src/assets/icons/icon_animation.svg +1 -0
- package/src/assets/icons/icon_breadcrumb.svg +1 -0
- package/src/assets/icons/icon_copyright.svg +1 -0
- package/src/assets/icons/icon_jt.svg +1 -0
- package/src/assets/icons/icon_layout.svg +1 -0
- package/src/assets/icons/icon_mainpage.svg +1 -0
- package/src/assets/icons/icon_menu.svg +1 -0
- package/src/assets/icons/icon_page_size.svg +1 -0
- package/src/assets/icons/icon_position_type.svg +1 -0
- package/src/assets/icons/icon_safe_manage.svg +1 -0
- package/src/assets/icons/icon_screen_scale.svg +6 -0
- package/src/assets/icons/icon_system_manage.svg +1 -0
- package/src/assets/icons/icon_tabbar.svg +1 -0
- package/src/assets/icons/icon_toolbar.svg +1 -0
- package/src/assets/icons/icon_topbar.svg +1 -0
- package/src/assets/icons/icon_watermark.svg +1 -0
- package/src/assets/icons/log-center.svg +1 -0
- package/src/assets/icons/not-data.svg +1 -0
- package/src/assets/icons/org-main.svg +1 -0
- package/src/assets/icons/org-unmain.svg +1 -0
- package/src/assets/icons/remove.svg +1 -0
- package/src/assets/icons/resource-app.svg +1 -0
- package/src/assets/icons/resource-btn.svg +1 -0
- package/src/assets/icons/resource-dynamic.svg +39 -0
- package/src/assets/icons/resource-index.svg +1 -0
- package/src/assets/icons/resource-menu.svg +1 -0
- package/src/assets/icons/resource-micro.svg +40 -0
- package/src/assets/icons/resource-nonmenu.svg +1 -0
- package/src/assets/icons/setting-manage.svg +1 -0
- package/src/assets/icons/theme-check-mark.svg +1 -0
- package/src/assets/icons/theme-title.svg +1 -0
- package/src/assets/icons/view.svg +1 -0
- package/src/assets/icons/zddata.svg +1 -0
- package/src/assets/icons/zy_checked.svg +1 -0
- package/src/assets/icons/zy_default.svg +1 -0
- 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/lottie/breadcrumb/dark/enable.json +1 -0
- package/src/assets/lottie/breadcrumb/dark/enableMainMenu.json +1 -0
- package/src/assets/lottie/breadcrumb/dark/style.json +1 -0
- package/src/assets/lottie/breadcrumb/light/enable.json +1 -0
- package/src/assets/lottie/breadcrumb/light/enableMainMenu.json +1 -0
- package/src/assets/lottie/breadcrumb/light/style.json +1 -0
- package/src/assets/lottie/layout/data-test.json +1 -0
- package/src/assets/lottie/layout/data.json +1 -0
- package/src/assets/lottie/menu/dark/enableHotkeys.json +1 -0
- package/src/assets/lottie/menu/dark/enableSubMenuCollapseButton.json +1 -0
- package/src/assets/lottie/menu/dark/isRounded.json +1 -0
- package/src/assets/lottie/menu/dark/menuActiveStyle.json +1 -0
- package/src/assets/lottie/menu/dark/subMenuCollapse.json +1 -0
- package/src/assets/lottie/menu/dark/subMenuUniqueOpened.json +1 -0
- package/src/assets/lottie/menu/light/enableHotkeys.json +1 -0
- package/src/assets/lottie/menu/light/enableSubMenuCollapseButton.json +1 -0
- package/src/assets/lottie/menu/light/isRounded.json +1 -0
- package/src/assets/lottie/menu/light/menuActiveStyle.json +1 -0
- package/src/assets/lottie/menu/light/subMenuCollapse.json +1 -0
- package/src/assets/lottie/menu/light/subMenuUniqueOpened.json +1 -0
- package/src/assets/lottie/other/dark/enableCopyright.json +1 -0
- package/src/assets/lottie/other/dark/enableHotkeys.json +1 -0
- package/src/assets/lottie/other/dark/switchTabbarAndToolbar.json +1 -0
- package/src/assets/lottie/other/light/enableCopyright.json +1 -0
- package/src/assets/lottie/other/light/enableHotkeys.json +1 -0
- package/src/assets/lottie/other/light/switchTabbarAndToolbar.json +1 -0
- package/src/assets/lottie/page_animation/dark/fadeinout.json +1 -0
- package/src/assets/lottie/page_animation/dark/fadeinout_old.json +1 -0
- package/src/assets/lottie/page_animation/dark/tobottom.json +1 -0
- package/src/assets/lottie/page_animation/dark/tobottom_old.json +1 -0
- package/src/assets/lottie/page_animation/dark/toleft.json +1 -0
- package/src/assets/lottie/page_animation/dark/toleft_old.json +1 -0
- package/src/assets/lottie/page_animation/dark/toright.json +1 -0
- package/src/assets/lottie/page_animation/dark/toright_old.json +1 -0
- package/src/assets/lottie/page_animation/dark/totop.json +1 -0
- package/src/assets/lottie/page_animation/dark/totop_old.json +1 -0
- package/src/assets/lottie/page_animation/light/fadeinout.json +1 -0
- package/src/assets/lottie/page_animation/light/tobottom.json +1 -0
- package/src/assets/lottie/page_animation/light/toleft.json +1 -0
- package/src/assets/lottie/page_animation/light/toright.json +1 -0
- package/src/assets/lottie/page_animation/light/totop.json +1 -0
- package/src/assets/lottie/tabbar/dark/enable.json +1 -0
- package/src/assets/lottie/tabbar/dark/enableHotkeys.json +1 -0
- package/src/assets/lottie/tabbar/dark/enableIcon.json +1 -0
- package/src/assets/lottie/tabbar/dark/enableMemory.json +1 -0
- package/src/assets/lottie/tabbar/dark/style.json +1 -0
- package/src/assets/lottie/tabbar/light/enable.json +1 -0
- package/src/assets/lottie/tabbar/light/enableHotkeys.json +1 -0
- package/src/assets/lottie/tabbar/light/enableIcon.json +1 -0
- package/src/assets/lottie/tabbar/light/enableMemory.json +1 -0
- package/src/assets/lottie/tabbar/light/style.json +1 -0
- package/src/assets/lottie/toolbar/dark/enableColorScheme.json +1 -0
- package/src/assets/lottie/toolbar/dark/enableFullscreen.json +1 -0
- package/src/assets/lottie/toolbar/dark/enableI18n.json +1 -0
- package/src/assets/lottie/toolbar/dark/enableNotification.json +1 -0
- package/src/assets/lottie/toolbar/dark/enablePageReload.json +1 -0
- package/src/assets/lottie/toolbar/dark/enableUserPreferences.json +1 -0
- package/src/assets/lottie/toolbar/dark/navSearchEnable.json +1 -0
- package/src/assets/lottie/toolbar/dark/navSearchEnableHotkeys.json +1 -0
- package/src/assets/lottie/toolbar/light/enableColorScheme.json +1 -0
- package/src/assets/lottie/toolbar/light/enableFullscreen.json +1 -0
- package/src/assets/lottie/toolbar/light/enableI18n.json +1 -0
- package/src/assets/lottie/toolbar/light/enableNotification.json +1 -0
- package/src/assets/lottie/toolbar/light/enablePageReload.json +1 -0
- package/src/assets/lottie/toolbar/light/enableUserPreferences.json +1 -0
- package/src/assets/lottie/toolbar/light/navSearchEnable.json +1 -0
- package/src/assets/lottie/toolbar/light/navSearchEnableHotkeys.json +1 -0
- package/src/assets/lottie/watermark/dark/enableWatermark.json +1 -0
- package/src/assets/lottie/watermark/light/enableWatermark.json +1 -0
- package/src/assets/styles/vxe-table.css +13 -0
- package/src/components/DirectoryIcones/ComponentsIcones.vue +18 -0
- package/src/components/DirectoryIcones/FolderIcones.vue +18 -0
- package/src/components/DirectoryIcones/ModuleIcones.vue +18 -0
- package/src/components/DirectoryIcones/PackagesIcones.vue +18 -0
- package/src/components/DirectoryIcones/SrcIcones.vue +18 -0
- package/src/components/DirectoryIcones/ViewIcones.vue +18 -0
- package/src/components/DirectoryIcones/VueIcones.vue +9 -0
- package/src/components/GroupSelector/index.vue +280 -0
- package/src/components/GroupSelector/interface.ts +6 -0
- package/src/components/JsonEditorModal/index.vue +59 -0
- package/src/components/OrgTree/index.vue +91 -0
- package/src/components/OrgUserSelector/OrgSelector.vue +135 -0
- package/src/components/OrgUserSelector/UserSelector.vue +164 -0
- package/src/components/OrgUserSelector/index.ts +52 -0
- package/src/components/OrgUserSelector/provider.ts +373 -0
- package/src/components/ResourceIcones/BoxColorPicker.vue +228 -0
- package/src/components/ResourceIcones/Select.vue +474 -0
- package/src/components/ResourceSelector/enum.ts +5 -0
- package/src/components/ResourceSelector/hooks/useAppAndResource.ts +96 -0
- package/src/components/ResourceSelector/index.vue +414 -0
- package/src/components/RoleSelector/RoleSearch.vue +60 -0
- package/src/components/RoleSelector/RoleSelector.vue +174 -0
- package/src/components/RoleSelector/TooltipLabel.vue +24 -0
- package/src/components/RoleSelector/index.ts +2 -0
- package/src/components/RoleSelector/interface.ts +4 -0
- package/src/components/RoleSelector/useRole.ts +56 -0
- package/src/composables/useLottie.ts +65 -0
- package/src/composables/useWebSocketManager.ts +103 -0
- package/src/context.ts +4 -0
- package/src/index.ts +51 -0
- package/src/interface.ts +83 -0
- package/src/routes/index.ts +160 -0
- package/src/routes/modules/authority.manage.menu.ts +92 -0
- package/src/routes/modules/log.manage.menu.ts +37 -0
- package/src/routes/modules/safe.manage.menu.ts +59 -0
- package/src/routes/modules/stylesetting.manage.menu.ts +114 -0
- package/src/routes/modules/system.manage.menu.ts +82 -0
- package/src/stores/index.ts +1 -0
- package/src/stores/view.ts +292 -0
- package/src/utils/dict.ts +21 -0
- package/src/utils/routeSystem.ts +53 -0
- package/src/utils/validateObjectStructure.ts +47 -0
- package/src/views/blackWhiteList/components/drawerBlackWhiteList.vue +132 -0
- package/src/views/blackWhiteList/enum.ts +7 -0
- package/src/views/blackWhiteList/index.vue +297 -0
- package/src/views/blackWhiteList/types.ts +4 -0
- package/src/views/breadcrumb_setting/animationData.ts +15 -0
- package/src/views/breadcrumb_setting/index.vue +147 -0
- package/src/views/components/HCheckList.vue +47 -0
- package/src/views/components/animation_item.vue +37 -0
- package/src/views/components/setItem.vue +119 -0
- package/src/views/data-permission/components/createAndEditDataPermission.vue +354 -0
- package/src/views/data-permission/enum.ts +59 -0
- package/src/views/data-permission/index.vue +187 -0
- package/src/views/dictionary/components/drawerDictionary.vue +108 -0
- package/src/views/dictionary/components/drawerDictionaryItem.vue +115 -0
- package/src/views/dictionary/enum.ts +8 -0
- package/src/views/dictionary/index.vue +194 -0
- package/src/views/dictionary/itemlist.vue +164 -0
- package/src/views/group/components/drawerGroup.vue +177 -0
- package/src/views/group/enum.ts +25 -0
- package/src/views/group/index.vue +202 -0
- package/src/views/layout_setting/index.vue +296 -0
- package/src/views/log_center/components/browserType.vue +35 -0
- package/src/views/log_center/components/loginHistoryDetail.vue +69 -0
- package/src/views/log_center/components/operateHistoryDetail.vue +78 -0
- package/src/views/log_center/login_history.vue +234 -0
- package/src/views/log_center/operate_history.vue +228 -0
- package/src/views/menu_setting/animationData.ts +27 -0
- package/src/views/menu_setting/index.vue +207 -0
- package/src/views/organization/components/drawerOrganization.vue +161 -0
- package/src/views/organization/components/drawerRole.vue +161 -0
- package/src/views/organization/enum.ts +26 -0
- package/src/views/organization/index.vue +497 -0
- package/src/views/other_setting/animationData.ts +15 -0
- package/src/views/other_setting/index.vue +250 -0
- package/src/views/other_setting/interface.ts +26 -0
- package/src/views/page_animation_setting/animationData.ts +23 -0
- package/src/views/page_animation_setting/index.vue +192 -0
- package/src/views/page_w_setting/index.vue +255 -0
- package/src/views/position/components/drawerPosition.vue +131 -0
- package/src/views/position/enum.ts +8 -0
- package/src/views/position/index.vue +167 -0
- package/src/views/region/components/drawerRegion.vue +143 -0
- package/src/views/region/enum.ts +24 -0
- package/src/views/region/index.vue +246 -0
- package/src/views/resource/components/ComponentSelect.vue +303 -0
- package/src/views/resource/components/DynamicRoutesForm.vue +84 -0
- package/src/views/resource/components/HoverCard.vue +62 -0
- package/src/views/resource/components/IconSelect.vue +188 -0
- package/src/views/resource/components/ImportExport.vue +313 -0
- package/src/views/resource/components/LayoutForm.vue +92 -0
- package/src/views/resource/components/MetaForm.vue +216 -0
- package/src/views/resource/components/ResourceEdit.vue +331 -0
- package/src/views/resource/components/RoleRelation.vue +100 -0
- package/src/views/resource/enum.ts +33 -0
- package/src/views/resource/hooks/useLayoutForm.ts +57 -0
- package/src/views/resource/hooks/useMetaForm.ts +130 -0
- package/src/views/resource/index.vue +261 -0
- package/src/views/resource/interface.ts +10 -0
- package/src/views/resource/model.ts +81 -0
- package/src/views/role/components/ResourceRelation.vue +112 -0
- package/src/views/role/components/drawerRole.vue +191 -0
- package/src/views/role/enum.ts +26 -0
- package/src/views/role/index.vue +183 -0
- package/src/views/role/interface.ts +6 -0
- package/src/views/role_group/components/ResourceRelation.vue +90 -0
- package/src/views/role_group/components/drawerRole.vue +154 -0
- package/src/views/role_group/enum.ts +22 -0
- package/src/views/role_group/index.vue +170 -0
- package/src/views/role_group/interface.ts +6 -0
- package/src/views/safe_setting/index.vue +235 -0
- package/src/views/tabbar_setting/animationData.ts +23 -0
- package/src/views/tabbar_setting/index.vue +186 -0
- package/src/views/tenant/components/TenantEdit.vue +219 -0
- package/src/views/tenant/enum.ts +7 -0
- package/src/views/tenant/index.vue +185 -0
- package/src/views/tenant/interface.ts +4 -0
- package/src/views/theme_setting/index.vue +436 -0
- package/src/views/toolbar_setting/animationData.ts +38 -0
- package/src/views/toolbar_setting/index.vue +176 -0
- package/src/views/user/components/OrgAndPosition.vue +156 -0
- package/src/views/user/components/UserAuthorization.vue +261 -0
- package/src/views/user/components/UserEdit.vue +267 -0
- package/src/views/user/enum.ts +13 -0
- package/src/views/user/index.vue +266 -0
- package/src/views/user/interface.ts +43 -0
- package/src/views/watermark_setting/animationData.ts +7 -0
- package/src/views/watermark_setting/index.vue +229 -0
|
@@ -0,0 +1,436 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { colorScheme, cssVarKey } from 'pubinfo-nightly/client';
|
|
3
|
+
import { message } from 'ant-design-vue';
|
|
4
|
+
import { useTheme } from 'pubinfo-nightly';
|
|
5
|
+
import { getThemes } from 'pubinfo-nightly/client';
|
|
6
|
+
import { postSysconfigAddOrEidtSysThemeStyleConfig } from '@/api/modules/configData';
|
|
7
|
+
import { useSettingsStore } from '@/stores';
|
|
8
|
+
|
|
9
|
+
interface ThemeListCard {
|
|
10
|
+
label: string
|
|
11
|
+
value: colorScheme
|
|
12
|
+
colors: string[]
|
|
13
|
+
name?: string
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
defineOptions({
|
|
17
|
+
name: 'SettingGlobalThemes',
|
|
18
|
+
});
|
|
19
|
+
const { isDark } = useTheme();
|
|
20
|
+
|
|
21
|
+
const settingsStore = useSettingsStore();
|
|
22
|
+
|
|
23
|
+
const modeLabel = computed(() =>
|
|
24
|
+
settingsStore.globalSettings.app.colorScheme === 'light' ? '亮色模式颜色' : '暗色模式颜色',
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
const isLight = computed(() => {
|
|
28
|
+
return settingsStore.globalSettings.app.colorScheme === 'light';
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
const benchmark: cssVarKey[] = [
|
|
32
|
+
'--ui-primary',
|
|
33
|
+
'--ui-text',
|
|
34
|
+
'--g-bg',
|
|
35
|
+
'--g-header-bg',
|
|
36
|
+
'--g-main-sidebar-bg',
|
|
37
|
+
'--g-sub-sidebar-bg',
|
|
38
|
+
];
|
|
39
|
+
|
|
40
|
+
const themeList = computed<ThemeListCard[]>(() => {
|
|
41
|
+
const themes = getThemes();
|
|
42
|
+
const list = Object.keys(themes)
|
|
43
|
+
.map((key) => {
|
|
44
|
+
const value = themes[key];
|
|
45
|
+
const colors = benchmark.map((cssVar) => {
|
|
46
|
+
const cssValue = value[cssVar].startsWith('#')
|
|
47
|
+
? value[cssVar]
|
|
48
|
+
: `rgb(${value[cssVar]})`;
|
|
49
|
+
return cssValue;
|
|
50
|
+
});
|
|
51
|
+
const name = themes[key].label;
|
|
52
|
+
return {
|
|
53
|
+
label: key,
|
|
54
|
+
value,
|
|
55
|
+
colors,
|
|
56
|
+
name,
|
|
57
|
+
};
|
|
58
|
+
})
|
|
59
|
+
.filter(
|
|
60
|
+
cssVarScheme =>
|
|
61
|
+
cssVarScheme.value['color-scheme'] === settingsStore.globalSettings.app.colorScheme,
|
|
62
|
+
);
|
|
63
|
+
return list;
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
function changeTheme(theme: ThemeListCard) {
|
|
67
|
+
const label = theme.label;
|
|
68
|
+
const o = {} as any;
|
|
69
|
+
if (!isLight.value) {
|
|
70
|
+
settingsStore.globalSettings.app.darkTheme = label;
|
|
71
|
+
o.darkTheme = label;
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
settingsStore.globalSettings.app.lightTheme = label;
|
|
75
|
+
o.lightTheme = label;
|
|
76
|
+
}
|
|
77
|
+
updateConfig({
|
|
78
|
+
app: o,
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
async function changeMode(checked: boolean | string | number) {
|
|
83
|
+
const value = !checked ? 'dark' : 'light';
|
|
84
|
+
settingsStore.globalSettings.app.colorScheme = value;
|
|
85
|
+
await updateConfig({
|
|
86
|
+
app: {
|
|
87
|
+
colorScheme: value,
|
|
88
|
+
},
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
async function updateConfig(options: object) {
|
|
93
|
+
const jsonStr = JSON.stringify(options);
|
|
94
|
+
await postSysconfigAddOrEidtSysThemeStyleConfig({ content: jsonStr })
|
|
95
|
+
.then((res: API.ResponseDataBoolean) => {
|
|
96
|
+
if (res.success) {
|
|
97
|
+
message.success('设置成功');
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
</script>
|
|
102
|
+
|
|
103
|
+
<template>
|
|
104
|
+
<div
|
|
105
|
+
w-full
|
|
106
|
+
h-full
|
|
107
|
+
p-10px
|
|
108
|
+
pb-0
|
|
109
|
+
>
|
|
110
|
+
<div
|
|
111
|
+
class="w-full h-full bg-white overflow-y-auto p-10px pb-0 flex flex-col box-border dark:bg-[#141414]"
|
|
112
|
+
>
|
|
113
|
+
<div
|
|
114
|
+
class="bg-[#F0F4FF] h-[38px] pl-[16px] flex flex-row items-center b-rd-4px dark:bg-[#32353B]"
|
|
115
|
+
>
|
|
116
|
+
<PubinfoIcon name="theme-title" class="text-base mr-[6px]" :size="22" />
|
|
117
|
+
<span class="text-[16px] text-[#1d2129] dark:text-[#C9CDD4]">颜色主题风格</span>
|
|
118
|
+
</div>
|
|
119
|
+
<div class="mt-20px flex flex-row items-center">
|
|
120
|
+
<div
|
|
121
|
+
class="flex-none w-[136px] text-right font-400 text-[#4e5969] text-[14px] dark:text-[#C9CDD4]"
|
|
122
|
+
>
|
|
123
|
+
亮色/暗色切换
|
|
124
|
+
</div>
|
|
125
|
+
<a-switch
|
|
126
|
+
:checked="isLight"
|
|
127
|
+
class="ml-16px!"
|
|
128
|
+
checked-children="亮"
|
|
129
|
+
un-checked-children="暗"
|
|
130
|
+
@change="changeMode"
|
|
131
|
+
/>
|
|
132
|
+
</div>
|
|
133
|
+
<div class="mt-20px pb-24px flex flex-row">
|
|
134
|
+
<div
|
|
135
|
+
class="flex-none w-[136px] text-right font-400 text-[#4e5969] text-[14px] dark:text-[#C9CDD4]"
|
|
136
|
+
>
|
|
137
|
+
{{ modeLabel }}
|
|
138
|
+
</div>
|
|
139
|
+
<div
|
|
140
|
+
class="grid grid-cols-3 gap-x-[32px] gap-y-[16px] ml-16px mr-27px w-full max-w-1400px"
|
|
141
|
+
>
|
|
142
|
+
<div
|
|
143
|
+
v-for="(theme, index) in themeList"
|
|
144
|
+
:key="index"
|
|
145
|
+
class="theme-item"
|
|
146
|
+
:class="{
|
|
147
|
+
active: !isLight
|
|
148
|
+
? settingsStore.globalSettings.app.darkTheme === theme.label
|
|
149
|
+
: settingsStore.globalSettings.app.lightTheme === theme.label,
|
|
150
|
+
dark: isDark,
|
|
151
|
+
}"
|
|
152
|
+
aspect="[4/3]"
|
|
153
|
+
@click="changeTheme(theme)"
|
|
154
|
+
>
|
|
155
|
+
<p class="item-title">
|
|
156
|
+
<span
|
|
157
|
+
class="text-[#4e5969] text-[14px] dark:text-[#C9CDD4]"
|
|
158
|
+
>
|
|
159
|
+
{{
|
|
160
|
+
theme.name
|
|
161
|
+
}}
|
|
162
|
+
</span>
|
|
163
|
+
<PubinfoIcon
|
|
164
|
+
v-if="!isLight
|
|
165
|
+
? settingsStore.globalSettings.app.darkTheme === theme.label
|
|
166
|
+
: settingsStore.globalSettings.app.lightTheme === theme.label"
|
|
167
|
+
name="theme-check-mark"
|
|
168
|
+
class="text-base ml-[6px] text-#fff position-relative top--1px"
|
|
169
|
+
:size="20"
|
|
170
|
+
/>
|
|
171
|
+
</p>
|
|
172
|
+
<div class="item-content">
|
|
173
|
+
<div
|
|
174
|
+
flex
|
|
175
|
+
items-center
|
|
176
|
+
justify-center
|
|
177
|
+
class="spots-wrap"
|
|
178
|
+
>
|
|
179
|
+
<!-- colors 颜色会有重复使用的地方,key多段拼接 -->
|
|
180
|
+
<template
|
|
181
|
+
v-for="(color, _index) in theme.colors"
|
|
182
|
+
:key="theme.name + color + _index"
|
|
183
|
+
>
|
|
184
|
+
<div class="color-spot" :style="{ backgroundColor: color }" />
|
|
185
|
+
</template>
|
|
186
|
+
</div>
|
|
187
|
+
<div class="skeleton">
|
|
188
|
+
<header :style="{ backgroundColor: theme.colors[0] }">
|
|
189
|
+
<div class="dot" />
|
|
190
|
+
<div class="bar" />
|
|
191
|
+
</header>
|
|
192
|
+
<main class="skeleton-body">
|
|
193
|
+
<div class="aside">
|
|
194
|
+
<div class="side-line" :style="{ backgroundColor: theme.colors[0] }" />
|
|
195
|
+
<div v-for="i in 4" :key="i" class="side-line" />
|
|
196
|
+
</div>
|
|
197
|
+
<div class="main">
|
|
198
|
+
<div class="left">
|
|
199
|
+
<div v-for="i in 3" :key="i" class="left-item">
|
|
200
|
+
<div class="dot" />
|
|
201
|
+
<div class="lines-wrap">
|
|
202
|
+
<div class="line1" />
|
|
203
|
+
<div class="line2" />
|
|
204
|
+
</div>
|
|
205
|
+
</div>
|
|
206
|
+
</div>
|
|
207
|
+
<div class="right">
|
|
208
|
+
<div class="right-item" />
|
|
209
|
+
<div class="right-item" />
|
|
210
|
+
<div class="right-item" :style="{ backgroundColor: theme.colors[0], opacity: 0.3 }" />
|
|
211
|
+
<div class="right-item" />
|
|
212
|
+
</div>
|
|
213
|
+
</div>
|
|
214
|
+
</main>
|
|
215
|
+
</div>
|
|
216
|
+
</div>
|
|
217
|
+
</div>
|
|
218
|
+
</div>
|
|
219
|
+
</div>
|
|
220
|
+
</div>
|
|
221
|
+
</div>
|
|
222
|
+
</template>
|
|
223
|
+
|
|
224
|
+
<style scoped>
|
|
225
|
+
.theme-item {
|
|
226
|
+
--at-apply: flex flex-col cursor-pointer border border-[color:var(--border-2,#e5e6eb)] pt-3 pb-0 px-6 rounded-lg border-solid;
|
|
227
|
+
background: linear-gradient(180deg, #f4f7ff -22.05%, #fff 85.58%);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.theme-item.active {
|
|
231
|
+
--at-apply: border-[rgb(var(--ui-primary))] shadow-[0_2.6px_13px_0_#59626940] border-[2.6px] border-solid;
|
|
232
|
+
background: linear-gradient(180deg, #f4f7ff -22.05%, #fff 85.58%);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.theme-item.dark {
|
|
236
|
+
--at-apply: border-transparent;
|
|
237
|
+
background: linear-gradient(0deg, #3a3e43 0%, #3a3e43 100%), linear-gradient(180deg, #f4f7ff -22.05%, #fff 85.58%);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.theme-item.dark.active {
|
|
241
|
+
border-color: rgb(var(--ui-primary));
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.theme-item .item-title {
|
|
245
|
+
--at-apply: flex items-center justify-center text-sm leading-[22px] text-center m-0 p-0;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.theme-item .item-content {
|
|
249
|
+
--at-apply: flex flex-1 flex-col;
|
|
250
|
+
padding: calc(12 / 320 * 100%) calc(20 / 320 * 100%);
|
|
251
|
+
margin-top: calc(12 / 320 * 100%);
|
|
252
|
+
background: linear-gradient(180deg, #fff 0%, #fff0 100%);
|
|
253
|
+
border-radius: calc(8 / 320 * 100%);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.theme-item.dark .item-content {
|
|
257
|
+
background: linear-gradient(180deg, #ffffff1a 0%, #fff0 100%);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.theme-item .item-content .spots-wrap {
|
|
261
|
+
margin-left: calc(32 / 270 / 2 * 100%);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.theme-item .item-content .color-spot {
|
|
265
|
+
--at-apply: shrink-0 max-w-[30px] aspect-[1] rounded-[30px] border-2 border-solid border-white;
|
|
266
|
+
background: #fff;
|
|
267
|
+
width: calc(30 / 270 * 100%);
|
|
268
|
+
box-shadow: 0 0 4px 0 #00000026;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.theme-item .item-content .color-spot:nth-child(1) {
|
|
272
|
+
transform: translateX(0);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.theme-item .item-content .color-spot:nth-child(2) {
|
|
276
|
+
transform: translateX(calc(-6 / 30 * 100%));
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.theme-item .item-content .color-spot:nth-child(3) {
|
|
280
|
+
transform: translateX(calc(-12 / 30 * 100%));
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.theme-item .item-content .color-spot:nth-child(4) {
|
|
284
|
+
transform: translateX(calc(-18 / 30 * 100%));
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.theme-item .item-content .color-spot:nth-child(5) {
|
|
288
|
+
transform: translateX(calc(-24 / 30 * 100%));
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.theme-item .item-content .color-spot:nth-child(6) {
|
|
292
|
+
transform: translateX(calc(-30 / 30 * 100%));
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.theme-item .item-content .skeleton {
|
|
296
|
+
--at-apply: flex flex-[auto] flex-col h-0 rounded mt-[22px];
|
|
297
|
+
background: #f5f8fe;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.theme-item.dark .item-content .skeleton {
|
|
301
|
+
background: #111213;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.theme-item .item-content .skeleton header {
|
|
305
|
+
--at-apply: flex items-center aspect-[10.45] pl-2.5 rounded-[4px_4px_0_0];
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.theme-item.dark .item-content .skeleton header {
|
|
309
|
+
background: #26272a !important;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.theme-item .item-content .skeleton header .dot {
|
|
313
|
+
--at-apply: aspect-1 rounded-1/2;
|
|
314
|
+
width: calc(8.5 / 230 * 100%);
|
|
315
|
+
margin-right: calc(5 / 230 * 100%);
|
|
316
|
+
background: rgb(255 255 255 / 50%);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.theme-item.dark .item-content .skeleton header .dot {
|
|
320
|
+
background: rgb(255 255 255 / 20%);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.theme-item .item-content .skeleton header .bar {
|
|
324
|
+
--at-apply: rounded-sm;
|
|
325
|
+
width: calc(68 / 230 * 100%);
|
|
326
|
+
aspect-ratio: calc(68 / 7);
|
|
327
|
+
background: rgb(255 255 255 / 50%);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.theme-item.dark .item-content .skeleton header .bar {
|
|
331
|
+
background: rgb(255 255 255 / 20%);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.theme-item .item-content .skeleton .skeleton-body {
|
|
335
|
+
--at-apply: flex flex-1 h-0;
|
|
336
|
+
padding: calc(7 / 230 * 100%);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.theme-item .item-content .skeleton .skeleton-body .aside {
|
|
340
|
+
--at-apply: h-full rounded;
|
|
341
|
+
width: calc(36 / 230 * 100%);
|
|
342
|
+
padding-top: calc(12 / 230 * 100%);
|
|
343
|
+
margin-right: calc(7 / 230 * 100%);
|
|
344
|
+
background: #fff;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.theme-item.dark .item-content .skeleton .skeleton-body .aside {
|
|
348
|
+
background: #25282d;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.theme-item .item-content .skeleton .skeleton-body .aside .side-line {
|
|
352
|
+
--at-apply: rounded-sm;
|
|
353
|
+
width: calc(24.1 / 36.6 * 100%);
|
|
354
|
+
aspect-ratio: calc(24.1 / 6.5);
|
|
355
|
+
margin: 0 auto calc(4 / 36.6 * 100%);
|
|
356
|
+
background: #eaeff7;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.theme-item.dark .item-content .skeleton .skeleton-body .aside .side-line {
|
|
360
|
+
background: #32353b;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.theme-item .item-content .skeleton .skeleton-body .main {
|
|
364
|
+
--at-apply: flex flex-[auto] justify-between h-full pt-[5.2%] pb-[3%] px-[5.6%] rounded-sm;
|
|
365
|
+
background: #fff;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.theme-item.dark .item-content .skeleton .skeleton-body .main {
|
|
369
|
+
background: #25282d;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.theme-item .item-content .skeleton .skeleton-body .main .left {
|
|
373
|
+
--at-apply: flex-1;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.theme-item .item-content .skeleton .skeleton-body .main .right {
|
|
377
|
+
--at-apply: w-3/10;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.theme-item .item-content .skeleton .skeleton-body .main .left-item {
|
|
381
|
+
--at-apply: flex mb-[6.5];
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.theme-item .item-content .skeleton .skeleton-body .main .left-item .dot {
|
|
385
|
+
width: calc(calc(15 / 108) * 100%);
|
|
386
|
+
aspect-ratio: 1;
|
|
387
|
+
margin-right: calc(calc(7.4 / 108) * 100%);
|
|
388
|
+
margin-bottom: calc(calc(6.7 / 108) * 100%);
|
|
389
|
+
background: #eaeff7;
|
|
390
|
+
border-radius: 50%;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.theme-item.dark .item-content .skeleton .skeleton-body .main .left-item .dot {
|
|
394
|
+
background: #32353b;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.theme-item .item-content .skeleton .skeleton-body .main .left-item .lines-wrap {
|
|
398
|
+
flex: 1;
|
|
399
|
+
padding-top: calc(calc(2 / 108) * 100%);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.theme-item .item-content .skeleton .skeleton-body .main .left-item .line1 {
|
|
403
|
+
width: calc(calc(53.4 / 82) * 100%);
|
|
404
|
+
aspect-ratio: calc(53.4 / 3.4);
|
|
405
|
+
background: #eaeff7;
|
|
406
|
+
border-radius: 1px;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.theme-item.dark .item-content .skeleton .skeleton-body .main .left-item .line1 {
|
|
410
|
+
background: #32353b;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.theme-item .item-content .skeleton .skeleton-body .main .left-item .line2 {
|
|
414
|
+
width: calc(calc(25.4 / 82) * 100%);
|
|
415
|
+
aspect-ratio: calc(25.4 / 3.4);
|
|
416
|
+
margin-top: 5px;
|
|
417
|
+
background: #eaeff7;
|
|
418
|
+
border-radius: 1px;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.theme-item.dark .item-content .skeleton .skeleton-body .main .left-item .line2 {
|
|
422
|
+
background: #32353b;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.theme-item .item-content .skeleton .skeleton-body .main .right-item {
|
|
426
|
+
width: 100%;
|
|
427
|
+
aspect-ratio: calc(44 / 8.8);
|
|
428
|
+
margin-bottom: calc(10.14 / 44 * 100%);
|
|
429
|
+
background: #eaeff7;
|
|
430
|
+
border-radius: calc(1.1 / 44 * 100%);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.theme-item.dark .item-content .skeleton .skeleton-body .main .right-item {
|
|
434
|
+
background: #32353b;
|
|
435
|
+
}
|
|
436
|
+
</style>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import darkEnableColorSchemeData from '@/assets/lottie/toolbar/dark/enableColorScheme.json?url';
|
|
2
|
+
import darkEnableFullscreenData from '@/assets/lottie/toolbar/dark/enableFullscreen.json?url';
|
|
3
|
+
import darkEnableNotificationData from '@/assets/lottie/toolbar/dark/enableNotification.json?url';
|
|
4
|
+
import darkEnablePageReloadData from '@/assets/lottie/toolbar/dark/enablePageReload.json?url';
|
|
5
|
+
import darkEnableUserPreferencesData from '@/assets/lottie/toolbar/dark/enableUserPreferences.json?url';
|
|
6
|
+
|
|
7
|
+
import darkNavSearchEnableData from '@/assets/lottie/toolbar/dark/navSearchEnable.json?url';
|
|
8
|
+
import darkNavSearchEnableHotkeysData from '@/assets/lottie/toolbar/dark/navSearchEnableHotkeys.json?url';
|
|
9
|
+
|
|
10
|
+
import lightEnableColorSchemeData from '@/assets/lottie/toolbar/light/enableColorScheme.json?url';
|
|
11
|
+
import lightEnableFullscreenData from '@/assets/lottie/toolbar/light/enableFullscreen.json?url';
|
|
12
|
+
|
|
13
|
+
import lightEnableNotificationData from '@/assets/lottie/toolbar/light/enableNotification.json?url';
|
|
14
|
+
|
|
15
|
+
import lightEnablePageReloadData from '@/assets/lottie/toolbar/light/enablePageReload.json?url';
|
|
16
|
+
import lightEnableUserPreferencesData from '@/assets/lottie/toolbar/light/enableUserPreferences.json?url';
|
|
17
|
+
|
|
18
|
+
import lightNavSearchEnableData from '@/assets/lottie/toolbar/light/navSearchEnable.json?url';
|
|
19
|
+
import lightNavSearchEnableHotkeysData from '@/assets/lottie/toolbar/light/navSearchEnableHotkeys.json?url';
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
darkEnableColorSchemeData,
|
|
23
|
+
darkEnableFullscreenData,
|
|
24
|
+
darkEnableNotificationData,
|
|
25
|
+
darkEnablePageReloadData,
|
|
26
|
+
darkEnableUserPreferencesData,
|
|
27
|
+
|
|
28
|
+
darkNavSearchEnableData,
|
|
29
|
+
darkNavSearchEnableHotkeysData,
|
|
30
|
+
lightEnableColorSchemeData,
|
|
31
|
+
lightEnableFullscreenData,
|
|
32
|
+
lightEnableNotificationData,
|
|
33
|
+
|
|
34
|
+
lightEnablePageReloadData,
|
|
35
|
+
lightEnableUserPreferencesData,
|
|
36
|
+
lightNavSearchEnableData,
|
|
37
|
+
lightNavSearchEnableHotkeysData,
|
|
38
|
+
};
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { message } from 'ant-design-vue';
|
|
3
|
+
import { postSysconfigAddOrEidtSysThemeStyleConfig } from '@/api/modules/configData';
|
|
4
|
+
|
|
5
|
+
import { useSettingsStore } from '@/stores';
|
|
6
|
+
import SetItem from '../components/setItem.vue';
|
|
7
|
+
import {
|
|
8
|
+
darkEnableColorSchemeData,
|
|
9
|
+
darkEnableFullscreenData,
|
|
10
|
+
darkEnableNotificationData,
|
|
11
|
+
darkEnablePageReloadData,
|
|
12
|
+
darkEnableUserPreferencesData,
|
|
13
|
+
|
|
14
|
+
darkNavSearchEnableData,
|
|
15
|
+
darkNavSearchEnableHotkeysData,
|
|
16
|
+
lightEnableColorSchemeData,
|
|
17
|
+
lightEnableFullscreenData,
|
|
18
|
+
lightEnableNotificationData,
|
|
19
|
+
|
|
20
|
+
lightEnablePageReloadData,
|
|
21
|
+
lightEnableUserPreferencesData,
|
|
22
|
+
lightNavSearchEnableData,
|
|
23
|
+
lightNavSearchEnableHotkeysData,
|
|
24
|
+
} from './animationData.ts';
|
|
25
|
+
|
|
26
|
+
defineOptions({
|
|
27
|
+
name: 'ToolbarSetting',
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
const settingsStore = useSettingsStore();
|
|
31
|
+
|
|
32
|
+
const toolbarList = reactive([
|
|
33
|
+
{
|
|
34
|
+
name: '通知中心',
|
|
35
|
+
type: 'switch',
|
|
36
|
+
descripe: '该功能具体业务功能需自行开发,框架仅提供示例模版',
|
|
37
|
+
open: settingsStore.globalSettings.toolbar.enableNotification,
|
|
38
|
+
parentName: 'toolbar',
|
|
39
|
+
childName: 'enableNotification',
|
|
40
|
+
activeStyle: '',
|
|
41
|
+
lightData: lightEnableNotificationData,
|
|
42
|
+
darkData: darkEnableNotificationData,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: '全屏',
|
|
46
|
+
type: 'switch',
|
|
47
|
+
descripe: '',
|
|
48
|
+
parentName: 'toolbar',
|
|
49
|
+
childName: 'enableFullscreen',
|
|
50
|
+
open: settingsStore.globalSettings.toolbar.enableFullscreen,
|
|
51
|
+
activeStyle: '',
|
|
52
|
+
lightData: lightEnableFullscreenData,
|
|
53
|
+
darkData: darkEnableFullscreenData,
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: '页面刷新',
|
|
57
|
+
type: 'switch',
|
|
58
|
+
descripe: '使用框架内提供的刷新功能进行页面刷新',
|
|
59
|
+
parentName: 'toolbar',
|
|
60
|
+
childName: 'enablePageReload',
|
|
61
|
+
open: settingsStore.globalSettings.toolbar.enablePageReload,
|
|
62
|
+
activeStyle: '',
|
|
63
|
+
lightData: lightEnablePageReloadData,
|
|
64
|
+
darkData: darkEnablePageReloadData,
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: '暗黑主题切换',
|
|
68
|
+
type: 'switch',
|
|
69
|
+
descripe: '开启后可在明亮/暗黑模式中切换',
|
|
70
|
+
parentName: 'toolbar',
|
|
71
|
+
childName: 'enableColorScheme',
|
|
72
|
+
open: settingsStore.globalSettings.toolbar.enableColorScheme,
|
|
73
|
+
activeStyle: '',
|
|
74
|
+
lightData: lightEnableColorSchemeData,
|
|
75
|
+
darkData: darkEnableColorSchemeData,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: '个性偏好设置',
|
|
79
|
+
type: 'switch',
|
|
80
|
+
descripe: '',
|
|
81
|
+
parentName: 'app',
|
|
82
|
+
childName: 'enableUserPreferences',
|
|
83
|
+
open: settingsStore.globalSettings.app.enableUserPreferences,
|
|
84
|
+
activeStyle: '',
|
|
85
|
+
lightData: lightEnableUserPreferencesData,
|
|
86
|
+
darkData: darkEnableUserPreferencesData,
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: '导航搜索',
|
|
90
|
+
type: 'switch',
|
|
91
|
+
descripe: '',
|
|
92
|
+
parentName: 'navSearch',
|
|
93
|
+
childName: 'enable',
|
|
94
|
+
open: settingsStore.globalSettings.navSearch.enable,
|
|
95
|
+
activeStyle: '',
|
|
96
|
+
lightData: lightNavSearchEnableData,
|
|
97
|
+
darkData: darkNavSearchEnableData,
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: '导航搜索快捷键',
|
|
101
|
+
type: 'switch',
|
|
102
|
+
descripe: '',
|
|
103
|
+
parentName: 'navSearch',
|
|
104
|
+
childName: 'enableHotkeys',
|
|
105
|
+
open: settingsStore.globalSettings.navSearch.enableHotkeys,
|
|
106
|
+
activeStyle: '',
|
|
107
|
+
lightData: lightNavSearchEnableHotkeysData,
|
|
108
|
+
darkData: darkNavSearchEnableHotkeysData,
|
|
109
|
+
},
|
|
110
|
+
] as const);
|
|
111
|
+
|
|
112
|
+
type SettingsKeys = keyof Required<Settings.all>;
|
|
113
|
+
|
|
114
|
+
function onChange<K extends SettingsKeys, V extends keyof Required<Settings.all>[K]>(
|
|
115
|
+
parentName: K,
|
|
116
|
+
childName: V,
|
|
117
|
+
ck: Required<Settings.all>[K][V],
|
|
118
|
+
) {
|
|
119
|
+
if (settingsStore.globalSettings[parentName]
|
|
120
|
+
&& settingsStore.globalSettings[parentName][childName] !== undefined) {
|
|
121
|
+
(settingsStore.globalSettings as Required<Settings.all>)[parentName][childName] = ck;
|
|
122
|
+
|
|
123
|
+
const result: Settings.all = {};
|
|
124
|
+
result[parentName] = {};
|
|
125
|
+
// @ts-expect-error always true
|
|
126
|
+
result[parentName][childName] = ck;
|
|
127
|
+
|
|
128
|
+
const jsonStr = JSON.stringify(result);
|
|
129
|
+
setStyle(jsonStr);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
function setStyle(jsonStr: string) {
|
|
134
|
+
postSysconfigAddOrEidtSysThemeStyleConfig({ content: jsonStr }).then((res: API.ResponseDataBoolean) => {
|
|
135
|
+
if (res.success) {
|
|
136
|
+
message.success('设置成功');
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
</script>
|
|
141
|
+
|
|
142
|
+
<template>
|
|
143
|
+
<div
|
|
144
|
+
w-full
|
|
145
|
+
h-full
|
|
146
|
+
p-10px
|
|
147
|
+
>
|
|
148
|
+
<div class="w-full h-full bg-white overflow-y-auto p-10px pb-30px flex flex-col box-border dark:bg-[#141414]">
|
|
149
|
+
<div class="h-[38px] pl-[16px] flex flex-row items-center bar-header">
|
|
150
|
+
<PubinfoIcon name="icon_toolbar" class="text-base mr-[6px]" :size="22" />
|
|
151
|
+
<span class="text-[16px] text-[#1d2129] dark:text-[#C9CDD4]">工具栏</span>
|
|
152
|
+
</div>
|
|
153
|
+
<div class="mt-[22px] grid grid-cols-3 gap-x-[20px] px-30px w-full h-0 max-w-1500px" aspect="[3/2] ">
|
|
154
|
+
<SetItem
|
|
155
|
+
v-for="item in toolbarList"
|
|
156
|
+
:key="item.name"
|
|
157
|
+
class="mb-20px"
|
|
158
|
+
aspect="[9/6]"
|
|
159
|
+
:name="item.name"
|
|
160
|
+
:descripe="item.descripe"
|
|
161
|
+
:open="item.open"
|
|
162
|
+
:type="item.type"
|
|
163
|
+
:light-animation-data="item.lightData"
|
|
164
|
+
:dark-animation-data="item.darkData"
|
|
165
|
+
@change="(val) => onChange<any, any>(item.parentName, item.childName, val)"
|
|
166
|
+
/>
|
|
167
|
+
</div>
|
|
168
|
+
</div>
|
|
169
|
+
</div>
|
|
170
|
+
</template>
|
|
171
|
+
|
|
172
|
+
<style scoped>
|
|
173
|
+
.bar-header {
|
|
174
|
+
background: var(--g-bg);
|
|
175
|
+
}
|
|
176
|
+
</style>
|