typerighter 0.6.0 → 0.7.0
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-BZKg-fe3.js → app-Bf0aLzaG.js} +19 -13
- package/dist/{cli-D5-gYw26.js → cli-CDd4TNg1.js} +14 -12
- package/dist/cli.js +1 -1
- package/dist/client/app/composables/useUrl.d.ts +6 -0
- package/dist/client/app/composables/useUrl.d.ts.map +1 -0
- package/dist/client/app/index.d.ts +5 -0
- package/dist/client/app/index.d.ts.map +1 -1
- package/dist/client/theme-default.js +378 -312
- package/dist/client.js +1 -1
- package/dist/{constants-Dq357AVO.js → constants-DJbUAb1-.js} +1 -1
- package/dist/index.js +2 -2
- package/dist/{init-CzF7lqKE.js → init-Bfnl0t1B.js} +3 -3
- package/dist/node/build/index.d.ts.map +1 -1
- package/dist/node/plugin/vite/index.d.ts +4 -0
- package/dist/node/plugin/vite/index.d.ts.map +1 -1
- package/dist/shared/utils/content.d.ts.map +1 -1
- package/dist/{shared-BoWAaUci.js → shared-CpPZZ8IH.js} +30 -26
- package/dist/typerighter.css +1 -1
- package/dist/{vite-BrwFwz0T.js → vite-DnP-_NzR.js} +14 -10
- package/dist/vite.js +1 -1
- package/package.json +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { C as e, S as t, c as n, d as r, h as i, m as a, n as o, r as s, s as c, t as l, u, v as d, w as f } from "../shared-
|
|
1
|
+
import { C as e, S as t, c as n, d as r, h as i, m as a, n as o, r as s, s as c, t as l, u, v as d, w as f } from "../shared-CpPZZ8IH.js";
|
|
2
2
|
import { a as p, i as m, n as h, o as g, s as _, t as v } from "../brand-BfamszbH.js";
|
|
3
|
-
import { t as
|
|
4
|
-
import { a as
|
|
5
|
-
import { Fragment as
|
|
3
|
+
import { t as ee } from "../es-ClqUVRJn.js";
|
|
4
|
+
import { a as y, c as b, d as x, f as S, h as C, i as te, l as w, m as T, n as ne, o as E, p as D, r as re, s as ie } from "../app-Bf0aLzaG.js";
|
|
5
|
+
import { Fragment as O, Teleport as ae, computed as k, createBlock as A, createCommentVNode as j, createElementBlock as M, createElementVNode as N, createTextVNode as P, createVNode as F, defineComponent as I, markRaw as oe, mergeModels as se, mergeProps as ce, nextTick as le, normalizeClass as L, normalizeStyle as R, onBeforeUnmount as ue, onMounted as de, onUnmounted as z, openBlock as B, readonly as fe, ref as V, renderList as H, renderSlot as pe, resolveComponent as me, shallowRef as he, toDisplayString as U, unref as W, useModel as ge, useTemplateRef as _e, vModelText as ve, watch as G, withCtx as K, withDirectives as ye, withModifiers as be } from "vue";
|
|
6
6
|
//#region src/shared/utils/debounce.ts
|
|
7
|
-
function
|
|
7
|
+
function xe(e, t) {
|
|
8
8
|
let n;
|
|
9
9
|
return (...r) => {
|
|
10
10
|
clearTimeout(n), n = setTimeout(() => e(...r), t);
|
|
@@ -12,25 +12,31 @@ function be(e, t) {
|
|
|
12
12
|
}
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/shared/utils/regex.ts
|
|
15
|
-
function
|
|
15
|
+
function Se(e) {
|
|
16
16
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
17
17
|
}
|
|
18
|
-
var
|
|
18
|
+
var Ce = C("chevron-down", [["path", {
|
|
19
19
|
d: "m6 9 6 6 6-6",
|
|
20
20
|
key: "qrunsl"
|
|
21
|
-
}]]),
|
|
22
|
-
d: "
|
|
23
|
-
key: "
|
|
24
|
-
}]]),
|
|
21
|
+
}]]), we = C("chevron-right", [["path", {
|
|
22
|
+
d: "m9 18 6-6-6-6",
|
|
23
|
+
key: "mthhwq"
|
|
24
|
+
}]]), Te = C("chevron-left", [["path", {
|
|
25
|
+
d: "m15 18-6-6 6-6",
|
|
26
|
+
key: "1wnfg3"
|
|
27
|
+
}]]), Ee = C("folder-open", [["path", {
|
|
28
|
+
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",
|
|
29
|
+
key: "usdka0"
|
|
30
|
+
}]]), De = C("house", [["path", {
|
|
25
31
|
d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",
|
|
26
32
|
key: "5wwlr5"
|
|
27
33
|
}], ["path", {
|
|
28
34
|
d: "M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",
|
|
29
35
|
key: "r6nss1"
|
|
30
|
-
}]]),
|
|
36
|
+
}]]), Oe = C("loader-circle", [["path", {
|
|
31
37
|
d: "M21 12a9 9 0 1 1-6.219-8.56",
|
|
32
38
|
key: "13zald"
|
|
33
|
-
}]]),
|
|
39
|
+
}]]), ke = C("menu", [
|
|
34
40
|
["path", {
|
|
35
41
|
d: "M4 5h16",
|
|
36
42
|
key: "1tepv9"
|
|
@@ -43,10 +49,10 @@ var xe = w("chevron-down", [["path", {
|
|
|
43
49
|
d: "M4 19h16",
|
|
44
50
|
key: "1djgab"
|
|
45
51
|
}]
|
|
46
|
-
]),
|
|
52
|
+
]), Ae = C("moon", [["path", {
|
|
47
53
|
d: "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",
|
|
48
54
|
key: "kfwtm"
|
|
49
|
-
}]]),
|
|
55
|
+
}]]), je = C("search", [["path", {
|
|
50
56
|
d: "m21 21-4.34-4.34",
|
|
51
57
|
key: "14j7rj"
|
|
52
58
|
}], ["circle", {
|
|
@@ -54,20 +60,20 @@ var xe = w("chevron-down", [["path", {
|
|
|
54
60
|
cy: "11",
|
|
55
61
|
r: "8",
|
|
56
62
|
key: "4ej97u"
|
|
57
|
-
}]]),
|
|
63
|
+
}]]), Me = C("square-check-big", [["path", {
|
|
58
64
|
d: "M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",
|
|
59
65
|
key: "2acyp4"
|
|
60
66
|
}], ["path", {
|
|
61
67
|
d: "m9 11 3 3L22 4",
|
|
62
68
|
key: "1pflzl"
|
|
63
|
-
}]]),
|
|
69
|
+
}]]), Ne = C("square", [["rect", {
|
|
64
70
|
width: "18",
|
|
65
71
|
height: "18",
|
|
66
72
|
x: "3",
|
|
67
73
|
y: "3",
|
|
68
74
|
rx: "2",
|
|
69
75
|
key: "afitv7"
|
|
70
|
-
}]]),
|
|
76
|
+
}]]), Pe = C("sun", [
|
|
71
77
|
["circle", {
|
|
72
78
|
cx: "12",
|
|
73
79
|
cy: "12",
|
|
@@ -106,60 +112,60 @@ var xe = w("chevron-down", [["path", {
|
|
|
106
112
|
d: "m19.07 4.93-1.41 1.41",
|
|
107
113
|
key: "1shlcs"
|
|
108
114
|
}]
|
|
109
|
-
]),
|
|
115
|
+
]), q = C("x", [["path", {
|
|
110
116
|
d: "M18 6 6 18",
|
|
111
117
|
key: "1bl5f8"
|
|
112
118
|
}], ["path", {
|
|
113
119
|
d: "m6 6 12 12",
|
|
114
120
|
key: "d8bk6v"
|
|
115
|
-
}]]),
|
|
121
|
+
}]]), Fe = [
|
|
116
122
|
"height",
|
|
117
123
|
"width",
|
|
118
124
|
"viewBox"
|
|
119
|
-
],
|
|
125
|
+
], Ie = ["d"], Le = ["d"], Re = ["d"], ze = /* @__PURE__ */ I({
|
|
120
126
|
__name: "TdBrandIcon",
|
|
121
127
|
props: { size: { default: 28 } },
|
|
122
128
|
setup(e) {
|
|
123
|
-
return (t, n) => (
|
|
129
|
+
return (t, n) => (B(), M("svg", {
|
|
124
130
|
fill: "none",
|
|
125
131
|
height: e.size,
|
|
126
132
|
width: e.size * 208 / 128,
|
|
127
|
-
viewBox:
|
|
133
|
+
viewBox: W(p),
|
|
128
134
|
xmlns: "http://www.w3.org/2000/svg"
|
|
129
135
|
}, [
|
|
130
|
-
|
|
136
|
+
N("path", {
|
|
131
137
|
"clip-rule": "evenodd",
|
|
132
|
-
d:
|
|
138
|
+
d: W(h),
|
|
133
139
|
"fill-rule": "evenodd",
|
|
134
140
|
fill: "currentColor"
|
|
135
|
-
}, null, 8,
|
|
136
|
-
|
|
137
|
-
d:
|
|
141
|
+
}, null, 8, Ie),
|
|
142
|
+
N("path", {
|
|
143
|
+
d: W(m),
|
|
138
144
|
fill: "currentColor"
|
|
139
|
-
}, null, 8,
|
|
140
|
-
|
|
141
|
-
d:
|
|
145
|
+
}, null, 8, Le),
|
|
146
|
+
N("path", {
|
|
147
|
+
d: W(v),
|
|
142
148
|
fill: "currentColor"
|
|
143
|
-
}, null, 8,
|
|
144
|
-
], 8,
|
|
149
|
+
}, null, 8, Re)
|
|
150
|
+
], 8, Fe));
|
|
145
151
|
}
|
|
146
|
-
}),
|
|
152
|
+
}), Be = ["title", "aria-label"], J = /* @__PURE__ */ I({
|
|
147
153
|
__name: "TdButton",
|
|
148
154
|
props: { label: {} },
|
|
149
155
|
setup(e) {
|
|
150
|
-
return (t, n) => (
|
|
156
|
+
return (t, n) => (B(), M("button", {
|
|
151
157
|
type: "button",
|
|
152
158
|
class: "inline-flex items-center justify-center cursor-pointer",
|
|
153
159
|
title: e.label,
|
|
154
160
|
"aria-label": e.label
|
|
155
|
-
}, [
|
|
161
|
+
}, [pe(t.$slots, "default")], 8, Be));
|
|
156
162
|
}
|
|
157
|
-
}),
|
|
163
|
+
}), Ve = /*#__PURE__*/ S(/* @__PURE__ */ I({
|
|
158
164
|
inheritAttrs: !1,
|
|
159
165
|
__name: "TdTooltip",
|
|
160
166
|
props: { text: {} },
|
|
161
167
|
setup(e) {
|
|
162
|
-
let t =
|
|
168
|
+
let t = _e("wrapper"), n = V(!1), r = V({
|
|
163
169
|
top: "0px",
|
|
164
170
|
left: "0px"
|
|
165
171
|
}), i;
|
|
@@ -181,192 +187,195 @@ var xe = w("chevron-down", [["path", {
|
|
|
181
187
|
left: `${i.left}px`
|
|
182
188
|
}, n.value = !0;
|
|
183
189
|
}
|
|
184
|
-
return
|
|
190
|
+
return ue(() => {
|
|
185
191
|
a();
|
|
186
|
-
}), (i, c) => (
|
|
192
|
+
}), (i, c) => (B(), M(O, null, [N("span", ce({
|
|
187
193
|
ref_key: "wrapper",
|
|
188
194
|
ref: t
|
|
189
195
|
}, i.$attrs, {
|
|
190
196
|
class: "td-tooltip-trigger",
|
|
191
197
|
onMouseenter: s,
|
|
192
198
|
onMouseleave: o
|
|
193
|
-
}), [
|
|
199
|
+
}), [pe(i.$slots, "default", {}, void 0, !0)], 16), (B(), A(ae, { to: "body" }, [n.value ? (B(), M("span", {
|
|
194
200
|
key: 0,
|
|
195
201
|
class: "td-tooltip",
|
|
196
|
-
style:
|
|
202
|
+
style: R(r.value),
|
|
197
203
|
role: "tooltip",
|
|
198
204
|
onMouseenter: a,
|
|
199
205
|
onMouseleave: o
|
|
200
|
-
},
|
|
206
|
+
}, U(e.text), 37)) : j("", !0)]))], 64));
|
|
201
207
|
}
|
|
202
|
-
}), [["__scopeId", "data-v-018d7f4b"]]),
|
|
208
|
+
}), [["__scopeId", "data-v-018d7f4b"]]), He = {
|
|
203
209
|
key: 0,
|
|
204
210
|
class: "td-tree-node"
|
|
205
|
-
},
|
|
211
|
+
}, Ue = { class: "td-tree-label" }, We = ["aria-expanded"], Ge = { class: "td-tree-label-text" }, Ke = ["href"], qe = { class: "td-tree-count" }, Je = {
|
|
206
212
|
key: 0,
|
|
207
213
|
class: "td-tree-children"
|
|
208
|
-
},
|
|
214
|
+
}, Ye = ["href"], Xe = { class: "td-tree-time" }, Y = 4, Ze = /*#__PURE__*/ S(/* @__PURE__ */ I({
|
|
209
215
|
__name: "TdTreeNode",
|
|
210
216
|
props: {
|
|
211
217
|
node: {},
|
|
212
218
|
urlPrefix: { default: "" }
|
|
213
219
|
},
|
|
214
220
|
setup(e) {
|
|
215
|
-
let a =
|
|
216
|
-
function
|
|
217
|
-
return e.items.length + e.children.reduce((e, t) => e +
|
|
221
|
+
let a = w(), o = n(e.urlPrefix, e.node.name), l = e.node.items.find((e) => i(e.filepath) === t), f = l ? u(l.filepath) : o + "/index", p = e.node.items.filter((e) => i(e.filepath) !== t), m = 0 < e.node.children.length || 0 < e.node.items.length, h = k(() => g(e.node));
|
|
222
|
+
function g(e) {
|
|
223
|
+
return e.items.length + e.children.reduce((e, t) => e + g(t), 0);
|
|
218
224
|
}
|
|
219
|
-
let
|
|
220
|
-
|
|
221
|
-
r(o, e) && (
|
|
225
|
+
let _ = V(!r(o, a.path)), v = V(!1), ee = k(() => v.value ? p : p.slice(0, Y)), y = k(() => Math.max(0, p.length - Y));
|
|
226
|
+
G(() => a.path, (e) => {
|
|
227
|
+
r(o, e) && (_.value = !1);
|
|
222
228
|
});
|
|
223
229
|
function b() {
|
|
224
|
-
|
|
230
|
+
v.value = !0;
|
|
225
231
|
}
|
|
226
232
|
function x(e) {
|
|
227
233
|
return a.path === e;
|
|
228
234
|
}
|
|
229
235
|
function S() {
|
|
230
|
-
|
|
236
|
+
_.value = !_.value;
|
|
231
237
|
}
|
|
232
238
|
return (t, n) => {
|
|
233
|
-
let r =
|
|
234
|
-
return
|
|
235
|
-
|
|
239
|
+
let r = me("TdTreeNode", !0);
|
|
240
|
+
return W(m) ? (B(), M("div", He, [N("div", Ue, [
|
|
241
|
+
N("button", {
|
|
236
242
|
type: "button",
|
|
237
243
|
class: "td-tree-toggle",
|
|
238
|
-
"aria-expanded": !
|
|
244
|
+
"aria-expanded": !_.value,
|
|
239
245
|
onClick: S
|
|
240
|
-
}, [
|
|
246
|
+
}, [F(W(Ce), {
|
|
241
247
|
size: 14,
|
|
242
|
-
class:
|
|
243
|
-
}, null, 8, ["class"]),
|
|
244
|
-
|
|
245
|
-
href:
|
|
246
|
-
class:
|
|
247
|
-
}, [x(
|
|
248
|
+
class: L(["td-tree-caret", { "is-collapsed": _.value }])
|
|
249
|
+
}, null, 8, ["class"]), N("span", Ge, U(W(d)(e.node.name)), 1)], 8, We),
|
|
250
|
+
N("a", {
|
|
251
|
+
href: W(f),
|
|
252
|
+
class: L(["td-tree-index-btn", { "is-active": x(W(f)) }])
|
|
253
|
+
}, [x(W(f)) ? (B(), A(W(Ee), {
|
|
248
254
|
key: 0,
|
|
249
255
|
size: 12
|
|
250
|
-
})) : (
|
|
256
|
+
})) : (B(), A(W(D), {
|
|
251
257
|
key: 1,
|
|
252
258
|
size: 12
|
|
253
|
-
}))], 10,
|
|
254
|
-
|
|
255
|
-
]),
|
|
256
|
-
(
|
|
259
|
+
}))], 10, Ke),
|
|
260
|
+
N("span", qe, U(h.value), 1)
|
|
261
|
+
]), _.value ? j("", !0) : (B(), M("div", Je, [
|
|
262
|
+
(B(!0), M(O, null, H(e.node.children, (e) => (B(), A(r, {
|
|
257
263
|
key: e.name,
|
|
258
264
|
node: e,
|
|
259
|
-
"url-prefix":
|
|
265
|
+
"url-prefix": W(o)
|
|
260
266
|
}, null, 8, ["node", "url-prefix"]))), 128)),
|
|
261
|
-
(
|
|
267
|
+
(B(!0), M(O, null, H(ee.value, (e) => (B(), M("a", {
|
|
262
268
|
key: e.filepath,
|
|
263
|
-
href:
|
|
264
|
-
class:
|
|
269
|
+
href: W(u)(e.filepath),
|
|
270
|
+
class: L(["td-tree-link", { "is-active": x(W(u)(e.filepath)) }])
|
|
265
271
|
}, [
|
|
266
|
-
|
|
272
|
+
F(W(T), {
|
|
267
273
|
size: 14,
|
|
268
274
|
class: "td-tree-file-icon"
|
|
269
275
|
}),
|
|
270
|
-
|
|
276
|
+
F(Ve, {
|
|
271
277
|
class: "td-tree-link-text",
|
|
272
|
-
text:
|
|
278
|
+
text: W(c)(e.header, e.filepath)
|
|
273
279
|
}, {
|
|
274
|
-
default:
|
|
280
|
+
default: K(() => [P(U(W(c)(e.header, e.filepath)), 1)]),
|
|
275
281
|
_: 2
|
|
276
282
|
}, 1032, ["text"]),
|
|
277
|
-
|
|
278
|
-
], 10,
|
|
279
|
-
y.value > 0 && !
|
|
283
|
+
N("span", Xe, U(W(s)(e.metadata.mtime)), 1)
|
|
284
|
+
], 10, Ye))), 128)),
|
|
285
|
+
y.value > 0 && !v.value ? (B(), M("button", {
|
|
280
286
|
key: 0,
|
|
281
287
|
class: "td-tree-more",
|
|
282
288
|
type: "button",
|
|
283
289
|
onClick: b
|
|
284
|
-
},
|
|
285
|
-
]))])) :
|
|
290
|
+
}, U(y.value) + " more ", 1)) : j("", !0)
|
|
291
|
+
]))])) : j("", !0);
|
|
286
292
|
};
|
|
287
293
|
}
|
|
288
|
-
}), [["__scopeId", "data-v-
|
|
294
|
+
}), [["__scopeId", "data-v-f6c7b51f"]]), Qe = ["href"], $e = {
|
|
289
295
|
key: 0,
|
|
290
296
|
class: "td-root-link-time"
|
|
291
|
-
},
|
|
297
|
+
}, et = ["href"], tt = { class: "td-root-link-text" }, nt = { class: "td-root-link-time" }, rt = /*#__PURE__*/ S(/* @__PURE__ */ I({
|
|
292
298
|
__name: "TdContentNav",
|
|
293
299
|
props: { tree: {} },
|
|
294
300
|
setup(e) {
|
|
295
|
-
let n =
|
|
301
|
+
let n = w(), r = e.tree.rootItems.find((e) => i(e.filepath) === t), a = e.tree.rootItems.filter((e) => i(e.filepath) !== t);
|
|
296
302
|
function o(e) {
|
|
297
303
|
return n.path === e;
|
|
298
304
|
}
|
|
299
|
-
return (t, n) => (
|
|
300
|
-
|
|
301
|
-
href:
|
|
302
|
-
class:
|
|
305
|
+
return (t, n) => (B(), M("nav", null, [
|
|
306
|
+
N("a", {
|
|
307
|
+
href: W(r) ? W(u)(W(r).filepath) : "/index",
|
|
308
|
+
class: L(["td-root-link", { "is-active": o(W(r) ? W(u)(W(r).filepath) : "/") }])
|
|
303
309
|
}, [
|
|
304
|
-
|
|
310
|
+
F(W(De), {
|
|
305
311
|
size: 14,
|
|
306
312
|
class: "td-root-link-icon"
|
|
307
313
|
}),
|
|
308
|
-
n[0] ||=
|
|
309
|
-
|
|
310
|
-
], 10,
|
|
311
|
-
(
|
|
314
|
+
n[0] ||= N("span", { class: "td-root-link-text" }, "Overview", -1),
|
|
315
|
+
W(r) ? (B(), M("span", $e, U(W(s)(W(r).metadata.mtime)), 1)) : j("", !0)
|
|
316
|
+
], 10, Qe),
|
|
317
|
+
(B(!0), M(O, null, H(W(a), (e) => (B(), M("a", {
|
|
312
318
|
key: e.filepath,
|
|
313
|
-
href:
|
|
314
|
-
class:
|
|
319
|
+
href: W(u)(e.filepath),
|
|
320
|
+
class: L(["td-root-link", { "is-active": o(W(u)(e.filepath)) }])
|
|
315
321
|
}, [
|
|
316
|
-
|
|
322
|
+
F(W(T), {
|
|
317
323
|
size: 14,
|
|
318
324
|
class: "td-root-link-icon"
|
|
319
325
|
}),
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
], 10,
|
|
323
|
-
(
|
|
326
|
+
N("span", tt, U(W(c)(e.header, e.filepath)), 1),
|
|
327
|
+
N("span", nt, U(W(s)(e.metadata.mtime)), 1)
|
|
328
|
+
], 10, et))), 128)),
|
|
329
|
+
(B(!0), M(O, null, H(e.tree.children, (e) => (B(), A(Ze, {
|
|
324
330
|
key: e.name,
|
|
325
331
|
node: e
|
|
326
332
|
}, null, 8, ["node"]))), 128))
|
|
327
333
|
]));
|
|
328
334
|
}
|
|
329
|
-
}), [["__scopeId", "data-v-
|
|
335
|
+
}), [["__scopeId", "data-v-4fe75821"]]), it = {
|
|
330
336
|
class: "td-breadcrumb",
|
|
331
337
|
"aria-label": "Breadcrumb"
|
|
332
|
-
},
|
|
338
|
+
}, at = {
|
|
333
339
|
key: 0,
|
|
334
340
|
class: "td-breadcrumb-sep",
|
|
335
341
|
"aria-hidden": "true"
|
|
336
|
-
},
|
|
342
|
+
}, ot = ["href"], st = {
|
|
337
343
|
key: 2,
|
|
338
344
|
class: "td-breadcrumb-current"
|
|
339
|
-
},
|
|
345
|
+
}, ct = /*#__PURE__*/ S(/* @__PURE__ */ I({
|
|
340
346
|
__name: "TdBreadcrumb",
|
|
341
347
|
setup(e) {
|
|
342
|
-
let t =
|
|
348
|
+
let t = w(), n = k(() => {
|
|
343
349
|
let e = t.path === "/" ? "/" : t.path.replace(/\/$/, ""), n = [{
|
|
344
350
|
name: "Home",
|
|
345
|
-
href: "/"
|
|
351
|
+
href: "/index"
|
|
346
352
|
}];
|
|
347
353
|
if (e === "/") return n;
|
|
348
354
|
let r = e.replace(/^\//, "").split("/");
|
|
349
|
-
for (let e = 0; e < r.length; e++)
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
355
|
+
for (let e = 0; e < r.length; e++) {
|
|
356
|
+
let t = "/" + r.slice(0, e + 1).join("/"), i = e === r.length - 1;
|
|
357
|
+
n.push({
|
|
358
|
+
name: d(r[e]),
|
|
359
|
+
href: i ? t : t + "/index"
|
|
360
|
+
});
|
|
361
|
+
}
|
|
353
362
|
return n;
|
|
354
363
|
});
|
|
355
|
-
return (e, t) => (
|
|
364
|
+
return (e, t) => (B(), M("nav", it, [(B(!0), M(O, null, H(n.value, (e, t) => (B(), M(O, { key: e.href }, [t > 0 ? (B(), M("span", at, "/")) : j("", !0), t < n.value.length - 1 ? (B(), M("a", {
|
|
356
365
|
key: 1,
|
|
357
366
|
href: e.href,
|
|
358
367
|
class: "td-breadcrumb-link"
|
|
359
|
-
},
|
|
368
|
+
}, U(e.name), 9, ot)) : (B(), M("span", st, U(e.name), 1))], 64))), 128))]));
|
|
360
369
|
}
|
|
361
|
-
}), [["__scopeId", "data-v-
|
|
370
|
+
}), [["__scopeId", "data-v-d6597dd1"]]), lt = { class: "td-widget-checkbox" }, ut = /*#__PURE__*/ S(/* @__PURE__ */ I({
|
|
362
371
|
__name: "TdWidgetCheckbox",
|
|
363
372
|
props: { value: {} },
|
|
364
373
|
setup(e) {
|
|
365
|
-
return (t, n) => (
|
|
374
|
+
return (t, n) => (B(), M("span", lt, [e.value ? (B(), A(W(Me), {
|
|
366
375
|
key: 0,
|
|
367
376
|
size: 16,
|
|
368
377
|
class: "td-widget-checkbox-icon is-checked"
|
|
369
|
-
})) : (
|
|
378
|
+
})) : (B(), A(W(Ne), {
|
|
370
379
|
key: 1,
|
|
371
380
|
size: 16,
|
|
372
381
|
class: "td-widget-checkbox-icon"
|
|
@@ -375,7 +384,7 @@ var xe = w("chevron-down", [["path", {
|
|
|
375
384
|
}), [["__scopeId", "data-v-0efb2919"]]);
|
|
376
385
|
//#endregion
|
|
377
386
|
//#region src/client/theme-default/components/TdFrontmatter/widgets/ref.ts
|
|
378
|
-
function
|
|
387
|
+
function dt(e) {
|
|
379
388
|
if (typeof e != "object" || !e) return;
|
|
380
389
|
let t = e.$ref;
|
|
381
390
|
if (typeof t != "object" || !t) return;
|
|
@@ -387,37 +396,36 @@ function ct(e) {
|
|
|
387
396
|
}
|
|
388
397
|
//#endregion
|
|
389
398
|
//#region src/client/theme-default/components/TdFrontmatter/widgets/TdWidgetList.vue?vue&type=script&setup=true&lang.ts
|
|
390
|
-
var
|
|
399
|
+
var ft = { class: "td-widget-list" }, pt = ["href"], mt = { class: "td-widget-list" }, X = 5, ht = /*#__PURE__*/ S(/* @__PURE__ */ I({
|
|
391
400
|
__name: "TdWidgetList",
|
|
392
401
|
props: {
|
|
393
402
|
definition: {},
|
|
394
403
|
value: {}
|
|
395
404
|
},
|
|
396
405
|
setup(e) {
|
|
397
|
-
let t =
|
|
406
|
+
let t = V(!1), n = Array.isArray(e.value) ? e.value : [], r = e.definition.items?.widget === "relation", i = r ? n.map((e) => dt(e)).filter((e) => e !== void 0) : [], a = r ? Math.max(0, i.length - X) : Math.max(0, n.length - X);
|
|
398
407
|
function o() {
|
|
399
408
|
t.value = !t.value;
|
|
400
409
|
}
|
|
401
410
|
function s(e) {
|
|
402
|
-
return t.value ? e : e.slice(0,
|
|
411
|
+
return t.value ? e : e.slice(0, X);
|
|
403
412
|
}
|
|
404
|
-
return (e, c) => r ? (
|
|
405
|
-
key: t,
|
|
413
|
+
return (e, c) => r ? (B(), M(O, { key: 0 }, [N("ul", ft, [(B(!0), M(O, null, H(s(W(i)), (e, t) => (B(), M("li", { key: t }, [N("a", {
|
|
406
414
|
href: e.url,
|
|
407
415
|
class: "td-widget-ref"
|
|
408
|
-
},
|
|
416
|
+
}, U(e.name), 9, pt)]))), 128))]), W(a) > 0 ? (B(), M("button", {
|
|
409
417
|
key: 0,
|
|
410
418
|
class: "td-widget-more",
|
|
411
419
|
type: "button",
|
|
412
420
|
onClick: o
|
|
413
|
-
},
|
|
421
|
+
}, U(t.value ? "show less" : `+${W(a)} more`), 1)) : j("", !0)], 64)) : (B(), M(O, { key: 1 }, [N("ul", mt, [(B(!0), M(O, null, H(s(W(n)), (e, t) => (B(), M("li", { key: t }, U(e), 1))), 128))]), W(a) > 0 ? (B(), M("button", {
|
|
414
422
|
key: 0,
|
|
415
423
|
class: "td-widget-more",
|
|
416
424
|
type: "button",
|
|
417
425
|
onClick: o
|
|
418
|
-
},
|
|
426
|
+
}, U(t.value ? "show less" : `+${W(a)} more`), 1)) : j("", !0)], 64));
|
|
419
427
|
}
|
|
420
|
-
}), [["__scopeId", "data-v-
|
|
428
|
+
}), [["__scopeId", "data-v-bfc073f9"]]), gt = [
|
|
421
429
|
{
|
|
422
430
|
fg: "#a0522d",
|
|
423
431
|
bg: "rgba(160, 82, 45, 0.1)"
|
|
@@ -451,60 +459,60 @@ var lt = ["href"], ut = { class: "td-widget-list" }, Z = 5, dt = /*#__PURE__*/ C
|
|
|
451
459
|
bg: "rgba(239, 68, 68, 0.1)"
|
|
452
460
|
}
|
|
453
461
|
];
|
|
454
|
-
function
|
|
455
|
-
let t =
|
|
462
|
+
function _t(e) {
|
|
463
|
+
let t = gt[vt(String(e ?? "")) % gt.length];
|
|
456
464
|
return {
|
|
457
465
|
color: t.fg,
|
|
458
466
|
background: t.bg
|
|
459
467
|
};
|
|
460
468
|
}
|
|
461
|
-
function
|
|
469
|
+
function vt(e) {
|
|
462
470
|
let t = 0;
|
|
463
471
|
for (let n = 0; n < e.length; n++) t = (t << 5) - t + e.charCodeAt(n) | 0;
|
|
464
472
|
return Math.abs(t);
|
|
465
473
|
}
|
|
466
474
|
//#endregion
|
|
467
475
|
//#region src/client/theme-default/components/TdFrontmatter/widgets/TdWidgetMultiSelect.vue?vue&type=script&setup=true&lang.ts
|
|
468
|
-
var
|
|
476
|
+
var yt = 5, bt = /*#__PURE__*/ S(/* @__PURE__ */ I({
|
|
469
477
|
__name: "TdWidgetMultiSelect",
|
|
470
478
|
props: { value: {} },
|
|
471
479
|
setup(e) {
|
|
472
|
-
let t =
|
|
480
|
+
let t = V(!1), n = Array.isArray(e.value) ? e.value : [], r = () => t.value ? n : n.slice(0, yt), i = Math.max(0, n.length - yt);
|
|
473
481
|
function a() {
|
|
474
482
|
t.value = !t.value;
|
|
475
483
|
}
|
|
476
|
-
return (e, n) => (
|
|
484
|
+
return (e, n) => (B(), M(O, null, [(B(!0), M(O, null, H(r(), (e, t) => (B(), M("span", {
|
|
477
485
|
key: t,
|
|
478
486
|
class: "td-widget-pill",
|
|
479
|
-
style:
|
|
480
|
-
},
|
|
487
|
+
style: R(W(_t)(e))
|
|
488
|
+
}, U(e), 5))), 128)), W(i) > 0 ? (B(), M("button", {
|
|
481
489
|
key: 0,
|
|
482
490
|
class: "td-widget-more",
|
|
483
491
|
type: "button",
|
|
484
492
|
onClick: a
|
|
485
|
-
},
|
|
493
|
+
}, U(t.value ? "show less" : `+${W(i)} more`), 1)) : j("", !0)], 64));
|
|
486
494
|
}
|
|
487
|
-
}), [["__scopeId", "data-v-33269637"]]),
|
|
495
|
+
}), [["__scopeId", "data-v-33269637"]]), xt = ["href"], St = { key: 1 }, Ct = /*#__PURE__*/ S(/* @__PURE__ */ I({
|
|
488
496
|
__name: "TdWidgetRelation",
|
|
489
497
|
props: { value: {} },
|
|
490
498
|
setup(e) {
|
|
491
|
-
let t =
|
|
492
|
-
return (n, r) =>
|
|
499
|
+
let t = dt(e.value);
|
|
500
|
+
return (n, r) => W(t) ? (B(), M("a", {
|
|
493
501
|
key: 0,
|
|
494
|
-
href:
|
|
502
|
+
href: W(t).url,
|
|
495
503
|
class: "td-widget-ref"
|
|
496
|
-
}, W(
|
|
504
|
+
}, U(W(t).name), 9, xt)) : (B(), M("span", St, U(e.value), 1));
|
|
497
505
|
}
|
|
498
|
-
}), [["__scopeId", "data-v-32528101"]]),
|
|
506
|
+
}), [["__scopeId", "data-v-32528101"]]), wt = /*#__PURE__*/ S(/* @__PURE__ */ I({
|
|
499
507
|
__name: "TdWidgetSelect",
|
|
500
508
|
props: { value: {} },
|
|
501
509
|
setup(e) {
|
|
502
|
-
return (t, n) => (
|
|
510
|
+
return (t, n) => (B(), M("span", {
|
|
503
511
|
class: "td-widget-pill",
|
|
504
|
-
style:
|
|
505
|
-
},
|
|
512
|
+
style: R(W(_t)(e.value))
|
|
513
|
+
}, U(e.value), 5));
|
|
506
514
|
}
|
|
507
|
-
}), [["__scopeId", "data-v-7dea5e20"]]),
|
|
515
|
+
}), [["__scopeId", "data-v-7dea5e20"]]), Tt = /* @__PURE__ */ I({
|
|
508
516
|
__name: "TdWidgetText",
|
|
509
517
|
props: {
|
|
510
518
|
definition: {},
|
|
@@ -514,95 +522,95 @@ var mt = 5, ht = /*#__PURE__*/ C(/* @__PURE__ */ L({
|
|
|
514
522
|
function t(t) {
|
|
515
523
|
return t == null ? "" : e.definition.widget === "date" ? l(String(t)) : String(t);
|
|
516
524
|
}
|
|
517
|
-
return (n, r) =>
|
|
525
|
+
return (n, r) => U(t(e.value));
|
|
518
526
|
}
|
|
519
|
-
}),
|
|
527
|
+
}), Et = {
|
|
520
528
|
key: 0,
|
|
521
529
|
class: "td-frontmatter-empty"
|
|
522
|
-
},
|
|
530
|
+
}, Dt = /*#__PURE__*/ S(/* @__PURE__ */ I({
|
|
523
531
|
__name: "TdFrontmatterValue",
|
|
524
532
|
props: {
|
|
525
533
|
definition: {},
|
|
526
534
|
value: {}
|
|
527
535
|
},
|
|
528
536
|
setup(e) {
|
|
529
|
-
return (t, n) => e.value === void 0 || e.value === null ? (
|
|
537
|
+
return (t, n) => e.value === void 0 || e.value === null ? (B(), M("span", Et, "Empty")) : e.definition.widget === "checkbox" ? (B(), A(ut, {
|
|
530
538
|
key: 1,
|
|
531
539
|
value: e.value
|
|
532
|
-
}, null, 8, ["value"])) : e.definition.widget === "select" ? (
|
|
540
|
+
}, null, 8, ["value"])) : e.definition.widget === "select" ? (B(), A(wt, {
|
|
533
541
|
key: 2,
|
|
534
542
|
value: e.value
|
|
535
|
-
}, null, 8, ["value"])) : e.definition.widget === "multiSelect" ? (
|
|
543
|
+
}, null, 8, ["value"])) : e.definition.widget === "multiSelect" ? (B(), A(bt, {
|
|
536
544
|
key: 3,
|
|
537
545
|
value: e.value
|
|
538
|
-
}, null, 8, ["value"])) : e.definition.widget === "relation" ? (
|
|
546
|
+
}, null, 8, ["value"])) : e.definition.widget === "relation" ? (B(), A(Ct, {
|
|
539
547
|
key: 4,
|
|
540
548
|
value: e.value
|
|
541
|
-
}, null, 8, ["value"])) : e.definition.widget === "list" ? (
|
|
549
|
+
}, null, 8, ["value"])) : e.definition.widget === "list" ? (B(), A(ht, {
|
|
542
550
|
key: 5,
|
|
543
551
|
definition: e.definition,
|
|
544
552
|
value: e.value
|
|
545
|
-
}, null, 8, ["definition", "value"])) : (
|
|
553
|
+
}, null, 8, ["definition", "value"])) : (B(), A(Tt, {
|
|
546
554
|
key: 6,
|
|
547
555
|
definition: e.definition,
|
|
548
556
|
value: e.value
|
|
549
557
|
}, null, 8, ["definition", "value"]));
|
|
550
558
|
}
|
|
551
|
-
}), [["__scopeId", "data-v-2d482376"]]),
|
|
559
|
+
}), [["__scopeId", "data-v-2d482376"]]), Ot = {
|
|
552
560
|
key: 0,
|
|
553
561
|
class: "td-frontmatter"
|
|
554
|
-
},
|
|
562
|
+
}, kt = { class: "td-frontmatter-label" }, At = { class: "td-frontmatter-value" }, jt = /*#__PURE__*/ S(/* @__PURE__ */ I({
|
|
555
563
|
__name: "TdFrontmatter",
|
|
556
564
|
props: {
|
|
557
565
|
schema: { default: () => void 0 },
|
|
558
566
|
frontmatter: {}
|
|
559
567
|
},
|
|
560
568
|
setup(e) {
|
|
561
|
-
let t =
|
|
569
|
+
let t = y(), n = k(() => {
|
|
562
570
|
if (e.schema) return t.schemas[e.schema];
|
|
563
|
-
}), r =
|
|
571
|
+
}), r = k(() => {
|
|
564
572
|
let e = n.value;
|
|
565
573
|
return e ? Object.entries(e).filter(([e]) => !e.startsWith("_")) : [];
|
|
566
574
|
});
|
|
567
|
-
return (t, n) => r.value.length > 0 ? (
|
|
575
|
+
return (t, n) => r.value.length > 0 ? (B(), M("div", Ot, [(B(!0), M(O, null, H(r.value, ([t, n]) => (B(), M("div", {
|
|
568
576
|
key: t,
|
|
569
577
|
class: "td-frontmatter-row"
|
|
570
|
-
}, [
|
|
578
|
+
}, [N("span", kt, U(W(d)(t)), 1), N("span", At, [F(Dt, {
|
|
571
579
|
definition: n,
|
|
572
580
|
value: e.frontmatter[t]
|
|
573
|
-
}, null, 8, ["definition", "value"])])]))), 128))])) :
|
|
581
|
+
}, null, 8, ["definition", "value"])])]))), 128))])) : j("", !0);
|
|
574
582
|
}
|
|
575
|
-
}), [["__scopeId", "data-v-
|
|
576
|
-
function
|
|
583
|
+
}), [["__scopeId", "data-v-593e9bc4"]]), Z = V(!1);
|
|
584
|
+
function Mt() {
|
|
577
585
|
function e() {
|
|
578
|
-
|
|
586
|
+
Z.value = !Z.value;
|
|
579
587
|
}
|
|
580
588
|
function t() {
|
|
581
|
-
|
|
589
|
+
Z.value = !1;
|
|
582
590
|
}
|
|
583
591
|
return {
|
|
584
|
-
isOpen:
|
|
592
|
+
isOpen: fe(Z),
|
|
585
593
|
toggle: e,
|
|
586
594
|
close: t
|
|
587
595
|
};
|
|
588
596
|
}
|
|
589
597
|
//#endregion
|
|
590
598
|
//#region src/client/theme-default/components/TdMenuButton.vue
|
|
591
|
-
var
|
|
599
|
+
var Nt = /* @__PURE__ */ I({
|
|
592
600
|
__name: "TdMenuButton",
|
|
593
601
|
setup(e) {
|
|
594
|
-
let { isOpen: t, toggle: n } =
|
|
595
|
-
return (e, r) => (
|
|
602
|
+
let { isOpen: t, toggle: n } = Mt();
|
|
603
|
+
return (e, r) => (B(), A(J, {
|
|
596
604
|
class: "td-menu-button w-9 h-9 text-td-neutral-fg-muted group",
|
|
597
|
-
label:
|
|
598
|
-
"aria-expanded":
|
|
599
|
-
onClick:
|
|
605
|
+
label: W(t) ? "Close menu" : "Open menu",
|
|
606
|
+
"aria-expanded": W(t),
|
|
607
|
+
onClick: W(n)
|
|
600
608
|
}, {
|
|
601
|
-
default:
|
|
609
|
+
default: K(() => [W(t) ? (B(), A(W(q), {
|
|
602
610
|
key: 0,
|
|
603
611
|
size: 20,
|
|
604
612
|
class: "group-hover:text-td-primary-solid transition-colors"
|
|
605
|
-
})) : (
|
|
613
|
+
})) : (B(), A(W(ke), {
|
|
606
614
|
key: 1,
|
|
607
615
|
size: 20,
|
|
608
616
|
class: "group-hover:text-td-primary-solid transition-colors"
|
|
@@ -614,16 +622,73 @@ var Ot = /* @__PURE__ */ L({
|
|
|
614
622
|
"onClick"
|
|
615
623
|
]));
|
|
616
624
|
}
|
|
617
|
-
})
|
|
625
|
+
});
|
|
626
|
+
//#endregion
|
|
627
|
+
//#region src/client/theme-default/composables/usePreviousNext.ts
|
|
628
|
+
function Pt() {
|
|
629
|
+
let e = y(), t = w(), n = k(() => It(e.contentTree)), r = k(() => n.value.findIndex((e) => e.url === t.path));
|
|
630
|
+
return {
|
|
631
|
+
previous: k(() => r.value < 1 ? void 0 : n.value[r.value - 1]),
|
|
632
|
+
next: k(() => r.value === -1 || n.value.length - 1 <= r.value ? void 0 : n.value[r.value + 1])
|
|
633
|
+
};
|
|
634
|
+
}
|
|
635
|
+
function Ft(e, n) {
|
|
636
|
+
let r = e.items.find((e) => i(e.filepath) === t);
|
|
637
|
+
r && n.push(Q(r));
|
|
638
|
+
for (let t of e.items) i(t.filepath) !== "index" && n.push(Q(t));
|
|
639
|
+
for (let t of e.children) Ft(t, n);
|
|
640
|
+
}
|
|
641
|
+
function It(e) {
|
|
642
|
+
let t = [];
|
|
643
|
+
for (let n of e.rootItems) t.push(Q(n));
|
|
644
|
+
for (let n of e.children) Ft(n, t);
|
|
645
|
+
return t;
|
|
646
|
+
}
|
|
647
|
+
function Q(e) {
|
|
648
|
+
return {
|
|
649
|
+
url: u(e.filepath),
|
|
650
|
+
title: c(e.header, e.filepath)
|
|
651
|
+
};
|
|
652
|
+
}
|
|
653
|
+
//#endregion
|
|
654
|
+
//#region src/client/theme-default/components/TdPreviousNext.vue?vue&type=script&setup=true&lang.ts
|
|
655
|
+
var Lt = {
|
|
656
|
+
key: 0,
|
|
657
|
+
class: "td-previous-next",
|
|
658
|
+
"aria-label": "Page navigation"
|
|
659
|
+
}, Rt = ["href"], zt = { class: "td-previous-next-content" }, Bt = { class: "td-previous-next-title" }, Vt = {
|
|
660
|
+
key: 1,
|
|
661
|
+
class: "td-previous-next-spacer"
|
|
662
|
+
}, Ht = ["href"], Ut = { class: "td-previous-next-content" }, Wt = { class: "td-previous-next-title" }, Gt = /*#__PURE__*/ S(/* @__PURE__ */ I({
|
|
663
|
+
__name: "TdPreviousNext",
|
|
664
|
+
setup(e) {
|
|
665
|
+
let { previous: t, next: n } = Pt();
|
|
666
|
+
return (e, r) => W(t) || W(n) ? (B(), M("nav", Lt, [W(t) ? (B(), M("a", {
|
|
667
|
+
key: 0,
|
|
668
|
+
href: W(t).url,
|
|
669
|
+
class: "td-previous-next-link is-previous"
|
|
670
|
+
}, [F(W(Te), {
|
|
671
|
+
size: 16,
|
|
672
|
+
class: "td-previous-next-icon"
|
|
673
|
+
}), N("span", zt, [r[0] ||= N("span", { class: "td-previous-next-label" }, "Previous", -1), N("span", Bt, U(W(t).title), 1)])], 8, Rt)) : (B(), M("span", Vt)), W(n) ? (B(), M("a", {
|
|
674
|
+
key: 2,
|
|
675
|
+
href: W(n).url,
|
|
676
|
+
class: "td-previous-next-link is-next"
|
|
677
|
+
}, [N("span", Ut, [r[1] ||= N("span", { class: "td-previous-next-label" }, "Next", -1), N("span", Wt, U(W(n).title), 1)]), F(W(we), {
|
|
678
|
+
size: 16,
|
|
679
|
+
class: "td-previous-next-icon"
|
|
680
|
+
})], 8, Ht)) : j("", !0)])) : j("", !0);
|
|
681
|
+
}
|
|
682
|
+
}), [["__scopeId", "data-v-b7a6aa16"]]), Kt = { class: "td-search" }, qt = { class: "td-search-input-wrap" }, Jt = {
|
|
618
683
|
key: 1,
|
|
619
684
|
class: "td-search-count"
|
|
620
|
-
},
|
|
685
|
+
}, Yt = {
|
|
621
686
|
key: 0,
|
|
622
687
|
class: "td-search-results"
|
|
623
|
-
},
|
|
688
|
+
}, Xt = { class: "td-search-group-label" }, Zt = ["href"], Qt = ["innerHTML"], $t = ["innerHTML"], en = {
|
|
624
689
|
key: 1,
|
|
625
690
|
class: "td-search-empty"
|
|
626
|
-
},
|
|
691
|
+
}, tn = 120, nn = /*#__PURE__*/ S(/* @__PURE__ */ I({
|
|
627
692
|
__name: "TdSearch",
|
|
628
693
|
props: {
|
|
629
694
|
active: {
|
|
@@ -634,9 +699,9 @@ var Ot = /* @__PURE__ */ L({
|
|
|
634
699
|
query: { default: "" },
|
|
635
700
|
queryModifiers: {}
|
|
636
701
|
},
|
|
637
|
-
emits: /*@__PURE__*/
|
|
702
|
+
emits: /*@__PURE__*/ se(["select"], ["update:active", "update:query"]),
|
|
638
703
|
setup(t, { emit: n }) {
|
|
639
|
-
let r =
|
|
704
|
+
let r = ge(t, "active"), i = ge(t, "query"), o = n, s = he([]), c = V(!1), l = V(-1), u = k(() => 0 < i.value.trim().length), p = k(() => {
|
|
640
705
|
let e = [], t = /* @__PURE__ */ new Map();
|
|
641
706
|
for (let n of s.value) {
|
|
642
707
|
let r = a(n.id), i = t.get(r);
|
|
@@ -648,101 +713,101 @@ var Ot = /* @__PURE__ */ L({
|
|
|
648
713
|
}
|
|
649
714
|
return e;
|
|
650
715
|
});
|
|
651
|
-
|
|
716
|
+
G(u, (e) => {
|
|
652
717
|
r.value = e;
|
|
653
718
|
});
|
|
654
|
-
let m =
|
|
655
|
-
|
|
719
|
+
let m = re(), h = ne(), v;
|
|
720
|
+
G(m, () => {
|
|
656
721
|
v = void 0;
|
|
657
722
|
});
|
|
658
|
-
function
|
|
723
|
+
function y() {
|
|
659
724
|
if (v) return v;
|
|
660
|
-
if (m.value) return v =
|
|
725
|
+
if (m.value) return v = oe(ee.loadJSON(m.value, {
|
|
661
726
|
fields: e,
|
|
662
727
|
storeFields: f
|
|
663
728
|
})), v;
|
|
664
729
|
}
|
|
665
|
-
let
|
|
666
|
-
|
|
730
|
+
let b = !1, x = xe((e) => P(e), 150);
|
|
731
|
+
G(i, (e, t, n) => {
|
|
667
732
|
n(() => {
|
|
668
|
-
|
|
669
|
-
}),
|
|
733
|
+
b = !0;
|
|
734
|
+
}), b = !1;
|
|
670
735
|
let r = e.trim();
|
|
671
736
|
if (!r) {
|
|
672
737
|
s.value = [], c.value = !1;
|
|
673
738
|
return;
|
|
674
739
|
}
|
|
675
|
-
c.value = !0, l.value = -1,
|
|
740
|
+
c.value = !0, l.value = -1, x(r);
|
|
676
741
|
});
|
|
677
|
-
function
|
|
742
|
+
function S() {
|
|
678
743
|
i.value = "";
|
|
679
744
|
}
|
|
680
|
-
function
|
|
681
|
-
let n = RegExp(`id="${
|
|
745
|
+
function C(e, t) {
|
|
746
|
+
let n = RegExp(`id="${Se(t)}"[^>]*>`, "i").exec(e);
|
|
682
747
|
if (!n) return _(e);
|
|
683
748
|
let r = e.slice(n.index + n[0].length), i = r.search(/<h[1-6]/i);
|
|
684
749
|
return _(0 <= i ? r.slice(0, i) : r);
|
|
685
750
|
}
|
|
686
|
-
function
|
|
751
|
+
function te(e, t) {
|
|
687
752
|
if (!e) return "";
|
|
688
753
|
let n = Object.keys(t);
|
|
689
|
-
if (n.length === 0) return e.slice(0,
|
|
754
|
+
if (n.length === 0) return e.slice(0, tn);
|
|
690
755
|
let r = e.toLowerCase(), i = e.length;
|
|
691
756
|
for (let e of n) {
|
|
692
757
|
let t = r.indexOf(e.toLowerCase());
|
|
693
758
|
t !== -1 && t < i && (i = t);
|
|
694
759
|
}
|
|
695
|
-
let a = Math.max(0, i - 30), o = Math.min(e.length, a +
|
|
760
|
+
let a = Math.max(0, i - 30), o = Math.min(e.length, a + tn), s = e.slice(a, o).trim();
|
|
696
761
|
return 0 < a && (s = "..." + s), o < e.length && (s += "..."), s;
|
|
697
762
|
}
|
|
698
|
-
async function
|
|
763
|
+
async function w(e, t, n) {
|
|
699
764
|
let r = a(t), i = t.indexOf("#"), o = 0 <= i ? t.slice(i + 1) : "";
|
|
700
765
|
try {
|
|
701
766
|
let t = (await e(r))?.default, i = (typeof t?.data == "function" ? t.data() : {}).__html ?? "";
|
|
702
|
-
return
|
|
767
|
+
return te(o ? C(i, o) : _(i), n);
|
|
703
768
|
} catch {
|
|
704
769
|
return "";
|
|
705
770
|
}
|
|
706
771
|
}
|
|
707
|
-
let
|
|
772
|
+
let T = k(() => p.value.flatMap((e) => e.results)), E = k(() => {
|
|
708
773
|
let e = /* @__PURE__ */ new Map();
|
|
709
|
-
for (let t = 0; t <
|
|
774
|
+
for (let t = 0; t < T.value.length; t++) e.set(T.value[t].id, t);
|
|
710
775
|
return e;
|
|
711
776
|
});
|
|
712
|
-
function
|
|
777
|
+
function D(e, t) {
|
|
713
778
|
if (!e || !t) return g(e);
|
|
714
779
|
let n = t.trim().split(/\s+/).filter(Boolean), r = g(e);
|
|
715
780
|
for (let e of n) {
|
|
716
|
-
let t = RegExp(`(${
|
|
781
|
+
let t = RegExp(`(${Se(e)})`, "gi");
|
|
717
782
|
r = r.replace(t, "<mark>$1</mark>");
|
|
718
783
|
}
|
|
719
784
|
return r;
|
|
720
785
|
}
|
|
721
|
-
function
|
|
722
|
-
let t =
|
|
786
|
+
function ie(e) {
|
|
787
|
+
let t = E.value.size;
|
|
723
788
|
if (t !== 0) {
|
|
724
789
|
if (e.key === "ArrowDown") e.preventDefault(), l.value = (l.value + 1) % t;
|
|
725
790
|
else if (e.key === "ArrowUp") e.preventDefault(), l.value = (l.value - 1 + t) % t;
|
|
726
791
|
else if (e.key === "Enter" && 0 <= l.value) {
|
|
727
792
|
e.preventDefault();
|
|
728
|
-
let t =
|
|
793
|
+
let t = T.value[l.value];
|
|
729
794
|
if (!t) return;
|
|
730
795
|
document.querySelector(`.td-search-result[href="${CSS.escape(t.id)}"]`)?.click();
|
|
731
796
|
}
|
|
732
797
|
}
|
|
733
798
|
}
|
|
734
|
-
function
|
|
799
|
+
function ae() {
|
|
735
800
|
o("select");
|
|
736
801
|
}
|
|
737
|
-
async function
|
|
738
|
-
let t =
|
|
802
|
+
async function P(e) {
|
|
803
|
+
let t = y();
|
|
739
804
|
if (t) try {
|
|
740
805
|
let n = t.search(e, {
|
|
741
806
|
prefix: !0,
|
|
742
807
|
fuzzy: .2,
|
|
743
808
|
boost: { title: 2 }
|
|
744
809
|
}), r = await Promise.all(n.slice(0, 20).map(async (e) => {
|
|
745
|
-
let t = h ? await
|
|
810
|
+
let t = h ? await w(h, e.id, e.match) : "";
|
|
746
811
|
return {
|
|
747
812
|
id: e.id,
|
|
748
813
|
title: e.title,
|
|
@@ -751,72 +816,72 @@ var Ot = /* @__PURE__ */ L({
|
|
|
751
816
|
score: e.score
|
|
752
817
|
};
|
|
753
818
|
}));
|
|
754
|
-
if (
|
|
819
|
+
if (b) return;
|
|
755
820
|
s.value = r;
|
|
756
821
|
} finally {
|
|
757
|
-
|
|
822
|
+
b || (c.value = !1);
|
|
758
823
|
}
|
|
759
824
|
}
|
|
760
|
-
return (e, t) => (
|
|
761
|
-
|
|
762
|
-
|
|
825
|
+
return (e, t) => (B(), M("div", Kt, [
|
|
826
|
+
N("div", qt, [
|
|
827
|
+
F(W(je), {
|
|
763
828
|
size: 14,
|
|
764
829
|
class: "td-search-icon"
|
|
765
830
|
}),
|
|
766
|
-
|
|
831
|
+
ye(N("input", {
|
|
767
832
|
"onUpdate:modelValue": t[0] ||= (e) => i.value = e,
|
|
768
833
|
class: "td-search-input",
|
|
769
834
|
type: "text",
|
|
770
835
|
size: "1",
|
|
771
836
|
placeholder: "Search...",
|
|
772
|
-
onKeydown:
|
|
773
|
-
}, null, 544), [[
|
|
774
|
-
c.value ? (
|
|
837
|
+
onKeydown: ie
|
|
838
|
+
}, null, 544), [[ve, i.value]]),
|
|
839
|
+
c.value ? (B(), A(W(Oe), {
|
|
775
840
|
key: 0,
|
|
776
841
|
size: 12,
|
|
777
842
|
class: "td-search-spinner"
|
|
778
|
-
})) : u.value ? (
|
|
779
|
-
i.value ? (
|
|
843
|
+
})) : u.value ? (B(), M("span", Jt, U(s.value.length), 1)) : j("", !0),
|
|
844
|
+
i.value ? (B(), M("button", {
|
|
780
845
|
key: 2,
|
|
781
846
|
class: "td-search-clear",
|
|
782
847
|
type: "button",
|
|
783
848
|
"aria-label": "Clear search",
|
|
784
|
-
onClick:
|
|
785
|
-
}, [
|
|
849
|
+
onClick: S
|
|
850
|
+
}, [F(W(q), { size: 12 })])) : j("", !0)
|
|
786
851
|
]),
|
|
787
|
-
u.value && s.value.length > 0 ? (
|
|
852
|
+
u.value && s.value.length > 0 ? (B(), M("div", Yt, [(B(!0), M(O, null, H(p.value, (e) => (B(), M("div", {
|
|
788
853
|
key: e.pageUrl,
|
|
789
854
|
class: "td-search-group"
|
|
790
|
-
}, [
|
|
855
|
+
}, [N("div", Xt, U(e.pageTitle), 1), (B(!0), M(O, null, H(e.results, (e) => (B(), M("a", {
|
|
791
856
|
key: e.id,
|
|
792
857
|
href: e.id,
|
|
793
|
-
class:
|
|
794
|
-
onClick:
|
|
795
|
-
}, [
|
|
858
|
+
class: L(["td-search-result", { "is-selected": E.value.get(e.id) === l.value }]),
|
|
859
|
+
onClick: ae
|
|
860
|
+
}, [N("span", {
|
|
796
861
|
class: "td-search-result-title",
|
|
797
|
-
innerHTML:
|
|
798
|
-
}, null, 8,
|
|
862
|
+
innerHTML: D(e.title, i.value)
|
|
863
|
+
}, null, 8, Qt), e.excerpt ? (B(), M("span", {
|
|
799
864
|
key: 0,
|
|
800
865
|
class: "td-search-result-excerpt",
|
|
801
|
-
innerHTML:
|
|
802
|
-
}, null, 8,
|
|
803
|
-
u.value && s.value.length === 0 ? (
|
|
866
|
+
innerHTML: D(e.excerpt, i.value)
|
|
867
|
+
}, null, 8, $t)) : j("", !0)], 10, Zt))), 128))]))), 128))])) : j("", !0),
|
|
868
|
+
u.value && s.value.length === 0 ? (B(), M("div", en, " No results for \"" + U(i.value) + "\" ", 1)) : j("", !0)
|
|
804
869
|
]));
|
|
805
870
|
}
|
|
806
|
-
}), [["__scopeId", "data-v-dc5caa87"]]),
|
|
871
|
+
}), [["__scopeId", "data-v-dc5caa87"]]), rn = /* @__PURE__ */ I({
|
|
807
872
|
__name: "TdThemeToggle",
|
|
808
873
|
setup(e) {
|
|
809
|
-
let { isDark: t, toggle: n } =
|
|
810
|
-
return (e, r) => (
|
|
874
|
+
let { isDark: t, toggle: n } = ie();
|
|
875
|
+
return (e, r) => (B(), A(J, {
|
|
811
876
|
class: "w-9 h-9 text-td-neutral-fg-muted group hover:opacity-70",
|
|
812
|
-
label:
|
|
813
|
-
onClick:
|
|
877
|
+
label: W(t) ? "Switch to light mode" : "Switch to dark mode",
|
|
878
|
+
onClick: W(n)
|
|
814
879
|
}, {
|
|
815
|
-
default:
|
|
880
|
+
default: K(() => [W(t) ? (B(), A(W(Pe), {
|
|
816
881
|
key: 0,
|
|
817
882
|
size: 18,
|
|
818
883
|
class: "group-hover:text-td-primary-solid transition-colors"
|
|
819
|
-
})) : (
|
|
884
|
+
})) : (B(), A(W(Ae), {
|
|
820
885
|
key: 1,
|
|
821
886
|
size: 18,
|
|
822
887
|
class: "group-hover:text-td-primary-solid transition-colors"
|
|
@@ -827,7 +892,7 @@ var Ot = /* @__PURE__ */ L({
|
|
|
827
892
|
});
|
|
828
893
|
//#endregion
|
|
829
894
|
//#region src/client/theme-default/composables/useCopyCode.ts
|
|
830
|
-
function
|
|
895
|
+
function an() {
|
|
831
896
|
function e(e) {
|
|
832
897
|
let t = e.target?.closest(".copy");
|
|
833
898
|
if (!t) return;
|
|
@@ -839,19 +904,19 @@ function Vt() {
|
|
|
839
904
|
t.classList.remove("copied"), t.setAttribute("title", i);
|
|
840
905
|
}, 2e3);
|
|
841
906
|
}
|
|
842
|
-
|
|
907
|
+
de(() => {
|
|
843
908
|
document.addEventListener("click", e);
|
|
844
|
-
}),
|
|
909
|
+
}), z(() => {
|
|
845
910
|
document.removeEventListener("click", e);
|
|
846
911
|
});
|
|
847
912
|
}
|
|
848
913
|
//#endregion
|
|
849
914
|
//#region src/client/theme-default/composables/useResizableTable.ts
|
|
850
|
-
var
|
|
851
|
-
function
|
|
915
|
+
var on = 6, sn = 40;
|
|
916
|
+
function cn() {
|
|
852
917
|
let e, t = !1;
|
|
853
918
|
function n(e, t) {
|
|
854
|
-
return e.getBoundingClientRect().right - t <
|
|
919
|
+
return e.getBoundingClientRect().right - t < on;
|
|
855
920
|
}
|
|
856
921
|
function r(r) {
|
|
857
922
|
if (t) return;
|
|
@@ -871,23 +936,23 @@ function Wt() {
|
|
|
871
936
|
r.classList.add("is-resizing"), document.body.style.cursor = "col-resize";
|
|
872
937
|
function o(e) {
|
|
873
938
|
let t = e.clientX - i;
|
|
874
|
-
r && (r.style.width = `${Math.max(
|
|
939
|
+
r && (r.style.width = `${Math.max(sn, a + t)}px`);
|
|
875
940
|
}
|
|
876
941
|
function s() {
|
|
877
942
|
t = !1, r?.classList.remove("is-resizing"), document.body.style.cursor = "", document.removeEventListener("pointermove", o), document.removeEventListener("pointerup", s);
|
|
878
943
|
}
|
|
879
944
|
document.addEventListener("pointermove", o), document.addEventListener("pointerup", s);
|
|
880
945
|
}
|
|
881
|
-
|
|
946
|
+
de(() => {
|
|
882
947
|
document.addEventListener("pointermove", r), document.addEventListener("pointerdown", i);
|
|
883
|
-
}),
|
|
948
|
+
}), z(() => {
|
|
884
949
|
document.removeEventListener("pointermove", r), document.removeEventListener("pointerdown", i);
|
|
885
950
|
});
|
|
886
951
|
}
|
|
887
952
|
//#endregion
|
|
888
953
|
//#region src/client/theme-default/composables/useActiveTocHeading.ts
|
|
889
|
-
function
|
|
890
|
-
let t =
|
|
954
|
+
function ln(e) {
|
|
955
|
+
let t = V(""), n;
|
|
891
956
|
function r() {
|
|
892
957
|
n?.disconnect(), t.value = "";
|
|
893
958
|
let e = Array.from(document.querySelectorAll(".td-content h2[id], .td-content h3[id], .td-content h4[id], .td-content h5[id]"));
|
|
@@ -909,139 +974,140 @@ function Gt(e) {
|
|
|
909
974
|
for (let t of e) n.observe(t);
|
|
910
975
|
}
|
|
911
976
|
}
|
|
912
|
-
return
|
|
977
|
+
return G(e, () => le(r), { immediate: !0 }), z(() => {
|
|
913
978
|
n?.disconnect();
|
|
914
979
|
}), t;
|
|
915
980
|
}
|
|
916
981
|
//#endregion
|
|
917
982
|
//#region src/client/theme-default/components/TdToc.vue?vue&type=script&setup=true&lang.ts
|
|
918
|
-
var
|
|
983
|
+
var un = {
|
|
919
984
|
key: 0,
|
|
920
985
|
class: "td-toc"
|
|
921
|
-
},
|
|
986
|
+
}, dn = { class: "td-toc-list" }, fn = ["href"], pn = /*#__PURE__*/ S(/* @__PURE__ */ I({
|
|
922
987
|
__name: "TdToc",
|
|
923
988
|
props: { headings: {} },
|
|
924
989
|
setup(e) {
|
|
925
|
-
let t =
|
|
926
|
-
return (n, r) => e.headings.length ? (
|
|
990
|
+
let t = ln(() => e.headings);
|
|
991
|
+
return (n, r) => e.headings.length ? (B(), M("div", un, [r[0] ||= N("div", { class: "td-toc-label" }, " On this page ", -1), N("ul", dn, [(B(!0), M(O, null, H(e.headings, (e) => (B(), M("li", {
|
|
927
992
|
key: e.slug,
|
|
928
|
-
class:
|
|
993
|
+
class: L({
|
|
929
994
|
"td-toc-indent-1": e.level === 3,
|
|
930
995
|
"td-toc-indent-2": e.level === 4,
|
|
931
996
|
"td-toc-indent-3": e.level === 5
|
|
932
997
|
})
|
|
933
|
-
}, [
|
|
998
|
+
}, [N("a", {
|
|
934
999
|
href: e.link,
|
|
935
|
-
class:
|
|
936
|
-
},
|
|
1000
|
+
class: L(["td-toc-link", { "is-active": W(t) === e.slug }])
|
|
1001
|
+
}, U(e.title), 11, fn)], 2))), 128))])])) : j("", !0);
|
|
937
1002
|
}
|
|
938
|
-
}), [["__scopeId", "data-v-84e4402d"]]),
|
|
939
|
-
href: "/",
|
|
1003
|
+
}), [["__scopeId", "data-v-84e4402d"]]), mn = { class: "td-header" }, hn = { class: "td-header-left" }, gn = {
|
|
1004
|
+
href: "/index",
|
|
940
1005
|
class: "td-brand"
|
|
941
|
-
},
|
|
942
|
-
href: "/",
|
|
1006
|
+
}, _n = { class: "td-brand-name" }, vn = { class: "td-header-right" }, yn = { class: "td-menu-header" }, bn = { class: "td-header-left" }, xn = {
|
|
1007
|
+
href: "/index",
|
|
943
1008
|
class: "td-brand"
|
|
944
|
-
},
|
|
1009
|
+
}, Sn = { class: "td-brand-name" }, Cn = {
|
|
945
1010
|
key: 0,
|
|
946
1011
|
class: "pt-4",
|
|
947
1012
|
"aria-label": "Site navigation"
|
|
948
|
-
},
|
|
1013
|
+
}, wn = { class: "td-page" }, Tn = { class: "td-main-and-toc" }, En = { class: "td-main" }, Dn = { class: "td-content" }, On = {
|
|
949
1014
|
key: 0,
|
|
950
1015
|
class: "td-page-title"
|
|
951
|
-
},
|
|
1016
|
+
}, kn = {
|
|
952
1017
|
key: 1,
|
|
953
1018
|
class: "td-page-meta"
|
|
954
|
-
},
|
|
1019
|
+
}, An = { key: 0 }, jn = {
|
|
955
1020
|
class: "td-sidebar-right",
|
|
956
1021
|
"aria-label": "Table of contents"
|
|
957
|
-
},
|
|
1022
|
+
}, Mn = 200, Nn = 500, Pn = 272, Fn = "td-sidebar-width", In = /*#__PURE__*/ S(/* @__PURE__ */ I({
|
|
958
1023
|
__name: "TdLayout",
|
|
959
1024
|
setup(e) {
|
|
960
|
-
let { title: t, page: n } =
|
|
961
|
-
|
|
962
|
-
let f =
|
|
1025
|
+
let { title: t, page: n } = E(), r = te(), i = y(), { isOpen: a, close: s } = Mt(), c = V(""), l = V(!1), u = V(!1), d = w();
|
|
1026
|
+
G(() => d.path, () => s()), an(), cn();
|
|
1027
|
+
let f = V(typeof localStorage < "u" && Number(localStorage.getItem(Fn)) || Pn);
|
|
963
1028
|
function p(e) {
|
|
964
1029
|
let t = e.clientX, n = f.value, r = e.currentTarget;
|
|
965
1030
|
r.setPointerCapture(e.pointerId);
|
|
966
1031
|
function i(e) {
|
|
967
|
-
let r = Math.min(
|
|
1032
|
+
let r = Math.min(Nn, Math.max(Mn, n + e.clientX - t));
|
|
968
1033
|
f.value = r;
|
|
969
1034
|
}
|
|
970
1035
|
function a() {
|
|
971
|
-
document.body.style.cursor = "", r.removeEventListener("pointermove", i), r.removeEventListener("pointerup", a), localStorage.setItem(
|
|
1036
|
+
document.body.style.cursor = "", r.removeEventListener("pointermove", i), r.removeEventListener("pointerup", a), localStorage.setItem(Fn, String(f.value));
|
|
972
1037
|
}
|
|
973
1038
|
document.body.style.cursor = "col-resize", r.addEventListener("pointermove", i), r.addEventListener("pointerup", a);
|
|
974
1039
|
}
|
|
975
|
-
return (e, d) => (
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
1040
|
+
return (e, d) => (B(), M("div", null, [
|
|
1041
|
+
N("header", mn, [N("div", hn, [F(Nt), N("a", gn, [F(ze), N("span", _n, U(W(r).title || "Typedown"), 1)])]), N("div", vn, [F(rn)])]),
|
|
1042
|
+
N("div", { class: L(["td-menu-overlay", { "is-open": W(a) }]) }, [
|
|
1043
|
+
N("header", yn, [N("div", bn, [F(J, {
|
|
979
1044
|
class: "w-9 h-9 text-td-neutral-fg-muted hover:text-td-primary-solid",
|
|
980
1045
|
label: "Close menu",
|
|
981
|
-
onClick:
|
|
1046
|
+
onClick: W(s)
|
|
982
1047
|
}, {
|
|
983
|
-
default:
|
|
1048
|
+
default: K(() => [F(W(q), { size: 20 })]),
|
|
984
1049
|
_: 1
|
|
985
|
-
}, 8, ["onClick"]),
|
|
986
|
-
|
|
1050
|
+
}, 8, ["onClick"]), N("a", xn, [F(ze), N("span", Sn, U(W(r).title || "Typedown"), 1)])])]),
|
|
1051
|
+
F(nn, {
|
|
987
1052
|
query: c.value,
|
|
988
1053
|
"onUpdate:query": d[0] ||= (e) => c.value = e,
|
|
989
1054
|
active: u.value,
|
|
990
1055
|
"onUpdate:active": d[1] ||= (e) => u.value = e,
|
|
991
|
-
onSelect:
|
|
1056
|
+
onSelect: W(s)
|
|
992
1057
|
}, null, 8, [
|
|
993
1058
|
"query",
|
|
994
1059
|
"active",
|
|
995
1060
|
"onSelect"
|
|
996
1061
|
]),
|
|
997
|
-
u.value ?
|
|
1062
|
+
u.value ? j("", !0) : (B(), M("nav", Cn, [F(rt, { tree: W(i).contentTree }, null, 8, ["tree"])]))
|
|
998
1063
|
], 2),
|
|
999
|
-
|
|
1064
|
+
N("div", wn, [N("nav", {
|
|
1000
1065
|
class: "td-sidebar-left",
|
|
1001
1066
|
"aria-label": "Site navigation",
|
|
1002
|
-
style:
|
|
1067
|
+
style: R({ width: `${f.value}px` })
|
|
1003
1068
|
}, [
|
|
1004
|
-
|
|
1069
|
+
F(nn, {
|
|
1005
1070
|
query: c.value,
|
|
1006
1071
|
"onUpdate:query": d[2] ||= (e) => c.value = e,
|
|
1007
1072
|
active: l.value,
|
|
1008
1073
|
"onUpdate:active": d[3] ||= (e) => l.value = e
|
|
1009
1074
|
}, null, 8, ["query", "active"]),
|
|
1010
|
-
l.value ?
|
|
1075
|
+
l.value ? j("", !0) : (B(), A(rt, {
|
|
1011
1076
|
key: 0,
|
|
1012
|
-
tree:
|
|
1077
|
+
tree: W(i).contentTree
|
|
1013
1078
|
}, null, 8, ["tree"])),
|
|
1014
|
-
|
|
1079
|
+
N("div", {
|
|
1015
1080
|
class: "td-sidebar-resize",
|
|
1016
|
-
onPointerdown:
|
|
1081
|
+
onPointerdown: be(p, ["prevent"])
|
|
1017
1082
|
}, null, 32)
|
|
1018
|
-
], 4),
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
schema:
|
|
1024
|
-
frontmatter:
|
|
1083
|
+
], 4), N("div", Tn, [N("main", En, [N("article", Dn, [
|
|
1084
|
+
F(ct),
|
|
1085
|
+
W(t) ? (B(), M("h1", On, U(W(t)), 1)) : j("", !0),
|
|
1086
|
+
W(n).metadata ? (B(), M("div", kn, [N("span", null, U(W(o)(W(n).metadata.mtime, "Modified")), 1), W(n).metadata.ctime === W(n).metadata.mtime ? j("", !0) : (B(), M("span", An, " · " + U(W(o)(W(n).metadata.ctime, "Created")), 1))])) : j("", !0),
|
|
1087
|
+
F(W(jt), {
|
|
1088
|
+
schema: W(n).schema,
|
|
1089
|
+
frontmatter: W(n).frontmatter
|
|
1025
1090
|
}, null, 8, ["schema", "frontmatter"]),
|
|
1026
|
-
|
|
1027
|
-
|
|
1091
|
+
F(W(b)),
|
|
1092
|
+
F(Gt)
|
|
1093
|
+
])]), N("nav", jn, [F(pn, { headings: W(n).headings }, null, 8, ["headings"])])])])
|
|
1028
1094
|
]));
|
|
1029
1095
|
}
|
|
1030
|
-
}), [["__scopeId", "data-v-
|
|
1031
|
-
function
|
|
1032
|
-
return
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1096
|
+
}), [["__scopeId", "data-v-9320a939"]]), Ln = {}, Rn = { class: "pt-16 pb-24" };
|
|
1097
|
+
function zn(e, t) {
|
|
1098
|
+
return B(), M("div", Rn, [...t[0] ||= [
|
|
1099
|
+
N("p", { class: "text-td-display font-td-heading leading-none tracking-td-title text-td-fg-muted" }, " 404 ", -1),
|
|
1100
|
+
N("h1", { class: "text-td-h2 font-td-heading leading-td-heading tracking-td-heading mt-4" }, " Page Not Found ", -1),
|
|
1101
|
+
N("p", { class: "text-td-fg-muted mt-2 text-td-body leading-td-body" }, " The page you are looking for does not exist. ", -1),
|
|
1102
|
+
N("a", {
|
|
1037
1103
|
class: "inline-flex items-center mt-6 text-td-primary-solid text-td-ui font-td-heading tracking-td-heading hover:text-td-primary-solid-hover",
|
|
1038
|
-
href: "/"
|
|
1104
|
+
href: "/index"
|
|
1039
1105
|
}, "Go Home", -1)
|
|
1040
1106
|
]]);
|
|
1041
1107
|
}
|
|
1042
|
-
var
|
|
1043
|
-
Layout:
|
|
1044
|
-
NotFound:
|
|
1108
|
+
var $ = /*#__PURE__*/ S(Ln, [["render", zn]]), Bn = {
|
|
1109
|
+
Layout: In,
|
|
1110
|
+
NotFound: $
|
|
1045
1111
|
};
|
|
1046
1112
|
//#endregion
|
|
1047
|
-
export {
|
|
1113
|
+
export { x as TdDirectoryIndex, In as TdLayout, $ as TdNotFound, Bn as default, an as useCopyCode };
|