vitepress-plugin-filelist 0.7.1 → 0.7.2
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.
|
@@ -594,9 +594,9 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
|
594
594
|
onClose: onNativeClose,
|
|
595
595
|
onClick: onBackdrop
|
|
596
596
|
}, [__props.open ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
|
|
597
|
-
createElementVNode("
|
|
598
|
-
createElementVNode("
|
|
599
|
-
__props.tip ? (openBlock(), createElementBlock("
|
|
597
|
+
createElementVNode("div", _hoisted_3$2, toDisplayString(__props.title), 1),
|
|
598
|
+
createElementVNode("div", _hoisted_4$2, toDisplayString(__props.text), 1),
|
|
599
|
+
__props.tip ? (openBlock(), createElementBlock("div", _hoisted_5$2, toDisplayString(__props.tip), 1)) : createCommentVNode("v-if", true),
|
|
600
600
|
createElementVNode("div", _hoisted_6$2, [__props.confirmLabel ? (openBlock(), createElementBlock("button", {
|
|
601
601
|
key: 0,
|
|
602
602
|
class: "fl-btn",
|
|
@@ -1501,12 +1501,12 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
1501
1501
|
}, null, 40, _hoisted_23$1)) : mode.value === "text" ? (openBlock(), createElementBlock("div", {
|
|
1502
1502
|
key: 4,
|
|
1503
1503
|
class: normalizeClass(["fl-preview-text", { "fl-preview-rendered": renderAs.value && view.value === "rendered" }])
|
|
1504
|
-
}, [truncated.value ? (openBlock(), createElementBlock("
|
|
1504
|
+
}, [truncated.value ? (openBlock(), createElementBlock("div", _hoisted_24$1, toDisplayString(t("textTruncated", { size: unref(formatSize)(__props.maxTextBytes) })), 1)) : createCommentVNode("v-if", true), renderAs.value === "markdown" && view.value === "rendered" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createCommentVNode(" sanitised by renderMarkdown (DOMPurify) "), renderedHtml.value ? (openBlock(), createElementBlock("div", {
|
|
1505
1505
|
key: 0,
|
|
1506
1506
|
class: "vp-doc fl-md",
|
|
1507
1507
|
innerHTML: renderedHtml.value
|
|
1508
1508
|
}, null, 8, _hoisted_25$1)) : (openBlock(), createElementBlock("div", _hoisted_26$1, toDisplayString(t("loading")), 1))], 64)) : renderAs.value === "html" && view.value === "rendered" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
1509
|
-
createElementVNode("
|
|
1509
|
+
createElementVNode("div", _hoisted_27$1, toDisplayString(t("htmlSandboxNote")), 1),
|
|
1510
1510
|
createCommentVNode(" empty sandbox: no scripts, no forms, no popups, an opaque origin "),
|
|
1511
1511
|
createElementVNode("iframe", {
|
|
1512
1512
|
class: "fl-preview-html",
|
|
@@ -1526,7 +1526,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
1526
1526
|
"data-kind": unref(fileKind)(__props.file.name),
|
|
1527
1527
|
"aria-hidden": "true"
|
|
1528
1528
|
}, toDisplayString(unref(extOf)(__props.file.name) || "FILE"), 9, _hoisted_32$1),
|
|
1529
|
-
createElementVNode("
|
|
1529
|
+
createElementVNode("div", _hoisted_33$1, toDisplayString(infoMessage.value), 1),
|
|
1530
1530
|
!__props.demo ? (openBlock(), createElementBlock("button", {
|
|
1531
1531
|
key: 0,
|
|
1532
1532
|
class: "fl-btn fl-btn-primary",
|
|
@@ -3037,8 +3037,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
3037
3037
|
])
|
|
3038
3038
|
], 34)) : errorMsg.value ? (openBlock(), createElementBlock("div", _hoisted_37, [
|
|
3039
3039
|
createTextVNode(toDisplayString(t("loadFailed", { message: errorMsg.value })) + " ", 1),
|
|
3040
|
-
/guest/i.test(errorMsg.value) ? (openBlock(), createElementBlock("
|
|
3041
|
-
unref(isNetworkError)(errorMsg.value) ? (openBlock(), createElementBlock("
|
|
3040
|
+
/guest/i.test(errorMsg.value) ? (openBlock(), createElementBlock("div", _hoisted_38, toDisplayString(t("guestHint")), 1)) : createCommentVNode("v-if", true),
|
|
3041
|
+
unref(isNetworkError)(errorMsg.value) ? (openBlock(), createElementBlock("div", _hoisted_39, toDisplayString(t("corsHint")), 1)) : createCommentVNode("v-if", true),
|
|
3042
3042
|
createElementVNode("button", {
|
|
3043
3043
|
class: "fl-btn",
|
|
3044
3044
|
type: "button",
|
|
@@ -3236,7 +3236,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
3236
3236
|
], 64))
|
|
3237
3237
|
], 6))], 64);
|
|
3238
3238
|
}), 128)),
|
|
3239
|
-
deepRow.value ? (openBlock(), createElementBlock("div", _hoisted_77, [createElementVNode("
|
|
3239
|
+
deepRow.value ? (openBlock(), createElementBlock("div", _hoisted_77, [createElementVNode("div", _hoisted_78, [deepRow.value === "running" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode(toDisplayString(t("deepRunning", { count: folderCounts.value.checked })) + " · ", 1), createElementVNode("button", {
|
|
3240
3240
|
class: "fl-deep-link",
|
|
3241
3241
|
type: "button",
|
|
3242
3242
|
onClick: pauseDeepSearch
|
package/dist/client/ssr/index.js
CHANGED
|
@@ -575,8 +575,8 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
|
575
575
|
"aria-label": __props.title
|
|
576
576
|
}, _attrs))}>`);
|
|
577
577
|
if (__props.open) {
|
|
578
|
-
_push(`<div class="fl-confirm-panel"><
|
|
579
|
-
if (__props.tip) _push(`<
|
|
578
|
+
_push(`<div class="fl-confirm-panel"><div class="fl-confirm-title">${ssrInterpolate(__props.title)}</div><div class="fl-confirm-text">${ssrInterpolate(__props.text)}</div>`);
|
|
579
|
+
if (__props.tip) _push(`<div class="fl-confirm-text">${ssrInterpolate(__props.tip)}</div>`);
|
|
580
580
|
else _push(`<!---->`);
|
|
581
581
|
_push(`<div class="fl-confirm-actions">`);
|
|
582
582
|
if (__props.confirmLabel) _push(`<button class="fl-btn" type="button">${ssrInterpolate(__props.cancelLabel)}</button>`);
|
|
@@ -1319,19 +1319,19 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
1319
1319
|
else if (mode.value === "audio") _push(`<audio class="fl-preview-audio"${ssrRenderAttr("src", __props.src)} controls preload="metadata"></audio>`);
|
|
1320
1320
|
else if (mode.value === "text") {
|
|
1321
1321
|
_push(`<div class="${ssrRenderClass([{ "fl-preview-rendered": renderAs.value && view.value === "rendered" }, "fl-preview-text"])}">`);
|
|
1322
|
-
if (truncated.value) _push(`<
|
|
1322
|
+
if (truncated.value) _push(`<div class="fl-preview-note">${ssrInterpolate(t("textTruncated", { size: unref(formatSize)(__props.maxTextBytes) }))}</div>`);
|
|
1323
1323
|
else _push(`<!---->`);
|
|
1324
1324
|
if (renderAs.value === "markdown" && view.value === "rendered") {
|
|
1325
1325
|
_push(`<!--[--><!-- sanitised by renderMarkdown (DOMPurify) -->`);
|
|
1326
1326
|
if (renderedHtml.value) _push(`<div class="vp-doc fl-md">${renderedHtml.value ?? ""}</div>`);
|
|
1327
1327
|
else _push(`<div class="fl-preview-status" role="status">${ssrInterpolate(t("loading"))}</div>`);
|
|
1328
1328
|
_push(`<!--]-->`);
|
|
1329
|
-
} else if (renderAs.value === "html" && view.value === "rendered") _push(`<!--[--><
|
|
1329
|
+
} else if (renderAs.value === "html" && view.value === "rendered") _push(`<!--[--><div class="fl-preview-note">${ssrInterpolate(t("htmlSandboxNote"))}</div><!-- empty sandbox: no scripts, no forms, no popups, an opaque origin --><iframe class="fl-preview-html" sandbox="" referrerpolicy="no-referrer"${ssrRenderAttr("srcdoc", textContent.value)}${ssrRenderAttr("title", __props.file.name)}></iframe><!--]-->`);
|
|
1330
1330
|
else _push(`<pre>${ssrInterpolate(textContent.value)}</pre>`);
|
|
1331
1331
|
_push(`</div>`);
|
|
1332
1332
|
} else if (mode.value === "pdf") _push(`<iframe class="fl-preview-frame"${ssrRenderAttr("src", __props.viewer || blobUrl.value)}${ssrRenderAttr("title", __props.file.name)}></iframe>`);
|
|
1333
1333
|
else {
|
|
1334
|
-
_push(`<div class="fl-preview-info"><span class="fl-type fl-preview-badge"${ssrRenderAttr("data-kind", unref(fileKind)(__props.file.name))} aria-hidden="true">${ssrInterpolate(unref(extOf)(__props.file.name) || "FILE")}</span><
|
|
1334
|
+
_push(`<div class="fl-preview-info"><span class="fl-type fl-preview-badge"${ssrRenderAttr("data-kind", unref(fileKind)(__props.file.name))} aria-hidden="true">${ssrInterpolate(unref(extOf)(__props.file.name) || "FILE")}</span><div class="fl-preview-message">${ssrInterpolate(infoMessage.value)}</div>`);
|
|
1335
1335
|
if (!__props.demo) {
|
|
1336
1336
|
_push(`<button class="fl-btn fl-btn-primary" type="button">`);
|
|
1337
1337
|
_push(ssrRenderComponent(_sfc_main$2, {
|
|
@@ -2307,9 +2307,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
2307
2307
|
_push(`<button class="fl-unlock-submit" type="submit"${ssrIncludeBooleanAttr(rootLock.value.busy || !rootLock.value.input) ? " disabled" : ""}>${ssrInterpolate(t("open"))}</button></span></form>`);
|
|
2308
2308
|
} else if (errorMsg.value) {
|
|
2309
2309
|
_push(`<div class="fl-status fl-error">${ssrInterpolate(t("loadFailed", { message: errorMsg.value }))} `);
|
|
2310
|
-
if (/guest/i.test(errorMsg.value)) _push(`<
|
|
2310
|
+
if (/guest/i.test(errorMsg.value)) _push(`<div class="fl-hint">${ssrInterpolate(t("guestHint"))}</div>`);
|
|
2311
2311
|
else _push(`<!---->`);
|
|
2312
|
-
if (unref(isNetworkError)(errorMsg.value)) _push(`<
|
|
2312
|
+
if (unref(isNetworkError)(errorMsg.value)) _push(`<div class="fl-hint">${ssrInterpolate(t("corsHint"))}</div>`);
|
|
2313
2313
|
else _push(`<!---->`);
|
|
2314
2314
|
_push(`<button class="fl-btn" type="button">${ssrInterpolate(t("retry"))}</button></div>`);
|
|
2315
2315
|
} else if (visible.value.length === 0) _push(`<div class="fl-status">${ssrInterpolate(t("empty"))}</div>`);
|
|
@@ -2432,12 +2432,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
2432
2432
|
});
|
|
2433
2433
|
_push(`<!--]-->`);
|
|
2434
2434
|
if (deepRow.value) {
|
|
2435
|
-
_push(`<div class="fl-deep" role="status"><
|
|
2435
|
+
_push(`<div class="fl-deep" role="status"><div class="fl-deep-text">`);
|
|
2436
2436
|
if (deepRow.value === "running") _push(`<!--[-->${ssrInterpolate(t("deepRunning", { count: folderCounts.value.checked }))} · <button class="fl-deep-link" type="button">${ssrInterpolate(t("deepStop"))}</button><!--]-->`);
|
|
2437
2437
|
else if (deepRow.value === "idle") _push(`<!--[-->${ssrInterpolate(t("deepHint"))}<button class="fl-deep-link" type="button">${ssrInterpolate(t("deepSearch"))}</button><!--]-->`);
|
|
2438
2438
|
else if (deepRow.value === "capped") _push(`<!--[-->${ssrInterpolate(deepSummary.value)} · <button class="fl-deep-link" type="button">${ssrInterpolate(t("deepContinue"))}</button><!--]-->`);
|
|
2439
2439
|
else _push(`<!--[-->${ssrInterpolate(deepSummary.value)}<!--]-->`);
|
|
2440
|
-
_push(`</
|
|
2440
|
+
_push(`</div>`);
|
|
2441
2441
|
if (deepRow.value === "running") _push(`<span class="fl-deep-bar" aria-hidden="true"></span>`);
|
|
2442
2442
|
else _push(`<!---->`);
|
|
2443
2443
|
_push(`</div>`);
|
package/dist/client/style.css
CHANGED
|
@@ -771,6 +771,7 @@
|
|
|
771
771
|
.fl-hint {
|
|
772
772
|
margin: 6px 0 0;
|
|
773
773
|
font-size: 12px;
|
|
774
|
+
line-height: 1.5;
|
|
774
775
|
color: var(--vp-c-text-2);
|
|
775
776
|
}
|
|
776
777
|
|
|
@@ -899,14 +900,18 @@
|
|
|
899
900
|
/* the status line closing a filtered list: centred, wraps, never overflows */
|
|
900
901
|
.fl-deep {
|
|
901
902
|
position: relative;
|
|
902
|
-
|
|
903
|
+
display: flex;
|
|
904
|
+
align-items: center;
|
|
905
|
+
justify-content: center;
|
|
906
|
+
box-sizing: border-box;
|
|
907
|
+
min-height: 40px;
|
|
908
|
+
padding: 8px 16px;
|
|
903
909
|
text-align: center;
|
|
904
910
|
background: var(--vp-c-bg-soft);
|
|
905
911
|
border-bottom: 1px solid var(--vp-c-divider);
|
|
906
912
|
}
|
|
907
913
|
|
|
908
914
|
.fl-deep-text {
|
|
909
|
-
margin: 0;
|
|
910
915
|
font-size: 13px;
|
|
911
916
|
line-height: 1.6;
|
|
912
917
|
color: var(--vp-c-text-2);
|
|
@@ -981,6 +986,7 @@
|
|
|
981
986
|
.fl-confirm-title {
|
|
982
987
|
margin: 0 0 10px;
|
|
983
988
|
font-size: 16px;
|
|
989
|
+
line-height: 1.5;
|
|
984
990
|
font-weight: 600;
|
|
985
991
|
}
|
|
986
992
|
|
|
@@ -1029,7 +1035,7 @@
|
|
|
1029
1035
|
}
|
|
1030
1036
|
|
|
1031
1037
|
.fl-deep {
|
|
1032
|
-
|
|
1038
|
+
min-height: 48px;
|
|
1033
1039
|
}
|
|
1034
1040
|
|
|
1035
1041
|
.fl-deep-text {
|
|
@@ -1038,8 +1044,8 @@
|
|
|
1038
1044
|
|
|
1039
1045
|
/* a taller tap target without changing the line */
|
|
1040
1046
|
.fl-deep-link {
|
|
1041
|
-
padding:
|
|
1042
|
-
margin: -
|
|
1047
|
+
padding: 11px 2px;
|
|
1048
|
+
margin: -11px 0;
|
|
1043
1049
|
}
|
|
1044
1050
|
|
|
1045
1051
|
.fl-locked-hint {
|
|
@@ -1556,6 +1562,7 @@
|
|
|
1556
1562
|
margin: 0;
|
|
1557
1563
|
padding: 8px 20px;
|
|
1558
1564
|
font-size: 12px;
|
|
1565
|
+
line-height: 1.5;
|
|
1559
1566
|
color: var(--vp-c-text-2);
|
|
1560
1567
|
background: var(--vp-c-bg-soft);
|
|
1561
1568
|
border-bottom: 1px solid var(--vp-c-divider);
|
package/package.json
CHANGED