@pubinfo/core 2.0.0-rc.3 → 2.0.0-rc.5
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.
- package/dist/{AppSetting-3wJKvibc.js → AppSetting-DqVYDIHj.js} +15 -15
- package/dist/{HCheckList.vue_vue_type_script_setup_true_lang-17EywJvs.js → HCheckList.vue_vue_type_script_setup_true_lang-SrNklW3P.js} +1 -1
- package/dist/{HToggle-B-ZjSh6S.js → HToggle-DGTP9jYA.js} +1 -1
- package/dist/{PreferencesContent-xT4paU7N.js → PreferencesContent-5NtwK9RQ.js} +4 -4
- package/dist/{SettingBreadcrumb-CYnO51Ek.js → SettingBreadcrumb-BudqQsuJ.js} +3 -3
- package/dist/{SettingCopyright-FOW5ObHK.js → SettingCopyright-VUberG4R.js} +2 -2
- package/dist/{SettingEnableTransition-Q5cvubmF.js → SettingEnableTransition-C6NYf021.js} +2 -2
- package/dist/SettingHome-BTaeKgwN.js +46 -0
- package/dist/{SettingMenu-BNAJ3el9.js → SettingMenu-D9Aon2LP.js} +3 -3
- package/dist/{SettingMode-LzlRsBL9.js → SettingMode-DaqVd9Mq.js} +1 -1
- package/dist/{SettingNavSearch-BA08vYuw.js → SettingNavSearch-N4JIheIk.js} +2 -2
- package/dist/{SettingOther-BE8dDCYD.js → SettingOther-tLulcors.js} +2 -2
- package/dist/{SettingPage-D061yXCv.js → SettingPage-CEjWB45R.js} +2 -2
- package/dist/{SettingTabbar-COwdPPKy.js → SettingTabbar-DyeLhcCT.js} +3 -3
- package/dist/{SettingThemes-BHaYERNp.js → SettingThemes-C2M3tsVl.js} +1 -1
- package/dist/{SettingToolbar-fSuzu6ND.js → SettingToolbar-DI7de6i0.js} +24 -31
- package/dist/{SettingTopbar-D7GgP0KB.js → SettingTopbar-BgIoXeAq.js} +3 -3
- package/dist/{SettingWidthMode-CNjzChe1.js → SettingWidthMode-DIAU4s5e.js} +1 -1
- package/dist/{TopThinMode-B-28sBJD.js → TopThinMode-JNUHrJI2.js} +1 -1
- package/dist/built-in/authentication/alova/helper.d.ts +34 -0
- package/dist/built-in/authentication/alova/token.d.ts +16 -0
- package/dist/built-in/authentication/helper.d.ts +10 -1
- package/dist/built-in/index.d.ts +1 -1
- package/dist/built-in/layout-component/components/Tools/SearchPanel.vue.d.ts +7 -2
- package/dist/built-in/layout-component/components/ui/HSlideover.vue.d.ts +1 -1
- package/dist/built-in/layout-component/composables/useContext.d.ts +1 -1
- package/dist/built-in/layout-component/composables/useGlobalSearch.d.ts +7 -0
- package/dist/built-in/layout-component/composables/useTitle.d.ts +1 -1
- package/dist/built-in/system-info/components/SystemInfo.vue.d.ts +2 -0
- package/dist/built-in/system-info/index.d.ts +5 -0
- package/dist/{colors-BIQSd520.js → colors-DxWfHM_v.js} +1 -1
- package/dist/core/interface.d.ts +14 -5
- package/dist/core/request.d.ts +2 -8
- package/dist/features/api/modules/auth/renzhengfuwu.d.ts +8 -8
- package/dist/features/api/modules/configData/heibaimingdanfuwu.d.ts +5 -5
- package/dist/features/api/modules/configData/xitongpeizhifuwu.d.ts +14 -14
- package/dist/features/api/modules/configData/zidifuwu.d.ts +10 -10
- package/dist/features/api/modules/rbac/gangweijiekou.d.ts +6 -6
- package/dist/features/api/modules/rbac/jiaosejiekou.d.ts +7 -7
- package/dist/features/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +7 -7
- package/dist/features/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +9 -9
- package/dist/features/api/modules/rbac/yonghujiekou.d.ts +15 -15
- package/dist/features/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +5 -5
- package/dist/features/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +4 -4
- package/dist/features/api/modules/rbac/ziyuanjiekou.d.ts +13 -13
- package/dist/features/api/modules/rbac/zuhuguanlijiekou.d.ts +5 -5
- package/dist/features/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +4 -4
- package/dist/features/api/modules/rbac/zuzhijiekou.d.ts +9 -9
- package/dist/features/api/system/user.d.ts +4 -4
- package/dist/features/components/PubinfoIcon/PrismBox.vue.d.ts +21 -0
- package/dist/features/components/PubinfoIcon/SquareBox.vue.d.ts +17 -0
- package/dist/features/components/PubinfoIcon/index.vue.d.ts +13 -9
- package/dist/features/components/PubinfoIcon/props.d.ts +58 -0
- package/dist/features/components/index.d.ts +2 -0
- package/dist/{index-Dlf6GQBd.js → index-5fRpGyLW.js} +4 -4
- package/dist/{index-DNdH93AP.js → index-BFRIv97x.js} +2 -2
- package/dist/{index-WubcSL0v.js → index-BH-vHGvk.js} +1 -1
- package/dist/{index-YSjb6X1D.js → index-C7xIGcDc.js} +4 -7
- package/dist/{index-DYMBkmAp.js → index-CNVn3Ubv.js} +2 -2
- package/dist/{index-CPRiufg0.js → index-Cf-u1Zqh.js} +1 -1
- package/dist/{index-wxEEuQXu.js → index-D4v4g8FJ.js} +111 -97
- package/dist/{index-IscoZG-Y.js → index-DQGnbEGS.js} +2 -2
- package/dist/{index-Beb7_0-E.js → index-Dv7UUFkD.js} +24237 -23807
- package/dist/index.d.ts +1 -1
- package/dist/index.js +55 -48
- package/dist/{pick-D_XPbQHB.js → pick-VFuUwFn-.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/utils/global.d.ts +33 -0
- package/dist/utils/index.d.ts +2 -1
- package/package.json +10 -7
- package/src/built-in/authentication/alova/helper.ts +158 -0
- package/src/built-in/authentication/alova/token.ts +122 -0
- package/src/built-in/authentication/helper.ts +7 -3
- package/src/built-in/authentication/index.ts +6 -20
- package/src/built-in/index.ts +1 -1
- package/src/built-in/layout-component/components/Header/TopMode/index.vue +30 -9
- package/src/built-in/layout-component/components/Menu/item.vue +44 -9
- package/src/built-in/layout-component/components/SettingBar/components/SettingHome.vue +1 -4
- package/src/built-in/layout-component/components/SettingBar/components/SettingToolbar.vue +0 -6
- package/src/built-in/layout-component/components/Sidebar/MainSidebar.vue +3 -3
- package/src/built-in/layout-component/components/Tools/SearchBar.vue +1 -3
- package/src/built-in/layout-component/components/Tools/SearchPanel.vue +125 -57
- package/src/built-in/layout-component/components/Tools/index.vue +9 -12
- package/src/built-in/layout-component/components/Topbar/Tabbar/MoreAction.vue +64 -11
- package/src/built-in/layout-component/components/Topbar/Tabbar/index.vue +73 -18
- package/src/built-in/layout-component/components/Topbar/Toolbar/Favorites.vue +4 -7
- package/src/built-in/layout-component/components/Topbar/Toolbar/index.vue +6 -6
- package/src/built-in/layout-component/composables/useContext.ts +1 -1
- package/src/built-in/layout-component/composables/useGlobalSearch.ts +40 -1
- package/src/built-in/layout-component/composables/useTitle.ts +8 -14
- package/src/built-in/layout-component/provider.ts +2 -2
- package/src/built-in/system-info/components/SystemInfo.vue +53 -0
- package/src/built-in/system-info/index.ts +16 -0
- package/src/core/ctx.ts +7 -1
- package/src/core/interface.ts +18 -5
- package/src/core/request.ts +35 -15
- package/src/core/resolver/icon.ts +9 -5
- package/src/features/components/PubinfoIcon/PrismBox.vue +203 -0
- package/src/features/components/PubinfoIcon/SquareBox.vue +59 -0
- package/src/features/components/PubinfoIcon/index.vue +128 -37
- package/src/features/components/PubinfoIcon/props.ts +54 -0
- package/src/features/components/index.ts +4 -1
- package/src/features/context/index.ts +1 -16
- package/src/features/router/systemRoutes.ts +0 -1
- package/src/features/settings/index.ts +0 -1
- package/src/features/stores/modules/favorites.ts +0 -1
- package/src/features/stores/modules/route.ts +2 -9
- package/src/features/stores/modules/tabbar.ts +0 -3
- package/src/features/stores/utils/routerHelper.ts +35 -4
- package/src/index.ts +7 -2
- package/src/utils/global.ts +161 -0
- package/src/utils/index.ts +2 -1
- package/src/utils/proxy.ts +7 -8
- package/types/global.d.ts +7 -0
- package/types/menu.d.ts +10 -0
- package/types/settings.d.ts +0 -7
- package/types/vue-router.d.ts +0 -3
- package/dist/SettingHome-Df7-AlWB.js +0 -55
- package/dist/built-in/locales/helpler.d.ts +0 -594
- package/dist/built-in/locales/index.d.ts +0 -5
- package/dist/built-in/locales/lang/en.json.d.ts +0 -99
- package/dist/built-in/locales/lang/zh-cn.json.d.ts +0 -100
- package/dist/built-in/locales/lang/zh-tw.json.d.ts +0 -100
- package/dist/built-in/locales/ui.d.ts +0 -3
- package/src/built-in/locales/helpler.ts +0 -76
- package/src/built-in/locales/index.ts +0 -20
- package/src/built-in/locales/lang/en.json +0 -96
- package/src/built-in/locales/lang/zh-cn.json +0 -97
- package/src/built-in/locales/lang/zh-tw.json +0 -97
- package/src/built-in/locales/ui.ts +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bL as k, bU as B, bV as H, _ as w, b as A } from "./index-
|
|
1
|
+
import { bL as k, bU as B, bV as H, _ as w, b as A } from "./index-Dv7UUFkD.js";
|
|
2
2
|
import { markRaw as E, createElementBlock as h, openBlock as a, createElementVNode as i, defineComponent as N, defineAsyncComponent as t, useModel as z, computed as u, watch as g, createBlock as S, createSlots as O, withCtx as p, Fragment as P, renderList as W, unref as l, resolveDynamicComponent as $, createVNode as f, createTextVNode as D } from "vue";
|
|
3
3
|
import I from "vue-m-message";
|
|
4
4
|
import { useRoute as L } from "vue-router";
|
|
@@ -18,20 +18,20 @@ function U(d, o) {
|
|
|
18
18
|
const F = E({ name: "ep-document-copy", render: U }), J = { class: "settong-warp" }, j = /* @__PURE__ */ N({
|
|
19
19
|
name: "AppSetting",
|
|
20
20
|
components: {
|
|
21
|
-
SettingThemes: t(() => import("./SettingThemes-
|
|
22
|
-
SettingsMode: t(() => import("./SettingMode-
|
|
23
|
-
SettingWidthMode: t(() => import("./SettingWidthMode-
|
|
24
|
-
SettingEnableTransition: t(() => import("./SettingEnableTransition-
|
|
25
|
-
SettingMenu: t(() => import("./SettingMenu-
|
|
26
|
-
SettingTopbar: t(() => import("./SettingTopbar-
|
|
27
|
-
SettingTabbar: t(() => import("./SettingTabbar-
|
|
28
|
-
SettingToolbar: t(() => import("./SettingToolbar-
|
|
29
|
-
SettingBreadcrumb: t(() => import("./SettingBreadcrumb-
|
|
30
|
-
SettingPage: t(() => import("./SettingPage-
|
|
31
|
-
SettingNavSearch: t(() => import("./SettingNavSearch-
|
|
32
|
-
SettingCopyright: t(() => import("./SettingCopyright-
|
|
33
|
-
SettingHome: t(() => import("./SettingHome-
|
|
34
|
-
SettingOther: t(() => import("./SettingOther-
|
|
21
|
+
SettingThemes: t(() => import("./SettingThemes-C2M3tsVl.js")),
|
|
22
|
+
SettingsMode: t(() => import("./SettingMode-DaqVd9Mq.js")),
|
|
23
|
+
SettingWidthMode: t(() => import("./SettingWidthMode-DIAU4s5e.js")),
|
|
24
|
+
SettingEnableTransition: t(() => import("./SettingEnableTransition-C6NYf021.js")),
|
|
25
|
+
SettingMenu: t(() => import("./SettingMenu-D9Aon2LP.js")),
|
|
26
|
+
SettingTopbar: t(() => import("./SettingTopbar-BgIoXeAq.js")),
|
|
27
|
+
SettingTabbar: t(() => import("./SettingTabbar-DyeLhcCT.js")),
|
|
28
|
+
SettingToolbar: t(() => import("./SettingToolbar-DI7de6i0.js")),
|
|
29
|
+
SettingBreadcrumb: t(() => import("./SettingBreadcrumb-BudqQsuJ.js")),
|
|
30
|
+
SettingPage: t(() => import("./SettingPage-CEjWB45R.js")),
|
|
31
|
+
SettingNavSearch: t(() => import("./SettingNavSearch-N4JIheIk.js")),
|
|
32
|
+
SettingCopyright: t(() => import("./SettingCopyright-VUberG4R.js")),
|
|
33
|
+
SettingHome: t(() => import("./SettingHome-BTaeKgwN.js")),
|
|
34
|
+
SettingOther: t(() => import("./SettingOther-tLulcors.js"))
|
|
35
35
|
},
|
|
36
36
|
__name: "AppSetting",
|
|
37
37
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as c, watch as u, createElementBlock as n, openBlock as a, Fragment as s, renderList as m, normalizeClass as p, createBlock as b, unref as f, createTextVNode as h, toDisplayString as k } from "vue";
|
|
2
|
-
import { bE as y } from "./index-
|
|
2
|
+
import { bE as y } from "./index-Dv7UUFkD.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
const _ = { class: "inline-flex select-none items-center justify-center of-hidden rounded-md bg-stone-3 dark:bg-stone-7" }, g = ["disabled", "onClick"], w = /* @__PURE__ */ c({
|
|
5
5
|
__name: "HCheckList",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as u, computed as c, createElementBlock as m, openBlock as r, withDirectives as i, createElementVNode as n, isRef as _, vModelCheckbox as f, unref as b } from "vue";
|
|
2
|
-
import { b as g } from "./index-
|
|
2
|
+
import { b as g } from "./index-Dv7UUFkD.js";
|
|
3
3
|
const V = { class: "switch" }, k = /* @__PURE__ */ u({
|
|
4
4
|
__name: "HToggle",
|
|
5
5
|
props: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { _ as re } from "./HCheckList.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { H as ue, F as me, e as E, B as be, aq as ce, P as k, M as pe, bG as ye, bH as ge, bI as ve, bJ as fe, bx as he, C as we, bK as Me, by as Pe, h as Ce, x as Oe, k as $e, i as ke, a7 as xe, g as ne, aF as Se, bL as Ve, bM as Te, bv as _e, ba as Ie, bN as Be, a5 as He, b as Ue } from "./index-
|
|
3
|
-
import { _ as Ae } from "./HToggle-
|
|
1
|
+
import { _ as re } from "./HCheckList.vue_vue_type_script_setup_true_lang-SrNklW3P.js";
|
|
2
|
+
import { H as ue, F as me, e as E, B as be, aq as ce, P as k, M as pe, bG as ye, bH as ge, bI as ve, bJ as fe, bx as he, C as we, bK as Me, by as Pe, h as Ce, x as Oe, k as $e, i as ke, a7 as xe, g as ne, aF as Se, bL as Ve, bM as Te, bv as _e, ba as Ie, bN as Be, a5 as He, b as Ue } from "./index-Dv7UUFkD.js";
|
|
3
|
+
import { _ as Ae } from "./HToggle-DGTP9jYA.js";
|
|
4
4
|
import { defineComponent as te, shallowRef as H, computed as K, createVNode as a, Transition as Ee, withDirectives as ze, vShow as Le, ref as Re, createElementBlock as d, openBlock as r, createCommentVNode as u, createElementVNode as s, unref as e, isRef as Fe, Fragment as De, renderList as je, normalizeClass as v, normalizeStyle as Ne, withCtx as c, createTextVNode as V } from "vue";
|
|
5
5
|
import { getThemes as qe } from "@pubinfo/config/themes";
|
|
6
6
|
import { E as J, a as X } from "./right-Bfe2p1o0.js";
|
|
7
7
|
import { R as U } from "./question-line-CfkciTFq.js";
|
|
8
|
-
import { p as $ } from "./pick-
|
|
8
|
+
import { p as $ } from "./pick-VFuUwFn-.js";
|
|
9
9
|
const A = (i, o, n, p, f) => ({
|
|
10
10
|
backgroundColor: i,
|
|
11
11
|
border: `${p.lineWidth}px ${p.lineType} ${o}`,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _ as r } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
|
|
2
|
-
import { _ as b } from "./HCheckList.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { _ as p } from "./HToggle-
|
|
2
|
+
import { _ as b } from "./HCheckList.vue_vue_type_script_setup_true_lang-SrNklW3P.js";
|
|
3
|
+
import { _ as p } from "./HToggle-DGTP9jYA.js";
|
|
4
4
|
import { defineComponent as _, toRefs as f, createBlock as c, openBlock as g, withCtx as V, createElementVNode as n, createVNode as s, unref as t } from "vue";
|
|
5
|
-
import { bL as v } from "./index-
|
|
5
|
+
import { bL as v } from "./index-Dv7UUFkD.js";
|
|
6
6
|
const M = { class: "setting-item" }, x = { class: "setting-item" }, B = { class: "setting-item" }, N = /* @__PURE__ */ _({
|
|
7
7
|
name: "SettingBreadcrumb",
|
|
8
8
|
__name: "SettingBreadcrumb",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _ as u } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
|
|
2
2
|
import { _ as p } from "./HInput.vue_vue_type_script_setup_true_lang-DBqCXRnn.js";
|
|
3
|
-
import { _ as r } from "./HToggle-
|
|
3
|
+
import { _ as r } from "./HToggle-DGTP9jYA.js";
|
|
4
4
|
import { defineComponent as b, toRef as V, createBlock as g, openBlock as _, withCtx as f, createElementVNode as o, createVNode as n, unref as t } from "vue";
|
|
5
|
-
import { bL as v } from "./index-
|
|
5
|
+
import { bL as v } from "./index-Dv7UUFkD.js";
|
|
6
6
|
const y = { class: "setting-item" }, C = { class: "setting-item" }, U = { class: "setting-item" }, x = { class: "setting-item" }, w = { class: "setting-item" }, E = /* @__PURE__ */ b({
|
|
7
7
|
name: "SettingCopyright",
|
|
8
8
|
__name: "SettingCopyright",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as g } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
|
|
2
|
-
import { bL as k, bN as x, b as C } from "./index-
|
|
3
|
-
import { _ as T } from "./HToggle-
|
|
2
|
+
import { bL as k, bN as x, b as C } from "./index-Dv7UUFkD.js";
|
|
3
|
+
import { _ as T } from "./HToggle-DGTP9jYA.js";
|
|
4
4
|
import { defineComponent as V, toRefs as h, reactive as E, createBlock as c, openBlock as o, withCtx as l, createElementVNode as d, createElementBlock as r, createCommentVNode as y, createVNode as H, unref as s, isRef as N, Fragment as S, renderList as B, normalizeClass as L } from "vue";
|
|
5
5
|
const $ = { class: "flex items-center justify-center pb-4" }, M = {
|
|
6
6
|
key: 0,
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { _ as p } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
|
|
2
|
+
import { _ as u } from "./HInput.vue_vue_type_script_setup_true_lang-DBqCXRnn.js";
|
|
3
|
+
import { _ as c } from "./HToggle-DGTP9jYA.js";
|
|
4
|
+
import { bL as f, bN as g } from "./index-Dv7UUFkD.js";
|
|
5
|
+
import { defineComponent as V, toRefs as b, createBlock as x, openBlock as H, withCtx as i, createElementVNode as n, createVNode as s, createTextVNode as v, unref as e } from "vue";
|
|
6
|
+
import { R as N } from "./question-line-CfkciTFq.js";
|
|
7
|
+
const C = { class: "setting-item" }, R = { class: "label" }, S = { class: "setting-item" }, I = /* @__PURE__ */ V({
|
|
8
|
+
name: "SettingHome",
|
|
9
|
+
__name: "SettingHome",
|
|
10
|
+
setup(T) {
|
|
11
|
+
const { settingsStore: m } = f(), { home: o, toolbar: $ } = b(m.settings);
|
|
12
|
+
return (k, t) => {
|
|
13
|
+
const a = g, _ = c, r = u, d = p;
|
|
14
|
+
return H(), x(d, { title: "主页" }, {
|
|
15
|
+
default: i(() => [
|
|
16
|
+
n("div", C, [
|
|
17
|
+
n("div", R, [
|
|
18
|
+
t[2] || (t[2] = v(" 是否启用 ")),
|
|
19
|
+
s(a, { text: "该功能开启时,登录成功默认进入主页,反之则默认进入导航栏里第一个导航页面" }, {
|
|
20
|
+
default: i(() => [
|
|
21
|
+
s(e(N))
|
|
22
|
+
]),
|
|
23
|
+
_: 1
|
|
24
|
+
})
|
|
25
|
+
]),
|
|
26
|
+
s(_, {
|
|
27
|
+
modelValue: e(o).enable,
|
|
28
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => e(o).enable = l)
|
|
29
|
+
}, null, 8, ["modelValue"])
|
|
30
|
+
]),
|
|
31
|
+
n("div", S, [
|
|
32
|
+
t[3] || (t[3] = n("div", { class: "label" }, " 主页名称 ", -1)),
|
|
33
|
+
s(r, {
|
|
34
|
+
modelValue: e(o).title,
|
|
35
|
+
"onUpdate:modelValue": t[1] || (t[1] = (l) => e(o).title = l)
|
|
36
|
+
}, null, 8, ["modelValue"])
|
|
37
|
+
])
|
|
38
|
+
]),
|
|
39
|
+
_: 1
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
export {
|
|
45
|
+
I as default
|
|
46
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as v } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
|
|
2
|
-
import { _ as M } from "./HCheckList.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { _ } from "./HToggle-
|
|
4
|
-
import { bL as g, bN as y } from "./index-
|
|
2
|
+
import { _ as M } from "./HCheckList.vue_vue_type_script_setup_true_lang-SrNklW3P.js";
|
|
3
|
+
import { _ } from "./HToggle-DGTP9jYA.js";
|
|
4
|
+
import { bL as g, bN as y } from "./index-Dv7UUFkD.js";
|
|
5
5
|
import { defineComponent as f, toRef as c, createBlock as U, openBlock as b, withCtx as i, createElementVNode as s, createElementBlock as C, createCommentVNode as k, createVNode as d, createTextVNode as a, unref as l } from "vue";
|
|
6
6
|
import { R as m } from "./question-line-CfkciTFq.js";
|
|
7
7
|
const x = { class: "setting-item" }, H = { class: "label" }, S = { class: "setting-item" }, O = { class: "label" }, B = { class: "setting-item" }, N = { class: "label" }, R = { class: "setting-item" }, w = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as u } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
|
|
2
|
-
import { bL as v, bN as f, b } from "./index-
|
|
2
|
+
import { bL as v, bN as f, b } from "./index-Dv7UUFkD.js";
|
|
3
3
|
import { defineComponent as g, toRef as k, reactive as x, createBlock as a, openBlock as n, withCtx as s, createElementVNode as o, createElementBlock as C, Fragment as S, renderList as h, unref as l, normalizeClass as y } from "vue";
|
|
4
4
|
const M = { class: "menu-mode" }, $ = ["onClick"], B = /* @__PURE__ */ g({
|
|
5
5
|
name: "SettingMode",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
|
|
2
|
-
import { _ as p } from "./HToggle-
|
|
3
|
-
import { bL as u, bN as c } from "./index-
|
|
2
|
+
import { _ as p } from "./HToggle-DGTP9jYA.js";
|
|
3
|
+
import { bL as u, bN as c } from "./index-Dv7UUFkD.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
6
|
const x = { class: "setting-item" }, N = { class: "label" }, H = { class: "setting-item" }, U = /* @__PURE__ */ f({
|
|
@@ -1,7 +1,7 @@
|
|
|
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 { bL as x, bN as S } from "./index-
|
|
4
|
-
import { _ as H } from "./HToggle-
|
|
3
|
+
import { bL as x, bN as S } from "./index-Dv7UUFkD.js";
|
|
4
|
+
import { _ as H } from "./HToggle-DGTP9jYA.js";
|
|
5
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
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({
|
|
@@ -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-
|
|
2
|
+
import { _ as r } from "./HToggle-DGTP9jYA.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 { bL as f } from "./index-
|
|
4
|
+
import { bL as f } from "./index-Dv7UUFkD.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 { bL as w, bN as y } from "./index-
|
|
2
|
+
import { bL as w, bN as y } from "./index-Dv7UUFkD.js";
|
|
3
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-
|
|
5
|
-
import { _ as L } from "./HToggle-
|
|
4
|
+
import { _ as U } from "./HCheckList.vue_vue_type_script_setup_true_lang-SrNklW3P.js";
|
|
5
|
+
import { _ as L } from "./HToggle-DGTP9jYA.js";
|
|
6
6
|
import { R as N } from "./question-line-CfkciTFq.js";
|
|
7
7
|
const R = {
|
|
8
8
|
viewBox: "0 0 32 32",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as T } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
|
|
2
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, bL as W } from "./index-
|
|
4
|
+
import { b as x, bW as R, bL as W } from "./index-Dv7UUFkD.js";
|
|
5
5
|
const A = {
|
|
6
6
|
viewBox: "-5 -2 24 24",
|
|
7
7
|
width: "1.2em",
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { _ as b } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
|
|
2
|
-
import { _ as
|
|
3
|
-
import { bL as
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { R as
|
|
6
|
-
const R = { class: "setting-item" }, S = { class: "label" }, T = {
|
|
2
|
+
import { _ as f } from "./HToggle-DGTP9jYA.js";
|
|
3
|
+
import { bL as V, bN as c } from "./index-Dv7UUFkD.js";
|
|
4
|
+
import { defineComponent as g, toRef as v, 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
|
+
import { R as r } from "./question-line-CfkciTFq.js";
|
|
6
|
+
const R = { class: "setting-item" }, S = { class: "label" }, T = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "setting-item"
|
|
9
|
-
}, k = { class: "setting-item" },
|
|
9
|
+
}, k = { class: "setting-item" }, U = { class: "label" }, B = { class: "setting-item" }, H = { class: "label" }, D = /* @__PURE__ */ g({
|
|
10
10
|
name: "SettingToolbar",
|
|
11
11
|
__name: "SettingToolbar",
|
|
12
|
-
setup(
|
|
13
|
-
const { settingsStore:
|
|
14
|
-
return (
|
|
15
|
-
const d =
|
|
12
|
+
setup(E) {
|
|
13
|
+
const { settingsStore: u } = V(), l = v(u.settings, "toolbar");
|
|
14
|
+
return (F, e) => {
|
|
15
|
+
const d = c, a = f, p = b;
|
|
16
16
|
return _(), x(p, { title: "工具栏" }, {
|
|
17
17
|
default: i(() => [
|
|
18
18
|
s("div", R, [
|
|
19
19
|
s("div", S, [
|
|
20
|
-
e[
|
|
20
|
+
e[4] || (e[4] = m(" 通知中心 ")),
|
|
21
21
|
o(d, { text: "该功能具体业务功能需自行开发,框架仅提供示例模版" }, {
|
|
22
22
|
default: i(() => [
|
|
23
|
-
o(t(
|
|
23
|
+
o(t(r))
|
|
24
24
|
]),
|
|
25
25
|
_: 1
|
|
26
26
|
})
|
|
@@ -30,48 +30,41 @@ const R = { class: "setting-item" }, S = { class: "label" }, T = { class: "setti
|
|
|
30
30
|
"onUpdate:modelValue": e[0] || (e[0] = (n) => t(l).enableNotification = n)
|
|
31
31
|
}, null, 8, ["modelValue"])
|
|
32
32
|
]),
|
|
33
|
-
|
|
34
|
-
e[
|
|
35
|
-
o(a, {
|
|
36
|
-
modelValue: t(l).enableI18n,
|
|
37
|
-
"onUpdate:modelValue": e[1] || (e[1] = (n) => t(l).enableI18n = n)
|
|
38
|
-
}, null, 8, ["modelValue"])
|
|
39
|
-
]),
|
|
40
|
-
t(r).mode === "pc" ? (_(), N("div", U, [
|
|
41
|
-
e[7] || (e[7] = s("div", { class: "label" }, " 全屏 ", -1)),
|
|
33
|
+
t(u).mode === "pc" ? (_(), N("div", T, [
|
|
34
|
+
e[5] || (e[5] = s("div", { class: "label" }, " 全屏 ", -1)),
|
|
42
35
|
o(a, {
|
|
43
36
|
modelValue: t(l).enableFullscreen,
|
|
44
|
-
"onUpdate:modelValue": e[
|
|
37
|
+
"onUpdate:modelValue": e[1] || (e[1] = (n) => t(l).enableFullscreen = n)
|
|
45
38
|
}, null, 8, ["modelValue"])
|
|
46
39
|
])) : C("", !0),
|
|
47
40
|
s("div", k, [
|
|
48
|
-
s("div",
|
|
49
|
-
e[
|
|
41
|
+
s("div", U, [
|
|
42
|
+
e[6] || (e[6] = m(" 页面刷新 ")),
|
|
50
43
|
o(d, { text: "使用框架内提供的刷新功能进行页面刷新" }, {
|
|
51
44
|
default: i(() => [
|
|
52
|
-
o(t(
|
|
45
|
+
o(t(r))
|
|
53
46
|
]),
|
|
54
47
|
_: 1
|
|
55
48
|
})
|
|
56
49
|
]),
|
|
57
50
|
o(a, {
|
|
58
51
|
modelValue: t(l).enablePageReload,
|
|
59
|
-
"onUpdate:modelValue": e[
|
|
52
|
+
"onUpdate:modelValue": e[2] || (e[2] = (n) => t(l).enablePageReload = n)
|
|
60
53
|
}, null, 8, ["modelValue"])
|
|
61
54
|
]),
|
|
62
|
-
s("div",
|
|
63
|
-
s("div",
|
|
64
|
-
e[
|
|
55
|
+
s("div", B, [
|
|
56
|
+
s("div", H, [
|
|
57
|
+
e[7] || (e[7] = m(" 颜色主题 ")),
|
|
65
58
|
o(d, { text: "开启后可在明亮/暗黑模式中切换" }, {
|
|
66
59
|
default: i(() => [
|
|
67
|
-
o(t(
|
|
60
|
+
o(t(r))
|
|
68
61
|
]),
|
|
69
62
|
_: 1
|
|
70
63
|
})
|
|
71
64
|
]),
|
|
72
65
|
o(a, {
|
|
73
66
|
modelValue: t(l).enableColorScheme,
|
|
74
|
-
"onUpdate:modelValue": e[
|
|
67
|
+
"onUpdate:modelValue": e[3] || (e[3] = (n) => t(l).enableColorScheme = n)
|
|
75
68
|
}, null, 8, ["modelValue"])
|
|
76
69
|
])
|
|
77
70
|
]),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as u } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
|
|
2
|
-
import { _ as b } from "./HToggle-
|
|
3
|
-
import { bL as c, bN as f } from "./index-
|
|
4
|
-
import { _ as g } from "./HCheckList.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as b } from "./HToggle-DGTP9jYA.js";
|
|
3
|
+
import { bL as c, bN as f } from "./index-Dv7UUFkD.js";
|
|
4
|
+
import { _ as g } from "./HCheckList.vue_vue_type_script_setup_true_lang-SrNklW3P.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
7
|
const H = { class: "setting-item" }, N = { class: "setting-item" }, w = { class: "label" }, D = /* @__PURE__ */ T({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as v } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
|
|
2
|
-
import { bL as u, bN as b, b as k } from "./index-
|
|
2
|
+
import { bL as u, bN as b, b as k } from "./index-Dv7UUFkD.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
4
|
import { E as y, a as B } from "./right-Bfe2p1o0.js";
|
|
5
5
|
const N = { class: "app-width-mode" }, S = ["onClick"], H = /* @__PURE__ */ w({
|
|
@@ -1,5 +1,5 @@
|
|
|
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 { bL as p, bT as _ } from "./index-
|
|
2
|
+
import { bL as p, bT as _ } from "./index-Dv7UUFkD.js";
|
|
3
3
|
import { useRoute as h } from "vue-router";
|
|
4
4
|
const y = /* @__PURE__ */ a({
|
|
5
5
|
name: "TopThinMode",
|
|
@@ -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
|
-
|
|
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
|
+
};
|
package/dist/built-in/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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';
|
|
8
7
|
export * from './settings';
|
|
8
|
+
export * from './system-info';
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
priority?: number;
|
|
3
|
+
};
|
|
1
4
|
declare function toggle(type?: 'menu' | 'tab'): void;
|
|
2
|
-
declare const _default: import('vue').DefineComponent<
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
3
6
|
toggle: typeof toggle;
|
|
4
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<
|
|
7
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
8
|
+
priority: number;
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
5
10
|
searchInputRef: HTMLInputElement;
|
|
6
11
|
searchResultRef: ({
|
|
7
12
|
$: import('vue').ComponentInternalInstance;
|
|
@@ -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
|
-
|
|
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,4 +1,7 @@
|
|
|
1
1
|
type SearchType = 'menu' | 'tab';
|
|
2
|
+
declare function registerPanel(id: symbol, priority?: number): void;
|
|
3
|
+
declare function unregisterPanel(id: symbol): void;
|
|
4
|
+
declare function setPanelPriority(id: symbol, priority: number): void;
|
|
2
5
|
declare function open(type?: SearchType): void;
|
|
3
6
|
declare function close(): void;
|
|
4
7
|
declare function toggle(type?: SearchType): void;
|
|
@@ -12,8 +15,12 @@ declare function toggle(type?: SearchType): void;
|
|
|
12
15
|
export declare function useGlobalSearch(): {
|
|
13
16
|
isShow: import('vue').Ref<boolean, boolean>;
|
|
14
17
|
searchType: import('vue').Ref<SearchType, SearchType>;
|
|
18
|
+
activePanelId: import('vue').ShallowRef<symbol | null, symbol | null>;
|
|
15
19
|
open: typeof open;
|
|
16
20
|
close: typeof close;
|
|
17
21
|
toggle: typeof toggle;
|
|
22
|
+
registerPanel: typeof registerPanel;
|
|
23
|
+
unregisterPanel: typeof unregisterPanel;
|
|
24
|
+
setPanelPriority: typeof setPanelPriority;
|
|
18
25
|
};
|
|
19
26
|
export type { SearchType };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { useSettingsStore } from '../../../features/stores';
|
|
2
2
|
export declare function useTitle(appTitle: string, settingsStore: ReturnType<typeof useSettingsStore>): {
|
|
3
|
-
|
|
3
|
+
generateTitle: (defaultTitle?: string | (() => any)) => any;
|
|
4
4
|
};
|
|
@@ -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,4 @@
|
|
|
1
|
-
import { e as t } from "./index-
|
|
1
|
+
import { e as t } from "./index-Dv7UUFkD.js";
|
|
2
2
|
const n = ["blue", "purple", "cyan", "green", "magenta", "pink", "red", "orange", "yellow", "volcano", "geekblue", "lime", "gold"];
|
|
3
3
|
function C(e, s) {
|
|
4
4
|
return n.reduce((o, r) => {
|
package/dist/core/interface.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AdapterCreateOptions, AlovaAxiosRequestConfig } from '@alova/adapter-axios';
|
|
2
|
-
import { Alova, AlovaGenerics, AlovaOptions, Method } from 'alova';
|
|
2
|
+
import { Alova, AlovaGenerics, AlovaOptions, Method, ResponseCompleteHandler, ResponseErrorHandler } from 'alova';
|
|
3
3
|
import { AxiosResponse, AxiosResponseHeaders } from 'axios';
|
|
4
4
|
import { Pinia } from 'pinia';
|
|
5
5
|
import { App, Component } from 'vue';
|
|
@@ -61,14 +61,23 @@ export interface Module {
|
|
|
61
61
|
}
|
|
62
62
|
export type FalsyModule = false | null | undefined;
|
|
63
63
|
export type ModuleOptions = Module | ModuleOptions[] | FalsyModule;
|
|
64
|
-
type AG = AlovaGenerics<any, any, AlovaAxiosRequestConfig, AxiosResponse<any, any>, AxiosResponseHeaders, any, any, any>;
|
|
65
|
-
export type RequestOptions = Omit<AlovaOptions<AG>, 'statesHook' | 'requestAdapter'> & {
|
|
64
|
+
export type AG = AlovaGenerics<any, any, AlovaAxiosRequestConfig, AxiosResponse<any, any>, AxiosResponseHeaders, any, any, any>;
|
|
65
|
+
export type RequestOptions = Omit<AlovaOptions<AG>, 'statesHook' | 'requestAdapter' | 'beforeRequest' | 'responded'> & {
|
|
66
66
|
axios?: AdapterCreateOptions;
|
|
67
|
+
beforeRequest?: Hooks['http:request'];
|
|
68
|
+
responded?: Hooks['http:response'];
|
|
67
69
|
};
|
|
68
70
|
export type RequestInstance = Alova<AG>;
|
|
69
71
|
export type RequestMethod = Method<AG>;
|
|
70
72
|
export interface Hooks {
|
|
71
|
-
'http:request':
|
|
72
|
-
'http:response':
|
|
73
|
+
'http:request': (method: Method<AG>) => void | Promise<void>;
|
|
74
|
+
'http:response': RespondedHandler<AG> | RespondedHandlerRecord<AG>;
|
|
75
|
+
}
|
|
76
|
+
type Fn = () => void;
|
|
77
|
+
export type RespondedHandler<AG extends AlovaGenerics> = (response: AG['Response'], methodInstance: Method<AG>, stop: Fn) => any;
|
|
78
|
+
export interface RespondedHandlerRecord<AG extends AlovaGenerics> {
|
|
79
|
+
onSuccess?: RespondedHandler<AG>;
|
|
80
|
+
onError?: ResponseErrorHandler<AG>;
|
|
81
|
+
onComplete?: ResponseCompleteHandler<AG>;
|
|
73
82
|
}
|
|
74
83
|
export {};
|
package/dist/core/request.d.ts
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
|
+
import { AxiosResponse } from 'axios';
|
|
1
2
|
import { RequestOptions } from './interface';
|
|
2
|
-
export declare function createRequest(options
|
|
3
|
-
name: "Vue";
|
|
4
|
-
State: import('vue').Ref<unknown, unknown>;
|
|
5
|
-
Computed: import('vue').ComputedRef<unknown>;
|
|
6
|
-
Watched: object | import('vue').WatchSource<unknown>;
|
|
7
|
-
StateExport: import('vue').Ref<unknown, unknown>;
|
|
8
|
-
ComputedExport: import('vue').ComputedRef<unknown>;
|
|
9
|
-
}>>;
|
|
3
|
+
export declare function createRequest(options?: RequestOptions): import('alova').Alova<import('alova').AlovaGenerics<any, any, import('@alova/adapter-axios').AlovaAxiosRequestConfig, AxiosResponse<any, any>, import('axios').AxiosResponseHeaders, any, any, any>>;
|
|
10
4
|
export * from './interface';
|