@voidzero-dev/vitepress-theme 1.1.61 → 1.1.62
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/index111.js +4 -4
- package/dist/index113.js +3 -3
- package/dist/index115.js +1 -1
- package/dist/index119.js +10 -10
- package/dist/index121.js +3 -3
- package/dist/index123.js +7 -7
- package/dist/index128.js +4 -4
- package/dist/index135.js +1 -1
- package/dist/index140.js +2 -2
- package/dist/index142.js +21 -21
- package/dist/index145.js +5 -5
- package/dist/index148.js +1 -1
- package/dist/index157.js +4 -4
- package/dist/index167.js +4 -4
- package/dist/index173.js +5 -5
- package/dist/index185.js +2 -2
- package/dist/index187.js +1 -1
- package/dist/index197.js +1 -1
- package/dist/index198.js +1 -1
- package/dist/index199.js +1 -1
- package/dist/index200.js +1 -1
- package/dist/index201.js +1 -1
- package/dist/index202.js +1 -1
- package/dist/index203.js +1 -1
- package/dist/index204.js +1 -1
- package/dist/index205.js +3 -28
- package/dist/index206.js +5 -42
- package/dist/index207.js +5 -38
- package/dist/index208.js +2 -5
- package/dist/index209.js +1 -1
- package/dist/index210.js +1 -1
- package/dist/index211.js +28 -2
- package/dist/index212.js +20 -2
- package/dist/index213.js +94 -0
- package/dist/index215.js +7 -0
- package/dist/index216.js +4 -1
- package/dist/index217.js +5 -2
- package/dist/index218.js +5 -2
- package/dist/index219.js +5 -34
- package/dist/index220.js +5 -2
- package/dist/index221.js +32 -2
- package/dist/index222.js +2 -2
- package/dist/index223.js +2 -2
- package/dist/index224.js +2 -2
- package/dist/index225.js +2 -2
- package/dist/index226.js +2 -2
- package/dist/index227.js +2 -2
- package/dist/index228.js +2 -2
- package/dist/index229.js +2 -2
- package/dist/index235.js +1 -1
- package/dist/index248.js +2 -2
- package/dist/index249.js +1 -1
- package/dist/index250.js +1 -1
- package/dist/index251.js +1 -1
- package/dist/index252.js +2 -2
- package/dist/index253.js +2 -2
- package/dist/index254.js +2 -2
- package/dist/index255.js +1 -1
- package/dist/index257.js +108 -2
- package/dist/index259.js +2 -2
- package/dist/index260.js +5 -47
- package/dist/index261.js +2 -2
- package/dist/index262.js +1 -1
- package/dist/index263.js +34 -2
- package/dist/index264.js +2 -2
- package/dist/index265.js +2 -5
- package/dist/index266.js +2 -5
- package/dist/index267.js +2 -96
- package/dist/index268.js +1 -1
- package/dist/index269.js +2 -2
- package/dist/index270.js +2 -2
- package/dist/index271.js +1 -1
- package/dist/index272.js +2 -3
- package/dist/index273.js +2 -5
- package/dist/index274.js +42 -52
- package/dist/index275.js +3 -44
- package/dist/index276.js +2 -2587
- package/dist/index277.js +47 -2
- package/dist/index278.js +2 -2
- package/dist/index279.js +38 -2
- package/dist/index28.js +1 -1
- package/dist/index280.js +52 -2
- package/dist/index281.js +44 -3
- package/dist/index282.js +2585 -7
- package/dist/index283.js +1 -1
- package/dist/index284.js +2 -2
- package/dist/index285.js +2 -20
- package/dist/index286.js +2 -92
- package/dist/index287.js +4 -0
- package/dist/index288.js +2 -5
- package/dist/index289.js +2 -5
- package/dist/index290.js +2 -5
- package/dist/index291.js +2 -5
- package/dist/index292.js +96 -5
- package/dist/index293.js +2 -5
- package/dist/index294.js +98144 -30
- package/dist/index295.js +2 -2
- package/dist/index296.js +2 -2
- package/dist/index297.js +9 -2
- package/dist/index298.js +2 -2
- package/dist/index299.js +2 -2
- package/dist/index300.js +2 -2
- package/dist/index301.js +2 -2
- package/dist/index302.js +2 -2
- package/dist/index303.js +2 -2
- package/dist/index304.js +2 -2
- package/dist/index305.js +1 -1
- package/dist/index306.js +1 -1
- package/dist/index307.js +1 -1
- package/dist/index308.js +2 -2
- package/dist/index309.js +1 -1
- package/dist/index310.js +5 -2
- package/dist/index311.js +2 -98146
- package/dist/index312.js +1 -1
- package/dist/index313.js +1 -1
- package/dist/index314.js +2 -83
- package/dist/index315.js +4 -0
- package/dist/index316.js +2 -71
- package/dist/index317.js +4 -0
- package/dist/index318.js +1 -1
- package/dist/index319.js +1 -1
- package/dist/index320.js +1 -1
- package/dist/index321.js +82 -2
- package/dist/index323.js +71 -2
- package/dist/index325.js +83 -2
- package/dist/index327.js +2 -7207
- package/dist/index328.js +3 -1735
- package/dist/index329.js +1 -1
- package/dist/index330.js +9 -9
- package/dist/index332.js +7207 -3
- package/dist/index333.js +1735 -2
- package/dist/index334.js +3 -82
- package/dist/{index338.js → index335.js} +3 -3
- package/dist/index337.js +16 -3
- package/dist/{index342.js → index339.js} +4 -4
- package/dist/{index344.js → index341.js} +1 -1
- package/dist/{index346.js → index343.js} +5 -5
- package/dist/index345.js +28 -0
- package/dist/index347.js +4 -0
- package/dist/index348.js +2 -26
- package/dist/index349.js +4 -0
- package/dist/index350.js +5 -46
- package/dist/index351.js +46 -5
- package/dist/index352.js +70 -5
- package/dist/index353.js +3 -3
- package/dist/index354.js +2 -2
- package/dist/index355.js +20 -3
- package/dist/index356.js +30 -5
- package/dist/index357.js +25 -61
- package/dist/index358.js +5 -5
- package/dist/index359.js +2 -22
- package/dist/index360.js +29 -5
- package/dist/index362.js +5 -27
- package/dist/index363.js +5 -26
- package/dist/index364.js +4 -4
- package/dist/index365.js +5 -2
- package/dist/index366.js +4 -28
- package/dist/index367.js +7 -0
- package/dist/index368.js +5 -8
- package/dist/index369.js +56 -64
- package/dist/index370.js +314 -46
- package/dist/index371.js +2 -112
- package/dist/index372.js +46 -18
- package/dist/index373.js +114 -0
- package/dist/index374.js +60 -91
- package/dist/index376.js +30 -25
- package/dist/index379.js +4 -0
- package/dist/index380.js +2 -55
- package/dist/index381.js +21 -0
- package/dist/index383.js +96 -0
- package/dist/index385.js +27 -2
- package/dist/index387.js +44 -57
- package/dist/index389.js +50 -27
- package/dist/index391.js +21 -3
- package/dist/index393.js +3 -454
- package/dist/index394.js +4 -0
- package/dist/index395.js +441 -74
- package/dist/index397.js +87 -2
- package/dist/index399.js +4 -5
- package/dist/index400.js +10 -5
- package/dist/index401.js +28 -5
- package/dist/index402.js +5 -13
- package/dist/index403.js +3 -3
- package/dist/index404.js +4 -4
- package/dist/index405.js +5 -28
- package/dist/index406.js +13 -5
- package/dist/index407.js +35 -10
- package/dist/index409.js +23 -22
- package/dist/index411.js +76 -18
- package/dist/index413.js +48 -22
- package/dist/index415.js +5 -77
- package/dist/index416.js +7 -0
- package/dist/index417.js +20 -49
- package/dist/{index410.js → index418.js} +1 -1
- package/dist/index419.js +18 -82
- package/dist/index42.js +4 -4
- package/dist/index420.js +25 -0
- package/dist/index421.js +78 -23
- package/dist/index423.js +23 -30
- package/dist/index425.js +3 -3
- package/dist/index426.js +3 -3
- package/dist/index427.js +3 -3
- package/dist/index428.js +25 -5
- package/dist/index430.js +96 -23
- package/dist/index432.js +23 -95
- package/dist/index434.js +5 -29
- package/dist/index435.js +7 -0
- package/dist/index436.js +23 -92
- package/dist/index438.js +94 -22
- package/dist/index440.js +11 -5
- package/dist/index441.js +28 -14
- package/dist/index442.js +5 -11
- package/dist/index443.js +5 -28
- package/dist/index444.js +13 -4
- package/dist/index445.js +27 -37
- package/dist/index447.js +39 -2
- package/dist/index449.js +4 -0
- package/dist/index451.js +2 -2
- package/dist/index46.js +1 -1
- package/dist/index49.js +4 -4
- package/dist/index51.js +4 -4
- package/dist/index52.js +1 -1
- package/dist/index54.js +1 -1
- package/dist/index58.js +55 -56
- package/dist/index6.js +1 -1
- package/dist/index62.js +1 -1
- package/dist/index65.js +1 -1
- package/dist/index7.js +2 -2
- package/dist/index75.js +1 -1
- package/dist/index77.js +2 -2
- package/dist/index8.js +2 -2
- package/dist/index81.js +2 -2
- package/dist/index9.js +1 -1
- package/dist/index93.js +1 -1
- package/package.json +1 -1
- package/dist/index214.js +0 -110
- package/dist/index256.js +0 -4
- package/dist/index258.js +0 -4
- package/dist/index322.js +0 -4
- package/dist/index324.js +0 -4
- package/dist/index326.js +0 -4
- package/dist/index336.js +0 -4
- package/dist/index340.js +0 -18
- package/dist/index361.js +0 -7
- package/dist/index378.js +0 -52
- package/dist/index382.js +0 -23
- package/dist/index386.js +0 -4
- package/dist/index392.js +0 -4
- package/dist/index396.js +0 -317
- package/dist/index408.js +0 -6
- package/dist/index412.js +0 -23
- package/dist/index429.js +0 -7
- package/dist/index448.js +0 -31
package/dist/index334.js
CHANGED
|
@@ -1,84 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import H from "./index10.js";
|
|
4
|
-
import L from "./index14.js";
|
|
5
|
-
const V = { class: "container" }, M = { class: "main" }, T = { class: "heading" }, x = ["innerHTML"], $ = ["innerHTML"], B = ["innerHTML"], I = {
|
|
6
|
-
key: 0,
|
|
7
|
-
class: "actions"
|
|
8
|
-
}, P = {
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "image"
|
|
11
|
-
}, C = { class: "image-container" }, z = /* @__PURE__ */ d({
|
|
12
|
-
__name: "VPHero",
|
|
13
|
-
props: {
|
|
14
|
-
name: {},
|
|
15
|
-
text: {},
|
|
16
|
-
tagline: {},
|
|
17
|
-
image: {},
|
|
18
|
-
actions: {}
|
|
19
|
-
},
|
|
20
|
-
setup(e) {
|
|
21
|
-
const { heroImageSlotExists: l } = u(y);
|
|
22
|
-
return (s, m) => (t(), n("div", {
|
|
23
|
-
class: h(["VPHero", { "has-image": e.image || c(l) }])
|
|
24
|
-
}, [
|
|
25
|
-
a("div", V, [
|
|
26
|
-
a("div", M, [
|
|
27
|
-
r(s.$slots, "home-hero-info-before", {}, void 0, !0),
|
|
28
|
-
r(s.$slots, "home-hero-info", {}, () => [
|
|
29
|
-
a("h1", T, [
|
|
30
|
-
e.name ? (t(), n("span", {
|
|
31
|
-
key: 0,
|
|
32
|
-
innerHTML: e.name,
|
|
33
|
-
class: "name clip"
|
|
34
|
-
}, null, 8, x)) : o("", !0),
|
|
35
|
-
e.text ? (t(), n("span", {
|
|
36
|
-
key: 1,
|
|
37
|
-
innerHTML: e.text,
|
|
38
|
-
class: "text"
|
|
39
|
-
}, null, 8, $)) : o("", !0)
|
|
40
|
-
]),
|
|
41
|
-
e.tagline ? (t(), n("p", {
|
|
42
|
-
key: 0,
|
|
43
|
-
innerHTML: e.tagline,
|
|
44
|
-
class: "tagline"
|
|
45
|
-
}, null, 8, B)) : o("", !0)
|
|
46
|
-
], !0),
|
|
47
|
-
r(s.$slots, "home-hero-info-after", {}, void 0, !0),
|
|
48
|
-
e.actions ? (t(), n("div", I, [
|
|
49
|
-
(t(!0), n(g, null, f(e.actions, (i) => (t(), n("div", {
|
|
50
|
-
key: i.link,
|
|
51
|
-
class: "action"
|
|
52
|
-
}, [
|
|
53
|
-
k(H, {
|
|
54
|
-
tag: "a",
|
|
55
|
-
size: "medium",
|
|
56
|
-
theme: i.theme,
|
|
57
|
-
text: i.text,
|
|
58
|
-
href: i.link,
|
|
59
|
-
target: i.target,
|
|
60
|
-
rel: i.rel
|
|
61
|
-
}, null, 8, ["theme", "text", "href", "target", "rel"])
|
|
62
|
-
]))), 128))
|
|
63
|
-
])) : o("", !0),
|
|
64
|
-
r(s.$slots, "home-hero-actions-after", {}, void 0, !0)
|
|
65
|
-
]),
|
|
66
|
-
e.image || c(l) ? (t(), n("div", P, [
|
|
67
|
-
a("div", C, [
|
|
68
|
-
m[0] || (m[0] = a("div", { class: "image-bg" }, null, -1)),
|
|
69
|
-
r(s.$slots, "home-hero-image", {}, () => [
|
|
70
|
-
e.image ? (t(), v(L, {
|
|
71
|
-
key: 0,
|
|
72
|
-
class: "image-src",
|
|
73
|
-
image: e.image
|
|
74
|
-
}, null, 8, ["image"])) : o("", !0)
|
|
75
|
-
], !0)
|
|
76
|
-
])
|
|
77
|
-
])) : o("", !0)
|
|
78
|
-
])
|
|
79
|
-
], 2));
|
|
80
|
-
}
|
|
81
|
-
});
|
|
1
|
+
import o from "./index213.js";
|
|
2
|
+
/* empty css */
|
|
82
3
|
export {
|
|
83
|
-
|
|
4
|
+
o as default
|
|
84
5
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as m, createElementBlock as a, createCommentVNode as s, unref as l, openBlock as n, createElementVNode as c, Fragment as i, renderList as p, createBlock as r, resolveDynamicComponent as u, mergeProps as f } from "vue";
|
|
2
|
-
import { useData as _ } from "./
|
|
3
|
-
import d from "./
|
|
4
|
-
import v from "./
|
|
2
|
+
import { useData as _ } from "./index205.js";
|
|
3
|
+
import d from "./index356.js";
|
|
4
|
+
import v from "./index357.js";
|
|
5
5
|
const k = {
|
|
6
6
|
key: 0,
|
|
7
7
|
"aria-labelledby": "main-nav-aria-label",
|
package/dist/index337.js
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
|
-
import o from "
|
|
2
|
-
|
|
1
|
+
import { defineComponent as r, createElementBlock as t, createCommentVNode as o, unref as a, openBlock as c, createVNode as p } from "vue";
|
|
2
|
+
import { useData as n } from "./index205.js";
|
|
3
|
+
import m from "./index220.js";
|
|
4
|
+
const s = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "VPNavBarAppearance"
|
|
7
|
+
}, V = /* @__PURE__ */ r({
|
|
8
|
+
__name: "VPNavBarAppearance",
|
|
9
|
+
setup(_) {
|
|
10
|
+
const { site: e } = n();
|
|
11
|
+
return (f, i) => a(e).appearance && a(e).appearance !== "force-dark" && a(e).appearance !== "force-auto" ? (c(), t("div", s, [
|
|
12
|
+
p(m)
|
|
13
|
+
])) : o("", !0);
|
|
14
|
+
}
|
|
15
|
+
});
|
|
3
16
|
export {
|
|
4
|
-
|
|
17
|
+
V as default
|
|
5
18
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as s, createBlock as o, createCommentVNode as m, unref as e, openBlock as n, withCtx as c, createElementVNode as l, createElementBlock as u, toDisplayString as g, Fragment as p, renderList as d } from "vue";
|
|
2
|
-
import _ from "./
|
|
3
|
-
import f from "./
|
|
4
|
-
import { useData as k } from "./
|
|
5
|
-
import { useLangs as h } from "./
|
|
2
|
+
import _ from "./index353.js";
|
|
3
|
+
import f from "./index354.js";
|
|
4
|
+
import { useData as k } from "./index205.js";
|
|
5
|
+
import { useLangs as h } from "./index221.js";
|
|
6
6
|
const L = { class: "items" }, V = { class: "title" }, D = /* @__PURE__ */ s({
|
|
7
7
|
__name: "VPNavBarTranslations",
|
|
8
8
|
setup(b) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as n, createBlock as a, createCommentVNode as r, unref as o, openBlock as s } from "vue";
|
|
2
|
-
import { useData as t } from "./
|
|
2
|
+
import { useData as t } from "./index205.js";
|
|
3
3
|
import i from "./index16.js";
|
|
4
4
|
const _ = /* @__PURE__ */ n({
|
|
5
5
|
__name: "VPNavBarSocialLinks",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as v, computed as u, createBlock as m, createCommentVNode as o, openBlock as t, withCtx as f, createElementBlock as i, unref as e, createElementVNode as a, toDisplayString as d, Fragment as g, renderList as L, createVNode as _ } from "vue";
|
|
2
|
-
import V from "./
|
|
3
|
-
import x from "./
|
|
4
|
-
import y from "./
|
|
2
|
+
import V from "./index353.js";
|
|
3
|
+
import x from "./index354.js";
|
|
4
|
+
import y from "./index220.js";
|
|
5
5
|
import b from "./index16.js";
|
|
6
|
-
import { useData as P } from "./
|
|
7
|
-
import { useLangs as B } from "./
|
|
6
|
+
import { useData as P } from "./index205.js";
|
|
7
|
+
import { useLangs as B } from "./index221.js";
|
|
8
8
|
const E = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "group translations"
|
package/dist/index345.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineComponent as n, inject as r, ref as s, watchPostEffect as p, createBlock as u, openBlock as h, unref as o, withCtx as m, createElementVNode as l } from "vue";
|
|
2
|
+
import { useData as f } from "./index205.js";
|
|
3
|
+
import d from "./index355.js";
|
|
4
|
+
const g = /* @__PURE__ */ n({
|
|
5
|
+
__name: "VPSwitchAppearance",
|
|
6
|
+
setup(w) {
|
|
7
|
+
const { isDark: e, theme: t } = f(), i = r("toggle-appearance", () => {
|
|
8
|
+
e.value = !e.value;
|
|
9
|
+
}), a = s("");
|
|
10
|
+
return p(() => {
|
|
11
|
+
a.value = e.value ? t.value.lightModeSwitchTitle || "Switch to light theme" : t.value.darkModeSwitchTitle || "Switch to dark theme";
|
|
12
|
+
}), (k, c) => (h(), u(d, {
|
|
13
|
+
title: a.value,
|
|
14
|
+
class: "VPSwitchAppearance",
|
|
15
|
+
"aria-checked": o(e),
|
|
16
|
+
onClick: o(i)
|
|
17
|
+
}, {
|
|
18
|
+
default: m(() => [...c[0] || (c[0] = [
|
|
19
|
+
l("span", { class: "vpi-sun sun" }, null, -1),
|
|
20
|
+
l("span", { class: "vpi-moon moon" }, null, -1)
|
|
21
|
+
])]),
|
|
22
|
+
_: 1
|
|
23
|
+
}, 8, ["title", "aria-checked", "onClick"]));
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
g as default
|
|
28
|
+
};
|
package/dist/index347.js
ADDED
package/dist/index348.js
CHANGED
|
@@ -1,28 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useData as f } from "./index272.js";
|
|
3
|
-
import d from "./index359.js";
|
|
4
|
-
const g = /* @__PURE__ */ n({
|
|
5
|
-
__name: "VPSwitchAppearance",
|
|
6
|
-
setup(w) {
|
|
7
|
-
const { isDark: e, theme: t } = f(), i = r("toggle-appearance", () => {
|
|
8
|
-
e.value = !e.value;
|
|
9
|
-
}), a = s("");
|
|
10
|
-
return p(() => {
|
|
11
|
-
a.value = e.value ? t.value.lightModeSwitchTitle || "Switch to light theme" : t.value.darkModeSwitchTitle || "Switch to dark theme";
|
|
12
|
-
}), (k, c) => (h(), u(d, {
|
|
13
|
-
title: a.value,
|
|
14
|
-
class: "VPSwitchAppearance",
|
|
15
|
-
"aria-checked": o(e),
|
|
16
|
-
onClick: o(i)
|
|
17
|
-
}, {
|
|
18
|
-
default: m(() => [...c[0] || (c[0] = [
|
|
19
|
-
l("span", { class: "vpi-sun sun" }, null, -1),
|
|
20
|
-
l("span", { class: "vpi-moon moon" }, null, -1)
|
|
21
|
-
])]),
|
|
22
|
-
_: 1
|
|
23
|
-
}, 8, ["title", "aria-checked", "onClick"]));
|
|
24
|
-
}
|
|
25
|
-
});
|
|
1
|
+
import f from "./index292.js";
|
|
26
2
|
export {
|
|
27
|
-
|
|
3
|
+
f as default
|
|
28
4
|
};
|
package/dist/index349.js
ADDED
package/dist/index350.js
CHANGED
|
@@ -1,48 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { getHeaders as E } from "./index371.js";
|
|
6
|
-
import { useCloseSidebarOnEscape as H } from "./index357.js";
|
|
7
|
-
const d = f([]), n = f([]), v = f(!1);
|
|
8
|
-
function G() {
|
|
9
|
-
const { frontmatter: e, theme: u } = h(), r = t(() => !!(e.value.isHome ?? e.value.layout === "home")), a = t(() => e.value.sidebar !== !1 && n.value.length > 0 && !r.value), i = t(() => a.value && v.value), l = t(() => a.value ? S(n.value) : []), s = t(() => r.value ? !1 : e.value.aside != null ? !!e.value.aside : u.value.aside !== !1), o = t(() => s.value ? e.value.aside == null ? u.value.aside === "left" : e.value.aside === "left" : !1), p = t(() => d.value.length > 0);
|
|
10
|
-
return {
|
|
11
|
-
isHome: r,
|
|
12
|
-
sidebar: m(n),
|
|
13
|
-
sidebarGroups: l,
|
|
14
|
-
hasSidebar: a,
|
|
15
|
-
isSidebarEnabled: i,
|
|
16
|
-
hasAside: s,
|
|
17
|
-
leftAside: o,
|
|
18
|
-
headers: m(d),
|
|
19
|
-
hasLocalNav: p
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
function I({ closeSidebar: e }) {
|
|
23
|
-
const { frontmatter: u, page: r, theme: a } = h();
|
|
24
|
-
c(
|
|
25
|
-
() => [r.value.relativePath, a.value.sidebar],
|
|
26
|
-
([l, s]) => {
|
|
27
|
-
const o = s ? g(s, l) : [];
|
|
28
|
-
JSON.stringify(o) !== JSON.stringify(n.value) && (n.value = o);
|
|
29
|
-
},
|
|
30
|
-
{ immediate: !0, deep: !0, flush: "sync" }
|
|
31
|
-
), b(() => {
|
|
32
|
-
d.value = E(u.value.outline ?? a.value.outline);
|
|
33
|
-
}), w && (v.value = window.innerWidth >= 960, window.addEventListener(
|
|
34
|
-
"resize",
|
|
35
|
-
() => {
|
|
36
|
-
v.value = window.innerWidth >= 960;
|
|
37
|
-
},
|
|
38
|
-
{ passive: !0 }
|
|
39
|
-
));
|
|
40
|
-
const i = y();
|
|
41
|
-
c(() => i.path, e), H(e);
|
|
42
|
-
}
|
|
43
|
-
const J = Symbol("layout-info");
|
|
1
|
+
import { getDefaultExportFromCjs as r } from "./index399.js";
|
|
2
|
+
import { __require as e } from "./index370.js";
|
|
3
|
+
var o = e();
|
|
4
|
+
const a = /* @__PURE__ */ r(o);
|
|
44
5
|
export {
|
|
45
|
-
|
|
46
|
-
I as registerWatchers,
|
|
47
|
-
G as useLayout
|
|
6
|
+
a as default
|
|
48
7
|
};
|
package/dist/index351.js
CHANGED
|
@@ -1,7 +1,48 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { onContentUpdated as b, inBrowser as w, useRoute as y } from "vitepress";
|
|
2
|
+
import { watch as c, shallowRef as f, computed as t, shallowReadonly as m } from "vue";
|
|
3
|
+
import { getSidebar as g, getSidebarGroups as S } from "./index372.js";
|
|
4
|
+
import { useData as h } from "./index205.js";
|
|
5
|
+
import { getHeaders as E } from "./index373.js";
|
|
6
|
+
import { useCloseSidebarOnEscape as H } from "./index369.js";
|
|
7
|
+
const d = f([]), n = f([]), v = f(!1);
|
|
8
|
+
function G() {
|
|
9
|
+
const { frontmatter: e, theme: u } = h(), r = t(() => !!(e.value.isHome ?? e.value.layout === "home")), a = t(() => e.value.sidebar !== !1 && n.value.length > 0 && !r.value), i = t(() => a.value && v.value), l = t(() => a.value ? S(n.value) : []), s = t(() => r.value ? !1 : e.value.aside != null ? !!e.value.aside : u.value.aside !== !1), o = t(() => s.value ? e.value.aside == null ? u.value.aside === "left" : e.value.aside === "left" : !1), p = t(() => d.value.length > 0);
|
|
10
|
+
return {
|
|
11
|
+
isHome: r,
|
|
12
|
+
sidebar: m(n),
|
|
13
|
+
sidebarGroups: l,
|
|
14
|
+
hasSidebar: a,
|
|
15
|
+
isSidebarEnabled: i,
|
|
16
|
+
hasAside: s,
|
|
17
|
+
leftAside: o,
|
|
18
|
+
headers: m(d),
|
|
19
|
+
hasLocalNav: p
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function I({ closeSidebar: e }) {
|
|
23
|
+
const { frontmatter: u, page: r, theme: a } = h();
|
|
24
|
+
c(
|
|
25
|
+
() => [r.value.relativePath, a.value.sidebar],
|
|
26
|
+
([l, s]) => {
|
|
27
|
+
const o = s ? g(s, l) : [];
|
|
28
|
+
JSON.stringify(o) !== JSON.stringify(n.value) && (n.value = o);
|
|
29
|
+
},
|
|
30
|
+
{ immediate: !0, deep: !0, flush: "sync" }
|
|
31
|
+
), b(() => {
|
|
32
|
+
d.value = E(u.value.outline ?? a.value.outline);
|
|
33
|
+
}), w && (v.value = window.innerWidth >= 960, window.addEventListener(
|
|
34
|
+
"resize",
|
|
35
|
+
() => {
|
|
36
|
+
v.value = window.innerWidth >= 960;
|
|
37
|
+
},
|
|
38
|
+
{ passive: !0 }
|
|
39
|
+
));
|
|
40
|
+
const i = y();
|
|
41
|
+
c(() => i.path, e), H(e);
|
|
42
|
+
}
|
|
43
|
+
const J = Symbol("layout-info");
|
|
5
44
|
export {
|
|
6
|
-
|
|
45
|
+
J as layoutInfoInjectionKey,
|
|
46
|
+
I as registerWatchers,
|
|
47
|
+
G as useLayout
|
|
7
48
|
};
|
package/dist/index352.js
CHANGED
|
@@ -1,7 +1,72 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { onMounted as m, onUnmounted as c } from "vue";
|
|
2
|
+
import { throttleAndDebounce as l } from "./index211.js";
|
|
3
|
+
const u = {
|
|
4
|
+
xmini: [[0, 2]],
|
|
5
|
+
mini: [],
|
|
6
|
+
small: [
|
|
7
|
+
[920, 6],
|
|
8
|
+
[768, 5],
|
|
9
|
+
[640, 4],
|
|
10
|
+
[480, 3],
|
|
11
|
+
[0, 2]
|
|
12
|
+
],
|
|
13
|
+
medium: [
|
|
14
|
+
[960, 5],
|
|
15
|
+
[832, 4],
|
|
16
|
+
[640, 3],
|
|
17
|
+
[480, 2]
|
|
18
|
+
],
|
|
19
|
+
big: [
|
|
20
|
+
[832, 3],
|
|
21
|
+
[640, 2]
|
|
22
|
+
]
|
|
23
|
+
};
|
|
24
|
+
function G({
|
|
25
|
+
el: t,
|
|
26
|
+
size: n = "medium"
|
|
27
|
+
}) {
|
|
28
|
+
const e = l(o, 100);
|
|
29
|
+
m(() => {
|
|
30
|
+
o(), window.addEventListener("resize", e);
|
|
31
|
+
}), c(() => {
|
|
32
|
+
window.removeEventListener("resize", e);
|
|
33
|
+
});
|
|
34
|
+
function o() {
|
|
35
|
+
a(t.value, n);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function a(t, n) {
|
|
39
|
+
const e = t.children.length, o = t.querySelectorAll(".vp-sponsor-grid-item:not(.empty)").length, r = f(t, n, o);
|
|
40
|
+
g(t, r, e, o);
|
|
41
|
+
}
|
|
42
|
+
function f(t, n, e) {
|
|
43
|
+
const o = u[n], r = window.innerWidth;
|
|
44
|
+
let i = 1;
|
|
45
|
+
return o.some(([s, d]) => {
|
|
46
|
+
if (r >= s)
|
|
47
|
+
return i = e < d ? e : d, !0;
|
|
48
|
+
}), p(t, i), i;
|
|
49
|
+
}
|
|
50
|
+
function p(t, n) {
|
|
51
|
+
t.dataset.vpGrid = String(n);
|
|
52
|
+
}
|
|
53
|
+
function g(t, n, e, o) {
|
|
54
|
+
const r = e - o, i = o % n, s = i === 0 ? i : n - i;
|
|
55
|
+
v(t, s - r);
|
|
56
|
+
}
|
|
57
|
+
function v(t, n) {
|
|
58
|
+
n !== 0 && (n > 0 ? S(t, n) : h(t, n * -1));
|
|
59
|
+
}
|
|
60
|
+
function S(t, n) {
|
|
61
|
+
for (let e = 0; e < n; e++) {
|
|
62
|
+
const o = document.createElement("div");
|
|
63
|
+
o.classList.add("vp-sponsor-grid-item", "empty"), t.append(o);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
function h(t, n) {
|
|
67
|
+
for (let e = 0; e < n; e++)
|
|
68
|
+
t.removeChild(t.lastElementChild);
|
|
69
|
+
}
|
|
5
70
|
export {
|
|
6
|
-
|
|
71
|
+
G as useSponsorsGrid
|
|
7
72
|
};
|
package/dist/index353.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import o from "./
|
|
1
|
+
import o from "./index374.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "./index95.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3888a578"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
package/dist/index354.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import o from "./
|
|
1
|
+
import o from "./index376.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "./index95.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fe0e1463"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
package/dist/index355.js
CHANGED
|
@@ -1,7 +1,24 @@
|
|
|
1
|
-
import o from "
|
|
1
|
+
import { createElementBlock as t, openBlock as o, createElementVNode as s, createCommentVNode as c, renderSlot as n } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "./index95.js";
|
|
4
|
-
const
|
|
4
|
+
const a = {}, d = {
|
|
5
|
+
class: "VPSwitch",
|
|
6
|
+
type: "button",
|
|
7
|
+
role: "switch"
|
|
8
|
+
}, l = { class: "check" }, _ = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "icon"
|
|
11
|
+
};
|
|
12
|
+
function i(e, f) {
|
|
13
|
+
return o(), t("button", d, [
|
|
14
|
+
s("span", l, [
|
|
15
|
+
e.$slots.default ? (o(), t("span", _, [
|
|
16
|
+
n(e.$slots, "default", {}, void 0, !0)
|
|
17
|
+
])) : c("", !0)
|
|
18
|
+
])
|
|
19
|
+
]);
|
|
20
|
+
}
|
|
21
|
+
const h = /* @__PURE__ */ r(a, [["render", i], ["__scopeId", "data-v-f9811a8e"]]);
|
|
5
22
|
export {
|
|
6
|
-
|
|
23
|
+
h as default
|
|
7
24
|
};
|
package/dist/index356.js
CHANGED
|
@@ -1,7 +1,32 @@
|
|
|
1
|
-
import o from "
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as o, computed as a, createBlock as r, openBlock as c, withCtx as m, createElementVNode as l } from "vue";
|
|
2
|
+
import { useData as s } from "./index205.js";
|
|
3
|
+
import f from "./index8.js";
|
|
4
|
+
const p = ["innerHTML"], v = /* @__PURE__ */ o({
|
|
5
|
+
__name: "VPNavBarMenuLink",
|
|
6
|
+
props: {
|
|
7
|
+
item: {}
|
|
8
|
+
},
|
|
9
|
+
setup(e) {
|
|
10
|
+
const t = e, { page: n } = s(), i = a(
|
|
11
|
+
() => typeof t.item.link == "function" ? t.item.link(n.value) : t.item.link
|
|
12
|
+
);
|
|
13
|
+
return (u, x) => (c(), r(f, {
|
|
14
|
+
class: "flex items-center px-3 py-2 text-base font-sans text-primary dark:text-white hover:opacity-70 transition-opacity whitespace-nowrap overflow-hidden text-ellipsis",
|
|
15
|
+
href: i.value,
|
|
16
|
+
target: e.item.target,
|
|
17
|
+
rel: e.item.rel,
|
|
18
|
+
"no-icon": e.item.noIcon,
|
|
19
|
+
tabindex: "0"
|
|
20
|
+
}, {
|
|
21
|
+
default: m(() => [
|
|
22
|
+
l("span", {
|
|
23
|
+
innerHTML: e.item.text
|
|
24
|
+
}, null, 8, p)
|
|
25
|
+
]),
|
|
26
|
+
_: 1
|
|
27
|
+
}, 8, ["href", "target", "rel", "no-icon"]));
|
|
28
|
+
}
|
|
29
|
+
});
|
|
5
30
|
export {
|
|
6
|
-
|
|
31
|
+
v as default
|
|
7
32
|
};
|
package/dist/index357.js
CHANGED
|
@@ -1,64 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { defineComponent as u, computed as l, createBlock as m, openBlock as s, normalizeClass as f, unref as c } from "vue";
|
|
2
|
+
import { useData as p } from "./index205.js";
|
|
3
|
+
import { isActive as r } from "./index274.js";
|
|
4
|
+
import v from "./index353.js";
|
|
5
|
+
const B = /* @__PURE__ */ u({
|
|
6
|
+
__name: "VPNavBarMenuGroup",
|
|
7
|
+
props: {
|
|
8
|
+
item: {}
|
|
9
|
+
},
|
|
10
|
+
setup(e) {
|
|
11
|
+
const n = e, { page: i } = p(), o = (t) => "component" in t ? !1 : "link" in t ? r(
|
|
12
|
+
i.value.relativePath,
|
|
13
|
+
typeof t.link == "function" ? t.link(i.value) : t.link,
|
|
14
|
+
!!n.item.activeMatch
|
|
15
|
+
) : t.items.some(o), a = l(() => o(n.item));
|
|
16
|
+
return (t, h) => (s(), m(v, {
|
|
17
|
+
class: f({
|
|
18
|
+
VPNavBarMenuGroup: !0,
|
|
19
|
+
active: c(r)(c(i).relativePath, e.item.activeMatch, !!e.item.activeMatch) || a.value
|
|
20
|
+
}),
|
|
21
|
+
button: e.item.text,
|
|
22
|
+
items: e.item.items
|
|
23
|
+
}, null, 8, ["class", "button", "items"]));
|
|
17
24
|
}
|
|
18
|
-
}
|
|
19
|
-
function S() {
|
|
20
|
-
function e() {
|
|
21
|
-
l.value = !0;
|
|
22
|
-
}
|
|
23
|
-
function t() {
|
|
24
|
-
l.value = !1;
|
|
25
|
-
}
|
|
26
|
-
function a() {
|
|
27
|
-
l.value ? t() : e();
|
|
28
|
-
}
|
|
29
|
-
return {
|
|
30
|
-
isOpen: l,
|
|
31
|
-
open: e,
|
|
32
|
-
close: t,
|
|
33
|
-
toggle: a
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
function I(e) {
|
|
37
|
-
const { page: t, hash: a } = w(), n = i(!1), s = o(() => e.value.collapsed != null), p = o(() => !!e.value.link), u = i(!1), c = () => {
|
|
38
|
-
u.value = g(t.value.relativePath, e.value.link);
|
|
39
|
-
};
|
|
40
|
-
k([t, e, a], c), v(c);
|
|
41
|
-
const r = o(() => u.value ? !0 : e.value.items ? L(t.value.relativePath, e.value.items) : !1), d = o(() => !!(e.value.items && e.value.items.length));
|
|
42
|
-
f(() => {
|
|
43
|
-
n.value = !!(s.value && e.value.collapsed);
|
|
44
|
-
}), m(() => {
|
|
45
|
-
(u.value || r.value) && (n.value = !1);
|
|
46
|
-
});
|
|
47
|
-
function h() {
|
|
48
|
-
s.value && (n.value = !n.value);
|
|
49
|
-
}
|
|
50
|
-
return {
|
|
51
|
-
collapsed: n,
|
|
52
|
-
collapsible: s,
|
|
53
|
-
isLink: p,
|
|
54
|
-
isActiveLink: u,
|
|
55
|
-
hasActiveLink: r,
|
|
56
|
-
hasChildren: d,
|
|
57
|
-
toggle: h
|
|
58
|
-
};
|
|
59
|
-
}
|
|
25
|
+
});
|
|
60
26
|
export {
|
|
61
|
-
|
|
62
|
-
S as useSidebarControl,
|
|
63
|
-
I as useSidebarItemControl
|
|
27
|
+
B as default
|
|
64
28
|
};
|
package/dist/index358.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
1
|
+
import o from "./index395.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import a from "./index95.js";
|
|
4
|
+
const e = /* @__PURE__ */ a(o, [["__scopeId", "data-v-3ef64b6a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
package/dist/index359.js
CHANGED
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */
|
|
3
|
-
import r from "./index95.js";
|
|
4
|
-
const a = {}, d = {
|
|
5
|
-
class: "VPSwitch",
|
|
6
|
-
type: "button",
|
|
7
|
-
role: "switch"
|
|
8
|
-
}, l = { class: "check" }, _ = {
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "icon"
|
|
11
|
-
};
|
|
12
|
-
function i(e, f) {
|
|
13
|
-
return o(), t("button", d, [
|
|
14
|
-
s("span", l, [
|
|
15
|
-
e.$slots.default ? (o(), t("span", _, [
|
|
16
|
-
n(e.$slots, "default", {}, void 0, !0)
|
|
17
|
-
])) : c("", !0)
|
|
18
|
-
])
|
|
19
|
-
]);
|
|
20
|
-
}
|
|
21
|
-
const h = /* @__PURE__ */ r(a, [["render", i], ["__scopeId", "data-v-f9811a8e"]]);
|
|
1
|
+
import f from "./index397.js";
|
|
22
2
|
export {
|
|
23
|
-
|
|
3
|
+
f as default
|
|
24
4
|
};
|