typerighter 0.46.4 → 0.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{cli-Bu0MJBCR.js → cli-BN9VKDD-.js} +5 -5
- package/dist/cli.js +1 -1
- package/dist/client/theme-default.js +253 -183
- package/dist/index.js +2 -2
- package/dist/{init-B8sJzfbJ.js → init-CXUw6up6.js} +1 -1
- package/dist/node/lib/render/postprocess.d.ts.map +1 -1
- package/dist/typerighter.css +1 -1
- package/dist/{vite-KkSlWwFu.js → vite-Daafvzdq.js} +4 -4
- package/dist/vite.js +1 -1
- package/package.json +3 -3
|
@@ -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,35 +1514,35 @@ 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",
|
|
1542
1542
|
onClick: o
|
|
1543
1543
|
}, K(t.value ? "show less" : `+${a.value} more`), 1)) : P("", !0)]));
|
|
1544
1544
|
}
|
|
1545
|
-
}), [["__scopeId", "data-v-
|
|
1545
|
+
}), [["__scopeId", "data-v-919aaa0d"]]), yi = [
|
|
1546
1546
|
{
|
|
1547
1547
|
fg: "#a0522d",
|
|
1548
1548
|
bg: "rgba(160, 82, 45, 0.1)"
|
|
@@ -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
|
}))]),
|
|
@@ -2321,19 +2321,27 @@ var wa = { class: "td-search" }, Ta = { class: "td-search-input-wrap" }, Ea = {
|
|
|
2321
2321
|
//#region src/client/theme-default/composables/useCopyCode.ts
|
|
2322
2322
|
function Fa() {
|
|
2323
2323
|
function e(e) {
|
|
2324
|
-
let t = e.target?.closest(".copy");
|
|
2324
|
+
let t = e.target?.closest(".td-code-copy, .copy");
|
|
2325
2325
|
if (!t) return;
|
|
2326
|
-
let n = t.closest("div[class*=\"language-\"]")?.querySelector("code");
|
|
2326
|
+
let n = t.closest("figure.td-code-block, div[class*=\"language-\"]")?.querySelector("code");
|
|
2327
2327
|
if (!n) return;
|
|
2328
2328
|
navigator.clipboard.writeText(n.textContent ?? "").catch(() => {}), t.classList.add("copied");
|
|
2329
|
-
let r = t.
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2329
|
+
let r = t.querySelector(".td-code-copy-text");
|
|
2330
|
+
if (r) {
|
|
2331
|
+
let e = r.textContent;
|
|
2332
|
+
r.textContent = "Copied", setTimeout(() => {
|
|
2333
|
+
t.classList.remove("copied"), r.textContent = e;
|
|
2334
|
+
}, 2e3);
|
|
2335
|
+
} else {
|
|
2336
|
+
let e = t.getAttribute("data-copied") ?? "Copied", n = t.getAttribute("title") ?? "";
|
|
2337
|
+
t.setAttribute("title", e), setTimeout(() => {
|
|
2338
|
+
t.classList.remove("copied"), t.setAttribute("title", n);
|
|
2339
|
+
}, 2e3);
|
|
2340
|
+
}
|
|
2333
2341
|
}
|
|
2334
2342
|
Ue(() => {
|
|
2335
2343
|
document.addEventListener("click", e);
|
|
2336
|
-
}),
|
|
2344
|
+
}), V(() => {
|
|
2337
2345
|
document.removeEventListener("click", e);
|
|
2338
2346
|
});
|
|
2339
2347
|
}
|
|
@@ -2351,7 +2359,7 @@ function Ia() {
|
|
|
2351
2359
|
}
|
|
2352
2360
|
Ue(() => {
|
|
2353
2361
|
document.addEventListener("click", e);
|
|
2354
|
-
}),
|
|
2362
|
+
}), V(() => {
|
|
2355
2363
|
document.removeEventListener("click", e);
|
|
2356
2364
|
});
|
|
2357
2365
|
}
|
|
@@ -2367,7 +2375,7 @@ function Ra(e, t) {
|
|
|
2367
2375
|
function n(n) {
|
|
2368
2376
|
n.defaultPrevented || Ba(n, e) && (n.preventDefault(), t(n));
|
|
2369
2377
|
}
|
|
2370
|
-
Ue(() => window.addEventListener("keydown", n)),
|
|
2378
|
+
Ue(() => window.addEventListener("keydown", n)), V(() => window.removeEventListener("keydown", n));
|
|
2371
2379
|
}
|
|
2372
2380
|
function za(e) {
|
|
2373
2381
|
let t = [];
|
|
@@ -2385,7 +2393,7 @@ function za(e) {
|
|
|
2385
2393
|
}
|
|
2386
2394
|
return J(e, (e, t) => {
|
|
2387
2395
|
t?.removeEventListener("keydown", r), e?.addEventListener("keydown", r);
|
|
2388
|
-
}, { immediate: !0 }),
|
|
2396
|
+
}, { immediate: !0 }), V(() => {
|
|
2389
2397
|
e.value?.removeEventListener("keydown", r);
|
|
2390
2398
|
}), { register: n };
|
|
2391
2399
|
}
|
|
@@ -2430,7 +2438,7 @@ function Ua() {
|
|
|
2430
2438
|
}
|
|
2431
2439
|
Ue(() => {
|
|
2432
2440
|
document.addEventListener("pointermove", r), document.addEventListener("pointerdown", i);
|
|
2433
|
-
}),
|
|
2441
|
+
}), V(() => {
|
|
2434
2442
|
document.removeEventListener("pointermove", r), document.removeEventListener("pointerdown", i);
|
|
2435
2443
|
});
|
|
2436
2444
|
}
|
|
@@ -2448,10 +2456,16 @@ function qa() {
|
|
|
2448
2456
|
if (n !== void 0) for (let e of t) {
|
|
2449
2457
|
let t = e.querySelector("code");
|
|
2450
2458
|
if (!t) continue;
|
|
2451
|
-
let r = `td-mermaid-${Ka++}
|
|
2459
|
+
let r = `td-mermaid-${Ka++}`, i = e.getAttribute("data-title");
|
|
2452
2460
|
try {
|
|
2453
|
-
let { svg:
|
|
2454
|
-
|
|
2461
|
+
let { svg: a } = await n.default.render(r, t.textContent ?? ""), o = document.createElement("figure");
|
|
2462
|
+
o.className = "td-mermaid";
|
|
2463
|
+
let s = document.createElement("div");
|
|
2464
|
+
if (s.innerHTML = a, o.appendChild(s), i) {
|
|
2465
|
+
let e = document.createElement("figcaption");
|
|
2466
|
+
e.textContent = i, o.appendChild(e);
|
|
2467
|
+
}
|
|
2468
|
+
e.replaceWith(o);
|
|
2455
2469
|
} catch {
|
|
2456
2470
|
e.classList.add("td-mermaid-error");
|
|
2457
2471
|
}
|
|
@@ -2464,7 +2478,7 @@ function qa() {
|
|
|
2464
2478
|
childList: !0,
|
|
2465
2479
|
subtree: !0
|
|
2466
2480
|
}));
|
|
2467
|
-
}),
|
|
2481
|
+
}), V(() => {
|
|
2468
2482
|
e?.disconnect();
|
|
2469
2483
|
});
|
|
2470
2484
|
}
|
|
@@ -2484,32 +2498,88 @@ async function Ja() {
|
|
|
2484
2498
|
}), Ga;
|
|
2485
2499
|
}
|
|
2486
2500
|
//#endregion
|
|
2501
|
+
//#region src/client/theme-default/composables/useD2.ts
|
|
2502
|
+
var Ya = "https://esm.sh/@terrastruct/d2", Xa, Za = 0;
|
|
2503
|
+
function Qa() {
|
|
2504
|
+
let e;
|
|
2505
|
+
async function t() {
|
|
2506
|
+
let e = document.getElementById("td-content");
|
|
2507
|
+
if (!e) return;
|
|
2508
|
+
let t = e.querySelectorAll(".td-d2-placeholder");
|
|
2509
|
+
if (t.length === 0) return;
|
|
2510
|
+
let n = await $a();
|
|
2511
|
+
if (n) for (let e of t) {
|
|
2512
|
+
let t = e.querySelector("code");
|
|
2513
|
+
if (!t) continue;
|
|
2514
|
+
let r = `td-d2-${Za++}`, i = e.getAttribute("data-title");
|
|
2515
|
+
try {
|
|
2516
|
+
let a = await n.compile(t.textContent ?? "", { layout: "dagre" }), o = await n.render(a.diagram, {
|
|
2517
|
+
...a.renderOptions,
|
|
2518
|
+
themeID: document.documentElement.classList.contains("dark") ? 200 : 0
|
|
2519
|
+
}), s = document.createElement("figure");
|
|
2520
|
+
s.className = "td-d2", s.id = r;
|
|
2521
|
+
let c = document.createElement("div");
|
|
2522
|
+
if (c.innerHTML = o, s.appendChild(c), i) {
|
|
2523
|
+
let e = document.createElement("figcaption");
|
|
2524
|
+
e.textContent = i, s.appendChild(e);
|
|
2525
|
+
}
|
|
2526
|
+
e.replaceWith(s);
|
|
2527
|
+
} catch {
|
|
2528
|
+
e.classList.add("td-d2-error");
|
|
2529
|
+
}
|
|
2530
|
+
}
|
|
2531
|
+
}
|
|
2532
|
+
Ue(() => {
|
|
2533
|
+
t();
|
|
2534
|
+
let n = document.getElementById("td-content");
|
|
2535
|
+
n && (e = new MutationObserver(t), e.observe(n, {
|
|
2536
|
+
childList: !0,
|
|
2537
|
+
subtree: !0
|
|
2538
|
+
}));
|
|
2539
|
+
}), V(() => {
|
|
2540
|
+
e?.disconnect();
|
|
2541
|
+
});
|
|
2542
|
+
}
|
|
2543
|
+
async function $a() {
|
|
2544
|
+
if (Xa) return Xa;
|
|
2545
|
+
try {
|
|
2546
|
+
let e = await import(
|
|
2547
|
+
/* @vite-ignore */
|
|
2548
|
+
Ya
|
|
2549
|
+
);
|
|
2550
|
+
Xa = new (e.D2 || (e.default?.D2) || e.default)();
|
|
2551
|
+
} catch {
|
|
2552
|
+
return;
|
|
2553
|
+
}
|
|
2554
|
+
return Xa;
|
|
2555
|
+
}
|
|
2556
|
+
//#endregion
|
|
2487
2557
|
//#region src/client/theme-default/TdLayout.vue?vue&type=script&setup=true&lang.ts
|
|
2488
|
-
var
|
|
2558
|
+
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
2559
|
key: 0,
|
|
2490
2560
|
class: "pt-4",
|
|
2491
2561
|
"aria-label": "Site navigation"
|
|
2492
|
-
},
|
|
2562
|
+
}, uo = { class: "td-page" }, fo = ["onKeydown"], po = { class: "td-main-and-rail" }, mo = { class: "td-main" }, ho = {
|
|
2493
2563
|
id: "td-content",
|
|
2494
2564
|
class: "td-content",
|
|
2495
2565
|
"data-testid": "content"
|
|
2496
|
-
},
|
|
2566
|
+
}, go = {
|
|
2497
2567
|
key: 0,
|
|
2498
2568
|
class: "td-page-eyebrow"
|
|
2499
|
-
},
|
|
2569
|
+
}, _o = {
|
|
2500
2570
|
key: 1,
|
|
2501
2571
|
class: "td-page-icon"
|
|
2502
|
-
},
|
|
2572
|
+
}, vo = ["innerHTML"], yo = {
|
|
2503
2573
|
key: 3,
|
|
2504
2574
|
class: "td-page-meta"
|
|
2505
|
-
},
|
|
2575
|
+
}, 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
2576
|
__name: "TdLayout",
|
|
2507
2577
|
setup(e) {
|
|
2508
2578
|
let { title: t, page: n } = fe(), i = M(() => {
|
|
2509
2579
|
let e = n.value.icon;
|
|
2510
2580
|
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();
|
|
2581
|
+
}), 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();
|
|
2582
|
+
J(() => h.path, () => d()), Fa(), Ia(), qa(), Qa();
|
|
2513
2583
|
let g = Qe("sidebarSearch"), _ = Qe("menuSearch");
|
|
2514
2584
|
function v(e) {
|
|
2515
2585
|
let t = a.repo;
|
|
@@ -2529,43 +2599,43 @@ var Ya = { class: "td-header" }, Xa = { class: "td-header-left" }, Za = ["href"]
|
|
|
2529
2599
|
let i = n.value.frontmatter?.description === void 0 ? a.description ?? "" : String(n.value.frontmatter.description), o = document.querySelector("meta[name=\"description\"]");
|
|
2530
2600
|
o && o.setAttribute("content", i);
|
|
2531
2601
|
}), Ua();
|
|
2532
|
-
let x =
|
|
2602
|
+
let x = U(typeof localStorage < "u" && Number(localStorage.getItem(Eo)) || To);
|
|
2533
2603
|
function S() {
|
|
2534
|
-
x.value = Math.min(
|
|
2604
|
+
x.value = Math.min(wo, x.value + 20);
|
|
2535
2605
|
}
|
|
2536
2606
|
function w(e) {
|
|
2537
2607
|
let t = e.clientX, n = x.value, r = e.currentTarget;
|
|
2538
2608
|
r.setPointerCapture(e.pointerId);
|
|
2539
2609
|
function i(e) {
|
|
2540
|
-
let r = Math.min(
|
|
2610
|
+
let r = Math.min(wo, window.innerWidth * .85), i = Math.min(r, Math.max(Co, n + e.clientX - t));
|
|
2541
2611
|
x.value = i;
|
|
2542
2612
|
}
|
|
2543
2613
|
function a() {
|
|
2544
|
-
document.body.style.cursor = "", r.removeEventListener("pointermove", i), r.removeEventListener("pointerup", a), localStorage.setItem(
|
|
2614
|
+
document.body.style.cursor = "", r.removeEventListener("pointermove", i), r.removeEventListener("pointerup", a), localStorage.setItem(Eo, String(x.value));
|
|
2545
2615
|
}
|
|
2546
2616
|
document.body.style.cursor = "col-resize", r.addEventListener("pointermove", i), r.addEventListener("pointerup", a);
|
|
2547
2617
|
}
|
|
2548
2618
|
function T() {
|
|
2549
|
-
x.value = Math.max(
|
|
2619
|
+
x.value = Math.max(Co, x.value - 20);
|
|
2550
2620
|
}
|
|
2551
|
-
return (e, r) => (
|
|
2552
|
-
|
|
2621
|
+
return (e, r) => (H(), F("div", null, [
|
|
2622
|
+
G(e.$slots, "layout-top", {}, void 0, !0),
|
|
2553
2623
|
r[6] ||= I("a", {
|
|
2554
2624
|
href: "#td-content",
|
|
2555
2625
|
class: "td-skip-link"
|
|
2556
2626
|
}, "Skip to content", -1),
|
|
2557
|
-
I("header",
|
|
2558
|
-
I("div",
|
|
2627
|
+
I("header", eo, [
|
|
2628
|
+
I("div", to, [
|
|
2559
2629
|
R(Gi, { onClick: b }),
|
|
2560
2630
|
I("a", {
|
|
2561
2631
|
href: q(o)(q(C)("/")),
|
|
2562
2632
|
class: "td-brand"
|
|
2563
|
-
}, [R(bt), I("span",
|
|
2633
|
+
}, [R(bt), I("span", ro, K(q(a).title || "Typedown"), 1)], 8, no),
|
|
2564
2634
|
R(Kr, { class: "td-header-breadcrumb" })
|
|
2565
2635
|
]),
|
|
2566
2636
|
R(q(Yr)),
|
|
2567
|
-
|
|
2568
|
-
I("div",
|
|
2637
|
+
G(e.$slots, "nav-bar-after", {}, void 0, !0),
|
|
2638
|
+
I("div", io, [R(Pa), q(a).repo ? (H(), F("a", {
|
|
2569
2639
|
key: 0,
|
|
2570
2640
|
href: q(a).repo.url,
|
|
2571
2641
|
target: "_blank",
|
|
@@ -2583,7 +2653,7 @@ var Ya = { class: "td-header" }, Xa = { class: "td-header-left" }, Za = ["href"]
|
|
|
2583
2653
|
"fill-rule": "evenodd",
|
|
2584
2654
|
"clip-rule": "evenodd",
|
|
2585
2655
|
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,
|
|
2656
|
+
})], -1)]], 8, ao)) : P("", !0)])
|
|
2587
2657
|
]),
|
|
2588
2658
|
I("div", {
|
|
2589
2659
|
class: B(["td-drawer-scrim", { "is-open": q(l) }]),
|
|
@@ -2597,10 +2667,10 @@ var Ya = { class: "td-header" }, Xa = { class: "td-header-left" }, Za = ["href"]
|
|
|
2597
2667
|
class: "td-resize-handle",
|
|
2598
2668
|
onPointerdown: it(w, ["prevent"])
|
|
2599
2669
|
}, null, 32),
|
|
2600
|
-
I("header",
|
|
2670
|
+
I("header", oo, [I("a", {
|
|
2601
2671
|
href: q(o)(q(C)("/")),
|
|
2602
2672
|
class: "td-brand"
|
|
2603
|
-
}, [R(bt), I("span",
|
|
2673
|
+
}, [R(bt), I("span", co, K(q(a).title || "Typedown"), 1)], 8, so), R(St, {
|
|
2604
2674
|
label: "Close menu",
|
|
2605
2675
|
onClick: q(d)
|
|
2606
2676
|
}, {
|
|
@@ -2621,18 +2691,18 @@ var Ya = { class: "td-header" }, Xa = { class: "td-header-left" }, Za = ["href"]
|
|
|
2621
2691
|
"active",
|
|
2622
2692
|
"onSelect"
|
|
2623
2693
|
]),
|
|
2624
|
-
m.value ? P("", !0) : (
|
|
2694
|
+
m.value ? P("", !0) : (H(), F("nav", lo, [c.value ? (H(), N(jr, {
|
|
2625
2695
|
key: 1,
|
|
2626
2696
|
tree: q(s).contentTree
|
|
2627
|
-
}, null, 8, ["tree"])) : (
|
|
2697
|
+
}, null, 8, ["tree"])) : (H(), N(_a, { key: 0 }))]))
|
|
2628
2698
|
], 6),
|
|
2629
|
-
I("div",
|
|
2699
|
+
I("div", uo, [I("nav", {
|
|
2630
2700
|
class: "td-sidebar-left",
|
|
2631
2701
|
"data-testid": "sidebar",
|
|
2632
2702
|
"aria-label": "Site navigation",
|
|
2633
2703
|
style: Ve({ width: `${x.value}px` })
|
|
2634
2704
|
}, [
|
|
2635
|
-
|
|
2705
|
+
G(e.$slots, "sidebar-top", {}, void 0, !0),
|
|
2636
2706
|
R(Na, {
|
|
2637
2707
|
ref_key: "sidebarSearch",
|
|
2638
2708
|
ref: g,
|
|
@@ -2651,7 +2721,7 @@ var Ya = { class: "td-header" }, Xa = { class: "td-header-left" }, Za = ["href"]
|
|
|
2651
2721
|
"search-active",
|
|
2652
2722
|
"ready"
|
|
2653
2723
|
]),
|
|
2654
|
-
|
|
2724
|
+
G(e.$slots, "sidebar-bottom", {}, void 0, !0),
|
|
2655
2725
|
I("div", {
|
|
2656
2726
|
class: "td-resize-handle",
|
|
2657
2727
|
role: "separator",
|
|
@@ -2660,62 +2730,62 @@ var Ya = { class: "td-header" }, Xa = { class: "td-header-left" }, Za = ["href"]
|
|
|
2660
2730
|
tabindex: "0",
|
|
2661
2731
|
onPointerdown: it(w, ["prevent"]),
|
|
2662
2732
|
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) ? (
|
|
2733
|
+
}, null, 40, fo)
|
|
2734
|
+
], 4), I("div", po, [I("main", mo, [I("article", ho, [
|
|
2735
|
+
G(e.$slots, "doc-before", {}, void 0, !0),
|
|
2736
|
+
q(n).schema ? (H(), F("div", go, K(q(n).schemaLabel ?? q(n).schema), 1)) : P("", !0),
|
|
2737
|
+
i.value ? (H(), F("div", _o, [(H(), N(qe(i.value), { size: 32 }))])) : P("", !0),
|
|
2738
|
+
q(t) ? (H(), F("h1", {
|
|
2669
2739
|
key: 2,
|
|
2670
2740
|
class: "td-page-title",
|
|
2671
2741
|
innerHTML: q(n).titleHtml
|
|
2672
|
-
}, null, 8,
|
|
2673
|
-
q(n).fileMetadata ? (
|
|
2742
|
+
}, null, 8, vo)) : P("", !0),
|
|
2743
|
+
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
2744
|
R(q(Hi), {
|
|
2675
2745
|
class: "td-frontmatter-inline",
|
|
2676
2746
|
schema: q(n).schema,
|
|
2677
2747
|
frontmatter: q(n).frontmatter
|
|
2678
2748
|
}, null, 8, ["schema", "frontmatter"]),
|
|
2679
|
-
q(n).headings.length > 0 ? (
|
|
2749
|
+
q(n).headings.length > 0 ? (H(), N(pa, {
|
|
2680
2750
|
key: 4,
|
|
2681
2751
|
class: "td-toc-inline",
|
|
2682
2752
|
headings: q(n).headings,
|
|
2683
2753
|
static: ""
|
|
2684
2754
|
}, null, 8, ["headings"])) : P("", !0),
|
|
2685
|
-
|
|
2686
|
-
I("div",
|
|
2687
|
-
|
|
2755
|
+
G(e.$slots, "doc-content-before", {}, void 0, !0),
|
|
2756
|
+
I("div", xo, [R(q(we))]),
|
|
2757
|
+
G(e.$slots, "doc-content-after", {}, void 0, !0),
|
|
2688
2758
|
R(oa),
|
|
2689
|
-
q(a).repo && q(n).filepath ? (
|
|
2759
|
+
q(a).repo && q(n).filepath ? (H(), F("a", {
|
|
2690
2760
|
key: 5,
|
|
2691
2761
|
href: v(q(n).filepath),
|
|
2692
2762
|
target: "_blank",
|
|
2693
2763
|
rel: "noopener noreferrer",
|
|
2694
2764
|
class: "td-page-edit"
|
|
2695
|
-
}, "Edit this page", 8,
|
|
2696
|
-
|
|
2765
|
+
}, "Edit this page", 8, So)) : P("", !0),
|
|
2766
|
+
G(e.$slots, "doc-after", {}, void 0, !0)
|
|
2697
2767
|
])]), R(ha, { class: "td-rail" })])]),
|
|
2698
2768
|
R(Pr),
|
|
2699
|
-
|
|
2769
|
+
G(e.$slots, "layout-bottom", {}, void 0, !0)
|
|
2700
2770
|
]));
|
|
2701
2771
|
}
|
|
2702
|
-
}), [["__scopeId", "data-v-
|
|
2772
|
+
}), [["__scopeId", "data-v-fb070f3c"]]), Oo = { class: "pt-16 pb-24" }, ko = ["href"], Ao = /* @__PURE__ */ z({
|
|
2703
2773
|
__name: "TdNotFound",
|
|
2704
2774
|
setup(e) {
|
|
2705
2775
|
let { withBase: t } = A();
|
|
2706
|
-
return (e, n) => (
|
|
2776
|
+
return (e, n) => (H(), F("div", Oo, [
|
|
2707
2777
|
n[0] ||= I("p", { class: "text-td-4xl font-extrabold leading-none tracking-td-tight text-td-fg-muted" }, " 404 ", -1),
|
|
2708
2778
|
n[1] ||= I("h1", { class: "text-td-xl font-extrabold leading-td-tight tracking-td-tight mt-4" }, " Page Not Found ", -1),
|
|
2709
2779
|
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
2780
|
I("a", {
|
|
2711
2781
|
class: "inline-flex items-center mt-6 text-td-accent text-td-sm font-extrabold tracking-td-tight hover:text-td-accent-hi",
|
|
2712
2782
|
href: q(t)(q(C)("/"))
|
|
2713
|
-
}, "Go Home", 8,
|
|
2783
|
+
}, "Go Home", 8, ko)
|
|
2714
2784
|
]));
|
|
2715
2785
|
}
|
|
2716
|
-
}),
|
|
2717
|
-
Layout:
|
|
2718
|
-
NotFound:
|
|
2786
|
+
}), jo = {
|
|
2787
|
+
Layout: Do,
|
|
2788
|
+
NotFound: Ao
|
|
2719
2789
|
};
|
|
2720
2790
|
//#endregion
|
|
2721
|
-
export { bt as TdBrandIcon, jr as TdContentNav, Ce as TdDirectoryIndex, Pr as TdFooter, he as TdGlossaryIndex, ba as TdKbdShortcut, $ as TdKeyName,
|
|
2791
|
+
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 };
|