@pubinfo/core 2.0.0-beta.3 → 2.0.0-beta.31

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 (577) hide show
  1. package/{es/AppSetting-BXQHV5F8.js → dist/AppSetting-C1dyZ-8E.js} +21 -20
  2. package/{es/HCheckList.vue_vue_type_script_setup_true_lang-DanhyVxU.js → dist/HCheckList.vue_vue_type_script_setup_true_lang-B3wESRn7.js} +2 -2
  3. package/{es/PreferencesContent-CQkwkQ_1.js → dist/PreferencesContent-DgycKl9e.js} +124 -120
  4. package/{es/SettingBreadcrumb-Bp_66IFN.js → dist/SettingBreadcrumb-BlgX0ZNE.js} +2 -2
  5. package/{es/SettingCopyright-BPSnoTQb.js → dist/SettingCopyright-FmqadL1w.js} +1 -1
  6. package/{es/SettingEnableTransition-Rx2-0Wxj.js → dist/SettingEnableTransition-dzMgw8cN.js} +1 -1
  7. package/{es/SettingHome-BW27PQqs.js → dist/SettingHome-BwlXsTTt.js} +1 -1
  8. package/{es/SettingMenu-D5gdNfal.js → dist/SettingMenu-B5tHMS24.js} +2 -2
  9. package/{es/SettingMode-B4_HGVez.js → dist/SettingMode-Bh0mvh66.js} +1 -1
  10. package/{es/SettingNavSearch-CRovYxzh.js → dist/SettingNavSearch-D4g24uwl.js} +1 -1
  11. package/{es/SettingOther-D0zo11vM.js → dist/SettingOther-DwTtu6As.js} +1 -1
  12. package/{es/SettingPage-B8GHuoKV.js → dist/SettingPage-cDQXtwcG.js} +1 -1
  13. package/{es/SettingTabbar-Cn_QzvA8.js → dist/SettingTabbar-m8X7jEJH.js} +2 -2
  14. package/dist/SettingThemes-CX9ISeD_.js +145 -0
  15. package/{es/SettingToolbar-Csl2gnfi.js → dist/SettingToolbar-ByLjBezg.js} +1 -1
  16. package/{es/SettingTopbar-CaHjQULM.js → dist/SettingTopbar-o8wBZolp.js} +2 -2
  17. package/{es/SettingWidthMode-BGiP7gTw.js → dist/SettingWidthMode-Ux60mKiv.js} +1 -1
  18. package/{es/TopThinMode-DWm0oY5Y.js → dist/TopThinMode-17GrCZdo.js} +1 -1
  19. package/{es/_...all_-DI_QAUox.js → dist/_...all_-6l5FWUkL.js} +1 -1
  20. package/{es → dist}/api/index.d.ts +2 -1
  21. package/{es/colors-oRlAXMUC.js → dist/colors-DiWJrScm.js} +1 -1
  22. package/dist/components/PubinfoIcon/register.d.ts +9 -0
  23. package/{lib → dist}/components/PubinfoProvider/index.d.ts +1 -0
  24. package/{lib → dist}/composables/auth.d.ts +1 -1
  25. package/{es → dist}/context.d.ts +1 -1
  26. package/{es/index-P2cA5UeU.js → dist/index-Be7jJtXg.js} +38 -36
  27. package/{es/index-BHkrq701.js → dist/index-BmMbAV1Y.js} +33 -29
  28. package/{es/index-ChOUZNbk.js → dist/index-CfasTv4x.js} +6 -6
  29. package/{es/index-D8eeneI_.js → dist/index-Ckgil96Y.js} +25 -25
  30. package/{es/index-Dav3jQVP.js → dist/index-De_ME_Ws.js} +31 -31
  31. package/{es/index-DvHnVMX5.js → dist/index-DgpcBgWl.js} +6189 -5995
  32. package/{es/index-B9I6Pru6.js → dist/index-Dzwhw1L9.js} +57 -62
  33. package/{es/index-BkqnOkyO.js → dist/index-Md7zV10q.js} +12 -12
  34. package/{es/index-BvVAS3S-.js → dist/index-bsi-FZDt.js} +21 -13
  35. package/{es → dist}/index.d.ts +1 -0
  36. package/dist/index.js +77 -0
  37. 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-B3Eieo0k.js} +315 -297
  38. package/{lib → dist}/interface.d.ts +13 -0
  39. package/{lib → dist}/layout/Layout.vue.d.ts +2 -2
  40. package/{es → dist}/layout/composables/useContext.d.ts +1 -2
  41. package/{lib → dist}/layout/ui-kit/HDialog.vue.d.ts +12 -1
  42. package/{lib → dist}/layout/ui-kit/HSlideover.vue.d.ts +12 -1
  43. package/{es → dist}/layout/ui-kit/HTabList.vue.d.ts +2 -2
  44. package/{es/notification-6D5hA7Bp.js → dist/menu-CC5544p-.js} +2669 -2681
  45. package/{es/pick-Br-UKn7B.js → dist/pick-CJo2YiT-.js} +1 -1
  46. package/{es → dist}/request.js +399 -390
  47. package/{es → dist}/route/index.d.ts +0 -1
  48. package/dist/route/routes.d.ts +24 -0
  49. package/{lib → dist}/stores/modules/favorites.d.ts +1 -0
  50. package/{es → dist}/stores/modules/iframe.d.ts +1 -0
  51. package/{es → dist}/stores/modules/index.d.ts +8 -1
  52. package/{es → dist}/stores/modules/keepAlive.d.ts +1 -0
  53. package/{es → dist}/stores/modules/menu.d.ts +1 -0
  54. package/{es → dist}/stores/modules/route.d.ts +1 -0
  55. package/{lib → dist}/stores/modules/settings.d.ts +1 -0
  56. package/{lib → dist}/stores/modules/tabbar.d.ts +1 -0
  57. package/dist/stores/modules/user.d.ts +36 -0
  58. package/dist/style.css +9 -0
  59. package/{lib → dist}/utils/index.d.ts +6 -0
  60. package/package.json +38 -44
  61. package/src/api/index.ts +3 -1
  62. package/src/api/modules/configData/xitongpeizhifuwu.ts +3 -3
  63. package/src/assets/styles/globals.scss +6 -6
  64. package/src/components/PubinfoApp/index.vue +1 -1
  65. package/src/components/PubinfoIcon/index.vue +3 -1
  66. package/src/components/PubinfoIcon/register.ts +19 -0
  67. package/src/components/PubinfoProvider/index.ts +3 -2
  68. package/src/composables/auth.ts +1 -1
  69. package/src/context.ts +1 -2
  70. package/src/create.ts +7 -0
  71. package/src/index.ts +1 -0
  72. package/src/interface.ts +13 -0
  73. package/src/layout/Layout.vue +50 -59
  74. package/src/layout/components/Content/index.vue +34 -13
  75. package/src/layout/components/Header/TopMode/index.vue +12 -16
  76. package/src/layout/components/Header/index.vue +5 -5
  77. package/src/layout/components/SettingBar/components/SettingThemes.vue +7 -5
  78. package/src/layout/components/SettingBar/index.vue +3 -1
  79. package/src/layout/components/Sidebar/MainSidebar.vue +4 -7
  80. package/src/layout/components/Tools/Preferences/PreferencesContent.vue +2 -1
  81. package/src/layout/components/Tools/index.vue +9 -32
  82. package/src/layout/composables/useContext.ts +0 -2
  83. package/src/layout/composables/useMainPage.ts +1 -1
  84. package/src/layout/composables/useWatermark.ts +2 -2
  85. package/src/layout/provider.ts +7 -4
  86. package/src/layout/ui-kit/HDialog.vue +4 -1
  87. package/src/layout/ui-kit/HSlideover.vue +4 -1
  88. package/src/pages/system/change-organization/index.vue +3 -3
  89. package/src/pages/system/not-permission/index.vue +2 -2
  90. package/src/route/index.ts +0 -1
  91. package/src/route/routes.ts +87 -55
  92. package/src/stores/helper.ts +2 -2
  93. package/src/stores/modules/favorites.ts +1 -0
  94. package/src/stores/modules/iframe.ts +1 -0
  95. package/src/stores/modules/index.ts +8 -1
  96. package/src/stores/modules/keepAlive.ts +1 -0
  97. package/src/stores/modules/menu.ts +25 -1
  98. package/src/stores/modules/route.ts +14 -5
  99. package/src/stores/modules/settings.ts +1 -0
  100. package/src/stores/modules/tabbar.ts +1 -0
  101. package/src/stores/modules/user.ts +56 -20
  102. package/src/stores/plugin/sideEffect/favoritesStorage.ts +1 -1
  103. package/src/stores/plugin/sideEffect/tabbarStorage.ts +1 -1
  104. package/src/utils/index.ts +14 -0
  105. package/src/utils/watermark.ts +1 -1
  106. package/types/vue-router.d.ts +3 -1
  107. package/es/SettingThemes-D_DpEncn.js +0 -144
  108. package/es/components/PubinfoProvider/index.d.ts +0 -8
  109. package/es/composables/auth.d.ts +0 -8
  110. package/es/index-DTQQt_XY.js +0 -10
  111. package/es/index.js +0 -76
  112. package/es/interface.d.ts +0 -29
  113. package/es/layout/Layout.vue.d.ts +0 -20
  114. package/es/layout/ui-kit/HDialog.vue.d.ts +0 -28
  115. package/es/layout/ui-kit/HSlideover.vue.d.ts +0 -30
  116. package/es/pages/system/not-permission/index.vue.d.ts +0 -2
  117. package/es/route/async.d.ts +0 -9
  118. package/es/route/routes.d.ts +0 -3
  119. package/es/stores/modules/favorites.d.ts +0 -32
  120. package/es/stores/modules/notification.d.ts +0 -18
  121. package/es/stores/modules/settings.d.ts +0 -85
  122. package/es/stores/modules/tabbar.d.ts +0 -59
  123. package/es/stores/modules/user.d.ts +0 -3
  124. package/es/style.css +0 -9
  125. package/es/utils/index.d.ts +0 -14
  126. package/lib/AppSetting-CCiwpjoq.cjs +0 -1
  127. package/lib/HButton.vue_vue_type_script_setup_true_lang-D-XkyoXl.cjs +0 -1
  128. package/lib/HCheckList.vue_vue_type_script_setup_true_lang-DwA8einQ.cjs +0 -1
  129. package/lib/HDivider-DCfDgE8l.cjs +0 -1
  130. package/lib/HInput.vue_vue_type_script_setup_true_lang-CwS0mGyL.cjs +0 -1
  131. package/lib/HToggle-BP6YYf-s.cjs +0 -1
  132. package/lib/PreferencesContent-DgL-Jc_J.cjs +0 -3
  133. package/lib/SettingBreadcrumb-BQ78yEP4.cjs +0 -1
  134. package/lib/SettingCopyright-x7aPlkQy.cjs +0 -1
  135. package/lib/SettingEnableTransition-CD3-44Iy.cjs +0 -1
  136. package/lib/SettingHome-u52oz6i8.cjs +0 -1
  137. package/lib/SettingMenu-DsElOvvv.cjs +0 -1
  138. package/lib/SettingMode-C_kgpTxw.cjs +0 -1
  139. package/lib/SettingNavSearch-3auTi8UW.cjs +0 -1
  140. package/lib/SettingOther-6XGQq7OA.cjs +0 -1
  141. package/lib/SettingPage-C8yIHpLc.cjs +0 -1
  142. package/lib/SettingTabbar-K-nHb89z.cjs +0 -1
  143. package/lib/SettingThemes-BeNwFz7K.cjs +0 -1
  144. package/lib/SettingToolbar-Be1V7lwV.cjs +0 -1
  145. package/lib/SettingTopbar-C-j8O3c8.cjs +0 -1
  146. package/lib/SettingWidthMode-GMjAF-s3.cjs +0 -1
  147. package/lib/TopThinMode-DGUvyHT2.cjs +0 -1
  148. package/lib/_...all_-C4CXjAo9.cjs +0 -1
  149. package/lib/_plugin-vue_export-helper-BHFhmbuH.cjs +0 -1
  150. package/lib/api/enum/code.d.ts +0 -67
  151. package/lib/api/helper.d.ts +0 -32
  152. package/lib/api/index.d.ts +0 -12
  153. package/lib/api/interface.d.ts +0 -14
  154. package/lib/api/modules/auth/index.d.ts +0 -1
  155. package/lib/api/modules/auth/renzhengfuwu.d.ts +0 -50
  156. package/lib/api/modules/configData/heibaimingdanfuwu.d.ts +0 -36
  157. package/lib/api/modules/configData/index.d.ts +0 -3
  158. package/lib/api/modules/configData/xitongpeizhifuwu.d.ts +0 -99
  159. package/lib/api/modules/configData/zidianfuwu.d.ts +0 -71
  160. package/lib/api/modules/rbac/gangweijiekou.d.ts +0 -43
  161. package/lib/api/modules/rbac/index.d.ts +0 -11
  162. package/lib/api/modules/rbac/jiaosejiekou.d.ts +0 -50
  163. package/lib/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +0 -43
  164. package/lib/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +0 -64
  165. package/lib/api/modules/rbac/yonghujiekou.d.ts +0 -106
  166. package/lib/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +0 -36
  167. package/lib/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +0 -29
  168. package/lib/api/modules/rbac/ziyuanjiekou.d.ts +0 -85
  169. package/lib/api/modules/rbac/zuhuguanlijiekou.d.ts +0 -36
  170. package/lib/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +0 -29
  171. package/lib/api/modules/rbac/zuzhijiekou.d.ts +0 -64
  172. package/lib/api/request.d.ts +0 -2
  173. package/lib/api/system/app.d.ts +0 -17
  174. package/lib/api/system/user.d.ts +0 -24
  175. package/lib/assets/styles/index.d.ts +0 -6
  176. package/lib/colors-KAaBT84S.cjs +0 -1
  177. package/lib/components/NotAllowed/index.vue.d.ts +0 -2
  178. package/lib/components/PageHeader/index.vue.d.ts +0 -23
  179. package/lib/components/PageMain/index.vue.d.ts +0 -27
  180. package/lib/components/PassStrengthValidator/index.vue.d.ts +0 -26
  181. package/lib/components/PassStrengthValidator/rule.vue.d.ts +0 -8
  182. package/lib/components/PubinfoApp/index.vue.d.ts +0 -2
  183. package/lib/components/PubinfoIcon/index.vue.d.ts +0 -10
  184. package/lib/components/index.d.ts +0 -8
  185. package/lib/composables/index.d.ts +0 -4
  186. package/lib/composables/log.d.ts +0 -6
  187. package/lib/composables/theme.d.ts +0 -3
  188. package/lib/composables/watchDiff.d.ts +0 -2
  189. package/lib/config/index.d.ts +0 -1
  190. package/lib/config/settings.d.ts +0 -3
  191. package/lib/context.d.ts +0 -14
  192. package/lib/create.d.ts +0 -3
  193. package/lib/directives/index.d.ts +0 -4
  194. package/lib/directives/plugins/permission.d.ts +0 -6
  195. package/lib/index-38bsQrho.cjs +0 -1
  196. package/lib/index-BEqD62a0.cjs +0 -1
  197. package/lib/index-Bbm9CQRP.cjs +0 -1
  198. package/lib/index-BqHsuJkr.cjs +0 -1
  199. package/lib/index-JZl6Zh3L.cjs +0 -44
  200. package/lib/index-VGR0Mt4q.cjs +0 -240
  201. package/lib/index-WMo0GAa6.cjs +0 -1
  202. package/lib/index-_YsHduAE.cjs +0 -1
  203. package/lib/index-gr8kFwPx.cjs +0 -18
  204. package/lib/index-zvGq9tSu.cjs +0 -1
  205. package/lib/index.cjs +0 -1
  206. package/lib/index.d.ts +0 -11
  207. package/lib/index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-SCJ5qyPu.cjs +0 -1
  208. package/lib/layout/components/BackTop/index.vue.d.ts +0 -2
  209. package/lib/layout/components/Content/IframeView.vue.d.ts +0 -4
  210. package/lib/layout/components/Content/LinkView.vue.d.ts +0 -2
  211. package/lib/layout/components/Content/index.vue.d.ts +0 -2
  212. package/lib/layout/components/Copyright/index.vue.d.ts +0 -2
  213. package/lib/layout/components/Header/TopMode/More.vue.d.ts +0 -26
  214. package/lib/layout/components/Header/TopMode/NotCursor.vue.d.ts +0 -25
  215. package/lib/layout/components/Header/TopMode/index.vue.d.ts +0 -4
  216. package/lib/layout/components/Header/TopThinMode.vue.d.ts +0 -4
  217. package/lib/layout/components/Header/index.vue.d.ts +0 -19
  218. package/lib/layout/components/Logo/index.vue.d.ts +0 -26
  219. package/lib/layout/components/Menu/index.vue.d.ts +0 -10
  220. package/lib/layout/components/Menu/item.vue.d.ts +0 -11
  221. package/lib/layout/components/Menu/sub.vue.d.ts +0 -219
  222. package/lib/layout/components/Menu/types.d.ts +0 -42
  223. package/lib/layout/components/SettingBar/AppSetting.vue.d.ts +0 -12
  224. package/lib/layout/components/SettingBar/components/DayNightToggle.vue.d.ts +0 -9
  225. package/lib/layout/components/SettingBar/components/SettingBreadcrumb.vue.d.ts +0 -2
  226. package/lib/layout/components/SettingBar/components/SettingCopyright.vue.d.ts +0 -2
  227. package/lib/layout/components/SettingBar/components/SettingEnableTransition.vue.d.ts +0 -2
  228. package/lib/layout/components/SettingBar/components/SettingHome.vue.d.ts +0 -2
  229. package/lib/layout/components/SettingBar/components/SettingMenu.vue.d.ts +0 -2
  230. package/lib/layout/components/SettingBar/components/SettingMode.vue.d.ts +0 -2
  231. package/lib/layout/components/SettingBar/components/SettingNavSearch.vue.d.ts +0 -2
  232. package/lib/layout/components/SettingBar/components/SettingOther.vue.d.ts +0 -2
  233. package/lib/layout/components/SettingBar/components/SettingPage.vue.d.ts +0 -2
  234. package/lib/layout/components/SettingBar/components/SettingTabbar.vue.d.ts +0 -2
  235. package/lib/layout/components/SettingBar/components/SettingThemes.vue.d.ts +0 -2
  236. package/lib/layout/components/SettingBar/components/SettingToolbar.vue.d.ts +0 -2
  237. package/lib/layout/components/SettingBar/components/SettingTopbar.vue.d.ts +0 -2
  238. package/lib/layout/components/SettingBar/components/SettingWidthMode.vue.d.ts +0 -2
  239. package/lib/layout/components/SettingBar/index.vue.d.ts +0 -2
  240. package/lib/layout/components/Sidebar/MainSidebar.vue.d.ts +0 -2
  241. package/lib/layout/components/Sidebar/SubSidebar.vue.d.ts +0 -2
  242. package/lib/layout/components/Sidebar/index.vue.d.ts +0 -2
  243. package/lib/layout/components/Tools/Breadcrumb/index.vue.d.ts +0 -17
  244. package/lib/layout/components/Tools/Breadcrumb/item.vue.d.ts +0 -25
  245. package/lib/layout/components/Tools/DayNightSwitch.vue.d.ts +0 -2
  246. package/lib/layout/components/Tools/HotkeysIntro.vue.d.ts +0 -4
  247. package/lib/layout/components/Tools/Preferences/PreferencesContent.vue.d.ts +0 -2
  248. package/lib/layout/components/Tools/Preferences/index.vue.d.ts +0 -4
  249. package/lib/layout/components/Tools/Search.vue.d.ts +0 -199
  250. package/lib/layout/components/Tools/index.vue.d.ts +0 -233
  251. package/lib/layout/components/Topbar/Tabbar/MoreAction.vue.d.ts +0 -217
  252. package/lib/layout/components/Topbar/Tabbar/index.vue.d.ts +0 -14
  253. package/lib/layout/components/Topbar/Toolbar/Favorites.vue.d.ts +0 -4
  254. package/lib/layout/components/Topbar/Toolbar/Star.vue.d.ts +0 -2
  255. package/lib/layout/components/Topbar/Toolbar/index.vue.d.ts +0 -2
  256. package/lib/layout/components/Topbar/index.vue.d.ts +0 -2
  257. package/lib/layout/composables/useContext.d.ts +0 -18
  258. package/lib/layout/composables/useGetComputedStyle.d.ts +0 -15
  259. package/lib/layout/composables/useHotkey.d.ts +0 -5
  260. package/lib/layout/composables/useMainPage.d.ts +0 -14
  261. package/lib/layout/composables/useMenu.d.ts +0 -8
  262. package/lib/layout/composables/useTabbar.d.ts +0 -14
  263. package/lib/layout/composables/useTitle.d.ts +0 -3
  264. package/lib/layout/composables/useViewTransition.d.ts +0 -3
  265. package/lib/layout/composables/useWatermark.d.ts +0 -4
  266. package/lib/layout/index.d.ts +0 -19
  267. package/lib/layout/provider.d.ts +0 -1
  268. package/lib/layout/ui-kit/HBadge.vue.d.ts +0 -20
  269. package/lib/layout/ui-kit/HButton.vue.d.ts +0 -26
  270. package/lib/layout/ui-kit/HCheckList.vue.d.ts +0 -20
  271. package/lib/layout/ui-kit/HDivider.vue.d.ts +0 -20
  272. package/lib/layout/ui-kit/HDropdown.vue.d.ts +0 -18
  273. package/lib/layout/ui-kit/HDropdownMenu.vue.d.ts +0 -26
  274. package/lib/layout/ui-kit/HDropdownTree.vue.d.ts +0 -32
  275. package/lib/layout/ui-kit/HInput.vue.d.ts +0 -17
  276. package/lib/layout/ui-kit/HKbd.vue.d.ts +0 -17
  277. package/lib/layout/ui-kit/HSelect.vue.d.ts +0 -17
  278. package/lib/layout/ui-kit/HTabList.vue.d.ts +0 -22
  279. package/lib/layout/ui-kit/HToggle.vue.d.ts +0 -14
  280. package/lib/layout/ui-kit/HTooltip.vue.d.ts +0 -23
  281. package/lib/locales/index.d.ts +0 -301
  282. package/lib/locales/lang/en.json.d.ts +0 -99
  283. package/lib/locales/lang/zh-cn.json.d.ts +0 -100
  284. package/lib/locales/lang/zh-tw.json.d.ts +0 -100
  285. package/lib/locales/ui.d.ts +0 -3
  286. package/lib/modules.d.ts +0 -11
  287. package/lib/notification-IZqPm_OK.cjs +0 -199
  288. package/lib/pages/personal/profile/index.vue.d.ts +0 -2
  289. package/lib/pages/system/[...all].vue.d.ts +0 -2
  290. package/lib/pages/system/change-organization/index.vue.d.ts +0 -2
  291. package/lib/pages/system/change-password/components/ChangePasswordForm/index.vue.d.ts +0 -18
  292. package/lib/pages/system/change-password/index.vue.d.ts +0 -31
  293. package/lib/pages/system/index.vue.d.ts +0 -2
  294. package/lib/pages/system/not-permission/index.vue.d.ts +0 -2
  295. package/lib/pages/system/reload.vue.d.ts +0 -2
  296. package/lib/pick-y2yLda1R.cjs +0 -1
  297. package/lib/question-line-Cd0CU4hr.cjs +0 -1
  298. package/lib/reload-6L7Dzs7h.cjs +0 -1
  299. package/lib/request.cjs +0 -6
  300. package/lib/right-C5JQ_uRB.cjs +0 -1
  301. package/lib/route/async.d.ts +0 -9
  302. package/lib/route/guard/auth.d.ts +0 -3
  303. package/lib/route/guard/basic.d.ts +0 -3
  304. package/lib/route/guard/index.d.ts +0 -3
  305. package/lib/route/guard/setting.d.ts +0 -3
  306. package/lib/route/index.d.ts +0 -7
  307. package/lib/route/routes.d.ts +0 -3
  308. package/lib/stores/enum/index.d.ts +0 -20
  309. package/lib/stores/helper.d.ts +0 -2
  310. package/lib/stores/index.d.ts +0 -5
  311. package/lib/stores/modules/iframe.d.ts +0 -41
  312. package/lib/stores/modules/index.d.ts +0 -9
  313. package/lib/stores/modules/keepAlive.d.ts +0 -23
  314. package/lib/stores/modules/menu.d.ts +0 -32
  315. package/lib/stores/modules/notification.d.ts +0 -18
  316. package/lib/stores/modules/route.d.ts +0 -42
  317. package/lib/stores/modules/user.d.ts +0 -3
  318. package/lib/stores/plugin/persist.d.ts +0 -5
  319. package/lib/stores/plugin/sideEffect/cleanup.d.ts +0 -5
  320. package/lib/stores/plugin/sideEffect/favoritesStorage.d.ts +0 -5
  321. package/lib/stores/plugin/sideEffect/iframeCache.d.ts +0 -5
  322. package/lib/stores/plugin/sideEffect/index.d.ts +0 -5
  323. package/lib/stores/plugin/sideEffect/tabbarStorage.d.ts +0 -5
  324. package/lib/style.css +0 -9
  325. package/lib/utils/cleanup.d.ts +0 -8
  326. package/lib/utils/crypto.d.ts +0 -4
  327. package/lib/utils/eventBus.d.ts +0 -5
  328. package/lib/utils/injectionKeys.d.ts +0 -2
  329. package/lib/utils/storage.d.ts +0 -21
  330. package/lib/utils/utils.d.ts +0 -3
  331. package/lib/utils/watermark.d.ts +0 -51
  332. package/src/assets/icons/add-child.svg +0 -1
  333. package/src/assets/icons/authority.svg +0 -1
  334. package/src/assets/icons/authorize.svg +0 -1
  335. package/src/assets/icons/blacklist-disable.svg +0 -1
  336. package/src/assets/icons/blacklist-enable.svg +0 -1
  337. package/src/assets/icons/browser-360.svg +0 -1
  338. package/src/assets/icons/browser-chrome.svg +0 -1
  339. package/src/assets/icons/browser-edge.svg +0 -1
  340. package/src/assets/icons/browser-ie.svg +0 -1
  341. package/src/assets/icons/browser-other.svg +0 -1
  342. package/src/assets/icons/browser-qq.svg +0 -1
  343. package/src/assets/icons/browser-safari.svg +0 -1
  344. package/src/assets/icons/browser-uc.svg +0 -1
  345. package/src/assets/icons/edit.svg +0 -1
  346. package/src/assets/icons/empty-data.svg +0 -1
  347. package/src/assets/icons/icard.svg +0 -1
  348. package/src/assets/icons/icon_animation.svg +0 -1
  349. package/src/assets/icons/icon_breadcrumb.svg +0 -1
  350. package/src/assets/icons/icon_copyright.svg +0 -1
  351. package/src/assets/icons/icon_jt.svg +0 -1
  352. package/src/assets/icons/icon_layout.svg +0 -1
  353. package/src/assets/icons/icon_mainpage.svg +0 -1
  354. package/src/assets/icons/icon_menu.svg +0 -1
  355. package/src/assets/icons/icon_page_size.svg +0 -1
  356. package/src/assets/icons/icon_position_type.svg +0 -1
  357. package/src/assets/icons/icon_safe_manage.svg +0 -1
  358. package/src/assets/icons/icon_screen_scale.svg +0 -6
  359. package/src/assets/icons/icon_system_manage.svg +0 -1
  360. package/src/assets/icons/icon_tabbar.svg +0 -1
  361. package/src/assets/icons/icon_toolbar.svg +0 -1
  362. package/src/assets/icons/icon_topbar.svg +0 -1
  363. package/src/assets/icons/icon_watermark.svg +0 -1
  364. package/src/assets/icons/image-load-fail.svg +0 -1
  365. package/src/assets/icons/log-center.svg +0 -1
  366. package/src/assets/icons/logo-sig.svg +0 -1
  367. package/src/assets/icons/not-data.svg +0 -1
  368. package/src/assets/icons/org-main.svg +0 -1
  369. package/src/assets/icons/org-unmain.svg +0 -1
  370. package/src/assets/icons/process-management.svg +0 -1
  371. package/src/assets/icons/project-management.svg +0 -1
  372. package/src/assets/icons/rbac.svg +0 -1
  373. package/src/assets/icons/remove.svg +0 -1
  374. package/src/assets/icons/resource-app.svg +0 -1
  375. package/src/assets/icons/resource-btn.svg +0 -1
  376. package/src/assets/icons/resource-index.svg +0 -1
  377. package/src/assets/icons/resource-menu.svg +0 -1
  378. package/src/assets/icons/resource-nonmenu.svg +0 -1
  379. package/src/assets/icons/setting-manage.svg +0 -1
  380. package/src/assets/icons/test.svg +0 -1
  381. package/src/assets/icons/theme-check-mark.svg +0 -1
  382. package/src/assets/icons/theme-title.svg +0 -1
  383. package/src/assets/icons/tree_icon.svg +0 -1
  384. package/src/assets/icons/tree_icon_checked.svg +0 -1
  385. package/src/assets/icons/view.svg +0 -1
  386. package/src/assets/icons/workbench.svg +0 -1
  387. package/src/assets/icons/zddata.svg +0 -1
  388. package/src/assets/icons/zy_checked.svg +0 -1
  389. package/src/assets/icons/zy_default.svg +0 -1
  390. package/src/assets/images/layout/item1.webp +0 -0
  391. package/src/assets/images/layout/item1_dark.webp +0 -0
  392. package/src/assets/images/layout/item2.webp +0 -0
  393. package/src/assets/images/layout/item2_dark.webp +0 -0
  394. package/src/assets/images/layout/item3.webp +0 -0
  395. package/src/assets/images/layout/item3_dark.webp +0 -0
  396. package/src/assets/images/layout/item4.webp +0 -0
  397. package/src/assets/images/layout/item4_dark.webp +0 -0
  398. package/src/assets/images/layout/item5.webp +0 -0
  399. package/src/assets/images/layout/item5_dark.webp +0 -0
  400. package/src/assets/images/page-width/anto_min_w_dark.webp +0 -0
  401. package/src/assets/images/page-width/auto.webp +0 -0
  402. package/src/assets/images/page-width/auto_dark.webp +0 -0
  403. package/src/assets/images/page-width/auto_min_w.webp +0 -0
  404. package/src/assets/images/page-width/auto_min_w_dark.webp +0 -0
  405. package/src/assets/images/page-width/icon_auto.webp +0 -0
  406. package/src/assets/images/page-width/icon_auto_dark.webp +0 -0
  407. package/src/assets/images/page-width/icon_auto_min_w.webp +0 -0
  408. package/src/assets/images/page-width/icon_auto_min_w_dark.webp +0 -0
  409. package/src/assets/images/page-width/icon_middle.webp +0 -0
  410. package/src/assets/images/page-width/icon_middle_dark.webp +0 -0
  411. package/src/assets/images/page-width/icon_middle_max_w.webp +0 -0
  412. package/src/assets/images/page-width/icon_middle_max_w_dark.webp +0 -0
  413. package/src/assets/images/page-width/middle.webp +0 -0
  414. package/src/assets/images/page-width/middle_dark.webp +0 -0
  415. package/src/assets/images/page-width/middle_max_w.webp +0 -0
  416. package/src/assets/images/page-width/middle_max_w_dark.webp +0 -0
  417. package/src/layout/components/Tools/I18nSelector.vue +0 -52
  418. package/src/layout/components/Tools/Notification.vue +0 -152
  419. package/src/pages/personal/notification.vue +0 -58
  420. package/src/pages/system/change-password/page.vue +0 -58
  421. package/src/pages/system/index.vue +0 -5
  422. package/src/route/async.ts +0 -18
  423. package/src/stores/modules/notification.ts +0 -34
  424. package/{es → dist}/HButton.vue_vue_type_script_setup_true_lang-CYAzn9Mg.js +0 -0
  425. package/{es → dist}/HDivider-DgXBhPr0.js +0 -0
  426. package/{es → dist}/HInput.vue_vue_type_script_setup_true_lang-DBqCXRnn.js +0 -0
  427. package/{es → dist}/HToggle-Cd71WKvG.js +0 -0
  428. package/{es → dist}/_plugin-vue_export-helper-CHgC5LLL.js +0 -0
  429. package/{es → dist}/api/enum/code.d.ts +0 -0
  430. package/{es → dist}/api/helper.d.ts +0 -0
  431. package/{es → dist}/api/interface.d.ts +0 -0
  432. package/{es → dist}/api/modules/auth/index.d.ts +0 -0
  433. package/{es → dist}/api/modules/auth/renzhengfuwu.d.ts +0 -0
  434. package/{es → dist}/api/modules/configData/heibaimingdanfuwu.d.ts +0 -0
  435. package/{es → dist}/api/modules/configData/index.d.ts +0 -0
  436. package/{es → dist}/api/modules/configData/xitongpeizhifuwu.d.ts +0 -0
  437. package/{es → dist}/api/modules/configData/zidianfuwu.d.ts +0 -0
  438. package/{es → dist}/api/modules/rbac/gangweijiekou.d.ts +0 -0
  439. package/{es → dist}/api/modules/rbac/index.d.ts +0 -0
  440. package/{es → dist}/api/modules/rbac/jiaosejiekou.d.ts +0 -0
  441. package/{es → dist}/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +0 -0
  442. package/{es → dist}/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +0 -0
  443. package/{es → dist}/api/modules/rbac/yonghujiekou.d.ts +0 -0
  444. package/{es → dist}/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +0 -0
  445. package/{es → dist}/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +0 -0
  446. package/{es → dist}/api/modules/rbac/ziyuanjiekou.d.ts +0 -0
  447. package/{es → dist}/api/modules/rbac/zuhuguanlijiekou.d.ts +0 -0
  448. package/{es → dist}/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +0 -0
  449. package/{es → dist}/api/modules/rbac/zuzhijiekou.d.ts +0 -0
  450. package/{es → dist}/api/request.d.ts +0 -0
  451. package/{es → dist}/api/system/app.d.ts +0 -0
  452. package/{es → dist}/api/system/user.d.ts +0 -0
  453. package/{es → dist}/assets/styles/index.d.ts +0 -0
  454. package/{es → dist}/components/NotAllowed/index.vue.d.ts +0 -0
  455. package/{es → dist}/components/PageHeader/index.vue.d.ts +0 -0
  456. package/{es → dist}/components/PageMain/index.vue.d.ts +0 -0
  457. package/{es → dist}/components/PassStrengthValidator/index.vue.d.ts +2 -2
  458. package/{es → dist}/components/PassStrengthValidator/rule.vue.d.ts +0 -0
  459. package/{es → dist}/components/PubinfoApp/index.vue.d.ts +0 -0
  460. package/{es → dist}/components/PubinfoIcon/index.vue.d.ts +0 -0
  461. package/{es → dist}/components/index.d.ts +0 -0
  462. package/{es → dist}/composables/index.d.ts +0 -0
  463. package/{es → dist}/composables/log.d.ts +0 -0
  464. package/{es → dist}/composables/theme.d.ts +0 -0
  465. package/{es → dist}/composables/watchDiff.d.ts +0 -0
  466. package/{es → dist}/config/index.d.ts +0 -0
  467. package/{es → dist}/config/settings.d.ts +0 -0
  468. package/{es → dist}/create.d.ts +0 -0
  469. package/{es → dist}/directives/index.d.ts +0 -0
  470. package/{es → dist}/directives/plugins/permission.d.ts +0 -0
  471. package/{es → dist}/layout/components/BackTop/index.vue.d.ts +0 -0
  472. package/{es → dist}/layout/components/Content/IframeView.vue.d.ts +0 -0
  473. package/{es → dist}/layout/components/Content/LinkView.vue.d.ts +0 -0
  474. package/{es → dist}/layout/components/Content/index.vue.d.ts +0 -0
  475. package/{es → dist}/layout/components/Copyright/index.vue.d.ts +0 -0
  476. package/{es → dist}/layout/components/Header/TopMode/More.vue.d.ts +0 -0
  477. package/{es → dist}/layout/components/Header/TopMode/NotCursor.vue.d.ts +0 -0
  478. package/{es → dist}/layout/components/Header/TopMode/index.vue.d.ts +0 -0
  479. package/{es → dist}/layout/components/Header/TopThinMode.vue.d.ts +0 -0
  480. package/{es → dist}/layout/components/Header/index.vue.d.ts +0 -0
  481. package/{es → dist}/layout/components/Logo/index.vue.d.ts +0 -0
  482. package/{es → dist}/layout/components/Menu/index.vue.d.ts +0 -0
  483. package/{es → dist}/layout/components/Menu/item.vue.d.ts +0 -0
  484. package/{es → dist}/layout/components/Menu/sub.vue.d.ts +0 -0
  485. package/{es → dist}/layout/components/Menu/types.d.ts +0 -0
  486. package/{es → dist}/layout/components/SettingBar/AppSetting.vue.d.ts +0 -0
  487. package/{es → dist}/layout/components/SettingBar/components/DayNightToggle.vue.d.ts +0 -0
  488. package/{es → dist}/layout/components/SettingBar/components/SettingBreadcrumb.vue.d.ts +0 -0
  489. package/{es → dist}/layout/components/SettingBar/components/SettingCopyright.vue.d.ts +0 -0
  490. package/{es → dist}/layout/components/SettingBar/components/SettingEnableTransition.vue.d.ts +0 -0
  491. package/{es → dist}/layout/components/SettingBar/components/SettingHome.vue.d.ts +0 -0
  492. package/{es → dist}/layout/components/SettingBar/components/SettingMenu.vue.d.ts +0 -0
  493. package/{es → dist}/layout/components/SettingBar/components/SettingMode.vue.d.ts +0 -0
  494. package/{es → dist}/layout/components/SettingBar/components/SettingNavSearch.vue.d.ts +0 -0
  495. package/{es → dist}/layout/components/SettingBar/components/SettingOther.vue.d.ts +0 -0
  496. package/{es → dist}/layout/components/SettingBar/components/SettingPage.vue.d.ts +0 -0
  497. package/{es → dist}/layout/components/SettingBar/components/SettingTabbar.vue.d.ts +0 -0
  498. package/{es → dist}/layout/components/SettingBar/components/SettingThemes.vue.d.ts +0 -0
  499. package/{es → dist}/layout/components/SettingBar/components/SettingToolbar.vue.d.ts +0 -0
  500. package/{es → dist}/layout/components/SettingBar/components/SettingTopbar.vue.d.ts +0 -0
  501. package/{es → dist}/layout/components/SettingBar/components/SettingWidthMode.vue.d.ts +0 -0
  502. package/{es → dist}/layout/components/SettingBar/index.vue.d.ts +0 -0
  503. package/{es → dist}/layout/components/Sidebar/MainSidebar.vue.d.ts +0 -0
  504. package/{es → dist}/layout/components/Sidebar/SubSidebar.vue.d.ts +0 -0
  505. package/{es → dist}/layout/components/Sidebar/index.vue.d.ts +0 -0
  506. package/{es → dist}/layout/components/Tools/Breadcrumb/index.vue.d.ts +0 -0
  507. package/{es → dist}/layout/components/Tools/Breadcrumb/item.vue.d.ts +0 -0
  508. package/{es → dist}/layout/components/Tools/DayNightSwitch.vue.d.ts +0 -0
  509. package/{es → dist}/layout/components/Tools/HotkeysIntro.vue.d.ts +0 -0
  510. package/{es → dist}/layout/components/Tools/Preferences/PreferencesContent.vue.d.ts +0 -0
  511. package/{es → dist}/layout/components/Tools/Preferences/index.vue.d.ts +0 -0
  512. package/{es → dist}/layout/components/Tools/Search.vue.d.ts +0 -0
  513. package/{es → dist}/layout/components/Tools/index.vue.d.ts +0 -0
  514. package/{es → dist}/layout/components/Topbar/Tabbar/MoreAction.vue.d.ts +0 -0
  515. package/{es → dist}/layout/components/Topbar/Tabbar/index.vue.d.ts +0 -0
  516. package/{es → dist}/layout/components/Topbar/Toolbar/Favorites.vue.d.ts +0 -0
  517. package/{es → dist}/layout/components/Topbar/Toolbar/Star.vue.d.ts +0 -0
  518. package/{es → dist}/layout/components/Topbar/Toolbar/index.vue.d.ts +0 -0
  519. package/{es → dist}/layout/components/Topbar/index.vue.d.ts +0 -0
  520. package/{es → dist}/layout/composables/useGetComputedStyle.d.ts +0 -0
  521. package/{es → dist}/layout/composables/useHotkey.d.ts +0 -0
  522. package/{es → dist}/layout/composables/useMainPage.d.ts +0 -0
  523. package/{es → dist}/layout/composables/useMenu.d.ts +0 -0
  524. package/{es → dist}/layout/composables/useTabbar.d.ts +0 -0
  525. package/{es → dist}/layout/composables/useTitle.d.ts +0 -0
  526. package/{es → dist}/layout/composables/useViewTransition.d.ts +0 -0
  527. package/{es → dist}/layout/composables/useWatermark.d.ts +0 -0
  528. package/{es → dist}/layout/index.d.ts +0 -0
  529. package/{es → dist}/layout/provider.d.ts +0 -0
  530. package/{es → dist}/layout/ui-kit/HBadge.vue.d.ts +0 -0
  531. package/{es → dist}/layout/ui-kit/HButton.vue.d.ts +0 -0
  532. package/{es → dist}/layout/ui-kit/HCheckList.vue.d.ts +2 -2
  533. /package/{es → dist}/layout/ui-kit/HDivider.vue.d.ts +0 -0
  534. /package/{es → dist}/layout/ui-kit/HDropdown.vue.d.ts +0 -0
  535. /package/{es → dist}/layout/ui-kit/HDropdownMenu.vue.d.ts +0 -0
  536. /package/{es → dist}/layout/ui-kit/HDropdownTree.vue.d.ts +0 -0
  537. /package/{es → dist}/layout/ui-kit/HInput.vue.d.ts +0 -0
  538. /package/{es → dist}/layout/ui-kit/HKbd.vue.d.ts +0 -0
  539. /package/{es → dist}/layout/ui-kit/HSelect.vue.d.ts +0 -0
  540. /package/{es → dist}/layout/ui-kit/HToggle.vue.d.ts +0 -0
  541. /package/{es → dist}/layout/ui-kit/HTooltip.vue.d.ts +0 -0
  542. /package/{es → dist}/locales/index.d.ts +0 -0
  543. /package/{es → dist}/locales/lang/en.json.d.ts +0 -0
  544. /package/{es → dist}/locales/lang/zh-cn.json.d.ts +0 -0
  545. /package/{es → dist}/locales/lang/zh-tw.json.d.ts +0 -0
  546. /package/{es → dist}/locales/ui.d.ts +0 -0
  547. /package/{es → dist}/modules.d.ts +0 -0
  548. /package/{es → dist}/pages/personal/profile/index.vue.d.ts +0 -0
  549. /package/{es → dist}/pages/system/[...all].vue.d.ts +0 -0
  550. /package/{es → dist}/pages/system/change-organization/index.vue.d.ts +0 -0
  551. /package/{es → dist}/pages/system/change-password/components/ChangePasswordForm/index.vue.d.ts +0 -0
  552. /package/{es → dist}/pages/system/change-password/index.vue.d.ts +0 -0
  553. /package/{es/pages/system → dist/pages/system/not-permission}/index.vue.d.ts +0 -0
  554. /package/{es → dist}/pages/system/reload.vue.d.ts +0 -0
  555. /package/{es → dist}/question-line-CfkciTFq.js +0 -0
  556. /package/{es → dist}/reload-CUcPYtl7.js +0 -0
  557. /package/{es → dist}/right-Bfe2p1o0.js +0 -0
  558. /package/{es → dist}/route/guard/auth.d.ts +0 -0
  559. /package/{es → dist}/route/guard/basic.d.ts +0 -0
  560. /package/{es → dist}/route/guard/index.d.ts +0 -0
  561. /package/{es → dist}/route/guard/setting.d.ts +0 -0
  562. /package/{es → dist}/stores/enum/index.d.ts +0 -0
  563. /package/{es → dist}/stores/helper.d.ts +0 -0
  564. /package/{es → dist}/stores/index.d.ts +0 -0
  565. /package/{es → dist}/stores/plugin/persist.d.ts +0 -0
  566. /package/{es → dist}/stores/plugin/sideEffect/cleanup.d.ts +0 -0
  567. /package/{es → dist}/stores/plugin/sideEffect/favoritesStorage.d.ts +0 -0
  568. /package/{es → dist}/stores/plugin/sideEffect/iframeCache.d.ts +0 -0
  569. /package/{es → dist}/stores/plugin/sideEffect/index.d.ts +0 -0
  570. /package/{es → dist}/stores/plugin/sideEffect/tabbarStorage.d.ts +0 -0
  571. /package/{es → dist}/utils/cleanup.d.ts +0 -0
  572. /package/{es → dist}/utils/crypto.d.ts +0 -0
  573. /package/{es → dist}/utils/eventBus.d.ts +0 -0
  574. /package/{es → dist}/utils/injectionKeys.d.ts +0 -0
  575. /package/{es → dist}/utils/storage.d.ts +0 -0
  576. /package/{es → dist}/utils/utils.d.ts +0 -0
  577. /package/{es → dist}/utils/watermark.d.ts +0 -0
@@ -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 变化时更新存储
@@ -35,6 +35,20 @@ export function objectToPaths(obj: Record<string, any>, prefix = '') {
35
35
  }, [] as string[]);
36
36
  }
37
37
 
38
+ /**
39
+ * 基于 `import.meta.glob` 读取 `iconMap`
40
+ */
41
+ export function loadIconsFromGlob(modules: Record<string, { default: string }>): Record<string, string> {
42
+ return Object.fromEntries(
43
+ Object.entries(modules)
44
+ .map(([path, mod]) => {
45
+ const name = path.match(/([^/]+)(?=\.svg$)/)?.[1];
46
+ return name ? [name, mod.default] : null;
47
+ })
48
+ .filter(Boolean) as [string, string][],
49
+ );
50
+ }
51
+
38
52
  export * from './cleanup';
39
53
  export * from './crypto';
40
54
  export { default as eventBus } from './eventBus';
@@ -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);
@@ -25,6 +25,7 @@ export interface RouterMetaRawBaseOptions {
25
25
  breadcrumbNeste: Route.breadcrumb[]
26
26
  isDev: boolean
27
27
  enabled: boolean
28
+ provider?: any
28
29
  }
29
30
 
30
31
  type RouterMetaRaw = RequireExactlyOne<Partial<RouterMetaRawBaseOptions>, 'title'>;
@@ -37,7 +38,8 @@ export declare namespace Route {
37
38
  | 'icon'
38
39
  | 'activeIcon'
39
40
  | 'auth'
40
- | 'enabled';
41
+ | 'enabled'
42
+ | 'provider';
41
43
 
42
44
  type recordMainRawBasicMeta = Partial<Pick<RouterMetaRawBaseOptions, mainMeta>>;
43
45
 
@@ -1,144 +0,0 @@
1
- import { _ as T } from "./HDivider-DgXBhPr0.js";
2
- import { markRaw as b, createElementBlock as d, openBlock as o, createElementVNode as t, defineComponent as k, useModel as V, withDirectives as S, createStaticVNode as $, vModelCheckbox as w, toRef as D, computed as B, createBlock as N, withCtx as j, createVNode as u, unref as c, isRef as L, Fragment as g, renderList as f, normalizeClass as M, normalizeStyle as h, toDisplayString as z } from "vue";
3
- import "./notification-6D5hA7Bp.js";
4
- import "pinia-plugin-persistedstate";
5
- import { d as F, u as R } from "./index-DvHnVMX5.js";
6
- import { themes as v } from "@pubinfo/config/themes";
7
- import { _ as x } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- const A = {
9
- viewBox: "-5 -2 24 24",
10
- width: "1.2em",
11
- height: "1.2em"
12
- };
13
- function E(i, e) {
14
- return o(), d("svg", A, e[0] || (e[0] = [
15
- t("path", {
16
- fill: "currentColor",
17
- d: "M3 0h8a3 3 0 0 1 3 3v15a2 2 0 0 1-3.348 1.477L7.674 16.76a1 1 0 0 0-1.348 0l-2.978 2.717A2 2 0 0 1 0 18V3a3 3 0 0 1 3-3"
18
- }, null, -1)
19
- ]));
20
- }
21
- const H = b({ name: "jam-bookmark-f", render: E }), I = {
22
- viewBox: "0 0 16 16",
23
- width: "1.2em",
24
- height: "1.2em"
25
- };
26
- function U(i, e) {
27
- return o(), d("svg", I, e[0] || (e[0] = [
28
- t("path", {
29
- fill: "currentColor",
30
- "fill-rule": "evenodd",
31
- d: "M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m3.78-9.72a.75.75 0 0 0-1.06-1.06L6.75 9.19L5.53 7.97a.75.75 0 0 0-1.06 1.06l1.75 1.75a.75.75 0 0 0 1.06 0z",
32
- "clip-rule": "evenodd"
33
- }, null, -1)
34
- ]));
35
- }
36
- const W = b({ name: "pajamas-check-circle-filled", render: U }), J = {
37
- flex: "",
38
- "justify-center": "",
39
- "pb-15px": ""
40
- }, O = { class: "toggleWrapper" }, P = /* @__PURE__ */ k({
41
- name: "DayNightToggle",
42
- __name: "DayNightToggle",
43
- props: {
44
- modelValue: {},
45
- modelModifiers: {}
46
- },
47
- emits: ["update:modelValue"],
48
- setup(i) {
49
- const e = V(i, "modelValue");
50
- return (_, s) => (o(), d("div", J, [
51
- t("div", O, [
52
- S(t("input", {
53
- id: "dn",
54
- "onUpdate:modelValue": s[0] || (s[0] = (p) => e.value = p),
55
- type: "checkbox",
56
- class: "dn"
57
- }, null, 512), [
58
- [w, e.value]
59
- ]),
60
- s[1] || (s[1] = $('<label for="dn" class="toggle" data-v-d927ea22><span class="toggle__handler" data-v-d927ea22><span class="crater crater--1" data-v-d927ea22></span><span class="crater crater--2" data-v-d927ea22></span><span class="crater crater--3" data-v-d927ea22></span></span><span class="star star--1" data-v-d927ea22></span><span class="star star--2" data-v-d927ea22></span><span class="star star--3" data-v-d927ea22></span><span class="star star--4" data-v-d927ea22></span><span class="star star--5" data-v-d927ea22></span><span class="star star--6" data-v-d927ea22></span></label>', 1))
61
- ])
62
- ]));
63
- }
64
- }), q = /* @__PURE__ */ x(P, [["__scopeId", "data-v-d927ea22"]]), G = { class: "themes" }, K = ["onClick"], Q = {
65
- class: "theme-type",
66
- flex: "",
67
- "items-center": ""
68
- }, X = { class: "theme-point" }, Y = { class: "explosion" }, Z = /* @__PURE__ */ k({
69
- name: "SettingThemes",
70
- __name: "SettingThemes",
71
- setup(i) {
72
- const { isDark: e } = F(), { settingsStore: _ } = R(), s = D(_.settings, "app"), p = [
73
- "--ui-primary",
74
- "--ui-text",
75
- "--g-bg",
76
- "--g-header-bg",
77
- "--g-main-sidebar-bg",
78
- "--g-sub-sidebar-bg"
79
- ], y = B(
80
- () => Object.keys(v).map((n) => {
81
- const l = v[n], m = p.map((r) => l[r].startsWith("#") ? l[r] : `rgb(${l[r]})`), a = v[n].label;
82
- return {
83
- label: n,
84
- value: l,
85
- colors: m,
86
- name: a
87
- };
88
- }).filter(
89
- (n) => n.value["color-scheme"] === s.value.colorScheme
90
- )
91
- );
92
- function C(n) {
93
- const l = n.label;
94
- e.value ? s.value.darkTheme = l : s.value.lightTheme = l;
95
- }
96
- return (n, l) => {
97
- const m = T;
98
- return o(), N(m, { title: "颜色主题风格" }, {
99
- default: j(() => [
100
- t("div", null, [
101
- u(q, {
102
- modelValue: c(e),
103
- "onUpdate:modelValue": l[0] || (l[0] = (a) => L(e) ? e.value = a : null)
104
- }, null, 8, ["modelValue"])
105
- ]),
106
- t("div", G, [
107
- (o(!0), d(g, null, f(c(y), (a) => (o(), d("div", {
108
- key: a.label,
109
- class: M(["theme", { active: c(e) ? c(s).darkTheme === a.label : c(s).lightTheme === a.label }]),
110
- onClick: (r) => C(a)
111
- }, [
112
- t("div", Q, [
113
- t("span", {
114
- style: h({ color: a.colors.at(0) }),
115
- "mr-5px": ""
116
- }, [
117
- u(c(H))
118
- ], 4),
119
- t("span", {
120
- style: h({ color: a.colors.at(0) }),
121
- "text-sm": ""
122
- }, z(a.name || a.label), 5)
123
- ]),
124
- t("div", X, [
125
- (o(!0), d(g, null, f(a.colors, (r) => (o(), d("div", {
126
- key: r,
127
- class: "point",
128
- style: h({ backgroundColor: r })
129
- }, null, 4))), 128))
130
- ]),
131
- t("div", Y, [
132
- u(c(W))
133
- ])
134
- ], 10, K))), 128))
135
- ])
136
- ]),
137
- _: 1
138
- });
139
- };
140
- }
141
- }), ce = /* @__PURE__ */ x(Z, [["__scopeId", "data-v-066297c5"]]);
142
- export {
143
- ce as default
144
- };
@@ -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,20 +0,0 @@
1
- declare function __VLS_template(): {
2
- attrs: Partial<{}>;
3
- slots: {
4
- header?(_: {}): any;
5
- topbar?(_: {}): any;
6
- default?(_: {}): any;
7
- footer?(_: {}): any;
8
- };
9
- refs: {};
10
- rootEl: any;
11
- };
12
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
- declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
14
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
- export default _default;
16
- type __VLS_WithTemplateSlots<T, S> = T & {
17
- new (): {
18
- $slots: S;
19
- };
20
- };
@@ -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;