@pubinfo/core 2.0.0-rc.2 → 2.0.0-rc.4

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 (133) hide show
  1. package/dist/{AppSetting-D2RJrc9O.js → AppSetting-BI-oNc4e.js} +19 -19
  2. package/dist/{HCheckList.vue_vue_type_script_setup_true_lang-DusVz35O.js → HCheckList.vue_vue_type_script_setup_true_lang-BdLpkcoh.js} +1 -1
  3. package/dist/{HToggle-DMcVgMVY.js → HToggle-DxdWLgp-.js} +1 -1
  4. package/dist/{PreferencesContent-Dtd9rtew.js → PreferencesContent-CCYkZeCT.js} +52 -52
  5. package/dist/{SettingBreadcrumb-QSCSviKM.js → SettingBreadcrumb-BTyfiy4k.js} +5 -5
  6. package/dist/{SettingCopyright-Dr5P6yfq.js → SettingCopyright-g6UHi8pZ.js} +2 -2
  7. package/dist/{SettingEnableTransition-DGiHEbCI.js → SettingEnableTransition-Ci-5bhbR.js} +12 -12
  8. package/dist/{SettingHome-CEPcBlds.js → SettingHome-K4Iel0Hr.js} +8 -8
  9. package/dist/{SettingMenu-BJdjnRA6.js → SettingMenu-BYLWzA5i.js} +14 -14
  10. package/dist/{SettingMode-BnuCHoEY.js → SettingMode-tRisyKtg.js} +3 -3
  11. package/dist/{SettingNavSearch-CiU4BmlU.js → SettingNavSearch-CSM6mPf8.js} +6 -6
  12. package/dist/{SettingOther-DTHjVlFe.js → SettingOther-Bj5KF_vC.js} +11 -11
  13. package/dist/{SettingPage-D75_Nf05.js → SettingPage-CFjmrVI7.js} +2 -2
  14. package/dist/{SettingTabbar-D48dzvgA.js → SettingTabbar-uFYiaZhK.js} +13 -13
  15. package/dist/{SettingThemes-D-8vTs5n.js → SettingThemes-C-tMq9o5.js} +12 -12
  16. package/dist/{SettingToolbar-DjIjm9V-.js → SettingToolbar-BfDzijNU.js} +10 -10
  17. package/dist/{SettingTopbar-Cg30OTH3.js → SettingTopbar-DTDv4NXD.js} +6 -6
  18. package/dist/{SettingWidthMode-BKV_7kb8.js → SettingWidthMode-PkiwrHe3.js} +11 -11
  19. package/dist/{TopThinMode-JFYsp_lJ.js → TopThinMode-BrvA8pV0.js} +3 -3
  20. package/dist/built-in/authentication/alova/helper.d.ts +34 -0
  21. package/dist/built-in/authentication/alova/token.d.ts +16 -0
  22. package/dist/built-in/authentication/helper.d.ts +10 -1
  23. package/dist/built-in/index.d.ts +0 -1
  24. package/dist/built-in/layout-component/Layout.vue.d.ts +1 -0
  25. package/dist/built-in/layout-component/components/Tools/Fullscreen.vue.d.ts +2 -0
  26. package/dist/built-in/layout-component/components/Tools/PageReload.vue.d.ts +2 -0
  27. package/dist/built-in/layout-component/components/Tools/SearchBar.vue.d.ts +2 -0
  28. package/dist/built-in/layout-component/components/Tools/index.vue.d.ts +47 -1
  29. package/dist/built-in/layout-component/components/Tools/interface.d.ts +26 -0
  30. package/dist/built-in/layout-component/components/ui/HDropdownMenu.vue.d.ts +2 -7
  31. package/dist/built-in/layout-component/components/ui/HSlideover.vue.d.ts +1 -1
  32. package/dist/built-in/layout-component/composables/useContext.d.ts +1 -1
  33. package/dist/built-in/layout-component/composables/useHotkey.d.ts +1 -5
  34. package/dist/built-in/layout-component/composables/useMainPage.d.ts +1 -1
  35. package/dist/built-in/layout-component/composables/useMenu.d.ts +1 -1
  36. package/dist/built-in/layout-component/composables/useTabbar.d.ts +1 -1
  37. package/dist/built-in/layout-component/composables/useTitle.d.ts +3 -2
  38. package/dist/built-in/layout-component/composables/useWatermark.d.ts +3 -1
  39. package/dist/built-in/layout-component/index.d.ts +9 -6
  40. package/dist/built-in/layout-component/utils/index.d.ts +0 -1
  41. package/dist/{colors-CODcBxrF.js → colors-VoaDbOhe.js} +1 -1
  42. package/dist/core/interface.d.ts +14 -5
  43. package/dist/core/request.d.ts +2 -8
  44. package/dist/features/api/modules/auth/renzhengfuwu.d.ts +8 -8
  45. package/dist/features/api/modules/configData/heibaimingdanfuwu.d.ts +5 -5
  46. package/dist/features/api/modules/configData/xitongpeizhifuwu.d.ts +14 -14
  47. package/dist/features/api/modules/configData/zidifuwu.d.ts +10 -10
  48. package/dist/features/api/modules/rbac/gangweijiekou.d.ts +6 -6
  49. package/dist/features/api/modules/rbac/jiaosejiekou.d.ts +7 -7
  50. package/dist/features/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +7 -7
  51. package/dist/features/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +9 -9
  52. package/dist/features/api/modules/rbac/yonghujiekou.d.ts +15 -15
  53. package/dist/features/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +5 -5
  54. package/dist/features/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +4 -4
  55. package/dist/features/api/modules/rbac/ziyuanjiekou.d.ts +13 -13
  56. package/dist/features/api/modules/rbac/zuhuguanlijiekou.d.ts +5 -5
  57. package/dist/features/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +4 -4
  58. package/dist/features/api/modules/rbac/zuzhijiekou.d.ts +9 -9
  59. package/dist/features/api/system/user.d.ts +4 -4
  60. package/dist/{index-RT-QBzm0.js → index-BSevJVD5.js} +10 -15
  61. package/dist/{index-BVLkBCRY.js → index-BfGqLWFB.js} +6418 -6439
  62. package/dist/{index-DQn1WFMa.js → index-CYoFRwvw.js} +2 -2
  63. package/dist/{index-DmcblkoZ.js → index-ConeY38N.js} +13 -13
  64. package/dist/{index-BAoB7aoj.js → index-DV3hkzKA.js} +1 -1
  65. package/dist/{index-D4_xmL_A.js → index-Ddw98rJ5.js} +25 -25
  66. package/dist/{index-DvJr0paY.js → index-DrC787X_.js} +2 -2
  67. package/dist/{index-BROqFYXS.js → index-Dv9ndBoi.js} +1 -1
  68. package/dist/{index-Jd3PYkpj.js → index-IAYhIBQH.js} +16815 -16694
  69. package/dist/index.d.ts +4 -2
  70. package/dist/index.js +53 -55
  71. package/dist/{pick-BLJM77QN.js → pick-vpv9EEvu.js} +1 -1
  72. package/dist/style.css +1 -1
  73. package/package.json +11 -11
  74. package/src/built-in/authentication/alova/helper.ts +158 -0
  75. package/src/built-in/authentication/alova/token.ts +122 -0
  76. package/src/built-in/authentication/helper.ts +7 -3
  77. package/src/built-in/authentication/index.ts +6 -20
  78. package/src/built-in/index.ts +0 -1
  79. package/src/built-in/layout-component/Layout.vue +11 -22
  80. package/src/built-in/layout-component/components/Header/TopMode/index.vue +4 -4
  81. package/src/built-in/layout-component/components/Menu/item.vue +3 -3
  82. package/src/built-in/layout-component/components/Sidebar/MainSidebar.vue +4 -4
  83. package/src/built-in/layout-component/components/Sidebar/index.vue +1 -1
  84. package/src/built-in/layout-component/components/Tools/DarkModeToggle.vue +108 -0
  85. package/src/built-in/layout-component/components/Tools/Fullscreen.vue +24 -0
  86. package/src/built-in/layout-component/components/Tools/PageReload.vue +22 -0
  87. package/src/built-in/layout-component/components/Tools/SearchBar.vue +42 -0
  88. package/src/built-in/layout-component/components/Tools/{Search.vue → SearchPanel.vue} +13 -21
  89. package/src/built-in/layout-component/components/Tools/index.vue +71 -142
  90. package/src/built-in/layout-component/components/Tools/interface.ts +27 -0
  91. package/src/built-in/layout-component/components/Topbar/Tabbar/MoreAction.vue +9 -12
  92. package/src/built-in/layout-component/components/Topbar/Tabbar/index.vue +12 -15
  93. package/src/built-in/layout-component/components/Topbar/Toolbar/Favorites.vue +4 -7
  94. package/src/built-in/layout-component/components/Topbar/Toolbar/index.vue +6 -6
  95. package/src/built-in/layout-component/components/ui/HDropdownMenu.vue +19 -26
  96. package/src/built-in/layout-component/composables/useContext.ts +1 -1
  97. package/src/built-in/layout-component/composables/useGetComputedStyle.ts +2 -3
  98. package/src/built-in/layout-component/composables/useHotkey.ts +6 -10
  99. package/src/built-in/layout-component/composables/useMainPage.ts +5 -6
  100. package/src/built-in/layout-component/composables/useMenu.ts +3 -5
  101. package/src/built-in/layout-component/composables/useTabbar.ts +3 -5
  102. package/src/built-in/layout-component/composables/useTitle.ts +10 -17
  103. package/src/built-in/layout-component/composables/useWatermark.ts +25 -12
  104. package/src/built-in/layout-component/index.ts +21 -12
  105. package/src/built-in/layout-component/provider.ts +7 -3
  106. package/src/built-in/layout-component/utils/index.ts +0 -1
  107. package/src/built-in/settings/router.ts +5 -1
  108. package/src/core/interface.ts +18 -5
  109. package/src/core/request.ts +35 -15
  110. package/src/features/router/systemRoutes.ts +0 -1
  111. package/src/features/stores/modules/favorites.ts +0 -1
  112. package/src/features/stores/modules/route.ts +2 -9
  113. package/src/features/stores/modules/tabbar.ts +0 -3
  114. package/src/features/stores/utils/routerHelper.ts +38 -4
  115. package/src/index.ts +7 -11
  116. package/types/vue-router.d.ts +0 -3
  117. package/dist/built-in/layout-component/utils/eventBus.d.ts +0 -5
  118. package/dist/built-in/locales/helpler.d.ts +0 -594
  119. package/dist/built-in/locales/index.d.ts +0 -5
  120. package/dist/built-in/locales/lang/en.json.d.ts +0 -99
  121. package/dist/built-in/locales/lang/zh-cn.json.d.ts +0 -100
  122. package/dist/built-in/locales/lang/zh-tw.json.d.ts +0 -100
  123. package/dist/built-in/locales/ui.d.ts +0 -3
  124. package/src/built-in/layout-component/components/Tools/DayNightSwitch.vue +0 -70
  125. package/src/built-in/layout-component/utils/eventBus.ts +0 -8
  126. package/src/built-in/locales/helpler.ts +0 -76
  127. package/src/built-in/locales/index.ts +0 -20
  128. package/src/built-in/locales/lang/en.json +0 -96
  129. package/src/built-in/locales/lang/zh-cn.json +0 -97
  130. package/src/built-in/locales/lang/zh-tw.json +0 -97
  131. package/src/built-in/locales/ui.ts +0 -3
  132. /package/dist/built-in/layout-component/components/Tools/{DayNightSwitch.vue.d.ts → DarkModeToggle.vue.d.ts} +0 -0
  133. /package/dist/built-in/layout-component/components/Tools/{Search.vue.d.ts → SearchPanel.vue.d.ts} +0 -0
package/dist/index.d.ts CHANGED
@@ -15,8 +15,10 @@ export interface PubinfoOptions extends Options {
15
15
  pure?: boolean;
16
16
  }
17
17
  export declare function createPubinfo(options: PubinfoOptions): () => Promise<import('./core').Context>;
18
- export { BackTop, Copyright, Layout, LayoutContent, LayoutHeader, LayoutProvider, Logo, Menu, RESPONSE_CODE, SettingBar, Sidebar, Tools, Topbar, } from './built-in';
19
- export { eventBus } from './built-in/layout-component/utils';
18
+ export { RESPONSE_CODE } from './built-in/authentication';
19
+ export { Copyright, Layout, LayoutContent, LayoutHeader, LayoutProvider, LayoutSidebar, LayoutTopbar, Logo, Tool, Tools, } from './built-in/layout-component';
20
+ export type { DropdownMenu, DropdownMenuRender } from './built-in/layout-component';
21
+ export { updateWatermark } from './built-in/layout-component/composables/useWatermark';
20
22
  export { createRequest, defineIconModule, defineRouteModule, getAllIconModules, getAllRouteModules, readProjectModules, } from './core';
21
23
  export * from './core/interface';
22
24
  export * from './features';
package/dist/index.js CHANGED
@@ -1,62 +1,60 @@
1
- import { bY as a, bZ as c, b_ as t, b$ as o, c0 as u, c1 as r, c2 as n, bJ as i, ck as b, cl as S, cm as d, bb as f, cn as l, bE as g, co as P, cy as p, c3 as y, c4 as R, c5 as A, c6 as E, c7 as M, cf as h, cg as v, ch as I, bX as m, cp as C, c9 as T, cz as x, ca as B, cb as L, cD as j, cB as w, c8 as O, cc as D, cd as H, cA as U, cE as W, cC as _, cq as k, ce as q, ci as F, cr as J, cx as K, cs as N, cF as Y, cG as z, cv as G, cH as V, cI as X, cJ as Z, u as $, cw as Q, ct as ee, a as se, bW as ae, b9 as ce, cu as te, bR as oe, cj as ue } from "./index-Jd3PYkpj.js";
1
+ import { bZ as a, b_ as c, b$ as o, c0 as t, c1 as u, c2 as r, c3 as n, c4 as i, cj as b, ck as d, cl as S, bb as l, cm as f, bE as g, cn as P, cx as y, bY as p, c5 as R, c6 as A, ce as E, cf as M, cg as h, bX as m, co as I, c8 as L, cy as v, c9 as C, ca as T, cC as x, cA as j, cb as w, cc as O, cz as W, cD as D, cB as H, cp as U, cd as _, ch as k, c7 as q, cq as B, cw as F, cr as K, cE as N, cF as Y, cu as z, cG as G, cH as V, cI as X, u as Z, cv as $, cs as J, a as Q, bW as ee, b9 as se, ct as ae, bM as ce, ci as oe } from "./index-IAYhIBQH.js";
2
2
  export {
3
- a as BackTop,
4
- c as Copyright,
5
- t as Layout,
3
+ a as Copyright,
4
+ c as Layout,
6
5
  o as LayoutContent,
7
- u as LayoutHeader,
8
- r as LayoutProvider,
9
- n as Logo,
10
- i as Menu,
6
+ t as LayoutHeader,
7
+ u as LayoutProvider,
8
+ r as LayoutSidebar,
9
+ n as LayoutTopbar,
10
+ i as Logo,
11
11
  b as NotAllowed,
12
- S as PageHeader,
13
- d as PageMain,
14
- f as PassStrengthValidator,
15
- l as PubinfoApp,
12
+ d as PageHeader,
13
+ S as PageMain,
14
+ l as PassStrengthValidator,
15
+ f as PubinfoApp,
16
16
  g as PubinfoIcon,
17
17
  P as PubinfoProvider,
18
- p as RESOURCE_TYPE,
19
- y as RESPONSE_CODE,
20
- R as SettingBar,
21
- A as Sidebar,
22
- E as Tools,
23
- M as Topbar,
24
- h as cleanup,
25
- v as cleanupWithoutUser,
26
- I as createContext,
18
+ y as RESOURCE_TYPE,
19
+ p as RESPONSE_CODE,
20
+ R as Tool,
21
+ A as Tools,
22
+ E as cleanup,
23
+ M as cleanupWithoutUser,
24
+ h as createContext,
27
25
  m as createPubinfo,
28
- C as createPubinfoProvider,
29
- T as createRequest,
30
- x as defineAsyncRoutes,
31
- B as defineIconModule,
32
- L as defineRouteModule,
33
- j as defineSettings,
34
- w as defineSystemRoutes,
35
- O as eventBus,
36
- D as getAllIconModules,
37
- H as getAllRouteModules,
38
- U as getAsyncRoutes,
39
- W as getSettings,
40
- _ as getSystemRoutes,
41
- k as pubinfoInjectionKey,
42
- q as readProjectModules,
43
- F as storage,
44
- J as useAuth,
45
- K as useBox,
46
- N as useError,
47
- Y as useFavoritesStore,
48
- z as useIframeStore,
49
- G as useInfo,
50
- V as useKeepAliveStore,
51
- X as useMenuStore,
52
- Z as useRouteStore,
53
- $ as useSettingsStore,
54
- Q as useStart,
55
- ee as useSuccess,
56
- se as useTabbarStore,
57
- ae as useTheme,
58
- ce as useUserStore,
59
- te as useWarn,
60
- oe as watchDiffObject,
61
- ue as wrapProxy
26
+ I as createPubinfoProvider,
27
+ L as createRequest,
28
+ v as defineAsyncRoutes,
29
+ C as defineIconModule,
30
+ T as defineRouteModule,
31
+ x as defineSettings,
32
+ j as defineSystemRoutes,
33
+ w as getAllIconModules,
34
+ O as getAllRouteModules,
35
+ W as getAsyncRoutes,
36
+ D as getSettings,
37
+ H as getSystemRoutes,
38
+ U as pubinfoInjectionKey,
39
+ _ as readProjectModules,
40
+ k as storage,
41
+ q as updateWatermark,
42
+ B as useAuth,
43
+ F as useBox,
44
+ K as useError,
45
+ N as useFavoritesStore,
46
+ Y as useIframeStore,
47
+ z as useInfo,
48
+ G as useKeepAliveStore,
49
+ V as useMenuStore,
50
+ X as useRouteStore,
51
+ Z as useSettingsStore,
52
+ $ as useStart,
53
+ J as useSuccess,
54
+ Q as useTabbarStore,
55
+ ee as useTheme,
56
+ se as useUserStore,
57
+ ae as useWarn,
58
+ ce as watchDiffObject,
59
+ oe as wrapProxy
62
60
  };
@@ -1,4 +1,4 @@
1
- import { bT as s, bU as t, bV as u } from "./index-Jd3PYkpj.js";
1
+ import { bO as s, bP as t, bQ as u } from "./index-IAYhIBQH.js";
2
2
  function i(n, a) {
3
3
  return s(n, a, function(e, r) {
4
4
  return t(n, r);