typerighter 0.43.0 → 0.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{app-DjpuKzvd.js → app-Cs3OppHS.js} +1 -1
- package/dist/{cli-DKDYNRYe.js → cli-BcvGlMzh.js} +5 -5
- package/dist/cli.js +1 -1
- package/dist/client/theme-default.js +154 -154
- package/dist/client.js +1 -1
- package/dist/index.js +2 -2
- package/dist/{init-sdwwozr2.js → init-DCe3DWKz.js} +2 -2
- package/dist/{jsonld-Crj_9xpa.js → jsonld-DZsAYYxx.js} +2 -2
- package/dist/node/build/index.d.ts.map +1 -1
- package/dist/node/lib/codegen/app-entry.d.ts +1 -1
- package/dist/node/lib/codegen/app-entry.d.ts.map +1 -1
- package/dist/node/lib/codegen/index.d.ts +0 -1
- package/dist/node/lib/codegen/index.d.ts.map +1 -1
- package/dist/node/lib/codegen/theme.d.ts +1 -0
- package/dist/node/lib/codegen/theme.d.ts.map +1 -1
- package/dist/node/lib/codegen/theme.test.d.ts +2 -0
- package/dist/node/lib/codegen/theme.test.d.ts.map +1 -0
- package/dist/node/lib/components.d.ts +14 -0
- package/dist/node/lib/components.d.ts.map +1 -0
- package/dist/node/lib/{htmlTemplate.d.ts → html-template.d.ts} +1 -1
- package/dist/node/lib/html-template.d.ts.map +1 -0
- package/dist/node/plugin/vite/index.d.ts.map +1 -1
- package/dist/node/plugin/vite/subplugins/component-contract.d.ts +4 -0
- package/dist/node/plugin/vite/subplugins/component-contract.d.ts.map +1 -0
- package/dist/node/plugin/vite/virtual/app.d.ts.map +1 -1
- package/dist/prerenderWorker.js +2 -2
- package/dist/{renderMath-C2Z7HdfG.js → renderMath-BAZXLnOu.js} +1 -1
- package/dist/rolldown-runtime-CEFd7nDs.js +30 -0
- package/dist/shared/types/index.d.ts +1 -0
- package/dist/shared/types/index.d.ts.map +1 -1
- package/dist/shared/types/json-schema.d.ts +24 -0
- package/dist/shared/types/json-schema.d.ts.map +1 -0
- package/dist/{shared-QuBFygxT.js → shared-kjMIXu1H.js} +114 -102
- package/dist/shared.js +1 -1
- package/dist/vite-DrX11EH5.js +127331 -0
- package/dist/vite.js +1 -1
- package/package.json +3 -3
- package/dist/node/lib/codegen/components.d.ts +0 -7
- package/dist/node/lib/codegen/components.d.ts.map +0 -1
- package/dist/node/lib/htmlTemplate.d.ts.map +0 -1
- package/dist/rolldown-runtime-B0aSnxlc.js +0 -20
- package/dist/vite-Cj1Ofykq.js +0 -1531
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as e, A as t, C as n, E as r, F as i, I as a, K as o, L as s, N as c, O as l, _ as u, a as d, b as f, c as p, et as m, f as h, k as g, l as _, n as v, p as y, r as b, s as x, v as S, w as C, y as w } from "../shared-kjMIXu1H.js";
|
|
2
2
|
import { t as T } from "../es-ClqUVRJn.js";
|
|
3
|
-
import { A as ee, C as te, D as ne, E, F as re, I as D, M as ie, N as ae, O as oe, P as se, S as ce, T as le, _ as ue, a as de, b as fe, c as O, d as pe, f as me, g as he, h as ge, i as _e, j as ve, k as ye, m as k, n as be, o as xe, p as Se, r as A, s as Ce, u as we, v as Te, w as Ee, x as De, y as Oe } from "../app-
|
|
3
|
+
import { A as ee, C as te, D as ne, E, F as re, I as D, M as ie, N as ae, O as oe, P as se, S as ce, T as le, _ as ue, a as de, b as fe, c as O, d as pe, f as me, g as he, h as ge, i as _e, j as ve, k as ye, m as k, n as be, o as xe, p as Se, r as A, s as Ce, u as we, v as Te, w as Ee, x as De, y as Oe } from "../app-Cs3OppHS.js";
|
|
4
4
|
import { a as ke, i as Ae, n as je, t as Me } from "../brand-CG1fQshq.js";
|
|
5
5
|
import { t as Ne } from "../inlineRe-Cn-J_E76.js";
|
|
6
6
|
import { Fragment as j, Teleport as Pe, 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 Fe, markRaw as Ie, mergeModels as Le, mergeProps as Re, nextTick as ze, normalizeClass as B, normalizeStyle as Be, onBeforeUnmount as Ve, onMounted as He, onScopeDispose as Ue, onUnmounted as We, openBlock as V, readonly as Ge, ref as H, renderList as U, renderSlot as W, resolveComponent as Ke, resolveDynamicComponent as G, shallowReadonly as qe, shallowRef as Je, toDisplayString as K, toValue as Ye, unref as q, useModel as Xe, useTemplateRef as Ze, vModelText as Qe, watch as J, watchEffect as $e, withCtx as et, withDirectives as tt, withKeys as nt, withModifiers as rt } from "vue";
|
|
@@ -1024,15 +1024,15 @@ function ur(e) {
|
|
|
1024
1024
|
let i = !0;
|
|
1025
1025
|
n(() => {
|
|
1026
1026
|
i = !1;
|
|
1027
|
-
}), import("../renderMath-
|
|
1027
|
+
}), import("../renderMath-BAZXLnOu.js").then(({ renderInlineMarkup: e }) => {
|
|
1028
1028
|
i && (t.value = e(r));
|
|
1029
1029
|
});
|
|
1030
1030
|
}), t;
|
|
1031
1031
|
}
|
|
1032
1032
|
function dr(e) {
|
|
1033
1033
|
let t = 0, n = "";
|
|
1034
|
-
for (let r of e.matchAll(Ne)) n +=
|
|
1035
|
-
return n +=
|
|
1034
|
+
for (let r of e.matchAll(Ne)) n += p(e.slice(t, r.index)), r[1] === void 0 ? n += p(r[0]) : n += `<code>${p(r[1])}</code>`, t = r.index + r[0].length;
|
|
1035
|
+
return n += p(e.slice(t)), n;
|
|
1036
1036
|
}
|
|
1037
1037
|
//#endregion
|
|
1038
1038
|
//#region src/client/theme-default/components/TdTree/TdTreeNodeLabel.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1053,25 +1053,25 @@ var fr = ["innerHTML"], pr = /* @__PURE__ */ z({
|
|
|
1053
1053
|
urlPrefix: { default: "" }
|
|
1054
1054
|
},
|
|
1055
1055
|
setup(e) {
|
|
1056
|
-
let
|
|
1056
|
+
let t = O(), { withBase: i } = A(), a = M(() => n(e.urlPrefix, e.node.name)), s = M(() => u(e.node)), c = M(() => s.value ? r(s.value.filepath) : C(a.value)), l = M(() => i(c.value)), p = M(() => s.value?.label ?? o(e.node.name)), m = M(() => s.value?.icon ? pe(s.value.icon.name) : void 0), h = M(() => e.node.entries.filter((e) => e.kind === "dir" || !f(e.item.filepath))), _ = M(() => 0 < e.node.entries.length), v = M(() => y(e.node));
|
|
1057
1057
|
function y(e) {
|
|
1058
1058
|
let t = 0;
|
|
1059
1059
|
for (let n of e.entries) n.kind === "file" ? t++ : t += y(n.node);
|
|
1060
1060
|
return t;
|
|
1061
1061
|
}
|
|
1062
|
-
let b = H(!g(
|
|
1062
|
+
let b = H(!g(a.value, t.path)), x = H(!1), S = M(() => h.value.filter((e) => e.kind === "file").length), T = M(() => x.value ? 0 : Math.max(0, S.value - xr)), te = M(() => {
|
|
1063
1063
|
if (x.value) return h.value;
|
|
1064
1064
|
let e = 0;
|
|
1065
1065
|
return h.value.filter((t) => t.kind === "dir" || ++e <= xr);
|
|
1066
1066
|
});
|
|
1067
|
-
J(() =>
|
|
1068
|
-
g(
|
|
1067
|
+
J(() => t.path, (e) => {
|
|
1068
|
+
g(a.value, e) && (b.value = !1);
|
|
1069
1069
|
});
|
|
1070
1070
|
function ne() {
|
|
1071
1071
|
x.value = !0;
|
|
1072
1072
|
}
|
|
1073
1073
|
function E(e) {
|
|
1074
|
-
return
|
|
1074
|
+
return t.path === e;
|
|
1075
1075
|
}
|
|
1076
1076
|
function re(e) {
|
|
1077
1077
|
e.key === "ArrowRight" && b.value ? (b.value = !1, e.preventDefault()) : e.key === "ArrowLeft" && !b.value && (b.value = !0, e.preventDefault());
|
|
@@ -1080,7 +1080,7 @@ var fr = ["innerHTML"], pr = /* @__PURE__ */ z({
|
|
|
1080
1080
|
b.value = !b.value;
|
|
1081
1081
|
}
|
|
1082
1082
|
return (e, t) => {
|
|
1083
|
-
let
|
|
1083
|
+
let n = Ke("TdTreeNode", !0);
|
|
1084
1084
|
return _.value ? (V(), F("div", {
|
|
1085
1085
|
key: 0,
|
|
1086
1086
|
class: "td-tree-node",
|
|
@@ -1095,7 +1095,7 @@ var fr = ["innerHTML"], pr = /* @__PURE__ */ z({
|
|
|
1095
1095
|
}, [R(q(ee), {
|
|
1096
1096
|
size: 14,
|
|
1097
1097
|
class: B(["td-tree-caret", { "is-collapsed": b.value }])
|
|
1098
|
-
}, null, 8, ["class"]), I("span", gr, K(
|
|
1098
|
+
}, null, 8, ["class"]), I("span", gr, K(p.value), 1)], 32),
|
|
1099
1099
|
I("a", {
|
|
1100
1100
|
href: l.value,
|
|
1101
1101
|
class: B(["td-tree-index-btn", { "is-active": E(c.value) }])
|
|
@@ -1113,14 +1113,14 @@ var fr = ["innerHTML"], pr = /* @__PURE__ */ z({
|
|
|
1113
1113
|
]), I("div", {
|
|
1114
1114
|
class: B(["td-collapse td-tree-children", { "is-collapsed": b.value }]),
|
|
1115
1115
|
role: "group"
|
|
1116
|
-
}, [I("div", null, [(V(!0), F(j, null, U(te.value, (e) => (V(), F(j, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (V(), N(
|
|
1116
|
+
}, [I("div", null, [(V(!0), F(j, null, U(te.value, (e) => (V(), F(j, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (V(), N(n, {
|
|
1117
1117
|
key: 0,
|
|
1118
1118
|
node: e.node,
|
|
1119
|
-
"url-prefix":
|
|
1119
|
+
"url-prefix": a.value
|
|
1120
1120
|
}, null, 8, ["node", "url-prefix"])) : (V(), F("a", {
|
|
1121
1121
|
key: 1,
|
|
1122
|
-
href: q(i)(q(
|
|
1123
|
-
class: B(["td-tree-link", { "is-active": E(q(
|
|
1122
|
+
href: q(i)(q(r)(e.item.filepath)),
|
|
1123
|
+
class: B(["td-tree-link", { "is-active": E(q(r)(e.item.filepath)) }])
|
|
1124
1124
|
}, [
|
|
1125
1125
|
e.item.icon && q(pe)(e.item.icon.name) ? (V(), N(G(q(pe)(e.item.icon.name)), {
|
|
1126
1126
|
key: 0,
|
|
@@ -1138,7 +1138,7 @@ var fr = ["innerHTML"], pr = /* @__PURE__ */ z({
|
|
|
1138
1138
|
default: et(() => [R(pr, { text: q(w)(e.item.filepath, e.item.label) }, null, 8, ["text"])]),
|
|
1139
1139
|
_: 2
|
|
1140
1140
|
}, 1032, ["text"]),
|
|
1141
|
-
e.item.fileMetadata ? (V(), F("span", br, K(q(
|
|
1141
|
+
e.item.fileMetadata ? (V(), F("span", br, K(q(d)(e.item.fileMetadata.mtime)), 1)) : P("", !0)
|
|
1142
1142
|
], 10, yr))], 64))), 128)), T.value > 0 && !x.value ? (V(), F("button", {
|
|
1143
1143
|
key: 0,
|
|
1144
1144
|
class: "td-tree-more",
|
|
@@ -1160,13 +1160,13 @@ var fr = ["innerHTML"], pr = /* @__PURE__ */ z({
|
|
|
1160
1160
|
__name: "TdContentNav",
|
|
1161
1161
|
props: { tree: {} },
|
|
1162
1162
|
setup(e) {
|
|
1163
|
-
let t = O(), { withBase:
|
|
1163
|
+
let t = O(), { withBase: n } = A(), i = M(() => e.tree.entries.find((e) => e.kind === "file" && f(e.item.filepath))?.item), a = M(() => e.tree.entries.filter((e) => e.kind === "dir" || !f(e.item.filepath)));
|
|
1164
1164
|
function o(e) {
|
|
1165
1165
|
return t.path === e;
|
|
1166
1166
|
}
|
|
1167
1167
|
return (e, t) => (V(), F("nav", Cr, [I("div", wr, [I("a", {
|
|
1168
|
-
href: q(
|
|
1169
|
-
class: B(["td-root-link", { "is-active": o(i.value ? q(
|
|
1168
|
+
href: q(n)(i.value ? q(r)(i.value.filepath) : q(C)("/")),
|
|
1169
|
+
class: B(["td-root-link", { "is-active": o(i.value ? q(r)(i.value.filepath) : q(C)("/")) }]),
|
|
1170
1170
|
role: "treeitem"
|
|
1171
1171
|
}, [
|
|
1172
1172
|
R(q(te), {
|
|
@@ -1174,14 +1174,14 @@ var fr = ["innerHTML"], pr = /* @__PURE__ */ z({
|
|
|
1174
1174
|
class: "td-root-link-icon"
|
|
1175
1175
|
}),
|
|
1176
1176
|
t[0] ||= I("span", { class: "td-root-link-text" }, "Overview", -1),
|
|
1177
|
-
i.value ? (V(), F("span", Er, K(i.value.fileMetadata ? q(
|
|
1177
|
+
i.value ? (V(), F("span", Er, K(i.value.fileMetadata ? q(d)(i.value.fileMetadata.mtime) : ""), 1)) : P("", !0)
|
|
1178
1178
|
], 10, Tr), (V(!0), F(j, null, U(a.value, (e) => (V(), F(j, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (V(), N(Sr, {
|
|
1179
1179
|
key: 0,
|
|
1180
1180
|
node: e.node
|
|
1181
1181
|
}, null, 8, ["node"])) : (V(), F("a", {
|
|
1182
1182
|
key: 1,
|
|
1183
|
-
href: q(
|
|
1184
|
-
class: B(["td-root-link", { "is-active": o(q(
|
|
1183
|
+
href: q(n)(q(r)(e.item.filepath)),
|
|
1184
|
+
class: B(["td-root-link", { "is-active": o(q(r)(e.item.filepath)) }]),
|
|
1185
1185
|
role: "treeitem"
|
|
1186
1186
|
}, [
|
|
1187
1187
|
e.item.icon && q(pe)(e.item.icon.name) ? (V(), N(G(q(pe)(e.item.icon.name)), {
|
|
@@ -1194,7 +1194,7 @@ var fr = ["innerHTML"], pr = /* @__PURE__ */ z({
|
|
|
1194
1194
|
class: "td-root-link-icon"
|
|
1195
1195
|
})),
|
|
1196
1196
|
I("span", Or, K(q(w)(e.item.filepath, e.item.label)), 1),
|
|
1197
|
-
e.item.fileMetadata ? (V(), F("span", kr, K(q(
|
|
1197
|
+
e.item.fileMetadata ? (V(), F("span", kr, K(q(d)(e.item.fileMetadata.mtime)), 1)) : P("", !0)
|
|
1198
1198
|
], 10, Dr))], 64))), 128))])]));
|
|
1199
1199
|
}
|
|
1200
1200
|
}), [["__scopeId", "data-v-d02f24f2"]]), jr = { class: "td-footer" }, Mr = { key: 0 }, Nr = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
@@ -1258,56 +1258,56 @@ var fr = ["innerHTML"], pr = /* @__PURE__ */ z({
|
|
|
1258
1258
|
}, Wr = 3, Gr = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
1259
1259
|
__name: "TdBreadcrumb",
|
|
1260
1260
|
setup(e) {
|
|
1261
|
-
let t = O(), { withBase: n } = A(),
|
|
1262
|
-
let e =
|
|
1261
|
+
let t = O(), { withBase: n } = A(), r = H(!1), a = M(() => {
|
|
1262
|
+
let e = i(t.path), r = [{
|
|
1263
1263
|
name: "Home",
|
|
1264
1264
|
href: n(C("/"))
|
|
1265
1265
|
}];
|
|
1266
|
-
if (e === "/") return
|
|
1267
|
-
let
|
|
1266
|
+
if (e === "/") return r;
|
|
1267
|
+
let a = e.replace(/^\//, "").split("/"), s = l(e) ? a.slice(0, -1) : a;
|
|
1268
1268
|
for (let e = 0; e < s.length; e++) {
|
|
1269
|
-
let t = "/" + s.slice(0, e + 1).join("/"),
|
|
1270
|
-
|
|
1271
|
-
name:
|
|
1272
|
-
href: n(
|
|
1269
|
+
let t = "/" + s.slice(0, e + 1).join("/"), i = e === s.length - 1;
|
|
1270
|
+
r.push({
|
|
1271
|
+
name: o(s[e]),
|
|
1272
|
+
href: n(i ? t : C(t))
|
|
1273
1273
|
});
|
|
1274
1274
|
}
|
|
1275
|
-
return
|
|
1276
|
-
}), s = M(() => Wr <
|
|
1275
|
+
return r;
|
|
1276
|
+
}), s = M(() => Wr < a.value.length), c = M(() => a.value.slice(1, -2));
|
|
1277
1277
|
return J(() => t.path, () => {
|
|
1278
|
-
|
|
1278
|
+
r.value = !1;
|
|
1279
1279
|
}), (e, t) => (V(), F("nav", Ir, [I("a", {
|
|
1280
|
-
href:
|
|
1280
|
+
href: a.value[0].href,
|
|
1281
1281
|
class: "td-breadcrumb-link td-breadcrumb-home"
|
|
1282
|
-
}, K(
|
|
1282
|
+
}, K(a.value[0].name), 9, Lr), s.value ? (V(), F(j, { key: 0 }, [
|
|
1283
1283
|
t[2] ||= I("span", {
|
|
1284
1284
|
class: "td-breadcrumb-sep",
|
|
1285
1285
|
"aria-hidden": "true"
|
|
1286
1286
|
}, "/", -1),
|
|
1287
1287
|
R(Fr, {
|
|
1288
|
-
open:
|
|
1289
|
-
"onUpdate:open": t[0] ||= (e) =>
|
|
1288
|
+
open: r.value,
|
|
1289
|
+
"onUpdate:open": t[0] ||= (e) => r.value = e
|
|
1290
1290
|
}, {
|
|
1291
1291
|
trigger: et(() => [I("button", Rr, [R(q(ne), { size: 14 })])]),
|
|
1292
|
-
default: et(() => [(V(!0), F(j, null, U(
|
|
1292
|
+
default: et(() => [(V(!0), F(j, null, U(c.value, (e) => (V(), F("a", {
|
|
1293
1293
|
key: e.href,
|
|
1294
1294
|
href: e.href,
|
|
1295
1295
|
class: "td-breadcrumb-dropdown-item"
|
|
1296
1296
|
}, K(e.name), 9, zr))), 128))]),
|
|
1297
1297
|
_: 1
|
|
1298
1298
|
}, 8, ["open"]),
|
|
1299
|
-
(V(!0), F(j, null, U(
|
|
1299
|
+
(V(!0), F(j, null, U(a.value.slice(-2), (e) => (V(), F(j, { key: e.href }, [t[1] ||= I("span", {
|
|
1300
1300
|
class: "td-breadcrumb-sep",
|
|
1301
1301
|
"aria-hidden": "true"
|
|
1302
|
-
}, "/", -1), e ===
|
|
1302
|
+
}, "/", -1), e === a.value[a.value.length - 1] ? (V(), F("span", Vr, K(e.name), 1)) : (V(), F("a", {
|
|
1303
1303
|
key: 0,
|
|
1304
1304
|
href: e.href,
|
|
1305
1305
|
class: "td-breadcrumb-link"
|
|
1306
1306
|
}, K(e.name), 9, Br))], 64))), 128))
|
|
1307
|
-
], 64)) : (V(!0), F(j, { key: 1 }, U(
|
|
1307
|
+
], 64)) : (V(!0), F(j, { key: 1 }, U(a.value.slice(1), (e, n) => (V(), F(j, { key: e.href }, [t[3] ||= I("span", {
|
|
1308
1308
|
class: "td-breadcrumb-sep",
|
|
1309
1309
|
"aria-hidden": "true"
|
|
1310
|
-
}, "/", -1), n <
|
|
1310
|
+
}, "/", -1), n < a.value.length - 2 ? (V(), F("a", {
|
|
1311
1311
|
key: 0,
|
|
1312
1312
|
href: e.href,
|
|
1313
1313
|
class: "td-breadcrumb-link"
|
|
@@ -1322,18 +1322,18 @@ var fr = ["innerHTML"], pr = /* @__PURE__ */ z({
|
|
|
1322
1322
|
"rel"
|
|
1323
1323
|
], Jr = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
1324
1324
|
__name: "TdHeaderNavBar",
|
|
1325
|
-
setup(
|
|
1325
|
+
setup(e) {
|
|
1326
1326
|
let n = A(), { withBase: r } = n, i = O();
|
|
1327
|
-
function a(
|
|
1328
|
-
return !e
|
|
1327
|
+
function a(e) {
|
|
1328
|
+
return !t(e) && i.path.startsWith(r(e));
|
|
1329
1329
|
}
|
|
1330
|
-
return (
|
|
1331
|
-
key:
|
|
1332
|
-
href: q(
|
|
1333
|
-
target: q(
|
|
1334
|
-
rel: q(
|
|
1335
|
-
class: B(["td-header-nav-link", { "is-active": a(
|
|
1336
|
-
}, [L(K(
|
|
1330
|
+
return (e, i) => q(n).nav?.length ? (V(), F("nav", Kr, [(V(!0), F(j, null, U(q(n).nav, (e) => (V(), F("a", {
|
|
1331
|
+
key: e.link,
|
|
1332
|
+
href: q(t)(e.link) ? e.link : q(r)(e.link),
|
|
1333
|
+
target: q(t)(e.link) ? "_blank" : void 0,
|
|
1334
|
+
rel: q(t)(e.link) ? "noopener noreferrer" : void 0,
|
|
1335
|
+
class: B(["td-header-nav-link", { "is-active": a(e.link) }])
|
|
1336
|
+
}, [L(K(e.title), 1), q(t)(e.link) ? (V(), N(q(ie), {
|
|
1337
1337
|
key: 0,
|
|
1338
1338
|
size: 14
|
|
1339
1339
|
})) : P("", !0)], 10, qr))), 128))])) : P("", !0);
|
|
@@ -1347,25 +1347,25 @@ var fr = ["innerHTML"], pr = /* @__PURE__ */ z({
|
|
|
1347
1347
|
"rel"
|
|
1348
1348
|
], Zr = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
1349
1349
|
__name: "TdHeaderNavMenu",
|
|
1350
|
-
setup(
|
|
1350
|
+
setup(e) {
|
|
1351
1351
|
let n = A(), { withBase: r } = n, i = O();
|
|
1352
|
-
function a(
|
|
1353
|
-
return !e
|
|
1352
|
+
function a(e) {
|
|
1353
|
+
return !t(e) && i.path.startsWith(r(e));
|
|
1354
1354
|
}
|
|
1355
|
-
return (
|
|
1356
|
-
key:
|
|
1357
|
-
href: q(
|
|
1358
|
-
target: q(
|
|
1359
|
-
rel: q(
|
|
1360
|
-
class: B(["td-menu-nav-item", { "is-active": a(
|
|
1355
|
+
return (e, i) => q(n).nav?.length ? (V(), F("nav", Yr, [(V(!0), F(j, null, U(q(n).nav, (e) => (V(), F("a", {
|
|
1356
|
+
key: e.link,
|
|
1357
|
+
href: q(t)(e.link) ? e.link : q(r)(e.link),
|
|
1358
|
+
target: q(t)(e.link) ? "_blank" : void 0,
|
|
1359
|
+
rel: q(t)(e.link) ? "noopener noreferrer" : void 0,
|
|
1360
|
+
class: B(["td-menu-nav-item", { "is-active": a(e.link) }])
|
|
1361
1361
|
}, [
|
|
1362
|
-
|
|
1362
|
+
e.icon ? (V(), N(we, {
|
|
1363
1363
|
key: 0,
|
|
1364
|
-
name:
|
|
1364
|
+
name: e.icon,
|
|
1365
1365
|
size: 16
|
|
1366
1366
|
}, null, 8, ["name"])) : P("", !0),
|
|
1367
|
-
I("span", null, K(
|
|
1368
|
-
q(
|
|
1367
|
+
I("span", null, K(e.title), 1),
|
|
1368
|
+
q(t)(e.link) ? (V(), N(q(ie), {
|
|
1369
1369
|
key: 1,
|
|
1370
1370
|
size: 14
|
|
1371
1371
|
})) : P("", !0)
|
|
@@ -1403,29 +1403,29 @@ function ti(e) {
|
|
|
1403
1403
|
let t = e.trim();
|
|
1404
1404
|
return !t || !ni({ url: t }) ? void 0 : {
|
|
1405
1405
|
url: t,
|
|
1406
|
-
name:
|
|
1406
|
+
name: a(t),
|
|
1407
1407
|
isImage: !0
|
|
1408
1408
|
};
|
|
1409
1409
|
}
|
|
1410
1410
|
if (typeof e != "object") return;
|
|
1411
1411
|
let t = e, n = t.$ref ?? t;
|
|
1412
1412
|
if (typeof n.url != "string") return;
|
|
1413
|
-
let r = n.url,
|
|
1413
|
+
let r = n.url, i = n.name ?? a(r), o = n.format ?? t.format;
|
|
1414
1414
|
return {
|
|
1415
1415
|
url: r,
|
|
1416
|
-
name:
|
|
1416
|
+
name: i,
|
|
1417
1417
|
format: o,
|
|
1418
1418
|
icon: n.icon,
|
|
1419
1419
|
isImage: ni({
|
|
1420
1420
|
url: r,
|
|
1421
|
-
name:
|
|
1421
|
+
name: i,
|
|
1422
1422
|
format: o
|
|
1423
1423
|
})
|
|
1424
1424
|
};
|
|
1425
1425
|
}
|
|
1426
1426
|
function ni(e) {
|
|
1427
1427
|
if (e.format && ei.has(e.format.toLowerCase())) return !0;
|
|
1428
|
-
let t =
|
|
1428
|
+
let t = s(e.name || e.url).slice(1);
|
|
1429
1429
|
return t ? ei.has(t.toLowerCase()) : !1;
|
|
1430
1430
|
}
|
|
1431
1431
|
//#endregion
|
|
@@ -1442,9 +1442,9 @@ var ri = {
|
|
|
1442
1442
|
default: !1
|
|
1443
1443
|
}
|
|
1444
1444
|
},
|
|
1445
|
-
setup(
|
|
1446
|
-
let { withBase: n } = A(), r = M(() => ti(
|
|
1447
|
-
return (
|
|
1445
|
+
setup(e) {
|
|
1446
|
+
let { withBase: n } = A(), r = M(() => ti(e.value)), i = M(() => r.value?.icon ? pe(r.value.icon.name) : void 0), a = M(() => r.value !== void 0 && t(r.value.url));
|
|
1447
|
+
return (t, o) => r.value ? (V(), F("span", ri, [r.value.isImage ? (V(), F("a", {
|
|
1448
1448
|
key: 0,
|
|
1449
1449
|
href: q(n)(r.value.url),
|
|
1450
1450
|
target: "_blank",
|
|
@@ -1475,11 +1475,11 @@ var ri = {
|
|
|
1475
1475
|
key: 3,
|
|
1476
1476
|
href: q(n)(r.value.url),
|
|
1477
1477
|
class: "td-widget-ref"
|
|
1478
|
-
}, [i.value && !
|
|
1478
|
+
}, [i.value && !e.hideIcon ? (V(), N(G(i.value), {
|
|
1479
1479
|
key: 0,
|
|
1480
1480
|
size: 14,
|
|
1481
1481
|
class: "td-widget-ref-icon"
|
|
1482
|
-
})) : P("", !0), L(K(r.value.name), 1)], 8, li))])) : (V(), F("span", ui, K(
|
|
1482
|
+
})) : P("", !0), L(K(r.value.name), 1)], 8, li))])) : (V(), F("span", ui, K(e.value), 1));
|
|
1483
1483
|
}
|
|
1484
1484
|
}), [["__scopeId", "data-v-e593af69"]]), fi = { key: 0 }, pi = { class: "td-widget-list td-widget-list-icons" }, mi = { key: 1 }, hi = { class: "td-widget-list" }, gi = 5, _i = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
1485
1485
|
__name: "TdWidgetList",
|
|
@@ -1690,7 +1690,7 @@ var xi = 5, Si = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
|
1690
1690
|
relation: ie,
|
|
1691
1691
|
list: ce
|
|
1692
1692
|
};
|
|
1693
|
-
function
|
|
1693
|
+
function a(e) {
|
|
1694
1694
|
return i[e] ?? mt;
|
|
1695
1695
|
}
|
|
1696
1696
|
let s = H(!1), c = H(!1);
|
|
@@ -1710,10 +1710,10 @@ var xi = 5, Si = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
|
1710
1710
|
}, null, 8, ["class"])]), I("div", { class: B(["td-collapse", { "is-collapsed": c.value }]) }, [I("div", null, [(V(!0), F(j, null, U(r.value, ([t, n]) => (V(), F("div", {
|
|
1711
1711
|
key: t,
|
|
1712
1712
|
class: "td-fm-rail-row"
|
|
1713
|
-
}, [I("span", Mi, [(V(), N(G(
|
|
1713
|
+
}, [I("span", Mi, [(V(), N(G(a(n.widget)), {
|
|
1714
1714
|
size: 12,
|
|
1715
1715
|
class: "td-fm-icon"
|
|
1716
|
-
})), L(" " + K(q(
|
|
1716
|
+
})), L(" " + K(q(o)(t)), 1)]), I("span", Ni, [R(Ai, {
|
|
1717
1717
|
definition: n,
|
|
1718
1718
|
value: e.frontmatter[t]
|
|
1719
1719
|
}, null, 8, ["definition", "value"])])]))), 128))])], 2)])) : r.value.length > 0 ? (V(), F("div", Pi, [I("button", {
|
|
@@ -1726,10 +1726,10 @@ var xi = 5, Si = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
|
1726
1726
|
})) : (V(), N(q(ee), {
|
|
1727
1727
|
key: 0,
|
|
1728
1728
|
size: 14
|
|
1729
|
-
}))])]), I("div", { class: B(["td-collapse", { "is-collapsed": s.value }]) }, [I("div", Ri, [(V(!0), F(j, null, U(r.value, ([t, n]) => (V(), F(j, { key: t }, [I("span", zi, [(V(), N(G(
|
|
1729
|
+
}))])]), I("div", { class: B(["td-collapse", { "is-collapsed": s.value }]) }, [I("div", Ri, [(V(!0), F(j, null, U(r.value, ([t, n]) => (V(), F(j, { key: t }, [I("span", zi, [(V(), N(G(a(n.widget)), {
|
|
1730
1730
|
size: 12,
|
|
1731
1731
|
class: "td-fm-icon"
|
|
1732
|
-
})), L(" " + K(q(
|
|
1732
|
+
})), L(" " + K(q(o)(t)), 1)]), I("span", Bi, [R(Ai, {
|
|
1733
1733
|
definition: n,
|
|
1734
1734
|
value: e.frontmatter[t]
|
|
1735
1735
|
}, null, 8, ["definition", "value"])])], 64))), 128))])], 2)])) : P("", !0);
|
|
@@ -1806,51 +1806,51 @@ function Gi() {
|
|
|
1806
1806
|
groupName: M(() => i.value.groupName)
|
|
1807
1807
|
};
|
|
1808
1808
|
}
|
|
1809
|
-
function Ki(e, t,
|
|
1810
|
-
if (e.entries.some((e) => e.kind === "file" &&
|
|
1811
|
-
let t = [],
|
|
1812
|
-
|
|
1813
|
-
for (let n of e.entries) n.kind === "file" ?
|
|
1809
|
+
function Ki(e, t, n) {
|
|
1810
|
+
if (e.entries.some((e) => e.kind === "file" && r(e.item.filepath) === t)) {
|
|
1811
|
+
let t = [], r = e.entries.find((e) => e.kind === "file" && f(e.item.filepath));
|
|
1812
|
+
r && r.kind === "file" && t.push(Ji(r.item, n));
|
|
1813
|
+
for (let n of e.entries) n.kind === "file" ? f(n.item.filepath) || t.push(Ji(n.item)) : t.push(Yi(n.node, ""));
|
|
1814
1814
|
return {
|
|
1815
1815
|
pages: t,
|
|
1816
1816
|
groupName: ""
|
|
1817
1817
|
};
|
|
1818
1818
|
}
|
|
1819
|
-
for (let
|
|
1820
|
-
if (
|
|
1821
|
-
let e = qi(
|
|
1819
|
+
for (let r of e.entries) {
|
|
1820
|
+
if (r.kind !== "dir") continue;
|
|
1821
|
+
let e = qi(r.node, t, "", n);
|
|
1822
1822
|
if (e !== void 0) return e;
|
|
1823
1823
|
}
|
|
1824
1824
|
}
|
|
1825
|
-
function qi(e,
|
|
1826
|
-
let s =
|
|
1827
|
-
if (e.entries.some((e) => e.kind === "file" &&
|
|
1828
|
-
let t = [], n =
|
|
1825
|
+
function qi(e, t, i, a) {
|
|
1826
|
+
let s = n(i, e.name);
|
|
1827
|
+
if (e.entries.some((e) => e.kind === "file" && r(e.item.filepath) === t)) {
|
|
1828
|
+
let t = [], n = u(e);
|
|
1829
1829
|
n && t.push(Ji(n));
|
|
1830
|
-
for (let n of e.entries) n.kind === "file" ?
|
|
1830
|
+
for (let n of e.entries) n.kind === "file" ? f(n.item.filepath) || t.push(Ji(n.item)) : t.push(Yi(n.node, s));
|
|
1831
1831
|
return {
|
|
1832
1832
|
pages: t,
|
|
1833
|
-
groupName:
|
|
1833
|
+
groupName: o(e.name)
|
|
1834
1834
|
};
|
|
1835
1835
|
}
|
|
1836
|
-
for (let
|
|
1837
|
-
if (
|
|
1838
|
-
let e = qi(
|
|
1836
|
+
for (let n of e.entries) {
|
|
1837
|
+
if (n.kind !== "dir") continue;
|
|
1838
|
+
let e = qi(n.node, t, s, a);
|
|
1839
1839
|
if (e !== void 0) return e;
|
|
1840
1840
|
}
|
|
1841
1841
|
}
|
|
1842
1842
|
function Ji(e, t) {
|
|
1843
|
-
let
|
|
1843
|
+
let n = e.label === void 0 ? t === void 0 ? w(e.filepath) : S(e.filepath, t) : e.label;
|
|
1844
1844
|
return {
|
|
1845
|
-
url:
|
|
1846
|
-
title:
|
|
1845
|
+
url: r(e.filepath),
|
|
1846
|
+
title: n
|
|
1847
1847
|
};
|
|
1848
1848
|
}
|
|
1849
|
-
function Yi(e,
|
|
1850
|
-
let i = t
|
|
1849
|
+
function Yi(e, t) {
|
|
1850
|
+
let i = n(t, e.name), a = u(e);
|
|
1851
1851
|
return {
|
|
1852
|
-
url:
|
|
1853
|
-
title:
|
|
1852
|
+
url: a ? r(a.filepath) : C(i),
|
|
1853
|
+
title: a ? w(a.filepath, a.label) : o(e.name)
|
|
1854
1854
|
};
|
|
1855
1855
|
}
|
|
1856
1856
|
//#endregion
|
|
@@ -2050,18 +2050,18 @@ var la = {
|
|
|
2050
2050
|
}
|
|
2051
2051
|
}), [["__scopeId", "data-v-b61b97da"]]), ba = 120;
|
|
2052
2052
|
function xa() {
|
|
2053
|
-
let
|
|
2054
|
-
J(
|
|
2055
|
-
|
|
2053
|
+
let t = be(), n, r = Je([]), i = Je(!1);
|
|
2054
|
+
J(t, () => {
|
|
2055
|
+
n = void 0;
|
|
2056
2056
|
});
|
|
2057
|
-
function
|
|
2058
|
-
if (
|
|
2059
|
-
if (
|
|
2060
|
-
fields:
|
|
2061
|
-
storeFields:
|
|
2062
|
-
})),
|
|
2057
|
+
function a() {
|
|
2058
|
+
if (n) return n;
|
|
2059
|
+
if (t.value) return n = Ie(T.loadJSON(t.value, {
|
|
2060
|
+
fields: e,
|
|
2061
|
+
storeFields: m
|
|
2062
|
+
})), n;
|
|
2063
2063
|
}
|
|
2064
|
-
function
|
|
2064
|
+
function o(e, t) {
|
|
2065
2065
|
if (!e) return "";
|
|
2066
2066
|
let n = Object.keys(t);
|
|
2067
2067
|
if (n.length === 0) return e.slice(0, ba);
|
|
@@ -2073,13 +2073,13 @@ function xa() {
|
|
|
2073
2073
|
let a = Math.max(0, i - 30), o = Math.min(e.length, a + ba), s = e.slice(a, o).trim();
|
|
2074
2074
|
return 0 < a && (s = "..." + s), o < e.length && (s += "..."), s;
|
|
2075
2075
|
}
|
|
2076
|
-
async function
|
|
2077
|
-
let t =
|
|
2076
|
+
async function s(e) {
|
|
2077
|
+
let t = a();
|
|
2078
2078
|
if (!t) {
|
|
2079
|
-
|
|
2079
|
+
i.value = !1;
|
|
2080
2080
|
return;
|
|
2081
2081
|
}
|
|
2082
|
-
let
|
|
2082
|
+
let n = t.search(e, {
|
|
2083
2083
|
prefix: !0,
|
|
2084
2084
|
fuzzy: (e) => 3 < e.length && .2,
|
|
2085
2085
|
boost: {
|
|
@@ -2087,37 +2087,37 @@ function xa() {
|
|
|
2087
2087
|
text: 2
|
|
2088
2088
|
}
|
|
2089
2089
|
}).slice(0, 20);
|
|
2090
|
-
|
|
2090
|
+
r.value = n.map((e) => ({
|
|
2091
2091
|
id: e.id,
|
|
2092
2092
|
title: e.title,
|
|
2093
|
-
excerpt:
|
|
2093
|
+
excerpt: o(e.text ?? "", e.match),
|
|
2094
2094
|
score: e.score
|
|
2095
|
-
})),
|
|
2095
|
+
})), i.value = !1;
|
|
2096
2096
|
}
|
|
2097
|
-
let
|
|
2098
|
-
function
|
|
2097
|
+
let c = y(s, 150);
|
|
2098
|
+
function l(e) {
|
|
2099
2099
|
let t = e.trim();
|
|
2100
|
-
t.length === 0 ? (
|
|
2100
|
+
t.length === 0 ? (r.value = [], i.value = !1) : (i.value = !0, c(t));
|
|
2101
2101
|
}
|
|
2102
|
-
function
|
|
2103
|
-
|
|
2102
|
+
function u() {
|
|
2103
|
+
i.value = !1;
|
|
2104
2104
|
}
|
|
2105
|
-
let
|
|
2106
|
-
return J(
|
|
2107
|
-
e && (
|
|
2105
|
+
let d = Je(!1);
|
|
2106
|
+
return J(t, (e) => {
|
|
2107
|
+
e && (d.value = !0);
|
|
2108
2108
|
}, { immediate: !0 }), {
|
|
2109
|
-
results:
|
|
2110
|
-
searching:
|
|
2111
|
-
indexLoaded:
|
|
2112
|
-
search:
|
|
2113
|
-
cancel:
|
|
2109
|
+
results: r,
|
|
2110
|
+
searching: i,
|
|
2111
|
+
indexLoaded: d,
|
|
2112
|
+
search: l,
|
|
2113
|
+
cancel: u
|
|
2114
2114
|
};
|
|
2115
2115
|
}
|
|
2116
2116
|
//#endregion
|
|
2117
2117
|
//#region src/client/theme-default/components/TdSiteSearch/highlight.ts
|
|
2118
2118
|
function Sa(e, t) {
|
|
2119
|
-
if (!e || !t) return
|
|
2120
|
-
let n = t.trim().split(/\s+/).filter(Boolean), r =
|
|
2119
|
+
if (!e || !t) return p(e);
|
|
2120
|
+
let n = t.trim().split(/\s+/).filter(Boolean), r = p(e);
|
|
2121
2121
|
for (let e of n) {
|
|
2122
2122
|
let t = RegExp(`(${x(e)})`, "gi");
|
|
2123
2123
|
r = r.replace(t, "<mark>$1</mark>");
|
|
@@ -2148,15 +2148,15 @@ var Ca = { class: "td-search" }, wa = { class: "td-search-input-wrap" }, Ta = {
|
|
|
2148
2148
|
},
|
|
2149
2149
|
emits: /*@__PURE__*/ Le(["select"], ["update:active", "update:query"]),
|
|
2150
2150
|
setup(e, { expose: t, emit: n }) {
|
|
2151
|
-
let r = Xe(e, "active"), i = Xe(e, "query"),
|
|
2151
|
+
let r = Xe(e, "active"), i = Xe(e, "query"), a = n, s = O(), { withBase: l } = A(), { results: u, searching: d, indexLoaded: f, search: p, cancel: m } = xa(), h = H(-1), g = M(() => 0 < i.value.trim().length), _ = M(() => {
|
|
2152
2152
|
let e = [], t = /* @__PURE__ */ new Map();
|
|
2153
2153
|
for (let n of u.value) {
|
|
2154
|
-
let r =
|
|
2154
|
+
let r = c(n.id), i = t.get(r);
|
|
2155
2155
|
if (!i) {
|
|
2156
2156
|
let n = r.split("/").pop() || "index";
|
|
2157
2157
|
i = {
|
|
2158
2158
|
pageUrl: r,
|
|
2159
|
-
pageTitle:
|
|
2159
|
+
pageTitle: o(n),
|
|
2160
2160
|
results: []
|
|
2161
2161
|
}, t.set(r, i), e.push(i);
|
|
2162
2162
|
}
|
|
@@ -2191,7 +2191,7 @@ var Ca = { class: "td-search" }, wa = { class: "td-search-input-wrap" }, Ta = {
|
|
|
2191
2191
|
}
|
|
2192
2192
|
}
|
|
2193
2193
|
function S() {
|
|
2194
|
-
|
|
2194
|
+
a("select");
|
|
2195
2195
|
}
|
|
2196
2196
|
function C() {
|
|
2197
2197
|
requestAnimationFrame(() => {
|
|
@@ -2254,7 +2254,7 @@ var Ca = { class: "td-search" }, wa = { class: "td-search-input-wrap" }, Ta = {
|
|
|
2254
2254
|
href: q(l)(e.id),
|
|
2255
2255
|
class: B(["td-search-result", {
|
|
2256
2256
|
"is-selected": b.value.get(e.id) === h.value,
|
|
2257
|
-
"is-current": q(l)(e.id) === q(
|
|
2257
|
+
"is-current": q(l)(e.id) === q(s).path
|
|
2258
2258
|
}]),
|
|
2259
2259
|
onClick: S
|
|
2260
2260
|
}, [
|
|
@@ -2479,7 +2479,7 @@ var Ja = { class: "td-header" }, Ya = { class: "td-header-left" }, Xa = ["href"]
|
|
|
2479
2479
|
}, mo = { key: 0 }, ho = { class: "td-content-body" }, go = ["href"], _o = 200, vo = 500, yo = 300, bo = "td-sidebar-width", xo = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
2480
2480
|
__name: "TdLayout",
|
|
2481
2481
|
setup(e) {
|
|
2482
|
-
let { title: t, page: n } = de(),
|
|
2482
|
+
let { title: t, page: n } = de(), r = M(() => {
|
|
2483
2483
|
let e = n.value.icon;
|
|
2484
2484
|
return e ? pe(e.name) : void 0;
|
|
2485
2485
|
}), a = A(), { withBase: o } = a, s = _e(), c = M(() => s.value.ready), { isOpen: l, open: u, close: d } = Ui(), f = H(""), p = H(!1), m = H(!1), h = O();
|
|
@@ -2487,7 +2487,7 @@ var Ja = { class: "td-header" }, Ya = { class: "td-header-left" }, Xa = ["href"]
|
|
|
2487
2487
|
let g = Ze("sidebarSearch"), _ = Ze("menuSearch");
|
|
2488
2488
|
function v(e) {
|
|
2489
2489
|
let t = a.repo;
|
|
2490
|
-
return `${
|
|
2490
|
+
return `${i(t.url)}/edit/main/${[
|
|
2491
2491
|
t.root,
|
|
2492
2492
|
a.rootDir,
|
|
2493
2493
|
e
|
|
@@ -2522,9 +2522,9 @@ var Ja = { class: "td-header" }, Ya = { class: "td-header-left" }, Xa = ["href"]
|
|
|
2522
2522
|
function T() {
|
|
2523
2523
|
x.value = Math.max(_o, x.value - 20);
|
|
2524
2524
|
}
|
|
2525
|
-
return (e,
|
|
2525
|
+
return (e, i) => (V(), F("div", null, [
|
|
2526
2526
|
W(e.$slots, "layout-top", {}, void 0, !0),
|
|
2527
|
-
|
|
2527
|
+
i[6] ||= I("a", {
|
|
2528
2528
|
href: "#td-content",
|
|
2529
2529
|
class: "td-skip-link"
|
|
2530
2530
|
}, "Skip to content", -1),
|
|
@@ -2546,7 +2546,7 @@ var Ja = { class: "td-header" }, Ya = { class: "td-header-left" }, Xa = ["href"]
|
|
|
2546
2546
|
rel: "noopener noreferrer",
|
|
2547
2547
|
class: "td-header-icon-link",
|
|
2548
2548
|
"aria-label": "GitHub repository"
|
|
2549
|
-
}, [...
|
|
2549
|
+
}, [...i[5] ||= [I("svg", {
|
|
2550
2550
|
width: "20",
|
|
2551
2551
|
height: "20",
|
|
2552
2552
|
viewBox: "0 0 98 96",
|
|
@@ -2561,7 +2561,7 @@ var Ja = { class: "td-header" }, Ya = { class: "td-header-left" }, Xa = ["href"]
|
|
|
2561
2561
|
]),
|
|
2562
2562
|
I("div", {
|
|
2563
2563
|
class: B(["td-drawer-scrim", { "is-open": q(l) }]),
|
|
2564
|
-
onClick:
|
|
2564
|
+
onClick: i[0] ||= (...e) => q(d) && q(d)(...e)
|
|
2565
2565
|
}, null, 2),
|
|
2566
2566
|
I("aside", {
|
|
2567
2567
|
class: B(["td-drawer", { "is-open": q(l) }]),
|
|
@@ -2586,9 +2586,9 @@ var Ja = { class: "td-header" }, Ya = { class: "td-header-left" }, Xa = ["href"]
|
|
|
2586
2586
|
ref_key: "menuSearch",
|
|
2587
2587
|
ref: _,
|
|
2588
2588
|
query: f.value,
|
|
2589
|
-
"onUpdate:query":
|
|
2589
|
+
"onUpdate:query": i[1] ||= (e) => f.value = e,
|
|
2590
2590
|
active: m.value,
|
|
2591
|
-
"onUpdate:active":
|
|
2591
|
+
"onUpdate:active": i[2] ||= (e) => m.value = e,
|
|
2592
2592
|
onSelect: q(d)
|
|
2593
2593
|
}, null, 8, [
|
|
2594
2594
|
"query",
|
|
@@ -2611,9 +2611,9 @@ var Ja = { class: "td-header" }, Ya = { class: "td-header-left" }, Xa = ["href"]
|
|
|
2611
2611
|
ref_key: "sidebarSearch",
|
|
2612
2612
|
ref: g,
|
|
2613
2613
|
query: f.value,
|
|
2614
|
-
"onUpdate:query":
|
|
2614
|
+
"onUpdate:query": i[3] ||= (e) => f.value = e,
|
|
2615
2615
|
active: p.value,
|
|
2616
|
-
"onUpdate:active":
|
|
2616
|
+
"onUpdate:active": i[4] ||= (e) => p.value = e,
|
|
2617
2617
|
class: "td-sidebar-search"
|
|
2618
2618
|
}, null, 8, ["query", "active"]),
|
|
2619
2619
|
R(_a, {
|
|
@@ -2638,7 +2638,7 @@ var Ja = { class: "td-header" }, Ya = { class: "td-header-left" }, Xa = ["href"]
|
|
|
2638
2638
|
], 4), I("div", oo, [I("main", so, [I("article", co, [
|
|
2639
2639
|
W(e.$slots, "doc-before", {}, void 0, !0),
|
|
2640
2640
|
q(n).schema ? (V(), F("div", lo, K(q(n).schemaLabel ?? q(n).schema), 1)) : P("", !0),
|
|
2641
|
-
|
|
2641
|
+
r.value ? (V(), F("div", uo, [(V(), N(G(r.value), { size: 32 }))])) : P("", !0),
|
|
2642
2642
|
q(t) ? (V(), F("h1", {
|
|
2643
2643
|
key: 2,
|
|
2644
2644
|
class: "td-page-title",
|