typerighter 0.46.3 → 0.47.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.
|
@@ -3,7 +3,7 @@ import { t as T } from "../es-ClqUVRJn.js";
|
|
|
3
3
|
import { A as ee, C as te, D as ne, E, F as re, I as ie, L 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 me, f as he, g as ge, h as _e, i as ve, j as ye, k as be, m as k, n as xe, o as Se, p as Ce, r as A, s as we, u as Te, v as Ee, w as De, x as Oe, y as ke } from "../app-n56VkC5b.js";
|
|
4
4
|
import { a as Ae, i as je, n as Me, t as Ne } from "../brand-CG1fQshq.js";
|
|
5
5
|
import { t as Pe } from "../inlineRe-Cn-J_E76.js";
|
|
6
|
-
import { Fragment as j, Teleport as Fe, computed as M, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createTextVNode as L, createVNode as R, defineComponent as z, getCurrentScope as Ie, markRaw as Le, mergeModels as Re, mergeProps as ze, nextTick as Be, normalizeClass as B, normalizeStyle as Ve, onBeforeUnmount as He, onMounted as Ue, onScopeDispose as We, onUnmounted as
|
|
6
|
+
import { Fragment as j, Teleport as Fe, computed as M, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createTextVNode as L, createVNode as R, defineComponent as z, getCurrentScope as Ie, markRaw as Le, mergeModels as Re, mergeProps as ze, nextTick as Be, normalizeClass as B, normalizeStyle as Ve, onBeforeUnmount as He, onMounted as Ue, onScopeDispose as We, onUnmounted as V, openBlock as H, readonly as Ge, ref as U, renderList as W, renderSlot as G, resolveComponent as Ke, resolveDynamicComponent as qe, shallowReadonly as Je, shallowRef as Ye, toDisplayString as K, toValue as Xe, unref as q, useModel as Ze, useTemplateRef as Qe, vModelText as $e, watch as J, watchEffect as et, withCtx as tt, withDirectives as nt, withKeys as rt, withModifiers as it } from "vue";
|
|
7
7
|
var at = D({
|
|
8
8
|
name: "circle-dot",
|
|
9
9
|
size: 24,
|
|
@@ -140,7 +140,7 @@ var at = D({
|
|
|
140
140
|
__name: "TdBrandIcon",
|
|
141
141
|
props: { size: { default: 28 } },
|
|
142
142
|
setup(e) {
|
|
143
|
-
return (t, n) => (
|
|
143
|
+
return (t, n) => (H(), F("svg", {
|
|
144
144
|
fill: "none",
|
|
145
145
|
height: e.size,
|
|
146
146
|
width: e.size * 208 / 128,
|
|
@@ -167,12 +167,12 @@ var at = D({
|
|
|
167
167
|
__name: "TdButton",
|
|
168
168
|
props: { label: {} },
|
|
169
169
|
setup(e) {
|
|
170
|
-
return (t, n) => (
|
|
170
|
+
return (t, n) => (H(), F("button", {
|
|
171
171
|
type: "button",
|
|
172
172
|
class: "td-icon-btn",
|
|
173
173
|
title: e.label,
|
|
174
174
|
"aria-label": e.label
|
|
175
|
-
}, [
|
|
175
|
+
}, [G(t.$slots, "default", {}, void 0, !0)], 8, xt));
|
|
176
176
|
}
|
|
177
177
|
}), [["__scopeId", "data-v-b1861a4a"]]), Ct = Math.min, wt = Math.max, Tt = Math.round, Y = (e) => ({
|
|
178
178
|
x: e,
|
|
@@ -896,7 +896,7 @@ function cr(e, t) {
|
|
|
896
896
|
}
|
|
897
897
|
function lr(e, t, n) {
|
|
898
898
|
n === void 0 && (n = {});
|
|
899
|
-
let r = n.whileElementsMounted, i = M(() => Xe(n.open) ?? !0), a = M(() => Xe(n.middleware)), o = M(() => Xe(n.placement) ?? "bottom"), s = M(() => Xe(n.strategy) ?? "absolute"), c = M(() => Xe(n.transform) ?? !0), l = M(() => ar(e.value)), u = M(() => ar(t.value)), d =
|
|
899
|
+
let r = n.whileElementsMounted, i = M(() => Xe(n.open) ?? !0), a = M(() => Xe(n.middleware)), o = M(() => Xe(n.placement) ?? "bottom"), s = M(() => Xe(n.strategy) ?? "absolute"), c = M(() => Xe(n.transform) ?? !0), l = M(() => ar(e.value)), u = M(() => ar(t.value)), d = U(0), f = U(0), p = U(s.value), m = U(o.value), h = Ye({}), g = U(!1), _ = M(() => {
|
|
900
900
|
let e = {
|
|
901
901
|
position: p.value,
|
|
902
902
|
left: "0",
|
|
@@ -963,7 +963,7 @@ var ur = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
|
963
963
|
}
|
|
964
964
|
},
|
|
965
965
|
setup(e) {
|
|
966
|
-
let t = Qe("trigger"), n = Qe("tooltip"), r = Qe("arrowEl"), i =
|
|
966
|
+
let t = Qe("trigger"), n = Qe("tooltip"), r = Qe("arrowEl"), i = U(!1), a, o, { floatingStyles: s, middlewareData: c, placement: l } = lr(t, n, {
|
|
967
967
|
placement: "right",
|
|
968
968
|
middleware: [
|
|
969
969
|
$n(8),
|
|
@@ -987,14 +987,14 @@ var ur = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
|
987
987
|
i.value = !1;
|
|
988
988
|
}, 100);
|
|
989
989
|
}
|
|
990
|
-
return (r, a) => (
|
|
990
|
+
return (r, a) => (H(), F(j, null, [I("span", ze({
|
|
991
991
|
ref_key: "trigger",
|
|
992
992
|
ref: t
|
|
993
993
|
}, r.$attrs, {
|
|
994
994
|
class: "td-tooltip-trigger",
|
|
995
995
|
onMouseenter: d,
|
|
996
996
|
onMouseleave: f
|
|
997
|
-
}), [
|
|
997
|
+
}), [G(r.$slots, "default", {}, void 0, !0)], 16), (H(), N(Fe, { to: "body" }, [i.value ? (H(), F("div", {
|
|
998
998
|
key: 0,
|
|
999
999
|
ref_key: "tooltip",
|
|
1000
1000
|
ref: n,
|
|
@@ -1020,7 +1020,7 @@ var ur = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
|
1020
1020
|
//#endregion
|
|
1021
1021
|
//#region src/client/theme-default/utils/renderInlineMarkup.ts
|
|
1022
1022
|
function dr(e) {
|
|
1023
|
-
let t =
|
|
1023
|
+
let t = U(fr(e()));
|
|
1024
1024
|
return et((n) => {
|
|
1025
1025
|
let r = e();
|
|
1026
1026
|
if (!r.includes("$")) {
|
|
@@ -1047,7 +1047,7 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
|
1047
1047
|
props: { text: {} },
|
|
1048
1048
|
setup(e) {
|
|
1049
1049
|
let t = dr(() => e.text);
|
|
1050
|
-
return (e, n) => (
|
|
1050
|
+
return (e, n) => (H(), F("span", { innerHTML: q(t) }, null, 8, pr));
|
|
1051
1051
|
}
|
|
1052
1052
|
}), hr = ["aria-expanded"], gr = { class: "td-tree-label-text" }, _r = ["href"], vr = { class: "td-tree-count" }, yr = ["href"], br = ["href"], xr = {
|
|
1053
1053
|
key: 2,
|
|
@@ -1065,7 +1065,7 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
|
1065
1065
|
for (let n of e.entries) n.kind === "file" ? t++ : t += y(n.node);
|
|
1066
1066
|
return t;
|
|
1067
1067
|
}
|
|
1068
|
-
let b =
|
|
1068
|
+
let b = U(!m(a.value, r.path)), x = U(!1), S = M(() => h.value.filter((e) => e.kind === "file").length), T = M(() => x.value ? 0 : Math.max(0, S.value - Sr)), te = M(() => {
|
|
1069
1069
|
if (x.value) return h.value;
|
|
1070
1070
|
let e = 0;
|
|
1071
1071
|
return h.value.filter((t) => t.kind === "dir" || ++e <= Sr);
|
|
@@ -1086,8 +1086,8 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
|
1086
1086
|
b.value = !b.value;
|
|
1087
1087
|
}
|
|
1088
1088
|
return (e, t) => {
|
|
1089
|
-
let r =
|
|
1090
|
-
return g.value ? (
|
|
1089
|
+
let r = Ke("TdTreeNode", !0);
|
|
1090
|
+
return g.value ? (H(), F("div", {
|
|
1091
1091
|
key: 0,
|
|
1092
1092
|
class: "td-tree-node",
|
|
1093
1093
|
role: "treeitem",
|
|
@@ -1112,13 +1112,13 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
|
1112
1112
|
href: d.value,
|
|
1113
1113
|
class: B(["td-tree-index-btn", { "is-active": E(s.value) }]),
|
|
1114
1114
|
onClick: t[0] ||= it(() => {}, ["stop"])
|
|
1115
|
-
}, [p.value ? (
|
|
1115
|
+
}, [p.value ? (H(), N(qe(p.value), {
|
|
1116
1116
|
key: 0,
|
|
1117
1117
|
size: 12
|
|
1118
|
-
})) : E(s.value) ? (
|
|
1118
|
+
})) : E(s.value) ? (H(), N(q(lt), {
|
|
1119
1119
|
key: 1,
|
|
1120
1120
|
size: 12
|
|
1121
|
-
})) : (
|
|
1121
|
+
})) : (H(), N(q(De), {
|
|
1122
1122
|
key: 2,
|
|
1123
1123
|
size: 12
|
|
1124
1124
|
}))], 10, _r)]),
|
|
@@ -1129,7 +1129,7 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
|
1129
1129
|
class: B(["td-collapse td-tree-children", { "is-collapsed": b.value }]),
|
|
1130
1130
|
role: "group"
|
|
1131
1131
|
}, [I("div", null, [
|
|
1132
|
-
o.value ? (
|
|
1132
|
+
o.value ? (H(), F("a", {
|
|
1133
1133
|
key: 0,
|
|
1134
1134
|
href: d.value,
|
|
1135
1135
|
class: B(["td-tree-link td-tree-index-entry", { "is-active": E(s.value) }])
|
|
@@ -1137,20 +1137,20 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
|
1137
1137
|
size: 14,
|
|
1138
1138
|
class: "td-tree-file-icon"
|
|
1139
1139
|
}), t[1] ||= I("span", { class: "td-tree-link-text" }, "Overview", -1)], 10, yr)) : P("", !0),
|
|
1140
|
-
(
|
|
1140
|
+
(H(!0), F(j, null, W(te.value, (e) => (H(), F(j, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (H(), N(r, {
|
|
1141
1141
|
key: 0,
|
|
1142
1142
|
node: e.node,
|
|
1143
1143
|
"url-prefix": a.value
|
|
1144
|
-
}, null, 8, ["node", "url-prefix"])) : (
|
|
1144
|
+
}, null, 8, ["node", "url-prefix"])) : (H(), F("a", {
|
|
1145
1145
|
key: 1,
|
|
1146
1146
|
href: q(i)(q(n)(e.item.filepath)),
|
|
1147
1147
|
class: B(["td-tree-link", { "is-active": E(q(n)(e.item.filepath)) }])
|
|
1148
1148
|
}, [
|
|
1149
|
-
e.item.icon && q(me)(e.item.icon.name) ? (
|
|
1149
|
+
e.item.icon && q(me)(e.item.icon.name) ? (H(), N(qe(q(me)(e.item.icon.name)), {
|
|
1150
1150
|
key: 0,
|
|
1151
1151
|
size: 14,
|
|
1152
1152
|
class: "td-tree-file-icon"
|
|
1153
|
-
})) : (
|
|
1153
|
+
})) : (H(), N(q(ue), {
|
|
1154
1154
|
key: 1,
|
|
1155
1155
|
size: 14,
|
|
1156
1156
|
class: "td-tree-file-icon"
|
|
@@ -1162,9 +1162,9 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
|
1162
1162
|
default: tt(() => [R(mr, { text: q(w)(e.item.filepath, e.item.label) }, null, 8, ["text"])]),
|
|
1163
1163
|
_: 2
|
|
1164
1164
|
}, 1032, ["text"]),
|
|
1165
|
-
e.item.fileMetadata ? (
|
|
1165
|
+
e.item.fileMetadata ? (H(), F("span", xr, K(q(l)(e.item.fileMetadata.mtime)), 1)) : P("", !0)
|
|
1166
1166
|
], 10, br))], 64))), 128)),
|
|
1167
|
-
T.value > 0 && !x.value ? (
|
|
1167
|
+
T.value > 0 && !x.value ? (H(), F("button", {
|
|
1168
1168
|
key: 1,
|
|
1169
1169
|
class: "td-tree-more",
|
|
1170
1170
|
type: "button",
|
|
@@ -1190,7 +1190,7 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
|
1190
1190
|
function o(e) {
|
|
1191
1191
|
return t.path === e;
|
|
1192
1192
|
}
|
|
1193
|
-
return (e, t) => (
|
|
1193
|
+
return (e, t) => (H(), F("nav", wr, [I("div", Tr, [I("a", {
|
|
1194
1194
|
href: q(r)(i.value ? q(n)(i.value.filepath) : q(C)("/")),
|
|
1195
1195
|
class: B(["td-root-link", { "is-active": o(i.value ? q(n)(i.value.filepath) : q(C)("/")) }]),
|
|
1196
1196
|
role: "treeitem"
|
|
@@ -1200,42 +1200,42 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
|
1200
1200
|
class: "td-root-link-icon"
|
|
1201
1201
|
}),
|
|
1202
1202
|
t[0] ||= I("span", { class: "td-root-link-text" }, "Overview", -1),
|
|
1203
|
-
i.value ? (
|
|
1204
|
-
], 10, Er), (
|
|
1203
|
+
i.value ? (H(), F("span", Dr, K(i.value.fileMetadata ? q(l)(i.value.fileMetadata.mtime) : ""), 1)) : P("", !0)
|
|
1204
|
+
], 10, Er), (H(!0), F(j, null, W(a.value, (e) => (H(), F(j, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (H(), N(Cr, {
|
|
1205
1205
|
key: 0,
|
|
1206
1206
|
node: e.node
|
|
1207
|
-
}, null, 8, ["node"])) : (
|
|
1207
|
+
}, null, 8, ["node"])) : (H(), F("a", {
|
|
1208
1208
|
key: 1,
|
|
1209
1209
|
href: q(r)(q(n)(e.item.filepath)),
|
|
1210
1210
|
class: B(["td-root-link", { "is-active": o(q(n)(e.item.filepath)) }]),
|
|
1211
1211
|
role: "treeitem"
|
|
1212
1212
|
}, [
|
|
1213
|
-
e.item.icon && q(me)(e.item.icon.name) ? (
|
|
1213
|
+
e.item.icon && q(me)(e.item.icon.name) ? (H(), N(qe(q(me)(e.item.icon.name)), {
|
|
1214
1214
|
key: 0,
|
|
1215
1215
|
size: 14,
|
|
1216
1216
|
class: "td-root-link-icon"
|
|
1217
|
-
})) : (
|
|
1217
|
+
})) : (H(), N(q(ue), {
|
|
1218
1218
|
key: 1,
|
|
1219
1219
|
size: 14,
|
|
1220
1220
|
class: "td-root-link-icon"
|
|
1221
1221
|
})),
|
|
1222
1222
|
I("span", kr, K(q(w)(e.item.filepath, e.item.label)), 1),
|
|
1223
|
-
e.item.fileMetadata ? (
|
|
1223
|
+
e.item.fileMetadata ? (H(), F("span", Ar, K(q(l)(e.item.fileMetadata.mtime)), 1)) : P("", !0)
|
|
1224
1224
|
], 10, Or))], 64))), 128))])]));
|
|
1225
1225
|
}
|
|
1226
1226
|
}), [["__scopeId", "data-v-d02f24f2"]]), Mr = { class: "td-footer" }, Nr = { key: 0 }, Pr = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
1227
1227
|
__name: "TdFooter",
|
|
1228
1228
|
setup(e) {
|
|
1229
1229
|
let t = A(), n = (/* @__PURE__ */ new Date()).getFullYear();
|
|
1230
|
-
return (e, r) => (
|
|
1230
|
+
return (e, r) => (H(), F("footer", Mr, [r[0] ||= I("span", null, [L(" Powered by "), I("a", {
|
|
1231
1231
|
href: "https://github.com/huydo862003/typerighter",
|
|
1232
1232
|
target: "_blank",
|
|
1233
1233
|
rel: "noopener noreferrer",
|
|
1234
1234
|
class: "td-footer-link"
|
|
1235
|
-
}, "Typerighter")], -1), q(t).author || q(t).license ? (
|
|
1236
|
-
q(t).license ? (
|
|
1237
|
-
q(t).license && q(t).author ? (
|
|
1238
|
-
q(t).author ? (
|
|
1235
|
+
}, "Typerighter")], -1), q(t).author || q(t).license ? (H(), F("span", Nr, [
|
|
1236
|
+
q(t).license ? (H(), F(j, { key: 0 }, [L(K(q(t).license), 1)], 64)) : P("", !0),
|
|
1237
|
+
q(t).license && q(t).author ? (H(), F(j, { key: 1 }, [L(" · ")], 64)) : P("", !0),
|
|
1238
|
+
q(t).author ? (H(), F(j, { key: 2 }, [L("© " + K(q(n)) + " " + K(q(t).author), 1)], 64)) : P("", !0)
|
|
1239
1239
|
])) : P("", !0)]));
|
|
1240
1240
|
}
|
|
1241
1241
|
}), [["__scopeId", "data-v-50e2a5bc"]]), Fr = {
|
|
@@ -1262,12 +1262,12 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
|
1262
1262
|
}
|
|
1263
1263
|
return J(t, (e) => {
|
|
1264
1264
|
typeof document < "u" && (e ? document.addEventListener("click", r) : document.removeEventListener("click", r));
|
|
1265
|
-
}),
|
|
1265
|
+
}), V(() => {
|
|
1266
1266
|
typeof document < "u" && document.removeEventListener("click", r);
|
|
1267
|
-
}), (e, r) => (
|
|
1267
|
+
}), (e, r) => (H(), F("span", ze({
|
|
1268
1268
|
ref_key: "wrapper",
|
|
1269
1269
|
ref: n
|
|
1270
|
-
}, e.$attrs, { class: "td-dropdown" }), [I("span", { onClick: i }, [
|
|
1270
|
+
}, e.$attrs, { class: "td-dropdown" }), [I("span", { onClick: i }, [G(e.$slots, "trigger", {}, void 0, !0)]), t.value ? (H(), F("div", Fr, [G(e.$slots, "default", {}, void 0, !0)])) : P("", !0)], 16));
|
|
1271
1271
|
}
|
|
1272
1272
|
}), [["__scopeId", "data-v-80759150"]]), Lr = {
|
|
1273
1273
|
class: "td-breadcrumb",
|
|
@@ -1284,7 +1284,7 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
|
1284
1284
|
}, Gr = 3, Kr = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
1285
1285
|
__name: "TdBreadcrumb",
|
|
1286
1286
|
setup(e) {
|
|
1287
|
-
let t = O(), { withBase: n } = A(), i =
|
|
1287
|
+
let t = O(), { withBase: n } = A(), i = U(!1), a = M(() => {
|
|
1288
1288
|
let e = r(t.path), i = [{
|
|
1289
1289
|
name: "Home",
|
|
1290
1290
|
href: n(C("/"))
|
|
@@ -1302,10 +1302,10 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
|
1302
1302
|
}), o = M(() => Gr < a.value.length), c = M(() => a.value.slice(1, -2));
|
|
1303
1303
|
return J(() => t.path, () => {
|
|
1304
1304
|
i.value = !1;
|
|
1305
|
-
}), (e, t) => (
|
|
1305
|
+
}), (e, t) => (H(), F("nav", Lr, [I("a", {
|
|
1306
1306
|
href: a.value[0].href,
|
|
1307
1307
|
class: "td-breadcrumb-link td-breadcrumb-home"
|
|
1308
|
-
}, K(a.value[0].name), 9, Rr), o.value ? (
|
|
1308
|
+
}, K(a.value[0].name), 9, Rr), o.value ? (H(), F(j, { key: 0 }, [
|
|
1309
1309
|
t[2] ||= I("span", {
|
|
1310
1310
|
class: "td-breadcrumb-sep",
|
|
1311
1311
|
"aria-hidden": "true"
|
|
@@ -1315,29 +1315,29 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
|
1315
1315
|
"onUpdate:open": t[0] ||= (e) => i.value = e
|
|
1316
1316
|
}, {
|
|
1317
1317
|
trigger: tt(() => [I("button", zr, [R(q(ne), { size: 14 })])]),
|
|
1318
|
-
default: tt(() => [(
|
|
1318
|
+
default: tt(() => [(H(!0), F(j, null, W(c.value, (e) => (H(), F("a", {
|
|
1319
1319
|
key: e.href,
|
|
1320
1320
|
href: e.href,
|
|
1321
1321
|
class: "td-breadcrumb-dropdown-item"
|
|
1322
1322
|
}, K(e.name), 9, Br))), 128))]),
|
|
1323
1323
|
_: 1
|
|
1324
1324
|
}, 8, ["open"]),
|
|
1325
|
-
(
|
|
1325
|
+
(H(!0), F(j, null, W(a.value.slice(-2), (e) => (H(), F(j, { key: e.href }, [t[1] ||= I("span", {
|
|
1326
1326
|
class: "td-breadcrumb-sep",
|
|
1327
1327
|
"aria-hidden": "true"
|
|
1328
|
-
}, "/", -1), e === a.value[a.value.length - 1] ? (
|
|
1328
|
+
}, "/", -1), e === a.value[a.value.length - 1] ? (H(), F("span", Hr, K(e.name), 1)) : (H(), F("a", {
|
|
1329
1329
|
key: 0,
|
|
1330
1330
|
href: e.href,
|
|
1331
1331
|
class: "td-breadcrumb-link"
|
|
1332
1332
|
}, K(e.name), 9, Vr))], 64))), 128))
|
|
1333
|
-
], 64)) : (
|
|
1333
|
+
], 64)) : (H(!0), F(j, { key: 1 }, W(a.value.slice(1), (e, n) => (H(), F(j, { key: e.href }, [t[3] ||= I("span", {
|
|
1334
1334
|
class: "td-breadcrumb-sep",
|
|
1335
1335
|
"aria-hidden": "true"
|
|
1336
|
-
}, "/", -1), n < a.value.length - 2 ? (
|
|
1336
|
+
}, "/", -1), n < a.value.length - 2 ? (H(), F("a", {
|
|
1337
1337
|
key: 0,
|
|
1338
1338
|
href: e.href,
|
|
1339
1339
|
class: "td-breadcrumb-link"
|
|
1340
|
-
}, K(e.name), 9, Ur)) : (
|
|
1340
|
+
}, K(e.name), 9, Ur)) : (H(), F("span", Wr, K(e.name), 1))], 64))), 128))]));
|
|
1341
1341
|
}
|
|
1342
1342
|
}), [["__scopeId", "data-v-3400a7c6"]]), qr = {
|
|
1343
1343
|
key: 0,
|
|
@@ -1353,13 +1353,13 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
|
1353
1353
|
function a(t) {
|
|
1354
1354
|
return !e(t) && i.path.startsWith(r(t));
|
|
1355
1355
|
}
|
|
1356
|
-
return (t, i) => q(n).nav?.length ? (
|
|
1356
|
+
return (t, i) => q(n).nav?.length ? (H(), F("nav", qr, [(H(!0), F(j, null, W(q(n).nav, (t) => (H(), F("a", {
|
|
1357
1357
|
key: t.link,
|
|
1358
1358
|
href: q(e)(t.link) ? t.link : q(r)(t.link),
|
|
1359
1359
|
target: q(e)(t.link) ? "_blank" : void 0,
|
|
1360
1360
|
rel: q(e)(t.link) ? "noopener noreferrer" : void 0,
|
|
1361
1361
|
class: B(["td-header-nav-link", { "is-active": a(t.link) }])
|
|
1362
|
-
}, [L(K(t.title), 1), q(e)(t.link) ? (
|
|
1362
|
+
}, [L(K(t.title), 1), q(e)(t.link) ? (H(), N(q(oe), {
|
|
1363
1363
|
key: 0,
|
|
1364
1364
|
size: 14
|
|
1365
1365
|
})) : P("", !0)], 10, Jr))), 128))])) : P("", !0);
|
|
@@ -1378,20 +1378,20 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
|
1378
1378
|
function a(t) {
|
|
1379
1379
|
return !e(t) && i.path.startsWith(r(t));
|
|
1380
1380
|
}
|
|
1381
|
-
return (t, i) => q(n).nav?.length ? (
|
|
1381
|
+
return (t, i) => q(n).nav?.length ? (H(), F("nav", Xr, [(H(!0), F(j, null, W(q(n).nav, (t) => (H(), F("a", {
|
|
1382
1382
|
key: t.link,
|
|
1383
1383
|
href: q(e)(t.link) ? t.link : q(r)(t.link),
|
|
1384
1384
|
target: q(e)(t.link) ? "_blank" : void 0,
|
|
1385
1385
|
rel: q(e)(t.link) ? "noopener noreferrer" : void 0,
|
|
1386
1386
|
class: B(["td-menu-nav-item", { "is-active": a(t.link) }])
|
|
1387
1387
|
}, [
|
|
1388
|
-
t.icon ? (
|
|
1388
|
+
t.icon ? (H(), N(Te, {
|
|
1389
1389
|
key: 0,
|
|
1390
1390
|
name: t.icon,
|
|
1391
1391
|
size: 16
|
|
1392
1392
|
}, null, 8, ["name"])) : P("", !0),
|
|
1393
1393
|
I("span", null, K(t.title), 1),
|
|
1394
|
-
q(e)(t.link) ? (
|
|
1394
|
+
q(e)(t.link) ? (H(), N(q(oe), {
|
|
1395
1395
|
key: 1,
|
|
1396
1396
|
size: 14
|
|
1397
1397
|
})) : P("", !0)
|
|
@@ -1401,11 +1401,11 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
|
1401
1401
|
__name: "TdWidgetCheckbox",
|
|
1402
1402
|
props: { value: {} },
|
|
1403
1403
|
setup(e) {
|
|
1404
|
-
return (t, n) => (
|
|
1404
|
+
return (t, n) => (H(), F("span", $r, [e.value ? (H(), N(q(pt), {
|
|
1405
1405
|
key: 0,
|
|
1406
1406
|
size: 16,
|
|
1407
1407
|
class: "td-widget-checkbox-icon is-checked"
|
|
1408
|
-
})) : (
|
|
1408
|
+
})) : (H(), N(q(Ee), {
|
|
1409
1409
|
key: 1,
|
|
1410
1410
|
size: 16,
|
|
1411
1411
|
class: "td-widget-checkbox-icon"
|
|
@@ -1470,7 +1470,7 @@ var ii = {
|
|
|
1470
1470
|
},
|
|
1471
1471
|
setup(t) {
|
|
1472
1472
|
let { withBase: n } = A(), r = M(() => ni(t.value)), i = M(() => r.value?.icon ? me(r.value.icon.name) : void 0), a = M(() => r.value !== void 0 && e(r.value.url));
|
|
1473
|
-
return (e, o) => r.value ? (
|
|
1473
|
+
return (e, o) => r.value ? (H(), F("span", ii, [r.value.isImage ? (H(), F("a", {
|
|
1474
1474
|
key: 0,
|
|
1475
1475
|
href: q(n)(r.value.url),
|
|
1476
1476
|
target: "_blank",
|
|
@@ -1482,13 +1482,13 @@ var ii = {
|
|
|
1482
1482
|
alt: r.value.name,
|
|
1483
1483
|
class: "td-widget-image-img",
|
|
1484
1484
|
loading: "lazy"
|
|
1485
|
-
}, null, 8, oi)], 8, ai)) : r.value.format || r.value.url.includes(".") ? (
|
|
1485
|
+
}, null, 8, oi)], 8, ai)) : r.value.format || r.value.url.includes(".") ? (H(), F("a", {
|
|
1486
1486
|
key: 1,
|
|
1487
1487
|
href: q(n)(r.value.url),
|
|
1488
1488
|
target: "_blank",
|
|
1489
1489
|
rel: "noopener noreferrer",
|
|
1490
1490
|
class: "td-widget-file-link"
|
|
1491
|
-
}, [R(q(E), { class: "td-widget-file-icon" }), I("span", ci, K(r.value.name), 1)], 8, si)) : a.value ? (
|
|
1491
|
+
}, [R(q(E), { class: "td-widget-file-icon" }), I("span", ci, K(r.value.name), 1)], 8, si)) : a.value ? (H(), F("a", {
|
|
1492
1492
|
key: 2,
|
|
1493
1493
|
href: r.value.url,
|
|
1494
1494
|
target: "_blank",
|
|
@@ -1497,15 +1497,15 @@ var ii = {
|
|
|
1497
1497
|
}, [R(q(oe), {
|
|
1498
1498
|
size: 12,
|
|
1499
1499
|
class: "td-widget-external-icon"
|
|
1500
|
-
})], 8, li)) : (
|
|
1500
|
+
})], 8, li)) : (H(), F("a", {
|
|
1501
1501
|
key: 3,
|
|
1502
1502
|
href: q(n)(r.value.url),
|
|
1503
1503
|
class: "td-widget-ref"
|
|
1504
|
-
}, [i.value && !t.hideIcon ? (
|
|
1504
|
+
}, [i.value && !t.hideIcon ? (H(), N(qe(i.value), {
|
|
1505
1505
|
key: 0,
|
|
1506
1506
|
size: 14,
|
|
1507
1507
|
class: "td-widget-ref-icon"
|
|
1508
|
-
})) : P("", !0), L(K(r.value.name), 1)], 8, ui))])) : (
|
|
1508
|
+
})) : P("", !0), L(K(r.value.name), 1)], 8, ui))])) : (H(), F("span", di, K(t.value), 1));
|
|
1509
1509
|
}
|
|
1510
1510
|
}), [["__scopeId", "data-v-e593af69"]]), pi = { key: 0 }, mi = { class: "td-widget-list td-widget-list-icons" }, hi = { key: 1 }, gi = { class: "td-widget-list" }, _i = 5, vi = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
1511
1511
|
__name: "TdWidgetList",
|
|
@@ -1514,28 +1514,28 @@ var ii = {
|
|
|
1514
1514
|
value: {}
|
|
1515
1515
|
},
|
|
1516
1516
|
setup(e) {
|
|
1517
|
-
let t =
|
|
1517
|
+
let t = U(!1), n = M(() => Array.isArray(e.value) ? e.value : []), r = M(() => e.definition.items?.widget === "relation"), i = M(() => r.value ? n.value.map((e) => ni(e)).filter((e) => e !== void 0) : []), a = M(() => r.value ? Math.max(0, i.value.length - _i) : Math.max(0, n.value.length - _i));
|
|
1518
1518
|
function o() {
|
|
1519
1519
|
t.value = !t.value;
|
|
1520
1520
|
}
|
|
1521
1521
|
function s(e) {
|
|
1522
1522
|
return t.value ? e : e.slice(0, _i);
|
|
1523
1523
|
}
|
|
1524
|
-
return (e, c) => r.value ? (
|
|
1524
|
+
return (e, c) => r.value ? (H(), F("div", pi, [I("ul", mi, [(H(!0), F(j, null, W(s(i.value), (e, t) => (H(), F("li", { key: t }, [(H(), N(qe(e.icon ? q(me)(e.icon.name) ?? q(ue) : q(ue)), {
|
|
1525
1525
|
size: 14,
|
|
1526
1526
|
class: "td-widget-list-icon"
|
|
1527
1527
|
})), R(fi, {
|
|
1528
1528
|
value: { $ref: e },
|
|
1529
1529
|
"hide-icon": ""
|
|
1530
|
-
}, null, 8, ["value"])]))), 128))]), a.value > 0 ? (
|
|
1530
|
+
}, null, 8, ["value"])]))), 128))]), a.value > 0 ? (H(), F("button", {
|
|
1531
1531
|
key: 0,
|
|
1532
1532
|
class: "td-widget-more",
|
|
1533
1533
|
type: "button",
|
|
1534
1534
|
onClick: o
|
|
1535
|
-
}, K(t.value ? "show less" : `+${a.value} more`), 1)) : P("", !0)])) : (
|
|
1535
|
+
}, K(t.value ? "show less" : `+${a.value} more`), 1)) : P("", !0)])) : (H(), F("div", hi, [I("ul", gi, [(H(!0), F(j, null, W(s(n.value), (e, t) => (H(), F("li", { key: t }, [q(ni)(e) ? (H(), N(fi, {
|
|
1536
1536
|
key: 0,
|
|
1537
1537
|
value: e
|
|
1538
|
-
}, null, 8, ["value"])) : (
|
|
1538
|
+
}, null, 8, ["value"])) : (H(), F(j, { key: 1 }, [L(K(e), 1)], 64))]))), 128))]), a.value > 0 ? (H(), F("button", {
|
|
1539
1539
|
key: 0,
|
|
1540
1540
|
class: "td-widget-more",
|
|
1541
1541
|
type: "button",
|
|
@@ -1594,15 +1594,15 @@ var Si = 5, Ci = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
|
1594
1594
|
__name: "TdWidgetMultiSelect",
|
|
1595
1595
|
props: { value: {} },
|
|
1596
1596
|
setup(e) {
|
|
1597
|
-
let t =
|
|
1597
|
+
let t = U(!1), n = M(() => Array.isArray(e.value) ? e.value : []), r = M(() => t.value ? n.value : n.value.slice(0, Si)), i = M(() => Math.max(0, n.value.length - Si));
|
|
1598
1598
|
function a() {
|
|
1599
1599
|
t.value = !t.value;
|
|
1600
1600
|
}
|
|
1601
|
-
return (e, n) => (
|
|
1601
|
+
return (e, n) => (H(), F(j, null, [(H(!0), F(j, null, W(r.value, (e, t) => (H(), F("span", {
|
|
1602
1602
|
key: t,
|
|
1603
1603
|
class: "td-widget-pill",
|
|
1604
1604
|
style: Ve(q(bi)(e))
|
|
1605
|
-
}, K(e), 5))), 128)), i.value > 0 ? (
|
|
1605
|
+
}, K(e), 5))), 128)), i.value > 0 ? (H(), F("button", {
|
|
1606
1606
|
key: 0,
|
|
1607
1607
|
class: "td-widget-more",
|
|
1608
1608
|
type: "button",
|
|
@@ -1613,7 +1613,7 @@ var Si = 5, Ci = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
|
1613
1613
|
__name: "TdWidgetSelect",
|
|
1614
1614
|
props: { value: {} },
|
|
1615
1615
|
setup(e) {
|
|
1616
|
-
return (t, n) => (
|
|
1616
|
+
return (t, n) => (H(), F("span", {
|
|
1617
1617
|
class: "td-widget-pill",
|
|
1618
1618
|
style: Ve(q(bi)(e.value))
|
|
1619
1619
|
}, K(e.value), 5));
|
|
@@ -1629,7 +1629,7 @@ var Si = 5, Ci = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
|
1629
1629
|
function c(t) {
|
|
1630
1630
|
return t == null ? "" : e.definition.widget === "date" ? g(String(t)) : String(t);
|
|
1631
1631
|
}
|
|
1632
|
-
return (t, a) => i.value ? (
|
|
1632
|
+
return (t, a) => i.value ? (H(), F("a", {
|
|
1633
1633
|
key: 0,
|
|
1634
1634
|
href: o.value,
|
|
1635
1635
|
target: "_blank",
|
|
@@ -1641,13 +1641,13 @@ var Si = 5, Ci = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
|
1641
1641
|
alt: r.value ? r.value.name : n.value,
|
|
1642
1642
|
class: "td-widget-image-img",
|
|
1643
1643
|
loading: "lazy"
|
|
1644
|
-
}, null, 8, Ei)], 8, Ti)) : s.value ? (
|
|
1644
|
+
}, null, 8, Ei)], 8, Ti)) : s.value ? (H(), F("a", {
|
|
1645
1645
|
key: 1,
|
|
1646
1646
|
href: o.value,
|
|
1647
1647
|
target: "_blank",
|
|
1648
1648
|
rel: "noopener noreferrer",
|
|
1649
1649
|
class: "td-widget-file-link"
|
|
1650
|
-
}, [R(q(E), { class: "td-widget-file-icon" }), I("span", Oi, K(n.value.split("/").pop() ?? n.value), 1)], 8, Di)) : (
|
|
1650
|
+
}, [R(q(E), { class: "td-widget-file-icon" }), I("span", Oi, K(n.value.split("/").pop() ?? n.value), 1)], 8, Di)) : (H(), F(j, { key: 2 }, [L(K(c(e.value)), 1)], 64));
|
|
1651
1651
|
}
|
|
1652
1652
|
}), [["__scopeId", "data-v-37708635"]]), Ai = {
|
|
1653
1653
|
key: 0,
|
|
@@ -1659,23 +1659,23 @@ var Si = 5, Ci = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
|
1659
1659
|
value: {}
|
|
1660
1660
|
},
|
|
1661
1661
|
setup(e) {
|
|
1662
|
-
return (t, n) => e.value === void 0 || e.value === null ? (
|
|
1662
|
+
return (t, n) => e.value === void 0 || e.value === null ? (H(), F("span", Ai, "Empty")) : e.definition.widget === "checkbox" ? (H(), N(ei, {
|
|
1663
1663
|
key: 1,
|
|
1664
1664
|
value: e.value
|
|
1665
|
-
}, null, 8, ["value"])) : e.definition.widget === "select" ? (
|
|
1665
|
+
}, null, 8, ["value"])) : e.definition.widget === "select" ? (H(), N(wi, {
|
|
1666
1666
|
key: 2,
|
|
1667
1667
|
value: e.value
|
|
1668
|
-
}, null, 8, ["value"])) : e.definition.widget === "multiSelect" ? (
|
|
1668
|
+
}, null, 8, ["value"])) : e.definition.widget === "multiSelect" ? (H(), N(Ci, {
|
|
1669
1669
|
key: 3,
|
|
1670
1670
|
value: e.value
|
|
1671
|
-
}, null, 8, ["value"])) : q(ni)(e.value) || e.definition.widget === "relation" ? (
|
|
1671
|
+
}, null, 8, ["value"])) : q(ni)(e.value) || e.definition.widget === "relation" ? (H(), N(fi, {
|
|
1672
1672
|
key: 4,
|
|
1673
1673
|
value: e.value
|
|
1674
|
-
}, null, 8, ["value"])) : Array.isArray(e.value) || e.definition.widget === "list" ? (
|
|
1674
|
+
}, null, 8, ["value"])) : Array.isArray(e.value) || e.definition.widget === "list" ? (H(), N(vi, {
|
|
1675
1675
|
key: 5,
|
|
1676
1676
|
definition: e.definition,
|
|
1677
1677
|
value: e.value
|
|
1678
|
-
}, null, 8, ["definition", "value"])) : (
|
|
1678
|
+
}, null, 8, ["definition", "value"])) : (H(), N(ki, {
|
|
1679
1679
|
key: 6,
|
|
1680
1680
|
definition: e.definition,
|
|
1681
1681
|
value: e.value
|
|
@@ -1719,40 +1719,40 @@ var Si = 5, Ci = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
|
1719
1719
|
function a(e) {
|
|
1720
1720
|
return i[e] ?? ht;
|
|
1721
1721
|
}
|
|
1722
|
-
let o =
|
|
1722
|
+
let o = U(!1), s = U(!1);
|
|
1723
1723
|
function c() {
|
|
1724
1724
|
o.value = !o.value;
|
|
1725
1725
|
}
|
|
1726
1726
|
function l() {
|
|
1727
1727
|
s.value = !s.value;
|
|
1728
1728
|
}
|
|
1729
|
-
return (t, n) => e.mode === "rail" && r.value.length > 0 ? (
|
|
1729
|
+
return (t, n) => e.mode === "rail" && r.value.length > 0 ? (H(), F("div", Mi, [I("button", {
|
|
1730
1730
|
type: "button",
|
|
1731
1731
|
class: "td-fm-rail-header",
|
|
1732
1732
|
onClick: l
|
|
1733
1733
|
}, [n[0] ||= I("span", { class: "td-fm-rail-label" }, "Properties", -1), R(q(ee), {
|
|
1734
1734
|
size: 14,
|
|
1735
1735
|
class: B(["td-fm-rail-caret", { "is-collapsed": s.value }])
|
|
1736
|
-
}, null, 8, ["class"])]), I("div", { class: B(["td-collapse", { "is-collapsed": s.value }]) }, [I("div", null, [(
|
|
1736
|
+
}, null, 8, ["class"])]), I("div", { class: B(["td-collapse", { "is-collapsed": s.value }]) }, [I("div", null, [(H(!0), F(j, null, W(r.value, ([t, n]) => (H(), F("div", {
|
|
1737
1737
|
key: t,
|
|
1738
1738
|
class: "td-fm-rail-row"
|
|
1739
|
-
}, [I("span", Ni, [(
|
|
1739
|
+
}, [I("span", Ni, [(H(), N(qe(a(n.widget)), {
|
|
1740
1740
|
size: 12,
|
|
1741
1741
|
class: "td-fm-icon"
|
|
1742
1742
|
})), L(" " + K(q(v)(t)), 1)]), I("span", Pi, [R(ji, {
|
|
1743
1743
|
definition: n,
|
|
1744
1744
|
value: e.frontmatter[t]
|
|
1745
|
-
}, null, 8, ["definition", "value"])])]))), 128))])], 2)])) : r.value.length > 0 ? (
|
|
1745
|
+
}, null, 8, ["definition", "value"])])]))), 128))])], 2)])) : r.value.length > 0 ? (H(), F("div", Fi, [I("button", {
|
|
1746
1746
|
type: "button",
|
|
1747
1747
|
class: "td-fm-box-header",
|
|
1748
1748
|
onClick: c
|
|
1749
|
-
}, [I("span", Ii, [n[1] ||= L("Properties ", -1), I("span", Li, K(r.value.length), 1)]), I("span", Ri, [L(K(o.value ? "Show" : "Hide") + " ", 1), o.value ? (
|
|
1749
|
+
}, [I("span", Ii, [n[1] ||= L("Properties ", -1), I("span", Li, K(r.value.length), 1)]), I("span", Ri, [L(K(o.value ? "Show" : "Hide") + " ", 1), o.value ? (H(), N(q(se), {
|
|
1750
1750
|
key: 1,
|
|
1751
1751
|
size: 14
|
|
1752
|
-
})) : (
|
|
1752
|
+
})) : (H(), N(q(ee), {
|
|
1753
1753
|
key: 0,
|
|
1754
1754
|
size: 14
|
|
1755
|
-
}))])]), I("div", { class: B(["td-collapse", { "is-collapsed": o.value }]) }, [I("div", zi, [(
|
|
1755
|
+
}))])]), I("div", { class: B(["td-collapse", { "is-collapsed": o.value }]) }, [I("div", zi, [(H(!0), F(j, null, W(r.value, ([t, n]) => (H(), F(j, { key: t }, [I("span", Bi, [(H(), N(qe(a(n.widget)), {
|
|
1756
1756
|
size: 12,
|
|
1757
1757
|
class: "td-fm-icon"
|
|
1758
1758
|
})), L(" " + K(q(v)(t)), 1)]), I("span", Vi, [R(ji, {
|
|
@@ -1760,7 +1760,7 @@ var Si = 5, Ci = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
|
1760
1760
|
value: e.frontmatter[t]
|
|
1761
1761
|
}, null, 8, ["definition", "value"])])], 64))), 128))])], 2)])) : P("", !0);
|
|
1762
1762
|
}
|
|
1763
|
-
}), [["__scopeId", "data-v-1b3924e7"]]), Ui =
|
|
1763
|
+
}), [["__scopeId", "data-v-1b3924e7"]]), Ui = U(!1);
|
|
1764
1764
|
function Wi() {
|
|
1765
1765
|
function e() {
|
|
1766
1766
|
Ui.value = !Ui.value;
|
|
@@ -1772,7 +1772,7 @@ function Wi() {
|
|
|
1772
1772
|
Ui.value = !1;
|
|
1773
1773
|
}
|
|
1774
1774
|
return {
|
|
1775
|
-
isOpen:
|
|
1775
|
+
isOpen: Ge(Ui),
|
|
1776
1776
|
toggle: e,
|
|
1777
1777
|
open: t,
|
|
1778
1778
|
close: n
|
|
@@ -1784,16 +1784,16 @@ var Gi = /* @__PURE__ */ z({
|
|
|
1784
1784
|
__name: "TdMenuButton",
|
|
1785
1785
|
setup(e) {
|
|
1786
1786
|
let { isOpen: t, toggle: n } = Wi();
|
|
1787
|
-
return (e, r) => (
|
|
1787
|
+
return (e, r) => (H(), N(St, {
|
|
1788
1788
|
class: "td-menu-button",
|
|
1789
1789
|
label: q(t) ? "Close menu" : "Open menu",
|
|
1790
1790
|
"aria-expanded": q(t),
|
|
1791
1791
|
onClick: q(n)
|
|
1792
1792
|
}, {
|
|
1793
|
-
default: tt(() => [q(t) ? (
|
|
1793
|
+
default: tt(() => [q(t) ? (H(), N(q(_e), {
|
|
1794
1794
|
key: 0,
|
|
1795
1795
|
size: 20
|
|
1796
|
-
})) : (
|
|
1796
|
+
})) : (H(), N(q(Oe), {
|
|
1797
1797
|
key: 1,
|
|
1798
1798
|
size: 20
|
|
1799
1799
|
}))]),
|
|
@@ -1895,25 +1895,25 @@ var Zi = {
|
|
|
1895
1895
|
__name: "TdPreviousNext",
|
|
1896
1896
|
setup(e) {
|
|
1897
1897
|
let { previous: t, next: n, groupName: r } = Ki();
|
|
1898
|
-
return (e, i) => q(t) || q(n) ? (
|
|
1898
|
+
return (e, i) => q(t) || q(n) ? (H(), F("nav", Zi, [q(t) ? (H(), F("a", {
|
|
1899
1899
|
key: 0,
|
|
1900
1900
|
href: q(t).url,
|
|
1901
1901
|
class: "td-prevnext-link is-previous"
|
|
1902
1902
|
}, [I("span", $i, [R(q(be), {
|
|
1903
1903
|
size: 14,
|
|
1904
1904
|
class: "td-prevnext-chevron"
|
|
1905
|
-
}), L(" " + K(q(r) ? `Previous in ${q(r)}` : "Previous"), 1)]), I("span", ea, K(q(t).title), 1)], 8, Qi)) : (
|
|
1905
|
+
}), L(" " + K(q(r) ? `Previous in ${q(r)}` : "Previous"), 1)]), I("span", ea, K(q(t).title), 1)], 8, Qi)) : (H(), F("span", ta)), q(n) ? (H(), F("a", {
|
|
1906
1906
|
key: 2,
|
|
1907
1907
|
href: q(n).url,
|
|
1908
1908
|
class: "td-prevnext-link is-next"
|
|
1909
1909
|
}, [I("span", ra, [L(K(q(r) ? `Next in ${q(r)}` : "Next") + " ", 1), R(q(se), {
|
|
1910
1910
|
size: 14,
|
|
1911
1911
|
class: "td-prevnext-chevron"
|
|
1912
|
-
})]), I("span", ia, K(q(n).title), 1)], 8, na)) : (
|
|
1912
|
+
})]), I("span", ia, K(q(n).title), 1)], 8, na)) : (H(), F("span", aa))])) : P("", !0);
|
|
1913
1913
|
}
|
|
1914
1914
|
}), [["__scopeId", "data-v-8ea01cd7"]]), sa = 100;
|
|
1915
1915
|
function ca(e) {
|
|
1916
|
-
let t =
|
|
1916
|
+
let t = U(void 0), n = [], r;
|
|
1917
1917
|
function i() {
|
|
1918
1918
|
if (n.length === 0) return;
|
|
1919
1919
|
let e = window.scrollY;
|
|
@@ -1937,7 +1937,7 @@ function ca(e) {
|
|
|
1937
1937
|
}
|
|
1938
1938
|
return Ue(() => {
|
|
1939
1939
|
window.addEventListener("scroll", a);
|
|
1940
|
-
}),
|
|
1940
|
+
}), V(() => {
|
|
1941
1941
|
window.removeEventListener("scroll", a), r !== void 0 && cancelAnimationFrame(r);
|
|
1942
1942
|
}), J(e, (e) => {
|
|
1943
1943
|
typeof window < "u" && Be(() => o(e));
|
|
@@ -1972,7 +1972,7 @@ var ua = {
|
|
|
1972
1972
|
}
|
|
1973
1973
|
return t;
|
|
1974
1974
|
}), n = e.static ? M(() => void 0) : ca(() => t.value);
|
|
1975
|
-
return (r, i) => e.headings.length ? (
|
|
1975
|
+
return (r, i) => e.headings.length ? (H(), F("div", ua, [i[0] ||= I("div", { class: "td-toc-label" }, " On this page ", -1), I("ul", da, [(H(!0), F(j, null, W(t.value, (e) => (H(), F("li", {
|
|
1976
1976
|
key: e.slug,
|
|
1977
1977
|
class: B({
|
|
1978
1978
|
"td-toc-indent-1": e.level === 3,
|
|
@@ -1989,7 +1989,7 @@ var ua = {
|
|
|
1989
1989
|
__name: "TdRail",
|
|
1990
1990
|
setup(e) {
|
|
1991
1991
|
let { page: t } = fe();
|
|
1992
|
-
return (e, n) => (
|
|
1992
|
+
return (e, n) => (H(), F("aside", ma, [R(q(Hi), {
|
|
1993
1993
|
mode: "rail",
|
|
1994
1994
|
schema: q(t).schema,
|
|
1995
1995
|
frontmatter: q(t).frontmatter
|
|
@@ -2013,7 +2013,7 @@ var ua = {
|
|
|
2013
2013
|
55,
|
|
2014
2014
|
72
|
|
2015
2015
|
];
|
|
2016
|
-
return (n, r) => (
|
|
2016
|
+
return (n, r) => (H(), F("div", ga, [(H(!0), F(j, null, W(e.lines, (e) => (H(), F("div", {
|
|
2017
2017
|
key: e,
|
|
2018
2018
|
class: "td-skeleton-line",
|
|
2019
2019
|
style: Ve({ width: `${t[(e - 1) % t.length]}%` })
|
|
@@ -2032,11 +2032,11 @@ var ua = {
|
|
|
2032
2032
|
Be(() => {
|
|
2033
2033
|
n.value?.querySelector(".is-active")?.scrollIntoView({ block: "nearest" });
|
|
2034
2034
|
});
|
|
2035
|
-
}, { immediate: !0 }), (t, r) => (
|
|
2035
|
+
}, { immediate: !0 }), (t, r) => (H(), F("div", {
|
|
2036
2036
|
ref_key: "scrollElement",
|
|
2037
2037
|
ref: n,
|
|
2038
2038
|
class: "td-sidebar-scroll"
|
|
2039
|
-
}, [!e.searchActive && !e.ready ? (
|
|
2039
|
+
}, [!e.searchActive && !e.ready ? (H(), N(_a, { key: 0 })) : e.searchActive ? P("", !0) : (H(), N(jr, {
|
|
2040
2040
|
key: 1,
|
|
2041
2041
|
tree: e.tree
|
|
2042
2042
|
}, null, 8, ["tree"]))], 512));
|
|
@@ -2069,10 +2069,10 @@ var ua = {
|
|
|
2069
2069
|
let i = n[e];
|
|
2070
2070
|
return i ? { label: i } : { label: e.toUpperCase() };
|
|
2071
2071
|
}));
|
|
2072
|
-
return (e, t) => (
|
|
2072
|
+
return (e, t) => (H(), F("span", ya, [(H(!0), F(j, null, W(r.value, (e, t) => (H(), F("kbd", { key: t }, [e.icon ? (H(), N(qe(e.icon), {
|
|
2073
2073
|
key: 0,
|
|
2074
2074
|
size: 12
|
|
2075
|
-
})) : (
|
|
2075
|
+
})) : (H(), F(j, { key: 1 }, [L(K(e.label), 1)], 64))]))), 128))]));
|
|
2076
2076
|
}
|
|
2077
2077
|
}), [["__scopeId", "data-v-b61b97da"]]), xa = 120;
|
|
2078
2078
|
function Sa() {
|
|
@@ -2174,7 +2174,7 @@ var wa = { class: "td-search" }, Ta = { class: "td-search-input-wrap" }, Ea = {
|
|
|
2174
2174
|
},
|
|
2175
2175
|
emits: /*@__PURE__*/ Re(["select"], ["update:active", "update:query"]),
|
|
2176
2176
|
setup(e, { expose: t, emit: n }) {
|
|
2177
|
-
let r = Ze(e, "active"), i = Ze(e, "query"), a = n, s = O(), { withBase: c } = A(), { results: l, searching: u, indexLoaded: d, search: f, cancel: p } = Sa(), m =
|
|
2177
|
+
let r = Ze(e, "active"), i = Ze(e, "query"), a = n, s = O(), { withBase: c } = A(), { results: l, searching: u, indexLoaded: d, search: f, cancel: p } = Sa(), m = U(-1), h = M(() => 0 < i.value.trim().length), g = M(() => {
|
|
2178
2178
|
let e = [], t = /* @__PURE__ */ new Map();
|
|
2179
2179
|
for (let n of l.value) {
|
|
2180
2180
|
let r = o(n.id), i = t.get(r);
|
|
@@ -2238,7 +2238,7 @@ var wa = { class: "td-search" }, Ta = { class: "td-search-input-wrap" }, Ea = {
|
|
|
2238
2238
|
get isFocused() {
|
|
2239
2239
|
return document.activeElement === w.value;
|
|
2240
2240
|
}
|
|
2241
|
-
}), (e, t) => (
|
|
2241
|
+
}), (e, t) => (H(), F("div", wa, [
|
|
2242
2242
|
I("div", Ta, [
|
|
2243
2243
|
R(q(ke), {
|
|
2244
2244
|
size: 14,
|
|
@@ -2254,17 +2254,17 @@ var wa = { class: "td-search" }, Ta = { class: "td-search-input-wrap" }, Ea = {
|
|
|
2254
2254
|
placeholder: "Search...",
|
|
2255
2255
|
onKeydown: x
|
|
2256
2256
|
}, null, 544), [[$e, i.value]]),
|
|
2257
|
-
!h.value && !q(u) ? (
|
|
2257
|
+
!h.value && !q(u) ? (H(), N(ba, {
|
|
2258
2258
|
key: 0,
|
|
2259
2259
|
keys: [q($).Meta, q($).k],
|
|
2260
2260
|
class: "td-search-kbd"
|
|
2261
2261
|
}, null, 8, ["keys"])) : P("", !0),
|
|
2262
|
-
q(u) || !q(d) ? (
|
|
2262
|
+
q(u) || !q(d) ? (H(), N(q(ut), {
|
|
2263
2263
|
key: 1,
|
|
2264
2264
|
size: 12,
|
|
2265
2265
|
class: "td-search-spinner"
|
|
2266
|
-
})) : h.value ? (
|
|
2267
|
-
i.value ? (
|
|
2266
|
+
})) : h.value ? (H(), F("span", Ea, K(q(l).length), 1)) : P("", !0),
|
|
2267
|
+
i.value ? (H(), F("button", {
|
|
2268
2268
|
key: 3,
|
|
2269
2269
|
class: "td-search-clear",
|
|
2270
2270
|
type: "button",
|
|
@@ -2272,10 +2272,10 @@ var wa = { class: "td-search" }, Ta = { class: "td-search-input-wrap" }, Ea = {
|
|
|
2272
2272
|
onClick: _
|
|
2273
2273
|
}, [R(q(_e), { size: 12 })])) : P("", !0)
|
|
2274
2274
|
]),
|
|
2275
|
-
h.value && q(l).length > 0 ? (
|
|
2275
|
+
h.value && q(l).length > 0 ? (H(), F("div", Da, [(H(!0), F(j, null, W(g.value, (e) => (H(), F("div", {
|
|
2276
2276
|
key: e.pageUrl,
|
|
2277
2277
|
class: "td-search-group"
|
|
2278
|
-
}, [(
|
|
2278
|
+
}, [(H(!0), F(j, null, W(e.results, (e) => (H(), F("a", {
|
|
2279
2279
|
key: e.id,
|
|
2280
2280
|
href: q(c)(e.id),
|
|
2281
2281
|
class: B(["td-search-result", {
|
|
@@ -2289,27 +2289,27 @@ var wa = { class: "td-search" }, Ta = { class: "td-search-input-wrap" }, Ea = {
|
|
|
2289
2289
|
innerHTML: q(Ca)(e.title, i.value)
|
|
2290
2290
|
}, null, 8, ka),
|
|
2291
2291
|
I("span", Aa, K(e.id), 1),
|
|
2292
|
-
e.excerpt ? (
|
|
2292
|
+
e.excerpt ? (H(), F("span", {
|
|
2293
2293
|
key: 0,
|
|
2294
2294
|
class: "td-search-result-excerpt",
|
|
2295
2295
|
innerHTML: q(Ca)(e.excerpt, i.value)
|
|
2296
2296
|
}, null, 8, ja)) : P("", !0)
|
|
2297
2297
|
], 10, Oa))), 128))]))), 128))])) : P("", !0),
|
|
2298
|
-
h.value && q(l).length === 0 ? (
|
|
2298
|
+
h.value && q(l).length === 0 ? (H(), F("div", Ma, " No results for \"" + K(i.value) + "\" ", 1)) : P("", !0)
|
|
2299
2299
|
]));
|
|
2300
2300
|
}
|
|
2301
2301
|
}), [["__scopeId", "data-v-999e1838"]]), Pa = /* @__PURE__ */ z({
|
|
2302
2302
|
__name: "TdThemeToggle",
|
|
2303
2303
|
setup(e) {
|
|
2304
2304
|
let { isDark: t, toggle: n } = Se();
|
|
2305
|
-
return (e, r) => (
|
|
2305
|
+
return (e, r) => (H(), N(St, {
|
|
2306
2306
|
label: q(t) ? "Switch to light mode" : "Switch to dark mode",
|
|
2307
2307
|
onClick: q(n)
|
|
2308
2308
|
}, {
|
|
2309
|
-
default: tt(() => [q(t) ? (
|
|
2309
|
+
default: tt(() => [q(t) ? (H(), N(q(de), {
|
|
2310
2310
|
key: 0,
|
|
2311
2311
|
size: 18
|
|
2312
|
-
})) : (
|
|
2312
|
+
})) : (H(), N(q(pe), {
|
|
2313
2313
|
key: 1,
|
|
2314
2314
|
size: 18
|
|
2315
2315
|
}))]),
|
|
@@ -2333,7 +2333,7 @@ function Fa() {
|
|
|
2333
2333
|
}
|
|
2334
2334
|
Ue(() => {
|
|
2335
2335
|
document.addEventListener("click", e);
|
|
2336
|
-
}),
|
|
2336
|
+
}), V(() => {
|
|
2337
2337
|
document.removeEventListener("click", e);
|
|
2338
2338
|
});
|
|
2339
2339
|
}
|
|
@@ -2351,7 +2351,7 @@ function Ia() {
|
|
|
2351
2351
|
}
|
|
2352
2352
|
Ue(() => {
|
|
2353
2353
|
document.addEventListener("click", e);
|
|
2354
|
-
}),
|
|
2354
|
+
}), V(() => {
|
|
2355
2355
|
document.removeEventListener("click", e);
|
|
2356
2356
|
});
|
|
2357
2357
|
}
|
|
@@ -2367,7 +2367,7 @@ function Ra(e, t) {
|
|
|
2367
2367
|
function n(n) {
|
|
2368
2368
|
n.defaultPrevented || Ba(n, e) && (n.preventDefault(), t(n));
|
|
2369
2369
|
}
|
|
2370
|
-
Ue(() => window.addEventListener("keydown", n)),
|
|
2370
|
+
Ue(() => window.addEventListener("keydown", n)), V(() => window.removeEventListener("keydown", n));
|
|
2371
2371
|
}
|
|
2372
2372
|
function za(e) {
|
|
2373
2373
|
let t = [];
|
|
@@ -2385,7 +2385,7 @@ function za(e) {
|
|
|
2385
2385
|
}
|
|
2386
2386
|
return J(e, (e, t) => {
|
|
2387
2387
|
t?.removeEventListener("keydown", r), e?.addEventListener("keydown", r);
|
|
2388
|
-
}, { immediate: !0 }),
|
|
2388
|
+
}, { immediate: !0 }), V(() => {
|
|
2389
2389
|
e.value?.removeEventListener("keydown", r);
|
|
2390
2390
|
}), { register: n };
|
|
2391
2391
|
}
|
|
@@ -2430,7 +2430,7 @@ function Ua() {
|
|
|
2430
2430
|
}
|
|
2431
2431
|
Ue(() => {
|
|
2432
2432
|
document.addEventListener("pointermove", r), document.addEventListener("pointerdown", i);
|
|
2433
|
-
}),
|
|
2433
|
+
}), V(() => {
|
|
2434
2434
|
document.removeEventListener("pointermove", r), document.removeEventListener("pointerdown", i);
|
|
2435
2435
|
});
|
|
2436
2436
|
}
|
|
@@ -2464,7 +2464,7 @@ function qa() {
|
|
|
2464
2464
|
childList: !0,
|
|
2465
2465
|
subtree: !0
|
|
2466
2466
|
}));
|
|
2467
|
-
}),
|
|
2467
|
+
}), V(() => {
|
|
2468
2468
|
e?.disconnect();
|
|
2469
2469
|
});
|
|
2470
2470
|
}
|
|
@@ -2484,32 +2484,82 @@ async function Ja() {
|
|
|
2484
2484
|
}), Ga;
|
|
2485
2485
|
}
|
|
2486
2486
|
//#endregion
|
|
2487
|
+
//#region src/client/theme-default/composables/useD2.ts
|
|
2488
|
+
var Ya = "https://esm.sh/@terrastruct/d2", Xa, Za = 0;
|
|
2489
|
+
function Qa() {
|
|
2490
|
+
let e;
|
|
2491
|
+
async function t() {
|
|
2492
|
+
let e = document.getElementById("td-content");
|
|
2493
|
+
if (!e) return;
|
|
2494
|
+
let t = e.querySelectorAll(".td-d2-placeholder");
|
|
2495
|
+
if (t.length === 0) return;
|
|
2496
|
+
let n = await $a();
|
|
2497
|
+
if (n) for (let e of t) {
|
|
2498
|
+
let t = e.querySelector("code");
|
|
2499
|
+
if (!t) continue;
|
|
2500
|
+
let r = `td-d2-${Za++}`;
|
|
2501
|
+
try {
|
|
2502
|
+
let i = await n.compile(t.textContent ?? "", { layout: "dagre" }), a = await n.render(i.diagram, {
|
|
2503
|
+
...i.renderOptions,
|
|
2504
|
+
themeID: document.documentElement.classList.contains("dark") ? 200 : 0
|
|
2505
|
+
}), o = document.createElement("div");
|
|
2506
|
+
o.className = "td-d2", o.id = r, o.innerHTML = a, e.replaceWith(o);
|
|
2507
|
+
} catch {
|
|
2508
|
+
e.classList.add("td-d2-error");
|
|
2509
|
+
}
|
|
2510
|
+
}
|
|
2511
|
+
}
|
|
2512
|
+
Ue(() => {
|
|
2513
|
+
t();
|
|
2514
|
+
let n = document.getElementById("td-content");
|
|
2515
|
+
n && (e = new MutationObserver(t), e.observe(n, {
|
|
2516
|
+
childList: !0,
|
|
2517
|
+
subtree: !0
|
|
2518
|
+
}));
|
|
2519
|
+
}), V(() => {
|
|
2520
|
+
e?.disconnect();
|
|
2521
|
+
});
|
|
2522
|
+
}
|
|
2523
|
+
async function $a() {
|
|
2524
|
+
if (Xa) return Xa;
|
|
2525
|
+
try {
|
|
2526
|
+
let e = await import(
|
|
2527
|
+
/* @vite-ignore */
|
|
2528
|
+
Ya
|
|
2529
|
+
);
|
|
2530
|
+
Xa = new (e.D2 || (e.default?.D2) || e.default)();
|
|
2531
|
+
} catch {
|
|
2532
|
+
return;
|
|
2533
|
+
}
|
|
2534
|
+
return Xa;
|
|
2535
|
+
}
|
|
2536
|
+
//#endregion
|
|
2487
2537
|
//#region src/client/theme-default/TdLayout.vue?vue&type=script&setup=true&lang.ts
|
|
2488
|
-
var
|
|
2538
|
+
var eo = { class: "td-header" }, to = { class: "td-header-left" }, no = ["href"], ro = { class: "td-brand-name" }, io = { class: "td-header-right" }, ao = ["href"], oo = { class: "td-drawer-header" }, so = ["href"], co = { class: "td-brand-name" }, lo = {
|
|
2489
2539
|
key: 0,
|
|
2490
2540
|
class: "pt-4",
|
|
2491
2541
|
"aria-label": "Site navigation"
|
|
2492
|
-
},
|
|
2542
|
+
}, uo = { class: "td-page" }, fo = ["onKeydown"], po = { class: "td-main-and-rail" }, mo = { class: "td-main" }, ho = {
|
|
2493
2543
|
id: "td-content",
|
|
2494
2544
|
class: "td-content",
|
|
2495
2545
|
"data-testid": "content"
|
|
2496
|
-
},
|
|
2546
|
+
}, go = {
|
|
2497
2547
|
key: 0,
|
|
2498
2548
|
class: "td-page-eyebrow"
|
|
2499
|
-
},
|
|
2549
|
+
}, _o = {
|
|
2500
2550
|
key: 1,
|
|
2501
2551
|
class: "td-page-icon"
|
|
2502
|
-
},
|
|
2552
|
+
}, vo = ["innerHTML"], yo = {
|
|
2503
2553
|
key: 3,
|
|
2504
2554
|
class: "td-page-meta"
|
|
2505
|
-
},
|
|
2555
|
+
}, bo = { key: 0 }, xo = { class: "td-content-body" }, So = ["href"], Co = 200, wo = 500, To = 300, Eo = "td-sidebar-width", Do = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
2506
2556
|
__name: "TdLayout",
|
|
2507
2557
|
setup(e) {
|
|
2508
2558
|
let { title: t, page: n } = fe(), i = M(() => {
|
|
2509
2559
|
let e = n.value.icon;
|
|
2510
2560
|
return e ? me(e.name) : void 0;
|
|
2511
|
-
}), a = A(), { withBase: o } = a, s = ve(), c = M(() => s.value.ready), { isOpen: l, open: u, close: d } = Wi(), f =
|
|
2512
|
-
J(() => h.path, () => d()), Fa(), Ia(), qa();
|
|
2561
|
+
}), a = A(), { withBase: o } = a, s = ve(), c = M(() => s.value.ready), { isOpen: l, open: u, close: d } = Wi(), f = U(""), p = U(!1), m = U(!1), h = O();
|
|
2562
|
+
J(() => h.path, () => d()), Fa(), Ia(), qa(), Qa();
|
|
2513
2563
|
let g = Qe("sidebarSearch"), _ = Qe("menuSearch");
|
|
2514
2564
|
function v(e) {
|
|
2515
2565
|
let t = a.repo;
|
|
@@ -2529,43 +2579,43 @@ var Ya = { class: "td-header" }, Xa = { class: "td-header-left" }, Za = ["href"]
|
|
|
2529
2579
|
let i = n.value.frontmatter?.description === void 0 ? a.description ?? "" : String(n.value.frontmatter.description), o = document.querySelector("meta[name=\"description\"]");
|
|
2530
2580
|
o && o.setAttribute("content", i);
|
|
2531
2581
|
}), Ua();
|
|
2532
|
-
let x =
|
|
2582
|
+
let x = U(typeof localStorage < "u" && Number(localStorage.getItem(Eo)) || To);
|
|
2533
2583
|
function S() {
|
|
2534
|
-
x.value = Math.min(
|
|
2584
|
+
x.value = Math.min(wo, x.value + 20);
|
|
2535
2585
|
}
|
|
2536
2586
|
function w(e) {
|
|
2537
2587
|
let t = e.clientX, n = x.value, r = e.currentTarget;
|
|
2538
2588
|
r.setPointerCapture(e.pointerId);
|
|
2539
2589
|
function i(e) {
|
|
2540
|
-
let r = Math.min(
|
|
2590
|
+
let r = Math.min(wo, window.innerWidth * .85), i = Math.min(r, Math.max(Co, n + e.clientX - t));
|
|
2541
2591
|
x.value = i;
|
|
2542
2592
|
}
|
|
2543
2593
|
function a() {
|
|
2544
|
-
document.body.style.cursor = "", r.removeEventListener("pointermove", i), r.removeEventListener("pointerup", a), localStorage.setItem(
|
|
2594
|
+
document.body.style.cursor = "", r.removeEventListener("pointermove", i), r.removeEventListener("pointerup", a), localStorage.setItem(Eo, String(x.value));
|
|
2545
2595
|
}
|
|
2546
2596
|
document.body.style.cursor = "col-resize", r.addEventListener("pointermove", i), r.addEventListener("pointerup", a);
|
|
2547
2597
|
}
|
|
2548
2598
|
function T() {
|
|
2549
|
-
x.value = Math.max(
|
|
2599
|
+
x.value = Math.max(Co, x.value - 20);
|
|
2550
2600
|
}
|
|
2551
|
-
return (e, r) => (
|
|
2552
|
-
|
|
2601
|
+
return (e, r) => (H(), F("div", null, [
|
|
2602
|
+
G(e.$slots, "layout-top", {}, void 0, !0),
|
|
2553
2603
|
r[6] ||= I("a", {
|
|
2554
2604
|
href: "#td-content",
|
|
2555
2605
|
class: "td-skip-link"
|
|
2556
2606
|
}, "Skip to content", -1),
|
|
2557
|
-
I("header",
|
|
2558
|
-
I("div",
|
|
2607
|
+
I("header", eo, [
|
|
2608
|
+
I("div", to, [
|
|
2559
2609
|
R(Gi, { onClick: b }),
|
|
2560
2610
|
I("a", {
|
|
2561
2611
|
href: q(o)(q(C)("/")),
|
|
2562
2612
|
class: "td-brand"
|
|
2563
|
-
}, [R(bt), I("span",
|
|
2613
|
+
}, [R(bt), I("span", ro, K(q(a).title || "Typedown"), 1)], 8, no),
|
|
2564
2614
|
R(Kr, { class: "td-header-breadcrumb" })
|
|
2565
2615
|
]),
|
|
2566
2616
|
R(q(Yr)),
|
|
2567
|
-
|
|
2568
|
-
I("div",
|
|
2617
|
+
G(e.$slots, "nav-bar-after", {}, void 0, !0),
|
|
2618
|
+
I("div", io, [R(Pa), q(a).repo ? (H(), F("a", {
|
|
2569
2619
|
key: 0,
|
|
2570
2620
|
href: q(a).repo.url,
|
|
2571
2621
|
target: "_blank",
|
|
@@ -2583,7 +2633,7 @@ var Ya = { class: "td-header" }, Xa = { class: "td-header-left" }, Za = ["href"]
|
|
|
2583
2633
|
"fill-rule": "evenodd",
|
|
2584
2634
|
"clip-rule": "evenodd",
|
|
2585
2635
|
d: "M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59\n 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367\n 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778\n 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125\n 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2\n 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364\n 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z"
|
|
2586
|
-
})], -1)]], 8,
|
|
2636
|
+
})], -1)]], 8, ao)) : P("", !0)])
|
|
2587
2637
|
]),
|
|
2588
2638
|
I("div", {
|
|
2589
2639
|
class: B(["td-drawer-scrim", { "is-open": q(l) }]),
|
|
@@ -2597,10 +2647,10 @@ var Ya = { class: "td-header" }, Xa = { class: "td-header-left" }, Za = ["href"]
|
|
|
2597
2647
|
class: "td-resize-handle",
|
|
2598
2648
|
onPointerdown: it(w, ["prevent"])
|
|
2599
2649
|
}, null, 32),
|
|
2600
|
-
I("header",
|
|
2650
|
+
I("header", oo, [I("a", {
|
|
2601
2651
|
href: q(o)(q(C)("/")),
|
|
2602
2652
|
class: "td-brand"
|
|
2603
|
-
}, [R(bt), I("span",
|
|
2653
|
+
}, [R(bt), I("span", co, K(q(a).title || "Typedown"), 1)], 8, so), R(St, {
|
|
2604
2654
|
label: "Close menu",
|
|
2605
2655
|
onClick: q(d)
|
|
2606
2656
|
}, {
|
|
@@ -2621,18 +2671,18 @@ var Ya = { class: "td-header" }, Xa = { class: "td-header-left" }, Za = ["href"]
|
|
|
2621
2671
|
"active",
|
|
2622
2672
|
"onSelect"
|
|
2623
2673
|
]),
|
|
2624
|
-
m.value ? P("", !0) : (
|
|
2674
|
+
m.value ? P("", !0) : (H(), F("nav", lo, [c.value ? (H(), N(jr, {
|
|
2625
2675
|
key: 1,
|
|
2626
2676
|
tree: q(s).contentTree
|
|
2627
|
-
}, null, 8, ["tree"])) : (
|
|
2677
|
+
}, null, 8, ["tree"])) : (H(), N(_a, { key: 0 }))]))
|
|
2628
2678
|
], 6),
|
|
2629
|
-
I("div",
|
|
2679
|
+
I("div", uo, [I("nav", {
|
|
2630
2680
|
class: "td-sidebar-left",
|
|
2631
2681
|
"data-testid": "sidebar",
|
|
2632
2682
|
"aria-label": "Site navigation",
|
|
2633
2683
|
style: Ve({ width: `${x.value}px` })
|
|
2634
2684
|
}, [
|
|
2635
|
-
|
|
2685
|
+
G(e.$slots, "sidebar-top", {}, void 0, !0),
|
|
2636
2686
|
R(Na, {
|
|
2637
2687
|
ref_key: "sidebarSearch",
|
|
2638
2688
|
ref: g,
|
|
@@ -2651,7 +2701,7 @@ var Ya = { class: "td-header" }, Xa = { class: "td-header-left" }, Za = ["href"]
|
|
|
2651
2701
|
"search-active",
|
|
2652
2702
|
"ready"
|
|
2653
2703
|
]),
|
|
2654
|
-
|
|
2704
|
+
G(e.$slots, "sidebar-bottom", {}, void 0, !0),
|
|
2655
2705
|
I("div", {
|
|
2656
2706
|
class: "td-resize-handle",
|
|
2657
2707
|
role: "separator",
|
|
@@ -2660,62 +2710,62 @@ var Ya = { class: "td-header" }, Xa = { class: "td-header-left" }, Za = ["href"]
|
|
|
2660
2710
|
tabindex: "0",
|
|
2661
2711
|
onPointerdown: it(w, ["prevent"]),
|
|
2662
2712
|
onKeydown: [rt(it(T, ["prevent"]), ["left"]), rt(it(S, ["prevent"]), ["right"])]
|
|
2663
|
-
}, null, 40,
|
|
2664
|
-
], 4), I("div",
|
|
2665
|
-
|
|
2666
|
-
q(n).schema ? (
|
|
2667
|
-
i.value ? (
|
|
2668
|
-
q(t) ? (
|
|
2713
|
+
}, null, 40, fo)
|
|
2714
|
+
], 4), I("div", po, [I("main", mo, [I("article", ho, [
|
|
2715
|
+
G(e.$slots, "doc-before", {}, void 0, !0),
|
|
2716
|
+
q(n).schema ? (H(), F("div", go, K(q(n).schemaLabel ?? q(n).schema), 1)) : P("", !0),
|
|
2717
|
+
i.value ? (H(), F("div", _o, [(H(), N(qe(i.value), { size: 32 }))])) : P("", !0),
|
|
2718
|
+
q(t) ? (H(), F("h1", {
|
|
2669
2719
|
key: 2,
|
|
2670
2720
|
class: "td-page-title",
|
|
2671
2721
|
innerHTML: q(n).titleHtml
|
|
2672
|
-
}, null, 8,
|
|
2673
|
-
q(n).fileMetadata ? (
|
|
2722
|
+
}, null, 8, vo)) : P("", !0),
|
|
2723
|
+
q(n).fileMetadata ? (H(), F("div", yo, [I("span", null, K(q(y)(q(n).fileMetadata.mtime, "Modified")), 1), q(n).fileMetadata.ctime === q(n).fileMetadata.mtime ? P("", !0) : (H(), F("span", bo, " · " + K(q(y)(q(n).fileMetadata.ctime, "Created")), 1))])) : P("", !0),
|
|
2674
2724
|
R(q(Hi), {
|
|
2675
2725
|
class: "td-frontmatter-inline",
|
|
2676
2726
|
schema: q(n).schema,
|
|
2677
2727
|
frontmatter: q(n).frontmatter
|
|
2678
2728
|
}, null, 8, ["schema", "frontmatter"]),
|
|
2679
|
-
q(n).headings.length > 0 ? (
|
|
2729
|
+
q(n).headings.length > 0 ? (H(), N(pa, {
|
|
2680
2730
|
key: 4,
|
|
2681
2731
|
class: "td-toc-inline",
|
|
2682
2732
|
headings: q(n).headings,
|
|
2683
2733
|
static: ""
|
|
2684
2734
|
}, null, 8, ["headings"])) : P("", !0),
|
|
2685
|
-
|
|
2686
|
-
I("div",
|
|
2687
|
-
|
|
2735
|
+
G(e.$slots, "doc-content-before", {}, void 0, !0),
|
|
2736
|
+
I("div", xo, [R(q(we))]),
|
|
2737
|
+
G(e.$slots, "doc-content-after", {}, void 0, !0),
|
|
2688
2738
|
R(oa),
|
|
2689
|
-
q(a).repo && q(n).filepath ? (
|
|
2739
|
+
q(a).repo && q(n).filepath ? (H(), F("a", {
|
|
2690
2740
|
key: 5,
|
|
2691
2741
|
href: v(q(n).filepath),
|
|
2692
2742
|
target: "_blank",
|
|
2693
2743
|
rel: "noopener noreferrer",
|
|
2694
2744
|
class: "td-page-edit"
|
|
2695
|
-
}, "Edit this page", 8,
|
|
2696
|
-
|
|
2745
|
+
}, "Edit this page", 8, So)) : P("", !0),
|
|
2746
|
+
G(e.$slots, "doc-after", {}, void 0, !0)
|
|
2697
2747
|
])]), R(ha, { class: "td-rail" })])]),
|
|
2698
2748
|
R(Pr),
|
|
2699
|
-
|
|
2749
|
+
G(e.$slots, "layout-bottom", {}, void 0, !0)
|
|
2700
2750
|
]));
|
|
2701
2751
|
}
|
|
2702
|
-
}), [["__scopeId", "data-v-
|
|
2752
|
+
}), [["__scopeId", "data-v-fb070f3c"]]), Oo = { class: "pt-16 pb-24" }, ko = ["href"], Ao = /* @__PURE__ */ z({
|
|
2703
2753
|
__name: "TdNotFound",
|
|
2704
2754
|
setup(e) {
|
|
2705
2755
|
let { withBase: t } = A();
|
|
2706
|
-
return (e, n) => (
|
|
2756
|
+
return (e, n) => (H(), F("div", Oo, [
|
|
2707
2757
|
n[0] ||= I("p", { class: "text-td-4xl font-extrabold leading-none tracking-td-tight text-td-fg-muted" }, " 404 ", -1),
|
|
2708
2758
|
n[1] ||= I("h1", { class: "text-td-xl font-extrabold leading-td-tight tracking-td-tight mt-4" }, " Page Not Found ", -1),
|
|
2709
2759
|
n[2] ||= I("p", { class: "text-td-fg-muted mt-2 text-td-base leading-td-relaxed" }, " The page you are looking for does not exist. ", -1),
|
|
2710
2760
|
I("a", {
|
|
2711
2761
|
class: "inline-flex items-center mt-6 text-td-accent text-td-sm font-extrabold tracking-td-tight hover:text-td-accent-hi",
|
|
2712
2762
|
href: q(t)(q(C)("/"))
|
|
2713
|
-
}, "Go Home", 8,
|
|
2763
|
+
}, "Go Home", 8, ko)
|
|
2714
2764
|
]));
|
|
2715
2765
|
}
|
|
2716
|
-
}),
|
|
2717
|
-
Layout:
|
|
2718
|
-
NotFound:
|
|
2766
|
+
}), jo = {
|
|
2767
|
+
Layout: Do,
|
|
2768
|
+
NotFound: Ao
|
|
2719
2769
|
};
|
|
2720
2770
|
//#endregion
|
|
2721
|
-
export { bt as TdBrandIcon, jr as TdContentNav, Ce as TdDirectoryIndex, Pr as TdFooter, he as TdGlossaryIndex, ba as TdKbdShortcut, $ as TdKeyName,
|
|
2771
|
+
export { bt as TdBrandIcon, jr as TdContentNav, Ce as TdDirectoryIndex, Pr as TdFooter, he as TdGlossaryIndex, ba as TdKbdShortcut, $ as TdKeyName, Do as TdLayout, Ao as TdNotFound, oa as TdPreviousNext, ha as TdRail, Pa as TdThemeToggle, pa as TdToc, jo as default, Fa as useCopyCode, Ra as useGlobalHotkey, za as useLocalHotkeys };
|