typerighter 0.40.2 → 0.40.4
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-GI_8rzn8.js → app-C8QUAQm4.js} +28 -28
- package/dist/{cli-CNSEVT0i.js → cli-CWEPACEO.js} +5 -5
- package/dist/cli.js +1 -1
- package/dist/client/theme-default.js +234 -234
- package/dist/client.js +1 -1
- package/dist/index.js +2 -2
- package/dist/{init-BplW2rUB.js → init-CSR5_9ci.js} +1 -1
- package/dist/{jsonld-Dxk0xvAr.js → jsonld-CjCAKIGY.js} +1 -1
- package/dist/node/plugin/vite/index.d.ts.map +1 -1
- package/dist/node/plugin/vite/virtual/site-data.d.ts +1 -1
- package/dist/node/plugin/vite/virtual/site-data.d.ts.map +1 -1
- package/dist/prerenderWorker.js +2 -2
- package/dist/shared/utils/debounce.d.ts +1 -0
- package/dist/shared/utils/debounce.d.ts.map +1 -1
- package/dist/{shared-LPNgvigl.js → shared-D_kuT4zK.js} +25 -16
- package/dist/shared.js +2 -2
- package/dist/typerighter.css +1 -1
- package/dist/{vite-D6x3T--t.js → vite-SLq36-Ev.js} +324 -324
- package/dist/vite.js +1 -1
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as e, C as t, E as n, F as r, I as i, L as a, N as o, O as s, W as c, X as l, Y as u, _ as d, a as f, b as p, c as m, f as h, k as g, l as _, n as v, p as y, r as b, s as x, v as S, w as C, y as w } from "../shared-D_kuT4zK.js";
|
|
2
2
|
import { t as T } from "../temml-DZbhOfRE.js";
|
|
3
3
|
import { t as ee } from "../es-ClqUVRJn.js";
|
|
4
|
-
import { A as te, C as ne, D as E, E as re, F as ie, I as D, M as ae, N as oe, O as se, P as ce, S as le, T as ue, _ as de, a as fe, b as pe, c as O, d as k, f as me, g as he, h as ge, i as _e, j as ve, k as ye, m as A, n as be, o as xe, p as Se, r as j, s as Ce, u as we, v as Te, w as Ee, x as De, y as Oe } from "../app-
|
|
4
|
+
import { A as te, C as ne, D as E, E as re, F as ie, I as D, M as ae, N as oe, O as se, P as ce, S as le, T as ue, _ as de, a as fe, b as pe, c as O, d as k, f as me, g as he, h as ge, i as _e, j as ve, k as ye, m as A, n as be, o as xe, p as Se, r as j, s as Ce, u as we, v as Te, w as Ee, x as De, y as Oe } from "../app-C8QUAQm4.js";
|
|
5
5
|
import { a as ke, i as Ae, n as je, t as Me } from "../brand-CG1fQshq.js";
|
|
6
6
|
import { Fragment as M, Teleport as Ne, computed as N, createBlock as P, createCommentVNode as F, createElementBlock as I, createElementVNode as L, createTextVNode as R, createVNode as z, defineComponent as B, getCurrentScope as Pe, markRaw as Fe, mergeModels as Ie, mergeProps as Le, nextTick as Re, normalizeClass as V, normalizeStyle as ze, onBeforeUnmount as Be, onMounted as Ve, onScopeDispose as He, onUnmounted as Ue, openBlock as H, readonly as We, ref as U, renderList as W, renderSlot as Ge, resolveComponent as Ke, resolveDynamicComponent as G, shallowReadonly as qe, shallowRef as Je, toDisplayString as K, toValue as Ye, unref as q, useModel as Xe, useTemplateRef as Ze, vModelText as Qe, watch as J, watchEffect as $e, withCtx as et, withDirectives as tt, withKeys as nt, withModifiers as rt } from "vue";
|
|
7
7
|
var it = D({
|
|
@@ -1045,32 +1045,32 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
|
1045
1045
|
node: {},
|
|
1046
1046
|
urlPrefix: { default: "" }
|
|
1047
1047
|
},
|
|
1048
|
-
setup(
|
|
1049
|
-
let
|
|
1048
|
+
setup(e) {
|
|
1049
|
+
let r = O(), { withBase: i } = j(), a = N(() => t(e.urlPrefix, e.node.name)), o = N(() => d(e.node)), s = N(() => o.value ? n(o.value.filepath) : C(a.value)), l = N(() => i(s.value)), u = N(() => o.value?.label ?? c(e.node.name)), m = N(() => o.value?.icon ? k(o.value.icon.name) : void 0), h = N(() => e.node.entries.filter((e) => e.kind === "dir" || !p(e.item.filepath))), _ = N(() => 0 < e.node.entries.length), v = N(() => y(e.node));
|
|
1050
1050
|
function y(e) {
|
|
1051
1051
|
let t = 0;
|
|
1052
1052
|
for (let n of e.entries) n.kind === "file" ? t++ : t += y(n.node);
|
|
1053
1053
|
return t;
|
|
1054
1054
|
}
|
|
1055
|
-
let b = U(!
|
|
1055
|
+
let b = U(!g(a.value, r.path)), x = U(!1), S = N(() => h.value.filter((e) => e.kind === "file").length), T = N(() => x.value ? 0 : Math.max(0, S.value - xr)), ee = N(() => {
|
|
1056
1056
|
if (x.value) return h.value;
|
|
1057
1057
|
let e = 0;
|
|
1058
1058
|
return h.value.filter((t) => t.kind === "dir" || ++e <= xr);
|
|
1059
1059
|
});
|
|
1060
|
-
J(() =>
|
|
1061
|
-
|
|
1060
|
+
J(() => r.path, (e) => {
|
|
1061
|
+
g(a.value, e) && (b.value = !1);
|
|
1062
1062
|
});
|
|
1063
1063
|
function ne() {
|
|
1064
1064
|
x.value = !0;
|
|
1065
1065
|
}
|
|
1066
1066
|
function E(e) {
|
|
1067
|
-
return
|
|
1067
|
+
return r.path === e;
|
|
1068
1068
|
}
|
|
1069
1069
|
function re() {
|
|
1070
1070
|
b.value = !b.value;
|
|
1071
1071
|
}
|
|
1072
1072
|
return (e, t) => {
|
|
1073
|
-
let
|
|
1073
|
+
let r = Ke("TdTreeNode", !0);
|
|
1074
1074
|
return _.value ? (H(), I("div", fr, [L("div", pr, [
|
|
1075
1075
|
L("button", {
|
|
1076
1076
|
type: "button",
|
|
@@ -1080,9 +1080,9 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
|
1080
1080
|
}, [z(q(te), {
|
|
1081
1081
|
size: 14,
|
|
1082
1082
|
class: V(["td-tree-caret", { "is-collapsed": b.value }])
|
|
1083
|
-
}, null, 8, ["class"]), L("span", hr, K(
|
|
1083
|
+
}, null, 8, ["class"]), L("span", hr, K(u.value), 1)], 8, mr),
|
|
1084
1084
|
L("a", {
|
|
1085
|
-
href:
|
|
1085
|
+
href: l.value,
|
|
1086
1086
|
class: V(["td-tree-index-btn", { "is-active": E(s.value) }])
|
|
1087
1087
|
}, [m.value ? (H(), P(G(m.value), {
|
|
1088
1088
|
key: 0,
|
|
@@ -1095,14 +1095,14 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
|
1095
1095
|
size: 12
|
|
1096
1096
|
}))], 10, gr),
|
|
1097
1097
|
L("span", _r, K(v.value), 1)
|
|
1098
|
-
]), L("div", { class: V(["td-collapse td-tree-children", { "is-collapsed": b.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(
|
|
1098
|
+
]), L("div", { class: V(["td-collapse td-tree-children", { "is-collapsed": b.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(r, {
|
|
1099
1099
|
key: 0,
|
|
1100
1100
|
node: e.node,
|
|
1101
|
-
"url-prefix":
|
|
1101
|
+
"url-prefix": a.value
|
|
1102
1102
|
}, null, 8, ["node", "url-prefix"])) : (H(), I("a", {
|
|
1103
1103
|
key: 1,
|
|
1104
|
-
href: q(
|
|
1105
|
-
class: V(["td-tree-link", { "is-active": E(q(
|
|
1104
|
+
href: q(i)(q(n)(e.item.filepath)),
|
|
1105
|
+
class: V(["td-tree-link", { "is-active": E(q(n)(e.item.filepath)) }])
|
|
1106
1106
|
}, [
|
|
1107
1107
|
e.item.icon && q(k)(e.item.icon.name) ? (H(), P(G(q(k)(e.item.icon.name)), {
|
|
1108
1108
|
key: 0,
|
|
@@ -1115,12 +1115,12 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
|
1115
1115
|
})),
|
|
1116
1116
|
z(dr, {
|
|
1117
1117
|
class: "td-tree-link-text",
|
|
1118
|
-
text: q(
|
|
1118
|
+
text: q(w)(e.item.filepath, e.item.label)
|
|
1119
1119
|
}, {
|
|
1120
|
-
default: et(() => [L("span", { innerHTML: q(Ct)(q(
|
|
1120
|
+
default: et(() => [L("span", { innerHTML: q(Ct)(q(w)(e.item.filepath, e.item.label)) }, null, 8, yr)]),
|
|
1121
1121
|
_: 2
|
|
1122
1122
|
}, 1032, ["text"]),
|
|
1123
|
-
e.item.metadata ? (H(), I("span", br, K(q(
|
|
1123
|
+
e.item.metadata ? (H(), I("span", br, K(q(f)(e.item.metadata.mtime)), 1)) : F("", !0)
|
|
1124
1124
|
], 10, vr))], 64))), 128)), T.value > 0 && !x.value ? (H(), I("button", {
|
|
1125
1125
|
key: 0,
|
|
1126
1126
|
class: "td-tree-more",
|
|
@@ -1138,28 +1138,28 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
|
1138
1138
|
}, kr = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
1139
1139
|
__name: "TdContentNav",
|
|
1140
1140
|
props: { tree: {} },
|
|
1141
|
-
setup(
|
|
1142
|
-
let
|
|
1141
|
+
setup(e) {
|
|
1142
|
+
let t = O(), { withBase: r } = j(), i = N(() => e.tree.entries.find((e) => e.kind === "file" && p(e.item.filepath))?.item), a = N(() => e.tree.entries.filter((e) => e.kind === "dir" || !p(e.item.filepath)));
|
|
1143
1143
|
function o(e) {
|
|
1144
|
-
return
|
|
1144
|
+
return t.path === e;
|
|
1145
1145
|
}
|
|
1146
|
-
return (
|
|
1147
|
-
href: q(r)(i.value ? q(
|
|
1148
|
-
class: V(["td-root-link", { "is-active": o(i.value ? q(
|
|
1146
|
+
return (e, t) => (H(), I("nav", Cr, [L("a", {
|
|
1147
|
+
href: q(r)(i.value ? q(n)(i.value.filepath) : q(C)("/")),
|
|
1148
|
+
class: V(["td-root-link", { "is-active": o(i.value ? q(n)(i.value.filepath) : q(C)("/")) }])
|
|
1149
1149
|
}, [
|
|
1150
1150
|
z(q(ne), {
|
|
1151
1151
|
size: 14,
|
|
1152
1152
|
class: "td-root-link-icon"
|
|
1153
1153
|
}),
|
|
1154
|
-
|
|
1155
|
-
i.value ? (H(), I("span", Tr, K(i.value.metadata ? q(
|
|
1154
|
+
t[0] ||= L("span", { class: "td-root-link-text" }, "Overview", -1),
|
|
1155
|
+
i.value ? (H(), I("span", Tr, K(i.value.metadata ? q(f)(i.value.metadata.mtime) : ""), 1)) : F("", !0)
|
|
1156
1156
|
], 10, wr), (H(!0), I(M, null, W(a.value, (e) => (H(), I(M, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (H(), P(Sr, {
|
|
1157
1157
|
key: 0,
|
|
1158
1158
|
node: e.node
|
|
1159
1159
|
}, null, 8, ["node"])) : (H(), I("a", {
|
|
1160
1160
|
key: 1,
|
|
1161
|
-
href: q(r)(q(
|
|
1162
|
-
class: V(["td-root-link", { "is-active": o(q(
|
|
1161
|
+
href: q(r)(q(n)(e.item.filepath)),
|
|
1162
|
+
class: V(["td-root-link", { "is-active": o(q(n)(e.item.filepath)) }])
|
|
1163
1163
|
}, [
|
|
1164
1164
|
e.item.icon && q(k)(e.item.icon.name) ? (H(), P(G(q(k)(e.item.icon.name)), {
|
|
1165
1165
|
key: 0,
|
|
@@ -1170,8 +1170,8 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
|
1170
1170
|
size: 14,
|
|
1171
1171
|
class: "td-root-link-icon"
|
|
1172
1172
|
})),
|
|
1173
|
-
L("span", Dr, K(q(
|
|
1174
|
-
e.item.metadata ? (H(), I("span", Or, K(q(
|
|
1173
|
+
L("span", Dr, K(q(w)(e.item.filepath, e.item.label)), 1),
|
|
1174
|
+
e.item.metadata ? (H(), I("span", Or, K(q(f)(e.item.metadata.mtime)), 1)) : F("", !0)
|
|
1175
1175
|
], 10, Er))], 64))), 128))]));
|
|
1176
1176
|
}
|
|
1177
1177
|
}), [["__scopeId", "data-v-c78d7204"]]), Ar = { class: "td-footer" }, jr = { key: 0 }, Mr = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
@@ -1234,36 +1234,36 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
|
1234
1234
|
class: "td-breadcrumb-current"
|
|
1235
1235
|
}, Ur = 3, Wr = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
1236
1236
|
__name: "TdBreadcrumb",
|
|
1237
|
-
setup(
|
|
1238
|
-
let
|
|
1239
|
-
let
|
|
1237
|
+
setup(e) {
|
|
1238
|
+
let t = O(), { withBase: n } = j(), i = U(!1), a = N(() => {
|
|
1239
|
+
let e = r(t.path), i = [{
|
|
1240
1240
|
name: "Home",
|
|
1241
|
-
href:
|
|
1241
|
+
href: n(C("/"))
|
|
1242
1242
|
}];
|
|
1243
|
-
if (
|
|
1244
|
-
let
|
|
1245
|
-
for (let
|
|
1246
|
-
let
|
|
1247
|
-
|
|
1248
|
-
name:
|
|
1249
|
-
href:
|
|
1243
|
+
if (e === "/") return i;
|
|
1244
|
+
let a = e.replace(/^\//, "").split("/"), o = s(e) ? a.slice(0, -1) : a;
|
|
1245
|
+
for (let e = 0; e < o.length; e++) {
|
|
1246
|
+
let t = "/" + o.slice(0, e + 1).join("/"), r = e === o.length - 1;
|
|
1247
|
+
i.push({
|
|
1248
|
+
name: c(o[e]),
|
|
1249
|
+
href: n(r ? t : C(t))
|
|
1250
1250
|
});
|
|
1251
1251
|
}
|
|
1252
|
-
return
|
|
1253
|
-
}),
|
|
1254
|
-
return J(() =>
|
|
1255
|
-
|
|
1252
|
+
return i;
|
|
1253
|
+
}), o = N(() => Ur < a.value.length), l = N(() => a.value.slice(1, -2));
|
|
1254
|
+
return J(() => t.path, () => {
|
|
1255
|
+
i.value = !1;
|
|
1256
1256
|
}), (e, t) => (H(), I("nav", Fr, [L("a", {
|
|
1257
|
-
href:
|
|
1257
|
+
href: a.value[0].href,
|
|
1258
1258
|
class: "td-breadcrumb-link td-breadcrumb-home"
|
|
1259
|
-
}, K(
|
|
1259
|
+
}, K(a.value[0].name), 9, Ir), o.value ? (H(), I(M, { key: 0 }, [
|
|
1260
1260
|
t[2] ||= L("span", {
|
|
1261
1261
|
class: "td-breadcrumb-sep",
|
|
1262
1262
|
"aria-hidden": "true"
|
|
1263
1263
|
}, "/", -1),
|
|
1264
1264
|
z(Pr, {
|
|
1265
|
-
open:
|
|
1266
|
-
"onUpdate:open": t[0] ||= (e) =>
|
|
1265
|
+
open: i.value,
|
|
1266
|
+
"onUpdate:open": t[0] ||= (e) => i.value = e
|
|
1267
1267
|
}, {
|
|
1268
1268
|
trigger: et(() => [L("button", Lr, [z(q(E), { size: 14 })])]),
|
|
1269
1269
|
default: et(() => [(H(!0), I(M, null, W(l.value, (e) => (H(), I("a", {
|
|
@@ -1273,18 +1273,18 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
|
1273
1273
|
}, K(e.name), 9, Rr))), 128))]),
|
|
1274
1274
|
_: 1
|
|
1275
1275
|
}, 8, ["open"]),
|
|
1276
|
-
(H(!0), I(M, null, W(
|
|
1276
|
+
(H(!0), I(M, null, W(a.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 ===
|
|
1279
|
+
}, "/", -1), e === a.value[a.value.length - 1] ? (H(), I("span", Br, K(e.name), 1)) : (H(), I("a", {
|
|
1280
1280
|
key: 0,
|
|
1281
1281
|
href: e.href,
|
|
1282
1282
|
class: "td-breadcrumb-link"
|
|
1283
1283
|
}, K(e.name), 9, zr))], 64))), 128))
|
|
1284
|
-
], 64)) : (H(!0), I(M, { key: 1 }, W(
|
|
1284
|
+
], 64)) : (H(!0), I(M, { key: 1 }, W(a.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 <
|
|
1287
|
+
}, "/", -1), n < a.value.length - 2 ? (H(), I("a", {
|
|
1288
1288
|
key: 0,
|
|
1289
1289
|
href: e.href,
|
|
1290
1290
|
class: "td-breadcrumb-link"
|
|
@@ -1299,18 +1299,18 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
|
1299
1299
|
"rel"
|
|
1300
1300
|
], qr = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
1301
1301
|
__name: "TdHeaderNavBar",
|
|
1302
|
-
setup(
|
|
1303
|
-
let
|
|
1304
|
-
function
|
|
1305
|
-
return !
|
|
1302
|
+
setup(t) {
|
|
1303
|
+
let n = j(), { withBase: r } = n, i = O();
|
|
1304
|
+
function a(t) {
|
|
1305
|
+
return !e(t) && i.path.startsWith(r(t));
|
|
1306
1306
|
}
|
|
1307
|
-
return (
|
|
1308
|
-
key:
|
|
1309
|
-
href: q(
|
|
1310
|
-
target: q(
|
|
1311
|
-
rel: q(
|
|
1312
|
-
class: V(["td-header-nav-link", { "is-active":
|
|
1313
|
-
}, [R(K(
|
|
1307
|
+
return (t, i) => q(n).nav?.length ? (H(), I("nav", Gr, [(H(!0), I(M, null, W(q(n).nav, (t) => (H(), I("a", {
|
|
1308
|
+
key: t.link,
|
|
1309
|
+
href: q(e)(t.link) ? t.link : q(r)(t.link),
|
|
1310
|
+
target: q(e)(t.link) ? "_blank" : void 0,
|
|
1311
|
+
rel: q(e)(t.link) ? "noopener noreferrer" : void 0,
|
|
1312
|
+
class: V(["td-header-nav-link", { "is-active": a(t.link) }])
|
|
1313
|
+
}, [R(K(t.title), 1), q(e)(t.link) ? (H(), P(q(ae), {
|
|
1314
1314
|
key: 0,
|
|
1315
1315
|
size: 14
|
|
1316
1316
|
})) : F("", !0)], 10, Kr))), 128))])) : F("", !0);
|
|
@@ -1324,25 +1324,25 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
|
1324
1324
|
"rel"
|
|
1325
1325
|
], Xr = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
1326
1326
|
__name: "TdHeaderNavMenu",
|
|
1327
|
-
setup(
|
|
1328
|
-
let
|
|
1329
|
-
function
|
|
1330
|
-
return !
|
|
1327
|
+
setup(t) {
|
|
1328
|
+
let n = j(), { withBase: r } = n, i = O();
|
|
1329
|
+
function a(t) {
|
|
1330
|
+
return !e(t) && i.path.startsWith(r(t));
|
|
1331
1331
|
}
|
|
1332
|
-
return (
|
|
1333
|
-
key:
|
|
1334
|
-
href: q(
|
|
1335
|
-
target: q(
|
|
1336
|
-
rel: q(
|
|
1337
|
-
class: V(["td-menu-nav-item", { "is-active":
|
|
1332
|
+
return (t, i) => q(n).nav?.length ? (H(), I("nav", Jr, [(H(!0), I(M, null, W(q(n).nav, (t) => (H(), I("a", {
|
|
1333
|
+
key: t.link,
|
|
1334
|
+
href: q(e)(t.link) ? t.link : q(r)(t.link),
|
|
1335
|
+
target: q(e)(t.link) ? "_blank" : void 0,
|
|
1336
|
+
rel: q(e)(t.link) ? "noopener noreferrer" : void 0,
|
|
1337
|
+
class: V(["td-menu-nav-item", { "is-active": a(t.link) }])
|
|
1338
1338
|
}, [
|
|
1339
|
-
|
|
1339
|
+
t.icon ? (H(), P(we, {
|
|
1340
1340
|
key: 0,
|
|
1341
|
-
name:
|
|
1341
|
+
name: t.icon,
|
|
1342
1342
|
size: 16
|
|
1343
1343
|
}, null, 8, ["name"])) : F("", !0),
|
|
1344
|
-
L("span", null, K(
|
|
1345
|
-
q(
|
|
1344
|
+
L("span", null, K(t.title), 1),
|
|
1345
|
+
q(e)(t.link) ? (H(), P(q(ae), {
|
|
1346
1346
|
key: 1,
|
|
1347
1347
|
size: 14
|
|
1348
1348
|
})) : F("", !0)
|
|
@@ -1380,21 +1380,21 @@ function ei(e) {
|
|
|
1380
1380
|
let t = e.trim();
|
|
1381
1381
|
return !t || !ti({ url: t }) ? void 0 : {
|
|
1382
1382
|
url: t,
|
|
1383
|
-
name:
|
|
1383
|
+
name: i(t),
|
|
1384
1384
|
isImage: !0
|
|
1385
1385
|
};
|
|
1386
1386
|
}
|
|
1387
1387
|
if (typeof e != "object") return;
|
|
1388
|
-
let t = e,
|
|
1389
|
-
if (typeof
|
|
1390
|
-
let
|
|
1388
|
+
let t = e, n = t.$ref ?? t;
|
|
1389
|
+
if (typeof n.url != "string") return;
|
|
1390
|
+
let r = n.url, a = n.name ?? i(r), o = n.format ?? t.format;
|
|
1391
1391
|
return {
|
|
1392
|
-
url:
|
|
1392
|
+
url: r,
|
|
1393
1393
|
name: a,
|
|
1394
1394
|
format: o,
|
|
1395
|
-
icon:
|
|
1395
|
+
icon: n.icon,
|
|
1396
1396
|
isImage: ti({
|
|
1397
|
-
url:
|
|
1397
|
+
url: r,
|
|
1398
1398
|
name: a,
|
|
1399
1399
|
format: o
|
|
1400
1400
|
})
|
|
@@ -1402,7 +1402,7 @@ function ei(e) {
|
|
|
1402
1402
|
}
|
|
1403
1403
|
function ti(e) {
|
|
1404
1404
|
if (e.format && $r.has(e.format.toLowerCase())) return !0;
|
|
1405
|
-
let t =
|
|
1405
|
+
let t = a(e.name || e.url).slice(1);
|
|
1406
1406
|
return t ? $r.has(t.toLowerCase()) : !1;
|
|
1407
1407
|
}
|
|
1408
1408
|
//#endregion
|
|
@@ -1419,29 +1419,29 @@ var ni = {
|
|
|
1419
1419
|
default: !1
|
|
1420
1420
|
}
|
|
1421
1421
|
},
|
|
1422
|
-
setup(
|
|
1423
|
-
let { withBase:
|
|
1424
|
-
return (
|
|
1422
|
+
setup(t) {
|
|
1423
|
+
let { withBase: n } = j(), r = N(() => ei(t.value)), i = N(() => r.value?.icon ? k(r.value.icon.name) : void 0), a = N(() => r.value !== void 0 && e(r.value.url));
|
|
1424
|
+
return (e, o) => r.value ? (H(), I("span", ni, [r.value.isImage ? (H(), I("a", {
|
|
1425
1425
|
key: 0,
|
|
1426
|
-
href: q(
|
|
1426
|
+
href: q(n)(r.value.url),
|
|
1427
1427
|
target: "_blank",
|
|
1428
1428
|
rel: "noopener noreferrer",
|
|
1429
1429
|
class: "td-widget-image-preview",
|
|
1430
|
-
title:
|
|
1430
|
+
title: r.value.name
|
|
1431
1431
|
}, [L("img", {
|
|
1432
|
-
src: q(
|
|
1433
|
-
alt:
|
|
1432
|
+
src: q(n)(r.value.url),
|
|
1433
|
+
alt: r.value.name,
|
|
1434
1434
|
class: "td-widget-image-img",
|
|
1435
1435
|
loading: "lazy"
|
|
1436
|
-
}, null, 8, ii)], 8, ri)) :
|
|
1436
|
+
}, null, 8, ii)], 8, ri)) : r.value.format || r.value.url.includes(".") ? (H(), I("a", {
|
|
1437
1437
|
key: 1,
|
|
1438
|
-
href: q(
|
|
1438
|
+
href: q(n)(r.value.url),
|
|
1439
1439
|
target: "_blank",
|
|
1440
1440
|
rel: "noopener noreferrer",
|
|
1441
1441
|
class: "td-widget-file-link"
|
|
1442
|
-
}, [z(q(re), { class: "td-widget-file-icon" }), L("span", oi, K(
|
|
1442
|
+
}, [z(q(re), { class: "td-widget-file-icon" }), L("span", oi, K(r.value.name), 1)], 8, ai)) : a.value ? (H(), I("a", {
|
|
1443
1443
|
key: 2,
|
|
1444
|
-
href:
|
|
1444
|
+
href: r.value.url,
|
|
1445
1445
|
target: "_blank",
|
|
1446
1446
|
rel: "noopener noreferrer",
|
|
1447
1447
|
class: "td-widget-ref td-widget-ref-external"
|
|
@@ -1450,13 +1450,13 @@ var ni = {
|
|
|
1450
1450
|
class: "td-widget-external-icon"
|
|
1451
1451
|
})], 8, si)) : (H(), I("a", {
|
|
1452
1452
|
key: 3,
|
|
1453
|
-
href: q(
|
|
1453
|
+
href: q(n)(r.value.url),
|
|
1454
1454
|
class: "td-widget-ref"
|
|
1455
|
-
}, [
|
|
1455
|
+
}, [i.value && !t.hideIcon ? (H(), P(G(i.value), {
|
|
1456
1456
|
key: 0,
|
|
1457
1457
|
size: 14,
|
|
1458
1458
|
class: "td-widget-ref-icon"
|
|
1459
|
-
})) : F("", !0), R(K(
|
|
1459
|
+
})) : F("", !0), R(K(r.value.name), 1)], 8, ci))])) : (H(), I("span", li, K(t.value), 1));
|
|
1460
1460
|
}
|
|
1461
1461
|
}), [["__scopeId", "data-v-e593af69"]]), di = { key: 0 }, fi = { class: "td-widget-list td-widget-list-icons" }, pi = { key: 1 }, mi = { class: "td-widget-list" }, hi = 5, gi = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
1462
1462
|
__name: "TdWidgetList",
|
|
@@ -1493,7 +1493,7 @@ var ni = {
|
|
|
1493
1493
|
onClick: o
|
|
1494
1494
|
}, K(t.value ? "show less" : `+${a.value} more`), 1)) : F("", !0)]));
|
|
1495
1495
|
}
|
|
1496
|
-
}), [["__scopeId", "data-v-
|
|
1496
|
+
}), [["__scopeId", "data-v-d8bb2881"]]), _i = [
|
|
1497
1497
|
{
|
|
1498
1498
|
fg: "#a0522d",
|
|
1499
1499
|
bg: "rgba(160, 82, 45, 0.1)"
|
|
@@ -1578,7 +1578,7 @@ var bi = 5, xi = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
|
1578
1578
|
setup(e) {
|
|
1579
1579
|
let { withBase: t } = j(), n = N(() => typeof e.value == "string" ? e.value.trim() : ""), r = N(() => ei(e.value)), i = N(() => r.value ? r.value.isImage : 0 < n.value.length && ti({ 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
|
-
return t == null ? "" : e.definition.widget === "date" ?
|
|
1581
|
+
return t == null ? "" : e.definition.widget === "date" ? v(String(t)) : String(t);
|
|
1582
1582
|
}
|
|
1583
1583
|
return (t, a) => i.value ? (H(), I("a", {
|
|
1584
1584
|
key: 0,
|
|
@@ -1671,16 +1671,16 @@ var bi = 5, xi = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
|
1671
1671
|
return i[e] ?? mt;
|
|
1672
1672
|
}
|
|
1673
1673
|
let o = U(!1), s = U(!1);
|
|
1674
|
-
function
|
|
1674
|
+
function l() {
|
|
1675
1675
|
o.value = !o.value;
|
|
1676
1676
|
}
|
|
1677
|
-
function
|
|
1677
|
+
function u() {
|
|
1678
1678
|
s.value = !s.value;
|
|
1679
1679
|
}
|
|
1680
1680
|
return (t, n) => e.mode === "rail" && r.value.length > 0 ? (H(), I("div", Ai, [L("button", {
|
|
1681
1681
|
type: "button",
|
|
1682
1682
|
class: "td-fm-rail-header",
|
|
1683
|
-
onClick:
|
|
1683
|
+
onClick: u
|
|
1684
1684
|
}, [n[0] ||= L("span", { class: "td-fm-rail-label" }, "Properties", -1), z(q(te), {
|
|
1685
1685
|
size: 14,
|
|
1686
1686
|
class: V(["td-fm-rail-caret", { "is-collapsed": s.value }])
|
|
@@ -1690,13 +1690,13 @@ var bi = 5, xi = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
|
1690
1690
|
}, [L("span", ji, [(H(), P(G(a(n.widget)), {
|
|
1691
1691
|
size: 12,
|
|
1692
1692
|
class: "td-fm-icon"
|
|
1693
|
-
})), R(" " + K(q(
|
|
1693
|
+
})), R(" " + K(q(c)(t)), 1)]), L("span", Mi, [z(ki, {
|
|
1694
1694
|
definition: n,
|
|
1695
1695
|
value: e.frontmatter[t]
|
|
1696
1696
|
}, null, 8, ["definition", "value"])])]))), 128))])], 2)])) : r.value.length > 0 ? (H(), I("div", Ni, [L("button", {
|
|
1697
1697
|
type: "button",
|
|
1698
1698
|
class: "td-fm-box-header",
|
|
1699
|
-
onClick:
|
|
1699
|
+
onClick: l
|
|
1700
1700
|
}, [L("span", Pi, [n[1] ||= R("Properties ", -1), L("span", Fi, K(r.value.length), 1)]), L("span", Ii, [R(K(o.value ? "Show" : "Hide") + " ", 1), o.value ? (H(), P(q(se), {
|
|
1701
1701
|
key: 1,
|
|
1702
1702
|
size: 14
|
|
@@ -1706,7 +1706,7 @@ var bi = 5, xi = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
|
1706
1706
|
}))])]), L("div", { class: V(["td-collapse", { "is-collapsed": o.value }]) }, [L("div", Li, [(H(!0), I(M, null, W(r.value, ([t, n]) => (H(), I(M, { key: t }, [L("span", Ri, [(H(), P(G(a(n.widget)), {
|
|
1707
1707
|
size: 12,
|
|
1708
1708
|
class: "td-fm-icon"
|
|
1709
|
-
})), R(" " + K(q(
|
|
1709
|
+
})), R(" " + K(q(c)(t)), 1)]), L("span", zi, [z(ki, {
|
|
1710
1710
|
definition: n,
|
|
1711
1711
|
value: e.frontmatter[t]
|
|
1712
1712
|
}, null, 8, ["definition", "value"])])], 64))), 128))])], 2)])) : F("", !0);
|
|
@@ -1783,51 +1783,51 @@ function Wi() {
|
|
|
1783
1783
|
groupName: N(() => i.value.groupName)
|
|
1784
1784
|
};
|
|
1785
1785
|
}
|
|
1786
|
-
function Gi(e, t,
|
|
1787
|
-
if (e.entries.some((e) => e.kind === "file" &&
|
|
1788
|
-
let t = [],
|
|
1789
|
-
|
|
1790
|
-
for (let n of e.entries) n.kind === "file" ?
|
|
1786
|
+
function Gi(e, t, r) {
|
|
1787
|
+
if (e.entries.some((e) => e.kind === "file" && n(e.item.filepath) === t)) {
|
|
1788
|
+
let t = [], n = e.entries.find((e) => e.kind === "file" && p(e.item.filepath));
|
|
1789
|
+
n && n.kind === "file" && t.push(qi(n.item, r));
|
|
1790
|
+
for (let n of e.entries) n.kind === "file" ? p(n.item.filepath) || t.push(qi(n.item)) : t.push(Ji(n.node, ""));
|
|
1791
1791
|
return {
|
|
1792
1792
|
pages: t,
|
|
1793
1793
|
groupName: ""
|
|
1794
1794
|
};
|
|
1795
1795
|
}
|
|
1796
|
-
for (let
|
|
1797
|
-
if (
|
|
1798
|
-
let e = Ki(
|
|
1796
|
+
for (let n of e.entries) {
|
|
1797
|
+
if (n.kind !== "dir") continue;
|
|
1798
|
+
let e = Ki(n.node, t, "", r);
|
|
1799
1799
|
if (e !== void 0) return e;
|
|
1800
1800
|
}
|
|
1801
1801
|
}
|
|
1802
|
-
function Ki(e,
|
|
1803
|
-
let
|
|
1804
|
-
if (e.entries.some((e) => e.kind === "file" &&
|
|
1805
|
-
let t = [], n =
|
|
1802
|
+
function Ki(e, r, i, a) {
|
|
1803
|
+
let o = t(i, e.name);
|
|
1804
|
+
if (e.entries.some((e) => e.kind === "file" && n(e.item.filepath) === r)) {
|
|
1805
|
+
let t = [], n = d(e);
|
|
1806
1806
|
n && t.push(qi(n));
|
|
1807
|
-
for (let n of e.entries) n.kind === "file" ?
|
|
1807
|
+
for (let n of e.entries) n.kind === "file" ? p(n.item.filepath) || t.push(qi(n.item)) : t.push(Ji(n.node, o));
|
|
1808
1808
|
return {
|
|
1809
1809
|
pages: t,
|
|
1810
|
-
groupName:
|
|
1810
|
+
groupName: c(e.name)
|
|
1811
1811
|
};
|
|
1812
1812
|
}
|
|
1813
|
-
for (let
|
|
1814
|
-
if (
|
|
1815
|
-
let e = Ki(
|
|
1813
|
+
for (let t of e.entries) {
|
|
1814
|
+
if (t.kind !== "dir") continue;
|
|
1815
|
+
let e = Ki(t.node, r, o, a);
|
|
1816
1816
|
if (e !== void 0) return e;
|
|
1817
1817
|
}
|
|
1818
1818
|
}
|
|
1819
1819
|
function qi(e, t) {
|
|
1820
|
-
let
|
|
1820
|
+
let r = e.label === void 0 ? t === void 0 ? w(e.filepath) : S(e.filepath, t) : e.label;
|
|
1821
1821
|
return {
|
|
1822
|
-
url:
|
|
1823
|
-
title:
|
|
1822
|
+
url: n(e.filepath),
|
|
1823
|
+
title: r
|
|
1824
1824
|
};
|
|
1825
1825
|
}
|
|
1826
|
-
function Ji(
|
|
1827
|
-
let
|
|
1826
|
+
function Ji(e, r) {
|
|
1827
|
+
let i = t(r, e.name), a = d(e);
|
|
1828
1828
|
return {
|
|
1829
|
-
url:
|
|
1830
|
-
title:
|
|
1829
|
+
url: a ? n(a.filepath) : C(i),
|
|
1830
|
+
title: a ? w(a.filepath, a.label) : c(e.name)
|
|
1831
1831
|
};
|
|
1832
1832
|
}
|
|
1833
1833
|
//#endregion
|
|
@@ -1925,7 +1925,7 @@ var ca = {
|
|
|
1925
1925
|
}, [L("a", {
|
|
1926
1926
|
href: e.link,
|
|
1927
1927
|
class: V(["td-toc-link", { "is-active": q(t) === e.slug }]),
|
|
1928
|
-
innerHTML: q(
|
|
1928
|
+
innerHTML: q(_)(e.titleHtml)
|
|
1929
1929
|
}, null, 10, ua)], 2))), 128))])])) : F("", !0);
|
|
1930
1930
|
}
|
|
1931
1931
|
}), [["__scopeId", "data-v-91e96e92"]]), fa = { class: "td-rail" }, pa = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
@@ -2001,14 +2001,14 @@ function ya() {
|
|
|
2001
2001
|
J(e, () => {
|
|
2002
2002
|
t = void 0;
|
|
2003
2003
|
});
|
|
2004
|
-
function
|
|
2004
|
+
function i() {
|
|
2005
2005
|
if (t) return t;
|
|
2006
2006
|
if (e.value) return t = Fe(ee.loadJSON(e.value, {
|
|
2007
|
-
fields:
|
|
2008
|
-
storeFields:
|
|
2007
|
+
fields: u,
|
|
2008
|
+
storeFields: l
|
|
2009
2009
|
})), t;
|
|
2010
2010
|
}
|
|
2011
|
-
function
|
|
2011
|
+
function a(e, t) {
|
|
2012
2012
|
if (!e) return "";
|
|
2013
2013
|
let n = Object.keys(t);
|
|
2014
2014
|
if (n.length === 0) return e.slice(0, va);
|
|
@@ -2020,13 +2020,13 @@ function ya() {
|
|
|
2020
2020
|
let a = Math.max(0, i - 30), o = Math.min(e.length, a + va), s = e.slice(a, o).trim();
|
|
2021
2021
|
return 0 < a && (s = "..." + s), o < e.length && (s += "..."), s;
|
|
2022
2022
|
}
|
|
2023
|
-
async function
|
|
2024
|
-
let t =
|
|
2023
|
+
async function o(e) {
|
|
2024
|
+
let t = i();
|
|
2025
2025
|
if (!t) {
|
|
2026
2026
|
r.value = !1;
|
|
2027
2027
|
return;
|
|
2028
2028
|
}
|
|
2029
|
-
let
|
|
2029
|
+
let o = t.search(e, {
|
|
2030
2030
|
prefix: !0,
|
|
2031
2031
|
fuzzy: (e) => 3 < e.length && .2,
|
|
2032
2032
|
boost: {
|
|
@@ -2034,23 +2034,23 @@ function ya() {
|
|
|
2034
2034
|
text: 2
|
|
2035
2035
|
}
|
|
2036
2036
|
}).slice(0, 20);
|
|
2037
|
-
n.value =
|
|
2037
|
+
n.value = o.map((e) => ({
|
|
2038
2038
|
id: e.id,
|
|
2039
2039
|
title: e.title,
|
|
2040
|
-
excerpt:
|
|
2040
|
+
excerpt: a(e.text ?? "", e.match),
|
|
2041
2041
|
score: e.score
|
|
2042
2042
|
})), r.value = !1;
|
|
2043
2043
|
}
|
|
2044
|
-
let
|
|
2045
|
-
function
|
|
2044
|
+
let s = y(o, 150);
|
|
2045
|
+
function c(e) {
|
|
2046
2046
|
let t = e.trim();
|
|
2047
2047
|
if (t.length === 0) {
|
|
2048
2048
|
n.value = [], r.value = !1;
|
|
2049
2049
|
return;
|
|
2050
2050
|
}
|
|
2051
|
-
r.value = !0,
|
|
2051
|
+
r.value = !0, s(t);
|
|
2052
2052
|
}
|
|
2053
|
-
function
|
|
2053
|
+
function d() {
|
|
2054
2054
|
r.value = !1;
|
|
2055
2055
|
}
|
|
2056
2056
|
let f = Je(!1);
|
|
@@ -2060,8 +2060,8 @@ function ya() {
|
|
|
2060
2060
|
results: n,
|
|
2061
2061
|
searching: r,
|
|
2062
2062
|
indexLoaded: f,
|
|
2063
|
-
search:
|
|
2064
|
-
cancel:
|
|
2063
|
+
search: c,
|
|
2064
|
+
cancel: d
|
|
2065
2065
|
};
|
|
2066
2066
|
}
|
|
2067
2067
|
//#endregion
|
|
@@ -2070,7 +2070,7 @@ function ba(e, t) {
|
|
|
2070
2070
|
if (!e || !t) return m(e);
|
|
2071
2071
|
let n = t.trim().split(/\s+/).filter(Boolean), r = m(e);
|
|
2072
2072
|
for (let e of n) {
|
|
2073
|
-
let t = RegExp(`(${
|
|
2073
|
+
let t = RegExp(`(${x(e)})`, "gi");
|
|
2074
2074
|
r = r.replace(t, "<mark>$1</mark>");
|
|
2075
2075
|
}
|
|
2076
2076
|
return r;
|
|
@@ -2099,15 +2099,15 @@ var xa = { class: "td-search" }, Sa = { class: "td-search-input-wrap" }, Ca = {
|
|
|
2099
2099
|
},
|
|
2100
2100
|
emits: /*@__PURE__*/ Ie(["select"], ["update:active", "update:query"]),
|
|
2101
2101
|
setup(e, { expose: t, emit: n }) {
|
|
2102
|
-
let r = Xe(e, "active"), i = Xe(e, "query"),
|
|
2102
|
+
let r = Xe(e, "active"), i = Xe(e, "query"), a = n, s = O(), { withBase: l } = j(), { results: u, searching: d, indexLoaded: f, search: p, cancel: m } = ya(), h = U(-1), g = N(() => 0 < i.value.trim().length), _ = N(() => {
|
|
2103
2103
|
let e = [], t = /* @__PURE__ */ new Map();
|
|
2104
|
-
for (let n of
|
|
2105
|
-
let r =
|
|
2104
|
+
for (let n of u.value) {
|
|
2105
|
+
let r = o(n.id), i = t.get(r);
|
|
2106
2106
|
if (!i) {
|
|
2107
2107
|
let n = r.split("/").pop() || "index";
|
|
2108
2108
|
i = {
|
|
2109
2109
|
pageUrl: r,
|
|
2110
|
-
pageTitle:
|
|
2110
|
+
pageTitle: c(n),
|
|
2111
2111
|
results: []
|
|
2112
2112
|
}, t.set(r, i), e.push(i);
|
|
2113
2113
|
}
|
|
@@ -2137,12 +2137,12 @@ var xa = { class: "td-search" }, Sa = { class: "td-search-input-wrap" }, Ca = {
|
|
|
2137
2137
|
e.preventDefault();
|
|
2138
2138
|
let t = y.value[h.value];
|
|
2139
2139
|
if (!t) return;
|
|
2140
|
-
document.querySelector(`.td-search-result[href="${CSS.escape(
|
|
2140
|
+
document.querySelector(`.td-search-result[href="${CSS.escape(l(t.id))}"]`)?.click();
|
|
2141
2141
|
}
|
|
2142
2142
|
}
|
|
2143
2143
|
}
|
|
2144
2144
|
function S() {
|
|
2145
|
-
|
|
2145
|
+
a("select");
|
|
2146
2146
|
}
|
|
2147
2147
|
function C() {
|
|
2148
2148
|
requestAnimationFrame(() => {
|
|
@@ -2188,7 +2188,7 @@ var xa = { class: "td-search" }, Sa = { class: "td-search-input-wrap" }, Ca = {
|
|
|
2188
2188
|
key: 1,
|
|
2189
2189
|
size: 12,
|
|
2190
2190
|
class: "td-search-spinner"
|
|
2191
|
-
})) : g.value ? (H(), I("span", Ca, K(q(
|
|
2191
|
+
})) : g.value ? (H(), I("span", Ca, K(q(u).length), 1)) : F("", !0),
|
|
2192
2192
|
i.value ? (H(), I("button", {
|
|
2193
2193
|
key: 3,
|
|
2194
2194
|
class: "td-search-clear",
|
|
@@ -2197,15 +2197,15 @@ var xa = { class: "td-search" }, Sa = { class: "td-search-input-wrap" }, Ca = {
|
|
|
2197
2197
|
onClick: v
|
|
2198
2198
|
}, [z(q(ge), { size: 12 })])) : F("", !0)
|
|
2199
2199
|
]),
|
|
2200
|
-
g.value && q(
|
|
2200
|
+
g.value && q(u).length > 0 ? (H(), I("div", wa, [(H(!0), I(M, null, W(_.value, (e) => (H(), I("div", {
|
|
2201
2201
|
key: e.pageUrl,
|
|
2202
2202
|
class: "td-search-group"
|
|
2203
2203
|
}, [(H(!0), I(M, null, W(e.results, (e) => (H(), I("a", {
|
|
2204
2204
|
key: e.id,
|
|
2205
|
-
href: q(
|
|
2205
|
+
href: q(l)(e.id),
|
|
2206
2206
|
class: V(["td-search-result", {
|
|
2207
2207
|
"is-selected": b.value.get(e.id) === h.value,
|
|
2208
|
-
"is-current": q(
|
|
2208
|
+
"is-current": q(l)(e.id) === q(s).path
|
|
2209
2209
|
}]),
|
|
2210
2210
|
onClick: S
|
|
2211
2211
|
}, [
|
|
@@ -2220,7 +2220,7 @@ var xa = { class: "td-search" }, Sa = { class: "td-search-input-wrap" }, Ca = {
|
|
|
2220
2220
|
innerHTML: q(ba)(e.excerpt, i.value)
|
|
2221
2221
|
}, null, 8, Oa)) : F("", !0)
|
|
2222
2222
|
], 10, Ta))), 128))]))), 128))])) : F("", !0),
|
|
2223
|
-
g.value && q(
|
|
2223
|
+
g.value && q(u).length === 0 ? (H(), I("div", ka, " No results for \"" + K(i.value) + "\" ", 1)) : F("", !0)
|
|
2224
2224
|
]));
|
|
2225
2225
|
}
|
|
2226
2226
|
}), [["__scopeId", "data-v-06d05932"]]), ja = /* @__PURE__ */ B({
|
|
@@ -2411,69 +2411,69 @@ var Ga = { class: "td-header" }, Ka = { class: "td-header-left" }, qa = ["href"]
|
|
|
2411
2411
|
class: "td-page-meta"
|
|
2412
2412
|
}, fo = { key: 0 }, po = { class: "td-content-body" }, mo = 200, ho = 500, go = 300, _o = "td-sidebar-width", vo = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
2413
2413
|
__name: "TdLayout",
|
|
2414
|
-
setup(
|
|
2415
|
-
let { title:
|
|
2416
|
-
let e =
|
|
2414
|
+
setup(e) {
|
|
2415
|
+
let { title: t, page: n } = fe(), r = N(() => {
|
|
2416
|
+
let e = n.value.icon;
|
|
2417
2417
|
return e ? k(e.name) : void 0;
|
|
2418
|
-
}),
|
|
2419
|
-
J(() =>
|
|
2420
|
-
let
|
|
2421
|
-
function
|
|
2422
|
-
if (
|
|
2423
|
-
|
|
2418
|
+
}), i = j(), { withBase: a } = i, o = _e(), s = N(() => o.value.ready), { isOpen: c, open: l, close: u } = Hi(), d = U(""), f = U(!1), p = U(!1), m = O();
|
|
2419
|
+
J(() => m.path, () => u()), Ma(), Ua();
|
|
2420
|
+
let h = Ze("sidebarSearch"), g = Ze("menuSearch");
|
|
2421
|
+
function _() {
|
|
2422
|
+
if (g.value?.isFocused || h.value?.isFocused) {
|
|
2423
|
+
g.value?.blur(), h.value?.blur(), c.value && u();
|
|
2424
2424
|
return;
|
|
2425
2425
|
}
|
|
2426
|
-
|
|
2426
|
+
c.value ? g.value?.focus() : h.value?.isVisible ? h.value.focus() : (l(), Re(() => g.value?.focus()));
|
|
2427
2427
|
}
|
|
2428
|
-
Pa([$.Control, $.k],
|
|
2428
|
+
Pa([$.Control, $.k], _), Pa([$.Meta, $.k], _), $e(() => {
|
|
2429
2429
|
if (typeof document > "u") return;
|
|
2430
|
-
let e =
|
|
2431
|
-
document.title = e && e !==
|
|
2432
|
-
let
|
|
2433
|
-
o && o.setAttribute("content",
|
|
2430
|
+
let e = t.value, r = i.title;
|
|
2431
|
+
document.title = e && e !== r ? `${e} - ${r}` : r;
|
|
2432
|
+
let a = n.value.frontmatter?.description === void 0 ? i.description ?? "" : String(n.value.frontmatter.description), o = document.querySelector("meta[name=\"description\"]");
|
|
2433
|
+
o && o.setAttribute("content", a);
|
|
2434
2434
|
}), za();
|
|
2435
|
-
let
|
|
2436
|
-
function
|
|
2437
|
-
|
|
2435
|
+
let v = U(typeof localStorage < "u" && Number(localStorage.getItem(_o)) || go);
|
|
2436
|
+
function y() {
|
|
2437
|
+
v.value = Math.min(ho, v.value + 20);
|
|
2438
2438
|
}
|
|
2439
|
-
function
|
|
2440
|
-
let t = e.clientX, n =
|
|
2439
|
+
function x(e) {
|
|
2440
|
+
let t = e.clientX, n = v.value, r = e.currentTarget;
|
|
2441
2441
|
r.setPointerCapture(e.pointerId);
|
|
2442
2442
|
function i(e) {
|
|
2443
2443
|
let r = Math.min(ho, window.innerWidth * .85), i = Math.min(r, Math.max(mo, n + e.clientX - t));
|
|
2444
|
-
|
|
2444
|
+
v.value = i;
|
|
2445
2445
|
}
|
|
2446
2446
|
function a() {
|
|
2447
|
-
document.body.style.cursor = "", r.removeEventListener("pointermove", i), r.removeEventListener("pointerup", a), localStorage.setItem(_o, String(
|
|
2447
|
+
document.body.style.cursor = "", r.removeEventListener("pointermove", i), r.removeEventListener("pointerup", a), localStorage.setItem(_o, String(v.value));
|
|
2448
2448
|
}
|
|
2449
2449
|
document.body.style.cursor = "col-resize", r.addEventListener("pointermove", i), r.addEventListener("pointerup", a);
|
|
2450
2450
|
}
|
|
2451
|
-
function
|
|
2452
|
-
|
|
2451
|
+
function S() {
|
|
2452
|
+
v.value = Math.max(mo, v.value - 20);
|
|
2453
2453
|
}
|
|
2454
|
-
return (
|
|
2455
|
-
|
|
2454
|
+
return (e, l) => (H(), I("div", null, [
|
|
2455
|
+
l[6] ||= L("a", {
|
|
2456
2456
|
href: "#td-content",
|
|
2457
2457
|
class: "td-skip-link"
|
|
2458
2458
|
}, "Skip to content", -1),
|
|
2459
2459
|
L("header", Ga, [
|
|
2460
2460
|
L("div", Ka, [
|
|
2461
|
-
z(Ui, { onClick:
|
|
2461
|
+
z(Ui, { onClick: _ }),
|
|
2462
2462
|
L("a", {
|
|
2463
|
-
href: q(
|
|
2463
|
+
href: q(a)(q(C)("/")),
|
|
2464
2464
|
class: "td-brand"
|
|
2465
|
-
}, [z(yt), L("span", Ja, K(q(
|
|
2465
|
+
}, [z(yt), L("span", Ja, K(q(i).title || "Typedown"), 1)], 8, qa),
|
|
2466
2466
|
z(Wr, { class: "td-header-breadcrumb" })
|
|
2467
2467
|
]),
|
|
2468
2468
|
z(q(qr)),
|
|
2469
|
-
L("div", Ya, [z(ja), q(
|
|
2469
|
+
L("div", Ya, [z(ja), q(i).repo ? (H(), I("a", {
|
|
2470
2470
|
key: 0,
|
|
2471
|
-
href: q(
|
|
2471
|
+
href: q(i).repo,
|
|
2472
2472
|
target: "_blank",
|
|
2473
2473
|
rel: "noopener noreferrer",
|
|
2474
2474
|
class: "td-header-icon-link",
|
|
2475
2475
|
"aria-label": "GitHub repository"
|
|
2476
|
-
}, [...
|
|
2476
|
+
}, [...l[5] ||= [L("svg", {
|
|
2477
2477
|
width: "20",
|
|
2478
2478
|
height: "20",
|
|
2479
2479
|
viewBox: "0 0 98 96",
|
|
@@ -2487,23 +2487,23 @@ var Ga = { class: "td-header" }, Ka = { class: "td-header-left" }, qa = ["href"]
|
|
|
2487
2487
|
})], -1)]], 8, Xa)) : F("", !0)])
|
|
2488
2488
|
]),
|
|
2489
2489
|
L("div", {
|
|
2490
|
-
class: V(["td-drawer-scrim", { "is-open": q(
|
|
2491
|
-
onClick:
|
|
2490
|
+
class: V(["td-drawer-scrim", { "is-open": q(c) }]),
|
|
2491
|
+
onClick: l[0] ||= (...e) => q(u) && q(u)(...e)
|
|
2492
2492
|
}, null, 2),
|
|
2493
2493
|
L("aside", {
|
|
2494
|
-
class: V(["td-drawer", { "is-open": q(
|
|
2495
|
-
style: ze({ width: `${
|
|
2494
|
+
class: V(["td-drawer", { "is-open": q(c) }]),
|
|
2495
|
+
style: ze({ width: `${v.value}px` })
|
|
2496
2496
|
}, [
|
|
2497
2497
|
L("div", {
|
|
2498
2498
|
class: "td-resize-handle",
|
|
2499
|
-
onPointerdown: rt(
|
|
2499
|
+
onPointerdown: rt(x, ["prevent"])
|
|
2500
2500
|
}, null, 32),
|
|
2501
2501
|
L("header", Za, [L("a", {
|
|
2502
|
-
href: q(
|
|
2502
|
+
href: q(a)(q(C)("/")),
|
|
2503
2503
|
class: "td-brand"
|
|
2504
|
-
}, [z(yt), L("span", $a, K(q(
|
|
2504
|
+
}, [z(yt), L("span", $a, K(q(i).title || "Typedown"), 1)], 8, Qa), z(xt, {
|
|
2505
2505
|
label: "Close menu",
|
|
2506
|
-
onClick: q(
|
|
2506
|
+
onClick: q(u)
|
|
2507
2507
|
}, {
|
|
2508
2508
|
default: et(() => [z(q(ge), { size: 20 })]),
|
|
2509
2509
|
_: 1
|
|
@@ -2511,40 +2511,40 @@ var Ga = { class: "td-header" }, Ka = { class: "td-header-left" }, qa = ["href"]
|
|
|
2511
2511
|
z(q(Xr)),
|
|
2512
2512
|
z(Aa, {
|
|
2513
2513
|
ref_key: "menuSearch",
|
|
2514
|
-
ref:
|
|
2515
|
-
query:
|
|
2516
|
-
"onUpdate:query":
|
|
2517
|
-
active:
|
|
2518
|
-
"onUpdate:active":
|
|
2519
|
-
onSelect: q(
|
|
2514
|
+
ref: g,
|
|
2515
|
+
query: d.value,
|
|
2516
|
+
"onUpdate:query": l[1] ||= (e) => d.value = e,
|
|
2517
|
+
active: p.value,
|
|
2518
|
+
"onUpdate:active": l[2] ||= (e) => p.value = e,
|
|
2519
|
+
onSelect: q(u)
|
|
2520
2520
|
}, null, 8, [
|
|
2521
2521
|
"query",
|
|
2522
2522
|
"active",
|
|
2523
2523
|
"onSelect"
|
|
2524
2524
|
]),
|
|
2525
|
-
|
|
2525
|
+
p.value ? F("", !0) : (H(), I("nav", eo, [s.value ? (H(), P(kr, {
|
|
2526
2526
|
key: 1,
|
|
2527
|
-
tree: q(
|
|
2527
|
+
tree: q(o).contentTree
|
|
2528
2528
|
}, null, 8, ["tree"])) : (H(), P(ha, { key: 0 }))]))
|
|
2529
2529
|
], 6),
|
|
2530
2530
|
L("div", to, [L("nav", {
|
|
2531
2531
|
class: "td-sidebar-left",
|
|
2532
2532
|
"data-testid": "sidebar",
|
|
2533
2533
|
"aria-label": "Site navigation",
|
|
2534
|
-
style: ze({ width: `${
|
|
2534
|
+
style: ze({ width: `${v.value}px` })
|
|
2535
2535
|
}, [
|
|
2536
2536
|
z(Aa, {
|
|
2537
2537
|
ref_key: "sidebarSearch",
|
|
2538
|
-
ref:
|
|
2539
|
-
query:
|
|
2540
|
-
"onUpdate:query":
|
|
2541
|
-
active:
|
|
2542
|
-
"onUpdate:active":
|
|
2538
|
+
ref: h,
|
|
2539
|
+
query: d.value,
|
|
2540
|
+
"onUpdate:query": l[3] ||= (e) => d.value = e,
|
|
2541
|
+
active: f.value,
|
|
2542
|
+
"onUpdate:active": l[4] ||= (e) => f.value = e,
|
|
2543
2543
|
class: "td-sidebar-search"
|
|
2544
2544
|
}, null, 8, ["query", "active"]),
|
|
2545
|
-
L("div", no, [!
|
|
2545
|
+
L("div", no, [!f.value && !s.value ? (H(), P(ha, { key: 0 })) : f.value ? F("", !0) : (H(), P(kr, {
|
|
2546
2546
|
key: 1,
|
|
2547
|
-
tree: q(
|
|
2547
|
+
tree: q(o).contentTree
|
|
2548
2548
|
}, null, 8, ["tree"]))]),
|
|
2549
2549
|
L("div", {
|
|
2550
2550
|
class: "td-resize-handle",
|
|
@@ -2552,27 +2552,27 @@ var Ga = { class: "td-header" }, Ka = { class: "td-header-left" }, qa = ["href"]
|
|
|
2552
2552
|
"aria-orientation": "vertical",
|
|
2553
2553
|
"aria-label": "Resize sidebar",
|
|
2554
2554
|
tabindex: "0",
|
|
2555
|
-
onPointerdown: rt(
|
|
2556
|
-
onKeydown: [nt(rt(
|
|
2555
|
+
onPointerdown: rt(x, ["prevent"]),
|
|
2556
|
+
onKeydown: [nt(rt(S, ["prevent"]), ["left"]), nt(rt(y, ["prevent"]), ["right"])]
|
|
2557
2557
|
}, null, 40, ro)
|
|
2558
2558
|
], 4), L("div", io, [L("main", ao, [L("article", oo, [
|
|
2559
|
-
q(
|
|
2560
|
-
|
|
2561
|
-
q(
|
|
2559
|
+
q(n).schema ? (H(), I("div", so, K(q(n).schemaLabel ?? q(n).schema), 1)) : F("", !0),
|
|
2560
|
+
r.value ? (H(), I("div", co, [(H(), P(G(r.value), { size: 32 }))])) : F("", !0),
|
|
2561
|
+
q(t) ? (H(), I("h1", {
|
|
2562
2562
|
key: 2,
|
|
2563
2563
|
class: "td-page-title",
|
|
2564
|
-
innerHTML: q(Ct)(q(
|
|
2564
|
+
innerHTML: q(Ct)(q(t))
|
|
2565
2565
|
}, null, 8, lo)) : F("", !0),
|
|
2566
|
-
q(
|
|
2566
|
+
q(n).metadata ? (H(), I("div", uo, [L("span", null, K(q(b)(q(n).metadata.mtime, "Modified")), 1), q(n).metadata.ctime === q(n).metadata.mtime ? F("", !0) : (H(), I("span", fo, " · " + K(q(b)(q(n).metadata.ctime, "Created")), 1))])) : F("", !0),
|
|
2567
2567
|
z(q(Bi), {
|
|
2568
2568
|
class: "td-frontmatter-inline",
|
|
2569
|
-
schema: q(
|
|
2570
|
-
frontmatter: q(
|
|
2569
|
+
schema: q(n).schema,
|
|
2570
|
+
frontmatter: q(n).frontmatter
|
|
2571
2571
|
}, null, 8, ["schema", "frontmatter"]),
|
|
2572
|
-
q(
|
|
2572
|
+
q(n).headings.length > 0 ? (H(), P(da, {
|
|
2573
2573
|
key: 4,
|
|
2574
2574
|
class: "td-toc-inline",
|
|
2575
|
-
headings: q(
|
|
2575
|
+
headings: q(n).headings,
|
|
2576
2576
|
static: ""
|
|
2577
2577
|
}, null, 8, ["headings"])) : F("", !0),
|
|
2578
2578
|
L("div", po, [z(q(Ce))]),
|
|
@@ -2583,15 +2583,15 @@ var Ga = { class: "td-header" }, Ka = { class: "td-header-left" }, qa = ["href"]
|
|
|
2583
2583
|
}
|
|
2584
2584
|
}), [["__scopeId", "data-v-5b2a8a69"]]), yo = { class: "pt-16 pb-24" }, bo = ["href"], xo = /* @__PURE__ */ B({
|
|
2585
2585
|
__name: "TdNotFound",
|
|
2586
|
-
setup(
|
|
2587
|
-
let { withBase:
|
|
2588
|
-
return (
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2586
|
+
setup(e) {
|
|
2587
|
+
let { withBase: t } = j();
|
|
2588
|
+
return (e, n) => (H(), I("div", yo, [
|
|
2589
|
+
n[0] ||= L("p", { class: "text-td-4xl font-extrabold leading-none tracking-td-tight text-td-fg-muted" }, " 404 ", -1),
|
|
2590
|
+
n[1] ||= L("h1", { class: "text-td-xl font-extrabold leading-td-tight tracking-td-tight mt-4" }, " Page Not Found ", -1),
|
|
2591
|
+
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),
|
|
2592
2592
|
L("a", {
|
|
2593
2593
|
class: "inline-flex items-center mt-6 text-td-accent text-td-sm font-extrabold tracking-td-tight hover:text-td-accent-hi",
|
|
2594
|
-
href: q(
|
|
2594
|
+
href: q(t)(q(C)("/"))
|
|
2595
2595
|
}, "Go Home", 8, bo)
|
|
2596
2596
|
]));
|
|
2597
2597
|
}
|