@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
@@ -5,6 +5,12 @@ type ConditionalExceptType<T extends Record<PropertyKey, any>, Type> = {
5
5
  export declare function resolveRoutePath(basePath?: string, routePath?: string): string;
6
6
  export declare function normalizePrimitiveToFunction<T extends Record<PropertyKey, any>>(options: T): ConditionalExceptType<T, Primitive>;
7
7
  export declare function objectToPaths(obj: Record<string, any>, prefix?: string): string[];
8
+ /**
9
+ * 基于 `import.meta.glob` 读取 `iconMap`
10
+ */
11
+ export declare function loadIconsFromGlob(modules: Record<string, {
12
+ default: string;
13
+ }>): Record<string, string>;
8
14
  export * from './cleanup';
9
15
  export * from './crypto';
10
16
  export { default as eventBus } from './eventBus';
package/package.json CHANGED
@@ -1,62 +1,56 @@
1
1
  {
2
2
  "name": "@pubinfo/core",
3
3
  "type": "module",
4
- "version": "2.0.0-beta.3",
4
+ "version": "2.0.0-beta.31",
5
5
  "exports": {
6
6
  ".": {
7
- "types": "./es/index.d.ts",
8
- "import": "./es/index.js",
9
- "require": "./lib/index.cjs"
7
+ "types": "./dist/index.d.ts",
8
+ "default": "./dist/index.js"
10
9
  },
11
10
  "./request": {
12
- "types": "./es/api/index.d.ts",
13
- "import": "./es/request.js",
14
- "require": "./lib/request.cjs"
11
+ "types": "./dist/api/index.d.ts",
12
+ "default": "./dist/request.js"
15
13
  },
16
- "./style.css": {
17
- "import": "./es/style.css",
18
- "require": "./lib/style.css"
19
- },
20
- "./types": "./types/index.d.ts"
14
+ "./style.css": "./dist/style.css",
15
+ "./types": "./dist/index.d.ts"
21
16
  },
22
- "main": "./lib/index.js",
23
- "module": "./es/index.js",
24
- "types": "./es/index.d.ts",
17
+ "main": "./dist/index.js",
18
+ "module": "./dist/index.js",
19
+ "types": "./dist/index.d.ts",
25
20
  "files": [
26
- "es",
27
- "lib",
21
+ "dist",
28
22
  "src",
29
23
  "types"
30
24
  ],
31
25
  "peerDependencies": {
32
- "alova": "^3.2.6",
33
- "pinia": "^2.3.0",
34
- "vue": "^3.5.13",
35
- "vue-i18n": "^9.14.0",
36
- "vue-router": "^4.5.0",
37
- "@pubinfo/config": "2.0.0-beta.3"
26
+ "alova": "^3.2.13",
27
+ "pinia": "^2.3.1",
28
+ "vue": "^3.5.16",
29
+ "vue-i18n": "^10.0.7",
30
+ "vue-router": "^4.5.1",
31
+ "@pubinfo/config": "2.0.0-beta.31"
38
32
  },
39
33
  "dependencies": {
40
- "@alova/adapter-axios": "^2.0.13",
34
+ "@alova/adapter-axios": "^2.0.14",
41
35
  "@ant-design/icons-vue": "^7.0.1",
42
36
  "@headlessui/vue": "^1.7.23",
43
- "@imengyu/vue3-context-menu": "^1.4.4",
44
- "@pubinfo/pro-components": "^1.6.1",
37
+ "@imengyu/vue3-context-menu": "^1.5.0",
38
+ "@pubinfo/pro-components": "^1.7.1",
45
39
  "@unocss/reset": "^65.5.0",
46
- "@vueuse/core": "^12.7.0",
47
- "@vueuse/integrations": "^12.7.0",
40
+ "@vueuse/core": "^13.3.0",
41
+ "@vueuse/integrations": "^13.3.0",
48
42
  "ant-design-vue": "^4.2.6",
49
- "axios": "^1.8.1",
50
- "consola": "^3.4.0",
43
+ "axios": "^1.9.0",
44
+ "consola": "^3.4.2",
51
45
  "floating-vue": "5.2.2",
52
46
  "hookable": "^5.5.3",
53
- "hotkeys-js": "^3.13.9",
47
+ "hotkeys-js": "^3.13.10",
54
48
  "jsencrypt": "^3.3.2",
55
49
  "lodash-es": "^4.17.21",
56
50
  "md5": "^2.3.0",
57
51
  "mitt": "^3.0.1",
58
52
  "nprogress": "^0.2.0",
59
- "overlayscrollbars": "^2.11.1",
53
+ "overlayscrollbars": "^2.11.3",
60
54
  "overlayscrollbars-vue": "^0.5.9",
61
55
  "path-browserify": "^1.0.1",
62
56
  "path-to-regexp": "^6.3.0",
@@ -66,7 +60,7 @@
66
60
  "zxcvbn": "^4.4.2"
67
61
  },
68
62
  "devDependencies": {
69
- "@iconify/json": "^2.2.312",
63
+ "@iconify/json": "^2.2.343",
70
64
  "@iconify/vue": "^4.3.0",
71
65
  "@pubinfo/openapi": "^0.8.4",
72
66
  "@pubinfo/preset-openapi": "^0.8.4",
@@ -76,22 +70,22 @@
76
70
  "@types/path-browserify": "^1.0.3",
77
71
  "@types/sortablejs": "^1.15.8",
78
72
  "@types/zxcvbn": "^4.4.5",
79
- "@vitejs/plugin-vue": "^5.2.1",
80
- "@vitejs/plugin-vue-jsx": "^4.1.1",
81
- "alova": "^3.2.9",
73
+ "@vitejs/plugin-vue": "^5.2.4",
74
+ "@vitejs/plugin-vue-jsx": "^4.2.0",
75
+ "alova": "^3.2.13",
82
76
  "pinia": "^2.3.1",
83
- "sass": "1.77.8",
84
- "type-fest": "^4.36.0",
77
+ "sass": "1.83.0",
78
+ "type-fest": "^4.41.0",
85
79
  "unocss": "^65.5.0",
86
80
  "unplugin-auto-import": "^0.18.6",
87
81
  "unplugin-icons": "^0.22.0",
88
82
  "unplugin-vue-components": "^0.27.5",
89
- "vite": "^6.2.0",
90
- "vite-plugin-dts": "^4.5.3",
91
- "vue": "^3.5.13",
92
- "vue-i18n": "^9.14.2",
93
- "vue-router": "^4.5.0",
94
- "@pubinfo/config": "2.0.0-beta.3"
83
+ "vite": "^6.3.5",
84
+ "vite-plugin-dts": "^4.5.4",
85
+ "vue": "^3.5.16",
86
+ "vue-i18n": "^10.0.7",
87
+ "vue-router": "^4.5.1",
88
+ "@pubinfo/config": "2.0.0-beta.31"
95
89
  },
96
90
  "scripts": {
97
91
  "dev": "vite build -w -m watch",
package/src/api/index.ts CHANGED
@@ -14,6 +14,8 @@ import {
14
14
  ReSetTokenAndRefreshToken,
15
15
  } from './helper';
16
16
 
17
+ export { RESPONSE_CODE } from './enum/code';
18
+
17
19
  export function createTokenAuthentication() {
18
20
  return createServerTokenAuthentication<typeof VueHook, typeof axiosRequestAdapter>({
19
21
  /**
@@ -72,4 +74,4 @@ export function createRequest(options: RequestOptions) {
72
74
  return instance;
73
75
  }
74
76
 
75
- export { RESPONSE_CODE } from './enum/code';
77
+ export * from './interface';
@@ -63,7 +63,7 @@ export function postSysconfigAddOrUpdateBackgroundImage<
63
63
  if (item !== undefined && item !== null) {
64
64
  if (typeof item === 'object' && !(item instanceof File)) {
65
65
  if (Array.isArray(item)) {
66
- item.forEach((f) => formData.append(ele, f || ''));
66
+ item.forEach(f => formData.append(ele, f || ''));
67
67
  }
68
68
  else {
69
69
  formData.append(ele, JSON.stringify(item));
@@ -110,7 +110,7 @@ export function postSysconfigAddOrUpdateBackgroundSmallImage<
110
110
  if (item !== undefined && item !== null) {
111
111
  if (typeof item === 'object' && !(item instanceof File)) {
112
112
  if (Array.isArray(item)) {
113
- item.forEach((f) => formData.append(ele, f || ''));
113
+ item.forEach(f => formData.append(ele, f || ''));
114
114
  }
115
115
  else {
116
116
  formData.append(ele, JSON.stringify(item));
@@ -152,7 +152,7 @@ export function postSysconfigAddOrUpdateLogImage<
152
152
  if (item !== undefined && item !== null) {
153
153
  if (typeof item === 'object' && !(item instanceof File)) {
154
154
  if (Array.isArray(item)) {
155
- item.forEach((f) => formData.append(ele, f || ''));
155
+ item.forEach(f => formData.append(ele, f || ''));
156
156
  }
157
157
  else {
158
158
  formData.append(ele, JSON.stringify(item));
@@ -130,12 +130,12 @@ body {
130
130
  transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
131
131
  }
132
132
 
133
- @media screen and (max-width: $g-app-width) {
134
- [data-fixed-calc-width] {
135
- width: calc(100% - var(--g-main-sidebar-actual-width) - var(--g-sub-sidebar-actual-width));
136
- transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
137
- }
138
- }
133
+ // @media screen and (max-width: $g-app-width) {
134
+ // [data-fixed-calc-width] {
135
+ // width: calc(100% - var(--g-main-sidebar-actual-width) - var(--g-sub-sidebar-actual-width));
136
+ // transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
137
+ // }
138
+ // }
139
139
  }
140
140
 
141
141
  [data-mode="mobile"] {
@@ -9,7 +9,7 @@ const route = useRoute();
9
9
  const { auth } = useAuth();
10
10
 
11
11
  const isAuth = computed(() => {
12
- return route.matched.every((item) => auth(item.meta.auth ?? ''));
12
+ return route.matched.every(item => auth(item.meta.auth ?? ''));
13
13
  });
14
14
  </script>
15
15
 
@@ -1,6 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import { Icon } from '@iconify/vue';
3
3
  import { useProvider } from '../PubinfoProvider';
4
+ import { iconRegistry } from './register';
4
5
 
5
6
  defineOptions({
6
7
  name: 'PubinfoIcon',
@@ -72,7 +73,8 @@ function _loadIcon() {
72
73
  if (!loadIcon && outputType.value === 'custom') {
73
74
  return new Error('Need pro `loadIcon`, according to [PubinfoProvider].');
74
75
  }
75
- return loadIcon?.(props.name);
76
+
77
+ return loadIcon?.(props.name) ?? iconRegistry.get(props.name);
76
78
  }
77
79
  </script>
78
80
 
@@ -0,0 +1,19 @@
1
+ type IconMap = Record<string, string>;
2
+
3
+ export class IconRegistry {
4
+ private iconMap: IconMap = {};
5
+
6
+ register(icons: IconMap) {
7
+ this.iconMap = { ...this.iconMap, ...icons };
8
+ }
9
+
10
+ get(name: string): string | undefined {
11
+ return this.iconMap[name];
12
+ }
13
+
14
+ getAll(): IconMap {
15
+ return this.iconMap;
16
+ }
17
+ }
18
+
19
+ export const iconRegistry = new IconRegistry();
@@ -1,3 +1,5 @@
1
+ import type { InjectionKey } from 'vue';
2
+
1
3
  interface PubinfoProviderProps {
2
4
  loadIcon?: (name?: string) => any
3
5
  }
@@ -17,7 +19,6 @@ export default defineComponent({
17
19
  props: {
18
20
  loadIcon: {
19
21
  type: Function as PubinfoProviderProps['loadIcon'],
20
- required: true,
21
22
  },
22
23
  },
23
24
  setup(props, { slots }) {
@@ -25,7 +26,7 @@ export default defineComponent({
25
26
 
26
27
  createPubinfoProvider({
27
28
  loadIcon(name) {
28
- return props.loadIcon(name) ?? provider?.loadIcon?.(name);
29
+ return props?.loadIcon?.(name) ?? provider?.loadIcon?.(name);
29
30
  },
30
31
  });
31
32
 
@@ -14,7 +14,7 @@ export function useAuth() {
14
14
  const settingsStore = useSettingsStore();
15
15
  const userStore = useUserStore();
16
16
  if (settingsStore.settings.app.enablePermission) {
17
- return userStore.permissions.includes(permission);
17
+ return userStore.user.permissions.includes(permission);
18
18
  }
19
19
  else {
20
20
  return true;
package/src/context.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import type { Context } from './interface';
2
2
  import { createHooks } from 'hookable';
3
3
  import { auth, basic } from 'pubinfo:project/api/request';
4
- import layout from 'pubinfo:project/layouts/index.vue';
5
4
 
6
5
  export const hooks = createHooks();
7
6
 
@@ -24,7 +23,7 @@ export function usePubinfoContext() {
24
23
  */
25
24
  export function readProject() {
26
25
  return {
27
- layout,
26
+ layout: () => import('pubinfo:project/layouts/index.vue'),
28
27
  request: { auth, basic },
29
28
  };
30
29
  }
package/src/create.ts CHANGED
@@ -6,6 +6,7 @@ import { createRouter, createWebHashHistory } from 'vue-router';
6
6
 
7
7
  import { GetAPIValidateIp } from './api/system/app';
8
8
 
9
+ import { iconRegistry } from './components/PubinfoIcon/register';
9
10
  import { createPubinfoContext, hooks } from './context';
10
11
  import { setupDirectives } from './directives';
11
12
  import { setupLayout } from './layout';
@@ -13,6 +14,7 @@ import { setupI18n } from './locales';
13
14
  import { extractModules, resolveModules } from './modules';
14
15
  import { constantRoutes, setupRouterGuard } from './route';
15
16
  import { setupStore } from './stores';
17
+ import { loadIconsFromGlob } from './utils';
16
18
 
17
19
  export function createPubinfo(
18
20
  App: Component,
@@ -45,6 +47,7 @@ export function createPubinfo(
45
47
  app,
46
48
  store,
47
49
  router,
50
+ iconRegistry,
48
51
  };
49
52
 
50
53
  app.use(store);
@@ -80,6 +83,10 @@ export function createPubinfo(
80
83
  }
81
84
 
82
85
  function setupBasic(context: Context) {
86
+ // register icons
87
+ const iconMap = loadIconsFromGlob(import.meta.glob('./assets/icons/*.svg', { eager: true }));
88
+ context.iconRegistry.register(iconMap);
89
+
83
90
  setupStore(context);
84
91
  setupRouterGuard(context);
85
92
  setupDirectives(context);
package/src/index.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import './assets/styles';
2
+ import '../types/index.d.ts';
2
3
 
3
4
  export * from './components';
4
5
  export * from './composables';
package/src/interface.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import type { Pinia } from 'pinia';
2
2
  import type { App } from 'vue';
3
3
  import type { Router, RouterOptions as VueRouterOptions } from 'vue-router';
4
+ import type { IconRegistry } from './components/PubinfoIcon/register';
4
5
 
5
6
  type PartialKeys<T, Keys extends keyof T> = Omit<T, Keys> & Partial<Pick<T, Keys>>;
6
7
 
@@ -10,6 +11,7 @@ export interface Context {
10
11
  app: App<Element>
11
12
  store: Pinia
12
13
  router: Router
14
+ iconRegistry: IconRegistry
13
15
  }
14
16
 
15
17
  export interface Options {
@@ -20,9 +22,20 @@ export interface Options {
20
22
  }
21
23
 
22
24
  export interface Module {
25
+ /** 唯一值 */
23
26
  name: string
27
+ /** 初始化内容 */
24
28
  setup?: (ctx: Context) => void
29
+ /**
30
+ * 插件调用顺序:
31
+ * - `enforce: pre` 插件
32
+ * - 腾龙核心功能(即内置的各类路由守卫、状态管理等)
33
+ * - 普通插件
34
+ * - 项目初始化函数(即 `createPubinfo` 第三个参数)
35
+ * - `enforce: post` 插件
36
+ */
25
37
  enforce?: 'pre' | 'post'
38
+ /** 钩子函数 */
26
39
  hooks?: Partial<Hooks>
27
40
  }
28
41
 
@@ -1,5 +1,4 @@
1
1
  <script setup lang="ts">
2
- import { PubinfoProvider } from '@/components';
3
2
  import RiLogoutBoxLine from '~icons/ri/logout-box-line';
4
3
  import BackTop from './components/BackTop/index.vue';
5
4
  import LayoutContent from './components/Content/index.vue';
@@ -49,78 +48,70 @@ watch(() => routeInfo.path, () => {
49
48
  });
50
49
  }
51
50
  });
52
-
53
- function loadIcon(name: string) {
54
- const modules = (import.meta as any).glob('../assets/icons/*', { eager: true });
55
- const path = `../assets/icons/${name}.svg`;
56
- return modules[path]?.default;
57
- }
58
51
  </script>
59
52
 
60
53
  <template>
61
- <PubinfoProvider :load-icon="loadIcon">
62
- <div
63
- class="layout"
64
- :style="{
65
- '--g-main-sidebar-actual-width': mainSidebarActualWidth,
66
- '--g-sub-sidebar-actual-width': subSidebarActualWidth,
67
- }"
68
- >
69
- <div id="app-main" :class="{ 'main-page-maximize': settingsStore.mainPageMaximizeStatus }">
70
- <slot name="header">
71
- <LayoutHeader />
72
- </slot>
73
-
74
- <div class="wrapper">
75
- <div
76
- class="sidebar-container"
77
- :class="{ show: settingsStore.mode === 'mobile' && !settingsStore.settings.menu.subMenuCollapse }"
78
- >
79
- <!-- TODO 这种写法会导致侧边栏模式的布局下,有样式问题 -->
80
- <!-- <slot name="sidebar">
54
+ <div
55
+ class="layout"
56
+ :style="{
57
+ '--g-main-sidebar-actual-width': mainSidebarActualWidth,
58
+ '--g-sub-sidebar-actual-width': subSidebarActualWidth,
59
+ }"
60
+ >
61
+ <div id="app-main" :class="{ 'main-page-maximize': settingsStore.mainPageMaximizeStatus }">
62
+ <slot name="header">
63
+ <LayoutHeader />
64
+ </slot>
65
+
66
+ <div class="wrapper">
67
+ <div
68
+ class="sidebar-container"
69
+ :class="{ show: settingsStore.mode === 'mobile' && !settingsStore.settings.menu.subMenuCollapse }"
70
+ >
71
+ <!-- TODO 这种写法会导致侧边栏模式的布局下,有样式问题 -->
72
+ <!-- <slot name="sidebar">
81
73
  <Sidebar />
82
74
  </slot> -->
83
75
 
84
- <MainSidebar />
85
- <SubSidebar />
86
- </div>
87
-
88
- <div
89
- class="sidebar-mask"
90
- :class="{ show: settingsStore.mode === 'mobile' && !settingsStore.settings.menu.subMenuCollapse }"
91
- @click="settingsStore.toggleSidebarCollapse()"
92
- />
93
-
94
- <div class="main-container" :style="{ 'padding-bottom': routeInfo.meta.paddingBottom }">
95
- <slot name="topbar">
96
- <Topbar />
97
- </slot>
76
+ <MainSidebar />
77
+ <SubSidebar />
78
+ </div>
98
79
 
99
- <div class="main">
100
- <div
101
- v-show="settingsStore.mainPageMaximizeStatus"
102
- class="exit-main-page-maximize"
103
- @click="settingsStore.setMainPageMaximize()"
104
- >
105
- <RiLogoutBoxLine />
106
- </div>
107
-
108
- <slot>
109
- <LayoutContent />
110
- </slot>
80
+ <div
81
+ class="sidebar-mask"
82
+ :class="{ show: settingsStore.mode === 'mobile' && !settingsStore.settings.menu.subMenuCollapse }"
83
+ @click="settingsStore.toggleSidebarCollapse()"
84
+ />
85
+
86
+ <div class="main-container" :style="{ 'padding-bottom': routeInfo.meta.paddingBottom }">
87
+ <slot name="topbar">
88
+ <Topbar />
89
+ </slot>
90
+
91
+ <div class="main">
92
+ <div
93
+ v-show="settingsStore.mainPageMaximizeStatus"
94
+ class="exit-main-page-maximize"
95
+ @click="settingsStore.setMainPageMaximize()"
96
+ >
97
+ <RiLogoutBoxLine />
111
98
  </div>
112
99
 
113
- <slot name="footer">
114
- <Copyright />
100
+ <slot>
101
+ <LayoutContent />
115
102
  </slot>
116
103
  </div>
104
+
105
+ <slot name="footer">
106
+ <Copyright />
107
+ </slot>
117
108
  </div>
118
109
  </div>
119
-
120
- <SettingBar />
121
- <BackTop />
122
110
  </div>
123
- </PubinfoProvider>
111
+
112
+ <SettingBar />
113
+ <BackTop />
114
+ </div>
124
115
  </template>
125
116
 
126
117
  <style lang="scss" scoped>
@@ -7,25 +7,46 @@ defineOptions({
7
7
  name: 'LayoutContent',
8
8
  });
9
9
 
10
- const routeInfo = useRoute();
10
+ const _route = useRoute();
11
11
  const { settingsStore, keepAliveStore } = useContext();
12
12
 
13
- const isIframe = computed(() => !!routeInfo.meta.iframe);
14
- const isLink = computed(() => !!routeInfo.meta.link);
13
+ const isIframe = computed(() => !!_route.meta.iframe);
14
+ const isLink = computed(() => !!_route.meta.link);
15
+
16
+ function EmptyWrapper(_: any, { slots }: { slots: any }) {
17
+ return slots?.default?.();
18
+ }
19
+
20
+ const Provider = computed(() => {
21
+ const metaProvider = _route.matched?.[0]?.meta?.provider;
22
+
23
+ if (!metaProvider) {
24
+ return EmptyWrapper;
25
+ };
26
+
27
+ // 是函数,认为是 () => import(...)
28
+ if (typeof metaProvider === 'function') {
29
+ return defineAsyncComponent(metaProvider);
30
+ }
31
+
32
+ return metaProvider;
33
+ });
15
34
  </script>
16
35
 
17
36
  <template>
18
37
  <RouterView v-slot="{ Component, route }">
19
- <Transition :name="settingsStore.settings.mainPage.enableTransition ? settingsStore.settings.mainPage.transitionMode : ''" mode="out-in" appear>
20
- <KeepAlive :include="keepAliveStore.list">
21
- <component
22
- :is="Component"
23
- v-show="!(isIframe || isLink)"
24
- :key="route.fullPath"
25
- class="page-container"
26
- />
27
- </KeepAlive>
28
- </Transition>
38
+ <component :is="Provider">
39
+ <Transition :name="settingsStore.settings.mainPage.enableTransition ? settingsStore.settings.mainPage.transitionMode : ''" mode="out-in" appear>
40
+ <KeepAlive :include="keepAliveStore.list">
41
+ <component
42
+ :is="Component"
43
+ v-show="!(isIframe || isLink)"
44
+ :key="route.fullPath"
45
+ class="page-container"
46
+ />
47
+ </KeepAlive>
48
+ </Transition>
49
+ </component>
29
50
  </RouterView>
30
51
 
31
52
  <IframeView v-show="isIframe && !isLink" />
@@ -31,8 +31,6 @@ const menuRef = ref<HTMLElement | null>();
31
31
  const { width } = useElementSize(menuRef);
32
32
  const menuHideIndex = ref(0);
33
33
 
34
- watchMenuItem();
35
-
36
34
  const moreApple = computed(() => {
37
35
  return menuHideIndex.value === menuStore.allMenus.length - 1;
38
36
  });
@@ -42,19 +40,6 @@ function moreApplyClick(index: number, item: Menu.recordMainRaw) {
42
40
  switchTo(menuIndex, item);
43
41
  }
44
42
 
45
- function watchMenuItem() {
46
- onMounted(() => {
47
- watch(
48
- width,
49
- () => {
50
- menuHideIndex.value = fitMenus();
51
- },
52
- {
53
- immediate: true,
54
- });
55
- });
56
- }
57
-
58
43
  // 计算顶部菜单宽度
59
44
  function fitMenus() {
60
45
  const containerRoot = menuRef.value!;
@@ -89,6 +74,17 @@ function fitMenus() {
89
74
 
90
75
  return restrictedIndex;
91
76
  }
77
+
78
+ onMounted(() => {
79
+ watch(
80
+ width,
81
+ () => {
82
+ menuHideIndex.value = fitMenus();
83
+ },
84
+ {
85
+ immediate: true,
86
+ });
87
+ });
92
88
  </script>
93
89
 
94
90
  <template>
@@ -99,7 +95,7 @@ function fitMenus() {
99
95
  [`menu-active-${settingsStore.settings.menu.menuActiveStyle}`]: settingsStore.settings.menu.menuActiveStyle !== '',
100
96
  }"
101
97
  >
102
- <template v-for="(item, index) in menuStore.allMenus" :key="index">
98
+ <template v-for="(item, index) in menuStore.allMenus" :key="item?.meta?.title || index">
103
99
  <div
104
100
  class="menu-item relative transition-all"
105
101
  invisible
@@ -153,11 +153,11 @@ header {
153
153
  }
154
154
  }
155
155
 
156
- @media screen and (max-width: $g-header-width) {
157
- .header-container {
158
- width: 100%;
159
- }
160
- }
156
+ // @media screen and (max-width: $g-header-width) {
157
+ // .header-container {
158
+ // width: 100%;
159
+ // }
160
+ // }
161
161
 
162
162
  :deep(.menu-container) {
163
163
  flex: 1;