@voidzero-dev/vitepress-theme 0.1.49 → 0.1.50
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/index100.js +12 -12
- package/dist/index102.js +5 -5
- package/dist/index104.js +5 -5
- package/dist/index108.js +4 -4
- package/dist/index122.js +5 -5
- package/dist/index131.js +4 -4
- package/dist/index138.js +2 -2
- package/dist/index140.js +1 -1
- package/dist/index150.js +1 -1
- package/dist/index151.js +28 -26
- package/dist/index152.js +41 -29
- package/dist/index153.js +5 -26
- package/dist/index154.js +3 -26
- package/dist/index155.js +5 -26
- package/dist/index156.js +16 -16
- package/dist/index157.js +28 -195
- package/dist/index158.js +22 -34
- package/dist/index159.js +26 -2
- package/dist/index160.js +26 -5
- package/dist/index161.js +26 -28
- package/dist/index162.js +196 -41
- package/dist/index163.js +2 -2
- package/dist/index164.js +2 -2
- package/dist/index165.js +1 -1
- package/dist/index166.js +2 -78
- package/dist/index167.js +4 -0
- package/dist/index168.js +2 -5
- package/dist/index169.js +1 -4
- package/dist/index170.js +2 -5
- package/dist/index171.js +2 -5
- package/dist/index172.js +1 -1
- package/dist/index173.js +1 -1
- package/dist/index174.js +1 -1
- package/dist/index175.js +1 -1
- package/dist/index176.js +2 -2
- package/dist/index177.js +2 -2
- package/dist/index178.js +4 -0
- package/dist/index179.js +2 -3
- package/dist/index180.js +2 -5
- package/dist/index181.js +2 -5
- package/dist/index182.js +1 -1
- package/dist/index183.js +2 -2
- package/dist/index185.js +135 -2
- package/dist/index187.js +65536 -2
- package/dist/index188.js +5 -2
- package/dist/index189.js +2 -2
- package/dist/index190.js +2 -2
- package/dist/index191.js +2 -2
- package/dist/index192.js +2 -2
- package/dist/index193.js +2 -2
- package/dist/index194.js +2 -52
- package/dist/index195.js +78 -2
- package/dist/index197.js +5 -2
- package/dist/index198.js +4 -1
- package/dist/index199.js +5 -2
- package/dist/index2.js +4 -3
- package/dist/index200.js +5 -2
- package/dist/index201.js +2 -2
- package/dist/index202.js +2 -2
- package/dist/index203.js +5 -2
- package/dist/index204.js +52 -2
- package/dist/index205.js +2 -2
- package/dist/index206.js +2 -2
- package/dist/index207.js +2 -5
- package/dist/index208.js +2 -2
- package/dist/index209.js +5 -2
- package/dist/index210.js +38 -2
- package/dist/index211.js +2 -2
- package/dist/index212.js +2 -2
- package/dist/index213.js +2 -135
- package/dist/index214.js +4 -0
- package/dist/index215.js +2 -2
- package/dist/index216.js +34 -2
- package/dist/index217.js +1 -1
- package/dist/index218.js +2 -65536
- package/dist/index219.js +2 -5
- package/dist/index220.js +1 -1
- package/dist/index221.js +1 -1
- package/dist/index222.js +2 -34
- package/dist/index223.js +2 -2
- package/dist/index224.js +2 -2
- package/dist/index225.js +1 -1
- package/dist/index226.js +2 -2
- package/dist/index227.js +2 -2
- package/dist/index228.js +1 -1
- package/dist/index229.js +2 -2
- package/dist/index23.js +7 -7
- package/dist/index230.js +82 -2
- package/dist/index231.js +71 -2
- package/dist/index232.js +1 -1
- package/dist/index233.js +1 -1
- package/dist/index234.js +1 -1
- package/dist/index235.js +1 -1
- package/dist/index236.js +1 -1
- package/dist/index237.js +1 -1
- package/dist/index238.js +2 -71
- package/dist/index239.js +73 -72
- package/dist/index240.js +3 -83
- package/dist/index241.js +35 -3
- package/dist/{index244.js → index243.js} +1 -1
- package/dist/{index246.js → index245.js} +4 -4
- package/dist/{index248.js → index247.js} +1 -1
- package/dist/index249.js +5 -0
- package/dist/index250.js +301 -7193
- package/dist/index251.js +2 -1735
- package/dist/index252.js +2 -129
- package/dist/index253.js +6 -0
- package/dist/index254.js +7207 -3
- package/dist/index255.js +1684 -395
- package/dist/index256.js +129 -2
- package/dist/index258.js +2 -2
- package/dist/index259.js +444 -68
- package/dist/index260.js +5 -4
- package/dist/index261.js +2 -5
- package/dist/index262.js +29 -5
- package/dist/index264.js +1 -1
- package/dist/index265.js +3 -3
- package/dist/index266.js +1 -1
- package/dist/index267.js +4 -4
- package/dist/index268.js +5 -2
- package/dist/index269.js +31 -28
- package/dist/index270.js +72 -0
- package/dist/index277.js +2 -2
- package/dist/index278.js +2 -2
- package/dist/index279.js +2 -2
- package/dist/index28.js +1 -1
- package/dist/index280.js +3 -62
- package/dist/{index289.js → index281.js} +5 -5
- package/dist/{index291.js → index283.js} +22 -23
- package/dist/index284.js +26 -2
- package/dist/index286.js +2 -26
- package/dist/index288.js +62 -3
- package/dist/index29.js +2 -2
- package/dist/{index282.js → index290.js} +1 -1
- package/dist/index294.js +5 -5
- package/dist/index296.js +1 -1
- package/dist/index298.js +2 -2
- package/dist/index30.js +4 -4
- package/dist/index300.js +1 -1
- package/dist/index302.js +1 -1
- package/dist/index304.js +20 -9
- package/dist/index305.js +16 -27
- package/dist/index306.js +19 -5
- package/dist/index307.js +9 -21
- package/dist/index308.js +21 -20
- package/dist/index309.js +27 -16
- package/dist/index310.js +5 -19
- package/dist/index311.js +5 -35
- package/dist/index312.js +7 -0
- package/dist/index313.js +4 -4
- package/dist/index314.js +3 -3
- package/dist/index315.js +2 -2
- package/dist/index316.js +13 -5
- package/dist/index318.js +37 -0
- package/dist/index320.js +78 -23
- package/dist/index322.js +26 -22
- package/dist/index324.js +22 -75
- package/dist/index326.js +72 -45
- package/dist/index328.js +47 -80
- package/dist/index330.js +1 -1
- package/dist/index331.js +3 -3
- package/dist/index332.js +26 -5
- package/dist/index334.js +5 -26
- package/dist/index335.js +7 -0
- package/dist/index336.js +5 -98
- package/dist/index337.js +31 -0
- package/dist/{index338.js → index339.js} +3 -3
- package/dist/{index340.js → index341.js} +4 -4
- package/dist/index343.js +92 -23
- package/dist/index345.js +11 -5
- package/dist/index346.js +28 -14
- package/dist/index347.js +5 -11
- package/dist/index348.js +5 -28
- package/dist/index349.js +13 -4
- package/dist/index350.js +27 -37
- package/dist/index352.js +39 -2
- package/dist/index354.js +4 -0
- package/dist/index356.js +2 -2
- package/dist/index42.js +4 -4
- package/dist/index48.js +4 -4
- package/dist/index50.js +2 -2
- package/dist/index52.js +8 -8
- package/dist/index54.js +2 -2
- package/dist/index59.js +1 -1
- package/dist/index6.js +1 -1
- package/dist/index64.js +1 -1
- package/dist/index7.js +2 -2
- package/dist/index70.js +1 -1
- package/dist/index8.js +2 -2
- package/dist/index80.js +1 -1
- package/dist/index9.js +1 -1
- package/dist/index94.js +2 -2
- package/dist/index96.js +8 -8
- package/package.json +1 -1
- package/dist/index184.js +0 -4
- package/dist/index186.js +0 -4
- package/dist/index196.js +0 -4
- package/dist/index242.js +0 -37
- package/dist/index257.js +0 -317
- package/dist/index263.js +0 -34
- package/dist/index317.js +0 -15
- package/dist/index319.js +0 -7
- package/dist/index333.js +0 -7
- package/dist/index342.js +0 -7
- package/dist/index353.js +0 -31
- /package/dist/{index285.js → index287.js} +0 -0
package/dist/index262.js
CHANGED
|
@@ -1,7 +1,31 @@
|
|
|
1
|
-
import o from "
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { defineComponent as n, createElementBlock as r, openBlock as s, unref as o, createElementVNode as t, toDisplayString as c } from "vue";
|
|
2
|
+
import { createSearchTranslate as l } from "./index304.js";
|
|
3
|
+
const u = ["aria-label"], i = { class: "DocSearch-Button-Container" }, h = { class: "DocSearch-Button-Placeholder" }, B = /* @__PURE__ */ n({
|
|
4
|
+
__name: "VPNavBarSearchButton",
|
|
5
|
+
setup(b) {
|
|
6
|
+
const e = l({
|
|
7
|
+
button: {
|
|
8
|
+
buttonText: "Search",
|
|
9
|
+
buttonAriaLabel: "Search"
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
return (S, a) => (s(), r("button", {
|
|
13
|
+
type: "button",
|
|
14
|
+
"aria-label": o(e)("button.buttonAriaLabel"),
|
|
15
|
+
"aria-keyshortcuts": "/ control+k meta+k",
|
|
16
|
+
class: "DocSearch DocSearch-Button"
|
|
17
|
+
}, [
|
|
18
|
+
t("span", i, [
|
|
19
|
+
a[0] || (a[0] = t("span", { class: "vpi-search DocSearch-Search-Icon" }, null, -1)),
|
|
20
|
+
t("span", h, c(o(e)("button.buttonText")), 1)
|
|
21
|
+
]),
|
|
22
|
+
a[1] || (a[1] = t("span", { class: "DocSearch-Button-Keys" }, [
|
|
23
|
+
t("kbd", { class: "DocSearch-Button-Key" }),
|
|
24
|
+
t("kbd", { class: "DocSearch-Button-Key" })
|
|
25
|
+
], -1))
|
|
26
|
+
], 8, u));
|
|
27
|
+
}
|
|
28
|
+
});
|
|
5
29
|
export {
|
|
6
|
-
|
|
30
|
+
B as default
|
|
7
31
|
};
|
package/dist/index264.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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 "./
|
|
2
|
+
import { useData as s } from "./index154.js";
|
|
3
3
|
import f from "./index8.js";
|
|
4
4
|
const p = ["innerHTML"], y = /* @__PURE__ */ o({
|
|
5
5
|
__name: "VPNavBarMenuLink",
|
package/dist/index265.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
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 "./
|
|
3
|
-
import { isActive as r } from "./
|
|
4
|
-
import v from "./
|
|
2
|
+
import { useData as p } from "./index154.js";
|
|
3
|
+
import { isActive as r } from "./index152.js";
|
|
4
|
+
import v from "./index267.js";
|
|
5
5
|
const B = /* @__PURE__ */ u({
|
|
6
6
|
__name: "VPNavBarMenuGroup",
|
|
7
7
|
props: {
|
package/dist/index266.js
CHANGED
package/dist/index267.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import o from "./
|
|
1
|
+
import o from "./index288.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import t from "./index82.js";
|
|
4
|
+
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-88044d44"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
_ as default
|
|
7
7
|
};
|
package/dist/index268.js
CHANGED
package/dist/index269.js
CHANGED
|
@@ -1,31 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { computed as i } from "vue";
|
|
2
|
+
import { ensureStartingSlash as u } from "./index151.js";
|
|
3
|
+
import { useData as m } from "./index154.js";
|
|
4
|
+
function h({ correspondingLink: n = !1 } = {}) {
|
|
5
|
+
const { site: e, localeIndex: l, page: t, theme: s, hash: c } = m(), r = i(() => ({
|
|
6
|
+
label: e.value.locales[l.value]?.label,
|
|
7
|
+
link: e.value.locales[l.value]?.link || (l.value === "root" ? "/" : `/${l.value}/`)
|
|
8
|
+
}));
|
|
9
|
+
return { localeLinks: i(
|
|
10
|
+
() => Object.entries(e.value.locales).flatMap(
|
|
11
|
+
([o, a]) => r.value.label === a.label ? [] : {
|
|
12
|
+
text: a.label,
|
|
13
|
+
link: p(
|
|
14
|
+
a.link || (o === "root" ? "/" : `/${o}/`),
|
|
15
|
+
s.value.i18nRouting !== !1 && n,
|
|
16
|
+
t.value.relativePath.slice(
|
|
17
|
+
r.value.link.length - 1
|
|
18
|
+
),
|
|
19
|
+
!e.value.cleanUrls
|
|
20
|
+
) + c.value,
|
|
21
|
+
lang: a.lang,
|
|
22
|
+
dir: a.dir
|
|
10
23
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
a[0] || (a[0] = t("span", { class: "vpi-search DocSearch-Search-Icon" }, null, -1)),
|
|
20
|
-
t("span", h, c(o(e)("button.buttonText")), 1)
|
|
21
|
-
]),
|
|
22
|
-
a[1] || (a[1] = t("span", { class: "DocSearch-Button-Keys" }, [
|
|
23
|
-
t("kbd", { class: "DocSearch-Button-Key" }),
|
|
24
|
-
t("kbd", { class: "DocSearch-Button-Key" })
|
|
25
|
-
], -1))
|
|
26
|
-
], 8, u));
|
|
27
|
-
}
|
|
28
|
-
});
|
|
24
|
+
)
|
|
25
|
+
), currentLang: r };
|
|
26
|
+
}
|
|
27
|
+
function p(n, e, l, t) {
|
|
28
|
+
return e ? n.replace(/\/$/, "") + u(
|
|
29
|
+
l.replace(/(^|\/)index\.md$/, "$1").replace(/\.md$/, t ? ".html" : "")
|
|
30
|
+
) : n;
|
|
31
|
+
}
|
|
29
32
|
export {
|
|
30
|
-
|
|
33
|
+
h as useLangs
|
|
31
34
|
};
|
package/dist/index270.js
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { onMounted as m, onUnmounted as c } from "vue";
|
|
2
|
+
import { throttleAndDebounce as l } from "./index151.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
|
+
}
|
|
70
|
+
export {
|
|
71
|
+
G as useSponsorsGrid
|
|
72
|
+
};
|
package/dist/index277.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as i, computed as o, watch as k, onMounted as v, watchEffect as f, watchPostEffect as m, onUnmounted as E } from "vue";
|
|
2
|
-
import { isActive as g } from "./
|
|
2
|
+
import { isActive as g } from "./index152.js";
|
|
3
3
|
import { hasActiveLink as L } from "./index278.js";
|
|
4
|
-
import { useData as w } from "./
|
|
4
|
+
import { useData as w } from "./index154.js";
|
|
5
5
|
const l = i(!1);
|
|
6
6
|
function P(e) {
|
|
7
7
|
let t;
|
package/dist/index278.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isActive as f } from "./
|
|
2
|
-
import { ensureStartingSlash as o } from "./
|
|
1
|
+
import { isActive as f } from "./index152.js";
|
|
2
|
+
import { ensureStartingSlash as o } from "./index151.js";
|
|
3
3
|
function m(r, t) {
|
|
4
4
|
if (Array.isArray(r)) return s(r);
|
|
5
5
|
if (r == null) return [];
|
package/dist/index279.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getScrollOffset as m } from "vitepress";
|
|
2
2
|
import { onMounted as y, onUpdated as g, onUnmounted as b } from "vue";
|
|
3
|
-
import { throttleAndDebounce as A } from "./
|
|
4
|
-
import { useAside as w } from "./
|
|
3
|
+
import { throttleAndDebounce as A } from "./index151.js";
|
|
4
|
+
import { useAside as w } from "./index307.js";
|
|
5
5
|
const L = /\b(?:VPBadge|header-anchor|footnote-ref|ignore-header)\b/, d = [];
|
|
6
6
|
function E(o) {
|
|
7
7
|
return typeof o.outline == "object" && !Array.isArray(o.outline) && o.outline.label || o.outlineTitle || "On this page";
|
package/dist/index28.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, createElementBlock as s, openBlock as r, createElementVNode as e, Fragment as _, renderList as m, unref as n, normalizeClass as d, toDisplayString as u, renderSlot as f } from "vue";
|
|
2
|
-
import h from "./
|
|
2
|
+
import h from "./index177.js";
|
|
3
3
|
import { useData as g, useRoute as k } from "vitepress";
|
|
4
4
|
const x = { class: "wrapper px-6 py-7 flex items-center justify-between" }, v = { class: "flex items-center gap-10" }, y = { class: "nav" }, w = ["href"], B = { class: "flex items-center gap-6" }, b = /* @__PURE__ */ p({
|
|
5
5
|
__name: "Header",
|
package/dist/index280.js
CHANGED
|
@@ -1,64 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import b from "./index306.js";
|
|
4
|
-
const k = ["aria-expanded", "aria-label"], V = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "flex items-center gap-1 leading-normal"
|
|
7
|
-
}, C = ["innerHTML"], M = {
|
|
8
|
-
key: 1,
|
|
9
|
-
class: "vpi-more-horizontal text-xl"
|
|
10
|
-
}, h = { class: "menu" }, F = /* @__PURE__ */ c({
|
|
11
|
-
__name: "VPFlyout",
|
|
12
|
-
props: {
|
|
13
|
-
icon: {},
|
|
14
|
-
button: {},
|
|
15
|
-
label: {},
|
|
16
|
-
items: {}
|
|
17
|
-
},
|
|
18
|
-
setup(e) {
|
|
19
|
-
const n = r(!1), s = r();
|
|
20
|
-
y({ el: s, onBlur: m });
|
|
21
|
-
function m() {
|
|
22
|
-
n.value = !1;
|
|
23
|
-
}
|
|
24
|
-
return (d, t) => (l(), o("div", {
|
|
25
|
-
class: "VPFlyout relative flex items-center",
|
|
26
|
-
ref_key: "el",
|
|
27
|
-
ref: s,
|
|
28
|
-
onMouseenter: t[1] || (t[1] = (i) => n.value = !0),
|
|
29
|
-
onMouseleave: t[2] || (t[2] = (i) => n.value = !1)
|
|
30
|
-
}, [
|
|
31
|
-
a("button", {
|
|
32
|
-
type: "button",
|
|
33
|
-
class: "flex items-center px-3 py-2 text-base font-sans text-primary dark:text-white hover:opacity-70 transition-opacity",
|
|
34
|
-
"aria-haspopup": "true",
|
|
35
|
-
"aria-expanded": n.value,
|
|
36
|
-
"aria-label": e.label,
|
|
37
|
-
onClick: t[0] || (t[0] = (i) => n.value = !n.value)
|
|
38
|
-
}, [
|
|
39
|
-
e.button || e.icon ? (l(), o("span", V, [
|
|
40
|
-
e.icon ? (l(), o("span", {
|
|
41
|
-
key: 0,
|
|
42
|
-
class: f(e.icon)
|
|
43
|
-
}, null, 2)) : u("", !0),
|
|
44
|
-
e.button ? (l(), o("span", {
|
|
45
|
-
key: 1,
|
|
46
|
-
innerHTML: e.button
|
|
47
|
-
}, null, 8, C)) : u("", !0),
|
|
48
|
-
t[3] || (t[3] = a("span", { class: "vpi-chevron-down text-sm" }, null, -1))
|
|
49
|
-
])) : (l(), o("span", M))
|
|
50
|
-
], 8, k),
|
|
51
|
-
a("div", h, [
|
|
52
|
-
v(b, { items: e.items }, {
|
|
53
|
-
default: p(() => [
|
|
54
|
-
x(d.$slots, "default", {}, void 0, !0)
|
|
55
|
-
]),
|
|
56
|
-
_: 3
|
|
57
|
-
}, 8, ["items"])
|
|
58
|
-
])
|
|
59
|
-
], 544));
|
|
60
|
-
}
|
|
61
|
-
});
|
|
1
|
+
import o from "./index262.js";
|
|
2
|
+
/* empty css */
|
|
62
3
|
export {
|
|
63
|
-
|
|
4
|
+
o as default
|
|
64
5
|
};
|
|
@@ -4,11 +4,11 @@ import { useFocusTrap as Be } from "@vueuse/integrations/useFocusTrap";
|
|
|
4
4
|
import Ve from "mark.js/src/vanilla.js";
|
|
5
5
|
import $e from "minisearch";
|
|
6
6
|
import { dataSymbol as Pe, useRouter as He, inBrowser as Ke } from "vitepress";
|
|
7
|
-
import { pathToFile as Oe } from "./
|
|
8
|
-
import { escapeRegExp as Ne } from "./
|
|
9
|
-
import { useData as Fe } from "./
|
|
10
|
-
import { LRUCache as Ue } from "./
|
|
11
|
-
import { createSearchTranslate as qe } from "./
|
|
7
|
+
import { pathToFile as Oe } from "./index305.js";
|
|
8
|
+
import { escapeRegExp as Ne } from "./index152.js";
|
|
9
|
+
import { useData as Fe } from "./index154.js";
|
|
10
|
+
import { LRUCache as Ue } from "./index306.js";
|
|
11
|
+
import { createSearchTranslate as qe } from "./index304.js";
|
|
12
12
|
const je = ["aria-owns"], ze = { class: "shell" }, Qe = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "search-loading"
|
|
@@ -1,38 +1,37 @@
|
|
|
1
1
|
import { defineComponent as f, onMounted as v, watch as x, nextTick as A, createElementBlock as _, openBlock as k } from "vue";
|
|
2
|
-
import "@docsearch/css";
|
|
3
2
|
import y from "@docsearch/js";
|
|
4
3
|
import { useRouter as I } from "vitepress";
|
|
5
|
-
import { useData as P } from "./
|
|
6
|
-
const w = { id: "docsearch" },
|
|
4
|
+
import { useData as P } from "./index154.js";
|
|
5
|
+
const w = { id: "docsearch" }, R = /* @__PURE__ */ f({
|
|
7
6
|
__name: "VPAlgoliaSearchBox",
|
|
8
7
|
props: {
|
|
9
8
|
algolia: {}
|
|
10
9
|
},
|
|
11
10
|
setup(c) {
|
|
12
|
-
const
|
|
13
|
-
v(i), x(
|
|
11
|
+
const n = c, l = I(), { site: p, localeIndex: o, lang: m } = P();
|
|
12
|
+
v(i), x(o, i);
|
|
14
13
|
async function i() {
|
|
15
14
|
await A();
|
|
16
15
|
const a = {
|
|
17
|
-
...
|
|
18
|
-
...
|
|
19
|
-
}, r = a.searchParameters?.facetFilters ?? [],
|
|
16
|
+
...n.algolia,
|
|
17
|
+
...n.algolia.locales?.[o.value]
|
|
18
|
+
}, r = a.searchParameters?.facetFilters ?? [], t = [
|
|
20
19
|
...(Array.isArray(r) ? r : [r]).filter((g) => !g.startsWith("lang:")),
|
|
21
20
|
`lang:${m.value}`
|
|
22
|
-
],
|
|
23
|
-
indexName:
|
|
24
|
-
apiKey:
|
|
25
|
-
appId:
|
|
26
|
-
assistantId:
|
|
21
|
+
], e = a.askAi, s = typeof e == "string", h = e ? {
|
|
22
|
+
indexName: s ? a.indexName : e.indexName,
|
|
23
|
+
apiKey: s ? a.apiKey : e.apiKey,
|
|
24
|
+
appId: s ? a.appId : e.appId,
|
|
25
|
+
assistantId: s ? e : e.assistantId,
|
|
27
26
|
// Re-use the merged facetFilters from the search parameters so that
|
|
28
27
|
// Ask AI uses the same language filtering as the regular search.
|
|
29
|
-
searchParameters:
|
|
28
|
+
searchParameters: t.length ? { facetFilters: t } : void 0
|
|
30
29
|
} : void 0;
|
|
31
30
|
d({
|
|
32
31
|
...a,
|
|
33
32
|
searchParameters: {
|
|
34
33
|
...a.searchParameters,
|
|
35
|
-
facetFilters:
|
|
34
|
+
facetFilters: t
|
|
36
35
|
},
|
|
37
36
|
askAi: h
|
|
38
37
|
});
|
|
@@ -41,25 +40,25 @@ const w = { id: "docsearch" }, U = /* @__PURE__ */ f({
|
|
|
41
40
|
const r = Object.assign({}, a, {
|
|
42
41
|
container: "#docsearch",
|
|
43
42
|
navigator: {
|
|
44
|
-
navigate(
|
|
45
|
-
l.go(
|
|
43
|
+
navigate(t) {
|
|
44
|
+
l.go(t.itemUrl);
|
|
46
45
|
}
|
|
47
46
|
},
|
|
48
|
-
transformItems(
|
|
49
|
-
return
|
|
50
|
-
url: u(
|
|
47
|
+
transformItems(t) {
|
|
48
|
+
return t.map((e) => Object.assign({}, e, {
|
|
49
|
+
url: u(e.url)
|
|
51
50
|
}));
|
|
52
51
|
}
|
|
53
52
|
});
|
|
54
53
|
y(r);
|
|
55
54
|
}
|
|
56
55
|
function u(a) {
|
|
57
|
-
const { pathname: r, hash:
|
|
58
|
-
return r.replace(/\.html$/, p.value.cleanUrls ? "" : ".html") +
|
|
56
|
+
const { pathname: r, hash: t } = new URL(a, location.origin);
|
|
57
|
+
return r.replace(/\.html$/, p.value.cleanUrls ? "" : ".html") + t;
|
|
59
58
|
}
|
|
60
59
|
return (a, r) => (k(), _("div", w));
|
|
61
60
|
}
|
|
62
61
|
});
|
|
63
62
|
export {
|
|
64
|
-
|
|
63
|
+
R as default
|
|
65
64
|
};
|
package/dist/index284.js
CHANGED
|
@@ -1,4 +1,28 @@
|
|
|
1
|
-
import
|
|
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 "./index154.js";
|
|
3
|
+
import d from "./index308.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
|
+
});
|
|
2
26
|
export {
|
|
3
|
-
|
|
27
|
+
g as default
|
|
4
28
|
};
|
package/dist/index286.js
CHANGED
|
@@ -1,28 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useData as f } from "./index179.js";
|
|
3
|
-
import d from "./index307.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 "./index264.js";
|
|
26
2
|
export {
|
|
27
|
-
|
|
3
|
+
f as default
|
|
28
4
|
};
|
package/dist/index288.js
CHANGED
|
@@ -1,5 +1,64 @@
|
|
|
1
|
-
import o from "
|
|
2
|
-
|
|
1
|
+
import { defineComponent as c, ref as r, createElementBlock as o, openBlock as l, createElementVNode as a, createCommentVNode as u, normalizeClass as f, createVNode as v, withCtx as p, renderSlot as x } from "vue";
|
|
2
|
+
import { useFlyout as y } from "./index309.js";
|
|
3
|
+
import b from "./index310.js";
|
|
4
|
+
const k = ["aria-expanded", "aria-label"], V = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "flex items-center gap-1 leading-normal"
|
|
7
|
+
}, C = ["innerHTML"], M = {
|
|
8
|
+
key: 1,
|
|
9
|
+
class: "vpi-more-horizontal text-xl"
|
|
10
|
+
}, h = { class: "menu" }, F = /* @__PURE__ */ c({
|
|
11
|
+
__name: "VPFlyout",
|
|
12
|
+
props: {
|
|
13
|
+
icon: {},
|
|
14
|
+
button: {},
|
|
15
|
+
label: {},
|
|
16
|
+
items: {}
|
|
17
|
+
},
|
|
18
|
+
setup(e) {
|
|
19
|
+
const n = r(!1), s = r();
|
|
20
|
+
y({ el: s, onBlur: m });
|
|
21
|
+
function m() {
|
|
22
|
+
n.value = !1;
|
|
23
|
+
}
|
|
24
|
+
return (d, t) => (l(), o("div", {
|
|
25
|
+
class: "VPFlyout relative flex items-center",
|
|
26
|
+
ref_key: "el",
|
|
27
|
+
ref: s,
|
|
28
|
+
onMouseenter: t[1] || (t[1] = (i) => n.value = !0),
|
|
29
|
+
onMouseleave: t[2] || (t[2] = (i) => n.value = !1)
|
|
30
|
+
}, [
|
|
31
|
+
a("button", {
|
|
32
|
+
type: "button",
|
|
33
|
+
class: "flex items-center px-3 py-2 text-base font-sans text-primary dark:text-white hover:opacity-70 transition-opacity",
|
|
34
|
+
"aria-haspopup": "true",
|
|
35
|
+
"aria-expanded": n.value,
|
|
36
|
+
"aria-label": e.label,
|
|
37
|
+
onClick: t[0] || (t[0] = (i) => n.value = !n.value)
|
|
38
|
+
}, [
|
|
39
|
+
e.button || e.icon ? (l(), o("span", V, [
|
|
40
|
+
e.icon ? (l(), o("span", {
|
|
41
|
+
key: 0,
|
|
42
|
+
class: f(e.icon)
|
|
43
|
+
}, null, 2)) : u("", !0),
|
|
44
|
+
e.button ? (l(), o("span", {
|
|
45
|
+
key: 1,
|
|
46
|
+
innerHTML: e.button
|
|
47
|
+
}, null, 8, C)) : u("", !0),
|
|
48
|
+
t[3] || (t[3] = a("span", { class: "vpi-chevron-down text-sm" }, null, -1))
|
|
49
|
+
])) : (l(), o("span", M))
|
|
50
|
+
], 8, k),
|
|
51
|
+
a("div", h, [
|
|
52
|
+
v(b, { items: e.items }, {
|
|
53
|
+
default: p(() => [
|
|
54
|
+
x(d.$slots, "default", {}, void 0, !0)
|
|
55
|
+
]),
|
|
56
|
+
_: 3
|
|
57
|
+
}, 8, ["items"])
|
|
58
|
+
])
|
|
59
|
+
], 544));
|
|
60
|
+
}
|
|
61
|
+
});
|
|
3
62
|
export {
|
|
4
|
-
|
|
63
|
+
F as default
|
|
5
64
|
};
|
package/dist/index29.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as r, createElementBlock as s, openBlock as l, createStaticVNode as a, createElementVNode as t, createTextVNode as o, toDisplayString as i } from "vue";
|
|
2
|
-
import n from "./
|
|
3
|
-
import p from "./
|
|
2
|
+
import n from "./index191.js";
|
|
3
|
+
import p from "./index192.js";
|
|
4
4
|
import c from "./index117.js";
|
|
5
5
|
import d from "./index119.js";
|
|
6
6
|
import x from "./index120.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as r, computed as a, createElementBlock as s, openBlock as c, createVNode as m, mergeProps as l, withCtx as f, createElementVNode as p } from "vue";
|
|
2
|
-
import { useData as u } from "./
|
|
2
|
+
import { useData as u } from "./index154.js";
|
|
3
3
|
import d from "./index8.js";
|
|
4
4
|
const h = { class: "VPMenuLink" }, x = ["innerHTML"], v = /* @__PURE__ */ r({
|
|
5
5
|
inheritAttrs: !1,
|
package/dist/index294.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as u, createElementBlock as l, openBlock as a, normalizeClass as n, unref as r, renderSlot as e, createBlock as i, createVNode as h, withCtx as t, resolveDynamicComponent as p } from "vue";
|
|
2
|
-
import v from "./
|
|
3
|
-
import { useData as $ } from "./
|
|
2
|
+
import v from "./index313.js";
|
|
3
|
+
import { useData as $ } from "./index154.js";
|
|
4
4
|
import { useLayout as b } from "./index70.js";
|
|
5
|
-
import y from "./
|
|
6
|
-
import g from "./
|
|
7
|
-
import k from "./
|
|
5
|
+
import y from "./index314.js";
|
|
6
|
+
import g from "./index315.js";
|
|
7
|
+
import k from "./index316.js";
|
|
8
8
|
const S = /* @__PURE__ */ u({
|
|
9
9
|
__name: "VPContent",
|
|
10
10
|
setup(C) {
|
package/dist/index296.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as c, createElementBlock as t, createCommentVNode as r, unref as e, openBlock as s, normalizeClass as i, createElementVNode as m } from "vue";
|
|
2
|
-
import { useData as f } from "./
|
|
2
|
+
import { useData as f } from "./index154.js";
|
|
3
3
|
import { useLayout as l } from "./index70.js";
|
|
4
4
|
const p = { class: "container" }, _ = ["innerHTML"], u = ["innerHTML"], H = /* @__PURE__ */ c({
|
|
5
5
|
__name: "VPFooter",
|
package/dist/index298.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as h, ref as y, onMounted as g, computed as N, createElementBlock as r, createCommentVNode as l, unref as e, openBlock as u, normalizeClass as V, createElementVNode as s, createVNode as _, toDisplayString as b } from "vue";
|
|
2
2
|
import { useWindowScroll as L } from "@vueuse/core";
|
|
3
|
-
import { useData as k } from "./
|
|
3
|
+
import { useData as k } from "./index154.js";
|
|
4
4
|
import { useLayout as x } from "./index70.js";
|
|
5
|
-
import C from "./
|
|
5
|
+
import C from "./index311.js";
|
|
6
6
|
const P = { class: "container" }, S = ["aria-expanded"], H = { class: "menu-text" }, z = /* @__PURE__ */ h({
|
|
7
7
|
__name: "VPLocalNav",
|
|
8
8
|
props: {
|
package/dist/index30.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as U, computed as S, ref as p, watch as X, nextTick as J, onMounted as P, onUnmounted as Q, createElementBlock as n, openBlock as i, createElementVNode as e, createCommentVNode as f, Fragment as _, renderList as L, unref as b, withModifiers as Y, normalizeClass as k, createTextVNode as I, toDisplayString as g, createVNode as M, Transition as ee, withCtx as te } from "vue";
|
|
2
|
-
import le from "./
|
|
3
|
-
import B from "./
|
|
4
|
-
import oe from "./
|
|
2
|
+
import le from "./index182.js";
|
|
3
|
+
import B from "./index183.js";
|
|
4
|
+
import oe from "./index178.js";
|
|
5
5
|
import V from "./index117.js";
|
|
6
6
|
import ne from "./index119.js";
|
|
7
7
|
import ie from "./index120.js";
|
|
8
8
|
import { useData as se, useRoute as re } from "vitepress";
|
|
9
9
|
/* empty css */
|
|
10
|
-
import $ from "./
|
|
10
|
+
import $ from "./index185.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
const ae = { class: "wrapper px-6 py-5 lg:py-7 flex items-center justify-between relative z-[1000]" }, ue = { class: "flex items-center gap-10" }, de = { class: "nav-container hidden md:block" }, ce = { class: "nav" }, me = ["onMouseenter"], pe = ["href", "aria-expanded", "aria-haspopup", "aria-controls", "onClick"], fe = { class: "flex items-center gap-6" }, ve = {
|
|
13
13
|
href: "https://github.com/voidzero-dev",
|