typerighter 0.38.1 → 0.40.1
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-Bnln5XCo.js → app-GI_8rzn8.js} +339 -338
- package/dist/{cli-DEOw0tox.js → cli-CPY9dpTQ.js} +28 -26
- package/dist/cli.js +1 -1
- package/dist/client/app/index.d.ts +8 -0
- package/dist/client/app/index.d.ts.map +1 -1
- package/dist/client/theme-default.js +174 -174
- package/dist/client.js +1 -1
- package/dist/context-CNTdcpo4.js +192 -0
- package/dist/index.js +3 -3
- package/dist/{init-BhEVxNbG.js → init-YypOGdjI.js} +9 -6
- package/dist/jsonld-e_0GNJdS.js +84 -0
- package/dist/node/build/index.d.ts.map +1 -1
- package/dist/node/build/prerender.d.ts +21 -0
- package/dist/node/build/prerender.d.ts.map +1 -1
- package/dist/node/build/prerenderWorker.d.ts +2 -0
- package/dist/node/build/prerenderWorker.d.ts.map +1 -0
- package/dist/node/build/seo/feed.d.ts +3 -0
- package/dist/node/build/seo/feed.d.ts.map +1 -0
- package/dist/node/build/seo/index.d.ts +5 -0
- package/dist/node/build/seo/index.d.ts.map +1 -0
- package/dist/node/build/seo/jsonld.d.ts +10 -0
- package/dist/node/build/seo/jsonld.d.ts.map +1 -0
- package/dist/node/build/seo/page.d.ts +6 -0
- package/dist/node/build/seo/page.d.ts.map +1 -0
- package/dist/node/build/seo/sitemap.d.ts +3 -0
- package/dist/node/build/seo/sitemap.d.ts.map +1 -0
- package/dist/node/cli/index.d.ts.map +1 -1
- package/dist/node/lib/htmlTemplate.d.ts +30 -0
- package/dist/node/lib/htmlTemplate.d.ts.map +1 -0
- package/dist/node/lib/render/vue.d.ts.map +1 -1
- package/dist/node/lib/worker-pool/index.d.ts +21 -0
- package/dist/node/lib/worker-pool/index.d.ts.map +1 -0
- package/dist/node/plugin/vite/virtual/app.d.ts +2 -0
- package/dist/node/plugin/vite/virtual/app.d.ts.map +1 -1
- package/dist/prerenderWorker.js +39 -0
- package/dist/rolldown-runtime-B0aSnxlc.js +20 -0
- package/dist/shared/constants.d.ts.map +1 -1
- package/dist/shared/types/ssg.d.ts +6 -0
- package/dist/shared/types/ssg.d.ts.map +1 -1
- package/dist/shared/utils/time.d.ts +1 -0
- package/dist/shared/utils/time.d.ts.map +1 -1
- package/dist/shared/utils/url.d.ts +1 -0
- package/dist/shared/utils/url.d.ts.map +1 -1
- package/dist/{shared-l3GF0JOc.js → shared-LPNgvigl.js} +111 -120
- package/dist/shared.js +2 -2
- package/dist/{vite-DACnySpv.js → vite-Djs3IU9Y.js} +508 -587
- package/dist/vite.js +1 -1
- package/package.json +7 -7
- package/dist/node/lib/html-template.d.ts +0 -22
- package/dist/node/lib/html-template.d.ts.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as e, D as t, F as n, I as r, J as i, M as a, O as o, P as s, S as c, T as l, U as u, Y as d, _ as f, a as p, c as m, f as h, g, k as _, l as v, n as y, p as b, r as x, s as S, v as C, y as w } from "../shared-LPNgvigl.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-GI_8rzn8.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({
|
|
@@ -178,15 +178,15 @@ var it = D({
|
|
|
178
178
|
function Ct(e) {
|
|
179
179
|
let t = 0, n = "";
|
|
180
180
|
for (let r of e.matchAll(St)) {
|
|
181
|
-
if (n +=
|
|
181
|
+
if (n += m(e.slice(t, r.index)), r[1] !== void 0) n += `<code>${m(r[1])}</code>`;
|
|
182
182
|
else if (r[2] !== void 0) try {
|
|
183
183
|
n += T.renderToString(r[2], { throwOnError: !1 });
|
|
184
184
|
} catch {
|
|
185
|
-
n +=
|
|
185
|
+
n += m(r[0]);
|
|
186
186
|
}
|
|
187
187
|
t = r.index + r[0].length;
|
|
188
188
|
}
|
|
189
|
-
return n +=
|
|
189
|
+
return n += m(e.slice(t)), n;
|
|
190
190
|
}
|
|
191
191
|
//#endregion
|
|
192
192
|
//#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
@@ -1046,63 +1046,63 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
|
1046
1046
|
urlPrefix: { default: "" }
|
|
1047
1047
|
},
|
|
1048
1048
|
setup(t) {
|
|
1049
|
-
let n = O(), { withBase: r } = j(), i = N(() =>
|
|
1050
|
-
function
|
|
1049
|
+
let n = O(), { withBase: r } = j(), i = N(() => c(t.urlPrefix, t.node.name)), a = N(() => g(t.node)), s = N(() => a.value ? l(a.value.filepath) : e(i.value)), d = N(() => r(s.value)), f = N(() => a.value?.label ?? u(t.node.name)), m = N(() => a.value?.icon ? k(a.value.icon.name) : void 0), h = N(() => t.node.entries.filter((e) => e.kind === "dir" || !w(e.item.filepath))), _ = N(() => 0 < t.node.entries.length), v = N(() => y(t.node));
|
|
1050
|
+
function y(e) {
|
|
1051
1051
|
let t = 0;
|
|
1052
|
-
for (let n of e.entries) n.kind === "file" ? t++ : t +=
|
|
1052
|
+
for (let n of e.entries) n.kind === "file" ? t++ : t += y(n.node);
|
|
1053
1053
|
return t;
|
|
1054
1054
|
}
|
|
1055
|
-
let
|
|
1056
|
-
if (
|
|
1055
|
+
let b = U(!o(i.value, n.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
|
+
if (x.value) return h.value;
|
|
1057
1057
|
let e = 0;
|
|
1058
|
-
return
|
|
1058
|
+
return h.value.filter((t) => t.kind === "dir" || ++e <= xr);
|
|
1059
1059
|
});
|
|
1060
|
-
J(() => n.path, (
|
|
1061
|
-
|
|
1060
|
+
J(() => n.path, (e) => {
|
|
1061
|
+
o(i.value, e) && (b.value = !1);
|
|
1062
1062
|
});
|
|
1063
1063
|
function ne() {
|
|
1064
|
-
|
|
1064
|
+
x.value = !0;
|
|
1065
1065
|
}
|
|
1066
1066
|
function E(e) {
|
|
1067
1067
|
return n.path === e;
|
|
1068
1068
|
}
|
|
1069
1069
|
function re() {
|
|
1070
|
-
|
|
1070
|
+
b.value = !b.value;
|
|
1071
1071
|
}
|
|
1072
1072
|
return (e, t) => {
|
|
1073
1073
|
let n = Ke("TdTreeNode", !0);
|
|
1074
|
-
return
|
|
1074
|
+
return _.value ? (H(), I("div", fr, [L("div", pr, [
|
|
1075
1075
|
L("button", {
|
|
1076
1076
|
type: "button",
|
|
1077
1077
|
class: "td-tree-toggle",
|
|
1078
|
-
"aria-expanded": !
|
|
1078
|
+
"aria-expanded": !b.value,
|
|
1079
1079
|
onClick: re
|
|
1080
1080
|
}, [z(q(te), {
|
|
1081
1081
|
size: 14,
|
|
1082
|
-
class: V(["td-tree-caret", { "is-collapsed":
|
|
1083
|
-
}, null, 8, ["class"]), L("span", hr, K(
|
|
1082
|
+
class: V(["td-tree-caret", { "is-collapsed": b.value }])
|
|
1083
|
+
}, null, 8, ["class"]), L("span", hr, K(f.value), 1)], 8, mr),
|
|
1084
1084
|
L("a", {
|
|
1085
|
-
href:
|
|
1086
|
-
class: V(["td-tree-index-btn", { "is-active": E(
|
|
1087
|
-
}, [
|
|
1085
|
+
href: d.value,
|
|
1086
|
+
class: V(["td-tree-index-btn", { "is-active": E(s.value) }])
|
|
1087
|
+
}, [m.value ? (H(), P(G(m.value), {
|
|
1088
1088
|
key: 0,
|
|
1089
1089
|
size: 12
|
|
1090
|
-
})) : E(
|
|
1090
|
+
})) : E(s.value) ? (H(), P(q(ct), {
|
|
1091
1091
|
key: 1,
|
|
1092
1092
|
size: 12
|
|
1093
1093
|
})) : (H(), P(q(Ee), {
|
|
1094
1094
|
key: 2,
|
|
1095
1095
|
size: 12
|
|
1096
1096
|
}))], 10, gr),
|
|
1097
|
-
L("span", _r, K(
|
|
1098
|
-
]), L("div", { class: V(["td-collapse td-tree-children", { "is-collapsed":
|
|
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(n, {
|
|
1099
1099
|
key: 0,
|
|
1100
1100
|
node: e.node,
|
|
1101
1101
|
"url-prefix": i.value
|
|
1102
1102
|
}, null, 8, ["node", "url-prefix"])) : (H(), I("a", {
|
|
1103
1103
|
key: 1,
|
|
1104
|
-
href: q(r)(q(
|
|
1105
|
-
class: V(["td-tree-link", { "is-active": E(q(
|
|
1104
|
+
href: q(r)(q(l)(e.item.filepath)),
|
|
1105
|
+
class: V(["td-tree-link", { "is-active": E(q(l)(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,13 +1115,13 @@ 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(C)(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(C)(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(
|
|
1124
|
-
], 10, vr))], 64))), 128)), T.value > 0 && !
|
|
1123
|
+
e.item.metadata ? (H(), I("span", br, K(q(p)(e.item.metadata.mtime)), 1)) : F("", !0)
|
|
1124
|
+
], 10, vr))], 64))), 128)), T.value > 0 && !x.value ? (H(), I("button", {
|
|
1125
1125
|
key: 0,
|
|
1126
1126
|
class: "td-tree-more",
|
|
1127
1127
|
type: "button",
|
|
@@ -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
|
|
1143
|
-
function
|
|
1144
|
-
return
|
|
1141
|
+
setup(t) {
|
|
1142
|
+
let n = O(), { withBase: r } = j(), i = N(() => t.tree.entries.find((e) => e.kind === "file" && w(e.item.filepath))?.item), a = N(() => t.tree.entries.filter((e) => e.kind === "dir" || !w(e.item.filepath)));
|
|
1143
|
+
function o(e) {
|
|
1144
|
+
return n.path === e;
|
|
1145
1145
|
}
|
|
1146
|
-
return (
|
|
1147
|
-
href: q(
|
|
1148
|
-
class: V(["td-root-link", { "is-active":
|
|
1146
|
+
return (t, n) => (H(), I("nav", Cr, [L("a", {
|
|
1147
|
+
href: q(r)(i.value ? q(l)(i.value.filepath) : q(e)("/")),
|
|
1148
|
+
class: V(["td-root-link", { "is-active": o(i.value ? q(l)(i.value.filepath) : q(e)("/")) }])
|
|
1149
1149
|
}, [
|
|
1150
1150
|
z(q(ne), {
|
|
1151
1151
|
size: 14,
|
|
1152
1152
|
class: "td-root-link-icon"
|
|
1153
1153
|
}),
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
], 10, wr), (H(!0), I(M, null, W(
|
|
1154
|
+
n[0] ||= L("span", { class: "td-root-link-text" }, "Overview", -1),
|
|
1155
|
+
i.value ? (H(), I("span", Tr, K(i.value.metadata ? q(p)(i.value.metadata.mtime) : ""), 1)) : F("", !0)
|
|
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(
|
|
1162
|
-
class: V(["td-root-link", { "is-active":
|
|
1161
|
+
href: q(r)(q(l)(e.item.filepath)),
|
|
1162
|
+
class: V(["td-root-link", { "is-active": o(q(l)(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(C)(e.item.filepath, e.item.label)), 1),
|
|
1174
|
+
e.item.metadata ? (H(), I("span", Or, K(q(p)(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,29 +1234,29 @@ 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(n) {
|
|
1238
|
+
let r = O(), { withBase: i } = j(), a = U(!1), o = N(() => {
|
|
1239
|
+
let n = s(r.path), a = [{
|
|
1240
1240
|
name: "Home",
|
|
1241
|
-
href: i(
|
|
1241
|
+
href: i(e("/"))
|
|
1242
1242
|
}];
|
|
1243
|
-
if (
|
|
1244
|
-
let o =
|
|
1245
|
-
for (let
|
|
1246
|
-
let
|
|
1243
|
+
if (n === "/") return a;
|
|
1244
|
+
let o = n.replace(/^\//, "").split("/"), c = t(n) ? o.slice(0, -1) : o;
|
|
1245
|
+
for (let t = 0; t < c.length; t++) {
|
|
1246
|
+
let n = "/" + c.slice(0, t + 1).join("/"), r = t === c.length - 1;
|
|
1247
1247
|
a.push({
|
|
1248
|
-
name: c
|
|
1249
|
-
href: i(
|
|
1248
|
+
name: u(c[t]),
|
|
1249
|
+
href: i(r ? n : e(n))
|
|
1250
1250
|
});
|
|
1251
1251
|
}
|
|
1252
1252
|
return a;
|
|
1253
|
-
}),
|
|
1254
|
-
return J(() =>
|
|
1253
|
+
}), c = N(() => Ur < o.value.length), l = N(() => o.value.slice(1, -2));
|
|
1254
|
+
return J(() => r.path, () => {
|
|
1255
1255
|
a.value = !1;
|
|
1256
1256
|
}), (e, t) => (H(), I("nav", Fr, [L("a", {
|
|
1257
1257
|
href: o.value[0].href,
|
|
1258
1258
|
class: "td-breadcrumb-link td-breadcrumb-home"
|
|
1259
|
-
}, K(o.value[0].name), 9, Ir),
|
|
1259
|
+
}, K(o.value[0].name), 9, Ir), c.value ? (H(), I(M, { key: 0 }, [
|
|
1260
1260
|
t[2] ||= L("span", {
|
|
1261
1261
|
class: "td-breadcrumb-sep",
|
|
1262
1262
|
"aria-hidden": "true"
|
|
@@ -1266,7 +1266,7 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
|
1266
1266
|
"onUpdate:open": t[0] ||= (e) => a.value = e
|
|
1267
1267
|
}, {
|
|
1268
1268
|
trigger: et(() => [L("button", Lr, [z(q(E), { size: 14 })])]),
|
|
1269
|
-
default: et(() => [(H(!0), I(M, null, W(
|
|
1269
|
+
default: et(() => [(H(!0), I(M, null, W(l.value, (e) => (H(), I("a", {
|
|
1270
1270
|
key: e.href,
|
|
1271
1271
|
href: e.href,
|
|
1272
1272
|
class: "td-breadcrumb-dropdown-item"
|
|
@@ -1302,15 +1302,15 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
|
1302
1302
|
setup(e) {
|
|
1303
1303
|
let t = j(), { withBase: n } = t, r = O();
|
|
1304
1304
|
function i(e) {
|
|
1305
|
-
return !
|
|
1305
|
+
return !_(e) && r.path.startsWith(n(e));
|
|
1306
1306
|
}
|
|
1307
1307
|
return (e, r) => q(t).nav?.length ? (H(), I("nav", Gr, [(H(!0), I(M, null, W(q(t).nav, (e) => (H(), I("a", {
|
|
1308
1308
|
key: e.link,
|
|
1309
|
-
href: q(
|
|
1310
|
-
target: q(
|
|
1311
|
-
rel: q(
|
|
1309
|
+
href: q(_)(e.link) ? e.link : q(n)(e.link),
|
|
1310
|
+
target: q(_)(e.link) ? "_blank" : void 0,
|
|
1311
|
+
rel: q(_)(e.link) ? "noopener noreferrer" : void 0,
|
|
1312
1312
|
class: V(["td-header-nav-link", { "is-active": i(e.link) }])
|
|
1313
|
-
}, [R(K(e.title), 1), q(
|
|
1313
|
+
}, [R(K(e.title), 1), q(_)(e.link) ? (H(), P(q(ae), {
|
|
1314
1314
|
key: 0,
|
|
1315
1315
|
size: 14
|
|
1316
1316
|
})) : F("", !0)], 10, Kr))), 128))])) : F("", !0);
|
|
@@ -1327,13 +1327,13 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
|
1327
1327
|
setup(e) {
|
|
1328
1328
|
let t = j(), { withBase: n } = t, r = O();
|
|
1329
1329
|
function i(e) {
|
|
1330
|
-
return !
|
|
1330
|
+
return !_(e) && r.path.startsWith(n(e));
|
|
1331
1331
|
}
|
|
1332
1332
|
return (e, r) => q(t).nav?.length ? (H(), I("nav", Jr, [(H(!0), I(M, null, W(q(t).nav, (e) => (H(), I("a", {
|
|
1333
1333
|
key: e.link,
|
|
1334
|
-
href: q(
|
|
1335
|
-
target: q(
|
|
1336
|
-
rel: q(
|
|
1334
|
+
href: q(_)(e.link) ? e.link : q(n)(e.link),
|
|
1335
|
+
target: q(_)(e.link) ? "_blank" : void 0,
|
|
1336
|
+
rel: q(_)(e.link) ? "noopener noreferrer" : void 0,
|
|
1337
1337
|
class: V(["td-menu-nav-item", { "is-active": i(e.link) }])
|
|
1338
1338
|
}, [
|
|
1339
1339
|
e.icon ? (H(), P(we, {
|
|
@@ -1342,7 +1342,7 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
|
1342
1342
|
size: 16
|
|
1343
1343
|
}, null, 8, ["name"])) : F("", !0),
|
|
1344
1344
|
L("span", null, K(e.title), 1),
|
|
1345
|
-
q(
|
|
1345
|
+
q(_)(e.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: n(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, r = t.$ref ?? t;
|
|
1389
|
+
if (typeof r.url != "string") return;
|
|
1390
|
+
let i = r.url, a = r.name ?? n(i), o = r.format ?? t.format;
|
|
1391
1391
|
return {
|
|
1392
|
-
url:
|
|
1392
|
+
url: i,
|
|
1393
1393
|
name: a,
|
|
1394
1394
|
format: o,
|
|
1395
|
-
icon:
|
|
1395
|
+
icon: r.icon,
|
|
1396
1396
|
isImage: ti({
|
|
1397
|
-
url:
|
|
1397
|
+
url: i,
|
|
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 = r(e.name || e.url).slice(1);
|
|
1406
1406
|
return t ? $r.has(t.toLowerCase()) : !1;
|
|
1407
1407
|
}
|
|
1408
1408
|
//#endregion
|
|
@@ -1420,7 +1420,7 @@ var ni = {
|
|
|
1420
1420
|
}
|
|
1421
1421
|
},
|
|
1422
1422
|
setup(e) {
|
|
1423
|
-
let { withBase: t } = j(), n = N(() => ei(e.value)), r = N(() => n.value?.icon ? k(n.value.icon.name) : void 0), i = N(() => n.value !== void 0 &&
|
|
1423
|
+
let { withBase: t } = j(), n = N(() => ei(e.value)), r = N(() => n.value?.icon ? k(n.value.icon.name) : void 0), i = N(() => n.value !== void 0 && _(n.value.url));
|
|
1424
1424
|
return (a, o) => n.value ? (H(), I("span", ni, [n.value.isImage ? (H(), I("a", {
|
|
1425
1425
|
key: 0,
|
|
1426
1426
|
href: q(t)(n.value.url),
|
|
@@ -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" ? y(String(t)) : String(t);
|
|
1582
1582
|
}
|
|
1583
1583
|
return (t, a) => i.value ? (H(), I("a", {
|
|
1584
1584
|
key: 0,
|
|
@@ -1652,7 +1652,7 @@ var bi = 5, xi = /*#__PURE__*/ A(/* @__PURE__ */ B({
|
|
|
1652
1652
|
let t = n.value, r = [], i = /* @__PURE__ */ new Set();
|
|
1653
1653
|
t && Object.keys(t).forEach((e) => i.add(e)), Object.keys(e.frontmatter).forEach((e) => i.add(e));
|
|
1654
1654
|
for (let n of i) {
|
|
1655
|
-
if (
|
|
1655
|
+
if (h(n)) continue;
|
|
1656
1656
|
let i = e.frontmatter[n];
|
|
1657
1657
|
if (i == null || Array.isArray(i) && i.length === 0) continue;
|
|
1658
1658
|
let a = t?.[n] ?? { widget: "text" };
|
|
@@ -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 c() {
|
|
1675
1675
|
o.value = !o.value;
|
|
1676
1676
|
}
|
|
1677
|
-
function
|
|
1677
|
+
function l() {
|
|
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: l
|
|
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(u)(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: c
|
|
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(u)(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);
|
|
@@ -1784,10 +1784,10 @@ function Wi() {
|
|
|
1784
1784
|
};
|
|
1785
1785
|
}
|
|
1786
1786
|
function Gi(e, t, n) {
|
|
1787
|
-
if (e.entries.some((e) => e.kind === "file" &&
|
|
1788
|
-
let t = [], r = e.entries.find((e) => e.kind === "file" &&
|
|
1787
|
+
if (e.entries.some((e) => e.kind === "file" && l(e.item.filepath) === t)) {
|
|
1788
|
+
let t = [], r = e.entries.find((e) => e.kind === "file" && w(e.item.filepath));
|
|
1789
1789
|
r && r.kind === "file" && t.push(qi(r.item, n));
|
|
1790
|
-
for (let n of e.entries) n.kind === "file" ?
|
|
1790
|
+
for (let n of e.entries) n.kind === "file" ? w(n.item.filepath) || t.push(qi(n.item)) : t.push(Ji(n.node, ""));
|
|
1791
1791
|
return {
|
|
1792
1792
|
pages: t,
|
|
1793
1793
|
groupName: ""
|
|
@@ -1800,14 +1800,14 @@ function Gi(e, t, n) {
|
|
|
1800
1800
|
}
|
|
1801
1801
|
}
|
|
1802
1802
|
function Ki(e, t, n, r) {
|
|
1803
|
-
let i =
|
|
1804
|
-
if (e.entries.some((e) => e.kind === "file" &&
|
|
1805
|
-
let t = [], n =
|
|
1803
|
+
let i = c(n, e.name);
|
|
1804
|
+
if (e.entries.some((e) => e.kind === "file" && l(e.item.filepath) === t)) {
|
|
1805
|
+
let t = [], n = g(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" ? w(n.item.filepath) || t.push(qi(n.item)) : t.push(Ji(n.node, i));
|
|
1808
1808
|
return {
|
|
1809
1809
|
pages: t,
|
|
1810
|
-
groupName:
|
|
1810
|
+
groupName: u(e.name)
|
|
1811
1811
|
};
|
|
1812
1812
|
}
|
|
1813
1813
|
for (let n of e.entries) {
|
|
@@ -1817,17 +1817,17 @@ function Ki(e, t, n, r) {
|
|
|
1817
1817
|
}
|
|
1818
1818
|
}
|
|
1819
1819
|
function qi(e, t) {
|
|
1820
|
-
let n = e.label === void 0 ? t === void 0 ?
|
|
1820
|
+
let n = e.label === void 0 ? t === void 0 ? C(e.filepath) : f(e.filepath, t) : e.label;
|
|
1821
1821
|
return {
|
|
1822
|
-
url:
|
|
1822
|
+
url: l(e.filepath),
|
|
1823
1823
|
title: n
|
|
1824
1824
|
};
|
|
1825
1825
|
}
|
|
1826
|
-
function Ji(
|
|
1827
|
-
let
|
|
1826
|
+
function Ji(t, n) {
|
|
1827
|
+
let r = c(n, t.name), i = g(t);
|
|
1828
1828
|
return {
|
|
1829
|
-
url:
|
|
1830
|
-
title:
|
|
1829
|
+
url: i ? l(i.filepath) : e(r),
|
|
1830
|
+
title: i ? C(i.filepath, i.label) : u(t.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(v)(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({
|
|
@@ -1997,15 +1997,15 @@ var ca = {
|
|
|
1997
1997
|
}
|
|
1998
1998
|
}), [["__scopeId", "data-v-b61b97da"]]), va = 120;
|
|
1999
1999
|
function ya() {
|
|
2000
|
-
let e = be(), t,
|
|
2000
|
+
let e = be(), t, n = Je([]), r = Je(!1);
|
|
2001
2001
|
J(e, () => {
|
|
2002
2002
|
t = void 0;
|
|
2003
2003
|
});
|
|
2004
2004
|
function a() {
|
|
2005
2005
|
if (t) return t;
|
|
2006
2006
|
if (e.value) return t = Fe(ee.loadJSON(e.value, {
|
|
2007
|
-
fields:
|
|
2008
|
-
storeFields:
|
|
2007
|
+
fields: i,
|
|
2008
|
+
storeFields: d
|
|
2009
2009
|
})), t;
|
|
2010
2010
|
}
|
|
2011
2011
|
function o(e, t) {
|
|
@@ -2023,10 +2023,10 @@ function ya() {
|
|
|
2023
2023
|
async function s(e) {
|
|
2024
2024
|
let t = a();
|
|
2025
2025
|
if (!t) {
|
|
2026
|
-
|
|
2026
|
+
r.value = !1;
|
|
2027
2027
|
return;
|
|
2028
2028
|
}
|
|
2029
|
-
let
|
|
2029
|
+
let i = t.search(e, {
|
|
2030
2030
|
prefix: !0,
|
|
2031
2031
|
fuzzy: (e) => 3 < e.length && .2,
|
|
2032
2032
|
boost: {
|
|
@@ -2034,32 +2034,32 @@ function ya() {
|
|
|
2034
2034
|
text: 2
|
|
2035
2035
|
}
|
|
2036
2036
|
}).slice(0, 20);
|
|
2037
|
-
|
|
2037
|
+
n.value = i.map((e) => ({
|
|
2038
2038
|
id: e.id,
|
|
2039
2039
|
title: e.title,
|
|
2040
2040
|
excerpt: o(e.text ?? "", e.match),
|
|
2041
2041
|
score: e.score
|
|
2042
|
-
})),
|
|
2042
|
+
})), r.value = !1;
|
|
2043
2043
|
}
|
|
2044
|
-
let c =
|
|
2044
|
+
let c = b(s, 150);
|
|
2045
2045
|
function l(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
|
-
|
|
2051
|
+
r.value = !0, c(t);
|
|
2052
2052
|
}
|
|
2053
2053
|
function u() {
|
|
2054
|
-
|
|
2054
|
+
r.value = !1;
|
|
2055
2055
|
}
|
|
2056
|
-
let
|
|
2056
|
+
let f = Je(!1);
|
|
2057
2057
|
return J(e, (e) => {
|
|
2058
|
-
e && (
|
|
2058
|
+
e && (f.value = !0);
|
|
2059
2059
|
}, { immediate: !0 }), {
|
|
2060
|
-
results:
|
|
2061
|
-
searching:
|
|
2062
|
-
indexLoaded:
|
|
2060
|
+
results: n,
|
|
2061
|
+
searching: r,
|
|
2062
|
+
indexLoaded: f,
|
|
2063
2063
|
search: l,
|
|
2064
2064
|
cancel: u
|
|
2065
2065
|
};
|
|
@@ -2067,10 +2067,10 @@ function ya() {
|
|
|
2067
2067
|
//#endregion
|
|
2068
2068
|
//#region src/client/theme-default/components/TdSiteSearch/highlight.ts
|
|
2069
2069
|
function ba(e, t) {
|
|
2070
|
-
if (!e || !t) return
|
|
2071
|
-
let n = t.trim().split(/\s+/).filter(Boolean), r =
|
|
2070
|
+
if (!e || !t) return m(e);
|
|
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(`(${S(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"), o = n, s = O(), { withBase: c } = j(), { results: l, 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
2104
|
for (let n of l.value) {
|
|
2105
|
-
let r =
|
|
2105
|
+
let r = a(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: u(n),
|
|
2111
2111
|
results: []
|
|
2112
2112
|
}, t.set(r, i), e.push(i);
|
|
2113
2113
|
}
|
|
@@ -2115,10 +2115,10 @@ var xa = { class: "td-search" }, Sa = { class: "td-search-input-wrap" }, Ca = {
|
|
|
2115
2115
|
}
|
|
2116
2116
|
return e;
|
|
2117
2117
|
});
|
|
2118
|
-
J(
|
|
2118
|
+
J(g, (e) => {
|
|
2119
2119
|
r.value = e;
|
|
2120
2120
|
}), J(i, (e, t, n) => {
|
|
2121
|
-
n(() =>
|
|
2121
|
+
n(() => m()), h.value = 0, p(e);
|
|
2122
2122
|
});
|
|
2123
2123
|
function v() {
|
|
2124
2124
|
i.value = "";
|
|
@@ -2131,18 +2131,18 @@ var xa = { class: "td-search" }, Sa = { class: "td-search-input-wrap" }, Ca = {
|
|
|
2131
2131
|
function x(e) {
|
|
2132
2132
|
let t = b.value.size;
|
|
2133
2133
|
if (t !== 0) {
|
|
2134
|
-
if (e.key === "ArrowDown") e.preventDefault(),
|
|
2135
|
-
else if (e.key === "ArrowUp") e.preventDefault(),
|
|
2136
|
-
else if (e.key === "Enter" && 0 <=
|
|
2134
|
+
if (e.key === "ArrowDown") e.preventDefault(), h.value = (h.value + 1) % t, C();
|
|
2135
|
+
else if (e.key === "ArrowUp") e.preventDefault(), h.value = (h.value - 1 + t) % t, C();
|
|
2136
|
+
else if (e.key === "Enter" && 0 <= h.value) {
|
|
2137
2137
|
e.preventDefault();
|
|
2138
|
-
let t = y.value[
|
|
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(c(t.id))}"]`)?.click();
|
|
2141
2141
|
}
|
|
2142
2142
|
}
|
|
2143
2143
|
}
|
|
2144
2144
|
function S() {
|
|
2145
|
-
|
|
2145
|
+
o("select");
|
|
2146
2146
|
}
|
|
2147
2147
|
function C() {
|
|
2148
2148
|
requestAnimationFrame(() => {
|
|
@@ -2179,16 +2179,16 @@ var xa = { class: "td-search" }, Sa = { class: "td-search-input-wrap" }, Ca = {
|
|
|
2179
2179
|
placeholder: "Search...",
|
|
2180
2180
|
onKeydown: x
|
|
2181
2181
|
}, null, 544), [[Qe, i.value]]),
|
|
2182
|
-
!
|
|
2182
|
+
!g.value && !q(d) ? (H(), P(_a, {
|
|
2183
2183
|
key: 0,
|
|
2184
2184
|
keys: [q($).Meta, q($).k],
|
|
2185
2185
|
class: "td-search-kbd"
|
|
2186
2186
|
}, null, 8, ["keys"])) : F("", !0),
|
|
2187
|
-
q(
|
|
2187
|
+
q(d) || !q(f) ? (H(), P(q(lt), {
|
|
2188
2188
|
key: 1,
|
|
2189
2189
|
size: 12,
|
|
2190
2190
|
class: "td-search-spinner"
|
|
2191
|
-
})) :
|
|
2191
|
+
})) : g.value ? (H(), I("span", Ca, K(q(l).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
|
-
|
|
2200
|
+
g.value && q(l).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(c)(e.id),
|
|
2206
2206
|
class: V(["td-search-result", {
|
|
2207
|
-
"is-selected": b.value.get(e.id) ===
|
|
2208
|
-
"is-current": q(
|
|
2207
|
+
"is-selected": b.value.get(e.id) === h.value,
|
|
2208
|
+
"is-current": q(c)(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
|
-
|
|
2223
|
+
g.value && q(l).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,11 +2411,11 @@ 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(t) {
|
|
2415
|
+
let { title: n, page: r } = fe(), i = N(() => {
|
|
2416
|
+
let e = r.value.icon;
|
|
2417
2417
|
return e ? k(e.name) : void 0;
|
|
2418
|
-
}),
|
|
2418
|
+
}), a = j(), { withBase: o } = a, s = _e(), c = N(() => s.value.ready), { isOpen: l, open: u, close: d } = Hi(), f = U(""), p = U(!1), m = U(!1), h = O();
|
|
2419
2419
|
J(() => h.path, () => d()), Ma(), Ua();
|
|
2420
2420
|
let g = Ze("sidebarSearch"), _ = Ze("menuSearch");
|
|
2421
2421
|
function v() {
|
|
@@ -2427,13 +2427,13 @@ var Ga = { class: "td-header" }, Ka = { class: "td-header-left" }, qa = ["href"]
|
|
|
2427
2427
|
}
|
|
2428
2428
|
Pa([$.Control, $.k], v), Pa([$.Meta, $.k], v), $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 = n.value, t = a.title;
|
|
2431
|
+
document.title = e && e !== t ? `${e} - ${t}` : t;
|
|
2432
|
+
let i = r.value.frontmatter?.description === void 0 ? a.description ?? "" : String(r.value.frontmatter.description), o = document.querySelector("meta[name=\"description\"]");
|
|
2433
|
+
o && o.setAttribute("content", i);
|
|
2434
2434
|
}), za();
|
|
2435
2435
|
let y = U(typeof localStorage < "u" && Number(localStorage.getItem(_o)) || go);
|
|
2436
|
-
function
|
|
2436
|
+
function b() {
|
|
2437
2437
|
y.value = Math.min(ho, y.value + 20);
|
|
2438
2438
|
}
|
|
2439
2439
|
function S(e) {
|
|
@@ -2451,7 +2451,7 @@ var Ga = { class: "td-header" }, Ka = { class: "td-header-left" }, qa = ["href"]
|
|
|
2451
2451
|
function C() {
|
|
2452
2452
|
y.value = Math.max(mo, y.value - 20);
|
|
2453
2453
|
}
|
|
2454
|
-
return (
|
|
2454
|
+
return (t, u) => (H(), I("div", null, [
|
|
2455
2455
|
u[6] ||= L("a", {
|
|
2456
2456
|
href: "#td-content",
|
|
2457
2457
|
class: "td-skip-link"
|
|
@@ -2460,15 +2460,15 @@ var Ga = { class: "td-header" }, Ka = { class: "td-header-left" }, qa = ["href"]
|
|
|
2460
2460
|
L("div", Ka, [
|
|
2461
2461
|
z(Ui, { onClick: v }),
|
|
2462
2462
|
L("a", {
|
|
2463
|
-
href: q(
|
|
2463
|
+
href: q(o)(q(e)("/")),
|
|
2464
2464
|
class: "td-brand"
|
|
2465
|
-
}, [z(yt), L("span", Ja, K(q(
|
|
2465
|
+
}, [z(yt), L("span", Ja, K(q(a).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(a).repo ? (H(), I("a", {
|
|
2470
2470
|
key: 0,
|
|
2471
|
-
href: q(
|
|
2471
|
+
href: q(a).repo,
|
|
2472
2472
|
target: "_blank",
|
|
2473
2473
|
rel: "noopener noreferrer",
|
|
2474
2474
|
class: "td-header-icon-link",
|
|
@@ -2499,9 +2499,9 @@ var Ga = { class: "td-header" }, Ka = { class: "td-header-left" }, qa = ["href"]
|
|
|
2499
2499
|
onPointerdown: rt(S, ["prevent"])
|
|
2500
2500
|
}, null, 32),
|
|
2501
2501
|
L("header", Za, [L("a", {
|
|
2502
|
-
href: q(
|
|
2502
|
+
href: q(o)(q(e)("/")),
|
|
2503
2503
|
class: "td-brand"
|
|
2504
|
-
}, [z(yt), L("span", $a, K(q(
|
|
2504
|
+
}, [z(yt), L("span", $a, K(q(a).title || "Typedown"), 1)], 8, Qa), z(xt, {
|
|
2505
2505
|
label: "Close menu",
|
|
2506
2506
|
onClick: q(d)
|
|
2507
2507
|
}, {
|
|
@@ -2524,7 +2524,7 @@ var Ga = { class: "td-header" }, Ka = { class: "td-header-left" }, qa = ["href"]
|
|
|
2524
2524
|
]),
|
|
2525
2525
|
m.value ? F("", !0) : (H(), I("nav", eo, [c.value ? (H(), P(kr, {
|
|
2526
2526
|
key: 1,
|
|
2527
|
-
tree: q(
|
|
2527
|
+
tree: q(s).contentTree
|
|
2528
2528
|
}, null, 8, ["tree"])) : (H(), P(ha, { key: 0 }))]))
|
|
2529
2529
|
], 6),
|
|
2530
2530
|
L("div", to, [L("nav", {
|
|
@@ -2544,7 +2544,7 @@ var Ga = { class: "td-header" }, Ka = { class: "td-header-left" }, qa = ["href"]
|
|
|
2544
2544
|
}, null, 8, ["query", "active"]),
|
|
2545
2545
|
L("div", no, [!p.value && !c.value ? (H(), P(ha, { key: 0 })) : p.value ? F("", !0) : (H(), P(kr, {
|
|
2546
2546
|
key: 1,
|
|
2547
|
-
tree: q(
|
|
2547
|
+
tree: q(s).contentTree
|
|
2548
2548
|
}, null, 8, ["tree"]))]),
|
|
2549
2549
|
L("div", {
|
|
2550
2550
|
class: "td-resize-handle",
|
|
@@ -2553,26 +2553,26 @@ var Ga = { class: "td-header" }, Ka = { class: "td-header-left" }, qa = ["href"]
|
|
|
2553
2553
|
"aria-label": "Resize sidebar",
|
|
2554
2554
|
tabindex: "0",
|
|
2555
2555
|
onPointerdown: rt(S, ["prevent"]),
|
|
2556
|
-
onKeydown: [nt(rt(C, ["prevent"]), ["left"]), nt(rt(
|
|
2556
|
+
onKeydown: [nt(rt(C, ["prevent"]), ["left"]), nt(rt(b, ["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(r).schema ? (H(), I("div", so, K(q(r).schemaLabel ?? q(r).schema), 1)) : F("", !0),
|
|
2560
|
+
i.value ? (H(), I("div", co, [(H(), P(G(i.value), { size: 32 }))])) : F("", !0),
|
|
2561
|
+
q(n) ? (H(), I("h1", {
|
|
2562
2562
|
key: 2,
|
|
2563
2563
|
class: "td-page-title",
|
|
2564
|
-
innerHTML: q(Ct)(q(
|
|
2564
|
+
innerHTML: q(Ct)(q(n))
|
|
2565
2565
|
}, null, 8, lo)) : F("", !0),
|
|
2566
|
-
q(
|
|
2566
|
+
q(r).metadata ? (H(), I("div", uo, [L("span", null, K(q(x)(q(r).metadata.mtime, "Modified")), 1), q(r).metadata.ctime === q(r).metadata.mtime ? F("", !0) : (H(), I("span", fo, " · " + K(q(x)(q(r).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(r).schema,
|
|
2570
|
+
frontmatter: q(r).frontmatter
|
|
2571
2571
|
}, null, 8, ["schema", "frontmatter"]),
|
|
2572
|
-
q(
|
|
2572
|
+
q(r).headings.length > 0 ? (H(), P(da, {
|
|
2573
2573
|
key: 4,
|
|
2574
2574
|
class: "td-toc-inline",
|
|
2575
|
-
headings: q(
|
|
2575
|
+
headings: q(r).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(t) {
|
|
2587
|
+
let { withBase: n } = j();
|
|
2588
|
+
return (t, r) => (H(), I("div", yo, [
|
|
2589
|
+
r[0] ||= L("p", { class: "text-td-4xl font-extrabold leading-none tracking-td-tight text-td-fg-muted" }, " 404 ", -1),
|
|
2590
|
+
r[1] ||= L("h1", { class: "text-td-xl font-extrabold leading-td-tight tracking-td-tight mt-4" }, " Page Not Found ", -1),
|
|
2591
|
+
r[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(n)(q(e)("/"))
|
|
2595
2595
|
}, "Go Home", 8, bo)
|
|
2596
2596
|
]));
|
|
2597
2597
|
}
|