@pubinfo/core 2.0.0-beta.2 → 2.0.0-beta.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (556) hide show
  1. package/{es/AppSetting-BXQHV5F8.js → dist/AppSetting-DodCOb_z.js} +16 -16
  2. package/{es/HCheckList.vue_vue_type_script_setup_true_lang-DanhyVxU.js → dist/HCheckList.vue_vue_type_script_setup_true_lang-CMOw56Mk.js} +2 -2
  3. package/{es/PreferencesContent-CQkwkQ_1.js → dist/PreferencesContent-Dic24ifo.js} +56 -56
  4. package/{es/SettingBreadcrumb-Bp_66IFN.js → dist/SettingBreadcrumb-DWpbGcSy.js} +2 -2
  5. package/{es/SettingCopyright-BPSnoTQb.js → dist/SettingCopyright-CIY0pFMT.js} +1 -1
  6. package/{es/SettingEnableTransition-Rx2-0Wxj.js → dist/SettingEnableTransition-f0xuLIrZ.js} +1 -1
  7. package/{es/SettingHome-BW27PQqs.js → dist/SettingHome-BFtJsJsN.js} +1 -1
  8. package/{es/SettingMenu-D5gdNfal.js → dist/SettingMenu-DuPD3iSG.js} +2 -2
  9. package/{es/SettingMode-B4_HGVez.js → dist/SettingMode-nZ65qSWK.js} +1 -1
  10. package/{es/SettingNavSearch-CRovYxzh.js → dist/SettingNavSearch-CrarPE7d.js} +1 -1
  11. package/{es/SettingOther-D0zo11vM.js → dist/SettingOther-BddvExCF.js} +1 -1
  12. package/{es/SettingPage-B8GHuoKV.js → dist/SettingPage-C6Na8HEN.js} +1 -1
  13. package/{es/SettingTabbar-Cn_QzvA8.js → dist/SettingTabbar-nuwfRRaE.js} +2 -2
  14. package/{es/SettingThemes-D_DpEncn.js → dist/SettingThemes-DBq6j0zt.js} +2 -2
  15. package/{es/SettingToolbar-Csl2gnfi.js → dist/SettingToolbar-BdizZaGF.js} +1 -1
  16. package/{es/SettingTopbar-CaHjQULM.js → dist/SettingTopbar-D5BX5vS_.js} +2 -2
  17. package/{es/SettingWidthMode-BGiP7gTw.js → dist/SettingWidthMode-CHrLW3gs.js} +1 -1
  18. package/{es/TopThinMode-DWm0oY5Y.js → dist/TopThinMode-CttqTmaT.js} +1 -1
  19. package/{es/_...all_-DI_QAUox.js → dist/_...all_--d4S-8dL.js} +1 -1
  20. package/{es → dist}/api/index.d.ts +2 -1
  21. package/{es/colors-oRlAXMUC.js → dist/colors-BOKDjZQI.js} +1 -1
  22. package/{lib → dist}/components/PubinfoProvider/index.d.ts +1 -0
  23. package/{lib → dist}/composables/auth.d.ts +1 -1
  24. package/{es → dist}/context.d.ts +1 -1
  25. package/{es/index-ChOUZNbk.js → dist/index-B0i20hau.js} +2 -2
  26. package/{es/index-D8eeneI_.js → dist/index-Bz9lh14R.js} +25 -25
  27. package/{es/index-BHkrq701.js → dist/index-CC3GE307.js} +30 -30
  28. package/{es/index-BvVAS3S-.js → dist/index-Cf8yM5Cv.js} +14 -8
  29. package/{es/index-P2cA5UeU.js → dist/index-Cygbc-66.js} +30 -30
  30. package/{es/index-DvHnVMX5.js → dist/index-D0CMv5FJ.js} +5543 -5719
  31. package/{es/index-B9I6Pru6.js → dist/index-DORROKh7.js} +57 -62
  32. package/{es/index-Dav3jQVP.js → dist/index-DltN2SCZ.js} +31 -31
  33. package/{es/index-BkqnOkyO.js → dist/index-dPREgrj8.js} +1 -1
  34. package/{es → dist}/index.d.ts +1 -0
  35. package/dist/index.js +76 -0
  36. package/{es/index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-BBe8CvCV.js → dist/index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-Bmtn9Oo4.js} +1 -1
  37. package/{lib → dist}/interface.d.ts +11 -0
  38. package/{es → dist}/layout/composables/useContext.d.ts +1 -2
  39. package/{lib → dist}/layout/ui-kit/HDialog.vue.d.ts +12 -1
  40. package/{lib → dist}/layout/ui-kit/HSlideover.vue.d.ts +12 -1
  41. package/{es → dist}/layout/ui-kit/HTabList.vue.d.ts +2 -2
  42. package/{es/notification-6D5hA7Bp.js → dist/menu-Ddxel9ck.js} +3007 -3037
  43. package/{es/pick-Br-UKn7B.js → dist/pick-DEgsMKda.js} +1 -1
  44. package/{es → dist}/request.js +1 -1
  45. package/{es → dist}/route/index.d.ts +0 -1
  46. package/dist/route/routes.d.ts +22 -0
  47. package/{lib → dist}/stores/modules/favorites.d.ts +1 -0
  48. package/{es → dist}/stores/modules/iframe.d.ts +1 -0
  49. package/{es → dist}/stores/modules/index.d.ts +8 -1
  50. package/{es → dist}/stores/modules/keepAlive.d.ts +1 -0
  51. package/{es → dist}/stores/modules/menu.d.ts +1 -0
  52. package/{es → dist}/stores/modules/route.d.ts +1 -0
  53. package/{lib → dist}/stores/modules/settings.d.ts +1 -0
  54. package/{lib → dist}/stores/modules/tabbar.d.ts +1 -0
  55. package/dist/stores/modules/user.d.ts +36 -0
  56. package/{es → dist}/style.css +1 -1
  57. package/package.json +22 -28
  58. package/src/api/index.ts +3 -1
  59. package/src/components/PubinfoProvider/index.ts +2 -0
  60. package/src/composables/auth.ts +1 -1
  61. package/src/context.ts +1 -2
  62. package/src/index.ts +1 -0
  63. package/src/interface.ts +11 -0
  64. package/src/layout/components/Header/TopMode/index.vue +12 -16
  65. package/src/layout/components/SettingBar/index.vue +3 -1
  66. package/src/layout/components/Tools/index.vue +9 -25
  67. package/src/layout/composables/useContext.ts +0 -2
  68. package/src/layout/composables/useWatermark.ts +2 -2
  69. package/src/layout/provider.ts +0 -3
  70. package/src/layout/ui-kit/HDialog.vue +4 -1
  71. package/src/layout/ui-kit/HSlideover.vue +4 -1
  72. package/src/pages/system/change-organization/index.vue +3 -3
  73. package/src/route/index.ts +0 -1
  74. package/src/route/routes.ts +69 -55
  75. package/src/stores/helper.ts +2 -2
  76. package/src/stores/modules/favorites.ts +1 -0
  77. package/src/stores/modules/iframe.ts +1 -0
  78. package/src/stores/modules/index.ts +8 -1
  79. package/src/stores/modules/keepAlive.ts +1 -0
  80. package/src/stores/modules/menu.ts +25 -1
  81. package/src/stores/modules/route.ts +4 -3
  82. package/src/stores/modules/settings.ts +1 -0
  83. package/src/stores/modules/tabbar.ts +1 -0
  84. package/src/stores/modules/user.ts +56 -20
  85. package/src/stores/plugin/sideEffect/favoritesStorage.ts +1 -1
  86. package/src/stores/plugin/sideEffect/tabbarStorage.ts +1 -1
  87. package/src/utils/watermark.ts +1 -1
  88. package/es/components/PubinfoProvider/index.d.ts +0 -8
  89. package/es/composables/auth.d.ts +0 -8
  90. package/es/index-DTQQt_XY.js +0 -10
  91. package/es/index.js +0 -76
  92. package/es/interface.d.ts +0 -29
  93. package/es/layout/ui-kit/HDialog.vue.d.ts +0 -28
  94. package/es/layout/ui-kit/HSlideover.vue.d.ts +0 -30
  95. package/es/pages/system/not-permission/index.vue.d.ts +0 -2
  96. package/es/route/async.d.ts +0 -9
  97. package/es/route/routes.d.ts +0 -3
  98. package/es/stores/modules/favorites.d.ts +0 -32
  99. package/es/stores/modules/notification.d.ts +0 -18
  100. package/es/stores/modules/settings.d.ts +0 -85
  101. package/es/stores/modules/tabbar.d.ts +0 -59
  102. package/es/stores/modules/user.d.ts +0 -3
  103. package/lib/AppSetting-CCiwpjoq.cjs +0 -1
  104. package/lib/HButton.vue_vue_type_script_setup_true_lang-D-XkyoXl.cjs +0 -1
  105. package/lib/HCheckList.vue_vue_type_script_setup_true_lang-DwA8einQ.cjs +0 -1
  106. package/lib/HDivider-DCfDgE8l.cjs +0 -1
  107. package/lib/HInput.vue_vue_type_script_setup_true_lang-CwS0mGyL.cjs +0 -1
  108. package/lib/HToggle-BP6YYf-s.cjs +0 -1
  109. package/lib/PreferencesContent-DgL-Jc_J.cjs +0 -3
  110. package/lib/SettingBreadcrumb-BQ78yEP4.cjs +0 -1
  111. package/lib/SettingCopyright-x7aPlkQy.cjs +0 -1
  112. package/lib/SettingEnableTransition-CD3-44Iy.cjs +0 -1
  113. package/lib/SettingHome-u52oz6i8.cjs +0 -1
  114. package/lib/SettingMenu-DsElOvvv.cjs +0 -1
  115. package/lib/SettingMode-C_kgpTxw.cjs +0 -1
  116. package/lib/SettingNavSearch-3auTi8UW.cjs +0 -1
  117. package/lib/SettingOther-6XGQq7OA.cjs +0 -1
  118. package/lib/SettingPage-C8yIHpLc.cjs +0 -1
  119. package/lib/SettingTabbar-K-nHb89z.cjs +0 -1
  120. package/lib/SettingThemes-BeNwFz7K.cjs +0 -1
  121. package/lib/SettingToolbar-Be1V7lwV.cjs +0 -1
  122. package/lib/SettingTopbar-C-j8O3c8.cjs +0 -1
  123. package/lib/SettingWidthMode-GMjAF-s3.cjs +0 -1
  124. package/lib/TopThinMode-DGUvyHT2.cjs +0 -1
  125. package/lib/_...all_-C4CXjAo9.cjs +0 -1
  126. package/lib/_plugin-vue_export-helper-BHFhmbuH.cjs +0 -1
  127. package/lib/api/enum/code.d.ts +0 -67
  128. package/lib/api/helper.d.ts +0 -32
  129. package/lib/api/index.d.ts +0 -12
  130. package/lib/api/interface.d.ts +0 -14
  131. package/lib/api/modules/auth/index.d.ts +0 -1
  132. package/lib/api/modules/auth/renzhengfuwu.d.ts +0 -50
  133. package/lib/api/modules/configData/heibaimingdanfuwu.d.ts +0 -36
  134. package/lib/api/modules/configData/index.d.ts +0 -3
  135. package/lib/api/modules/configData/xitongpeizhifuwu.d.ts +0 -99
  136. package/lib/api/modules/configData/zidianfuwu.d.ts +0 -71
  137. package/lib/api/modules/rbac/gangweijiekou.d.ts +0 -43
  138. package/lib/api/modules/rbac/index.d.ts +0 -11
  139. package/lib/api/modules/rbac/jiaosejiekou.d.ts +0 -50
  140. package/lib/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +0 -43
  141. package/lib/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +0 -64
  142. package/lib/api/modules/rbac/yonghujiekou.d.ts +0 -106
  143. package/lib/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +0 -36
  144. package/lib/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +0 -29
  145. package/lib/api/modules/rbac/ziyuanjiekou.d.ts +0 -85
  146. package/lib/api/modules/rbac/zuhuguanlijiekou.d.ts +0 -36
  147. package/lib/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +0 -29
  148. package/lib/api/modules/rbac/zuzhijiekou.d.ts +0 -64
  149. package/lib/api/request.d.ts +0 -2
  150. package/lib/api/system/app.d.ts +0 -17
  151. package/lib/api/system/user.d.ts +0 -24
  152. package/lib/assets/styles/index.d.ts +0 -6
  153. package/lib/colors-KAaBT84S.cjs +0 -1
  154. package/lib/components/NotAllowed/index.vue.d.ts +0 -2
  155. package/lib/components/PageHeader/index.vue.d.ts +0 -23
  156. package/lib/components/PageMain/index.vue.d.ts +0 -27
  157. package/lib/components/PassStrengthValidator/index.vue.d.ts +0 -26
  158. package/lib/components/PassStrengthValidator/rule.vue.d.ts +0 -8
  159. package/lib/components/PubinfoApp/index.vue.d.ts +0 -2
  160. package/lib/components/PubinfoIcon/index.vue.d.ts +0 -10
  161. package/lib/components/index.d.ts +0 -8
  162. package/lib/composables/index.d.ts +0 -4
  163. package/lib/composables/log.d.ts +0 -6
  164. package/lib/composables/theme.d.ts +0 -3
  165. package/lib/composables/watchDiff.d.ts +0 -2
  166. package/lib/config/index.d.ts +0 -1
  167. package/lib/config/settings.d.ts +0 -3
  168. package/lib/context.d.ts +0 -14
  169. package/lib/create.d.ts +0 -3
  170. package/lib/directives/index.d.ts +0 -4
  171. package/lib/directives/plugins/permission.d.ts +0 -6
  172. package/lib/index-38bsQrho.cjs +0 -1
  173. package/lib/index-BEqD62a0.cjs +0 -1
  174. package/lib/index-Bbm9CQRP.cjs +0 -1
  175. package/lib/index-BqHsuJkr.cjs +0 -1
  176. package/lib/index-JZl6Zh3L.cjs +0 -44
  177. package/lib/index-VGR0Mt4q.cjs +0 -240
  178. package/lib/index-WMo0GAa6.cjs +0 -1
  179. package/lib/index-_YsHduAE.cjs +0 -1
  180. package/lib/index-gr8kFwPx.cjs +0 -18
  181. package/lib/index-zvGq9tSu.cjs +0 -1
  182. package/lib/index.cjs +0 -1
  183. package/lib/index.d.ts +0 -11
  184. package/lib/index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-SCJ5qyPu.cjs +0 -1
  185. package/lib/layout/Layout.vue.d.ts +0 -20
  186. package/lib/layout/components/BackTop/index.vue.d.ts +0 -2
  187. package/lib/layout/components/Content/IframeView.vue.d.ts +0 -4
  188. package/lib/layout/components/Content/LinkView.vue.d.ts +0 -2
  189. package/lib/layout/components/Content/index.vue.d.ts +0 -2
  190. package/lib/layout/components/Copyright/index.vue.d.ts +0 -2
  191. package/lib/layout/components/Header/TopMode/More.vue.d.ts +0 -26
  192. package/lib/layout/components/Header/TopMode/NotCursor.vue.d.ts +0 -25
  193. package/lib/layout/components/Header/TopMode/index.vue.d.ts +0 -4
  194. package/lib/layout/components/Header/TopThinMode.vue.d.ts +0 -4
  195. package/lib/layout/components/Header/index.vue.d.ts +0 -19
  196. package/lib/layout/components/Logo/index.vue.d.ts +0 -26
  197. package/lib/layout/components/Menu/index.vue.d.ts +0 -10
  198. package/lib/layout/components/Menu/item.vue.d.ts +0 -11
  199. package/lib/layout/components/Menu/sub.vue.d.ts +0 -219
  200. package/lib/layout/components/Menu/types.d.ts +0 -42
  201. package/lib/layout/components/SettingBar/AppSetting.vue.d.ts +0 -12
  202. package/lib/layout/components/SettingBar/components/DayNightToggle.vue.d.ts +0 -9
  203. package/lib/layout/components/SettingBar/components/SettingBreadcrumb.vue.d.ts +0 -2
  204. package/lib/layout/components/SettingBar/components/SettingCopyright.vue.d.ts +0 -2
  205. package/lib/layout/components/SettingBar/components/SettingEnableTransition.vue.d.ts +0 -2
  206. package/lib/layout/components/SettingBar/components/SettingHome.vue.d.ts +0 -2
  207. package/lib/layout/components/SettingBar/components/SettingMenu.vue.d.ts +0 -2
  208. package/lib/layout/components/SettingBar/components/SettingMode.vue.d.ts +0 -2
  209. package/lib/layout/components/SettingBar/components/SettingNavSearch.vue.d.ts +0 -2
  210. package/lib/layout/components/SettingBar/components/SettingOther.vue.d.ts +0 -2
  211. package/lib/layout/components/SettingBar/components/SettingPage.vue.d.ts +0 -2
  212. package/lib/layout/components/SettingBar/components/SettingTabbar.vue.d.ts +0 -2
  213. package/lib/layout/components/SettingBar/components/SettingThemes.vue.d.ts +0 -2
  214. package/lib/layout/components/SettingBar/components/SettingToolbar.vue.d.ts +0 -2
  215. package/lib/layout/components/SettingBar/components/SettingTopbar.vue.d.ts +0 -2
  216. package/lib/layout/components/SettingBar/components/SettingWidthMode.vue.d.ts +0 -2
  217. package/lib/layout/components/SettingBar/index.vue.d.ts +0 -2
  218. package/lib/layout/components/Sidebar/MainSidebar.vue.d.ts +0 -2
  219. package/lib/layout/components/Sidebar/SubSidebar.vue.d.ts +0 -2
  220. package/lib/layout/components/Sidebar/index.vue.d.ts +0 -2
  221. package/lib/layout/components/Tools/Breadcrumb/index.vue.d.ts +0 -17
  222. package/lib/layout/components/Tools/Breadcrumb/item.vue.d.ts +0 -25
  223. package/lib/layout/components/Tools/DayNightSwitch.vue.d.ts +0 -2
  224. package/lib/layout/components/Tools/HotkeysIntro.vue.d.ts +0 -4
  225. package/lib/layout/components/Tools/Preferences/PreferencesContent.vue.d.ts +0 -2
  226. package/lib/layout/components/Tools/Preferences/index.vue.d.ts +0 -4
  227. package/lib/layout/components/Tools/Search.vue.d.ts +0 -199
  228. package/lib/layout/components/Tools/index.vue.d.ts +0 -233
  229. package/lib/layout/components/Topbar/Tabbar/MoreAction.vue.d.ts +0 -217
  230. package/lib/layout/components/Topbar/Tabbar/index.vue.d.ts +0 -14
  231. package/lib/layout/components/Topbar/Toolbar/Favorites.vue.d.ts +0 -4
  232. package/lib/layout/components/Topbar/Toolbar/Star.vue.d.ts +0 -2
  233. package/lib/layout/components/Topbar/Toolbar/index.vue.d.ts +0 -2
  234. package/lib/layout/components/Topbar/index.vue.d.ts +0 -2
  235. package/lib/layout/composables/useContext.d.ts +0 -18
  236. package/lib/layout/composables/useGetComputedStyle.d.ts +0 -15
  237. package/lib/layout/composables/useHotkey.d.ts +0 -5
  238. package/lib/layout/composables/useMainPage.d.ts +0 -14
  239. package/lib/layout/composables/useMenu.d.ts +0 -8
  240. package/lib/layout/composables/useTabbar.d.ts +0 -14
  241. package/lib/layout/composables/useTitle.d.ts +0 -3
  242. package/lib/layout/composables/useViewTransition.d.ts +0 -3
  243. package/lib/layout/composables/useWatermark.d.ts +0 -4
  244. package/lib/layout/index.d.ts +0 -19
  245. package/lib/layout/provider.d.ts +0 -1
  246. package/lib/layout/ui-kit/HBadge.vue.d.ts +0 -20
  247. package/lib/layout/ui-kit/HButton.vue.d.ts +0 -26
  248. package/lib/layout/ui-kit/HCheckList.vue.d.ts +0 -20
  249. package/lib/layout/ui-kit/HDivider.vue.d.ts +0 -20
  250. package/lib/layout/ui-kit/HDropdown.vue.d.ts +0 -18
  251. package/lib/layout/ui-kit/HDropdownMenu.vue.d.ts +0 -26
  252. package/lib/layout/ui-kit/HDropdownTree.vue.d.ts +0 -32
  253. package/lib/layout/ui-kit/HInput.vue.d.ts +0 -17
  254. package/lib/layout/ui-kit/HKbd.vue.d.ts +0 -17
  255. package/lib/layout/ui-kit/HSelect.vue.d.ts +0 -17
  256. package/lib/layout/ui-kit/HTabList.vue.d.ts +0 -22
  257. package/lib/layout/ui-kit/HToggle.vue.d.ts +0 -14
  258. package/lib/layout/ui-kit/HTooltip.vue.d.ts +0 -23
  259. package/lib/locales/index.d.ts +0 -301
  260. package/lib/locales/lang/en.json.d.ts +0 -99
  261. package/lib/locales/lang/zh-cn.json.d.ts +0 -100
  262. package/lib/locales/lang/zh-tw.json.d.ts +0 -100
  263. package/lib/locales/ui.d.ts +0 -3
  264. package/lib/modules.d.ts +0 -11
  265. package/lib/notification-IZqPm_OK.cjs +0 -199
  266. package/lib/pages/personal/profile/index.vue.d.ts +0 -2
  267. package/lib/pages/system/[...all].vue.d.ts +0 -2
  268. package/lib/pages/system/change-organization/index.vue.d.ts +0 -2
  269. package/lib/pages/system/change-password/components/ChangePasswordForm/index.vue.d.ts +0 -18
  270. package/lib/pages/system/change-password/index.vue.d.ts +0 -31
  271. package/lib/pages/system/index.vue.d.ts +0 -2
  272. package/lib/pages/system/not-permission/index.vue.d.ts +0 -2
  273. package/lib/pages/system/reload.vue.d.ts +0 -2
  274. package/lib/pick-y2yLda1R.cjs +0 -1
  275. package/lib/question-line-Cd0CU4hr.cjs +0 -1
  276. package/lib/reload-6L7Dzs7h.cjs +0 -1
  277. package/lib/request.cjs +0 -6
  278. package/lib/right-C5JQ_uRB.cjs +0 -1
  279. package/lib/route/async.d.ts +0 -9
  280. package/lib/route/guard/auth.d.ts +0 -3
  281. package/lib/route/guard/basic.d.ts +0 -3
  282. package/lib/route/guard/index.d.ts +0 -3
  283. package/lib/route/guard/setting.d.ts +0 -3
  284. package/lib/route/index.d.ts +0 -7
  285. package/lib/route/routes.d.ts +0 -3
  286. package/lib/stores/enum/index.d.ts +0 -20
  287. package/lib/stores/helper.d.ts +0 -2
  288. package/lib/stores/index.d.ts +0 -5
  289. package/lib/stores/modules/iframe.d.ts +0 -41
  290. package/lib/stores/modules/index.d.ts +0 -9
  291. package/lib/stores/modules/keepAlive.d.ts +0 -23
  292. package/lib/stores/modules/menu.d.ts +0 -32
  293. package/lib/stores/modules/notification.d.ts +0 -18
  294. package/lib/stores/modules/route.d.ts +0 -42
  295. package/lib/stores/modules/user.d.ts +0 -3
  296. package/lib/stores/plugin/persist.d.ts +0 -5
  297. package/lib/stores/plugin/sideEffect/cleanup.d.ts +0 -5
  298. package/lib/stores/plugin/sideEffect/favoritesStorage.d.ts +0 -5
  299. package/lib/stores/plugin/sideEffect/iframeCache.d.ts +0 -5
  300. package/lib/stores/plugin/sideEffect/index.d.ts +0 -5
  301. package/lib/stores/plugin/sideEffect/tabbarStorage.d.ts +0 -5
  302. package/lib/style.css +0 -9
  303. package/lib/utils/cleanup.d.ts +0 -8
  304. package/lib/utils/crypto.d.ts +0 -4
  305. package/lib/utils/eventBus.d.ts +0 -5
  306. package/lib/utils/index.d.ts +0 -14
  307. package/lib/utils/injectionKeys.d.ts +0 -2
  308. package/lib/utils/storage.d.ts +0 -21
  309. package/lib/utils/utils.d.ts +0 -3
  310. package/lib/utils/watermark.d.ts +0 -51
  311. package/src/assets/icons/add-child.svg +0 -1
  312. package/src/assets/icons/authority.svg +0 -1
  313. package/src/assets/icons/authorize.svg +0 -1
  314. package/src/assets/icons/blacklist-disable.svg +0 -1
  315. package/src/assets/icons/blacklist-enable.svg +0 -1
  316. package/src/assets/icons/browser-360.svg +0 -1
  317. package/src/assets/icons/browser-chrome.svg +0 -1
  318. package/src/assets/icons/browser-edge.svg +0 -1
  319. package/src/assets/icons/browser-ie.svg +0 -1
  320. package/src/assets/icons/browser-other.svg +0 -1
  321. package/src/assets/icons/browser-qq.svg +0 -1
  322. package/src/assets/icons/browser-safari.svg +0 -1
  323. package/src/assets/icons/browser-uc.svg +0 -1
  324. package/src/assets/icons/edit.svg +0 -1
  325. package/src/assets/icons/empty-data.svg +0 -1
  326. package/src/assets/icons/icard.svg +0 -1
  327. package/src/assets/icons/icon_animation.svg +0 -1
  328. package/src/assets/icons/icon_breadcrumb.svg +0 -1
  329. package/src/assets/icons/icon_copyright.svg +0 -1
  330. package/src/assets/icons/icon_jt.svg +0 -1
  331. package/src/assets/icons/icon_layout.svg +0 -1
  332. package/src/assets/icons/icon_mainpage.svg +0 -1
  333. package/src/assets/icons/icon_menu.svg +0 -1
  334. package/src/assets/icons/icon_page_size.svg +0 -1
  335. package/src/assets/icons/icon_position_type.svg +0 -1
  336. package/src/assets/icons/icon_safe_manage.svg +0 -1
  337. package/src/assets/icons/icon_screen_scale.svg +0 -6
  338. package/src/assets/icons/icon_system_manage.svg +0 -1
  339. package/src/assets/icons/icon_tabbar.svg +0 -1
  340. package/src/assets/icons/icon_toolbar.svg +0 -1
  341. package/src/assets/icons/icon_topbar.svg +0 -1
  342. package/src/assets/icons/icon_watermark.svg +0 -1
  343. package/src/assets/icons/image-load-fail.svg +0 -1
  344. package/src/assets/icons/log-center.svg +0 -1
  345. package/src/assets/icons/logo-sig.svg +0 -1
  346. package/src/assets/icons/not-data.svg +0 -1
  347. package/src/assets/icons/org-main.svg +0 -1
  348. package/src/assets/icons/org-unmain.svg +0 -1
  349. package/src/assets/icons/process-management.svg +0 -1
  350. package/src/assets/icons/project-management.svg +0 -1
  351. package/src/assets/icons/rbac.svg +0 -1
  352. package/src/assets/icons/remove.svg +0 -1
  353. package/src/assets/icons/resource-app.svg +0 -1
  354. package/src/assets/icons/resource-btn.svg +0 -1
  355. package/src/assets/icons/resource-index.svg +0 -1
  356. package/src/assets/icons/resource-menu.svg +0 -1
  357. package/src/assets/icons/resource-nonmenu.svg +0 -1
  358. package/src/assets/icons/setting-manage.svg +0 -1
  359. package/src/assets/icons/test.svg +0 -1
  360. package/src/assets/icons/theme-check-mark.svg +0 -1
  361. package/src/assets/icons/theme-title.svg +0 -1
  362. package/src/assets/icons/tree_icon.svg +0 -1
  363. package/src/assets/icons/tree_icon_checked.svg +0 -1
  364. package/src/assets/icons/view.svg +0 -1
  365. package/src/assets/icons/workbench.svg +0 -1
  366. package/src/assets/icons/zddata.svg +0 -1
  367. package/src/assets/icons/zy_checked.svg +0 -1
  368. package/src/assets/icons/zy_default.svg +0 -1
  369. package/src/assets/images/layout/item1.webp +0 -0
  370. package/src/assets/images/layout/item1_dark.webp +0 -0
  371. package/src/assets/images/layout/item2.webp +0 -0
  372. package/src/assets/images/layout/item2_dark.webp +0 -0
  373. package/src/assets/images/layout/item3.webp +0 -0
  374. package/src/assets/images/layout/item3_dark.webp +0 -0
  375. package/src/assets/images/layout/item4.webp +0 -0
  376. package/src/assets/images/layout/item4_dark.webp +0 -0
  377. package/src/assets/images/layout/item5.webp +0 -0
  378. package/src/assets/images/layout/item5_dark.webp +0 -0
  379. package/src/assets/images/page-width/anto_min_w_dark.webp +0 -0
  380. package/src/assets/images/page-width/auto.webp +0 -0
  381. package/src/assets/images/page-width/auto_dark.webp +0 -0
  382. package/src/assets/images/page-width/auto_min_w.webp +0 -0
  383. package/src/assets/images/page-width/auto_min_w_dark.webp +0 -0
  384. package/src/assets/images/page-width/icon_auto.webp +0 -0
  385. package/src/assets/images/page-width/icon_auto_dark.webp +0 -0
  386. package/src/assets/images/page-width/icon_auto_min_w.webp +0 -0
  387. package/src/assets/images/page-width/icon_auto_min_w_dark.webp +0 -0
  388. package/src/assets/images/page-width/icon_middle.webp +0 -0
  389. package/src/assets/images/page-width/icon_middle_dark.webp +0 -0
  390. package/src/assets/images/page-width/icon_middle_max_w.webp +0 -0
  391. package/src/assets/images/page-width/icon_middle_max_w_dark.webp +0 -0
  392. package/src/assets/images/page-width/middle.webp +0 -0
  393. package/src/assets/images/page-width/middle_dark.webp +0 -0
  394. package/src/assets/images/page-width/middle_max_w.webp +0 -0
  395. package/src/assets/images/page-width/middle_max_w_dark.webp +0 -0
  396. package/src/layout/components/Tools/Notification.vue +0 -152
  397. package/src/pages/personal/notification.vue +0 -58
  398. package/src/pages/system/index.vue +0 -5
  399. package/src/route/async.ts +0 -18
  400. package/src/stores/modules/notification.ts +0 -34
  401. package/{es → dist}/HButton.vue_vue_type_script_setup_true_lang-CYAzn9Mg.js +0 -0
  402. package/{es → dist}/HDivider-DgXBhPr0.js +0 -0
  403. package/{es → dist}/HInput.vue_vue_type_script_setup_true_lang-DBqCXRnn.js +0 -0
  404. package/{es → dist}/HToggle-Cd71WKvG.js +0 -0
  405. package/{es → dist}/_plugin-vue_export-helper-CHgC5LLL.js +0 -0
  406. package/{es → dist}/api/enum/code.d.ts +0 -0
  407. package/{es → dist}/api/helper.d.ts +0 -0
  408. package/{es → dist}/api/interface.d.ts +0 -0
  409. package/{es → dist}/api/modules/auth/index.d.ts +0 -0
  410. package/{es → dist}/api/modules/auth/renzhengfuwu.d.ts +0 -0
  411. package/{es → dist}/api/modules/configData/heibaimingdanfuwu.d.ts +0 -0
  412. package/{es → dist}/api/modules/configData/index.d.ts +0 -0
  413. package/{es → dist}/api/modules/configData/xitongpeizhifuwu.d.ts +0 -0
  414. package/{es → dist}/api/modules/configData/zidianfuwu.d.ts +0 -0
  415. package/{es → dist}/api/modules/rbac/gangweijiekou.d.ts +0 -0
  416. package/{es → dist}/api/modules/rbac/index.d.ts +0 -0
  417. package/{es → dist}/api/modules/rbac/jiaosejiekou.d.ts +0 -0
  418. package/{es → dist}/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +0 -0
  419. package/{es → dist}/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +0 -0
  420. package/{es → dist}/api/modules/rbac/yonghujiekou.d.ts +0 -0
  421. package/{es → dist}/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +0 -0
  422. package/{es → dist}/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +0 -0
  423. package/{es → dist}/api/modules/rbac/ziyuanjiekou.d.ts +0 -0
  424. package/{es → dist}/api/modules/rbac/zuhuguanlijiekou.d.ts +0 -0
  425. package/{es → dist}/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +0 -0
  426. package/{es → dist}/api/modules/rbac/zuzhijiekou.d.ts +0 -0
  427. package/{es → dist}/api/request.d.ts +0 -0
  428. package/{es → dist}/api/system/app.d.ts +0 -0
  429. package/{es → dist}/api/system/user.d.ts +0 -0
  430. package/{es → dist}/assets/styles/index.d.ts +0 -0
  431. package/{es → dist}/components/NotAllowed/index.vue.d.ts +0 -0
  432. package/{es → dist}/components/PageHeader/index.vue.d.ts +0 -0
  433. package/{es → dist}/components/PageMain/index.vue.d.ts +0 -0
  434. package/{es → dist}/components/PassStrengthValidator/index.vue.d.ts +2 -2
  435. package/{es → dist}/components/PassStrengthValidator/rule.vue.d.ts +0 -0
  436. package/{es → dist}/components/PubinfoApp/index.vue.d.ts +0 -0
  437. package/{es → dist}/components/PubinfoIcon/index.vue.d.ts +0 -0
  438. package/{es → dist}/components/index.d.ts +0 -0
  439. package/{es → dist}/composables/index.d.ts +0 -0
  440. package/{es → dist}/composables/log.d.ts +0 -0
  441. package/{es → dist}/composables/theme.d.ts +0 -0
  442. package/{es → dist}/composables/watchDiff.d.ts +0 -0
  443. package/{es → dist}/config/index.d.ts +0 -0
  444. package/{es → dist}/config/settings.d.ts +0 -0
  445. package/{es → dist}/create.d.ts +0 -0
  446. package/{es → dist}/directives/index.d.ts +0 -0
  447. package/{es → dist}/directives/plugins/permission.d.ts +0 -0
  448. package/{es → dist}/layout/Layout.vue.d.ts +0 -0
  449. package/{es → dist}/layout/components/BackTop/index.vue.d.ts +0 -0
  450. package/{es → dist}/layout/components/Content/IframeView.vue.d.ts +0 -0
  451. package/{es → dist}/layout/components/Content/LinkView.vue.d.ts +0 -0
  452. package/{es → dist}/layout/components/Content/index.vue.d.ts +0 -0
  453. package/{es → dist}/layout/components/Copyright/index.vue.d.ts +0 -0
  454. package/{es → dist}/layout/components/Header/TopMode/More.vue.d.ts +0 -0
  455. package/{es → dist}/layout/components/Header/TopMode/NotCursor.vue.d.ts +0 -0
  456. package/{es → dist}/layout/components/Header/TopMode/index.vue.d.ts +0 -0
  457. package/{es → dist}/layout/components/Header/TopThinMode.vue.d.ts +0 -0
  458. package/{es → dist}/layout/components/Header/index.vue.d.ts +0 -0
  459. package/{es → dist}/layout/components/Logo/index.vue.d.ts +0 -0
  460. package/{es → dist}/layout/components/Menu/index.vue.d.ts +0 -0
  461. package/{es → dist}/layout/components/Menu/item.vue.d.ts +0 -0
  462. package/{es → dist}/layout/components/Menu/sub.vue.d.ts +0 -0
  463. package/{es → dist}/layout/components/Menu/types.d.ts +0 -0
  464. package/{es → dist}/layout/components/SettingBar/AppSetting.vue.d.ts +0 -0
  465. package/{es → dist}/layout/components/SettingBar/components/DayNightToggle.vue.d.ts +0 -0
  466. package/{es → dist}/layout/components/SettingBar/components/SettingBreadcrumb.vue.d.ts +0 -0
  467. package/{es → dist}/layout/components/SettingBar/components/SettingCopyright.vue.d.ts +0 -0
  468. package/{es → dist}/layout/components/SettingBar/components/SettingEnableTransition.vue.d.ts +0 -0
  469. package/{es → dist}/layout/components/SettingBar/components/SettingHome.vue.d.ts +0 -0
  470. package/{es → dist}/layout/components/SettingBar/components/SettingMenu.vue.d.ts +0 -0
  471. package/{es → dist}/layout/components/SettingBar/components/SettingMode.vue.d.ts +0 -0
  472. package/{es → dist}/layout/components/SettingBar/components/SettingNavSearch.vue.d.ts +0 -0
  473. package/{es → dist}/layout/components/SettingBar/components/SettingOther.vue.d.ts +0 -0
  474. package/{es → dist}/layout/components/SettingBar/components/SettingPage.vue.d.ts +0 -0
  475. package/{es → dist}/layout/components/SettingBar/components/SettingTabbar.vue.d.ts +0 -0
  476. package/{es → dist}/layout/components/SettingBar/components/SettingThemes.vue.d.ts +0 -0
  477. package/{es → dist}/layout/components/SettingBar/components/SettingToolbar.vue.d.ts +0 -0
  478. package/{es → dist}/layout/components/SettingBar/components/SettingTopbar.vue.d.ts +0 -0
  479. package/{es → dist}/layout/components/SettingBar/components/SettingWidthMode.vue.d.ts +0 -0
  480. package/{es → dist}/layout/components/SettingBar/index.vue.d.ts +0 -0
  481. package/{es → dist}/layout/components/Sidebar/MainSidebar.vue.d.ts +0 -0
  482. package/{es → dist}/layout/components/Sidebar/SubSidebar.vue.d.ts +0 -0
  483. package/{es → dist}/layout/components/Sidebar/index.vue.d.ts +0 -0
  484. package/{es → dist}/layout/components/Tools/Breadcrumb/index.vue.d.ts +0 -0
  485. package/{es → dist}/layout/components/Tools/Breadcrumb/item.vue.d.ts +0 -0
  486. package/{es → dist}/layout/components/Tools/DayNightSwitch.vue.d.ts +0 -0
  487. package/{es → dist}/layout/components/Tools/HotkeysIntro.vue.d.ts +0 -0
  488. package/{es → dist}/layout/components/Tools/Preferences/PreferencesContent.vue.d.ts +0 -0
  489. package/{es → dist}/layout/components/Tools/Preferences/index.vue.d.ts +0 -0
  490. package/{es → dist}/layout/components/Tools/Search.vue.d.ts +0 -0
  491. package/{es → dist}/layout/components/Tools/index.vue.d.ts +0 -0
  492. package/{es → dist}/layout/components/Topbar/Tabbar/MoreAction.vue.d.ts +0 -0
  493. package/{es → dist}/layout/components/Topbar/Tabbar/index.vue.d.ts +0 -0
  494. package/{es → dist}/layout/components/Topbar/Toolbar/Favorites.vue.d.ts +0 -0
  495. package/{es → dist}/layout/components/Topbar/Toolbar/Star.vue.d.ts +0 -0
  496. package/{es → dist}/layout/components/Topbar/Toolbar/index.vue.d.ts +0 -0
  497. package/{es → dist}/layout/components/Topbar/index.vue.d.ts +0 -0
  498. package/{es → dist}/layout/composables/useGetComputedStyle.d.ts +0 -0
  499. package/{es → dist}/layout/composables/useHotkey.d.ts +0 -0
  500. package/{es → dist}/layout/composables/useMainPage.d.ts +0 -0
  501. package/{es → dist}/layout/composables/useMenu.d.ts +0 -0
  502. package/{es → dist}/layout/composables/useTabbar.d.ts +0 -0
  503. package/{es → dist}/layout/composables/useTitle.d.ts +0 -0
  504. package/{es → dist}/layout/composables/useViewTransition.d.ts +0 -0
  505. package/{es → dist}/layout/composables/useWatermark.d.ts +0 -0
  506. package/{es → dist}/layout/index.d.ts +0 -0
  507. package/{es → dist}/layout/provider.d.ts +0 -0
  508. package/{es → dist}/layout/ui-kit/HBadge.vue.d.ts +0 -0
  509. package/{es → dist}/layout/ui-kit/HButton.vue.d.ts +0 -0
  510. package/{es → dist}/layout/ui-kit/HCheckList.vue.d.ts +2 -2
  511. /package/{es → dist}/layout/ui-kit/HDivider.vue.d.ts +0 -0
  512. /package/{es → dist}/layout/ui-kit/HDropdown.vue.d.ts +0 -0
  513. /package/{es → dist}/layout/ui-kit/HDropdownMenu.vue.d.ts +0 -0
  514. /package/{es → dist}/layout/ui-kit/HDropdownTree.vue.d.ts +0 -0
  515. /package/{es → dist}/layout/ui-kit/HInput.vue.d.ts +0 -0
  516. /package/{es → dist}/layout/ui-kit/HKbd.vue.d.ts +0 -0
  517. /package/{es → dist}/layout/ui-kit/HSelect.vue.d.ts +0 -0
  518. /package/{es → dist}/layout/ui-kit/HToggle.vue.d.ts +0 -0
  519. /package/{es → dist}/layout/ui-kit/HTooltip.vue.d.ts +0 -0
  520. /package/{es → dist}/locales/index.d.ts +0 -0
  521. /package/{es → dist}/locales/lang/en.json.d.ts +0 -0
  522. /package/{es → dist}/locales/lang/zh-cn.json.d.ts +0 -0
  523. /package/{es → dist}/locales/lang/zh-tw.json.d.ts +0 -0
  524. /package/{es → dist}/locales/ui.d.ts +0 -0
  525. /package/{es → dist}/modules.d.ts +0 -0
  526. /package/{es → dist}/pages/personal/profile/index.vue.d.ts +0 -0
  527. /package/{es → dist}/pages/system/[...all].vue.d.ts +0 -0
  528. /package/{es → dist}/pages/system/change-organization/index.vue.d.ts +0 -0
  529. /package/{es → dist}/pages/system/change-password/components/ChangePasswordForm/index.vue.d.ts +0 -0
  530. /package/{es → dist}/pages/system/change-password/index.vue.d.ts +0 -0
  531. /package/{es/pages/system → dist/pages/system/not-permission}/index.vue.d.ts +0 -0
  532. /package/{es → dist}/pages/system/reload.vue.d.ts +0 -0
  533. /package/{es → dist}/question-line-CfkciTFq.js +0 -0
  534. /package/{es → dist}/reload-CUcPYtl7.js +0 -0
  535. /package/{es → dist}/right-Bfe2p1o0.js +0 -0
  536. /package/{es → dist}/route/guard/auth.d.ts +0 -0
  537. /package/{es → dist}/route/guard/basic.d.ts +0 -0
  538. /package/{es → dist}/route/guard/index.d.ts +0 -0
  539. /package/{es → dist}/route/guard/setting.d.ts +0 -0
  540. /package/{es → dist}/stores/enum/index.d.ts +0 -0
  541. /package/{es → dist}/stores/helper.d.ts +0 -0
  542. /package/{es → dist}/stores/index.d.ts +0 -0
  543. /package/{es → dist}/stores/plugin/persist.d.ts +0 -0
  544. /package/{es → dist}/stores/plugin/sideEffect/cleanup.d.ts +0 -0
  545. /package/{es → dist}/stores/plugin/sideEffect/favoritesStorage.d.ts +0 -0
  546. /package/{es → dist}/stores/plugin/sideEffect/iframeCache.d.ts +0 -0
  547. /package/{es → dist}/stores/plugin/sideEffect/index.d.ts +0 -0
  548. /package/{es → dist}/stores/plugin/sideEffect/tabbarStorage.d.ts +0 -0
  549. /package/{es → dist}/utils/cleanup.d.ts +0 -0
  550. /package/{es → dist}/utils/crypto.d.ts +0 -0
  551. /package/{es → dist}/utils/eventBus.d.ts +0 -0
  552. /package/{es → dist}/utils/index.d.ts +0 -0
  553. /package/{es → dist}/utils/injectionKeys.d.ts +0 -0
  554. /package/{es → dist}/utils/storage.d.ts +0 -0
  555. /package/{es → dist}/utils/utils.d.ts +0 -0
  556. /package/{es → dist}/utils/watermark.d.ts +0 -0
@@ -185,13 +185,36 @@ const useMenuStore = defineStore(
185
185
  }
186
186
  else {
187
187
  // 如果是 string 类型,则认为是路由,需要查找对应的主导航索引
188
- const findIndex = allMenus.value.findIndex(item => item.children.some(r => data.indexOf(`${r.path}/`) === 0 || data === r.path));
188
+ const findIndex = findRootIndexByPath(allMenus.value, data);
189
189
  if (findIndex >= 0) {
190
190
  actived.value = findIndex;
191
191
  }
192
192
  }
193
193
  }
194
194
 
195
+ /**
196
+ * 根据路径查找主导航索引
197
+ */
198
+ function findRootIndexByPath(routes: Menu.recordRaw[], targetPath: string) {
199
+ function containsPath(route: Menu.recordRaw): boolean {
200
+ if (route.path === targetPath) {
201
+ return true;
202
+ }
203
+ if (route.children) {
204
+ return route.children.some(child => containsPath(child));
205
+ }
206
+ return false;
207
+ }
208
+
209
+ for (let i = 0; i < routes.length; i++) {
210
+ if (containsPath(routes[i])) {
211
+ return i;
212
+ }
213
+ }
214
+
215
+ return 0;
216
+ }
217
+
195
218
  return {
196
219
  menus,
197
220
  actived,
@@ -205,3 +228,4 @@ const useMenuStore = defineStore(
205
228
  );
206
229
 
207
230
  export default useMenuStore;
231
+ export type MenuStore = ReturnType<typeof useMenuStore>;
@@ -3,8 +3,7 @@ import type { RouteMeta, RouteRecordRaw } from 'vue-router';
3
3
 
4
4
  import { GetApiRouteList } from '@/api/system/app';
5
5
  import { readProject } from '@/context';
6
- import { getAsyncRoutes } from '@/route';
7
- import { systemRoutes } from '@/route/routes';
6
+ import { getAsyncRoutes, getSystemRoutes } from '@/route';
8
7
  import { resolveRoutePath } from '@/utils';
9
8
  import { cloneDeep, defaultTo, get, has, isArray, isString, isUndefined, merge, omit } from 'lodash-es';
10
9
  import { defineStore } from 'pinia';
@@ -190,6 +189,7 @@ const useRouteStore = defineStore(
190
189
  * @returns {Array<RouteRecordRaw>} 扁平化的系统路由。
191
190
  */
192
191
  const flatSystemRoutes = computed(() => {
192
+ const systemRoutes = getSystemRoutes();
193
193
  const routes = [...systemRoutes];
194
194
  routes.forEach(item => flattenSystemRoutes(item));
195
195
  return routes;
@@ -266,7 +266,7 @@ const useRouteStore = defineStore(
266
266
  let returnRoutes: Route.recordMainRaw[];
267
267
  // 如果权限功能开启,则需要对路由数据进行筛选过滤
268
268
  if (settingsStore.settings.app.enablePermission) {
269
- returnRoutes = filterAsyncRoutes(routesRaw.value, userStore.permissions);
269
+ returnRoutes = filterAsyncRoutes(routesRaw.value, userStore.user.permissions);
270
270
  }
271
271
  else {
272
272
  returnRoutes = cloneDeep(routesRaw.value);
@@ -433,3 +433,4 @@ const useRouteStore = defineStore(
433
433
  );
434
434
 
435
435
  export default useRouteStore;
436
+ export type RouteStore = ReturnType<typeof useRouteStore>;
@@ -369,3 +369,4 @@ const useSettingsStore = defineStore(
369
369
  );
370
370
 
371
371
  export default useSettingsStore;
372
+ export type SettingsStore = ReturnType<typeof useSettingsStore>;
@@ -336,3 +336,4 @@ const useTabbarStore = defineStore(
336
336
  );
337
337
 
338
338
  export default useTabbarStore;
339
+ export type TabbarStore = ReturnType<typeof useTabbarStore>;
@@ -1,5 +1,5 @@
1
1
  import type { AxiosRequestHeaders } from 'axios';
2
- import type { LocationQueryValue } from 'vue-router';
2
+ import type { ComputedRef } from 'vue';
3
3
  import { postAuthChangeLoginOrg, postAuthLogin } from '@/api/modules/auth';
4
4
  import { getRbacResourceGrantedResources, getRbacUserUserEntireInfo, putRbacUserChangePassword } from '@/api/modules/rbac';
5
5
  import { usePubinfoContext } from '@/context';
@@ -8,7 +8,50 @@ import { find } from 'lodash-es';
8
8
  import { defineStore } from 'pinia';
9
9
  import { STORE_NAME } from '../enum';
10
10
 
11
- const useUserStore = defineStore(
11
+ export interface UserStore {
12
+ /** 用户信息 */
13
+ user: User
14
+
15
+ /** 用户组织名称 */
16
+ userOrgName: ComputedRef<string>
17
+
18
+ /** 是否登录 */
19
+ isLogin: ComputedRef<boolean>
20
+
21
+ /** 获取用户信息 */
22
+ getUserInfo: () => Promise<API.ResponseDataPubUserBo>
23
+
24
+ /** 获取用户权限码 */
25
+ getPermissions: () => Promise<string[]>
26
+
27
+ /** 登录 */
28
+ login: (data: {
29
+ account: string
30
+ password: string
31
+ captchas: string
32
+ captchaHash: string
33
+ loginType?: 'password' | string
34
+ }) => Promise<API.ResponseDataLoginTokenVo>
35
+
36
+ /** 登出 */
37
+ logout: () => void
38
+
39
+ /** 修改密码 */
40
+ changeUserPassword: (form: API.putRbacUserChangePasswordParams & {
41
+ token?: string | string[]
42
+ }) => Promise<API.ResponseDataVoid>
43
+
44
+ /** 切换组织 */
45
+ changeOrg: (changeOrgId: string) => Promise<void>
46
+
47
+ /** 设置TOKEN */
48
+ setToken: (accessToken: string, refreshToken: string) => void
49
+
50
+ /** 清空用户信息 */
51
+ clean: () => void
52
+ }
53
+
54
+ const useUserStore = defineStore<STORE_NAME.USER, UserStore>(
12
55
  STORE_NAME.USER,
13
56
  () => {
14
57
  const { router } = usePubinfoContext();
@@ -65,7 +108,7 @@ const useUserStore = defineStore(
65
108
  password: string
66
109
  captchas: string
67
110
  captchaHash: string
68
- loginType?: 'password'
111
+ loginType?: 'password' | string
69
112
  }) {
70
113
  const {
71
114
  account: loginName,
@@ -83,14 +126,14 @@ const useUserStore = defineStore(
83
126
  code,
84
127
  });
85
128
  const { accessToken, refreshToken } = result.data as Required<API.LoginTokenVo>;
86
- await setToken(accessToken, refreshToken);
129
+ setToken(accessToken, refreshToken);
130
+ return result;
87
131
  }
88
132
 
89
133
  /**
90
134
  * 执行用户注销操作,并跳转到登录页面。
91
- * @param _redirect - 注销后的重定向路径,默认为当前页面的完整路径。
92
135
  */
93
- async function logout(_redirect = router?.currentRoute.value.fullPath) {
136
+ function logout() {
94
137
  router?.push({
95
138
  name: 'Login',
96
139
  });
@@ -123,6 +166,7 @@ const useUserStore = defineStore(
123
166
  if (userData.userOrgList?.length && !user.orgId) {
124
167
  user.orgId = find(userData.userOrgList, ['main', true])!.orgId!;
125
168
  }
169
+ return res;
126
170
  }
127
171
 
128
172
  /**
@@ -130,7 +174,7 @@ const useUserStore = defineStore(
130
174
  * @param form - 包含要修改的密码和令牌的表单数据
131
175
  * @returns 修改密码的结果
132
176
  */
133
- async function changeUserPassword(form: API.putRbacUserChangePasswordParams & { token?: LocationQueryValue | LocationQueryValue[] }) {
177
+ async function changeUserPassword(form: API.putRbacUserChangePasswordParams & { token?: string | string[] }) {
134
178
  const headers = {} as AxiosRequestHeaders;
135
179
  if (form.token) {
136
180
  headers.authorization = form.token;
@@ -151,7 +195,7 @@ const useUserStore = defineStore(
151
195
  * @param accessToken 访问令牌
152
196
  * @param refreshToken 刷新令牌数据
153
197
  */
154
- async function setToken(accessToken: string, refreshToken: string) {
198
+ function setToken(accessToken: string, refreshToken: string) {
155
199
  user.token = accessToken;
156
200
  user.refreshToken = refreshToken;
157
201
  }
@@ -173,33 +217,25 @@ const useUserStore = defineStore(
173
217
  async function changeOrg(changeOrgId: string) {
174
218
  const res = await postAuthChangeLoginOrg({ orgId: changeOrgId });
175
219
  const { accessToken, refreshToken } = res.data as Required<API.LoginTokenVo>;
176
- await setToken(accessToken, refreshToken);
220
+ setToken(accessToken, refreshToken);
177
221
  user.orgId = changeOrgId;
178
222
  router?.push({
179
223
  path: '/',
180
224
  });
181
225
  }
182
226
 
183
- async function phoneLogin(phone: string, verify: string) {
184
- // message.success(`${phone}登录成功`);
185
- // await setToken(accessToken, refreshTokenData);
186
- // await getUserInfo();
187
- }
188
-
189
227
  return {
190
228
  user,
229
+ userOrgName,
191
230
  isLogin,
231
+ getUserInfo,
232
+ getPermissions,
192
233
  login,
193
234
  logout,
194
- phoneLogin,
195
- getPermissions,
196
235
  changeUserPassword,
197
- userOrgName,
198
236
  changeOrg,
199
237
  setToken,
200
- getUserInfo,
201
238
  clean,
202
- ...toRefs(user),
203
239
  };
204
240
  },
205
241
  {
@@ -13,7 +13,7 @@ import useUserStore from '../../modules/user';
13
13
  export function createFavoritesStoragePlugin({ store }: PiniaPluginContext) {
14
14
  if (store.$id === STORE_NAME.FAVORITES) {
15
15
  const favoritesStore = store as ReturnType<typeof useFavoritesStore>;
16
- const favoritesId = computed(() => useUserStore().account);
16
+ const favoritesId = computed(() => useUserStore().user.account);
17
17
  const settingsStore = useSettingsStore();
18
18
 
19
19
  // list 变化时更新存储
@@ -14,7 +14,7 @@ import useUserStore from '../../modules/user';
14
14
  export function createTabbarStoragePlugin({ store }: PiniaPluginContext) {
15
15
  if (store.$id === STORE_NAME.TABBAR) {
16
16
  const tabbarStore = store as ReturnType<typeof useTabbarStore>;
17
- const tabbarId = computed(() => useUserStore().account);
17
+ const tabbarId = computed(() => useUserStore().user.account);
18
18
  const settingsStore = useSettingsStore();
19
19
 
20
20
  // list 变化时更新存储
@@ -68,7 +68,7 @@ export default function wmFn() {
68
68
  parent_width: 0,
69
69
  parent_height: 0,
70
70
  parent_node: null,
71
- monitor: true,
71
+ monitor: false,
72
72
  };
73
73
  let forceRemove = false;
74
74
  const watermarkDom = new MutationObserver(domChangeCallback);
@@ -1,8 +0,0 @@
1
- interface PubinfoProviderProps {
2
- loadIcon?: (name?: string) => any;
3
- }
4
- export declare const pubinfoInjectionKey: InjectionKey<PubinfoProviderProps>;
5
- export declare function createPubinfoProvider(props: PubinfoProviderProps): void;
6
- export declare function useProvider(): any;
7
- declare const _default: any;
8
- export default _default;
@@ -1,8 +0,0 @@
1
- /**
2
- * 处理身份验证和权限检查的自定义钩子。
3
- * @returns 包含 auth 和 authAll 函数的对象。
4
- */
5
- export declare function useAuth(): {
6
- auth: (value: string | string[]) => any;
7
- authAll: (value: string[]) => boolean;
8
- };
@@ -1,10 +0,0 @@
1
- import { createElementBlock as e, openBlock as o } from "vue";
2
- import { _ as c } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
- const t = {}, r = { class: "home" };
4
- function n(s, _) {
5
- return o(), e("div", r, " 主页 ");
6
- }
7
- const i = /* @__PURE__ */ c(t, [["render", n]]);
8
- export {
9
- i as default
10
- };
package/es/index.js DELETED
@@ -1,76 +0,0 @@
1
- import { o as s, C as t, L as o, j as r, k as u, P as n, l as i, _ as c, N as P, e as p, f, g as S, S as b, n as d, T as g, m as y, A as l, x as m, y as h, q as v, r as T, z as x, i as A, t as L, s as R, p as j, v as C, h as I, d as K, w as k } from "./index-DvHnVMX5.js";
2
- import { P as w } from "./index-ChOUZNbk.js";
3
- import { _ as G, P as M, c as N, p as W } from "./index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-BBe8CvCV.js";
4
- import { X as E, E as H, F as U, R as _, N as z, Z as O, C as V, T as q, _ as J, Y as Q, O as X, D as Y, V as Z, W as $, Q as ee, r as ae, s as se, U as te, L as oe, n as re, g as ue, k as ne, J as ie, l as ce, c as Pe, o as pe, P as fe, b as Se, e as be, K as de, H as ge, a as ye, u as le, I as me, M as he } from "./notification-6D5hA7Bp.js";
5
- export {
6
- s as BackTop,
7
- t as Copyright,
8
- o as Layout,
9
- r as LayoutContent,
10
- u as LayoutHeader,
11
- n as LayoutProvider,
12
- i as Logo,
13
- c as Menu,
14
- P as NotAllowed,
15
- p as PageHeader,
16
- f as PageMain,
17
- w as PassStrengthValidator,
18
- S as PubinfoApp,
19
- G as PubinfoIcon,
20
- M as PubinfoProvider,
21
- b as SettingBar,
22
- d as Sidebar,
23
- g as Tools,
24
- y as Topbar,
25
- l as asyncFlatten,
26
- m as cleanup,
27
- h as cleanupWithoutUser,
28
- E as compilePublicKey,
29
- H as constantRoutes,
30
- v as createAuthGuard,
31
- T as createBasicGuard,
32
- x as createInjectionKey,
33
- A as createPubinfo,
34
- U as createPubinfoContext,
35
- N as createPubinfoProvider,
36
- L as createSettingGuard,
37
- _ as defineAsyncRoutes,
38
- z as defineSettings,
39
- O as encryptWithPublicKey,
40
- V as eventBus,
41
- q as getAsyncRoutes,
42
- J as getEncryptedData,
43
- Q as getPem,
44
- X as getSettings,
45
- Y as hooks,
46
- Z as normalizePrimitiveToFunction,
47
- $ as objectToPaths,
48
- W as pubinfoInjectionKey,
49
- ee as readProject,
50
- ae as resolveRoutePath,
51
- R as setupLayout,
52
- j as setupRouterGuard,
53
- C as setupStore,
54
- se as storage,
55
- te as systemRoutes,
56
- I as useAuth,
57
- oe as useBox,
58
- re as useError,
59
- ue as useFavoritesStore,
60
- ne as useIframeStore,
61
- ie as useInfo,
62
- ce as useKeepAliveStore,
63
- Pe as useMenuStore,
64
- pe as useNotificationStore,
65
- fe as usePubinfoContext,
66
- Se as useRouteStore,
67
- be as useSettingsStore,
68
- de as useStart,
69
- ge as useSuccess,
70
- ye as useTabbarStore,
71
- K as useTheme,
72
- le as useUserStore,
73
- me as useWarn,
74
- he as watchDiffObject,
75
- k as watermark
76
- };
package/es/interface.d.ts DELETED
@@ -1,29 +0,0 @@
1
- import { Pinia } from 'pinia';
2
- import { App } from 'vue';
3
- import { Router, RouterOptions as VueRouterOptions } from 'vue-router';
4
- type PartialKeys<T, Keys extends keyof T> = Omit<T, Keys> & Partial<Pick<T, Keys>>;
5
- export type RouterOptions = PartialKeys<VueRouterOptions, 'history'> & {
6
- base?: string;
7
- };
8
- export interface Context {
9
- app: App<Element>;
10
- store: Pinia;
11
- router: Router;
12
- }
13
- export interface Options {
14
- rootContainer?: string | Element;
15
- immediate?: boolean;
16
- modules?: ModuleOptions[];
17
- hooks?: Partial<Hooks>;
18
- }
19
- export interface Module {
20
- name: string;
21
- setup?: (ctx: Context) => void;
22
- enforce?: 'pre' | 'post';
23
- hooks?: Partial<Hooks>;
24
- }
25
- export type FalsyModule = false | null | undefined;
26
- export type ModuleOptions = Module | ModuleOptions[] | FalsyModule;
27
- export interface Hooks {
28
- }
29
- export {};
@@ -1,28 +0,0 @@
1
- type __VLS_Props = {
2
- modelValue: boolean;
3
- appear?: boolean;
4
- title?: string;
5
- preventClose?: boolean;
6
- overlay?: boolean;
7
- };
8
- declare function __VLS_template(): any;
9
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
- close: () => any;
12
- "update:modelValue": (args_0: boolean) => any;
13
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
14
- onClose?: (() => any) | undefined;
15
- "onUpdate:modelValue"?: ((args_0: boolean) => any) | undefined;
16
- }>, {
17
- modelValue: boolean;
18
- appear: boolean;
19
- preventClose: boolean;
20
- overlay: boolean;
21
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
22
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
23
- export default _default;
24
- type __VLS_WithTemplateSlots<T, S> = T & {
25
- new (): {
26
- $slots: S;
27
- };
28
- };
@@ -1,30 +0,0 @@
1
- type __VLS_Props = {
2
- modelValue: boolean;
3
- appear?: boolean;
4
- side?: 'left' | 'right';
5
- title?: string;
6
- preventClose?: boolean;
7
- overlay?: boolean;
8
- };
9
- declare function __VLS_template(): any;
10
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
- close: () => any;
13
- "update:modelValue": (args_0: boolean) => any;
14
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
15
- onClose?: (() => any) | undefined;
16
- "onUpdate:modelValue"?: ((args_0: boolean) => any) | undefined;
17
- }>, {
18
- side: "left" | "right";
19
- modelValue: boolean;
20
- appear: boolean;
21
- preventClose: boolean;
22
- overlay: boolean;
23
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
24
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
25
- export default _default;
26
- type __VLS_WithTemplateSlots<T, S> = T & {
27
- new (): {
28
- $slots: S;
29
- };
30
- };
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,9 +0,0 @@
1
- import { Route } from '../../types/vue-router';
2
- /**
3
- * 定义并注册动态路由
4
- */
5
- export declare function defineAsyncRoutes(routes: Route.recordMainRaw[]): Route.recordMainRaw[];
6
- /**
7
- * 读取注册的动态路由
8
- */
9
- export declare function getAsyncRoutes(): Route.recordMainRaw[];
@@ -1,3 +0,0 @@
1
- import { RouteRecordRaw } from 'vue-router';
2
- export declare const constantRoutes: RouteRecordRaw[];
3
- export declare const systemRoutes: RouteRecordRaw[];
@@ -1,32 +0,0 @@
1
- import { Favorites } from '../../../types/favorites';
2
- import { Route } from '../../../types/vue-router';
3
- import { RouteLocationNormalized } from 'vue-router';
4
- import { STORE_NAME } from '../enum';
5
- /**
6
- * 用于管理收藏夹的自定义存储。
7
- *
8
- * @returns 包含各种函数和响应式属性以管理收藏夹的对象。
9
- */
10
- declare const useFavoritesStore: import('pinia').StoreDefinition<STORE_NAME.FAVORITES, Pick<{
11
- list: any;
12
- canAdd: (fullPath: Favorites.recordRaw["fullPath"], routes?: Route.recordMainRaw[]) => boolean;
13
- isAdd: (fullPath: Favorites.recordRaw["fullPath"]) => any;
14
- add: (route: RouteLocationNormalized) => void;
15
- remove: (fullPath: Favorites.recordRaw["fullPath"]) => void;
16
- sort: (newIndex: number, oldIndex: number) => void;
17
- }, any>, Pick<{
18
- list: any;
19
- canAdd: (fullPath: Favorites.recordRaw["fullPath"], routes?: Route.recordMainRaw[]) => boolean;
20
- isAdd: (fullPath: Favorites.recordRaw["fullPath"]) => any;
21
- add: (route: RouteLocationNormalized) => void;
22
- remove: (fullPath: Favorites.recordRaw["fullPath"]) => void;
23
- sort: (newIndex: number, oldIndex: number) => void;
24
- }, any>, Pick<{
25
- list: any;
26
- canAdd: (fullPath: Favorites.recordRaw["fullPath"], routes?: Route.recordMainRaw[]) => boolean;
27
- isAdd: (fullPath: Favorites.recordRaw["fullPath"]) => any;
28
- add: (route: RouteLocationNormalized) => void;
29
- remove: (fullPath: Favorites.recordRaw["fullPath"]) => void;
30
- sort: (newIndex: number, oldIndex: number) => void;
31
- }, any>>;
32
- export default useFavoritesStore;
@@ -1,18 +0,0 @@
1
- import { STORE_NAME } from '../enum';
2
- declare const useNotificationStore: import('pinia').StoreDefinition<STORE_NAME.NOTIFICATION, Pick<{
3
- message: any;
4
- todo: any;
5
- total: any;
6
- init: () => void;
7
- }, any>, Pick<{
8
- message: any;
9
- todo: any;
10
- total: any;
11
- init: () => void;
12
- }, any>, Pick<{
13
- message: any;
14
- todo: any;
15
- total: any;
16
- init: () => void;
17
- }, any>>;
18
- export default useNotificationStore;
@@ -1,85 +0,0 @@
1
- import { RouteLocationNormalized, RouteMeta } from 'vue-router';
2
- import { STORE_NAME } from '../enum';
3
- declare const useSettingsStore: import('pinia').StoreDefinition<STORE_NAME.SETTINGS, Pick<{
4
- settings: any;
5
- os: any;
6
- auth: any;
7
- setAuth: (_auth: RouteMeta["auth"]) => void;
8
- title: any;
9
- setTitle: (_title: RouteMeta["title"]) => void;
10
- customTitleList: any;
11
- setCustomTitle: (fullPath: RouteLocationNormalized["fullPath"], title: string) => void;
12
- resetCustomTitle: (fullPath: RouteLocationNormalized["fullPath"]) => void;
13
- mode: any;
14
- setMode: (width: number) => void;
15
- subMenuCollapseLastStatus: any;
16
- toggleSidebarCollapse: () => void;
17
- setDefaultLang: (lang: string) => void;
18
- setColorScheme: (color: Required<Settings.app>["colorScheme"]) => void;
19
- mainPageMaximizeStatus: any;
20
- setMainPageMaximize: (value?: boolean) => void;
21
- updateSettings: (data: Settings.all, fromBase?: boolean) => void;
22
- globalSettings: any;
23
- updateGlobalSettings: (data: Settings.all) => void;
24
- userSettings: any;
25
- updateUserSettings: (data: Settings.all) => void;
26
- setGlobaleSettingsFlag: (flag?: boolean) => void;
27
- getPreferencesAll: () => Promise<void>;
28
- setPreferencesSetting: (content: Settings.all) => Promise<void>;
29
- resetSettings: () => Promise<void>;
30
- }, any>, Pick<{
31
- settings: any;
32
- os: any;
33
- auth: any;
34
- setAuth: (_auth: RouteMeta["auth"]) => void;
35
- title: any;
36
- setTitle: (_title: RouteMeta["title"]) => void;
37
- customTitleList: any;
38
- setCustomTitle: (fullPath: RouteLocationNormalized["fullPath"], title: string) => void;
39
- resetCustomTitle: (fullPath: RouteLocationNormalized["fullPath"]) => void;
40
- mode: any;
41
- setMode: (width: number) => void;
42
- subMenuCollapseLastStatus: any;
43
- toggleSidebarCollapse: () => void;
44
- setDefaultLang: (lang: string) => void;
45
- setColorScheme: (color: Required<Settings.app>["colorScheme"]) => void;
46
- mainPageMaximizeStatus: any;
47
- setMainPageMaximize: (value?: boolean) => void;
48
- updateSettings: (data: Settings.all, fromBase?: boolean) => void;
49
- globalSettings: any;
50
- updateGlobalSettings: (data: Settings.all) => void;
51
- userSettings: any;
52
- updateUserSettings: (data: Settings.all) => void;
53
- setGlobaleSettingsFlag: (flag?: boolean) => void;
54
- getPreferencesAll: () => Promise<void>;
55
- setPreferencesSetting: (content: Settings.all) => Promise<void>;
56
- resetSettings: () => Promise<void>;
57
- }, any>, Pick<{
58
- settings: any;
59
- os: any;
60
- auth: any;
61
- setAuth: (_auth: RouteMeta["auth"]) => void;
62
- title: any;
63
- setTitle: (_title: RouteMeta["title"]) => void;
64
- customTitleList: any;
65
- setCustomTitle: (fullPath: RouteLocationNormalized["fullPath"], title: string) => void;
66
- resetCustomTitle: (fullPath: RouteLocationNormalized["fullPath"]) => void;
67
- mode: any;
68
- setMode: (width: number) => void;
69
- subMenuCollapseLastStatus: any;
70
- toggleSidebarCollapse: () => void;
71
- setDefaultLang: (lang: string) => void;
72
- setColorScheme: (color: Required<Settings.app>["colorScheme"]) => void;
73
- mainPageMaximizeStatus: any;
74
- setMainPageMaximize: (value?: boolean) => void;
75
- updateSettings: (data: Settings.all, fromBase?: boolean) => void;
76
- globalSettings: any;
77
- updateGlobalSettings: (data: Settings.all) => void;
78
- userSettings: any;
79
- updateUserSettings: (data: Settings.all) => void;
80
- setGlobaleSettingsFlag: (flag?: boolean) => void;
81
- getPreferencesAll: () => Promise<void>;
82
- setPreferencesSetting: (content: Settings.all) => Promise<void>;
83
- resetSettings: () => Promise<void>;
84
- }, any>>;
85
- export default useSettingsStore;