typerighter 0.30.4 → 0.30.6
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/{app-wLTpP3BP.js → app-BIZW-EFe.js} +1074 -366
- package/dist/{cli-DFeDkMZb.js → cli-x2zGzLEx.js} +4 -4
- package/dist/cli.js +1 -1
- package/dist/client/theme-default.js +143 -239
- package/dist/client.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{init-4ZHUVwp-.js → init-Bn4rrlkQ.js} +1 -1
- package/dist/typerighter.css +1 -1
- package/package.json +3 -3
|
@@ -1,43 +1,10 @@
|
|
|
1
1
|
import { B as e, D as t, E as n, G as r, K as i, M as a, N as o, O as s, P as c, S as l, _ as u, c as d, d as f, f as p, h as m, i as h, j as g, l as _, n as v, o as y, r as b, s as x, v as S, w as C, x as ee, y as w } from "../shared-B-n46X4N.js";
|
|
2
2
|
import { t as te } from "../temml-DZbhOfRE.js";
|
|
3
3
|
import { t as ne } from "../es-ClqUVRJn.js";
|
|
4
|
-
import {
|
|
5
|
-
import { a as
|
|
6
|
-
import { Fragment as A, Teleport as
|
|
7
|
-
var
|
|
8
|
-
d: "M12 5v14",
|
|
9
|
-
key: "s699le"
|
|
10
|
-
}], ["path", {
|
|
11
|
-
d: "m19 12-7 7-7-7",
|
|
12
|
-
key: "1idqje"
|
|
13
|
-
}]]), tt = T("arrow-left", [["path", {
|
|
14
|
-
d: "m12 19-7-7 7-7",
|
|
15
|
-
key: "1l729n"
|
|
16
|
-
}], ["path", {
|
|
17
|
-
d: "M19 12H5",
|
|
18
|
-
key: "x3x0zl"
|
|
19
|
-
}]]), nt = T("arrow-right", [["path", {
|
|
20
|
-
d: "M5 12h14",
|
|
21
|
-
key: "1ays0h"
|
|
22
|
-
}], ["path", {
|
|
23
|
-
d: "m12 5 7 7-7 7",
|
|
24
|
-
key: "xquz4c"
|
|
25
|
-
}]]), rt = T("arrow-up", [["path", {
|
|
26
|
-
d: "m5 12 7-7 7 7",
|
|
27
|
-
key: "hav0vg"
|
|
28
|
-
}], ["path", {
|
|
29
|
-
d: "M12 19V5",
|
|
30
|
-
key: "x0mq9r"
|
|
31
|
-
}]]), it = T("chevron-down", [["path", {
|
|
32
|
-
d: "m6 9 6 6 6-6",
|
|
33
|
-
key: "qrunsl"
|
|
34
|
-
}]]), at = T("chevron-left", [["path", {
|
|
35
|
-
d: "m15 18-6-6 6-6",
|
|
36
|
-
key: "1wnfg3"
|
|
37
|
-
}]]), ot = T("chevron-right", [["path", {
|
|
38
|
-
d: "m9 18 6-6-6-6",
|
|
39
|
-
key: "mthhwq"
|
|
40
|
-
}]]), st = T("circle-dot", [["circle", {
|
|
4
|
+
import { A as re, C as T, D as ie, E as ae, F as oe, I as se, L as E, M as ce, N as le, O as ue, P as de, S as fe, T as pe, _ as me, a as he, b as ge, c as _e, d as ve, f as ye, g as be, h as D, i as O, j as xe, k as Se, l as k, m as Ce, n as we, o as Te, p as Ee, r as De, s as Oe, v as ke, w as Ae, x as je, y as Me } from "../app-BIZW-EFe.js";
|
|
5
|
+
import { a as Ne, i as Pe, n as Fe, t as Ie } from "../brand-CG1fQshq.js";
|
|
6
|
+
import { Fragment as A, Teleport as Le, computed as j, createApp as Re, createBlock as M, createCommentVNode as N, createElementBlock as P, createElementVNode as F, createTextVNode as I, createVNode as L, defineComponent as R, getCurrentScope as ze, markRaw as Be, mergeModels as Ve, mergeProps as He, nextTick as Ue, normalizeClass as z, normalizeStyle as We, onBeforeUnmount as Ge, onMounted as Ke, onScopeDispose as qe, onUnmounted as Je, openBlock as B, readonly as Ye, ref as V, renderList as H, renderSlot as Xe, resolveComponent as Ze, resolveDynamicComponent as Qe, shallowReadonly as $e, shallowRef as et, toDisplayString as U, toValue as tt, triggerRef as nt, unref as W, useModel as rt, useTemplateRef as it, vModelText as at, watch as G, watchEffect as ot, withCtx as st, withDirectives as ct, withKeys as lt, withModifiers as ut } from "vue";
|
|
7
|
+
var dt = E("circle-dot", [["circle", {
|
|
41
8
|
cx: "12",
|
|
42
9
|
cy: "12",
|
|
43
10
|
r: "1",
|
|
@@ -47,16 +14,16 @@ var et = T("arrow-down", [["path", {
|
|
|
47
14
|
cy: "12",
|
|
48
15
|
r: "10",
|
|
49
16
|
key: "1mglay"
|
|
50
|
-
}]]),
|
|
17
|
+
}]]), ft = E("command", [["path", {
|
|
51
18
|
d: "M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",
|
|
52
19
|
key: "11bfej"
|
|
53
|
-
}]]),
|
|
20
|
+
}]]), pt = E("corner-down-left", [["path", {
|
|
54
21
|
d: "M20 4v7a4 4 0 0 1-4 4H4",
|
|
55
22
|
key: "6o5b7l"
|
|
56
23
|
}], ["path", {
|
|
57
24
|
d: "m9 10-5 5 5 5",
|
|
58
25
|
key: "1kshq7"
|
|
59
|
-
}]]),
|
|
26
|
+
}]]), mt = E("delete", [
|
|
60
27
|
["path", {
|
|
61
28
|
d: "M10 5a2 2 0 0 0-1.344.519l-6.328 5.74a1 1 0 0 0 0 1.481l6.328 5.741A2 2 0 0 0 10 19h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2z",
|
|
62
29
|
key: "1yo7s0"
|
|
@@ -69,85 +36,28 @@ var et = T("arrow-down", [["path", {
|
|
|
69
36
|
d: "m18 9-6 6",
|
|
70
37
|
key: "1fp51s"
|
|
71
38
|
}]
|
|
72
|
-
]),
|
|
73
|
-
["circle", {
|
|
74
|
-
cx: "12",
|
|
75
|
-
cy: "12",
|
|
76
|
-
r: "1",
|
|
77
|
-
key: "41hilf"
|
|
78
|
-
}],
|
|
79
|
-
["circle", {
|
|
80
|
-
cx: "19",
|
|
81
|
-
cy: "12",
|
|
82
|
-
r: "1",
|
|
83
|
-
key: "1wjl8i"
|
|
84
|
-
}],
|
|
85
|
-
["circle", {
|
|
86
|
-
cx: "5",
|
|
87
|
-
cy: "12",
|
|
88
|
-
r: "1",
|
|
89
|
-
key: "1pcz8c"
|
|
90
|
-
}]
|
|
91
|
-
]), ft = T("folder-open", [["path", {
|
|
39
|
+
]), ht = E("folder-open", [["path", {
|
|
92
40
|
d: "m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",
|
|
93
41
|
key: "usdka0"
|
|
94
|
-
}]]),
|
|
95
|
-
["path", {
|
|
96
|
-
d: "M3 5h.01",
|
|
97
|
-
key: "18ugdj"
|
|
98
|
-
}],
|
|
99
|
-
["path", {
|
|
100
|
-
d: "M3 12h.01",
|
|
101
|
-
key: "nlz23k"
|
|
102
|
-
}],
|
|
103
|
-
["path", {
|
|
104
|
-
d: "M3 19h.01",
|
|
105
|
-
key: "noohij"
|
|
106
|
-
}],
|
|
107
|
-
["path", {
|
|
108
|
-
d: "M8 5h13",
|
|
109
|
-
key: "1pao27"
|
|
110
|
-
}],
|
|
111
|
-
["path", {
|
|
112
|
-
d: "M8 12h13",
|
|
113
|
-
key: "1za7za"
|
|
114
|
-
}],
|
|
115
|
-
["path", {
|
|
116
|
-
d: "M8 19h13",
|
|
117
|
-
key: "m83p4d"
|
|
118
|
-
}]
|
|
119
|
-
]), mt = T("loader-circle", [["path", {
|
|
42
|
+
}]]), gt = E("loader-circle", [["path", {
|
|
120
43
|
d: "M21 12a9 9 0 1 1-6.219-8.56",
|
|
121
44
|
key: "13zald"
|
|
122
|
-
}]]),
|
|
123
|
-
["path", {
|
|
124
|
-
d: "M4 5h16",
|
|
125
|
-
key: "1tepv9"
|
|
126
|
-
}],
|
|
127
|
-
["path", {
|
|
128
|
-
d: "M4 12h16",
|
|
129
|
-
key: "1lakjw"
|
|
130
|
-
}],
|
|
131
|
-
["path", {
|
|
132
|
-
d: "M4 19h16",
|
|
133
|
-
key: "1djgab"
|
|
134
|
-
}]
|
|
135
|
-
]), gt = T("option", [["path", {
|
|
45
|
+
}]]), _t = E("option", [["path", {
|
|
136
46
|
d: "M14 3h7",
|
|
137
47
|
key: "16f0ms"
|
|
138
48
|
}], ["path", {
|
|
139
49
|
d: "M3 3h5.28a1 1 0 0 1 .948.684l5.544 16.632a1 1 0 0 0 .949.684H21",
|
|
140
50
|
key: "1qf1im"
|
|
141
|
-
}]]),
|
|
51
|
+
}]]), vt = E("space", [["path", {
|
|
142
52
|
d: "M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1",
|
|
143
53
|
key: "lt2kga"
|
|
144
|
-
}]]),
|
|
54
|
+
}]]), yt = E("square-check-big", [["path", {
|
|
145
55
|
d: "M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",
|
|
146
56
|
key: "2acyp4"
|
|
147
57
|
}], ["path", {
|
|
148
58
|
d: "m9 11 3 3L22 4",
|
|
149
59
|
key: "1pflzl"
|
|
150
|
-
}]]),
|
|
60
|
+
}]]), bt = E("tags", [
|
|
151
61
|
["path", {
|
|
152
62
|
d: "M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z",
|
|
153
63
|
key: "16rjxf"
|
|
@@ -163,7 +73,7 @@ var et = T("arrow-down", [["path", {
|
|
|
163
73
|
fill: "currentColor",
|
|
164
74
|
key: "12ikhr"
|
|
165
75
|
}]
|
|
166
|
-
]),
|
|
76
|
+
]), xt = E("type", [
|
|
167
77
|
["path", {
|
|
168
78
|
d: "M12 4v16",
|
|
169
79
|
key: "1654pz"
|
|
@@ -176,13 +86,7 @@ var et = T("arrow-down", [["path", {
|
|
|
176
86
|
d: "M9 20h6",
|
|
177
87
|
key: "s66wpe"
|
|
178
88
|
}]
|
|
179
|
-
]),
|
|
180
|
-
d: "M18 6 6 18",
|
|
181
|
-
key: "1bl5f8"
|
|
182
|
-
}], ["path", {
|
|
183
|
-
d: "m6 6 12 12",
|
|
184
|
-
key: "d8bk6v"
|
|
185
|
-
}]]), St = [
|
|
89
|
+
]), St = [
|
|
186
90
|
"height",
|
|
187
91
|
"width",
|
|
188
92
|
"viewBox"
|
|
@@ -194,21 +98,21 @@ var et = T("arrow-down", [["path", {
|
|
|
194
98
|
fill: "none",
|
|
195
99
|
height: e.size,
|
|
196
100
|
width: e.size * 208 / 128,
|
|
197
|
-
viewBox: W(
|
|
101
|
+
viewBox: W(Ne),
|
|
198
102
|
xmlns: "http://www.w3.org/2000/svg"
|
|
199
103
|
}, [
|
|
200
104
|
F("path", {
|
|
201
105
|
"clip-rule": "evenodd",
|
|
202
|
-
d: W(
|
|
106
|
+
d: W(Fe),
|
|
203
107
|
"fill-rule": "evenodd",
|
|
204
108
|
fill: "currentColor"
|
|
205
109
|
}, null, 8, Ct),
|
|
206
110
|
F("path", {
|
|
207
|
-
d: W(
|
|
111
|
+
d: W(Pe),
|
|
208
112
|
fill: "currentColor"
|
|
209
113
|
}, null, 8, wt),
|
|
210
114
|
F("path", {
|
|
211
|
-
d: W(
|
|
115
|
+
d: W(Ie),
|
|
212
116
|
fill: "currentColor"
|
|
213
117
|
}, null, 8, Tt)
|
|
214
118
|
], 8, St));
|
|
@@ -222,7 +126,7 @@ var et = T("arrow-down", [["path", {
|
|
|
222
126
|
class: "inline-flex items-center justify-center cursor-pointer",
|
|
223
127
|
title: e.label,
|
|
224
128
|
"aria-label": e.label
|
|
225
|
-
}, [
|
|
129
|
+
}, [Xe(t.$slots, "default")], 8, Dt));
|
|
226
130
|
}
|
|
227
131
|
}), kt = /`([^`]+)`|\$([^$]+)\$/g;
|
|
228
132
|
function At(e) {
|
|
@@ -455,15 +359,15 @@ var rn = 50, an = async (e, t, n) => {
|
|
|
455
359
|
y: r
|
|
456
360
|
}, p = Vt(i), m = Bt(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
|
|
457
361
|
(!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
|
|
458
|
-
let ee = b / 2 - x / 2, w = C / 2 - h[m] / 2 - 1, te = jt(d[_], w), ne = jt(d[v], w), re = C - h[m] - ne, T = C / 2 - h[m] / 2 + ee, ie = Ft(te, T, re),
|
|
362
|
+
let ee = b / 2 - x / 2, w = C / 2 - h[m] / 2 - 1, te = jt(d[_], w), ne = jt(d[v], w), re = C - h[m] - ne, T = C / 2 - h[m] / 2 + ee, ie = Ft(te, T, re), ae = !c.arrow && Rt(i) != null && T !== ie && a.reference[m] / 2 - (T < te ? te : ne) - h[m] / 2 < 0, oe = ae ? T < te ? T - te : T - re : 0;
|
|
459
363
|
return {
|
|
460
|
-
[p]: f[p] +
|
|
364
|
+
[p]: f[p] + oe,
|
|
461
365
|
data: {
|
|
462
366
|
[p]: ie,
|
|
463
|
-
centerOffset: T - ie -
|
|
464
|
-
...
|
|
367
|
+
centerOffset: T - ie - oe,
|
|
368
|
+
...ae && { alignmentOffset: oe }
|
|
465
369
|
},
|
|
466
|
-
reset:
|
|
370
|
+
reset: ae
|
|
467
371
|
};
|
|
468
372
|
}
|
|
469
373
|
}), sn = function(e) {
|
|
@@ -945,7 +849,7 @@ function dr(e) {
|
|
|
945
849
|
name: "arrow",
|
|
946
850
|
options: e,
|
|
947
851
|
fn(t) {
|
|
948
|
-
let n = ur(
|
|
852
|
+
let n = ur(tt(e.element));
|
|
949
853
|
return n == null ? {} : sr({
|
|
950
854
|
element: n,
|
|
951
855
|
padding: e.padding
|
|
@@ -962,7 +866,7 @@ function pr(e, t) {
|
|
|
962
866
|
}
|
|
963
867
|
function mr(e, t, n) {
|
|
964
868
|
n === void 0 && (n = {});
|
|
965
|
-
let r = n.whileElementsMounted, i = j(() =>
|
|
869
|
+
let r = n.whileElementsMounted, i = j(() => tt(n.open) ?? !0), a = j(() => tt(n.middleware)), o = j(() => tt(n.placement) ?? "bottom"), s = j(() => tt(n.strategy) ?? "absolute"), c = j(() => tt(n.transform) ?? !0), l = j(() => ur(e.value)), u = j(() => ur(t.value)), d = V(0), f = V(0), p = V(s.value), m = V(o.value), h = et({}), g = V(!1), _ = j(() => {
|
|
966
870
|
let e = {
|
|
967
871
|
position: p.value,
|
|
968
872
|
left: "0",
|
|
@@ -1012,13 +916,13 @@ function mr(e, t, n) {
|
|
|
1012
916
|
o,
|
|
1013
917
|
s,
|
|
1014
918
|
i
|
|
1015
|
-
], y, { flush: "sync" }), G([l, u], x, { flush: "sync" }), G(i, S, { flush: "sync" }),
|
|
1016
|
-
x:
|
|
1017
|
-
y:
|
|
1018
|
-
strategy:
|
|
1019
|
-
placement:
|
|
1020
|
-
middlewareData:
|
|
1021
|
-
isPositioned:
|
|
919
|
+
], y, { flush: "sync" }), G([l, u], x, { flush: "sync" }), G(i, S, { flush: "sync" }), ze() && qe(b), {
|
|
920
|
+
x: $e(d),
|
|
921
|
+
y: $e(f),
|
|
922
|
+
strategy: $e(p),
|
|
923
|
+
placement: $e(m),
|
|
924
|
+
middlewareData: $e(h),
|
|
925
|
+
isPositioned: $e(g),
|
|
1022
926
|
floatingStyles: _,
|
|
1023
927
|
update: y
|
|
1024
928
|
};
|
|
@@ -1030,7 +934,7 @@ var hr = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
|
1030
934
|
__name: "TdTooltip",
|
|
1031
935
|
props: { text: {} },
|
|
1032
936
|
setup(e) {
|
|
1033
|
-
let t =
|
|
937
|
+
let t = it("trigger"), n = it("tooltip"), r = it("arrowEl"), i = V(!1), a, o, { floatingStyles: s, middlewareData: c, placement: l } = mr(t, n, {
|
|
1034
938
|
placement: "right",
|
|
1035
939
|
middleware: [
|
|
1036
940
|
ir(8),
|
|
@@ -1048,32 +952,32 @@ var hr = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
|
1048
952
|
i.value = !0;
|
|
1049
953
|
}, 400));
|
|
1050
954
|
}
|
|
1051
|
-
|
|
955
|
+
Ge(u);
|
|
1052
956
|
function f() {
|
|
1053
957
|
u(), o = setTimeout(() => {
|
|
1054
958
|
i.value = !1;
|
|
1055
959
|
}, 100);
|
|
1056
960
|
}
|
|
1057
|
-
return (r, a) => (B(), P(A, null, [F("span",
|
|
961
|
+
return (r, a) => (B(), P(A, null, [F("span", He({
|
|
1058
962
|
ref_key: "trigger",
|
|
1059
963
|
ref: t
|
|
1060
964
|
}, r.$attrs, {
|
|
1061
965
|
class: "td-tooltip-trigger",
|
|
1062
966
|
onMouseenter: d,
|
|
1063
967
|
onMouseleave: f
|
|
1064
|
-
}), [
|
|
968
|
+
}), [Xe(r.$slots, "default", {}, void 0, !0)], 16), (B(), M(Le, { to: "body" }, [i.value ? (B(), P("div", {
|
|
1065
969
|
key: 0,
|
|
1066
970
|
ref_key: "tooltip",
|
|
1067
971
|
ref: n,
|
|
1068
972
|
class: "td-tooltip",
|
|
1069
|
-
style:
|
|
973
|
+
style: We(W(s)),
|
|
1070
974
|
role: "tooltip",
|
|
1071
975
|
onMouseenter: u,
|
|
1072
976
|
onMouseleave: f
|
|
1073
977
|
}, [I(U(e.text) + " ", 1), F("div", {
|
|
1074
978
|
ref: "arrowEl",
|
|
1075
979
|
class: "td-tooltip-arrow",
|
|
1076
|
-
style:
|
|
980
|
+
style: We({
|
|
1077
981
|
left: W(c).arrow?.x === void 0 ? "" : `${W(c).arrow.x}px`,
|
|
1078
982
|
top: W(c).arrow?.y === void 0 ? "" : `${W(c).arrow.y}px`,
|
|
1079
983
|
...W(l).startsWith("bottom") ? { top: "-4px" } : {},
|
|
@@ -1099,7 +1003,7 @@ var hr = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
|
1099
1003
|
urlPrefix: { default: "" }
|
|
1100
1004
|
},
|
|
1101
1005
|
setup(n) {
|
|
1102
|
-
let r = k(), { withBase: i } = O(), a = j(() => ee(n.urlPrefix, n.node.name)), o = j(() => m(n.node)), s = j(() => o.value ? C(o.value.filepath) : l(a.value)), c = j(() => i(s.value)), d = j(() => o.value?.label ?? e(n.node.name)), f = j(() => o.value?.icon ?
|
|
1006
|
+
let r = k(), { withBase: i } = O(), a = j(() => ee(n.urlPrefix, n.node.name)), o = j(() => m(n.node)), s = j(() => o.value ? C(o.value.filepath) : l(a.value)), c = j(() => i(s.value)), d = j(() => o.value?.label ?? e(n.node.name)), f = j(() => o.value?.icon ? ye(o.value.icon.name) : void 0), p = j(() => n.node.entries.filter((e) => e.kind === "dir" || !S(e.item.filepath))), g = j(() => 0 < n.node.entries.length), _ = j(() => v(n.node));
|
|
1103
1007
|
function v(e) {
|
|
1104
1008
|
let t = 0;
|
|
1105
1009
|
for (let n of e.entries) n.kind === "file" ? t++ : t += v(n.node);
|
|
@@ -1116,34 +1020,34 @@ var hr = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
|
1116
1020
|
function ne() {
|
|
1117
1021
|
b.value = !0;
|
|
1118
1022
|
}
|
|
1119
|
-
function
|
|
1023
|
+
function re(e) {
|
|
1120
1024
|
return r.path === e;
|
|
1121
1025
|
}
|
|
1122
|
-
function
|
|
1026
|
+
function T() {
|
|
1123
1027
|
y.value = !y.value;
|
|
1124
1028
|
}
|
|
1125
1029
|
return (e, t) => {
|
|
1126
|
-
let n =
|
|
1030
|
+
let n = Ze("TdTreeNode", !0);
|
|
1127
1031
|
return g.value ? (B(), P("div", gr, [F("div", _r, [
|
|
1128
1032
|
F("button", {
|
|
1129
1033
|
type: "button",
|
|
1130
1034
|
class: "td-tree-toggle",
|
|
1131
1035
|
"aria-expanded": !y.value,
|
|
1132
|
-
onClick:
|
|
1133
|
-
}, [L(W(
|
|
1036
|
+
onClick: T
|
|
1037
|
+
}, [L(W(xe), {
|
|
1134
1038
|
size: 14,
|
|
1135
1039
|
class: z(["td-tree-caret", { "is-collapsed": y.value }])
|
|
1136
1040
|
}, null, 8, ["class"]), F("span", yr, U(d.value), 1)], 8, vr),
|
|
1137
1041
|
F("a", {
|
|
1138
1042
|
href: c.value,
|
|
1139
|
-
class: z(["td-tree-index-btn", { "is-active":
|
|
1140
|
-
}, [f.value ? (B(), M(
|
|
1043
|
+
class: z(["td-tree-index-btn", { "is-active": re(s.value) }])
|
|
1044
|
+
}, [f.value ? (B(), M(Qe(f.value), {
|
|
1141
1045
|
key: 0,
|
|
1142
1046
|
size: 12
|
|
1143
|
-
})) :
|
|
1047
|
+
})) : re(s.value) ? (B(), M(W(ht), {
|
|
1144
1048
|
key: 1,
|
|
1145
1049
|
size: 12
|
|
1146
|
-
})) : (B(), M(W(
|
|
1050
|
+
})) : (B(), M(W(pe), {
|
|
1147
1051
|
key: 2,
|
|
1148
1052
|
size: 12
|
|
1149
1053
|
}))], 10, br),
|
|
@@ -1155,13 +1059,13 @@ var hr = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
|
1155
1059
|
}, null, 8, ["node", "url-prefix"])) : (B(), P("a", {
|
|
1156
1060
|
key: 1,
|
|
1157
1061
|
href: W(i)(W(C)(e.item.filepath)),
|
|
1158
|
-
class: z(["td-tree-link", { "is-active":
|
|
1062
|
+
class: z(["td-tree-link", { "is-active": re(W(C)(e.item.filepath)) }])
|
|
1159
1063
|
}, [
|
|
1160
|
-
e.item.icon && W(
|
|
1064
|
+
e.item.icon && W(ye)(e.item.icon.name) ? (B(), M(Qe(W(ye)(e.item.icon.name)), {
|
|
1161
1065
|
key: 0,
|
|
1162
1066
|
size: 14,
|
|
1163
1067
|
class: "td-tree-file-icon"
|
|
1164
|
-
})) : (B(), M(W(
|
|
1068
|
+
})) : (B(), M(W(ae), {
|
|
1165
1069
|
key: 1,
|
|
1166
1070
|
size: 14,
|
|
1167
1071
|
class: "td-tree-file-icon"
|
|
@@ -1170,7 +1074,7 @@ var hr = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
|
1170
1074
|
class: "td-tree-link-text",
|
|
1171
1075
|
text: W(u)(e.item.filepath, e.item.label)
|
|
1172
1076
|
}, {
|
|
1173
|
-
default:
|
|
1077
|
+
default: st(() => [F("span", { innerHTML: W(At)(W(u)(e.item.filepath, e.item.label)) }, null, 8, wr)]),
|
|
1174
1078
|
_: 2
|
|
1175
1079
|
}, 1032, ["text"]),
|
|
1176
1080
|
e.item.metadata ? (B(), P("span", Tr, U(W(h)(e.item.metadata.mtime)), 1)) : N("", !0)
|
|
@@ -1200,7 +1104,7 @@ var hr = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
|
1200
1104
|
href: W(n)(r.value ? W(C)(r.value.filepath) : W(l)("/")),
|
|
1201
1105
|
class: z(["td-root-link", { "is-active": a(r.value ? W(C)(r.value.filepath) : W(l)("/")) }])
|
|
1202
1106
|
}, [
|
|
1203
|
-
L(W(
|
|
1107
|
+
L(W(Ae), {
|
|
1204
1108
|
size: 14,
|
|
1205
1109
|
class: "td-root-link-icon"
|
|
1206
1110
|
}),
|
|
@@ -1214,7 +1118,7 @@ var hr = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
|
1214
1118
|
href: W(n)(W(C)(e.item.filepath)),
|
|
1215
1119
|
class: z(["td-root-link", { "is-active": a(W(C)(e.item.filepath)) }])
|
|
1216
1120
|
}, [
|
|
1217
|
-
L(W(
|
|
1121
|
+
L(W(ae), {
|
|
1218
1122
|
size: 14,
|
|
1219
1123
|
class: "td-root-link-icon"
|
|
1220
1124
|
}),
|
|
@@ -1252,7 +1156,7 @@ var hr = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
|
1252
1156
|
},
|
|
1253
1157
|
emits: ["update:open"],
|
|
1254
1158
|
setup(e) {
|
|
1255
|
-
let t =
|
|
1159
|
+
let t = rt(e, "open"), n = it("wrapper");
|
|
1256
1160
|
function r(e) {
|
|
1257
1161
|
n.value?.contains(e.target) || (t.value = !1);
|
|
1258
1162
|
}
|
|
@@ -1261,12 +1165,12 @@ var hr = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
|
1261
1165
|
}
|
|
1262
1166
|
return G(t, (e) => {
|
|
1263
1167
|
typeof document > "u" || (e ? document.addEventListener("click", r) : document.removeEventListener("click", r));
|
|
1264
|
-
}),
|
|
1168
|
+
}), Je(() => {
|
|
1265
1169
|
typeof document > "u" || document.removeEventListener("click", r);
|
|
1266
|
-
}), (e, r) => (B(), P("span",
|
|
1170
|
+
}), (e, r) => (B(), P("span", He({
|
|
1267
1171
|
ref_key: "wrapper",
|
|
1268
1172
|
ref: n
|
|
1269
|
-
}, e.$attrs, { class: "td-dropdown" }), [F("span", { onClick: i }, [
|
|
1173
|
+
}, e.$attrs, { class: "td-dropdown" }), [F("span", { onClick: i }, [Xe(e.$slots, "trigger", {}, void 0, !0)]), t.value ? (B(), P("div", Lr, [Xe(e.$slots, "default", {}, void 0, !0)])) : N("", !0)], 16));
|
|
1270
1174
|
}
|
|
1271
1175
|
}), [["__scopeId", "data-v-d71f3c74"]]), zr = {
|
|
1272
1176
|
class: "td-breadcrumb",
|
|
@@ -1313,8 +1217,8 @@ var hr = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
|
1313
1217
|
open: o.value,
|
|
1314
1218
|
"onUpdate:open": t[0] ||= (e) => o.value = e
|
|
1315
1219
|
}, {
|
|
1316
|
-
trigger:
|
|
1317
|
-
default:
|
|
1220
|
+
trigger: st(() => [F("button", Vr, [L(W(ue), { size: 14 })])]),
|
|
1221
|
+
default: st(() => [(B(!0), P(A, null, H(u.value, (e) => (B(), P("a", {
|
|
1318
1222
|
key: e.href,
|
|
1319
1223
|
href: e.href,
|
|
1320
1224
|
class: "td-breadcrumb-dropdown-item"
|
|
@@ -1358,7 +1262,7 @@ var hr = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
|
1358
1262
|
target: W(s)(e.link) ? "_blank" : void 0,
|
|
1359
1263
|
rel: W(s)(e.link) ? "noopener noreferrer" : void 0,
|
|
1360
1264
|
class: z(["td-header-nav-link", { "is-active": i(e.link) }])
|
|
1361
|
-
}, [I(U(e.title), 1), W(s)(e.link) ? (B(), M(W(
|
|
1265
|
+
}, [I(U(e.title), 1), W(s)(e.link) ? (B(), M(W(le), {
|
|
1362
1266
|
key: 0,
|
|
1363
1267
|
size: 14
|
|
1364
1268
|
})) : N("", !0)], 10, Xr))), 128))])) : N("", !0);
|
|
@@ -1384,13 +1288,13 @@ var hr = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
|
1384
1288
|
rel: W(s)(e.link) ? "noopener noreferrer" : void 0,
|
|
1385
1289
|
class: z(["td-menu-nav-item", { "is-active": i(e.link) }])
|
|
1386
1290
|
}, [
|
|
1387
|
-
e.icon ? (B(), M(
|
|
1291
|
+
e.icon ? (B(), M(ve, {
|
|
1388
1292
|
key: 0,
|
|
1389
1293
|
name: e.icon,
|
|
1390
1294
|
size: 16
|
|
1391
1295
|
}, null, 8, ["name"])) : N("", !0),
|
|
1392
1296
|
F("span", null, U(e.title), 1),
|
|
1393
|
-
W(s)(e.link) ? (B(), M(W(
|
|
1297
|
+
W(s)(e.link) ? (B(), M(W(le), {
|
|
1394
1298
|
key: 1,
|
|
1395
1299
|
size: 14
|
|
1396
1300
|
})) : N("", !0)
|
|
@@ -1400,11 +1304,11 @@ var hr = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
|
1400
1304
|
__name: "TdWidgetCheckbox",
|
|
1401
1305
|
props: { value: {} },
|
|
1402
1306
|
setup(e) {
|
|
1403
|
-
return (t, n) => (B(), P("span", ti, [e.value ? (B(), M(W(
|
|
1307
|
+
return (t, n) => (B(), P("span", ti, [e.value ? (B(), M(W(yt), {
|
|
1404
1308
|
key: 0,
|
|
1405
1309
|
size: 16,
|
|
1406
1310
|
class: "td-widget-checkbox-icon is-checked"
|
|
1407
|
-
})) : (B(), M(W(
|
|
1311
|
+
})) : (B(), M(W(Me), {
|
|
1408
1312
|
key: 1,
|
|
1409
1313
|
size: 16,
|
|
1410
1314
|
class: "td-widget-checkbox-icon"
|
|
@@ -1468,7 +1372,7 @@ var oi = {
|
|
|
1468
1372
|
}
|
|
1469
1373
|
},
|
|
1470
1374
|
setup(e) {
|
|
1471
|
-
let { withBase: t } = O(), n = j(() => ii(e.value)), r = j(() => n.value?.icon ?
|
|
1375
|
+
let { withBase: t } = O(), n = j(() => ii(e.value)), r = j(() => n.value?.icon ? ye(n.value.icon.name) : void 0), i = j(() => n.value !== void 0 && s(n.value.url));
|
|
1472
1376
|
return (a, o) => n.value ? (B(), P("span", oi, [n.value.isImage ? (B(), P("a", {
|
|
1473
1377
|
key: 0,
|
|
1474
1378
|
href: W(t)(n.value.url),
|
|
@@ -1487,20 +1391,20 @@ var oi = {
|
|
|
1487
1391
|
target: "_blank",
|
|
1488
1392
|
rel: "noopener noreferrer",
|
|
1489
1393
|
class: "td-widget-file-link"
|
|
1490
|
-
}, [L(W(
|
|
1394
|
+
}, [L(W(ie), { class: "td-widget-file-icon" }), F("span", ui, U(n.value.name), 1)], 8, li)) : i.value ? (B(), P("a", {
|
|
1491
1395
|
key: 2,
|
|
1492
1396
|
href: n.value.url,
|
|
1493
1397
|
target: "_blank",
|
|
1494
1398
|
rel: "noopener noreferrer",
|
|
1495
1399
|
class: "td-widget-ref td-widget-ref-external"
|
|
1496
|
-
}, [L(W(
|
|
1400
|
+
}, [L(W(le), {
|
|
1497
1401
|
size: 12,
|
|
1498
1402
|
class: "td-widget-external-icon"
|
|
1499
1403
|
})], 8, di)) : (B(), P("a", {
|
|
1500
1404
|
key: 3,
|
|
1501
1405
|
href: W(t)(n.value.url),
|
|
1502
1406
|
class: "td-widget-ref"
|
|
1503
|
-
}, [r.value && !e.hideIcon ? (B(), M(
|
|
1407
|
+
}, [r.value && !e.hideIcon ? (B(), M(Qe(r.value), {
|
|
1504
1408
|
key: 0,
|
|
1505
1409
|
size: 14,
|
|
1506
1410
|
class: "td-widget-ref-icon"
|
|
@@ -1520,7 +1424,7 @@ var oi = {
|
|
|
1520
1424
|
function s(e) {
|
|
1521
1425
|
return t.value ? e : e.slice(0, yi);
|
|
1522
1426
|
}
|
|
1523
|
-
return (e, c) => r.value ? (B(), P("div", hi, [F("ul", gi, [(B(!0), P(A, null, H(s(i.value), (e, t) => (B(), P("li", { key: t }, [(B(), M(
|
|
1427
|
+
return (e, c) => r.value ? (B(), P("div", hi, [F("ul", gi, [(B(!0), P(A, null, H(s(i.value), (e, t) => (B(), P("li", { key: t }, [(B(), M(Qe(e.icon ? W(ye)(e.icon.name) ?? W(ae) : W(ae)), {
|
|
1524
1428
|
size: 14,
|
|
1525
1429
|
class: "td-widget-list-icon"
|
|
1526
1430
|
})), L(mi, {
|
|
@@ -1600,7 +1504,7 @@ var wi = 5, Ti = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
|
1600
1504
|
return (e, n) => (B(), P(A, null, [(B(!0), P(A, null, H(r.value, (e, t) => (B(), P("span", {
|
|
1601
1505
|
key: t,
|
|
1602
1506
|
class: "td-widget-pill",
|
|
1603
|
-
style:
|
|
1507
|
+
style: We(W(Si)(e))
|
|
1604
1508
|
}, U(e), 5))), 128)), i.value > 0 ? (B(), P("button", {
|
|
1605
1509
|
key: 0,
|
|
1606
1510
|
class: "td-widget-more",
|
|
@@ -1614,7 +1518,7 @@ var wi = 5, Ti = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
|
1614
1518
|
setup(e) {
|
|
1615
1519
|
return (t, n) => (B(), P("span", {
|
|
1616
1520
|
class: "td-widget-pill",
|
|
1617
|
-
style:
|
|
1521
|
+
style: We(W(Si)(e.value))
|
|
1618
1522
|
}, U(e.value), 5));
|
|
1619
1523
|
}
|
|
1620
1524
|
}), [["__scopeId", "data-v-b9e2b4fd"]]), Di = ["href", "title"], Oi = ["src", "alt"], ki = ["href"], Ai = { class: "td-widget-file-name" }, ji = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
@@ -1646,7 +1550,7 @@ var wi = 5, Ti = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
|
1646
1550
|
target: "_blank",
|
|
1647
1551
|
rel: "noopener noreferrer",
|
|
1648
1552
|
class: "td-widget-file-link"
|
|
1649
|
-
}, [L(W(
|
|
1553
|
+
}, [L(W(ie), { class: "td-widget-file-icon" }), F("span", Ai, U(n.value.split("/").pop() ?? n.value), 1)], 8, ki)) : (B(), P(A, { key: 2 }, [I(U(c(e.value)), 1)], 64));
|
|
1650
1554
|
}
|
|
1651
1555
|
}), [["__scopeId", "data-v-571e6598"]]), Mi = {
|
|
1652
1556
|
key: 0,
|
|
@@ -1697,7 +1601,7 @@ var wi = 5, Ti = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
|
1697
1601
|
frontmatter: {}
|
|
1698
1602
|
},
|
|
1699
1603
|
setup(t) {
|
|
1700
|
-
let n =
|
|
1604
|
+
let n = he(), r = j(() => {
|
|
1701
1605
|
if (t.schema) return n.value.schemas[t.schema];
|
|
1702
1606
|
}), i = j(() => {
|
|
1703
1607
|
let e = r.value, n = [], i = /* @__PURE__ */ new Set();
|
|
@@ -1711,15 +1615,15 @@ var wi = 5, Ti = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
|
1711
1615
|
}
|
|
1712
1616
|
return n;
|
|
1713
1617
|
}), a = {
|
|
1714
|
-
text:
|
|
1715
|
-
checkbox:
|
|
1716
|
-
select:
|
|
1717
|
-
multiSelect:
|
|
1718
|
-
relation:
|
|
1719
|
-
list:
|
|
1618
|
+
text: xt,
|
|
1619
|
+
checkbox: dt,
|
|
1620
|
+
select: me,
|
|
1621
|
+
multiSelect: bt,
|
|
1622
|
+
relation: le,
|
|
1623
|
+
list: T
|
|
1720
1624
|
};
|
|
1721
1625
|
function o(e) {
|
|
1722
|
-
return a[e] ??
|
|
1626
|
+
return a[e] ?? xt;
|
|
1723
1627
|
}
|
|
1724
1628
|
let s = V(!1), c = V(!1);
|
|
1725
1629
|
function l() {
|
|
@@ -1732,13 +1636,13 @@ var wi = 5, Ti = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
|
1732
1636
|
type: "button",
|
|
1733
1637
|
class: "td-fm-rail-header",
|
|
1734
1638
|
onClick: u
|
|
1735
|
-
}, [r[0] ||= F("span", { class: "td-fm-rail-label" }, "Properties", -1), L(W(
|
|
1639
|
+
}, [r[0] ||= F("span", { class: "td-fm-rail-label" }, "Properties", -1), L(W(xe), {
|
|
1736
1640
|
size: 14,
|
|
1737
1641
|
class: z(["td-fm-rail-caret", { "is-collapsed": c.value }])
|
|
1738
1642
|
}, null, 8, ["class"])]), c.value ? N("", !0) : (B(), P("div", Fi, [(B(!0), P(A, null, H(i.value, ([n, r]) => (B(), P("div", {
|
|
1739
1643
|
key: n,
|
|
1740
1644
|
class: "td-fm-rail-row"
|
|
1741
|
-
}, [F("span", Ii, [(B(), M(
|
|
1645
|
+
}, [F("span", Ii, [(B(), M(Qe(o(r.widget)), {
|
|
1742
1646
|
size: 12,
|
|
1743
1647
|
class: "td-fm-icon"
|
|
1744
1648
|
})), I(" " + U(W(e)(n)), 1)]), F("span", Li, [L(Ni, {
|
|
@@ -1748,13 +1652,13 @@ var wi = 5, Ti = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
|
1748
1652
|
type: "button",
|
|
1749
1653
|
class: "td-fm-box-header",
|
|
1750
1654
|
onClick: l
|
|
1751
|
-
}, [F("span", zi, [r[1] ||= I("Properties ", -1), F("span", Bi, U(i.value.length), 1)]), F("span", Vi, [I(U(s.value ? "Show" : "Hide") + " ", 1), s.value ? (B(), M(W(
|
|
1655
|
+
}, [F("span", zi, [r[1] ||= I("Properties ", -1), F("span", Bi, U(i.value.length), 1)]), F("span", Vi, [I(U(s.value ? "Show" : "Hide") + " ", 1), s.value ? (B(), M(W(Se), {
|
|
1752
1656
|
key: 1,
|
|
1753
1657
|
size: 14
|
|
1754
|
-
})) : (B(), M(W(
|
|
1658
|
+
})) : (B(), M(W(xe), {
|
|
1755
1659
|
key: 0,
|
|
1756
1660
|
size: 14
|
|
1757
|
-
}))])]), s.value ? N("", !0) : (B(), P("div", Hi, [(B(!0), P(A, null, H(i.value, ([n, r]) => (B(), P(A, { key: n }, [F("span", Ui, [(B(), M(
|
|
1661
|
+
}))])]), s.value ? N("", !0) : (B(), P("div", Hi, [(B(!0), P(A, null, H(i.value, ([n, r]) => (B(), P(A, { key: n }, [F("span", Ui, [(B(), M(Qe(o(r.widget)), {
|
|
1758
1662
|
size: 12,
|
|
1759
1663
|
class: "td-fm-icon"
|
|
1760
1664
|
})), I(" " + U(W(e)(n)), 1)]), F("span", Wi, [L(Ni, {
|
|
@@ -1774,7 +1678,7 @@ function qi() {
|
|
|
1774
1678
|
Ki.value = !1;
|
|
1775
1679
|
}
|
|
1776
1680
|
return {
|
|
1777
|
-
isOpen:
|
|
1681
|
+
isOpen: Ye(Ki),
|
|
1778
1682
|
toggle: e,
|
|
1779
1683
|
open: t,
|
|
1780
1684
|
close: n
|
|
@@ -1792,11 +1696,11 @@ var Ji = /* @__PURE__ */ R({
|
|
|
1792
1696
|
"aria-expanded": W(t),
|
|
1793
1697
|
onClick: W(n)
|
|
1794
1698
|
}, {
|
|
1795
|
-
default:
|
|
1699
|
+
default: st(() => [W(t) ? (B(), M(W(be), {
|
|
1796
1700
|
key: 0,
|
|
1797
1701
|
size: 20,
|
|
1798
1702
|
class: "group-hover:text-td-primary-solid transition-colors"
|
|
1799
|
-
})) : (B(), M(W(
|
|
1703
|
+
})) : (B(), M(W(fe), {
|
|
1800
1704
|
key: 1,
|
|
1801
1705
|
size: 20,
|
|
1802
1706
|
class: "group-hover:text-td-primary-solid transition-colors"
|
|
@@ -1812,7 +1716,7 @@ var Ji = /* @__PURE__ */ R({
|
|
|
1812
1716
|
//#endregion
|
|
1813
1717
|
//#region src/client/theme-default/composables/usePreviousNext.ts
|
|
1814
1718
|
function Yi() {
|
|
1815
|
-
let e =
|
|
1719
|
+
let e = he(), t = k(), { withBase: n } = O(), r = j(() => {
|
|
1816
1720
|
let r = Xi(e.value.contentTree, t.path);
|
|
1817
1721
|
if (r === void 0) return {};
|
|
1818
1722
|
let i = r.pages.findIndex((e) => e.url === t.path);
|
|
@@ -1902,14 +1806,14 @@ var ea = {
|
|
|
1902
1806
|
key: 0,
|
|
1903
1807
|
href: W(t).url,
|
|
1904
1808
|
class: "td-prevnext-link is-previous"
|
|
1905
|
-
}, [F("span", ra, [L(W(
|
|
1809
|
+
}, [F("span", ra, [L(W(re), {
|
|
1906
1810
|
size: 16,
|
|
1907
1811
|
class: "td-prevnext-chevron"
|
|
1908
1812
|
}), I(" " + U(W(r) ? `Previous in ${W(r)}` : "Previous"), 1)]), F("span", ia, U(W(t).title), 1)], 8, na)) : (B(), P("span", aa)), W(n) ? (B(), P("a", {
|
|
1909
1813
|
key: 2,
|
|
1910
1814
|
href: W(n).url,
|
|
1911
1815
|
class: "td-prevnext-link is-next"
|
|
1912
|
-
}, [F("span", sa, [I(U(W(r) ? `Next in ${W(r)}` : "Next") + " ", 1), L(W(
|
|
1816
|
+
}, [F("span", sa, [I(U(W(r) ? `Next in ${W(r)}` : "Next") + " ", 1), L(W(Se), {
|
|
1913
1817
|
size: 16,
|
|
1914
1818
|
class: "td-prevnext-chevron"
|
|
1915
1819
|
})]), F("span", ca, U(W(n).title), 1)], 8, oa)) : (B(), P("span", la))])])) : N("", !0);
|
|
@@ -1938,12 +1842,12 @@ function fa(e) {
|
|
|
1938
1842
|
let r = new Set(e.map((e) => e.slug));
|
|
1939
1843
|
n = Array.from(document.querySelectorAll(".td-content h2[id], .td-content h3[id], .td-content h4[id], .td-content h5[id]")).filter((e) => r.has(e.id)), i();
|
|
1940
1844
|
}
|
|
1941
|
-
return
|
|
1845
|
+
return Ke(() => {
|
|
1942
1846
|
window.addEventListener("scroll", a);
|
|
1943
|
-
}),
|
|
1847
|
+
}), Je(() => {
|
|
1944
1848
|
window.removeEventListener("scroll", a), r !== void 0 && cancelAnimationFrame(r);
|
|
1945
1849
|
}), G(e, (e) => {
|
|
1946
|
-
typeof window > "u" ||
|
|
1850
|
+
typeof window > "u" || Ue(() => o(e));
|
|
1947
1851
|
}, { immediate: !0 }), t;
|
|
1948
1852
|
}
|
|
1949
1853
|
function pa(e) {
|
|
@@ -1983,7 +1887,7 @@ var ma = {
|
|
|
1983
1887
|
}), [["__scopeId", "data-v-9e1e825a"]]), va = { class: "td-rail" }, ya = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
1984
1888
|
__name: "TdRail",
|
|
1985
1889
|
setup(e) {
|
|
1986
|
-
let { page: t } =
|
|
1890
|
+
let { page: t } = Te();
|
|
1987
1891
|
return (e, n) => (B(), P("aside", va, [L(W(Gi), {
|
|
1988
1892
|
mode: "rail",
|
|
1989
1893
|
schema: W(t).schema,
|
|
@@ -2011,7 +1915,7 @@ var ma = {
|
|
|
2011
1915
|
return (n, r) => (B(), P("div", ba, [(B(!0), P(A, null, H(e.lines, (e) => (B(), P("div", {
|
|
2012
1916
|
key: e,
|
|
2013
1917
|
class: "td-skeleton-line",
|
|
2014
|
-
style:
|
|
1918
|
+
style: We({ width: `${t[(e - 1) % t.length]}%` })
|
|
2015
1919
|
}, null, 4))), 128))]));
|
|
2016
1920
|
}
|
|
2017
1921
|
}), [["__scopeId", "data-v-3a90c590"]]), $ = /* @__PURE__ */ function(e) {
|
|
@@ -2021,15 +1925,15 @@ var ma = {
|
|
|
2021
1925
|
props: { keys: {} },
|
|
2022
1926
|
setup(e) {
|
|
2023
1927
|
let t = {
|
|
2024
|
-
[$.ArrowDown]:
|
|
2025
|
-
[$.ArrowUp]:
|
|
2026
|
-
[$.ArrowLeft]:
|
|
2027
|
-
[$.ArrowRight]:
|
|
2028
|
-
[$.Meta]:
|
|
2029
|
-
[$.Alt]:
|
|
2030
|
-
[$.Enter]:
|
|
2031
|
-
[$.Delete]:
|
|
2032
|
-
[$.Space]:
|
|
1928
|
+
[$.ArrowDown]: se,
|
|
1929
|
+
[$.ArrowUp]: ce,
|
|
1930
|
+
[$.ArrowLeft]: oe,
|
|
1931
|
+
[$.ArrowRight]: de,
|
|
1932
|
+
[$.Meta]: ft,
|
|
1933
|
+
[$.Alt]: _t,
|
|
1934
|
+
[$.Enter]: pt,
|
|
1935
|
+
[$.Delete]: mt,
|
|
1936
|
+
[$.Space]: vt
|
|
2033
1937
|
}, n = {
|
|
2034
1938
|
[$.Control]: "⌃",
|
|
2035
1939
|
[$.Shift]: "⇧",
|
|
@@ -2042,26 +1946,26 @@ var ma = {
|
|
|
2042
1946
|
let i = n[e];
|
|
2043
1947
|
return i ? { label: i } : { label: e.toUpperCase() };
|
|
2044
1948
|
}));
|
|
2045
|
-
return (e, t) => (B(), P("span", Sa, [(B(!0), P(A, null, H(r.value, (e, t) => (B(), P("kbd", { key: t }, [e.icon ? (B(), M(
|
|
1949
|
+
return (e, t) => (B(), P("span", Sa, [(B(!0), P(A, null, H(r.value, (e, t) => (B(), P("kbd", { key: t }, [e.icon ? (B(), M(Qe(e.icon), {
|
|
2046
1950
|
key: 0,
|
|
2047
1951
|
size: 12
|
|
2048
1952
|
})) : (B(), P(A, { key: 1 }, [I(U(e.label), 1)], 64))]))), 128))]));
|
|
2049
1953
|
}
|
|
2050
1954
|
}), [["__scopeId", "data-v-01ed4b9d"]]), wa = 120, Ta = /^h[1-6]$/i, Ea = 16;
|
|
2051
1955
|
function Da() {
|
|
2052
|
-
let e =
|
|
1956
|
+
let e = De(), t = we(), n, a = !1, o = et([]), s = et(!1), c = /* @__PURE__ */ new Map();
|
|
2053
1957
|
G(e, () => {
|
|
2054
1958
|
n = void 0, c.clear();
|
|
2055
1959
|
});
|
|
2056
1960
|
function l() {
|
|
2057
1961
|
if (n) return n;
|
|
2058
|
-
if (e.value) return n =
|
|
1962
|
+
if (e.value) return n = Be(ne.loadJSON(e.value, {
|
|
2059
1963
|
fields: r,
|
|
2060
1964
|
storeFields: i
|
|
2061
1965
|
})), n;
|
|
2062
1966
|
}
|
|
2063
1967
|
function u(e) {
|
|
2064
|
-
let t = /* @__PURE__ */ new Map(), n =
|
|
1968
|
+
let t = /* @__PURE__ */ new Map(), n = Re(e), r = document.createElement("div");
|
|
2065
1969
|
n.config.warnHandler = () => {};
|
|
2066
1970
|
try {
|
|
2067
1971
|
n.mount(r);
|
|
@@ -2129,7 +2033,7 @@ function Da() {
|
|
|
2129
2033
|
if (a) return;
|
|
2130
2034
|
let n = f(await d(t.id), t.match);
|
|
2131
2035
|
if (a) return;
|
|
2132
|
-
o.value[e].excerpt = n,
|
|
2036
|
+
o.value[e].excerpt = n, nt(o);
|
|
2133
2037
|
}
|
|
2134
2038
|
}
|
|
2135
2039
|
let h = p((e) => m(e), 150);
|
|
@@ -2186,9 +2090,9 @@ var ka = { class: "td-search" }, Aa = { class: "td-search-input-wrap" }, ja = {
|
|
|
2186
2090
|
query: { default: "" },
|
|
2187
2091
|
queryModifiers: {}
|
|
2188
2092
|
},
|
|
2189
|
-
emits: /*@__PURE__*/
|
|
2093
|
+
emits: /*@__PURE__*/ Ve(["select"], ["update:active", "update:query"]),
|
|
2190
2094
|
setup(t, { expose: n, emit: r }) {
|
|
2191
|
-
let i =
|
|
2095
|
+
let i = rt(t, "active"), a = rt(t, "query"), o = r, s = k(), { withBase: c } = O(), { results: l, searching: u, indexLoaded: d, search: f, cancel: p } = Da(), m = V(-1), h = j(() => 0 < a.value.trim().length), _ = j(() => {
|
|
2192
2096
|
let t = [], n = /* @__PURE__ */ new Map();
|
|
2193
2097
|
for (let r of l.value) {
|
|
2194
2098
|
let i = g(r.id), a = n.get(i);
|
|
@@ -2233,7 +2137,7 @@ var ka = { class: "td-search" }, Aa = { class: "td-search-input-wrap" }, ja = {
|
|
|
2233
2137
|
function S() {
|
|
2234
2138
|
o("select");
|
|
2235
2139
|
}
|
|
2236
|
-
let C =
|
|
2140
|
+
let C = it("searchInput");
|
|
2237
2141
|
return n({
|
|
2238
2142
|
focus() {
|
|
2239
2143
|
C.value?.focus();
|
|
@@ -2249,11 +2153,11 @@ var ka = { class: "td-search" }, Aa = { class: "td-search-input-wrap" }, ja = {
|
|
|
2249
2153
|
}
|
|
2250
2154
|
}), (e, t) => (B(), P("div", ka, [
|
|
2251
2155
|
F("div", Aa, [
|
|
2252
|
-
L(W(
|
|
2156
|
+
L(W(ge), {
|
|
2253
2157
|
size: 14,
|
|
2254
2158
|
class: "td-search-icon"
|
|
2255
2159
|
}),
|
|
2256
|
-
|
|
2160
|
+
ct(F("input", {
|
|
2257
2161
|
ref_key: "searchInput",
|
|
2258
2162
|
ref: C,
|
|
2259
2163
|
"onUpdate:modelValue": t[0] ||= (e) => a.value = e,
|
|
@@ -2262,13 +2166,13 @@ var ka = { class: "td-search" }, Aa = { class: "td-search-input-wrap" }, ja = {
|
|
|
2262
2166
|
size: "1",
|
|
2263
2167
|
placeholder: "Search...",
|
|
2264
2168
|
onKeydown: x
|
|
2265
|
-
}, null, 544), [[
|
|
2169
|
+
}, null, 544), [[at, a.value]]),
|
|
2266
2170
|
!h.value && !W(u) ? (B(), M(Ca, {
|
|
2267
2171
|
key: 0,
|
|
2268
2172
|
keys: [W($).Meta, W($).k],
|
|
2269
2173
|
class: "td-search-kbd"
|
|
2270
2174
|
}, null, 8, ["keys"])) : N("", !0),
|
|
2271
|
-
W(u) || !W(d) ? (B(), M(W(
|
|
2175
|
+
W(u) || !W(d) ? (B(), M(W(gt), {
|
|
2272
2176
|
key: 1,
|
|
2273
2177
|
size: 12,
|
|
2274
2178
|
class: "td-search-spinner"
|
|
@@ -2279,7 +2183,7 @@ var ka = { class: "td-search" }, Aa = { class: "td-search-input-wrap" }, ja = {
|
|
|
2279
2183
|
type: "button",
|
|
2280
2184
|
"aria-label": "Clear search",
|
|
2281
2185
|
onClick: v
|
|
2282
|
-
}, [L(W(
|
|
2186
|
+
}, [L(W(be), { size: 12 })])) : N("", !0)
|
|
2283
2187
|
]),
|
|
2284
2188
|
h.value && W(l).length > 0 ? (B(), P("div", Ma, [(B(!0), P(A, null, H(_.value, (e) => (B(), P("div", {
|
|
2285
2189
|
key: e.pageUrl,
|
|
@@ -2306,17 +2210,17 @@ var ka = { class: "td-search" }, Aa = { class: "td-search-input-wrap" }, ja = {
|
|
|
2306
2210
|
}), [["__scopeId", "data-v-93a329d9"]]), za = /* @__PURE__ */ R({
|
|
2307
2211
|
__name: "TdThemeToggle",
|
|
2308
2212
|
setup(e) {
|
|
2309
|
-
let { isDark: t, toggle: n } =
|
|
2213
|
+
let { isDark: t, toggle: n } = Oe();
|
|
2310
2214
|
return (e, r) => (B(), M(Ot, {
|
|
2311
2215
|
class: "w-9 h-9 text-td-neutral-fg-muted group hover:opacity-70",
|
|
2312
2216
|
label: W(t) ? "Switch to light mode" : "Switch to dark mode",
|
|
2313
2217
|
onClick: W(n)
|
|
2314
2218
|
}, {
|
|
2315
|
-
default:
|
|
2219
|
+
default: st(() => [W(t) ? (B(), M(W(ke), {
|
|
2316
2220
|
key: 0,
|
|
2317
2221
|
size: 18,
|
|
2318
2222
|
class: "group-hover:text-td-primary-solid transition-colors"
|
|
2319
|
-
})) : (B(), M(W(
|
|
2223
|
+
})) : (B(), M(W(je), {
|
|
2320
2224
|
key: 1,
|
|
2321
2225
|
size: 18,
|
|
2322
2226
|
class: "group-hover:text-td-primary-solid transition-colors"
|
|
@@ -2339,9 +2243,9 @@ function Ba() {
|
|
|
2339
2243
|
t.classList.remove("copied"), t.setAttribute("title", i);
|
|
2340
2244
|
}, 2e3);
|
|
2341
2245
|
}
|
|
2342
|
-
|
|
2246
|
+
Ke(() => {
|
|
2343
2247
|
document.addEventListener("click", e);
|
|
2344
|
-
}),
|
|
2248
|
+
}), Je(() => {
|
|
2345
2249
|
document.removeEventListener("click", e);
|
|
2346
2250
|
});
|
|
2347
2251
|
}
|
|
@@ -2357,7 +2261,7 @@ function Ha(e, t) {
|
|
|
2357
2261
|
function n(n) {
|
|
2358
2262
|
n.defaultPrevented || Wa(n, e) && (n.preventDefault(), t(n));
|
|
2359
2263
|
}
|
|
2360
|
-
|
|
2264
|
+
Ke(() => window.addEventListener("keydown", n)), Je(() => window.removeEventListener("keydown", n));
|
|
2361
2265
|
}
|
|
2362
2266
|
function Ua(e) {
|
|
2363
2267
|
let t = [];
|
|
@@ -2375,7 +2279,7 @@ function Ua(e) {
|
|
|
2375
2279
|
}
|
|
2376
2280
|
return G(e, (e, t) => {
|
|
2377
2281
|
t?.removeEventListener("keydown", r), e?.addEventListener("keydown", r);
|
|
2378
|
-
}, { immediate: !0 }),
|
|
2282
|
+
}, { immediate: !0 }), Je(() => {
|
|
2379
2283
|
e.value?.removeEventListener("keydown", r);
|
|
2380
2284
|
}), { register: n };
|
|
2381
2285
|
}
|
|
@@ -2418,9 +2322,9 @@ function qa() {
|
|
|
2418
2322
|
}
|
|
2419
2323
|
document.addEventListener("pointermove", o), document.addEventListener("pointerup", s);
|
|
2420
2324
|
}
|
|
2421
|
-
|
|
2325
|
+
Ke(() => {
|
|
2422
2326
|
document.addEventListener("pointermove", r), document.addEventListener("pointerdown", i);
|
|
2423
|
-
}),
|
|
2327
|
+
}), Je(() => {
|
|
2424
2328
|
document.removeEventListener("pointermove", r), document.removeEventListener("pointerdown", i);
|
|
2425
2329
|
});
|
|
2426
2330
|
}
|
|
@@ -2445,20 +2349,20 @@ var Ja = { class: "td-header" }, Ya = { class: "td-header-left" }, Xa = ["href"]
|
|
|
2445
2349
|
}, go = { key: 0 }, _o = { class: "td-content-body" }, vo = 200, yo = 500, bo = 272, xo = "td-sidebar-width", So = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
2446
2350
|
__name: "TdLayout",
|
|
2447
2351
|
setup(e) {
|
|
2448
|
-
let { title: t, page: n } =
|
|
2352
|
+
let { title: t, page: n } = Te(), r = j(() => {
|
|
2449
2353
|
let e = n.value.icon;
|
|
2450
|
-
return e ?
|
|
2451
|
-
}), i = O(), { withBase: a } = i, o =
|
|
2354
|
+
return e ? ye(e.name) : void 0;
|
|
2355
|
+
}), i = O(), { withBase: a } = i, o = he(), s = j(() => o.value.ready), { isOpen: c, open: u, close: d } = qi(), f = V(""), p = V(!1), m = V(!1), h = k();
|
|
2452
2356
|
G(() => h.path, () => d()), Ba();
|
|
2453
|
-
let g =
|
|
2357
|
+
let g = it("sidebarSearch"), _ = it("menuSearch");
|
|
2454
2358
|
function v() {
|
|
2455
2359
|
if (_.value?.isFocused || g.value?.isFocused) {
|
|
2456
2360
|
_.value?.blur(), g.value?.blur(), c.value && d();
|
|
2457
2361
|
return;
|
|
2458
2362
|
}
|
|
2459
|
-
c.value ? _.value?.focus() : g.value?.isVisible ? g.value.focus() : (u(),
|
|
2363
|
+
c.value ? _.value?.focus() : g.value?.isVisible ? g.value.focus() : (u(), Ue(() => _.value?.focus()));
|
|
2460
2364
|
}
|
|
2461
|
-
Ha([$.Control, $.k], v), Ha([$.Meta, $.k], v),
|
|
2365
|
+
Ha([$.Control, $.k], v), Ha([$.Meta, $.k], v), ot(() => {
|
|
2462
2366
|
if (typeof document > "u") return;
|
|
2463
2367
|
let e = t.value, r = i.title;
|
|
2464
2368
|
document.title = e && e !== r ? `${e} - ${r}` : r;
|
|
@@ -2525,7 +2429,7 @@ var Ja = { class: "td-header" }, Ya = { class: "td-header-left" }, Xa = ["href"]
|
|
|
2525
2429
|
label: "Close menu",
|
|
2526
2430
|
onClick: W(d)
|
|
2527
2431
|
}, {
|
|
2528
|
-
default:
|
|
2432
|
+
default: st(() => [L(W(be), { size: 20 })]),
|
|
2529
2433
|
_: 1
|
|
2530
2434
|
}, 8, ["onClick"]), F("a", {
|
|
2531
2435
|
href: W(a)(W(l)("/")),
|
|
@@ -2553,7 +2457,7 @@ var Ja = { class: "td-header" }, Ya = { class: "td-header-left" }, Xa = ["href"]
|
|
|
2553
2457
|
F("div", ao, [F("nav", {
|
|
2554
2458
|
class: "td-sidebar-left",
|
|
2555
2459
|
"aria-label": "Site navigation",
|
|
2556
|
-
style:
|
|
2460
|
+
style: We({ width: `${y.value}px` })
|
|
2557
2461
|
}, [F("div", oo, [L(Ra, {
|
|
2558
2462
|
ref_key: "sidebarSearch",
|
|
2559
2463
|
ref: g,
|
|
@@ -2570,11 +2474,11 @@ var Ja = { class: "td-header" }, Ya = { class: "td-header-left" }, Xa = ["href"]
|
|
|
2570
2474
|
"aria-orientation": "vertical",
|
|
2571
2475
|
"aria-label": "Resize sidebar",
|
|
2572
2476
|
tabindex: "0",
|
|
2573
|
-
onPointerdown:
|
|
2574
|
-
onKeydown: [
|
|
2477
|
+
onPointerdown: ut(S, ["prevent"]),
|
|
2478
|
+
onKeydown: [lt(ut(C, ["prevent"]), ["left"]), lt(ut(x, ["prevent"]), ["right"])]
|
|
2575
2479
|
}, null, 40, so)], 4), F("div", co, [F("main", lo, [F("article", uo, [
|
|
2576
2480
|
W(n).schema ? (B(), P("div", fo, U(W(n).schemaLabel ?? W(n).schema), 1)) : N("", !0),
|
|
2577
|
-
r.value ? (B(), P("div", po, [(B(), M(
|
|
2481
|
+
r.value ? (B(), P("div", po, [(B(), M(Qe(r.value), { size: 32 }))])) : N("", !0),
|
|
2578
2482
|
W(t) ? (B(), P("h1", {
|
|
2579
2483
|
key: 2,
|
|
2580
2484
|
class: "td-page-title",
|
|
@@ -2592,7 +2496,7 @@ var Ja = { class: "td-header" }, Ya = { class: "td-header-left" }, Xa = ["href"]
|
|
|
2592
2496
|
headings: W(n).headings,
|
|
2593
2497
|
static: ""
|
|
2594
2498
|
}, null, 8, ["headings"])) : N("", !0),
|
|
2595
|
-
F("div", _o, [L(W(
|
|
2499
|
+
F("div", _o, [L(W(_e))]),
|
|
2596
2500
|
L(ua)
|
|
2597
2501
|
])]), L(ya, { class: "td-rail" })])]),
|
|
2598
2502
|
L(Ir)
|
|
@@ -2617,4 +2521,4 @@ var Ja = { class: "td-header" }, Ya = { class: "td-header-left" }, Xa = ["href"]
|
|
|
2617
2521
|
NotFound: To
|
|
2618
2522
|
};
|
|
2619
2523
|
//#endregion
|
|
2620
|
-
export {
|
|
2524
|
+
export { Ce as TdDirectoryIndex, Ee as TdGlossaryIndex, Ca as TdKbdShortcut, $ as TdKeyName, So as TdLayout, To as TdNotFound, Eo as default, Ba as useCopyCode, Ha as useGlobalHotkey, Ua as useLocalHotkeys };
|