@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
@@ -1,9 +1,9 @@
1
1
  import { _ } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
2
- import { _ as p } from "./HToggle-DMcVgMVY.js";
3
- import { bG as u, bS as c } from "./index-Jd3PYkpj.js";
2
+ import { _ as p } from "./HToggle-DxdWLgp-.js";
3
+ import { bL as u, bN as c } from "./index-IAYhIBQH.js";
4
4
  import { defineComponent as f, toRef as b, createBlock as g, openBlock as v, withCtx as i, createElementVNode as n, createVNode as s, createTextVNode as V, unref as t } from "vue";
5
5
  import { R as S } from "./question-line-CfkciTFq.js";
6
- const x = { class: "setting-item" }, H = { class: "label" }, N = { class: "setting-item" }, $ = /* @__PURE__ */ f({
6
+ const x = { class: "setting-item" }, N = { class: "label" }, H = { class: "setting-item" }, U = /* @__PURE__ */ f({
7
7
  name: "SettingNavSearch",
8
8
  __name: "SettingNavSearch",
9
9
  setup(k) {
@@ -13,7 +13,7 @@ const x = { class: "setting-item" }, H = { class: "label" }, N = { class: "setti
13
13
  return v(), g(r, { title: "导航搜索" }, {
14
14
  default: i(() => [
15
15
  n("div", x, [
16
- n("div", H, [
16
+ n("div", N, [
17
17
  e[2] || (e[2] = V(" 是否启用 ")),
18
18
  s(d, { text: "对导航进行快捷搜索" }, {
19
19
  default: i(() => [
@@ -27,7 +27,7 @@ const x = { class: "setting-item" }, H = { class: "label" }, N = { class: "setti
27
27
  "onUpdate:modelValue": e[0] || (e[0] = (l) => t(o).enable = l)
28
28
  }, null, 8, ["modelValue"])
29
29
  ]),
30
- n("div", N, [
30
+ n("div", H, [
31
31
  e[3] || (e[3] = n("div", { class: "label" }, " 是否启用快捷键 ", -1)),
32
32
  s(a, {
33
33
  modelValue: t(o).enableHotkeys,
@@ -42,5 +42,5 @@ const x = { class: "setting-item" }, H = { class: "label" }, N = { class: "setti
42
42
  }
43
43
  });
44
44
  export {
45
- $ as default
45
+ U as default
46
46
  };
@@ -1,24 +1,24 @@
1
1
  import { _ as c } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
2
2
  import { _ as b } from "./HInput.vue_vue_type_script_setup_true_lang-DBqCXRnn.js";
3
- import { bG as x, bS as S } from "./index-Jd3PYkpj.js";
4
- import { _ as H } from "./HToggle-DMcVgMVY.js";
5
- import { defineComponent as R, toRefs as T, createBlock as U, openBlock as C, withCtx as s, createElementVNode as o, createVNode as t, unref as n, isRef as i, createTextVNode as p } from "vue";
3
+ import { bL as x, bN as S } from "./index-IAYhIBQH.js";
4
+ import { _ as H } from "./HToggle-DxdWLgp-.js";
5
+ import { defineComponent as N, toRefs as R, createBlock as T, openBlock as U, withCtx as s, createElementVNode as o, createVNode as t, unref as n, isRef as i, createTextVNode as p } from "vue";
6
6
  import { R as f } from "./question-line-CfkciTFq.js";
7
- const N = { class: "setting-item" }, P = { class: "setting-item" }, $ = { class: "label" }, k = { class: "setting-item" }, B = { class: "label" }, D = { class: "setting-item" }, O = { class: "label" }, q = /* @__PURE__ */ R({
7
+ const C = { class: "setting-item" }, P = { class: "setting-item" }, $ = { class: "label" }, k = { class: "setting-item" }, B = { class: "label" }, D = { class: "setting-item" }, L = { class: "label" }, z = /* @__PURE__ */ N({
8
8
  name: "SettingOther",
9
9
  __name: "SettingOther",
10
- setup(w) {
10
+ setup(O) {
11
11
  const { settingsStore: g } = x(), {
12
12
  enablePermission: a,
13
13
  enableProgress: m,
14
14
  enableDynamicTitle: d,
15
15
  storagePrefix: u
16
- } = T(g.settings.app);
17
- return (y, e) => {
16
+ } = R(g.settings.app);
17
+ return (w, e) => {
18
18
  const r = H, _ = S, V = b, v = c;
19
- return C(), U(v, { title: "其它" }, {
19
+ return U(), T(v, { title: "其它" }, {
20
20
  default: s(() => [
21
- o("div", N, [
21
+ o("div", C, [
22
22
  e[4] || (e[4] = o("div", { class: "label" }, " 是否启用权限 ", -1)),
23
23
  t(r, {
24
24
  modelValue: n(a),
@@ -56,7 +56,7 @@ const N = { class: "setting-item" }, P = { class: "setting-item" }, $ = { class:
56
56
  }, null, 8, ["modelValue"])
57
57
  ]),
58
58
  o("div", D, [
59
- o("div", O, [
59
+ o("div", L, [
60
60
  e[7] || (e[7] = p(" Storage 前缀 ")),
61
61
  t(_, { text: "localStorage 和 sessionStorage 的字段前缀" }, {
62
62
  default: s(() => [
@@ -77,5 +77,5 @@ const N = { class: "setting-item" }, P = { class: "setting-item" }, $ = { class:
77
77
  }
78
78
  });
79
79
  export {
80
- q as default
80
+ z as default
81
81
  };
@@ -1,7 +1,7 @@
1
1
  import { _ as l } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
2
- import { _ as r } from "./HToggle-DMcVgMVY.js";
2
+ import { _ as r } from "./HToggle-DxdWLgp-.js";
3
3
  import { defineComponent as _, toRef as p, createBlock as c, openBlock as d, withCtx as u, createElementVNode as o, createVNode as g, unref as n } from "vue";
4
- import { bG as f } from "./index-Jd3PYkpj.js";
4
+ import { bL as f } from "./index-IAYhIBQH.js";
5
5
  const V = { class: "setting-item" }, C = /* @__PURE__ */ _({
6
6
  name: "SettingPage",
7
7
  __name: "SettingPage",
@@ -1,8 +1,8 @@
1
1
  import { _ as k } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
2
- import { bG as w, bS as y } from "./index-Jd3PYkpj.js";
3
- import { markRaw as x, createElementBlock as p, openBlock as r, createElementVNode as o, defineComponent as v, computed as $, resolveComponent as C, createBlock as V, mergeProps as h, withCtx as u, toDisplayString as g, unref as t, createVNode as a, Fragment as H, renderList as S, normalizeClass as B, toRef as T, createTextVNode as M } from "vue";
4
- import { _ as U } from "./HCheckList.vue_vue_type_script_setup_true_lang-DusVz35O.js";
5
- import { _ as L } from "./HToggle-DMcVgMVY.js";
2
+ import { bL as w, bN as y } from "./index-IAYhIBQH.js";
3
+ import { markRaw as x, createElementBlock as p, openBlock as r, createElementVNode as o, defineComponent as v, computed as $, resolveComponent as C, createBlock as V, mergeProps as h, withCtx as u, toDisplayString as g, unref as t, createVNode as a, Fragment as H, renderList as B, normalizeClass as S, toRef as T, createTextVNode as M } from "vue";
4
+ import { _ as U } from "./HCheckList.vue_vue_type_script_setup_true_lang-BdLpkcoh.js";
5
+ import { _ as L } from "./HToggle-DxdWLgp-.js";
6
6
  import { R as N } from "./question-line-CfkciTFq.js";
7
7
  const R = {
8
8
  viewBox: "0 0 32 32",
@@ -17,7 +17,7 @@ function z(m, i) {
17
17
  }, null, -1)
18
18
  ]));
19
19
  }
20
- const D = x({ name: "carbon-chevron-sort-down", render: z }), E = { class: "w-full inline-flex" }, I = ["disabled"], q = { class: "block truncate" }, F = { class: "pointer-events-none absolute end-0 inset-y-0 flex items-center pe-2.5" }, G = { class: "max-h-60 w-full scroll-py-1 overflow-y-auto p-1 lg:w-48 focus:outline-none" }, P = ["disabled", "onClick"], Q = /* @__PURE__ */ v({
20
+ const D = x({ name: "carbon-chevron-sort-down", render: z }), E = { class: "w-full inline-flex" }, I = ["disabled"], q = { class: "block truncate" }, F = { class: "pointer-events-none absolute end-0 inset-y-0 flex items-center pe-2.5" }, P = { class: "max-h-60 w-full scroll-py-1 overflow-y-auto p-1 lg:w-48 focus:outline-none" }, Q = ["disabled", "onClick"], j = /* @__PURE__ */ v({
21
21
  __name: "HSelect",
22
22
  props: {
23
23
  modelValue: {},
@@ -43,13 +43,13 @@ const D = x({ name: "carbon-chevron-sort-down", render: z }), E = { class: "w-fu
43
43
  disabled: s.disabled
44
44
  }, s.$attrs), {
45
45
  popper: u(() => [
46
- o("div", G, [
47
- (r(!0), p(H, null, S(s.options, (d) => (r(), p("button", {
46
+ o("div", P, [
47
+ (r(!0), p(H, null, B(s.options, (d) => (r(), p("button", {
48
48
  key: d.value,
49
49
  disabled: d.disabled,
50
- class: B(["w-full cursor-pointer truncate border-size-0 rounded-md bg-inherit px-2 py-1.5 text-left text-sm disabled:cursor-not-allowed hover:not-disabled:bg-stone-1 dark:hover:not-disabled:bg-stone-9", { "font-bold": s.modelValue === d.value }]),
50
+ class: S(["w-full cursor-pointer truncate border-size-0 rounded-md bg-inherit px-2 py-1.5 text-left text-sm disabled:cursor-not-allowed hover:not-disabled:bg-stone-1 dark:hover:not-disabled:bg-stone-9", { "font-bold": s.modelValue === d.value }]),
51
51
  onClick: (_) => e.value = d
52
- }, g(d.label), 11, P))), 128))
52
+ }, g(d.label), 11, Q))), 128))
53
53
  ])
54
54
  ]),
55
55
  default: u(() => [
@@ -69,23 +69,23 @@ const D = x({ name: "carbon-chevron-sort-down", render: z }), E = { class: "w-fu
69
69
  }, 16, ["disabled"]);
70
70
  };
71
71
  }
72
- }), j = { class: "setting-item" }, A = { class: "setting-item" }, J = { class: "setting-item" }, K = { class: "setting-item" }, O = { class: "setting-item" }, W = { class: "label" }, X = { class: "setting-item" }, se = /* @__PURE__ */ v({
72
+ }), A = { class: "setting-item" }, G = { class: "setting-item" }, J = { class: "setting-item" }, K = { class: "setting-item" }, O = { class: "setting-item" }, W = { class: "label" }, X = { class: "setting-item" }, se = /* @__PURE__ */ v({
73
73
  name: "SettingTabbar",
74
74
  __name: "SettingTabbar",
75
75
  setup(m) {
76
76
  const { settingsStore: i } = w(), l = T(i.settings, "tabbar");
77
77
  return (c, e) => {
78
- const s = L, f = U, b = Q, d = y, _ = k;
78
+ const s = L, f = U, b = j, d = y, _ = k;
79
79
  return r(), V(_, { title: "标签栏" }, {
80
80
  default: u(() => [
81
- o("div", j, [
81
+ o("div", A, [
82
82
  e[6] || (e[6] = o("div", { class: "label" }, " 是否启用 ", -1)),
83
83
  a(s, {
84
84
  modelValue: t(l).enable,
85
85
  "onUpdate:modelValue": e[0] || (e[0] = (n) => t(l).enable = n)
86
86
  }, null, 8, ["modelValue"])
87
87
  ]),
88
- o("div", A, [
88
+ o("div", G, [
89
89
  e[7] || (e[7] = o("div", { class: "label" }, " 风格 ", -1)),
90
90
  a(f, {
91
91
  modelValue: t(l).style,
@@ -1,7 +1,7 @@
1
1
  import { _ as T } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
2
- import { markRaw as g, createElementBlock as r, openBlock as n, createElementVNode as s, defineComponent as k, useModel as V, withDirectives as $, createStaticVNode as S, vModelCheckbox as w, toRef as D, computed as B, createBlock as N, withCtx as j, createVNode as u, unref as o, isRef as L, Fragment as b, renderList as _, normalizeClass as M, normalizeStyle as h, toDisplayString as z } from "vue";
2
+ import { markRaw as g, createElementBlock as r, openBlock as n, createElementVNode as s, defineComponent as k, useModel as V, withDirectives as $, createStaticVNode as S, vModelCheckbox as w, toRef as D, computed as B, createBlock as L, withCtx as N, createVNode as u, unref as o, isRef as j, Fragment as b, renderList as _, normalizeClass as M, normalizeStyle as h, toDisplayString as z } from "vue";
3
3
  import { getThemes as F } from "@pubinfo/config/themes";
4
- import { b as x, bW as R, bG as W } from "./index-Jd3PYkpj.js";
4
+ import { b as x, bW as R, bL as W } from "./index-IAYhIBQH.js";
5
5
  const A = {
6
6
  viewBox: "-5 -2 24 24",
7
7
  width: "1.2em",
@@ -30,11 +30,11 @@ function U(f, e) {
30
30
  }, null, -1)
31
31
  ]));
32
32
  }
33
- const G = g({ name: "pajamas-check-circle-filled", render: U }), J = {
33
+ const J = g({ name: "pajamas-check-circle-filled", render: U }), O = {
34
34
  flex: "",
35
35
  "justify-center": "",
36
36
  "pb-15px": ""
37
- }, O = { class: "toggleWrapper" }, P = /* @__PURE__ */ k({
37
+ }, P = { class: "toggleWrapper" }, q = /* @__PURE__ */ k({
38
38
  name: "DayNightToggle",
39
39
  __name: "DayNightToggle",
40
40
  props: {
@@ -44,8 +44,8 @@ const G = g({ name: "pajamas-check-circle-filled", render: U }), J = {
44
44
  emits: ["update:modelValue"],
45
45
  setup(f) {
46
46
  const e = V(f, "modelValue");
47
- return (v, l) => (n(), r("div", J, [
48
- s("div", O, [
47
+ return (v, l) => (n(), r("div", O, [
48
+ s("div", P, [
49
49
  $(s("input", {
50
50
  id: "dn",
51
51
  "onUpdate:modelValue": l[0] || (l[0] = (p) => e.value = p),
@@ -58,7 +58,7 @@ const G = g({ name: "pajamas-check-circle-filled", render: U }), J = {
58
58
  ])
59
59
  ]));
60
60
  }
61
- }), q = /* @__PURE__ */ x(P, [["__scopeId", "data-v-5b2fff8a"]]), K = { class: "themes" }, Q = ["onClick"], X = {
61
+ }), G = /* @__PURE__ */ x(q, [["__scopeId", "data-v-5b2fff8a"]]), K = { class: "themes" }, Q = ["onClick"], X = {
62
62
  class: "theme-type",
63
63
  flex: "",
64
64
  "items-center": ""
@@ -93,12 +93,12 @@ const G = g({ name: "pajamas-check-circle-filled", render: U }), J = {
93
93
  }
94
94
  return (c, t) => {
95
95
  const i = T;
96
- return n(), N(i, { title: "颜色主题风格" }, {
97
- default: j(() => [
96
+ return n(), L(i, { title: "颜色主题风格" }, {
97
+ default: N(() => [
98
98
  s("div", null, [
99
- u(q, {
99
+ u(G, {
100
100
  modelValue: o(e),
101
- "onUpdate:modelValue": t[0] || (t[0] = (a) => L(e) ? e.value = a : null)
101
+ "onUpdate:modelValue": t[0] || (t[0] = (a) => j(e) ? e.value = a : null)
102
102
  }, null, 8, ["modelValue"])
103
103
  ]),
104
104
  s("div", K, [
@@ -127,7 +127,7 @@ const G = g({ name: "pajamas-check-circle-filled", render: U }), J = {
127
127
  }, null, 4))), 128))
128
128
  ]),
129
129
  s("div", Z, [
130
- u(o(G))
130
+ u(o(J))
131
131
  ])
132
132
  ], 10, Q))), 128))
133
133
  ])
@@ -1,12 +1,12 @@
1
1
  import { _ as b } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
2
- import { _ as V } from "./HToggle-DMcVgMVY.js";
3
- import { bG as f, bS as g } from "./index-Jd3PYkpj.js";
4
- import { defineComponent as v, toRef as c, createBlock as x, openBlock as _, withCtx as i, createElementVNode as s, createElementBlock as C, createCommentVNode as N, createVNode as o, createTextVNode as m, unref as t } from "vue";
2
+ import { _ as V } from "./HToggle-DxdWLgp-.js";
3
+ import { bL as f, bN as g } from "./index-IAYhIBQH.js";
4
+ import { defineComponent as v, toRef as c, createBlock as x, openBlock as _, withCtx as i, createElementVNode as s, createElementBlock as N, createCommentVNode as C, createVNode as o, createTextVNode as m, unref as t } from "vue";
5
5
  import { R as u } from "./question-line-CfkciTFq.js";
6
- const S = { class: "setting-item" }, R = { class: "label" }, T = { class: "setting-item" }, U = {
6
+ const R = { class: "setting-item" }, S = { class: "label" }, T = { class: "setting-item" }, U = {
7
7
  key: 0,
8
8
  class: "setting-item"
9
- }, k = { class: "setting-item" }, B = { class: "label" }, H = { class: "setting-item" }, E = { class: "label" }, G = /* @__PURE__ */ v({
9
+ }, k = { class: "setting-item" }, B = { class: "label" }, H = { class: "setting-item" }, E = { class: "label" }, D = /* @__PURE__ */ v({
10
10
  name: "SettingToolbar",
11
11
  __name: "SettingToolbar",
12
12
  setup(F) {
@@ -15,8 +15,8 @@ const S = { class: "setting-item" }, R = { class: "label" }, T = { class: "setti
15
15
  const d = g, a = V, p = b;
16
16
  return _(), x(p, { title: "工具栏" }, {
17
17
  default: i(() => [
18
- s("div", S, [
19
- s("div", R, [
18
+ s("div", R, [
19
+ s("div", S, [
20
20
  e[5] || (e[5] = m(" 通知中心 ")),
21
21
  o(d, { text: "该功能具体业务功能需自行开发,框架仅提供示例模版" }, {
22
22
  default: i(() => [
@@ -37,13 +37,13 @@ const S = { class: "setting-item" }, R = { class: "label" }, T = { class: "setti
37
37
  "onUpdate:modelValue": e[1] || (e[1] = (n) => t(l).enableI18n = n)
38
38
  }, null, 8, ["modelValue"])
39
39
  ]),
40
- t(r).mode === "pc" ? (_(), C("div", U, [
40
+ t(r).mode === "pc" ? (_(), N("div", U, [
41
41
  e[7] || (e[7] = s("div", { class: "label" }, " 全屏 ", -1)),
42
42
  o(a, {
43
43
  modelValue: t(l).enableFullscreen,
44
44
  "onUpdate:modelValue": e[2] || (e[2] = (n) => t(l).enableFullscreen = n)
45
45
  }, null, 8, ["modelValue"])
46
- ])) : N("", !0),
46
+ ])) : C("", !0),
47
47
  s("div", k, [
48
48
  s("div", B, [
49
49
  e[8] || (e[8] = m(" 页面刷新 ")),
@@ -81,5 +81,5 @@ const S = { class: "setting-item" }, R = { class: "label" }, T = { class: "setti
81
81
  }
82
82
  });
83
83
  export {
84
- G as default
84
+ D as default
85
85
  };
@@ -1,13 +1,13 @@
1
1
  import { _ as u } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
2
- import { _ as b } from "./HToggle-DMcVgMVY.js";
3
- import { bG as c, bS as f } from "./index-Jd3PYkpj.js";
4
- import { _ as g } from "./HCheckList.vue_vue_type_script_setup_true_lang-DusVz35O.js";
2
+ import { _ as b } from "./HToggle-DxdWLgp-.js";
3
+ import { bL as c, bN as f } from "./index-IAYhIBQH.js";
4
+ import { _ as g } from "./HCheckList.vue_vue_type_script_setup_true_lang-BdLpkcoh.js";
5
5
  import { defineComponent as T, toRefs as V, createBlock as v, openBlock as x, withCtx as l, createElementVNode as n, createVNode as s, unref as t, createTextVNode as k } from "vue";
6
6
  import { R as C } from "./question-line-CfkciTFq.js";
7
- const H = { class: "setting-item" }, S = { class: "setting-item" }, w = { class: "label" }, D = /* @__PURE__ */ T({
7
+ const H = { class: "setting-item" }, N = { class: "setting-item" }, w = { class: "label" }, D = /* @__PURE__ */ T({
8
8
  name: "SettingTopbar",
9
9
  __name: "SettingTopbar",
10
- setup(N) {
10
+ setup(L) {
11
11
  const { settingsStore: i } = c(), { topbar: o, tabbar: m } = V(i.settings);
12
12
  return (R, e) => {
13
13
  const r = g, d = f, _ = b, p = u;
@@ -25,7 +25,7 @@ const H = { class: "setting-item" }, S = { class: "setting-item" }, w = { class:
25
25
  ]
26
26
  }, null, 8, ["modelValue"])
27
27
  ]),
28
- n("div", S, [
28
+ n("div", N, [
29
29
  n("div", w, [
30
30
  e[3] || (e[3] = k(" 展示切换 ")),
31
31
  s(d, { text: "切换标签栏和工具栏的展示顺序" }, {
@@ -1,11 +1,11 @@
1
1
  import { _ as v } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
2
- import { bG as u, bS as b, b as k } from "./index-Jd3PYkpj.js";
2
+ import { bL as u, bN as b, b as k } from "./index-IAYhIBQH.js";
3
3
  import { defineComponent as w, toRef as x, reactive as g, createBlock as o, openBlock as t, withCtx as n, createElementVNode as s, createElementBlock as d, Fragment as r, renderList as C, unref as c, normalizeClass as M, createCommentVNode as E, createVNode as l } from "vue";
4
- import { E as S, a as y } from "./right-Bfe2p1o0.js";
5
- const B = { class: "app-width-mode" }, H = ["onClick"], N = /* @__PURE__ */ w({
4
+ import { E as y, a as B } from "./right-Bfe2p1o0.js";
5
+ const N = { class: "app-width-mode" }, S = ["onClick"], H = /* @__PURE__ */ w({
6
6
  name: "SettingWidthMode",
7
7
  __name: "SettingWidthMode",
8
- setup(V) {
8
+ setup(L) {
9
9
  const { settingsStore: m } = u(), i = x(m.settings.layout, "widthMode"), _ = g([
10
10
  {
11
11
  describe: "自适应",
@@ -31,11 +31,11 @@ const B = { class: "app-width-mode" }, H = ["onClick"], N = /* @__PURE__ */ w({
31
31
  function p(a) {
32
32
  a && (i.value = a);
33
33
  }
34
- return (a, W) => {
34
+ return (a, V) => {
35
35
  const f = b, h = v;
36
36
  return t(), o(h, { title: "页宽模式" }, {
37
37
  default: n(() => [
38
- s("div", B, [
38
+ s("div", N, [
39
39
  (t(!0), d(r, null, C(c(_), (e) => (t(), o(f, {
40
40
  key: e.active,
41
41
  text: e.describe,
@@ -45,13 +45,13 @@ const B = { class: "app-width-mode" }, H = ["onClick"], N = /* @__PURE__ */ w({
45
45
  default: n(() => [
46
46
  s("div", {
47
47
  class: M(["mode", [e.class, c(i) === e.active ? "active" : ""]]),
48
- onClick: ($) => p(e.active)
48
+ onClick: (W) => p(e.active)
49
49
  }, [
50
50
  e.active !== "center" ? (t(), d(r, { key: 0 }, [
51
- l(c(S), { class: "left" }),
52
- l(c(y), { class: "right" })
51
+ l(c(y), { class: "left" }),
52
+ l(c(B), { class: "right" })
53
53
  ], 64)) : E("", !0)
54
- ], 10, H)
54
+ ], 10, S)
55
55
  ]),
56
56
  _: 2
57
57
  }, 1032, ["text"]))), 128))
@@ -61,7 +61,7 @@ const B = { class: "app-width-mode" }, H = ["onClick"], N = /* @__PURE__ */ w({
61
61
  });
62
62
  };
63
63
  }
64
- }), F = /* @__PURE__ */ k(N, [["__scopeId", "data-v-c424e7f2"]]);
64
+ }), F = /* @__PURE__ */ k(H, [["__scopeId", "data-v-c424e7f2"]]);
65
65
  export {
66
66
  F as default
67
67
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as a, ref as l, createElementBlock as m, openBlock as i, withModifiers as c, createVNode as d, normalizeClass as f, unref as e } from "vue";
2
- import { bG as p, bJ as _ } from "./index-Jd3PYkpj.js";
2
+ import { bL as p, bT as _ } from "./index-IAYhIBQH.js";
3
3
  import { useRoute as h } from "vue-router";
4
- const R = /* @__PURE__ */ a({
4
+ const y = /* @__PURE__ */ a({
5
5
  name: "TopThinMode",
6
6
  __name: "TopThinMode",
7
7
  setup(v) {
@@ -31,5 +31,5 @@ const R = /* @__PURE__ */ a({
31
31
  }
32
32
  });
33
33
  export {
34
- R as default
34
+ y as default
35
35
  };
@@ -0,0 +1,34 @@
1
+ import { AlovaRequestAdapter, Method, RespondedHandler, ResponseCompleteHandler, ResponseErrorHandler, StatesHook } from 'alova';
2
+ import { AlovaResponded, MetaMatches, ResponseAuthorizationInterceptor, StateHookAdapter2AG } from 'alova/client';
3
+ export type PosibbleAuthMap = {
4
+ metaMatches?: MetaMatches;
5
+ handler: any;
6
+ } | undefined;
7
+ export type WaitingRequestList = {
8
+ method: Method;
9
+ resolve: () => void;
10
+ }[];
11
+ export declare const defaultVisitorMeta: {
12
+ authRole: null;
13
+ };
14
+ export declare const defaultLoginMeta: {
15
+ authRole: string;
16
+ };
17
+ export declare const defaultLogoutMeta: {
18
+ authRole: string;
19
+ };
20
+ export declare const defaultRefreshTokenMeta: {
21
+ authRole: string;
22
+ };
23
+ export declare function checkMethodRole({ meta }: Method, metaMatches: MetaMatches): boolean;
24
+ export declare function waitForTokenRefreshed(method: Method, waitingList: WaitingRequestList): Promise<unknown>;
25
+ export declare function callHandlerIfMatchesMeta(method: Method, authorizationInterceptor: ResponseAuthorizationInterceptor<AlovaRequestAdapter<any, any, any>> | undefined, defaultMeta: MetaMatches, response: any): void | Promise<void>;
26
+ export declare function refreshTokenIfExpired(method: Method, waitingList: WaitingRequestList, updateRefreshStatus: (status: boolean) => void, handlerParams: any[], refreshToken?: {
27
+ isExpired: (...args: any[]) => boolean | Promise<boolean>;
28
+ handler: (...args: any[]) => Promise<void>;
29
+ }, tokenRefreshing?: boolean): Promise<any>;
30
+ export declare function onResponded2Record<SH extends StatesHook<any>, RA extends AlovaRequestAdapter<any, any, any>>(onRespondedHandlers?: AlovaResponded<SH, RA>): {
31
+ onSuccess: RespondedHandler<StateHookAdapter2AG<SH, RA>> | undefined;
32
+ onError: ResponseErrorHandler<StateHookAdapter2AG<SH, RA>> | undefined;
33
+ onComplete: ResponseCompleteHandler<StateHookAdapter2AG<SH, RA>> | undefined;
34
+ };
@@ -0,0 +1,16 @@
1
+ import { AlovaRequestAdapter, Method, StatesHook } from 'alova';
2
+ import { AlovaRequestAdapterUnified, BeforeRequestType, ServerTokenAuthenticationOptions } from 'alova/client';
3
+ import { FetchRequestAdapter } from 'alova/fetch';
4
+ import { WaitingRequestList } from './helper';
5
+ /**
6
+ * Create a server-side token authentication interceptor
7
+ * @returns token authentication interceptor function
8
+ */
9
+ export declare function createServerTokenAuthentication<SH extends StatesHook<any>, RA extends AlovaRequestAdapter<any, any, any> | ((...args: any[]) => AlovaRequestAdapter<any, any, any>) = FetchRequestAdapter>({ visitorMeta, login, logout, refreshTokenOnSuccess, refreshTokenOnError, assignToken, }: ServerTokenAuthenticationOptions<AlovaRequestAdapterUnified<RA>>): {
10
+ waitingList: WaitingRequestList;
11
+ onAuthRequired: BeforeRequestType<SH, AlovaRequestAdapterUnified<RA>>;
12
+ onResponseRefreshToken: () => {
13
+ onSuccess: (response: any, method: Method, stop: any) => Promise<any>;
14
+ onError: (error: any, method: Method) => Promise<any>;
15
+ };
16
+ };
@@ -1 +1,10 @@
1
- export declare function createTokenAuthentication(): import('alova/client').TokenAuthenticationResult<import('alova/vue').VueHookType, import('@alova/adapter-axios').AxiosRequestAdapter>;
1
+ import { AxiosRequestAdapter } from '@alova/adapter-axios';
2
+ import { AlovaRequestAdapterUnified, ServerTokenAuthenticationOptions } from 'alova/client';
3
+ export declare function createTokenAuthentication(options?: ServerTokenAuthenticationOptions<AlovaRequestAdapterUnified<AxiosRequestAdapter>>): {
4
+ waitingList: import('./alova/helper').WaitingRequestList;
5
+ onAuthRequired: import('alova/client').BeforeRequestType<import('alova/vue').VueHookType, AxiosRequestAdapter>;
6
+ onResponseRefreshToken: () => {
7
+ onSuccess: (response: any, method: import('alova').Method, stop: any) => Promise<any>;
8
+ onError: (error: any, method: import('alova').Method) => Promise<any>;
9
+ };
10
+ };
@@ -1,7 +1,6 @@
1
1
  export * from './authentication';
2
2
  export * from './authorization';
3
3
  export * from './layout-component';
4
- export * from './locales';
5
4
  export * from './n-progress';
6
5
  export * from './pinia-plugin';
7
6
  export * from './pre-access';
@@ -2,6 +2,7 @@ declare function __VLS_template(): {
2
2
  attrs: Partial<{}>;
3
3
  slots: {
4
4
  header?(_: {}): any;
5
+ sidebar?(_: {}): any;
5
6
  topbar?(_: {}): any;
6
7
  default?(_: {}): any;
7
8
  footer?(_: {}): any;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -1,4 +1,44 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
1
+ import { DropdownMenuRender } from './interface';
2
+ type __VLS_Props = {
3
+ dropdownMenuRender?: DropdownMenuRender;
4
+ };
5
+ declare function __VLS_template(): {
6
+ attrs: Partial<{}>;
7
+ slots: {
8
+ default?(_: {}): any;
9
+ };
10
+ refs: {
11
+ hotkeysIntroRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
12
+ open: () => boolean;
13
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
14
+ P: {};
15
+ B: {};
16
+ D: {};
17
+ C: {};
18
+ M: {};
19
+ Defaults: {};
20
+ }, Readonly<{}> & Readonly<{}>, {
21
+ open: () => boolean;
22
+ }, {}, {}, {}, {}> | null;
23
+ preferencesRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
24
+ open: () => boolean;
25
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
26
+ P: {};
27
+ B: {};
28
+ D: {};
29
+ C: {};
30
+ M: {};
31
+ Defaults: {};
32
+ }, Readonly<{}> & Readonly<{}>, {
33
+ open: () => boolean;
34
+ }, {}, {}, {}, {}> | null;
35
+ };
36
+ rootEl: HTMLDivElement;
37
+ };
38
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
39
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
40
+ dropdownMenuRender: DropdownMenuRender;
41
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
2
42
  hotkeysIntroRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
3
43
  open: () => boolean;
4
44
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
@@ -24,4 +64,10 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
24
64
  open: () => boolean;
25
65
  }, {}, {}, {}, {}> | null;
26
66
  }, HTMLDivElement>;
67
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
68
  export default _default;
69
+ type __VLS_WithTemplateSlots<T, S> = T & {
70
+ new (): {
71
+ $slots: S;
72
+ };
73
+ };
@@ -0,0 +1,26 @@
1
+ export interface DropdownMenu {
2
+ key?: string | 'divider';
3
+ icon?: string;
4
+ label?: string;
5
+ disabled?: boolean;
6
+ hide?: boolean;
7
+ onClick?: () => void;
8
+ }
9
+ export type DropdownMenuRender = (items: {
10
+ /** 主页 */
11
+ Home: DropdownMenu;
12
+ /** 个人偏好设置 */
13
+ Preferences: DropdownMenu;
14
+ /** 快捷键介绍 */
15
+ Hotkeys: DropdownMenu;
16
+ /** 切换组织 */
17
+ Org: DropdownMenu;
18
+ /** 个人中心 */
19
+ Profile: DropdownMenu;
20
+ /** 修改密码 */
21
+ Password: DropdownMenu;
22
+ /** 登出 */
23
+ Logout: DropdownMenu;
24
+ /** 分割线 */
25
+ Divider: DropdownMenu;
26
+ }) => DropdownMenu[];
@@ -1,11 +1,6 @@
1
+ import { DropdownMenu } from '../Tools/interface';
1
2
  type __VLS_Props = {
2
- items: {
3
- icon?: string;
4
- label: string;
5
- disabled?: boolean;
6
- hide?: boolean;
7
- handle?: () => void;
8
- }[][];
3
+ items: DropdownMenu[];
9
4
  };
10
5
  declare function __VLS_template(): {
11
6
  attrs: Partial<{}>;
@@ -26,8 +26,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
26
26
  onClose?: (() => any) | undefined;
27
27
  "onUpdate:modelValue"?: ((args_0: boolean) => any) | undefined;
28
28
  }>, {
29
- side: "left" | "right";
30
29
  modelValue: boolean;
30
+ side: "left" | "right";
31
31
  appear: boolean;
32
32
  preventClose: boolean;
33
33
  overlay: boolean;
@@ -10,7 +10,7 @@ interface LayoutContext {
10
10
  favoritesStore: ReturnType<typeof useFavoritesStore>;
11
11
  appTitle: string;
12
12
  isDev: boolean;
13
- generateI18nTitle: any;
13
+ generateTitle: (titile?: string | (() => any)) => string;
14
14
  }
15
15
  export declare function createContext(options: LayoutContext): void;
16
16
  export declare function useContext(): any;
@@ -1,5 +1 @@
1
- import { useMenuStore, useSettingsStore } from '../../../features/stores';
2
- export declare function useHotkey({ menuStore, settingsStore, }: {
3
- menuStore: ReturnType<typeof useMenuStore>;
4
- settingsStore: ReturnType<typeof useSettingsStore>;
5
- }): void;
1
+ export declare function useHotkey(): void;
@@ -6,7 +6,7 @@
6
6
  * - resetCustomTitle: 重置当前页面的自定义标题。
7
7
  * - maximize: 设置主页面的最大化状态。
8
8
  */
9
- export default function useMainPage(): {
9
+ export declare function useMainPage(): {
10
10
  reload: () => void;
11
11
  setCustomTitle: (title: string) => void;
12
12
  resetCustomTitle: () => void;