typerighter 0.32.0 → 0.32.2
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/{cli-Bpm-5dO2.js → cli-DdrjkEOn.js} +5 -5
- package/dist/cli.js +1 -1
- package/dist/client/theme-default.js +454 -449
- package/dist/index.js +2 -2
- package/dist/{init-CXPxeWb3.js → init-UIMpuvSt.js} +2 -2
- package/dist/node/build/prerender.d.ts.map +1 -1
- package/dist/typerighter.css +1 -1
- package/dist/{vite-OiCh59kk.js → vite-oRX7_Z5q.js} +130 -127
- package/dist/vite.js +1 -1
- package/package.json +3 -3
|
@@ -1,10 +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, g as m, h, i as g, j as _, l as v, n as y, o as b, r as x, s as S, v as C, w, x as T, y as ee } 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 { A as E, C as re, D as ie, E as ae, F as oe, I as se, L as D, 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
|
|
5
|
-
import { a as
|
|
6
|
-
import { Fragment as
|
|
7
|
-
var
|
|
4
|
+
import { A as E, C as re, D as ie, E as ae, F as oe, I as se, L as D, 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 O, g as ye, h as k, i as A, j as be, k as xe, l as j, m as Se, n as Ce, o as we, p as Te, r as Ee, s as De, v as Oe, w as ke, x as Ae, y as je } from "../app-CQK4JuN5.js";
|
|
5
|
+
import { a as Me, i as Ne, n as Pe, t as Fe } from "../brand-CG1fQshq.js";
|
|
6
|
+
import { Fragment as M, Teleport as Ie, computed as N, createApp as Le, createBlock as P, createCommentVNode as F, createElementBlock as I, createElementVNode as L, createTextVNode as R, createVNode as z, defineComponent as B, getCurrentScope as Re, markRaw as ze, mergeModels as Be, mergeProps as Ve, nextTick as He, normalizeClass as V, normalizeStyle as Ue, onBeforeUnmount as We, onMounted as Ge, onScopeDispose as Ke, onUnmounted as qe, openBlock as H, readonly as Je, ref as U, renderList as W, renderSlot as Ye, resolveComponent as Xe, resolveDynamicComponent as G, shallowReadonly as Ze, shallowRef as Qe, toDisplayString as K, toValue as $e, triggerRef as et, unref as q, useModel as tt, useTemplateRef as nt, vModelText as rt, watch as J, watchEffect as it, withCtx as at, withDirectives as ot, withKeys as st, withModifiers as ct } from "vue";
|
|
7
|
+
var lt = D({
|
|
8
8
|
name: "circle-dot",
|
|
9
9
|
size: 24,
|
|
10
10
|
node: [["circle", {
|
|
@@ -18,14 +18,14 @@ var ut = D({
|
|
|
18
18
|
r: "10",
|
|
19
19
|
key: "1mglay"
|
|
20
20
|
}]]
|
|
21
|
-
}),
|
|
21
|
+
}), ut = D({
|
|
22
22
|
name: "command",
|
|
23
23
|
size: 24,
|
|
24
24
|
node: [["path", {
|
|
25
25
|
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",
|
|
26
26
|
key: "11bfej"
|
|
27
27
|
}]]
|
|
28
|
-
}),
|
|
28
|
+
}), dt = D({
|
|
29
29
|
name: "corner-down-left",
|
|
30
30
|
size: 24,
|
|
31
31
|
node: [["path", {
|
|
@@ -35,7 +35,7 @@ var ut = D({
|
|
|
35
35
|
d: "m9 10-5 5 5 5",
|
|
36
36
|
key: "1kshq7"
|
|
37
37
|
}]]
|
|
38
|
-
}),
|
|
38
|
+
}), ft = D({
|
|
39
39
|
name: "delete",
|
|
40
40
|
size: 24,
|
|
41
41
|
node: [
|
|
@@ -52,14 +52,14 @@ var ut = D({
|
|
|
52
52
|
key: "1fp51s"
|
|
53
53
|
}]
|
|
54
54
|
]
|
|
55
|
-
}),
|
|
55
|
+
}), pt = D({
|
|
56
56
|
name: "folder-open",
|
|
57
57
|
size: 24,
|
|
58
58
|
node: [["path", {
|
|
59
59
|
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",
|
|
60
60
|
key: "usdka0"
|
|
61
61
|
}]]
|
|
62
|
-
}),
|
|
62
|
+
}), mt = D({
|
|
63
63
|
name: "loader-circle",
|
|
64
64
|
size: 24,
|
|
65
65
|
node: [["path", {
|
|
@@ -67,7 +67,7 @@ var ut = D({
|
|
|
67
67
|
key: "13zald"
|
|
68
68
|
}]],
|
|
69
69
|
aliases: ["loader-2"]
|
|
70
|
-
}),
|
|
70
|
+
}), ht = D({
|
|
71
71
|
name: "option",
|
|
72
72
|
size: 24,
|
|
73
73
|
node: [["path", {
|
|
@@ -77,14 +77,14 @@ var ut = D({
|
|
|
77
77
|
d: "M3 3h5.28a1 1 0 0 1 .948.684l5.544 16.632a1 1 0 0 0 .949.684H21",
|
|
78
78
|
key: "1qf1im"
|
|
79
79
|
}]]
|
|
80
|
-
}),
|
|
80
|
+
}), gt = D({
|
|
81
81
|
name: "space",
|
|
82
82
|
size: 24,
|
|
83
83
|
node: [["path", {
|
|
84
84
|
d: "M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1",
|
|
85
85
|
key: "lt2kga"
|
|
86
86
|
}]]
|
|
87
|
-
}),
|
|
87
|
+
}), _t = D({
|
|
88
88
|
name: "square-check-big",
|
|
89
89
|
size: 24,
|
|
90
90
|
node: [["path", {
|
|
@@ -95,7 +95,7 @@ var ut = D({
|
|
|
95
95
|
key: "1pflzl"
|
|
96
96
|
}]],
|
|
97
97
|
aliases: ["check-square"]
|
|
98
|
-
}),
|
|
98
|
+
}), vt = D({
|
|
99
99
|
name: "tags",
|
|
100
100
|
size: 24,
|
|
101
101
|
node: [
|
|
@@ -115,7 +115,7 @@ var ut = D({
|
|
|
115
115
|
key: "12ikhr"
|
|
116
116
|
}]
|
|
117
117
|
]
|
|
118
|
-
}),
|
|
118
|
+
}), yt = D({
|
|
119
119
|
name: "type",
|
|
120
120
|
size: 24,
|
|
121
121
|
node: [
|
|
@@ -132,52 +132,52 @@ var ut = D({
|
|
|
132
132
|
key: "s66wpe"
|
|
133
133
|
}]
|
|
134
134
|
]
|
|
135
|
-
}),
|
|
135
|
+
}), bt = [
|
|
136
136
|
"height",
|
|
137
137
|
"width",
|
|
138
138
|
"viewBox"
|
|
139
|
-
],
|
|
139
|
+
], xt = ["d"], St = ["d"], Ct = ["d"], wt = /* @__PURE__ */ B({
|
|
140
140
|
__name: "TdBrandIcon",
|
|
141
141
|
props: { size: { default: 28 } },
|
|
142
142
|
setup(e) {
|
|
143
|
-
return (t, n) => (
|
|
143
|
+
return (t, n) => (H(), I("svg", {
|
|
144
144
|
fill: "none",
|
|
145
145
|
height: e.size,
|
|
146
146
|
width: e.size * 208 / 128,
|
|
147
|
-
viewBox:
|
|
147
|
+
viewBox: q(Me),
|
|
148
148
|
xmlns: "http://www.w3.org/2000/svg"
|
|
149
149
|
}, [
|
|
150
|
-
|
|
150
|
+
L("path", {
|
|
151
151
|
"clip-rule": "evenodd",
|
|
152
|
-
d:
|
|
152
|
+
d: q(Pe),
|
|
153
153
|
"fill-rule": "evenodd",
|
|
154
154
|
fill: "currentColor"
|
|
155
|
-
}, null, 8,
|
|
156
|
-
|
|
157
|
-
d:
|
|
155
|
+
}, null, 8, xt),
|
|
156
|
+
L("path", {
|
|
157
|
+
d: q(Ne),
|
|
158
158
|
fill: "currentColor"
|
|
159
|
-
}, null, 8,
|
|
160
|
-
|
|
161
|
-
d:
|
|
159
|
+
}, null, 8, St),
|
|
160
|
+
L("path", {
|
|
161
|
+
d: q(Fe),
|
|
162
162
|
fill: "currentColor"
|
|
163
|
-
}, null, 8,
|
|
164
|
-
], 8,
|
|
163
|
+
}, null, 8, Ct)
|
|
164
|
+
], 8, bt));
|
|
165
165
|
}
|
|
166
|
-
}),
|
|
166
|
+
}), Tt = ["title", "aria-label"], Et = /*#__PURE__*/ k(/* @__PURE__ */ B({
|
|
167
167
|
__name: "TdButton",
|
|
168
168
|
props: { label: {} },
|
|
169
169
|
setup(e) {
|
|
170
|
-
return (t, n) => (
|
|
170
|
+
return (t, n) => (H(), I("button", {
|
|
171
171
|
type: "button",
|
|
172
172
|
class: "td-icon-btn",
|
|
173
173
|
title: e.label,
|
|
174
174
|
"aria-label": e.label
|
|
175
|
-
}, [
|
|
175
|
+
}, [Ye(t.$slots, "default", {}, void 0, !0)], 8, Tt));
|
|
176
176
|
}
|
|
177
|
-
}), [["__scopeId", "data-v-b1861a4a"]]),
|
|
178
|
-
function
|
|
177
|
+
}), [["__scopeId", "data-v-b1861a4a"]]), Dt = /`([^`]+)`|\$([^$]+)\$/g;
|
|
178
|
+
function Ot(e) {
|
|
179
179
|
let t = 0, n = "";
|
|
180
|
-
for (let r of e.matchAll(
|
|
180
|
+
for (let r of e.matchAll(Dt)) {
|
|
181
181
|
if (n += S(e.slice(t, r.index)), r[1] !== void 0) n += `<code>${S(r[1])}</code>`;
|
|
182
182
|
else if (r[2] !== void 0) try {
|
|
183
183
|
n += te.renderToString(r[2], { throwOnError: !1 });
|
|
@@ -190,43 +190,43 @@ function kt(e) {
|
|
|
190
190
|
}
|
|
191
191
|
//#endregion
|
|
192
192
|
//#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
193
|
-
var
|
|
193
|
+
var kt = Math.min, At = Math.max, jt = Math.round, Y = (e) => ({
|
|
194
194
|
x: e,
|
|
195
195
|
y: e
|
|
196
|
-
}),
|
|
196
|
+
}), Mt = {
|
|
197
197
|
left: "right",
|
|
198
198
|
right: "left",
|
|
199
199
|
bottom: "top",
|
|
200
200
|
top: "bottom"
|
|
201
201
|
};
|
|
202
|
-
function
|
|
203
|
-
return
|
|
202
|
+
function Nt(e, t, n) {
|
|
203
|
+
return At(e, kt(t, n));
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function Pt(e, t) {
|
|
206
206
|
return typeof e == "function" ? e(t) : e;
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function Ft(e) {
|
|
209
209
|
return e.split("-")[0];
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function It(e) {
|
|
212
212
|
return e.split("-")[1];
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function Lt(e) {
|
|
215
215
|
return e === "x" ? "y" : "x";
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function Rt(e) {
|
|
218
218
|
return e === "y" ? "height" : "width";
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function zt(e) {
|
|
221
221
|
let t = e[0];
|
|
222
222
|
return t === "t" || t === "b" ? "y" : "x";
|
|
223
223
|
}
|
|
224
224
|
function Bt(e) {
|
|
225
|
-
return
|
|
225
|
+
return Lt(zt(e));
|
|
226
226
|
}
|
|
227
227
|
function Vt(e, t, n) {
|
|
228
228
|
n === void 0 && (n = !1);
|
|
229
|
-
let r =
|
|
229
|
+
let r = It(e), i = Bt(e), a = Rt(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
230
230
|
return t.reference[a] > t.floating[a] && (o = Xt(o)), [o, Xt(o)];
|
|
231
231
|
}
|
|
232
232
|
function Ht(e) {
|
|
@@ -251,12 +251,12 @@ function Jt(e, t, n) {
|
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
function Yt(e, t, n, r) {
|
|
254
|
-
let i =
|
|
254
|
+
let i = It(e), a = Jt(Ft(e), n === "start", r);
|
|
255
255
|
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Ut)))), a;
|
|
256
256
|
}
|
|
257
257
|
function Xt(e) {
|
|
258
|
-
let t =
|
|
259
|
-
return
|
|
258
|
+
let t = Ft(e);
|
|
259
|
+
return Mt[t] + e.slice(t.length);
|
|
260
260
|
}
|
|
261
261
|
function Zt(e) {
|
|
262
262
|
return {
|
|
@@ -290,7 +290,7 @@ function $t(e) {
|
|
|
290
290
|
//#endregion
|
|
291
291
|
//#region ../../node_modules/.pnpm/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
292
292
|
function en(e, t, n) {
|
|
293
|
-
let { reference: r, floating: i } = e, a =
|
|
293
|
+
let { reference: r, floating: i } = e, a = zt(t), o = Bt(t), s = Rt(o), c = Ft(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
|
|
294
294
|
switch (c) {
|
|
295
295
|
case "top":
|
|
296
296
|
p = {
|
|
@@ -321,12 +321,12 @@ function en(e, t, n) {
|
|
|
321
321
|
y: r.y
|
|
322
322
|
};
|
|
323
323
|
}
|
|
324
|
-
let m =
|
|
324
|
+
let m = It(t);
|
|
325
325
|
return m && (p[o] += f * (m === "end" ? 1 : -1) * (n && l ? -1 : 1)), p;
|
|
326
326
|
}
|
|
327
327
|
async function tn(e, t) {
|
|
328
328
|
t === void 0 && (t = {});
|
|
329
|
-
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } =
|
|
329
|
+
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = Pt(t, e), p = Qt(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = $t(await i.getClippingRect({
|
|
330
330
|
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
331
331
|
boundary: c,
|
|
332
332
|
rootBoundary: l,
|
|
@@ -398,14 +398,14 @@ var nn = 50, rn = async (e, t, n) => {
|
|
|
398
398
|
name: "arrow",
|
|
399
399
|
options: e,
|
|
400
400
|
async fn(t) {
|
|
401
|
-
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } =
|
|
401
|
+
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = Pt(e, t) || {};
|
|
402
402
|
if (l == null) return {};
|
|
403
403
|
let d = Qt(u), f = {
|
|
404
404
|
x: n,
|
|
405
405
|
y: r
|
|
406
|
-
}, p = Bt(i), m =
|
|
406
|
+
}, p = Bt(i), m = Rt(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;
|
|
407
407
|
(!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
|
|
408
|
-
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, ee =
|
|
408
|
+
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, ee = kt(d[_], T), te = kt(d[v], T), ne = C - h[m] - te, E = C / 2 - h[m] / 2 + w, re = Nt(ee, E, ne), ie = !c.arrow && It(i) != null && E !== re && a.reference[m] / 2 - (E < ee ? ee : te) - h[m] / 2 < 0, ae = ie ? E < ee ? E - ee : E - ne : 0;
|
|
409
409
|
return {
|
|
410
410
|
[p]: f[p] + ae,
|
|
411
411
|
data: {
|
|
@@ -422,9 +422,9 @@ var nn = 50, rn = async (e, t, n) => {
|
|
|
422
422
|
options: e,
|
|
423
423
|
async fn(t) {
|
|
424
424
|
var n;
|
|
425
|
-
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } =
|
|
425
|
+
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = Pt(e, t);
|
|
426
426
|
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
427
|
-
let g =
|
|
427
|
+
let g = Ft(r), _ = zt(o), v = Ft(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [Xt(o)] : Ht(o)), x = p !== "none";
|
|
428
428
|
!d && x && b.push(...Yt(o, m, p, y));
|
|
429
429
|
let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
|
|
430
430
|
if (l && w.push(C[g]), u) {
|
|
@@ -436,7 +436,7 @@ var nn = 50, rn = async (e, t, n) => {
|
|
|
436
436
|
overflows: w
|
|
437
437
|
}], !w.every((e) => e <= 0)) {
|
|
438
438
|
let e = (i.flip?.index || 0) + 1, t = S[e];
|
|
439
|
-
if (t && (u !== "alignment" || _ ===
|
|
439
|
+
if (t && (u !== "alignment" || _ === zt(t) || T.every((e) => zt(e.placement) !== _ || e.overflows[0] > 0))) return {
|
|
440
440
|
data: {
|
|
441
441
|
index: e,
|
|
442
442
|
overflows: T
|
|
@@ -448,7 +448,7 @@ var nn = 50, rn = async (e, t, n) => {
|
|
|
448
448
|
case "bestFit": {
|
|
449
449
|
let e = T.filter((e) => {
|
|
450
450
|
if (x) {
|
|
451
|
-
let t =
|
|
451
|
+
let t = zt(e.placement);
|
|
452
452
|
return t === _ || t === "y";
|
|
453
453
|
}
|
|
454
454
|
return !0;
|
|
@@ -465,7 +465,7 @@ var nn = 50, rn = async (e, t, n) => {
|
|
|
465
465
|
};
|
|
466
466
|
}, sn = /*#__PURE__*/ new Set(["left", "top"]);
|
|
467
467
|
async function cn(e, t) {
|
|
468
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o =
|
|
468
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = Ft(n), s = It(n), c = zt(n) === "y", l = sn.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = Pt(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
469
469
|
mainAxis: d,
|
|
470
470
|
crossAxis: 0,
|
|
471
471
|
alignmentAxis: null
|
|
@@ -510,10 +510,10 @@ var ln = function(e) {
|
|
|
510
510
|
x: t,
|
|
511
511
|
y: n
|
|
512
512
|
};
|
|
513
|
-
} }, ...l } =
|
|
513
|
+
} }, ...l } = Pt(e, t), u = {
|
|
514
514
|
x: n,
|
|
515
515
|
y: r
|
|
516
|
-
}, d = await a.detectOverflow(t, l), f =
|
|
516
|
+
}, d = await a.detectOverflow(t, l), f = zt(i), p = Lt(f), m = u[p], h = u[f], g = (e, t) => Nt(t + d[e === "y" ? "top" : "left"], t, t - d[e === "y" ? "bottom" : "right"]);
|
|
517
517
|
o && (m = g(p, m)), s && (h = g(f, h));
|
|
518
518
|
let _ = c.fn({
|
|
519
519
|
...t,
|
|
@@ -634,7 +634,7 @@ function Mn(e) {
|
|
|
634
634
|
//#endregion
|
|
635
635
|
//#region ../../node_modules/.pnpm/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
636
636
|
function Nn(e) {
|
|
637
|
-
let t = Q(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = hn(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s =
|
|
637
|
+
let t = Q(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = hn(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = jt(n) !== a || jt(r) !== o;
|
|
638
638
|
return s && (n = a, r = o), {
|
|
639
639
|
width: n,
|
|
640
640
|
height: r,
|
|
@@ -646,14 +646,14 @@ function Pn(e) {
|
|
|
646
646
|
}
|
|
647
647
|
function Fn(e) {
|
|
648
648
|
let t = Pn(e);
|
|
649
|
-
if (!hn(t)) return
|
|
650
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Nn(t), o = (a ?
|
|
649
|
+
if (!hn(t)) return Y(1);
|
|
650
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Nn(t), o = (a ? jt(n.width) : n.width) / r, s = (a ? jt(n.height) : n.height) / i;
|
|
651
651
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
652
652
|
x: o,
|
|
653
653
|
y: s
|
|
654
654
|
};
|
|
655
655
|
}
|
|
656
|
-
var In = /*#__PURE__*/
|
|
656
|
+
var In = /*#__PURE__*/ Y(0);
|
|
657
657
|
function Ln(e) {
|
|
658
658
|
let t = X(e);
|
|
659
659
|
return !En() || !t.visualViewport ? In : {
|
|
@@ -666,9 +666,9 @@ function Rn(e, t, n) {
|
|
|
666
666
|
}
|
|
667
667
|
function zn(e, t, n, r) {
|
|
668
668
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
669
|
-
let i = e.getBoundingClientRect(), a = Pn(e), o =
|
|
669
|
+
let i = e.getBoundingClientRect(), a = Pn(e), o = Y(1);
|
|
670
670
|
t && (r ? Z(r) && (o = Fn(r)) : o = Fn(e));
|
|
671
|
-
let s = Rn(a, n, r) ? Ln(a) :
|
|
671
|
+
let s = Rn(a, n, r) ? Ln(a) : Y(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
|
|
672
672
|
if (a && r) {
|
|
673
673
|
let e = X(a), t = Z(r) ? X(r) : r, n = e, i = Mn(n);
|
|
674
674
|
for (; i && t !== n;) {
|
|
@@ -700,12 +700,12 @@ function Hn(e) {
|
|
|
700
700
|
let c = {
|
|
701
701
|
scrollLeft: 0,
|
|
702
702
|
scrollTop: 0
|
|
703
|
-
}, l =
|
|
703
|
+
}, l = Y(1), u = Y(0), d = hn(r);
|
|
704
704
|
if ((d || !a) && ((fn(r) !== "body" || _n(o)) && (c = On(r)), d)) {
|
|
705
705
|
let e = zn(r);
|
|
706
706
|
l = Fn(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
707
707
|
}
|
|
708
|
-
let f = o && !d && !a ? Vn(o, c) :
|
|
708
|
+
let f = o && !d && !a ? Vn(o, c) : Y(0);
|
|
709
709
|
return {
|
|
710
710
|
width: n.width * l.x,
|
|
711
711
|
height: n.height * l.y,
|
|
@@ -717,8 +717,8 @@ function Un(e) {
|
|
|
717
717
|
return e.getClientRects ? Array.from(e.getClientRects()) : [];
|
|
718
718
|
}
|
|
719
719
|
function Wn(e) {
|
|
720
|
-
let t = On(e), n = e.ownerDocument.body, r =
|
|
721
|
-
return Q(n).direction === "rtl" && (a +=
|
|
720
|
+
let t = On(e), n = e.ownerDocument.body, r = At(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = At(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + Bn(e), o = -t.scrollTop;
|
|
721
|
+
return Q(n).direction === "rtl" && (a += At(e.clientWidth, n.clientWidth) - r), {
|
|
722
722
|
width: r,
|
|
723
723
|
height: i,
|
|
724
724
|
x: a,
|
|
@@ -783,7 +783,7 @@ function Xn(e) {
|
|
|
783
783
|
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? yn(t) ? [] : Yn(t, this._c) : [].concat(n), r], o = Jn(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
784
784
|
for (let e = 1; e < a.length; e++) {
|
|
785
785
|
let n = Jn(t, a[e], i);
|
|
786
|
-
s =
|
|
786
|
+
s = At(n.top, s), c = kt(n.right, c), l = kt(n.bottom, l), u = At(n.left, u);
|
|
787
787
|
}
|
|
788
788
|
return {
|
|
789
789
|
width: c - u,
|
|
@@ -803,13 +803,13 @@ function Qn(e, t, n) {
|
|
|
803
803
|
let r = hn(t), i = pn(t), a = n === "fixed", o = zn(e, !0, a, t), s = {
|
|
804
804
|
scrollLeft: 0,
|
|
805
805
|
scrollTop: 0
|
|
806
|
-
}, c =
|
|
806
|
+
}, c = Y(0);
|
|
807
807
|
if ((r || !a) && ((fn(t) !== "body" || _n(i)) && (s = On(t)), r)) {
|
|
808
808
|
let e = zn(t, !0, a, t);
|
|
809
809
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
810
810
|
}
|
|
811
811
|
!r && i && (c.x = Bn(i));
|
|
812
|
-
let l = i && !r && !a ? Vn(i, s) :
|
|
812
|
+
let l = i && !r && !a ? Vn(i, s) : Y(0);
|
|
813
813
|
return {
|
|
814
814
|
x: o.left + s.scrollLeft - c.x - l.x,
|
|
815
815
|
y: o.top + s.scrollTop - c.y - l.y,
|
|
@@ -895,7 +895,7 @@ function fr(e) {
|
|
|
895
895
|
name: "arrow",
|
|
896
896
|
options: e,
|
|
897
897
|
fn(t) {
|
|
898
|
-
let n = dr(
|
|
898
|
+
let n = dr($e(e.element));
|
|
899
899
|
return n == null ? {} : cr({
|
|
900
900
|
element: n,
|
|
901
901
|
padding: e.padding
|
|
@@ -912,7 +912,7 @@ function mr(e, t) {
|
|
|
912
912
|
}
|
|
913
913
|
function hr(e, t, n) {
|
|
914
914
|
n === void 0 && (n = {});
|
|
915
|
-
let r = n.whileElementsMounted, i =
|
|
915
|
+
let r = n.whileElementsMounted, i = N(() => $e(n.open) ?? !0), a = N(() => $e(n.middleware)), o = N(() => $e(n.placement) ?? "bottom"), s = N(() => $e(n.strategy) ?? "absolute"), c = N(() => $e(n.transform) ?? !0), l = N(() => dr(e.value)), u = N(() => dr(t.value)), d = U(0), f = U(0), p = U(s.value), m = U(o.value), h = Qe({}), g = U(!1), _ = N(() => {
|
|
916
916
|
let e = {
|
|
917
917
|
position: p.value,
|
|
918
918
|
left: "0",
|
|
@@ -957,30 +957,30 @@ function hr(e, t, n) {
|
|
|
957
957
|
function S() {
|
|
958
958
|
i.value || (g.value = !1);
|
|
959
959
|
}
|
|
960
|
-
return
|
|
960
|
+
return J([
|
|
961
961
|
a,
|
|
962
962
|
o,
|
|
963
963
|
s,
|
|
964
964
|
i
|
|
965
|
-
], y, { flush: "sync" }),
|
|
966
|
-
x:
|
|
967
|
-
y:
|
|
968
|
-
strategy:
|
|
969
|
-
placement:
|
|
970
|
-
middlewareData:
|
|
971
|
-
isPositioned:
|
|
965
|
+
], y, { flush: "sync" }), J([l, u], x, { flush: "sync" }), J(i, S, { flush: "sync" }), Re() && Ke(b), {
|
|
966
|
+
x: Ze(d),
|
|
967
|
+
y: Ze(f),
|
|
968
|
+
strategy: Ze(p),
|
|
969
|
+
placement: Ze(m),
|
|
970
|
+
middlewareData: Ze(h),
|
|
971
|
+
isPositioned: Ze(g),
|
|
972
972
|
floatingStyles: _,
|
|
973
973
|
update: y
|
|
974
974
|
};
|
|
975
975
|
}
|
|
976
976
|
//#endregion
|
|
977
977
|
//#region src/client/theme-default/components/TdTooltip.vue
|
|
978
|
-
var gr = /*#__PURE__*/
|
|
978
|
+
var gr = /*#__PURE__*/ k(/* @__PURE__ */ B({
|
|
979
979
|
inheritAttrs: !1,
|
|
980
980
|
__name: "TdTooltip",
|
|
981
981
|
props: { text: {} },
|
|
982
982
|
setup(e) {
|
|
983
|
-
let t =
|
|
983
|
+
let t = nt("trigger"), n = nt("tooltip"), r = nt("arrowEl"), i = U(!1), a, o, { floatingStyles: s, middlewareData: c, placement: l } = hr(t, n, {
|
|
984
984
|
placement: "right",
|
|
985
985
|
middleware: [
|
|
986
986
|
ar(8),
|
|
@@ -998,40 +998,40 @@ var gr = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
|
998
998
|
i.value = !0;
|
|
999
999
|
}, 400));
|
|
1000
1000
|
}
|
|
1001
|
-
|
|
1001
|
+
We(u);
|
|
1002
1002
|
function f() {
|
|
1003
1003
|
u(), o = setTimeout(() => {
|
|
1004
1004
|
i.value = !1;
|
|
1005
1005
|
}, 100);
|
|
1006
1006
|
}
|
|
1007
|
-
return (r, a) => (
|
|
1007
|
+
return (r, a) => (H(), I(M, null, [L("span", Ve({
|
|
1008
1008
|
ref_key: "trigger",
|
|
1009
1009
|
ref: t
|
|
1010
1010
|
}, r.$attrs, {
|
|
1011
1011
|
class: "td-tooltip-trigger",
|
|
1012
1012
|
onMouseenter: d,
|
|
1013
1013
|
onMouseleave: f
|
|
1014
|
-
}), [
|
|
1014
|
+
}), [Ye(r.$slots, "default", {}, void 0, !0)], 16), (H(), P(Ie, { to: "body" }, [i.value ? (H(), I("div", {
|
|
1015
1015
|
key: 0,
|
|
1016
1016
|
ref_key: "tooltip",
|
|
1017
1017
|
ref: n,
|
|
1018
1018
|
class: "td-tooltip",
|
|
1019
|
-
style:
|
|
1019
|
+
style: Ue(q(s)),
|
|
1020
1020
|
role: "tooltip",
|
|
1021
1021
|
onMouseenter: u,
|
|
1022
1022
|
onMouseleave: f
|
|
1023
|
-
}, [
|
|
1023
|
+
}, [R(K(e.text) + " ", 1), L("div", {
|
|
1024
1024
|
ref: "arrowEl",
|
|
1025
1025
|
class: "td-tooltip-arrow",
|
|
1026
|
-
style:
|
|
1027
|
-
left:
|
|
1028
|
-
top:
|
|
1029
|
-
...
|
|
1030
|
-
...
|
|
1031
|
-
...
|
|
1032
|
-
...
|
|
1026
|
+
style: Ue({
|
|
1027
|
+
left: q(c).arrow?.x === void 0 ? "" : `${q(c).arrow.x}px`,
|
|
1028
|
+
top: q(c).arrow?.y === void 0 ? "" : `${q(c).arrow.y}px`,
|
|
1029
|
+
...q(l).startsWith("bottom") ? { top: "-4px" } : {},
|
|
1030
|
+
...q(l).startsWith("top") ? { bottom: "-4px" } : {},
|
|
1031
|
+
...q(l).startsWith("right") ? { left: "-4px" } : {},
|
|
1032
|
+
...q(l).startsWith("left") ? { right: "-4px" } : {}
|
|
1033
1033
|
})
|
|
1034
|
-
}, null, 4)], 36)) :
|
|
1034
|
+
}, null, 4)], 36)) : F("", !0)]))], 64));
|
|
1035
1035
|
}
|
|
1036
1036
|
}), [["__scopeId", "data-v-fca9f648"]]), _r = {
|
|
1037
1037
|
key: 0,
|
|
@@ -1039,25 +1039,25 @@ var gr = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
|
1039
1039
|
}, vr = { class: "td-tree-label" }, yr = ["aria-expanded"], br = { class: "td-tree-label-text" }, xr = ["href"], Sr = { class: "td-tree-count" }, Cr = ["href"], wr = ["innerHTML"], Tr = {
|
|
1040
1040
|
key: 2,
|
|
1041
1041
|
class: "td-tree-time"
|
|
1042
|
-
}, Er = 5, Dr = /*#__PURE__*/
|
|
1042
|
+
}, Er = 5, Dr = /*#__PURE__*/ k(/* @__PURE__ */ B({
|
|
1043
1043
|
__name: "TdTreeNode",
|
|
1044
1044
|
props: {
|
|
1045
1045
|
node: {},
|
|
1046
1046
|
urlPrefix: { default: "" }
|
|
1047
1047
|
},
|
|
1048
1048
|
setup(n) {
|
|
1049
|
-
let r =
|
|
1049
|
+
let r = j(), { withBase: i } = A(), a = N(() => T(n.urlPrefix, n.node.name)), o = N(() => h(n.node)), s = N(() => o.value ? w(o.value.filepath) : l(a.value)), c = N(() => i(s.value)), d = N(() => o.value?.label ?? e(n.node.name)), f = N(() => o.value?.icon ? O(o.value.icon.name) : void 0), p = N(() => n.node.entries.filter((e) => e.kind === "dir" || !C(e.item.filepath))), m = N(() => 0 < n.node.entries.length), _ = N(() => v(n.node));
|
|
1050
1050
|
function v(e) {
|
|
1051
1051
|
let t = 0;
|
|
1052
1052
|
for (let n of e.entries) n.kind === "file" ? t++ : t += v(n.node);
|
|
1053
1053
|
return t;
|
|
1054
1054
|
}
|
|
1055
|
-
let y =
|
|
1055
|
+
let y = U(!t(a.value, r.path)), b = U(!1), x = N(() => p.value.filter((e) => e.kind === "file").length), S = N(() => b.value ? 0 : Math.max(0, x.value - Er)), ee = N(() => {
|
|
1056
1056
|
if (b.value) return p.value;
|
|
1057
1057
|
let e = 0;
|
|
1058
1058
|
return p.value.filter((t) => t.kind === "dir" || ++e <= Er);
|
|
1059
1059
|
});
|
|
1060
|
-
|
|
1060
|
+
J(() => r.path, (e) => {
|
|
1061
1061
|
t(a.value, e) && (y.value = !1);
|
|
1062
1062
|
});
|
|
1063
1063
|
function te() {
|
|
@@ -1070,63 +1070,63 @@ var gr = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
|
1070
1070
|
y.value = !y.value;
|
|
1071
1071
|
}
|
|
1072
1072
|
return (e, t) => {
|
|
1073
|
-
let n =
|
|
1074
|
-
return m.value ? (
|
|
1075
|
-
|
|
1073
|
+
let n = Xe("TdTreeNode", !0);
|
|
1074
|
+
return m.value ? (H(), I("div", _r, [L("div", vr, [
|
|
1075
|
+
L("button", {
|
|
1076
1076
|
type: "button",
|
|
1077
1077
|
class: "td-tree-toggle",
|
|
1078
1078
|
"aria-expanded": !y.value,
|
|
1079
1079
|
onClick: E
|
|
1080
|
-
}, [
|
|
1080
|
+
}, [z(q(be), {
|
|
1081
1081
|
size: 14,
|
|
1082
|
-
class:
|
|
1083
|
-
}, null, 8, ["class"]),
|
|
1084
|
-
|
|
1082
|
+
class: V(["td-tree-caret", { "is-collapsed": y.value }])
|
|
1083
|
+
}, null, 8, ["class"]), L("span", br, K(d.value), 1)], 8, yr),
|
|
1084
|
+
L("a", {
|
|
1085
1085
|
href: c.value,
|
|
1086
|
-
class:
|
|
1087
|
-
}, [f.value ? (
|
|
1086
|
+
class: V(["td-tree-index-btn", { "is-active": ne(s.value) }])
|
|
1087
|
+
}, [f.value ? (H(), P(G(f.value), {
|
|
1088
1088
|
key: 0,
|
|
1089
1089
|
size: 12
|
|
1090
|
-
})) : ne(s.value) ? (
|
|
1090
|
+
})) : ne(s.value) ? (H(), P(q(pt), {
|
|
1091
1091
|
key: 1,
|
|
1092
1092
|
size: 12
|
|
1093
|
-
})) : (
|
|
1093
|
+
})) : (H(), P(q(pe), {
|
|
1094
1094
|
key: 2,
|
|
1095
1095
|
size: 12
|
|
1096
1096
|
}))], 10, xr),
|
|
1097
|
-
|
|
1098
|
-
]),
|
|
1097
|
+
L("span", Sr, K(_.value), 1)
|
|
1098
|
+
]), L("div", { class: V(["td-collapse td-tree-children", { "is-collapsed": y.value }]) }, [L("div", null, [(H(!0), I(M, null, W(ee.value, (e) => (H(), I(M, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (H(), P(n, {
|
|
1099
1099
|
key: 0,
|
|
1100
1100
|
node: e.node,
|
|
1101
1101
|
"url-prefix": a.value
|
|
1102
|
-
}, null, 8, ["node", "url-prefix"])) : (
|
|
1102
|
+
}, null, 8, ["node", "url-prefix"])) : (H(), I("a", {
|
|
1103
1103
|
key: 1,
|
|
1104
|
-
href:
|
|
1105
|
-
class:
|
|
1104
|
+
href: q(i)(q(w)(e.item.filepath)),
|
|
1105
|
+
class: V(["td-tree-link", { "is-active": ne(q(w)(e.item.filepath)) }])
|
|
1106
1106
|
}, [
|
|
1107
|
-
e.item.icon &&
|
|
1107
|
+
e.item.icon && q(O)(e.item.icon.name) ? (H(), P(G(q(O)(e.item.icon.name)), {
|
|
1108
1108
|
key: 0,
|
|
1109
1109
|
size: 14,
|
|
1110
1110
|
class: "td-tree-file-icon"
|
|
1111
|
-
})) : (
|
|
1111
|
+
})) : (H(), P(q(ae), {
|
|
1112
1112
|
key: 1,
|
|
1113
1113
|
size: 14,
|
|
1114
1114
|
class: "td-tree-file-icon"
|
|
1115
1115
|
})),
|
|
1116
|
-
|
|
1116
|
+
z(gr, {
|
|
1117
1117
|
class: "td-tree-link-text",
|
|
1118
|
-
text:
|
|
1118
|
+
text: q(u)(e.item.filepath, e.item.label)
|
|
1119
1119
|
}, {
|
|
1120
|
-
default:
|
|
1120
|
+
default: at(() => [L("span", { innerHTML: q(Ot)(q(u)(e.item.filepath, e.item.label)) }, null, 8, wr)]),
|
|
1121
1121
|
_: 2
|
|
1122
1122
|
}, 1032, ["text"]),
|
|
1123
|
-
e.item.metadata ? (
|
|
1124
|
-
], 10, Cr))], 64))), 128)), S.value > 0 && !b.value ? (
|
|
1123
|
+
e.item.metadata ? (H(), I("span", Tr, K(q(g)(e.item.metadata.mtime)), 1)) : F("", !0)
|
|
1124
|
+
], 10, Cr))], 64))), 128)), S.value > 0 && !b.value ? (H(), I("button", {
|
|
1125
1125
|
key: 0,
|
|
1126
1126
|
class: "td-tree-more",
|
|
1127
1127
|
type: "button",
|
|
1128
1128
|
onClick: te
|
|
1129
|
-
},
|
|
1129
|
+
}, K(S.value) + " more... ", 1)) : F("", !0)])], 2)])) : F("", !0);
|
|
1130
1130
|
};
|
|
1131
1131
|
}
|
|
1132
1132
|
}), [["__scopeId", "data-v-d7e7ef3b"]]), Or = ["href"], kr = {
|
|
@@ -1135,64 +1135,64 @@ var gr = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
|
1135
1135
|
}, Ar = ["href"], jr = { class: "td-root-link-text" }, Mr = {
|
|
1136
1136
|
key: 2,
|
|
1137
1137
|
class: "td-root-link-time"
|
|
1138
|
-
}, Nr = /*#__PURE__*/
|
|
1138
|
+
}, Nr = /*#__PURE__*/ k(/* @__PURE__ */ B({
|
|
1139
1139
|
__name: "TdContentNav",
|
|
1140
1140
|
props: { tree: {} },
|
|
1141
1141
|
setup(e) {
|
|
1142
|
-
let t =
|
|
1142
|
+
let t = j(), { withBase: n } = A(), r = N(() => e.tree.entries.find((e) => e.kind === "file" && C(e.item.filepath))?.item), i = N(() => e.tree.entries.filter((e) => e.kind === "dir" || !C(e.item.filepath)));
|
|
1143
1143
|
function a(e) {
|
|
1144
1144
|
return t.path === e;
|
|
1145
1145
|
}
|
|
1146
|
-
return (e, t) => (
|
|
1147
|
-
href:
|
|
1148
|
-
class:
|
|
1146
|
+
return (e, t) => (H(), I("nav", null, [L("a", {
|
|
1147
|
+
href: q(n)(r.value ? q(w)(r.value.filepath) : q(l)("/")),
|
|
1148
|
+
class: V(["td-root-link", { "is-active": a(r.value ? q(w)(r.value.filepath) : q(l)("/")) }])
|
|
1149
1149
|
}, [
|
|
1150
|
-
|
|
1150
|
+
z(q(ke), {
|
|
1151
1151
|
size: 14,
|
|
1152
1152
|
class: "td-root-link-icon"
|
|
1153
1153
|
}),
|
|
1154
|
-
t[0] ||=
|
|
1155
|
-
r.value ? (
|
|
1156
|
-
], 10, Or), (
|
|
1154
|
+
t[0] ||= L("span", { class: "td-root-link-text" }, "Overview", -1),
|
|
1155
|
+
r.value ? (H(), I("span", kr, K(r.value.metadata ? q(g)(r.value.metadata.mtime) : ""), 1)) : F("", !0)
|
|
1156
|
+
], 10, Or), (H(!0), I(M, null, W(i.value, (e) => (H(), I(M, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (H(), P(Dr, {
|
|
1157
1157
|
key: 0,
|
|
1158
1158
|
node: e.node
|
|
1159
|
-
}, null, 8, ["node"])) : (
|
|
1159
|
+
}, null, 8, ["node"])) : (H(), I("a", {
|
|
1160
1160
|
key: 1,
|
|
1161
|
-
href:
|
|
1162
|
-
class:
|
|
1161
|
+
href: q(n)(q(w)(e.item.filepath)),
|
|
1162
|
+
class: V(["td-root-link", { "is-active": a(q(w)(e.item.filepath)) }])
|
|
1163
1163
|
}, [
|
|
1164
|
-
e.item.icon &&
|
|
1164
|
+
e.item.icon && q(O)(e.item.icon.name) ? (H(), P(G(q(O)(e.item.icon.name)), {
|
|
1165
1165
|
key: 0,
|
|
1166
1166
|
size: 14,
|
|
1167
1167
|
class: "td-root-link-icon"
|
|
1168
|
-
})) : (
|
|
1168
|
+
})) : (H(), P(q(ae), {
|
|
1169
1169
|
key: 1,
|
|
1170
1170
|
size: 14,
|
|
1171
1171
|
class: "td-root-link-icon"
|
|
1172
1172
|
})),
|
|
1173
|
-
|
|
1174
|
-
e.item.metadata ? (
|
|
1173
|
+
L("span", jr, K(q(u)(e.item.filepath, e.item.label)), 1),
|
|
1174
|
+
e.item.metadata ? (H(), I("span", Mr, K(q(g)(e.item.metadata.mtime)), 1)) : F("", !0)
|
|
1175
1175
|
], 10, Ar))], 64))), 128))]));
|
|
1176
1176
|
}
|
|
1177
|
-
}), [["__scopeId", "data-v-13f1dd79"]]), Pr = { class: "td-footer" }, Fr = { key: 0 }, Ir = /*#__PURE__*/
|
|
1177
|
+
}), [["__scopeId", "data-v-13f1dd79"]]), Pr = { class: "td-footer" }, Fr = { key: 0 }, Ir = /*#__PURE__*/ k(/* @__PURE__ */ B({
|
|
1178
1178
|
__name: "TdFooter",
|
|
1179
1179
|
setup(e) {
|
|
1180
|
-
let t =
|
|
1181
|
-
return (e, r) => (
|
|
1180
|
+
let t = A(), n = (/* @__PURE__ */ new Date()).getFullYear();
|
|
1181
|
+
return (e, r) => (H(), I("footer", Pr, [r[0] ||= L("span", null, [R(" Powered by "), L("a", {
|
|
1182
1182
|
href: "https://github.com/huydo862003/typerighter",
|
|
1183
1183
|
target: "_blank",
|
|
1184
1184
|
rel: "noopener noreferrer",
|
|
1185
1185
|
class: "td-footer-link"
|
|
1186
|
-
}, "Typerighter")], -1),
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
])) :
|
|
1186
|
+
}, "Typerighter")], -1), q(t).author || q(t).license ? (H(), I("span", Fr, [
|
|
1187
|
+
q(t).license ? (H(), I(M, { key: 0 }, [R(K(q(t).license), 1)], 64)) : F("", !0),
|
|
1188
|
+
q(t).license && q(t).author ? (H(), I(M, { key: 1 }, [R(" · ")], 64)) : F("", !0),
|
|
1189
|
+
q(t).author ? (H(), I(M, { key: 2 }, [R("© " + K(q(n)) + " " + K(q(t).author), 1)], 64)) : F("", !0)
|
|
1190
|
+
])) : F("", !0)]));
|
|
1191
1191
|
}
|
|
1192
1192
|
}), [["__scopeId", "data-v-50e2a5bc"]]), Lr = {
|
|
1193
1193
|
key: 0,
|
|
1194
1194
|
class: "td-dropdown-panel"
|
|
1195
|
-
}, Rr = /*#__PURE__*/
|
|
1195
|
+
}, Rr = /*#__PURE__*/ k(/* @__PURE__ */ B({
|
|
1196
1196
|
inheritAttrs: !1,
|
|
1197
1197
|
__name: "TdDropdown",
|
|
1198
1198
|
props: {
|
|
@@ -1204,21 +1204,21 @@ var gr = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
|
1204
1204
|
},
|
|
1205
1205
|
emits: ["update:open"],
|
|
1206
1206
|
setup(e) {
|
|
1207
|
-
let t =
|
|
1207
|
+
let t = tt(e, "open"), n = nt("wrapper");
|
|
1208
1208
|
function r(e) {
|
|
1209
1209
|
n.value?.contains(e.target) || (t.value = !1);
|
|
1210
1210
|
}
|
|
1211
1211
|
function i() {
|
|
1212
1212
|
t.value = !t.value;
|
|
1213
1213
|
}
|
|
1214
|
-
return
|
|
1214
|
+
return J(t, (e) => {
|
|
1215
1215
|
typeof document > "u" || (e ? document.addEventListener("click", r) : document.removeEventListener("click", r));
|
|
1216
|
-
}),
|
|
1216
|
+
}), qe(() => {
|
|
1217
1217
|
typeof document > "u" || document.removeEventListener("click", r);
|
|
1218
|
-
}), (e, r) => (
|
|
1218
|
+
}), (e, r) => (H(), I("span", Ve({
|
|
1219
1219
|
ref_key: "wrapper",
|
|
1220
1220
|
ref: n
|
|
1221
|
-
}, e.$attrs, { class: "td-dropdown" }), [
|
|
1221
|
+
}, e.$attrs, { class: "td-dropdown" }), [L("span", { onClick: i }, [Ye(e.$slots, "trigger", {}, void 0, !0)]), t.value ? (H(), I("div", Lr, [Ye(e.$slots, "default", {}, void 0, !0)])) : F("", !0)], 16));
|
|
1222
1222
|
}
|
|
1223
1223
|
}), [["__scopeId", "data-v-80759150"]]), zr = {
|
|
1224
1224
|
class: "td-breadcrumb",
|
|
@@ -1232,10 +1232,10 @@ var gr = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
|
1232
1232
|
}, Gr = ["href"], Kr = {
|
|
1233
1233
|
key: 1,
|
|
1234
1234
|
class: "td-breadcrumb-current"
|
|
1235
|
-
}, qr = 3, Jr = /*#__PURE__*/
|
|
1235
|
+
}, qr = 3, Jr = /*#__PURE__*/ k(/* @__PURE__ */ B({
|
|
1236
1236
|
__name: "TdBreadcrumb",
|
|
1237
1237
|
setup(t) {
|
|
1238
|
-
let r =
|
|
1238
|
+
let r = j(), { withBase: i } = A(), o = U(!1), s = N(() => {
|
|
1239
1239
|
let t = a(r.path), o = [{
|
|
1240
1240
|
name: "Home",
|
|
1241
1241
|
href: i(l("/"))
|
|
@@ -1250,45 +1250,45 @@ var gr = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
|
1250
1250
|
});
|
|
1251
1251
|
}
|
|
1252
1252
|
return o;
|
|
1253
|
-
}), c =
|
|
1254
|
-
return
|
|
1253
|
+
}), c = N(() => qr < s.value.length), u = N(() => s.value.slice(1, -2));
|
|
1254
|
+
return J(() => r.path, () => {
|
|
1255
1255
|
o.value = !1;
|
|
1256
|
-
}), (e, t) => (
|
|
1256
|
+
}), (e, t) => (H(), I("nav", zr, [L("a", {
|
|
1257
1257
|
href: s.value[0].href,
|
|
1258
1258
|
class: "td-breadcrumb-link td-breadcrumb-home"
|
|
1259
|
-
},
|
|
1260
|
-
t[2] ||=
|
|
1259
|
+
}, K(s.value[0].name), 9, Br), c.value ? (H(), I(M, { key: 0 }, [
|
|
1260
|
+
t[2] ||= L("span", {
|
|
1261
1261
|
class: "td-breadcrumb-sep",
|
|
1262
1262
|
"aria-hidden": "true"
|
|
1263
1263
|
}, "/", -1),
|
|
1264
|
-
|
|
1264
|
+
z(Rr, {
|
|
1265
1265
|
open: o.value,
|
|
1266
1266
|
"onUpdate:open": t[0] ||= (e) => o.value = e
|
|
1267
1267
|
}, {
|
|
1268
|
-
trigger:
|
|
1269
|
-
default:
|
|
1268
|
+
trigger: at(() => [L("button", Vr, [z(q(ue), { size: 14 })])]),
|
|
1269
|
+
default: at(() => [(H(!0), I(M, null, W(u.value, (e) => (H(), I("a", {
|
|
1270
1270
|
key: e.href,
|
|
1271
1271
|
href: e.href,
|
|
1272
1272
|
class: "td-breadcrumb-dropdown-item"
|
|
1273
|
-
},
|
|
1273
|
+
}, K(e.name), 9, Hr))), 128))]),
|
|
1274
1274
|
_: 1
|
|
1275
1275
|
}, 8, ["open"]),
|
|
1276
|
-
(
|
|
1276
|
+
(H(!0), I(M, null, W(s.value.slice(-2), (e) => (H(), I(M, { key: e.href }, [t[1] ||= L("span", {
|
|
1277
1277
|
class: "td-breadcrumb-sep",
|
|
1278
1278
|
"aria-hidden": "true"
|
|
1279
|
-
}, "/", -1), e === s.value[s.value.length - 1] ? (
|
|
1279
|
+
}, "/", -1), e === s.value[s.value.length - 1] ? (H(), I("span", Wr, K(e.name), 1)) : (H(), I("a", {
|
|
1280
1280
|
key: 0,
|
|
1281
1281
|
href: e.href,
|
|
1282
1282
|
class: "td-breadcrumb-link"
|
|
1283
|
-
},
|
|
1284
|
-
], 64)) : (
|
|
1283
|
+
}, K(e.name), 9, Ur))], 64))), 128))
|
|
1284
|
+
], 64)) : (H(!0), I(M, { key: 1 }, W(s.value.slice(1), (e, n) => (H(), I(M, { key: e.href }, [t[3] ||= L("span", {
|
|
1285
1285
|
class: "td-breadcrumb-sep",
|
|
1286
1286
|
"aria-hidden": "true"
|
|
1287
|
-
}, "/", -1), n < s.value.length - 2 ? (
|
|
1287
|
+
}, "/", -1), n < s.value.length - 2 ? (H(), I("a", {
|
|
1288
1288
|
key: 0,
|
|
1289
1289
|
href: e.href,
|
|
1290
1290
|
class: "td-breadcrumb-link"
|
|
1291
|
-
},
|
|
1291
|
+
}, K(e.name), 9, Gr)) : (H(), I("span", Kr, K(e.name), 1))], 64))), 128))]));
|
|
1292
1292
|
}
|
|
1293
1293
|
}), [["__scopeId", "data-v-3400a7c6"]]), Yr = {
|
|
1294
1294
|
key: 0,
|
|
@@ -1297,23 +1297,23 @@ var gr = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
|
1297
1297
|
"href",
|
|
1298
1298
|
"target",
|
|
1299
1299
|
"rel"
|
|
1300
|
-
], Zr = /*#__PURE__*/
|
|
1300
|
+
], Zr = /*#__PURE__*/ k(/* @__PURE__ */ B({
|
|
1301
1301
|
__name: "TdHeaderNavBar",
|
|
1302
1302
|
setup(e) {
|
|
1303
|
-
let t =
|
|
1303
|
+
let t = A(), { withBase: n } = t, r = j();
|
|
1304
1304
|
function i(e) {
|
|
1305
1305
|
return !s(e) && r.path.startsWith(n(e));
|
|
1306
1306
|
}
|
|
1307
|
-
return (e, r) =>
|
|
1307
|
+
return (e, r) => q(t).nav?.length ? (H(), I("nav", Yr, [(H(!0), I(M, null, W(q(t).nav, (e) => (H(), I("a", {
|
|
1308
1308
|
key: e.link,
|
|
1309
|
-
href:
|
|
1310
|
-
target:
|
|
1311
|
-
rel:
|
|
1312
|
-
class:
|
|
1313
|
-
}, [
|
|
1309
|
+
href: q(s)(e.link) ? e.link : q(n)(e.link),
|
|
1310
|
+
target: q(s)(e.link) ? "_blank" : void 0,
|
|
1311
|
+
rel: q(s)(e.link) ? "noopener noreferrer" : void 0,
|
|
1312
|
+
class: V(["td-header-nav-link", { "is-active": i(e.link) }])
|
|
1313
|
+
}, [R(K(e.title), 1), q(s)(e.link) ? (H(), P(q(le), {
|
|
1314
1314
|
key: 0,
|
|
1315
1315
|
size: 14
|
|
1316
|
-
})) :
|
|
1316
|
+
})) : F("", !0)], 10, Xr))), 128))])) : F("", !0);
|
|
1317
1317
|
}
|
|
1318
1318
|
}), [["__scopeId", "data-v-f416755c"]]), Qr = {
|
|
1319
1319
|
key: 0,
|
|
@@ -1322,41 +1322,41 @@ var gr = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
|
1322
1322
|
"href",
|
|
1323
1323
|
"target",
|
|
1324
1324
|
"rel"
|
|
1325
|
-
], ei = /*#__PURE__*/
|
|
1325
|
+
], ei = /*#__PURE__*/ k(/* @__PURE__ */ B({
|
|
1326
1326
|
__name: "TdHeaderNavMenu",
|
|
1327
1327
|
setup(e) {
|
|
1328
|
-
let t =
|
|
1328
|
+
let t = A(), { withBase: n } = t, r = j();
|
|
1329
1329
|
function i(e) {
|
|
1330
1330
|
return !s(e) && r.path.startsWith(n(e));
|
|
1331
1331
|
}
|
|
1332
|
-
return (e, r) =>
|
|
1332
|
+
return (e, r) => q(t).nav?.length ? (H(), I("nav", Qr, [(H(!0), I(M, null, W(q(t).nav, (e) => (H(), I("a", {
|
|
1333
1333
|
key: e.link,
|
|
1334
|
-
href:
|
|
1335
|
-
target:
|
|
1336
|
-
rel:
|
|
1337
|
-
class:
|
|
1334
|
+
href: q(s)(e.link) ? e.link : q(n)(e.link),
|
|
1335
|
+
target: q(s)(e.link) ? "_blank" : void 0,
|
|
1336
|
+
rel: q(s)(e.link) ? "noopener noreferrer" : void 0,
|
|
1337
|
+
class: V(["td-menu-nav-item", { "is-active": i(e.link) }])
|
|
1338
1338
|
}, [
|
|
1339
|
-
e.icon ? (
|
|
1339
|
+
e.icon ? (H(), P(ve, {
|
|
1340
1340
|
key: 0,
|
|
1341
1341
|
name: e.icon,
|
|
1342
1342
|
size: 16
|
|
1343
|
-
}, null, 8, ["name"])) :
|
|
1344
|
-
|
|
1345
|
-
|
|
1343
|
+
}, null, 8, ["name"])) : F("", !0),
|
|
1344
|
+
L("span", null, K(e.title), 1),
|
|
1345
|
+
q(s)(e.link) ? (H(), P(q(le), {
|
|
1346
1346
|
key: 1,
|
|
1347
1347
|
size: 14
|
|
1348
|
-
})) :
|
|
1349
|
-
], 10, $r))), 128))])) :
|
|
1348
|
+
})) : F("", !0)
|
|
1349
|
+
], 10, $r))), 128))])) : F("", !0);
|
|
1350
1350
|
}
|
|
1351
|
-
}), [["__scopeId", "data-v-f3c16d10"]]), ti = { class: "td-widget-checkbox" }, ni = /*#__PURE__*/
|
|
1351
|
+
}), [["__scopeId", "data-v-f3c16d10"]]), ti = { class: "td-widget-checkbox" }, ni = /*#__PURE__*/ k(/* @__PURE__ */ B({
|
|
1352
1352
|
__name: "TdWidgetCheckbox",
|
|
1353
1353
|
props: { value: {} },
|
|
1354
1354
|
setup(e) {
|
|
1355
|
-
return (t, n) => (
|
|
1355
|
+
return (t, n) => (H(), I("span", ti, [e.value ? (H(), P(q(_t), {
|
|
1356
1356
|
key: 0,
|
|
1357
1357
|
size: 16,
|
|
1358
1358
|
class: "td-widget-checkbox-icon is-checked"
|
|
1359
|
-
})) : (
|
|
1359
|
+
})) : (H(), P(q(je), {
|
|
1360
1360
|
key: 1,
|
|
1361
1361
|
size: 16,
|
|
1362
1362
|
class: "td-widget-checkbox-icon"
|
|
@@ -1410,7 +1410,7 @@ function ai(e) {
|
|
|
1410
1410
|
var oi = {
|
|
1411
1411
|
key: 0,
|
|
1412
1412
|
class: "td-widget-relation-wrapper"
|
|
1413
|
-
}, si = ["href", "title"], ci = ["src", "alt"], li = ["href"], ui = { class: "td-widget-file-name" }, di = ["href"], fi = ["href"], pi = { key: 1 }, mi = /*#__PURE__*/
|
|
1413
|
+
}, si = ["href", "title"], ci = ["src", "alt"], li = ["href"], ui = { class: "td-widget-file-name" }, di = ["href"], fi = ["href"], pi = { key: 1 }, mi = /*#__PURE__*/ k(/* @__PURE__ */ B({
|
|
1414
1414
|
__name: "TdWidgetRelation",
|
|
1415
1415
|
props: {
|
|
1416
1416
|
value: {},
|
|
@@ -1420,78 +1420,78 @@ var oi = {
|
|
|
1420
1420
|
}
|
|
1421
1421
|
},
|
|
1422
1422
|
setup(e) {
|
|
1423
|
-
let { withBase: t } =
|
|
1424
|
-
return (a, o) => n.value ? (
|
|
1423
|
+
let { withBase: t } = A(), n = N(() => ii(e.value)), r = N(() => n.value?.icon ? O(n.value.icon.name) : void 0), i = N(() => n.value !== void 0 && s(n.value.url));
|
|
1424
|
+
return (a, o) => n.value ? (H(), I("span", oi, [n.value.isImage ? (H(), I("a", {
|
|
1425
1425
|
key: 0,
|
|
1426
|
-
href:
|
|
1426
|
+
href: q(t)(n.value.url),
|
|
1427
1427
|
target: "_blank",
|
|
1428
1428
|
rel: "noopener noreferrer",
|
|
1429
1429
|
class: "td-widget-image-preview",
|
|
1430
1430
|
title: n.value.name
|
|
1431
|
-
}, [
|
|
1432
|
-
src:
|
|
1431
|
+
}, [L("img", {
|
|
1432
|
+
src: q(t)(n.value.url),
|
|
1433
1433
|
alt: n.value.name,
|
|
1434
1434
|
class: "td-widget-image-img",
|
|
1435
1435
|
loading: "lazy"
|
|
1436
|
-
}, null, 8, ci)], 8, si)) : n.value.format || n.value.url.includes(".") ? (
|
|
1436
|
+
}, null, 8, ci)], 8, si)) : n.value.format || n.value.url.includes(".") ? (H(), I("a", {
|
|
1437
1437
|
key: 1,
|
|
1438
|
-
href:
|
|
1438
|
+
href: q(t)(n.value.url),
|
|
1439
1439
|
target: "_blank",
|
|
1440
1440
|
rel: "noopener noreferrer",
|
|
1441
1441
|
class: "td-widget-file-link"
|
|
1442
|
-
}, [
|
|
1442
|
+
}, [z(q(ie), { class: "td-widget-file-icon" }), L("span", ui, K(n.value.name), 1)], 8, li)) : i.value ? (H(), I("a", {
|
|
1443
1443
|
key: 2,
|
|
1444
1444
|
href: n.value.url,
|
|
1445
1445
|
target: "_blank",
|
|
1446
1446
|
rel: "noopener noreferrer",
|
|
1447
1447
|
class: "td-widget-ref td-widget-ref-external"
|
|
1448
|
-
}, [
|
|
1448
|
+
}, [z(q(le), {
|
|
1449
1449
|
size: 12,
|
|
1450
1450
|
class: "td-widget-external-icon"
|
|
1451
|
-
})], 8, di)) : (
|
|
1451
|
+
})], 8, di)) : (H(), I("a", {
|
|
1452
1452
|
key: 3,
|
|
1453
|
-
href:
|
|
1453
|
+
href: q(t)(n.value.url),
|
|
1454
1454
|
class: "td-widget-ref"
|
|
1455
|
-
}, [r.value && !e.hideIcon ? (
|
|
1455
|
+
}, [r.value && !e.hideIcon ? (H(), P(G(r.value), {
|
|
1456
1456
|
key: 0,
|
|
1457
1457
|
size: 14,
|
|
1458
1458
|
class: "td-widget-ref-icon"
|
|
1459
|
-
})) :
|
|
1459
|
+
})) : F("", !0), R(K(n.value.name), 1)], 8, fi))])) : (H(), I("span", pi, K(e.value), 1));
|
|
1460
1460
|
}
|
|
1461
|
-
}), [["__scopeId", "data-v-9a4c3158"]]), hi = { key: 0 }, gi = { class: "td-widget-list td-widget-list-icons" }, _i = { key: 1 }, vi = { class: "td-widget-list" }, yi = 5, bi = /*#__PURE__*/
|
|
1461
|
+
}), [["__scopeId", "data-v-9a4c3158"]]), hi = { key: 0 }, gi = { class: "td-widget-list td-widget-list-icons" }, _i = { key: 1 }, vi = { class: "td-widget-list" }, yi = 5, bi = /*#__PURE__*/ k(/* @__PURE__ */ B({
|
|
1462
1462
|
__name: "TdWidgetList",
|
|
1463
1463
|
props: {
|
|
1464
1464
|
definition: {},
|
|
1465
1465
|
value: {}
|
|
1466
1466
|
},
|
|
1467
1467
|
setup(e) {
|
|
1468
|
-
let t =
|
|
1468
|
+
let t = U(!1), n = N(() => Array.isArray(e.value) ? e.value : []), r = N(() => e.definition.items?.widget === "relation"), i = N(() => r.value ? n.value.map((e) => ii(e)).filter((e) => e !== void 0) : []), a = N(() => r.value ? Math.max(0, i.value.length - yi) : Math.max(0, n.value.length - yi));
|
|
1469
1469
|
function o() {
|
|
1470
1470
|
t.value = !t.value;
|
|
1471
1471
|
}
|
|
1472
1472
|
function s(e) {
|
|
1473
1473
|
return t.value ? e : e.slice(0, yi);
|
|
1474
1474
|
}
|
|
1475
|
-
return (e, c) => r.value ? (
|
|
1475
|
+
return (e, c) => r.value ? (H(), I("div", hi, [L("ul", gi, [(H(!0), I(M, null, W(s(i.value), (e, t) => (H(), I("li", { key: t }, [(H(), P(G(e.icon ? q(O)(e.icon.name) ?? q(ae) : q(ae)), {
|
|
1476
1476
|
size: 14,
|
|
1477
1477
|
class: "td-widget-list-icon"
|
|
1478
|
-
})),
|
|
1478
|
+
})), z(mi, {
|
|
1479
1479
|
value: { $ref: e },
|
|
1480
1480
|
"hide-icon": ""
|
|
1481
|
-
}, null, 8, ["value"])]))), 128))]), a.value > 0 ? (
|
|
1481
|
+
}, null, 8, ["value"])]))), 128))]), a.value > 0 ? (H(), I("button", {
|
|
1482
1482
|
key: 0,
|
|
1483
1483
|
class: "td-widget-more",
|
|
1484
1484
|
type: "button",
|
|
1485
1485
|
onClick: o
|
|
1486
|
-
},
|
|
1486
|
+
}, K(t.value ? "show less" : `+${a.value} more`), 1)) : F("", !0)])) : (H(), I("div", _i, [L("ul", vi, [(H(!0), I(M, null, W(s(n.value), (e, t) => (H(), I("li", { key: t }, [q(ii)(e) ? (H(), P(mi, {
|
|
1487
1487
|
key: 0,
|
|
1488
1488
|
value: e
|
|
1489
|
-
}, null, 8, ["value"])) : (
|
|
1489
|
+
}, null, 8, ["value"])) : (H(), I(M, { key: 1 }, [R(K(e), 1)], 64))]))), 128))]), a.value > 0 ? (H(), I("button", {
|
|
1490
1490
|
key: 0,
|
|
1491
1491
|
class: "td-widget-more",
|
|
1492
1492
|
type: "button",
|
|
1493
1493
|
onClick: o
|
|
1494
|
-
},
|
|
1494
|
+
}, K(t.value ? "show less" : `+${a.value} more`), 1)) : F("", !0)]));
|
|
1495
1495
|
}
|
|
1496
1496
|
}), [["__scopeId", "data-v-e838ea77"]]), xi = [
|
|
1497
1497
|
{
|
|
@@ -1541,92 +1541,92 @@ function Ci(e) {
|
|
|
1541
1541
|
}
|
|
1542
1542
|
//#endregion
|
|
1543
1543
|
//#region src/client/theme-default/components/TdFrontmatter/widgets/TdWidgetMultiSelect.vue?vue&type=script&setup=true&lang.ts
|
|
1544
|
-
var wi = 5, Ti = /*#__PURE__*/
|
|
1544
|
+
var wi = 5, Ti = /*#__PURE__*/ k(/* @__PURE__ */ B({
|
|
1545
1545
|
__name: "TdWidgetMultiSelect",
|
|
1546
1546
|
props: { value: {} },
|
|
1547
1547
|
setup(e) {
|
|
1548
|
-
let t =
|
|
1548
|
+
let t = U(!1), n = N(() => Array.isArray(e.value) ? e.value : []), r = N(() => t.value ? n.value : n.value.slice(0, wi)), i = N(() => Math.max(0, n.value.length - wi));
|
|
1549
1549
|
function a() {
|
|
1550
1550
|
t.value = !t.value;
|
|
1551
1551
|
}
|
|
1552
|
-
return (e, n) => (
|
|
1552
|
+
return (e, n) => (H(), I(M, null, [(H(!0), I(M, null, W(r.value, (e, t) => (H(), I("span", {
|
|
1553
1553
|
key: t,
|
|
1554
1554
|
class: "td-widget-pill",
|
|
1555
|
-
style:
|
|
1556
|
-
},
|
|
1555
|
+
style: Ue(q(Si)(e))
|
|
1556
|
+
}, K(e), 5))), 128)), i.value > 0 ? (H(), I("button", {
|
|
1557
1557
|
key: 0,
|
|
1558
1558
|
class: "td-widget-more",
|
|
1559
1559
|
type: "button",
|
|
1560
1560
|
onClick: a
|
|
1561
|
-
},
|
|
1561
|
+
}, K(t.value ? "show less" : `+${i.value} more`), 1)) : F("", !0)], 64));
|
|
1562
1562
|
}
|
|
1563
|
-
}), [["__scopeId", "data-v-2f88152d"]]), Ei = /*#__PURE__*/
|
|
1563
|
+
}), [["__scopeId", "data-v-2f88152d"]]), Ei = /*#__PURE__*/ k(/* @__PURE__ */ B({
|
|
1564
1564
|
__name: "TdWidgetSelect",
|
|
1565
1565
|
props: { value: {} },
|
|
1566
1566
|
setup(e) {
|
|
1567
|
-
return (t, n) => (
|
|
1567
|
+
return (t, n) => (H(), I("span", {
|
|
1568
1568
|
class: "td-widget-pill",
|
|
1569
|
-
style:
|
|
1570
|
-
},
|
|
1569
|
+
style: Ue(q(Si)(e.value))
|
|
1570
|
+
}, K(e.value), 5));
|
|
1571
1571
|
}
|
|
1572
|
-
}), [["__scopeId", "data-v-b9e2b4fd"]]), Di = ["href", "title"], Oi = ["src", "alt"], ki = ["href"], Ai = { class: "td-widget-file-name" }, ji = /*#__PURE__*/
|
|
1572
|
+
}), [["__scopeId", "data-v-b9e2b4fd"]]), Di = ["href", "title"], Oi = ["src", "alt"], ki = ["href"], Ai = { class: "td-widget-file-name" }, ji = /*#__PURE__*/ k(/* @__PURE__ */ B({
|
|
1573
1573
|
__name: "TdWidgetText",
|
|
1574
1574
|
props: {
|
|
1575
1575
|
definition: {},
|
|
1576
1576
|
value: {}
|
|
1577
1577
|
},
|
|
1578
1578
|
setup(e) {
|
|
1579
|
-
let { withBase: t } =
|
|
1579
|
+
let { withBase: t } = A(), n = N(() => typeof e.value == "string" ? e.value.trim() : ""), r = N(() => ii(e.value)), i = N(() => r.value ? r.value.isImage : 0 < n.value.length && ai({ url: n.value })), a = N(() => r.value ? r.value.url : n.value), o = N(() => t(a.value)), s = N(() => !n.value || !n.value.includes(".") || n.value.includes(" ") ? !1 : n.value.endsWith(".pdf") || n.value.endsWith(".zip") || n.value.endsWith(".doc") || n.value.endsWith(".docx"));
|
|
1580
1580
|
function c(t) {
|
|
1581
1581
|
return t == null ? "" : e.definition.widget === "date" ? y(String(t)) : String(t);
|
|
1582
1582
|
}
|
|
1583
|
-
return (t, a) => i.value ? (
|
|
1583
|
+
return (t, a) => i.value ? (H(), I("a", {
|
|
1584
1584
|
key: 0,
|
|
1585
1585
|
href: o.value,
|
|
1586
1586
|
target: "_blank",
|
|
1587
1587
|
rel: "noopener noreferrer",
|
|
1588
1588
|
class: "td-widget-image-preview",
|
|
1589
1589
|
title: r.value ? r.value.name : n.value
|
|
1590
|
-
}, [
|
|
1590
|
+
}, [L("img", {
|
|
1591
1591
|
src: o.value,
|
|
1592
1592
|
alt: r.value ? r.value.name : n.value,
|
|
1593
1593
|
class: "td-widget-image-img",
|
|
1594
1594
|
loading: "lazy"
|
|
1595
|
-
}, null, 8, Oi)], 8, Di)) : s.value ? (
|
|
1595
|
+
}, null, 8, Oi)], 8, Di)) : s.value ? (H(), I("a", {
|
|
1596
1596
|
key: 1,
|
|
1597
1597
|
href: o.value,
|
|
1598
1598
|
target: "_blank",
|
|
1599
1599
|
rel: "noopener noreferrer",
|
|
1600
1600
|
class: "td-widget-file-link"
|
|
1601
|
-
}, [
|
|
1601
|
+
}, [z(q(ie), { class: "td-widget-file-icon" }), L("span", Ai, K(n.value.split("/").pop() ?? n.value), 1)], 8, ki)) : (H(), I(M, { key: 2 }, [R(K(c(e.value)), 1)], 64));
|
|
1602
1602
|
}
|
|
1603
1603
|
}), [["__scopeId", "data-v-37708635"]]), Mi = {
|
|
1604
1604
|
key: 0,
|
|
1605
1605
|
class: "td-frontmatter-empty"
|
|
1606
|
-
}, Ni = /*#__PURE__*/
|
|
1606
|
+
}, Ni = /*#__PURE__*/ k(/* @__PURE__ */ B({
|
|
1607
1607
|
__name: "TdFrontmatterValue",
|
|
1608
1608
|
props: {
|
|
1609
1609
|
definition: {},
|
|
1610
1610
|
value: {}
|
|
1611
1611
|
},
|
|
1612
1612
|
setup(e) {
|
|
1613
|
-
return (t, n) => e.value === void 0 || e.value === null ? (
|
|
1613
|
+
return (t, n) => e.value === void 0 || e.value === null ? (H(), I("span", Mi, "Empty")) : e.definition.widget === "checkbox" ? (H(), P(ni, {
|
|
1614
1614
|
key: 1,
|
|
1615
1615
|
value: e.value
|
|
1616
|
-
}, null, 8, ["value"])) : e.definition.widget === "select" ? (
|
|
1616
|
+
}, null, 8, ["value"])) : e.definition.widget === "select" ? (H(), P(Ei, {
|
|
1617
1617
|
key: 2,
|
|
1618
1618
|
value: e.value
|
|
1619
|
-
}, null, 8, ["value"])) : e.definition.widget === "multiSelect" ? (
|
|
1619
|
+
}, null, 8, ["value"])) : e.definition.widget === "multiSelect" ? (H(), P(Ti, {
|
|
1620
1620
|
key: 3,
|
|
1621
1621
|
value: e.value
|
|
1622
|
-
}, null, 8, ["value"])) :
|
|
1622
|
+
}, null, 8, ["value"])) : q(ii)(e.value) || e.definition.widget === "relation" ? (H(), P(mi, {
|
|
1623
1623
|
key: 4,
|
|
1624
1624
|
value: e.value
|
|
1625
|
-
}, null, 8, ["value"])) : Array.isArray(e.value) || e.definition.widget === "list" ? (
|
|
1625
|
+
}, null, 8, ["value"])) : Array.isArray(e.value) || e.definition.widget === "list" ? (H(), P(bi, {
|
|
1626
1626
|
key: 5,
|
|
1627
1627
|
definition: e.definition,
|
|
1628
1628
|
value: e.value
|
|
1629
|
-
}, null, 8, ["definition", "value"])) : (
|
|
1629
|
+
}, null, 8, ["definition", "value"])) : (H(), P(ji, {
|
|
1630
1630
|
key: 6,
|
|
1631
1631
|
definition: e.definition,
|
|
1632
1632
|
value: e.value
|
|
@@ -1638,7 +1638,7 @@ var wi = 5, Ti = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
|
1638
1638
|
}, Fi = { class: "td-fm-rail-key" }, Ii = { class: "td-fm-rail-value" }, Li = {
|
|
1639
1639
|
key: 1,
|
|
1640
1640
|
class: "td-fm-box"
|
|
1641
|
-
}, Ri = { class: "td-fm-box-label" }, zi = { class: "td-fm-box-count" }, Bi = { class: "td-fm-box-toggle" }, Vi = { class: "td-fm-box-body" }, Hi = { class: "td-fm-box-key" }, Ui = { class: "td-fm-box-value" }, Wi = /*#__PURE__*/
|
|
1641
|
+
}, Ri = { class: "td-fm-box-label" }, zi = { class: "td-fm-box-count" }, Bi = { class: "td-fm-box-toggle" }, Vi = { class: "td-fm-box-body" }, Hi = { class: "td-fm-box-key" }, Ui = { class: "td-fm-box-value" }, Wi = /*#__PURE__*/ k(/* @__PURE__ */ B({
|
|
1642
1642
|
__name: "TdFrontmatter",
|
|
1643
1643
|
props: {
|
|
1644
1644
|
mode: { default: "inline" },
|
|
@@ -1646,9 +1646,9 @@ var wi = 5, Ti = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
|
1646
1646
|
frontmatter: {}
|
|
1647
1647
|
},
|
|
1648
1648
|
setup(t) {
|
|
1649
|
-
let n = he(), r =
|
|
1649
|
+
let n = he(), r = N(() => {
|
|
1650
1650
|
if (t.schema) return n.value.schemas[t.schema];
|
|
1651
|
-
}), i =
|
|
1651
|
+
}), i = N(() => {
|
|
1652
1652
|
let e = r.value, n = [], i = /* @__PURE__ */ new Set();
|
|
1653
1653
|
e && Object.keys(e).forEach((e) => i.add(e)), Object.keys(t.frontmatter).forEach((e) => i.add(e));
|
|
1654
1654
|
for (let r of i) {
|
|
@@ -1660,58 +1660,58 @@ var wi = 5, Ti = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
|
1660
1660
|
}
|
|
1661
1661
|
return n;
|
|
1662
1662
|
}), a = {
|
|
1663
|
-
text:
|
|
1664
|
-
checkbox:
|
|
1663
|
+
text: yt,
|
|
1664
|
+
checkbox: lt,
|
|
1665
1665
|
select: me,
|
|
1666
|
-
multiSelect:
|
|
1666
|
+
multiSelect: vt,
|
|
1667
1667
|
relation: le,
|
|
1668
1668
|
list: re
|
|
1669
1669
|
};
|
|
1670
1670
|
function o(e) {
|
|
1671
|
-
return a[e] ??
|
|
1671
|
+
return a[e] ?? yt;
|
|
1672
1672
|
}
|
|
1673
|
-
let s =
|
|
1673
|
+
let s = U(!1), c = U(!1);
|
|
1674
1674
|
function l() {
|
|
1675
1675
|
s.value = !s.value;
|
|
1676
1676
|
}
|
|
1677
1677
|
function u() {
|
|
1678
1678
|
c.value = !c.value;
|
|
1679
1679
|
}
|
|
1680
|
-
return (n, r) => t.mode === "rail" && i.value.length > 0 ? (
|
|
1680
|
+
return (n, r) => t.mode === "rail" && i.value.length > 0 ? (H(), I("div", Pi, [L("button", {
|
|
1681
1681
|
type: "button",
|
|
1682
1682
|
class: "td-fm-rail-header",
|
|
1683
1683
|
onClick: u
|
|
1684
|
-
}, [r[0] ||=
|
|
1684
|
+
}, [r[0] ||= L("span", { class: "td-fm-rail-label" }, "Properties", -1), z(q(be), {
|
|
1685
1685
|
size: 14,
|
|
1686
|
-
class:
|
|
1687
|
-
}, null, 8, ["class"])]),
|
|
1686
|
+
class: V(["td-fm-rail-caret", { "is-collapsed": c.value }])
|
|
1687
|
+
}, null, 8, ["class"])]), L("div", { class: V(["td-collapse", { "is-collapsed": c.value }]) }, [L("div", null, [(H(!0), I(M, null, W(i.value, ([n, r]) => (H(), I("div", {
|
|
1688
1688
|
key: n,
|
|
1689
1689
|
class: "td-fm-rail-row"
|
|
1690
|
-
}, [
|
|
1690
|
+
}, [L("span", Fi, [(H(), P(G(o(r.widget)), {
|
|
1691
1691
|
size: 12,
|
|
1692
1692
|
class: "td-fm-icon"
|
|
1693
|
-
})),
|
|
1693
|
+
})), R(" " + K(q(e)(n)), 1)]), L("span", Ii, [z(Ni, {
|
|
1694
1694
|
definition: r,
|
|
1695
1695
|
value: t.frontmatter[n]
|
|
1696
|
-
}, null, 8, ["definition", "value"])])]))), 128))])], 2)])) : i.value.length > 0 ? (
|
|
1696
|
+
}, null, 8, ["definition", "value"])])]))), 128))])], 2)])) : i.value.length > 0 ? (H(), I("div", Li, [L("button", {
|
|
1697
1697
|
type: "button",
|
|
1698
1698
|
class: "td-fm-box-header",
|
|
1699
1699
|
onClick: l
|
|
1700
|
-
}, [
|
|
1700
|
+
}, [L("span", Ri, [r[1] ||= R("Properties ", -1), L("span", zi, K(i.value.length), 1)]), L("span", Bi, [R(K(s.value ? "Show" : "Hide") + " ", 1), s.value ? (H(), P(q(xe), {
|
|
1701
1701
|
key: 1,
|
|
1702
1702
|
size: 14
|
|
1703
|
-
})) : (
|
|
1703
|
+
})) : (H(), P(q(be), {
|
|
1704
1704
|
key: 0,
|
|
1705
1705
|
size: 14
|
|
1706
|
-
}))])]),
|
|
1706
|
+
}))])]), L("div", { class: V(["td-collapse", { "is-collapsed": s.value }]) }, [L("div", Vi, [(H(!0), I(M, null, W(i.value, ([n, r]) => (H(), I(M, { key: n }, [L("span", Hi, [(H(), P(G(o(r.widget)), {
|
|
1707
1707
|
size: 12,
|
|
1708
1708
|
class: "td-fm-icon"
|
|
1709
|
-
})),
|
|
1709
|
+
})), R(" " + K(q(e)(n)), 1)]), L("span", Ui, [z(Ni, {
|
|
1710
1710
|
definition: r,
|
|
1711
1711
|
value: t.frontmatter[n]
|
|
1712
|
-
}, null, 8, ["definition", "value"])])], 64))), 128))])], 2)])) :
|
|
1712
|
+
}, null, 8, ["definition", "value"])])], 64))), 128))])], 2)])) : F("", !0);
|
|
1713
1713
|
}
|
|
1714
|
-
}), [["__scopeId", "data-v-1b3924e7"]]), Gi =
|
|
1714
|
+
}), [["__scopeId", "data-v-1b3924e7"]]), Gi = U(!1);
|
|
1715
1715
|
function Ki() {
|
|
1716
1716
|
function e() {
|
|
1717
1717
|
Gi.value = !Gi.value;
|
|
@@ -1723,7 +1723,7 @@ function Ki() {
|
|
|
1723
1723
|
Gi.value = !1;
|
|
1724
1724
|
}
|
|
1725
1725
|
return {
|
|
1726
|
-
isOpen:
|
|
1726
|
+
isOpen: Je(Gi),
|
|
1727
1727
|
toggle: e,
|
|
1728
1728
|
open: t,
|
|
1729
1729
|
close: n
|
|
@@ -1731,20 +1731,20 @@ function Ki() {
|
|
|
1731
1731
|
}
|
|
1732
1732
|
//#endregion
|
|
1733
1733
|
//#region src/client/theme-default/components/TdMenuButton.vue
|
|
1734
|
-
var qi = /* @__PURE__ */
|
|
1734
|
+
var qi = /* @__PURE__ */ B({
|
|
1735
1735
|
__name: "TdMenuButton",
|
|
1736
1736
|
setup(e) {
|
|
1737
1737
|
let { isOpen: t, toggle: n } = Ki();
|
|
1738
|
-
return (e, r) => (
|
|
1738
|
+
return (e, r) => (H(), P(Et, {
|
|
1739
1739
|
class: "td-menu-button",
|
|
1740
|
-
label:
|
|
1741
|
-
"aria-expanded":
|
|
1742
|
-
onClick:
|
|
1740
|
+
label: q(t) ? "Close menu" : "Open menu",
|
|
1741
|
+
"aria-expanded": q(t),
|
|
1742
|
+
onClick: q(n)
|
|
1743
1743
|
}, {
|
|
1744
|
-
default:
|
|
1744
|
+
default: at(() => [q(t) ? (H(), P(q(ye), {
|
|
1745
1745
|
key: 0,
|
|
1746
1746
|
size: 20
|
|
1747
|
-
})) : (
|
|
1747
|
+
})) : (H(), P(q(fe), {
|
|
1748
1748
|
key: 1,
|
|
1749
1749
|
size: 20
|
|
1750
1750
|
}))]),
|
|
@@ -1759,7 +1759,7 @@ var qi = /* @__PURE__ */ z({
|
|
|
1759
1759
|
//#endregion
|
|
1760
1760
|
//#region src/client/theme-default/composables/usePreviousNext.ts
|
|
1761
1761
|
function Ji() {
|
|
1762
|
-
let e = he(), t =
|
|
1762
|
+
let e = he(), t = j(), { withBase: n, title: r } = A(), i = N(() => {
|
|
1763
1763
|
let i = Yi(e.value.contentTree, t.path, r);
|
|
1764
1764
|
if (i === void 0) return {};
|
|
1765
1765
|
let a = i.pages.findIndex((e) => e.url === t.path);
|
|
@@ -1778,9 +1778,9 @@ function Ji() {
|
|
|
1778
1778
|
};
|
|
1779
1779
|
});
|
|
1780
1780
|
return {
|
|
1781
|
-
previous:
|
|
1782
|
-
next:
|
|
1783
|
-
groupName:
|
|
1781
|
+
previous: N(() => i.value.previous),
|
|
1782
|
+
next: N(() => i.value.next),
|
|
1783
|
+
groupName: N(() => i.value.groupName)
|
|
1784
1784
|
};
|
|
1785
1785
|
}
|
|
1786
1786
|
function Yi(e, t, n) {
|
|
@@ -1842,29 +1842,29 @@ var $i = {
|
|
|
1842
1842
|
}, ia = ["href"], aa = { class: "td-prevnext-label" }, oa = { class: "td-prevnext-title" }, sa = {
|
|
1843
1843
|
key: 3,
|
|
1844
1844
|
class: "td-prevnext-spacer"
|
|
1845
|
-
}, ca = /*#__PURE__*/
|
|
1845
|
+
}, ca = /*#__PURE__*/ k(/* @__PURE__ */ B({
|
|
1846
1846
|
__name: "TdPreviousNext",
|
|
1847
1847
|
setup(e) {
|
|
1848
1848
|
let { previous: t, next: n, groupName: r } = Ji();
|
|
1849
|
-
return (e, i) =>
|
|
1849
|
+
return (e, i) => q(t) || q(n) ? (H(), I("nav", $i, [q(t) ? (H(), I("a", {
|
|
1850
1850
|
key: 0,
|
|
1851
|
-
href:
|
|
1851
|
+
href: q(t).url,
|
|
1852
1852
|
class: "td-prevnext-link is-previous"
|
|
1853
|
-
}, [
|
|
1853
|
+
}, [L("span", ta, [z(q(E), {
|
|
1854
1854
|
size: 14,
|
|
1855
1855
|
class: "td-prevnext-chevron"
|
|
1856
|
-
}),
|
|
1856
|
+
}), R(" " + K(q(r) ? `Previous in ${q(r)}` : "Previous"), 1)]), L("span", na, K(q(t).title), 1)], 8, ea)) : (H(), I("span", ra)), q(n) ? (H(), I("a", {
|
|
1857
1857
|
key: 2,
|
|
1858
|
-
href:
|
|
1858
|
+
href: q(n).url,
|
|
1859
1859
|
class: "td-prevnext-link is-next"
|
|
1860
|
-
}, [
|
|
1860
|
+
}, [L("span", aa, [R(K(q(r) ? `Next in ${q(r)}` : "Next") + " ", 1), z(q(xe), {
|
|
1861
1861
|
size: 14,
|
|
1862
1862
|
class: "td-prevnext-chevron"
|
|
1863
|
-
})]),
|
|
1863
|
+
})]), L("span", oa, K(q(n).title), 1)], 8, ia)) : (H(), I("span", sa))])) : F("", !0);
|
|
1864
1864
|
}
|
|
1865
1865
|
}), [["__scopeId", "data-v-8ea01cd7"]]), la = 100;
|
|
1866
1866
|
function ua(e) {
|
|
1867
|
-
let t =
|
|
1867
|
+
let t = U(void 0), n = [], r;
|
|
1868
1868
|
function i() {
|
|
1869
1869
|
if (n.length === 0) return;
|
|
1870
1870
|
let e = window.scrollY;
|
|
@@ -1886,12 +1886,12 @@ function ua(e) {
|
|
|
1886
1886
|
let r = new Set(e.map((e) => e.slug));
|
|
1887
1887
|
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();
|
|
1888
1888
|
}
|
|
1889
|
-
return
|
|
1889
|
+
return Ge(() => {
|
|
1890
1890
|
window.addEventListener("scroll", a);
|
|
1891
|
-
}),
|
|
1891
|
+
}), qe(() => {
|
|
1892
1892
|
window.removeEventListener("scroll", a), r !== void 0 && cancelAnimationFrame(r);
|
|
1893
|
-
}),
|
|
1894
|
-
typeof window > "u" ||
|
|
1893
|
+
}), J(e, (e) => {
|
|
1894
|
+
typeof window > "u" || He(() => o(e));
|
|
1895
1895
|
}, { immediate: !0 }), t;
|
|
1896
1896
|
}
|
|
1897
1897
|
function da(e) {
|
|
@@ -1904,7 +1904,7 @@ function da(e) {
|
|
|
1904
1904
|
var fa = {
|
|
1905
1905
|
key: 0,
|
|
1906
1906
|
class: "td-toc"
|
|
1907
|
-
}, pa = { class: "td-toc-list" }, ma = ["href", "innerHTML"], ha = /*#__PURE__*/
|
|
1907
|
+
}, pa = { class: "td-toc-list" }, ma = ["href", "innerHTML"], ha = /*#__PURE__*/ k(/* @__PURE__ */ B({
|
|
1908
1908
|
__name: "TdToc",
|
|
1909
1909
|
props: {
|
|
1910
1910
|
headings: {},
|
|
@@ -1914,35 +1914,35 @@ var fa = {
|
|
|
1914
1914
|
}
|
|
1915
1915
|
},
|
|
1916
1916
|
setup(e) {
|
|
1917
|
-
let t = e.static ?
|
|
1918
|
-
return (n, r) => e.headings.length ? (
|
|
1917
|
+
let t = e.static ? N(() => void 0) : ua(() => e.headings);
|
|
1918
|
+
return (n, r) => e.headings.length ? (H(), I("div", fa, [r[0] ||= L("div", { class: "td-toc-label" }, " On this page ", -1), L("ul", pa, [(H(!0), I(M, null, W(e.headings, (e) => (H(), I("li", {
|
|
1919
1919
|
key: e.slug,
|
|
1920
|
-
class:
|
|
1920
|
+
class: V({
|
|
1921
1921
|
"td-toc-indent-1": e.level === 3,
|
|
1922
1922
|
"td-toc-indent-2": e.level === 4,
|
|
1923
1923
|
"td-toc-indent-3": e.level === 5
|
|
1924
1924
|
})
|
|
1925
|
-
}, [
|
|
1925
|
+
}, [L("a", {
|
|
1926
1926
|
href: e.link,
|
|
1927
|
-
class:
|
|
1928
|
-
innerHTML:
|
|
1929
|
-
}, null, 10, ma)], 2))), 128))])])) :
|
|
1927
|
+
class: V(["td-toc-link", { "is-active": q(t) === e.slug }]),
|
|
1928
|
+
innerHTML: q(d)(e.titleHtml)
|
|
1929
|
+
}, null, 10, ma)], 2))), 128))])])) : F("", !0);
|
|
1930
1930
|
}
|
|
1931
|
-
}), [["__scopeId", "data-v-91e96e92"]]), ga = { class: "td-rail" }, _a = /*#__PURE__*/
|
|
1931
|
+
}), [["__scopeId", "data-v-91e96e92"]]), ga = { class: "td-rail" }, _a = /*#__PURE__*/ k(/* @__PURE__ */ B({
|
|
1932
1932
|
__name: "TdRail",
|
|
1933
1933
|
setup(e) {
|
|
1934
|
-
let { page: t } =
|
|
1935
|
-
return (e, n) => (
|
|
1934
|
+
let { page: t } = we();
|
|
1935
|
+
return (e, n) => (H(), I("aside", ga, [z(q(Wi), {
|
|
1936
1936
|
mode: "rail",
|
|
1937
|
-
schema:
|
|
1938
|
-
frontmatter:
|
|
1939
|
-
}, null, 8, ["schema", "frontmatter"]),
|
|
1937
|
+
schema: q(t).schema,
|
|
1938
|
+
frontmatter: q(t).frontmatter
|
|
1939
|
+
}, null, 8, ["schema", "frontmatter"]), z(ha, { headings: q(t).headings }, null, 8, ["headings"])]));
|
|
1940
1940
|
}
|
|
1941
1941
|
}), [["__scopeId", "data-v-22485c1b"]]), va = {
|
|
1942
1942
|
class: "td-skeleton",
|
|
1943
1943
|
role: "status",
|
|
1944
1944
|
"aria-label": "Loading"
|
|
1945
|
-
}, ya = /*#__PURE__*/
|
|
1945
|
+
}, ya = /*#__PURE__*/ k(/* @__PURE__ */ B({
|
|
1946
1946
|
__name: "TdSkeleton",
|
|
1947
1947
|
props: { lines: { default: 5 } },
|
|
1948
1948
|
setup(e) {
|
|
@@ -1956,15 +1956,15 @@ var fa = {
|
|
|
1956
1956
|
55,
|
|
1957
1957
|
72
|
|
1958
1958
|
];
|
|
1959
|
-
return (n, r) => (
|
|
1959
|
+
return (n, r) => (H(), I("div", va, [(H(!0), I(M, null, W(e.lines, (e) => (H(), I("div", {
|
|
1960
1960
|
key: e,
|
|
1961
1961
|
class: "td-skeleton-line",
|
|
1962
|
-
style:
|
|
1962
|
+
style: Ue({ width: `${t[(e - 1) % t.length]}%` })
|
|
1963
1963
|
}, null, 4))), 128))]));
|
|
1964
1964
|
}
|
|
1965
1965
|
}), [["__scopeId", "data-v-312f021d"]]), $ = /* @__PURE__ */ function(e) {
|
|
1966
1966
|
return e.ArrowDown = "ArrowDown", e.ArrowUp = "ArrowUp", e.ArrowLeft = "ArrowLeft", e.ArrowRight = "ArrowRight", e.Enter = "Enter", e.Tab = "Tab", e.Space = " ", e.Escape = "Escape", e.Shift = "Shift", e.Control = "Control", e.Alt = "Alt", e.Meta = "Meta", e.Delete = "Delete", e.Backspace = "Backspace", e.F1 = "F1", e.F2 = "F2", e.F3 = "F3", e.F4 = "F4", e.F5 = "F5", e.F6 = "F6", e.F7 = "F7", e.F8 = "F8", e.F9 = "F9", e.F10 = "F10", e.F11 = "F11", e.F12 = "F12", e.a = "a", e.b = "b", e.c = "c", e.d = "d", e.e = "e", e.f = "f", e.g = "g", e.h = "h", e.i = "i", e.j = "j", e.k = "k", e.l = "l", e.m = "m", e.n = "n", e.o = "o", e.p = "p", e.q = "q", e.r = "r", e.s = "s", e.t = "t", e.u = "u", e.v = "v", e.w = "w", e.x = "x", e.y = "y", e.z = "z", e.FSlash = "/", e.Question = "?", e;
|
|
1967
|
-
}({}), ba = { class: "td-kbd-shortcut" }, xa = /*#__PURE__*/
|
|
1967
|
+
}({}), ba = { class: "td-kbd-shortcut" }, xa = /*#__PURE__*/ k(/* @__PURE__ */ B({
|
|
1968
1968
|
__name: "TdKbdShortcut",
|
|
1969
1969
|
props: { keys: {} },
|
|
1970
1970
|
setup(e) {
|
|
@@ -1973,43 +1973,43 @@ var fa = {
|
|
|
1973
1973
|
[$.ArrowUp]: ce,
|
|
1974
1974
|
[$.ArrowLeft]: oe,
|
|
1975
1975
|
[$.ArrowRight]: de,
|
|
1976
|
-
[$.Meta]:
|
|
1977
|
-
[$.Alt]:
|
|
1978
|
-
[$.Enter]:
|
|
1979
|
-
[$.Delete]:
|
|
1980
|
-
[$.Space]:
|
|
1976
|
+
[$.Meta]: ut,
|
|
1977
|
+
[$.Alt]: ht,
|
|
1978
|
+
[$.Enter]: dt,
|
|
1979
|
+
[$.Delete]: ft,
|
|
1980
|
+
[$.Space]: gt
|
|
1981
1981
|
}, n = {
|
|
1982
1982
|
[$.Control]: "⌃",
|
|
1983
1983
|
[$.Shift]: "⇧",
|
|
1984
1984
|
[$.Escape]: "Esc",
|
|
1985
1985
|
[$.Tab]: "Tab",
|
|
1986
1986
|
[$.Backspace]: "⌫"
|
|
1987
|
-
}, r =
|
|
1987
|
+
}, r = N(() => e.keys.map((e) => {
|
|
1988
1988
|
let r = t[e];
|
|
1989
1989
|
if (r) return { icon: r };
|
|
1990
1990
|
let i = n[e];
|
|
1991
1991
|
return i ? { label: i } : { label: e.toUpperCase() };
|
|
1992
1992
|
}));
|
|
1993
|
-
return (e, t) => (
|
|
1993
|
+
return (e, t) => (H(), I("span", ba, [(H(!0), I(M, null, W(r.value, (e, t) => (H(), I("kbd", { key: t }, [e.icon ? (H(), P(G(e.icon), {
|
|
1994
1994
|
key: 0,
|
|
1995
1995
|
size: 12
|
|
1996
|
-
})) : (
|
|
1996
|
+
})) : (H(), I(M, { key: 1 }, [R(K(e.label), 1)], 64))]))), 128))]));
|
|
1997
1997
|
}
|
|
1998
1998
|
}), [["__scopeId", "data-v-b61b97da"]]), Sa = 120, Ca = /^h[1-6]$/i, wa = 16;
|
|
1999
1999
|
function Ta() {
|
|
2000
|
-
let e =
|
|
2001
|
-
|
|
2000
|
+
let e = Ee(), t = Ce(), n, a = !1, o = Qe([]), s = Qe(!1), c = /* @__PURE__ */ new Map();
|
|
2001
|
+
J(e, () => {
|
|
2002
2002
|
n = void 0, c.clear();
|
|
2003
2003
|
});
|
|
2004
2004
|
function l() {
|
|
2005
2005
|
if (n) return n;
|
|
2006
|
-
if (e.value) return n =
|
|
2006
|
+
if (e.value) return n = ze(ne.loadJSON(e.value, {
|
|
2007
2007
|
fields: r,
|
|
2008
2008
|
storeFields: i
|
|
2009
2009
|
})), n;
|
|
2010
2010
|
}
|
|
2011
2011
|
function u(e) {
|
|
2012
|
-
let t = /* @__PURE__ */ new Map(), n =
|
|
2012
|
+
let t = /* @__PURE__ */ new Map(), n = Le(e), r = document.createElement("div");
|
|
2013
2013
|
n.config.warnHandler = () => {};
|
|
2014
2014
|
try {
|
|
2015
2015
|
n.mount(r);
|
|
@@ -2077,7 +2077,7 @@ function Ta() {
|
|
|
2077
2077
|
if (a) return;
|
|
2078
2078
|
let n = f(await d(t.id), t.match);
|
|
2079
2079
|
if (a) return;
|
|
2080
|
-
o.value[e].excerpt = n,
|
|
2080
|
+
o.value[e].excerpt = n, et(o);
|
|
2081
2081
|
}
|
|
2082
2082
|
}
|
|
2083
2083
|
let h = p((e) => m(e), 150);
|
|
@@ -2095,8 +2095,8 @@ function Ta() {
|
|
|
2095
2095
|
}
|
|
2096
2096
|
return {
|
|
2097
2097
|
results: o,
|
|
2098
|
-
searching:
|
|
2099
|
-
indexLoaded:
|
|
2098
|
+
searching: N(() => s.value),
|
|
2099
|
+
indexLoaded: N(() => e.value !== void 0),
|
|
2100
2100
|
search: g,
|
|
2101
2101
|
cancel: y
|
|
2102
2102
|
};
|
|
@@ -2123,7 +2123,7 @@ var Da = { class: "td-search" }, Oa = { class: "td-search-input-wrap" }, ka = {
|
|
|
2123
2123
|
}, ja = { class: "td-search-group-label" }, Ma = ["href"], Na = ["innerHTML"], Pa = ["innerHTML"], Fa = {
|
|
2124
2124
|
key: 1,
|
|
2125
2125
|
class: "td-search-empty"
|
|
2126
|
-
}, Ia = /*#__PURE__*/
|
|
2126
|
+
}, Ia = /*#__PURE__*/ k(/* @__PURE__ */ B({
|
|
2127
2127
|
__name: "TdSiteSearch",
|
|
2128
2128
|
props: {
|
|
2129
2129
|
active: {
|
|
@@ -2134,9 +2134,9 @@ var Da = { class: "td-search" }, Oa = { class: "td-search-input-wrap" }, ka = {
|
|
|
2134
2134
|
query: { default: "" },
|
|
2135
2135
|
queryModifiers: {}
|
|
2136
2136
|
},
|
|
2137
|
-
emits: /*@__PURE__*/
|
|
2137
|
+
emits: /*@__PURE__*/ Be(["select"], ["update:active", "update:query"]),
|
|
2138
2138
|
setup(t, { expose: n, emit: r }) {
|
|
2139
|
-
let i =
|
|
2139
|
+
let i = tt(t, "active"), a = tt(t, "query"), o = r, s = j(), { withBase: c } = A(), { results: l, searching: u, indexLoaded: d, search: f, cancel: p } = Ta(), m = U(-1), h = N(() => 0 < a.value.trim().length), g = N(() => {
|
|
2140
2140
|
let t = [], n = /* @__PURE__ */ new Map();
|
|
2141
2141
|
for (let r of l.value) {
|
|
2142
2142
|
let i = _(r.id), a = n.get(i);
|
|
@@ -2152,15 +2152,15 @@ var Da = { class: "td-search" }, Oa = { class: "td-search-input-wrap" }, ka = {
|
|
|
2152
2152
|
}
|
|
2153
2153
|
return t;
|
|
2154
2154
|
});
|
|
2155
|
-
|
|
2155
|
+
J(h, (e) => {
|
|
2156
2156
|
i.value = e;
|
|
2157
|
-
}),
|
|
2158
|
-
n(() => p()), m.value =
|
|
2157
|
+
}), J(a, (e, t, n) => {
|
|
2158
|
+
n(() => p()), m.value = 0, f(e);
|
|
2159
2159
|
});
|
|
2160
2160
|
function v() {
|
|
2161
2161
|
a.value = "";
|
|
2162
2162
|
}
|
|
2163
|
-
let y =
|
|
2163
|
+
let y = N(() => g.value.flatMap((e) => e.results)), b = N(() => {
|
|
2164
2164
|
let e = /* @__PURE__ */ new Map();
|
|
2165
2165
|
for (let t = 0; t < y.value.length; t++) e.set(y.value[t].id, t);
|
|
2166
2166
|
return e;
|
|
@@ -2168,8 +2168,8 @@ var Da = { class: "td-search" }, Oa = { class: "td-search-input-wrap" }, ka = {
|
|
|
2168
2168
|
function x(e) {
|
|
2169
2169
|
let t = b.value.size;
|
|
2170
2170
|
if (t !== 0) {
|
|
2171
|
-
if (e.key === "ArrowDown") e.preventDefault(), m.value = (m.value + 1) % t;
|
|
2172
|
-
else if (e.key === "ArrowUp") e.preventDefault(), m.value = (m.value - 1 + t) % t;
|
|
2171
|
+
if (e.key === "ArrowDown") e.preventDefault(), m.value = (m.value + 1) % t, C();
|
|
2172
|
+
else if (e.key === "ArrowUp") e.preventDefault(), m.value = (m.value - 1 + t) % t, C();
|
|
2173
2173
|
else if (e.key === "Enter" && 0 <= m.value) {
|
|
2174
2174
|
e.preventDefault();
|
|
2175
2175
|
let t = y.value[m.value];
|
|
@@ -2181,88 +2181,93 @@ var Da = { class: "td-search" }, Oa = { class: "td-search-input-wrap" }, ka = {
|
|
|
2181
2181
|
function S() {
|
|
2182
2182
|
o("select");
|
|
2183
2183
|
}
|
|
2184
|
-
|
|
2184
|
+
function C() {
|
|
2185
|
+
requestAnimationFrame(() => {
|
|
2186
|
+
document.querySelector(".td-search-result.is-selected")?.scrollIntoView({ block: "nearest" });
|
|
2187
|
+
});
|
|
2188
|
+
}
|
|
2189
|
+
let w = nt("searchInput");
|
|
2185
2190
|
return n({
|
|
2186
2191
|
focus() {
|
|
2187
|
-
|
|
2192
|
+
w.value?.focus();
|
|
2188
2193
|
},
|
|
2189
2194
|
blur() {
|
|
2190
|
-
|
|
2195
|
+
w.value?.blur();
|
|
2191
2196
|
},
|
|
2192
2197
|
get isVisible() {
|
|
2193
|
-
return
|
|
2198
|
+
return w.value?.offsetParent !== null;
|
|
2194
2199
|
},
|
|
2195
2200
|
get isFocused() {
|
|
2196
|
-
return document.activeElement ===
|
|
2201
|
+
return document.activeElement === w.value;
|
|
2197
2202
|
}
|
|
2198
|
-
}), (e, t) => (
|
|
2199
|
-
|
|
2200
|
-
|
|
2203
|
+
}), (e, t) => (H(), I("div", Da, [
|
|
2204
|
+
L("div", Oa, [
|
|
2205
|
+
z(q(ge), {
|
|
2201
2206
|
size: 14,
|
|
2202
2207
|
class: "td-search-icon"
|
|
2203
2208
|
}),
|
|
2204
|
-
|
|
2209
|
+
ot(L("input", {
|
|
2205
2210
|
ref_key: "searchInput",
|
|
2206
|
-
ref:
|
|
2211
|
+
ref: w,
|
|
2207
2212
|
"onUpdate:modelValue": t[0] ||= (e) => a.value = e,
|
|
2208
2213
|
class: "td-search-input",
|
|
2209
2214
|
type: "text",
|
|
2210
2215
|
size: "1",
|
|
2211
2216
|
placeholder: "Search...",
|
|
2212
2217
|
onKeydown: x
|
|
2213
|
-
}, null, 544), [[
|
|
2214
|
-
!h.value && !
|
|
2218
|
+
}, null, 544), [[rt, a.value]]),
|
|
2219
|
+
!h.value && !q(u) ? (H(), P(xa, {
|
|
2215
2220
|
key: 0,
|
|
2216
|
-
keys: [
|
|
2221
|
+
keys: [q($).Meta, q($).k],
|
|
2217
2222
|
class: "td-search-kbd"
|
|
2218
|
-
}, null, 8, ["keys"])) :
|
|
2219
|
-
|
|
2223
|
+
}, null, 8, ["keys"])) : F("", !0),
|
|
2224
|
+
q(u) || !q(d) ? (H(), P(q(mt), {
|
|
2220
2225
|
key: 1,
|
|
2221
2226
|
size: 12,
|
|
2222
2227
|
class: "td-search-spinner"
|
|
2223
|
-
})) : h.value ? (
|
|
2224
|
-
a.value ? (
|
|
2228
|
+
})) : h.value ? (H(), I("span", ka, K(q(l).length), 1)) : F("", !0),
|
|
2229
|
+
a.value ? (H(), I("button", {
|
|
2225
2230
|
key: 3,
|
|
2226
2231
|
class: "td-search-clear",
|
|
2227
2232
|
type: "button",
|
|
2228
2233
|
"aria-label": "Clear search",
|
|
2229
2234
|
onClick: v
|
|
2230
|
-
}, [
|
|
2235
|
+
}, [z(q(ye), { size: 12 })])) : F("", !0)
|
|
2231
2236
|
]),
|
|
2232
|
-
h.value &&
|
|
2237
|
+
h.value && q(l).length > 0 ? (H(), I("div", Aa, [(H(!0), I(M, null, W(g.value, (e) => (H(), I("div", {
|
|
2233
2238
|
key: e.pageUrl,
|
|
2234
2239
|
class: "td-search-group"
|
|
2235
|
-
}, [
|
|
2240
|
+
}, [L("div", ja, K(e.pageTitle), 1), (H(!0), I(M, null, W(e.results, (e) => (H(), I("a", {
|
|
2236
2241
|
key: e.id,
|
|
2237
|
-
href:
|
|
2238
|
-
class:
|
|
2242
|
+
href: q(c)(e.id),
|
|
2243
|
+
class: V(["td-search-result", {
|
|
2239
2244
|
"is-selected": b.value.get(e.id) === m.value,
|
|
2240
|
-
"is-current":
|
|
2245
|
+
"is-current": q(c)(e.id) === q(s).path
|
|
2241
2246
|
}]),
|
|
2242
2247
|
onClick: S
|
|
2243
|
-
}, [
|
|
2248
|
+
}, [L("span", {
|
|
2244
2249
|
class: "td-search-result-title",
|
|
2245
|
-
innerHTML:
|
|
2246
|
-
}, null, 8, Na), e.excerpt ? (
|
|
2250
|
+
innerHTML: q(Ea)(e.title, a.value)
|
|
2251
|
+
}, null, 8, Na), e.excerpt ? (H(), I("span", {
|
|
2247
2252
|
key: 0,
|
|
2248
2253
|
class: "td-search-result-excerpt",
|
|
2249
|
-
innerHTML:
|
|
2250
|
-
}, null, 8, Pa)) :
|
|
2251
|
-
h.value &&
|
|
2254
|
+
innerHTML: q(Ea)(e.excerpt, a.value)
|
|
2255
|
+
}, null, 8, Pa)) : F("", !0)], 10, Ma))), 128))]))), 128))])) : F("", !0),
|
|
2256
|
+
h.value && q(l).length === 0 ? (H(), I("div", Fa, " No results for \"" + K(a.value) + "\" ", 1)) : F("", !0)
|
|
2252
2257
|
]));
|
|
2253
2258
|
}
|
|
2254
|
-
}), [["__scopeId", "data-v-
|
|
2259
|
+
}), [["__scopeId", "data-v-2b0a2205"]]), La = /* @__PURE__ */ B({
|
|
2255
2260
|
__name: "TdThemeToggle",
|
|
2256
2261
|
setup(e) {
|
|
2257
|
-
let { isDark: t, toggle: n } =
|
|
2258
|
-
return (e, r) => (
|
|
2259
|
-
label:
|
|
2260
|
-
onClick:
|
|
2262
|
+
let { isDark: t, toggle: n } = De();
|
|
2263
|
+
return (e, r) => (H(), P(Et, {
|
|
2264
|
+
label: q(t) ? "Switch to light mode" : "Switch to dark mode",
|
|
2265
|
+
onClick: q(n)
|
|
2261
2266
|
}, {
|
|
2262
|
-
default:
|
|
2267
|
+
default: at(() => [q(t) ? (H(), P(q(Oe), {
|
|
2263
2268
|
key: 0,
|
|
2264
2269
|
size: 18
|
|
2265
|
-
})) : (
|
|
2270
|
+
})) : (H(), P(q(Ae), {
|
|
2266
2271
|
key: 1,
|
|
2267
2272
|
size: 18
|
|
2268
2273
|
}))]),
|
|
@@ -2284,9 +2289,9 @@ function Ra() {
|
|
|
2284
2289
|
t.classList.remove("copied"), t.setAttribute("title", i);
|
|
2285
2290
|
}, 2e3);
|
|
2286
2291
|
}
|
|
2287
|
-
|
|
2292
|
+
Ge(() => {
|
|
2288
2293
|
document.addEventListener("click", e);
|
|
2289
|
-
}),
|
|
2294
|
+
}), qe(() => {
|
|
2290
2295
|
document.removeEventListener("click", e);
|
|
2291
2296
|
});
|
|
2292
2297
|
}
|
|
@@ -2302,7 +2307,7 @@ function Ba(e, t) {
|
|
|
2302
2307
|
function n(n) {
|
|
2303
2308
|
n.defaultPrevented || Ha(n, e) && (n.preventDefault(), t(n));
|
|
2304
2309
|
}
|
|
2305
|
-
|
|
2310
|
+
Ge(() => window.addEventListener("keydown", n)), qe(() => window.removeEventListener("keydown", n));
|
|
2306
2311
|
}
|
|
2307
2312
|
function Va(e) {
|
|
2308
2313
|
let t = [];
|
|
@@ -2318,9 +2323,9 @@ function Va(e) {
|
|
|
2318
2323
|
return;
|
|
2319
2324
|
}
|
|
2320
2325
|
}
|
|
2321
|
-
return
|
|
2326
|
+
return J(e, (e, t) => {
|
|
2322
2327
|
t?.removeEventListener("keydown", r), e?.addEventListener("keydown", r);
|
|
2323
|
-
}, { immediate: !0 }),
|
|
2328
|
+
}, { immediate: !0 }), qe(() => {
|
|
2324
2329
|
e.value?.removeEventListener("keydown", r);
|
|
2325
2330
|
}), { register: n };
|
|
2326
2331
|
}
|
|
@@ -2363,9 +2368,9 @@ function Ga() {
|
|
|
2363
2368
|
}
|
|
2364
2369
|
document.addEventListener("pointermove", o), document.addEventListener("pointerup", s);
|
|
2365
2370
|
}
|
|
2366
|
-
|
|
2371
|
+
Ge(() => {
|
|
2367
2372
|
document.addEventListener("pointermove", r), document.addEventListener("pointerdown", i);
|
|
2368
|
-
}),
|
|
2373
|
+
}), qe(() => {
|
|
2369
2374
|
document.removeEventListener("pointermove", r), document.removeEventListener("pointerdown", i);
|
|
2370
2375
|
});
|
|
2371
2376
|
}
|
|
@@ -2387,30 +2392,30 @@ var Ka = { class: "td-header" }, qa = { class: "td-header-left" }, Ja = ["href"]
|
|
|
2387
2392
|
}, uo = ["innerHTML"], fo = {
|
|
2388
2393
|
key: 3,
|
|
2389
2394
|
class: "td-page-meta"
|
|
2390
|
-
}, po = { key: 0 }, mo = { class: "td-content-body" }, ho = 200, go = 500, _o = 272, vo = "td-sidebar-width", yo = /*#__PURE__*/
|
|
2395
|
+
}, po = { key: 0 }, mo = { class: "td-content-body" }, ho = 200, go = 500, _o = 272, vo = "td-sidebar-width", yo = /*#__PURE__*/ k(/* @__PURE__ */ B({
|
|
2391
2396
|
__name: "TdLayout",
|
|
2392
2397
|
setup(e) {
|
|
2393
|
-
let { title: t, page: n } =
|
|
2398
|
+
let { title: t, page: n } = we(), r = N(() => {
|
|
2394
2399
|
let e = n.value.icon;
|
|
2395
|
-
return e ?
|
|
2396
|
-
}), i =
|
|
2397
|
-
|
|
2398
|
-
let g =
|
|
2400
|
+
return e ? O(e.name) : void 0;
|
|
2401
|
+
}), i = A(), { withBase: a } = i, o = he(), s = N(() => o.value.ready), { isOpen: c, open: u, close: d } = Ki(), f = U(""), p = U(!1), m = U(!1), h = j();
|
|
2402
|
+
J(() => h.path, () => d()), Ra();
|
|
2403
|
+
let g = nt("sidebarSearch"), _ = nt("menuSearch");
|
|
2399
2404
|
function v() {
|
|
2400
2405
|
if (_.value?.isFocused || g.value?.isFocused) {
|
|
2401
2406
|
_.value?.blur(), g.value?.blur(), c.value && d();
|
|
2402
2407
|
return;
|
|
2403
2408
|
}
|
|
2404
|
-
c.value ? _.value?.focus() : g.value?.isVisible ? g.value.focus() : (u(),
|
|
2409
|
+
c.value ? _.value?.focus() : g.value?.isVisible ? g.value.focus() : (u(), He(() => _.value?.focus()));
|
|
2405
2410
|
}
|
|
2406
|
-
Ba([$.Control, $.k], v), Ba([$.Meta, $.k], v),
|
|
2411
|
+
Ba([$.Control, $.k], v), Ba([$.Meta, $.k], v), it(() => {
|
|
2407
2412
|
if (typeof document > "u") return;
|
|
2408
2413
|
let e = t.value, r = i.title;
|
|
2409
2414
|
document.title = e && e !== r ? `${e} - ${r}` : r;
|
|
2410
2415
|
let a = n.value.frontmatter?.description === void 0 ? i.description ?? "" : String(n.value.frontmatter.description), o = document.querySelector("meta[name=\"description\"]");
|
|
2411
2416
|
o && o.setAttribute("content", a);
|
|
2412
2417
|
}), Ga();
|
|
2413
|
-
let y =
|
|
2418
|
+
let y = U(typeof localStorage < "u" && Number(localStorage.getItem(vo)) || _o);
|
|
2414
2419
|
function b() {
|
|
2415
2420
|
y.value = Math.min(go, y.value + 20);
|
|
2416
2421
|
}
|
|
@@ -2429,134 +2434,134 @@ var Ka = { class: "td-header" }, qa = { class: "td-header-left" }, Ja = ["href"]
|
|
|
2429
2434
|
function C() {
|
|
2430
2435
|
y.value = Math.max(ho, y.value - 20);
|
|
2431
2436
|
}
|
|
2432
|
-
return (e, u) => (
|
|
2433
|
-
u[6] ||=
|
|
2437
|
+
return (e, u) => (H(), I("div", null, [
|
|
2438
|
+
u[6] ||= L("a", {
|
|
2434
2439
|
href: "#td-content",
|
|
2435
2440
|
class: "td-skip-link"
|
|
2436
2441
|
}, "Skip to content", -1),
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
href:
|
|
2442
|
+
L("header", Ka, [
|
|
2443
|
+
L("div", qa, [
|
|
2444
|
+
z(qi),
|
|
2445
|
+
L("a", {
|
|
2446
|
+
href: q(a)(q(l)("/")),
|
|
2442
2447
|
class: "td-brand"
|
|
2443
|
-
}, [
|
|
2444
|
-
|
|
2448
|
+
}, [z(wt), L("span", Ya, K(q(i).title || "Typedown"), 1)], 8, Ja),
|
|
2449
|
+
z(Jr, { class: "td-header-breadcrumb" })
|
|
2445
2450
|
]),
|
|
2446
|
-
|
|
2447
|
-
|
|
2451
|
+
z(q(Zr)),
|
|
2452
|
+
L("div", Xa, [z(La), q(i).repo ? (H(), I("a", {
|
|
2448
2453
|
key: 0,
|
|
2449
|
-
href:
|
|
2454
|
+
href: q(i).repo,
|
|
2450
2455
|
target: "_blank",
|
|
2451
2456
|
rel: "noopener noreferrer",
|
|
2452
2457
|
class: "td-header-icon-link",
|
|
2453
2458
|
"aria-label": "GitHub repository"
|
|
2454
|
-
}, [...u[5] ||= [
|
|
2459
|
+
}, [...u[5] ||= [L("svg", {
|
|
2455
2460
|
width: "20",
|
|
2456
2461
|
height: "20",
|
|
2457
2462
|
viewBox: "0 0 98 96",
|
|
2458
2463
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2459
2464
|
"aria-hidden": "true",
|
|
2460
2465
|
fill: "currentColor"
|
|
2461
|
-
}, [
|
|
2466
|
+
}, [L("path", {
|
|
2462
2467
|
"fill-rule": "evenodd",
|
|
2463
2468
|
"clip-rule": "evenodd",
|
|
2464
2469
|
d: "M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59\n 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367\n 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778\n 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125\n 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2\n 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364\n 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z"
|
|
2465
|
-
})], -1)]], 8, Za)) :
|
|
2470
|
+
})], -1)]], 8, Za)) : F("", !0)])
|
|
2466
2471
|
]),
|
|
2467
|
-
|
|
2468
|
-
class:
|
|
2469
|
-
onClick: u[0] ||= (...e) =>
|
|
2472
|
+
L("div", {
|
|
2473
|
+
class: V(["td-drawer-scrim", { "is-open": q(c) }]),
|
|
2474
|
+
onClick: u[0] ||= (...e) => q(d) && q(d)(...e)
|
|
2470
2475
|
}, null, 2),
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
href:
|
|
2476
|
+
L("aside", { class: V(["td-drawer", { "is-open": q(c) }]) }, [
|
|
2477
|
+
L("header", Qa, [L("a", {
|
|
2478
|
+
href: q(a)(q(l)("/")),
|
|
2474
2479
|
class: "td-brand"
|
|
2475
|
-
}, [
|
|
2480
|
+
}, [z(wt), L("span", eo, K(q(i).title || "Typedown"), 1)], 8, $a), z(Et, {
|
|
2476
2481
|
label: "Close menu",
|
|
2477
|
-
onClick:
|
|
2482
|
+
onClick: q(d)
|
|
2478
2483
|
}, {
|
|
2479
|
-
default:
|
|
2484
|
+
default: at(() => [z(q(ye), { size: 20 })]),
|
|
2480
2485
|
_: 1
|
|
2481
2486
|
}, 8, ["onClick"])]),
|
|
2482
|
-
|
|
2483
|
-
|
|
2487
|
+
z(q(ei)),
|
|
2488
|
+
z(Ia, {
|
|
2484
2489
|
ref_key: "menuSearch",
|
|
2485
2490
|
ref: _,
|
|
2486
2491
|
query: f.value,
|
|
2487
2492
|
"onUpdate:query": u[1] ||= (e) => f.value = e,
|
|
2488
2493
|
active: m.value,
|
|
2489
2494
|
"onUpdate:active": u[2] ||= (e) => m.value = e,
|
|
2490
|
-
onSelect:
|
|
2495
|
+
onSelect: q(d)
|
|
2491
2496
|
}, null, 8, [
|
|
2492
2497
|
"query",
|
|
2493
2498
|
"active",
|
|
2494
2499
|
"onSelect"
|
|
2495
2500
|
]),
|
|
2496
|
-
m.value ?
|
|
2501
|
+
m.value ? F("", !0) : (H(), I("nav", to, [s.value ? (H(), P(Nr, {
|
|
2497
2502
|
key: 1,
|
|
2498
|
-
tree:
|
|
2499
|
-
}, null, 8, ["tree"])) : (
|
|
2503
|
+
tree: q(o).contentTree
|
|
2504
|
+
}, null, 8, ["tree"])) : (H(), P(ya, { key: 0 }))]))
|
|
2500
2505
|
], 2),
|
|
2501
|
-
|
|
2506
|
+
L("div", no, [L("nav", {
|
|
2502
2507
|
class: "td-sidebar-left",
|
|
2503
2508
|
"aria-label": "Site navigation",
|
|
2504
|
-
style:
|
|
2505
|
-
}, [
|
|
2509
|
+
style: Ue({ width: `${y.value}px` })
|
|
2510
|
+
}, [L("div", ro, [z(Ia, {
|
|
2506
2511
|
ref_key: "sidebarSearch",
|
|
2507
2512
|
ref: g,
|
|
2508
2513
|
query: f.value,
|
|
2509
2514
|
"onUpdate:query": u[3] ||= (e) => f.value = e,
|
|
2510
2515
|
active: p.value,
|
|
2511
2516
|
"onUpdate:active": u[4] ||= (e) => p.value = e
|
|
2512
|
-
}, null, 8, ["query", "active"]), !p.value && !s.value ? (
|
|
2517
|
+
}, null, 8, ["query", "active"]), !p.value && !s.value ? (H(), P(ya, { key: 0 })) : p.value ? F("", !0) : (H(), P(Nr, {
|
|
2513
2518
|
key: 1,
|
|
2514
|
-
tree:
|
|
2515
|
-
}, null, 8, ["tree"]))]),
|
|
2519
|
+
tree: q(o).contentTree
|
|
2520
|
+
}, null, 8, ["tree"]))]), L("div", {
|
|
2516
2521
|
class: "td-sidebar-resize",
|
|
2517
2522
|
role: "separator",
|
|
2518
2523
|
"aria-orientation": "vertical",
|
|
2519
2524
|
"aria-label": "Resize sidebar",
|
|
2520
2525
|
tabindex: "0",
|
|
2521
|
-
onPointerdown:
|
|
2522
|
-
onKeydown: [ct(
|
|
2523
|
-
}, null, 40, io)], 4),
|
|
2524
|
-
|
|
2525
|
-
r.value ? (
|
|
2526
|
-
|
|
2526
|
+
onPointerdown: ct(S, ["prevent"]),
|
|
2527
|
+
onKeydown: [st(ct(C, ["prevent"]), ["left"]), st(ct(b, ["prevent"]), ["right"])]
|
|
2528
|
+
}, null, 40, io)], 4), L("div", ao, [L("main", oo, [L("article", so, [
|
|
2529
|
+
q(n).schema ? (H(), I("div", co, K(q(n).schemaLabel ?? q(n).schema), 1)) : F("", !0),
|
|
2530
|
+
r.value ? (H(), I("div", lo, [(H(), P(G(r.value), { size: 32 }))])) : F("", !0),
|
|
2531
|
+
q(t) ? (H(), I("h1", {
|
|
2527
2532
|
key: 2,
|
|
2528
2533
|
class: "td-page-title",
|
|
2529
|
-
innerHTML:
|
|
2530
|
-
}, null, 8, uo)) :
|
|
2531
|
-
|
|
2532
|
-
|
|
2534
|
+
innerHTML: q(Ot)(q(t))
|
|
2535
|
+
}, null, 8, uo)) : F("", !0),
|
|
2536
|
+
q(n).metadata ? (H(), I("div", fo, [L("span", null, K(q(x)(q(n).metadata.mtime, "Modified")), 1), q(n).metadata.ctime === q(n).metadata.mtime ? F("", !0) : (H(), I("span", po, " · " + K(q(x)(q(n).metadata.ctime, "Created")), 1))])) : F("", !0),
|
|
2537
|
+
z(q(Wi), {
|
|
2533
2538
|
class: "td-frontmatter-inline",
|
|
2534
|
-
schema:
|
|
2535
|
-
frontmatter:
|
|
2539
|
+
schema: q(n).schema,
|
|
2540
|
+
frontmatter: q(n).frontmatter
|
|
2536
2541
|
}, null, 8, ["schema", "frontmatter"]),
|
|
2537
|
-
|
|
2542
|
+
q(n).headings.length > 0 ? (H(), P(ha, {
|
|
2538
2543
|
key: 4,
|
|
2539
2544
|
class: "td-toc-inline",
|
|
2540
|
-
headings:
|
|
2545
|
+
headings: q(n).headings,
|
|
2541
2546
|
static: ""
|
|
2542
|
-
}, null, 8, ["headings"])) :
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
])]),
|
|
2546
|
-
|
|
2547
|
+
}, null, 8, ["headings"])) : F("", !0),
|
|
2548
|
+
L("div", mo, [z(q(_e))]),
|
|
2549
|
+
z(ca)
|
|
2550
|
+
])]), z(_a, { class: "td-rail" })])]),
|
|
2551
|
+
z(Ir)
|
|
2547
2552
|
]));
|
|
2548
2553
|
}
|
|
2549
|
-
}), [["__scopeId", "data-v-
|
|
2554
|
+
}), [["__scopeId", "data-v-4211155e"]]), bo = { class: "pt-16 pb-24" }, xo = ["href"], So = /* @__PURE__ */ B({
|
|
2550
2555
|
__name: "TdNotFound",
|
|
2551
2556
|
setup(e) {
|
|
2552
|
-
let { withBase: t } =
|
|
2553
|
-
return (e, n) => (
|
|
2554
|
-
n[0] ||=
|
|
2555
|
-
n[1] ||=
|
|
2556
|
-
n[2] ||=
|
|
2557
|
-
|
|
2557
|
+
let { withBase: t } = A();
|
|
2558
|
+
return (e, n) => (H(), I("div", bo, [
|
|
2559
|
+
n[0] ||= L("p", { class: "text-td-4xl font-extrabold leading-none tracking-td-tight text-td-fg-muted" }, " 404 ", -1),
|
|
2560
|
+
n[1] ||= L("h1", { class: "text-td-xl font-extrabold leading-td-tight tracking-td-tight mt-4" }, " Page Not Found ", -1),
|
|
2561
|
+
n[2] ||= L("p", { class: "text-td-fg-muted mt-2 text-td-base leading-td-relaxed" }, " The page you are looking for does not exist. ", -1),
|
|
2562
|
+
L("a", {
|
|
2558
2563
|
class: "inline-flex items-center mt-6 text-td-accent text-td-sm font-extrabold tracking-td-tight hover:text-td-accent-hi",
|
|
2559
|
-
href:
|
|
2564
|
+
href: q(t)(q(l)("/"))
|
|
2560
2565
|
}, "Go Home", 8, xo)
|
|
2561
2566
|
]));
|
|
2562
2567
|
}
|
|
@@ -2565,4 +2570,4 @@ var Ka = { class: "td-header" }, qa = { class: "td-header-left" }, Ja = ["href"]
|
|
|
2565
2570
|
NotFound: So
|
|
2566
2571
|
};
|
|
2567
2572
|
//#endregion
|
|
2568
|
-
export {
|
|
2573
|
+
export { Se as TdDirectoryIndex, Te as TdGlossaryIndex, xa as TdKbdShortcut, $ as TdKeyName, yo as TdLayout, So as TdNotFound, Co as default, Ra as useCopyCode, Ba as useGlobalHotkey, Va as useLocalHotkeys };
|