@brftech/filex-core 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ArchiveViewer-Dgvl43gn.js → ArchiveViewer-BOXJ2ub7.js} +2 -2
- package/dist/{ArchiveViewer-Dgvl43gn.js.map → ArchiveViewer-BOXJ2ub7.js.map} +1 -1
- package/dist/{CsvViewer-gWO5pc8F.js → CsvViewer-CDs9EpJx.js} +2 -2
- package/dist/{CsvViewer-gWO5pc8F.js.map → CsvViewer-CDs9EpJx.js.map} +1 -1
- package/dist/{DrawioViewer-DUAlRIAb.js → DrawioViewer-Q__JcUmq.js} +2 -2
- package/dist/{DrawioViewer-DUAlRIAb.js.map → DrawioViewer-Q__JcUmq.js.map} +1 -1
- package/dist/{EpubViewer-DIXzuQWK.js → EpubViewer-BlsOD2xl.js} +2 -2
- package/dist/{EpubViewer-DIXzuQWK.js.map → EpubViewer-BlsOD2xl.js.map} +1 -1
- package/dist/{IpynbViewer-CJ-6pU_Z.js → IpynbViewer-DKSFiZmv.js} +2 -2
- package/dist/{IpynbViewer-CJ-6pU_Z.js.map → IpynbViewer-DKSFiZmv.js.map} +1 -1
- package/dist/{MermaidViewer-CyQQDyRb.js → MermaidViewer-D2Gnp4yX.js} +2 -2
- package/dist/{MermaidViewer-CyQQDyRb.js.map → MermaidViewer-D2Gnp4yX.js.map} +1 -1
- package/dist/{PsdViewer-ChfaXVgN.js → PsdViewer-BD-rIrF1.js} +2 -2
- package/dist/{PsdViewer-ChfaXVgN.js.map → PsdViewer-BD-rIrF1.js.map} +1 -1
- package/dist/{TiffViewer-CsfD-NG6.js → TiffViewer-8qitRwcZ.js} +2 -2
- package/dist/{TiffViewer-CsfD-NG6.js.map → TiffViewer-8qitRwcZ.js.map} +1 -1
- package/dist/{Viewer3D-BQ2XYmkN.js → Viewer3D-WLmIjgmZ.js} +2 -2
- package/dist/{Viewer3D-BQ2XYmkN.js.map → Viewer3D-WLmIjgmZ.js.map} +1 -1
- package/dist/filex-core.js +1 -1
- package/dist/filex-core.umd.cjs +25 -25
- package/dist/filex-core.umd.cjs.map +1 -1
- package/dist/{index-PnhGunSA.js → index-f-_N5BV1.js} +138 -138
- package/dist/{index-PnhGunSA.js.map → index-f-_N5BV1.js.map} +1 -1
- package/package.json +1 -1
- package/src/FileExplorer.vue +7 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Fa = Object.defineProperty;
|
|
2
2
|
var ja = (c, p, a) => p in c ? Fa(c, p, { enumerable: !0, configurable: !0, writable: !0, value: a }) : c[p] = a;
|
|
3
3
|
var ut = (c, p, a) => ja(c, typeof p != "symbol" ? p + "" : p, a);
|
|
4
|
-
import { ref as y, computed as te, onMounted as et, onBeforeUnmount as tt, defineComponent as Ae, openBlock as r, createElementBlock as i, normalizeClass as ve, Fragment as ae, renderList as he, createElementVNode as e, normalizeStyle as xt, createTextVNode as Ce, toDisplayString as u, createCommentVNode as O, unref as f, createBlock as Re, Teleport as Ha, createVNode as Ne, Transition as $t, withCtx as Ue, withModifiers as $e, withKeys as nt, nextTick as lt, watch as Ke, withDirectives as Me, vModelText as Ge, TransitionGroup as Va, vModelCheckbox as Bt, renderSlot as
|
|
5
|
-
function
|
|
4
|
+
import { ref as y, computed as te, onMounted as et, onBeforeUnmount as tt, defineComponent as Ae, openBlock as r, createElementBlock as i, normalizeClass as ve, Fragment as ae, renderList as he, createElementVNode as e, normalizeStyle as xt, createTextVNode as Ce, toDisplayString as u, createCommentVNode as O, unref as f, createBlock as Re, Teleport as Ha, createVNode as Ne, Transition as $t, withCtx as Ue, withModifiers as $e, withKeys as nt, nextTick as lt, watch as Ke, withDirectives as Me, vModelText as Ge, TransitionGroup as Va, vModelCheckbox as Bt, renderSlot as Dn, shallowRef as Ya, resolveDynamicComponent as Ga, mergeProps as Wa, vModelSelect as Kt, customRef as Ja, createStaticVNode as Mn } from "vue";
|
|
5
|
+
function In(c) {
|
|
6
6
|
return !!c && c.enabled && c.state === "ok";
|
|
7
7
|
}
|
|
8
8
|
function qa(c) {
|
|
@@ -1140,11 +1140,11 @@ const oo = {
|
|
|
1140
1140
|
"inspector.perm.manage": "Manage permissions",
|
|
1141
1141
|
"inspector.shares.empty": "No share links",
|
|
1142
1142
|
"inspector.shares.copy": "Copy link"
|
|
1143
|
-
},
|
|
1143
|
+
}, An = { tr: oo, en: so };
|
|
1144
1144
|
function Fe(c) {
|
|
1145
1145
|
const p = te(() => {
|
|
1146
1146
|
const o = typeof c == "function" ? c() : c.value;
|
|
1147
|
-
return
|
|
1147
|
+
return An[o] ?? An.tr;
|
|
1148
1148
|
});
|
|
1149
1149
|
function a(o, h = {}) {
|
|
1150
1150
|
const s = p.value[o] ?? o;
|
|
@@ -1178,7 +1178,7 @@ function Fe(c) {
|
|
|
1178
1178
|
return { t: a, formatSize: d, nodeDisplayName: l };
|
|
1179
1179
|
}
|
|
1180
1180
|
const ro = 2e3, lo = 8e3;
|
|
1181
|
-
function
|
|
1181
|
+
function On(c) {
|
|
1182
1182
|
const p = (...s) => {
|
|
1183
1183
|
for (const m of s) if (typeof m == "number") return m;
|
|
1184
1184
|
return 0;
|
|
@@ -1220,7 +1220,7 @@ function io(c, p, a = {}) {
|
|
|
1220
1220
|
var j;
|
|
1221
1221
|
if (p.endpoints.opsList)
|
|
1222
1222
|
try {
|
|
1223
|
-
const P = ((await p.jsonFetch(p.endpoints.opsList)).ops || []).map(
|
|
1223
|
+
const P = ((await p.jsonFetch(p.endpoints.opsList)).ops || []).map(On);
|
|
1224
1224
|
for (const W of P)
|
|
1225
1225
|
(W.status === "done" || W.status === "error") && !l.has(W.id) && (l.add(W.id), o.set(W.id, Date.now()), h && ((j = a.onSettled) == null || j.call(a, W)));
|
|
1226
1226
|
const ee = new Set(d.value.map((W) => W.id)), ne = P.filter((W) => W.status === "pending" || W.status === "running" ? !0 : h ? ee.has(W.id) : !1), me = new Set(ne.map((W) => W.id)), G = d.value.filter((W) => !me.has(W.id)), z = [...ne, ...G];
|
|
@@ -1236,7 +1236,7 @@ function io(c, p, a = {}) {
|
|
|
1236
1236
|
}
|
|
1237
1237
|
}
|
|
1238
1238
|
function I(j) {
|
|
1239
|
-
const B =
|
|
1239
|
+
const B = On(j);
|
|
1240
1240
|
d.value.some((ee) => ee.id === B.id) || (d.value = [B, ...d.value]), g();
|
|
1241
1241
|
}
|
|
1242
1242
|
function U(j) {
|
|
@@ -1460,10 +1460,10 @@ function Yt() {
|
|
|
1460
1460
|
async function rn() {
|
|
1461
1461
|
return Ht || Yt(), Ht;
|
|
1462
1462
|
}
|
|
1463
|
-
async function
|
|
1463
|
+
async function Hn() {
|
|
1464
1464
|
return Vt || Yt(), Vt;
|
|
1465
1465
|
}
|
|
1466
|
-
function
|
|
1466
|
+
function Vn() {
|
|
1467
1467
|
return Ft;
|
|
1468
1468
|
}
|
|
1469
1469
|
function bo() {
|
|
@@ -1472,8 +1472,8 @@ function bo() {
|
|
|
1472
1472
|
function Jp() {
|
|
1473
1473
|
return Yt(), {
|
|
1474
1474
|
ensureMonaco: rn,
|
|
1475
|
-
ensureHighlight:
|
|
1476
|
-
getMonaco:
|
|
1475
|
+
ensureHighlight: Hn,
|
|
1476
|
+
getMonaco: Vn,
|
|
1477
1477
|
getHighlight: bo
|
|
1478
1478
|
};
|
|
1479
1479
|
}
|
|
@@ -1494,7 +1494,7 @@ const go = {
|
|
|
1494
1494
|
}, Eo = {
|
|
1495
1495
|
key: 0,
|
|
1496
1496
|
class: "fx-presence-more"
|
|
1497
|
-
}, Po = ["title"], Do = { class: "fx-presence-file" }, Mo = ["title", "aria-expanded"],
|
|
1497
|
+
}, Po = ["title"], Do = { class: "fx-presence-file" }, Mo = ["title", "aria-expanded"], Ln = "filex.presence.expanded", Io = /* @__PURE__ */ Ae({
|
|
1498
1498
|
__name: "PresenceBar",
|
|
1499
1499
|
props: {
|
|
1500
1500
|
users: {},
|
|
@@ -1506,7 +1506,7 @@ const go = {
|
|
|
1506
1506
|
() => (p.users ?? []).filter((E) => p.selfId == null || E.id !== p.selfId)
|
|
1507
1507
|
), l = y((() => {
|
|
1508
1508
|
try {
|
|
1509
|
-
return localStorage.getItem(
|
|
1509
|
+
return localStorage.getItem(Ln) === "1";
|
|
1510
1510
|
} catch {
|
|
1511
1511
|
return !1;
|
|
1512
1512
|
}
|
|
@@ -1514,7 +1514,7 @@ const go = {
|
|
|
1514
1514
|
function o() {
|
|
1515
1515
|
l.value = !l.value;
|
|
1516
1516
|
try {
|
|
1517
|
-
localStorage.setItem(
|
|
1517
|
+
localStorage.setItem(Ln, l.value ? "1" : "0");
|
|
1518
1518
|
} catch {
|
|
1519
1519
|
}
|
|
1520
1520
|
}
|
|
@@ -1609,7 +1609,7 @@ const go = {
|
|
|
1609
1609
|
key: 0,
|
|
1610
1610
|
class: "fe-ctx__icon",
|
|
1611
1611
|
"aria-hidden": "true"
|
|
1612
|
-
}, Vo = { class: "fe-ctx__label" },
|
|
1612
|
+
}, Vo = { class: "fe-ctx__label" }, Yn = /* @__PURE__ */ Ae({
|
|
1613
1613
|
__name: "ContextMenu",
|
|
1614
1614
|
props: {
|
|
1615
1615
|
locale: {},
|
|
@@ -1785,7 +1785,7 @@ const go = {
|
|
|
1785
1785
|
class: "fe-toolbar__view",
|
|
1786
1786
|
role: "tablist",
|
|
1787
1787
|
"aria-label": "View"
|
|
1788
|
-
}, ds = ["aria-selected", "title"], ps = ["aria-selected", "title"], fs = { class: "fe-search fe-search--full" }, vs = ["placeholder", "value", "aria-label", "onKeydown"], ms = ["title", "aria-label"], hs = ["title", "aria-label"], ys = ["title", "aria-label"], _s = ["title", "aria-label"], bs = ["title", "aria-label"],
|
|
1788
|
+
}, ds = ["aria-selected", "title"], ps = ["aria-selected", "title"], fs = { class: "fe-search fe-search--full" }, vs = ["placeholder", "value", "aria-label", "onKeydown"], ms = ["title", "aria-label"], hs = ["title", "aria-label"], ys = ["title", "aria-label"], _s = ["title", "aria-label"], bs = ["title", "aria-label"], Bn = "filex.density", gs = /* @__PURE__ */ Ae({
|
|
1789
1789
|
__name: "Toolbar",
|
|
1790
1790
|
props: {
|
|
1791
1791
|
viewMode: {},
|
|
@@ -1808,7 +1808,7 @@ const go = {
|
|
|
1808
1808
|
const d = c, l = a, o = y(
|
|
1809
1809
|
(() => {
|
|
1810
1810
|
try {
|
|
1811
|
-
return localStorage.getItem(
|
|
1811
|
+
return localStorage.getItem(Bn) === "compact" ? "compact" : "comfortable";
|
|
1812
1812
|
} catch {
|
|
1813
1813
|
return "comfortable";
|
|
1814
1814
|
}
|
|
@@ -1818,7 +1818,7 @@ const go = {
|
|
|
1818
1818
|
function h() {
|
|
1819
1819
|
o.value = o.value === "compact" ? "comfortable" : "compact";
|
|
1820
1820
|
try {
|
|
1821
|
-
localStorage.setItem(
|
|
1821
|
+
localStorage.setItem(Bn, o.value);
|
|
1822
1822
|
} catch {
|
|
1823
1823
|
}
|
|
1824
1824
|
l("update:density", o.value);
|
|
@@ -1980,7 +1980,7 @@ const go = {
|
|
|
1980
1980
|
e("span", { class: "fe-icon" }, "⋯", -1)
|
|
1981
1981
|
])], 8, bs)
|
|
1982
1982
|
], 64)),
|
|
1983
|
-
Ne(
|
|
1983
|
+
Ne(Yn, {
|
|
1984
1984
|
ref_key: "moreRef",
|
|
1985
1985
|
ref: M,
|
|
1986
1986
|
locale: c.locale,
|
|
@@ -2549,9 +2549,9 @@ const go = {
|
|
|
2549
2549
|
], 64))
|
|
2550
2550
|
]));
|
|
2551
2551
|
}
|
|
2552
|
-
}),
|
|
2552
|
+
}), Gn = {};
|
|
2553
2553
|
function ft(c, p) {
|
|
2554
|
-
for (const a of p)
|
|
2554
|
+
for (const a of p) Gn[a] = c;
|
|
2555
2555
|
}
|
|
2556
2556
|
ft("image", ["jpg", "jpeg", "png", "webp", "gif", "bmp", "avif", "heic", "svg", "ico", "tiff", "tif"]);
|
|
2557
2557
|
ft("video", ["mp4", "webm", "mov", "mkv", "avi", "ogv", "m4v"]);
|
|
@@ -2601,7 +2601,7 @@ ft("text", ["txt", "md", "markdown", "log", "ini", "conf", "cfg", "env"]);
|
|
|
2601
2601
|
function Ys(c) {
|
|
2602
2602
|
if (c.type === "dir") return "folder";
|
|
2603
2603
|
const p = (c.extension || "").toLowerCase();
|
|
2604
|
-
return
|
|
2604
|
+
return Gn[p] ?? "unknown";
|
|
2605
2605
|
}
|
|
2606
2606
|
const gt = '<path d="M6.5 3h7L18.5 8v11.5a1.5 1.5 0 0 1-1.5 1.5H6.5A1.5 1.5 0 0 1 5 19.5v-15A1.5 1.5 0 0 1 6.5 3z"/><path d="M13.5 3v5h5"/>', Gs = {
|
|
2607
2607
|
// Folder is the one "filled" member — a soft currentColor wash keeps it
|
|
@@ -2618,15 +2618,15 @@ const gt = '<path d="M6.5 3h7L18.5 8v11.5a1.5 1.5 0 0 1-1.5 1.5H6.5A1.5 1.5 0 0
|
|
|
2618
2618
|
code: gt + '<path d="M10.4 12.5L8.3 15l2.1 2.5M13.6 12.5l2.1 2.5-2.1 2.5"/>',
|
|
2619
2619
|
text: gt + '<path d="M8.5 12h7M8.5 15h7M8.5 18h4.5"/>',
|
|
2620
2620
|
unknown: gt + '<path d="M10.3 13.1a1.8 1.8 0 1 1 2.5 1.9c-.6.3-.8.7-.8 1.4"/><circle cx="12" cy="18.4" r="0.9" fill="currentColor" stroke="none"/>'
|
|
2621
|
-
},
|
|
2621
|
+
}, zn = /* @__PURE__ */ new Map();
|
|
2622
2622
|
function Ws(c) {
|
|
2623
|
-
let p =
|
|
2624
|
-
return p || (p = `<svg class="fe-ficon fe-ficon--${c}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">${Gs[c]}</svg>`,
|
|
2623
|
+
let p = zn.get(c);
|
|
2624
|
+
return p || (p = `<svg class="fe-ficon fe-ficon--${c}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">${Gs[c]}</svg>`, zn.set(c, p)), p;
|
|
2625
2625
|
}
|
|
2626
2626
|
function zt(c) {
|
|
2627
2627
|
return Ws(Ys(c));
|
|
2628
2628
|
}
|
|
2629
|
-
function
|
|
2629
|
+
function Wn(c) {
|
|
2630
2630
|
const p = [];
|
|
2631
2631
|
if (!c) return p;
|
|
2632
2632
|
const a = /«([^«»]*)»/g;
|
|
@@ -2635,7 +2635,7 @@ function Gn(c) {
|
|
|
2635
2635
|
l.index > d && p.push({ text: c.slice(d, l.index), match: !1 }), l[1] && p.push({ text: l[1], match: !0 }), d = l.index + l[0].length;
|
|
2636
2636
|
return d < c.length && p.push({ text: c.slice(d), match: !1 }), p;
|
|
2637
2637
|
}
|
|
2638
|
-
function
|
|
2638
|
+
function Jn(c) {
|
|
2639
2639
|
return c === "content" || c === "both";
|
|
2640
2640
|
}
|
|
2641
2641
|
const Js = ["aria-pressed", "title"], qs = {
|
|
@@ -2737,7 +2737,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
2737
2737
|
}, $r = { class: "fe-list__col fe-list__col--size" }, xr = { class: "fe-list__col fe-list__col--mod" }, Cr = {
|
|
2738
2738
|
key: 0,
|
|
2739
2739
|
class: "fe-list__empty"
|
|
2740
|
-
},
|
|
2740
|
+
}, Nn = "filex.list-sort", Sr = /* @__PURE__ */ Ae({
|
|
2741
2741
|
__name: "ListView",
|
|
2742
2742
|
props: {
|
|
2743
2743
|
files: {},
|
|
@@ -2811,11 +2811,11 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
2811
2811
|
return typeof v == "string" ? v : "";
|
|
2812
2812
|
}
|
|
2813
2813
|
function M(C) {
|
|
2814
|
-
return
|
|
2814
|
+
return Jn(C.matched);
|
|
2815
2815
|
}
|
|
2816
2816
|
const W = y(null), H = y("asc");
|
|
2817
2817
|
try {
|
|
2818
|
-
const C = localStorage.getItem(
|
|
2818
|
+
const C = localStorage.getItem(Nn);
|
|
2819
2819
|
if (C) {
|
|
2820
2820
|
const v = JSON.parse(C);
|
|
2821
2821
|
(v.key === "name" || v.key === "size" || v.key === "modified") && (W.value = v.key), (v.dir === "asc" || v.dir === "desc") && (H.value = v.dir);
|
|
@@ -2829,7 +2829,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
2829
2829
|
W.value !== C ? (W.value = C, H.value = oe(C)) : H.value === oe(C) ? H.value = H.value === "asc" ? "desc" : "asc" : W.value = null;
|
|
2830
2830
|
try {
|
|
2831
2831
|
localStorage.setItem(
|
|
2832
|
-
|
|
2832
|
+
Nn,
|
|
2833
2833
|
JSON.stringify({ key: W.value, dir: H.value })
|
|
2834
2834
|
);
|
|
2835
2835
|
} catch {
|
|
@@ -2996,7 +2996,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
2996
2996
|
title: z(b.path)
|
|
2997
2997
|
}, u(z(b.path) || "—"), 9, gr)) : O("", !0),
|
|
2998
2998
|
N(b) ? (r(), i("span", wr, [
|
|
2999
|
-
(r(!0), i(ae, null, he(f(
|
|
2999
|
+
(r(!0), i(ae, null, he(f(Wn)(N(b)), (ue, Te) => (r(), i(ae, { key: Te }, [
|
|
3000
3000
|
ue.match ? (r(), i("mark", kr, u(ue.text), 1)) : (r(), i(ae, { key: 1 }, [
|
|
3001
3001
|
Ce(u(ue.text), 1)
|
|
3002
3002
|
], 64))
|
|
@@ -3674,7 +3674,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
3674
3674
|
}, Ai = { class: "fe-cmdp__label" }, Oi = {
|
|
3675
3675
|
key: 4,
|
|
3676
3676
|
class: "fe-cmdp__empty"
|
|
3677
|
-
}, Li = { class: "fe-cmdp__hint" }, Bi = 3, zi = 8, Ni = 250,
|
|
3677
|
+
}, Li = { class: "fe-cmdp__hint" }, Bi = 3, zi = 8, Ni = 250, Rn = "filex.saved-searches", Un = 10, Ri = /* @__PURE__ */ Ae({
|
|
3678
3678
|
__name: "CommandPalette",
|
|
3679
3679
|
props: {
|
|
3680
3680
|
open: { type: Boolean },
|
|
@@ -3755,24 +3755,24 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
3755
3755
|
icon: v.type === "dir" ? "📁" : "📄",
|
|
3756
3756
|
hit: v,
|
|
3757
3757
|
crumb: me(v),
|
|
3758
|
-
inContent:
|
|
3758
|
+
inContent: Jn(v.matched),
|
|
3759
3759
|
snippet: typeof v.snippet == "string" ? v.snippet : ""
|
|
3760
3760
|
}))
|
|
3761
3761
|
), z = y([]);
|
|
3762
3762
|
function N() {
|
|
3763
3763
|
try {
|
|
3764
|
-
const v = localStorage.getItem(
|
|
3764
|
+
const v = localStorage.getItem(Rn);
|
|
3765
3765
|
if (!v) return [];
|
|
3766
3766
|
const w = JSON.parse(v);
|
|
3767
|
-
return Array.isArray(w) ? w.filter((b) => typeof b == "string" && b.trim() !== "").slice(0,
|
|
3767
|
+
return Array.isArray(w) ? w.filter((b) => typeof b == "string" && b.trim() !== "").slice(0, Un) : [];
|
|
3768
3768
|
} catch {
|
|
3769
3769
|
return [];
|
|
3770
3770
|
}
|
|
3771
3771
|
}
|
|
3772
3772
|
function M(v) {
|
|
3773
|
-
z.value = v.slice(0,
|
|
3773
|
+
z.value = v.slice(0, Un);
|
|
3774
3774
|
try {
|
|
3775
|
-
localStorage.setItem(
|
|
3775
|
+
localStorage.setItem(Rn, JSON.stringify(z.value));
|
|
3776
3776
|
} catch {
|
|
3777
3777
|
}
|
|
3778
3778
|
}
|
|
@@ -3989,7 +3989,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
3989
3989
|
title: b.crumb
|
|
3990
3990
|
}, u(b.crumb), 9, ki)) : O("", !0),
|
|
3991
3991
|
b.snippet ? (r(), i("span", $i, [
|
|
3992
|
-
(r(!0), i(ae, null, he(f(
|
|
3992
|
+
(r(!0), i(ae, null, he(f(Wn)(b.snippet), (se, ue) => (r(), i(ae, { key: ue }, [
|
|
3993
3993
|
se.match ? (r(), i("mark", xi, u(se.text), 1)) : (r(), i(ae, { key: 1 }, [
|
|
3994
3994
|
Ce(u(se.text), 1)
|
|
3995
3995
|
], 64))
|
|
@@ -4117,10 +4117,10 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
4117
4117
|
}, "×")
|
|
4118
4118
|
])) : O("", !0),
|
|
4119
4119
|
e("div", Fi, [
|
|
4120
|
-
|
|
4120
|
+
Dn(s.$slots, "default")
|
|
4121
4121
|
]),
|
|
4122
4122
|
s.$slots.actions && !c.chromeless ? (r(), i("footer", ji, [
|
|
4123
|
-
|
|
4123
|
+
Dn(s.$slots, "actions")
|
|
4124
4124
|
])) : O("", !0)
|
|
4125
4125
|
], 2)
|
|
4126
4126
|
], 2)) : O("", !0)
|
|
@@ -4538,7 +4538,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
4538
4538
|
}, su = ["href"], ru = {
|
|
4539
4539
|
key: 8,
|
|
4540
4540
|
class: "fe-preview__fallback"
|
|
4541
|
-
}, lu = ["href"], iu = ["href"], on = 1e6,
|
|
4541
|
+
}, lu = ["href"], iu = ["href"], on = 1e6, Kn = "fe-onlyoffice-api-js", cu = /* @__PURE__ */ Ae({
|
|
4542
4542
|
__name: "PreviewModal",
|
|
4543
4543
|
props: {
|
|
4544
4544
|
open: { type: Boolean },
|
|
@@ -4620,28 +4620,28 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
4620
4620
|
diff: "diff",
|
|
4621
4621
|
patch: "diff"
|
|
4622
4622
|
}, E = ["txt", "log"], Y = ["docx", "doc", "xlsx", "xls", "pptx", "ppt", "odt", "ods", "odp", "rtf"], I = {
|
|
4623
|
-
glb: () => import("./Viewer3D-
|
|
4624
|
-
gltf: () => import("./Viewer3D-
|
|
4625
|
-
obj: () => import("./Viewer3D-
|
|
4626
|
-
stl: () => import("./Viewer3D-
|
|
4627
|
-
fbx: () => import("./Viewer3D-
|
|
4628
|
-
"3ds": () => import("./Viewer3D-
|
|
4629
|
-
epub: () => import("./EpubViewer-
|
|
4630
|
-
mmd: () => import("./MermaidViewer-
|
|
4631
|
-
mermaid: () => import("./MermaidViewer-
|
|
4632
|
-
drawio: () => import("./DrawioViewer-
|
|
4633
|
-
dio: () => import("./DrawioViewer-
|
|
4634
|
-
tif: () => import("./TiffViewer-
|
|
4635
|
-
tiff: () => import("./TiffViewer-
|
|
4636
|
-
psd: () => import("./PsdViewer-
|
|
4623
|
+
glb: () => import("./Viewer3D-WLmIjgmZ.js"),
|
|
4624
|
+
gltf: () => import("./Viewer3D-WLmIjgmZ.js"),
|
|
4625
|
+
obj: () => import("./Viewer3D-WLmIjgmZ.js"),
|
|
4626
|
+
stl: () => import("./Viewer3D-WLmIjgmZ.js"),
|
|
4627
|
+
fbx: () => import("./Viewer3D-WLmIjgmZ.js"),
|
|
4628
|
+
"3ds": () => import("./Viewer3D-WLmIjgmZ.js"),
|
|
4629
|
+
epub: () => import("./EpubViewer-BlsOD2xl.js"),
|
|
4630
|
+
mmd: () => import("./MermaidViewer-D2Gnp4yX.js"),
|
|
4631
|
+
mermaid: () => import("./MermaidViewer-D2Gnp4yX.js"),
|
|
4632
|
+
drawio: () => import("./DrawioViewer-Q__JcUmq.js"),
|
|
4633
|
+
dio: () => import("./DrawioViewer-Q__JcUmq.js"),
|
|
4634
|
+
tif: () => import("./TiffViewer-8qitRwcZ.js"),
|
|
4635
|
+
tiff: () => import("./TiffViewer-8qitRwcZ.js"),
|
|
4636
|
+
psd: () => import("./PsdViewer-BD-rIrF1.js"),
|
|
4637
4637
|
// PDF deliberately uses the native browser viewer (`kind === 'pdf'`
|
|
4638
4638
|
// branch in the template). PdfViewer.vue still exists for callers
|
|
4639
4639
|
// that want the rich custom UI but the SFC default keeps things
|
|
4640
4640
|
// minimal — the browser already paints search/zoom/page UI for free.
|
|
4641
|
-
ipynb: () => import("./IpynbViewer-
|
|
4642
|
-
csv: () => import("./CsvViewer-
|
|
4643
|
-
tsv: () => import("./CsvViewer-
|
|
4644
|
-
zip: () => import("./ArchiveViewer-
|
|
4641
|
+
ipynb: () => import("./IpynbViewer-DKSFiZmv.js"),
|
|
4642
|
+
csv: () => import("./CsvViewer-CDs9EpJx.js"),
|
|
4643
|
+
tsv: () => import("./CsvViewer-CDs9EpJx.js"),
|
|
4644
|
+
zip: () => import("./ArchiveViewer-BOXJ2ub7.js")
|
|
4645
4645
|
}, U = te(() => {
|
|
4646
4646
|
const Q = o(a.file);
|
|
4647
4647
|
if (!Q) return "other";
|
|
@@ -4898,7 +4898,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
4898
4898
|
const Oe = y("");
|
|
4899
4899
|
async function ot(Q, L) {
|
|
4900
4900
|
try {
|
|
4901
|
-
const Z = await
|
|
4901
|
+
const Z = await Hn();
|
|
4902
4902
|
if (!Z) {
|
|
4903
4903
|
Oe.value = "";
|
|
4904
4904
|
return;
|
|
@@ -5039,7 +5039,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
5039
5039
|
return;
|
|
5040
5040
|
}
|
|
5041
5041
|
const fe = g[o(a.file)] || "";
|
|
5042
|
-
|
|
5042
|
+
Vn() ? (await new Promise((Je) => setTimeout(Je, 0)), await ke(K.value, o(a.file)) || await ot(K.value, fe)) : (Z === "code" && await ot(K.value, fe), rn().then(async (be) => {
|
|
5043
5043
|
be && a.open && (await new Promise((Je) => setTimeout(Je, 0)), await ke(K.value, o(a.file)));
|
|
5044
5044
|
}));
|
|
5045
5045
|
} else Z === "office" && (await new Promise((fe) => setTimeout(fe, 0)), await dt());
|
|
@@ -5135,13 +5135,13 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
5135
5135
|
L();
|
|
5136
5136
|
return;
|
|
5137
5137
|
}
|
|
5138
|
-
const fe = document.getElementById(
|
|
5138
|
+
const fe = document.getElementById(Kn);
|
|
5139
5139
|
if (fe) {
|
|
5140
5140
|
fe.addEventListener("load", () => L()), fe.addEventListener("error", () => Z(new Error("OnlyOffice api.js load failed")));
|
|
5141
5141
|
return;
|
|
5142
5142
|
}
|
|
5143
5143
|
const de = document.createElement("script");
|
|
5144
|
-
de.id =
|
|
5144
|
+
de.id = Kn, de.src = `${Q.replace(/\/$/, "")}/web-apps/apps/api/documents/api.js`, de.async = !0, de.onload = () => L(), de.onerror = () => Z(new Error("OnlyOffice api.js load failed")), document.head.appendChild(de);
|
|
5145
5145
|
});
|
|
5146
5146
|
}
|
|
5147
5147
|
return (Q, L) => {
|
|
@@ -6376,7 +6376,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
6376
6376
|
}, Up = {
|
|
6377
6377
|
key: 1,
|
|
6378
6378
|
class: "fe__dragover"
|
|
6379
|
-
}, Kp = ["title", "aria-label"], Fp = { class: "fe-recents__header" }, jp = { class: "fe-modal__head" }, Hp = { class: "fe-modal__title" }, Vp = { class: "fe-modal__body" }, Yp = { class: "fe-toast__msg" },
|
|
6379
|
+
}, Kp = ["title", "aria-label"], Fp = { class: "fe-recents__header" }, jp = { class: "fe-modal__head" }, Hp = { class: "fe-modal__title" }, Vp = { class: "fe-modal__body" }, Yp = { class: "fe-toast__msg" }, Fn = "brf-file-explorer:view-mode", jn = "filex.inspector", sn = "brf-file-explorer:path", Lt = "application/x-brf-files", qp = /* @__PURE__ */ Ae({
|
|
6380
6380
|
__name: "FileExplorer",
|
|
6381
6381
|
props: {
|
|
6382
6382
|
config: {}
|
|
@@ -6414,7 +6414,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
6414
6414
|
const k = Ja((n, t) => {
|
|
6415
6415
|
let _ = (() => {
|
|
6416
6416
|
try {
|
|
6417
|
-
const T = localStorage.getItem(
|
|
6417
|
+
const T = localStorage.getItem(Fn);
|
|
6418
6418
|
if (T === "list" || T === "grid") return T;
|
|
6419
6419
|
} catch {
|
|
6420
6420
|
}
|
|
@@ -6428,7 +6428,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
6428
6428
|
if (T !== _) {
|
|
6429
6429
|
_ = T;
|
|
6430
6430
|
try {
|
|
6431
|
-
localStorage.setItem(
|
|
6431
|
+
localStorage.setItem(Fn, T);
|
|
6432
6432
|
} catch {
|
|
6433
6433
|
}
|
|
6434
6434
|
t();
|
|
@@ -6510,13 +6510,13 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
6510
6510
|
var t, _, T;
|
|
6511
6511
|
if (d.config.onlyOfficeBase) return d.config.onlyOfficeBase;
|
|
6512
6512
|
const n = (_ = (t = ue.value) == null ? void 0 : t.external) == null ? void 0 : _.onlyoffice;
|
|
6513
|
-
return n && !
|
|
6513
|
+
return n && !In(n) ? null : ((T = ue.value) == null ? void 0 : T.onlyoffice_url) || null;
|
|
6514
6514
|
}), q = te(() => F.value && o.endpoints.onlyOfficeConfig || null), re = te(() => {
|
|
6515
6515
|
var _, T, X;
|
|
6516
6516
|
const n = d.config.drawioUrl || d.config.drawioBase;
|
|
6517
6517
|
if (n) return n;
|
|
6518
6518
|
const t = (T = (_ = ue.value) == null ? void 0 : _.external) == null ? void 0 : T.drawio;
|
|
6519
|
-
return t && !
|
|
6519
|
+
return t && !In(t) ? null : ((X = ue.value) == null ? void 0 : X.drawio_url) || null;
|
|
6520
6520
|
}), pe = te(
|
|
6521
6521
|
() => {
|
|
6522
6522
|
var n;
|
|
@@ -6525,7 +6525,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
6525
6525
|
), ke = y([]), Pe = y(null), ze = y(!1), Se = y(!1), Ie = y(!1), He = y(!1), Ve = y(!1), dt = y(null), vt = y(null), ht = y(null), yt = y(null), Q = y("edit"), L = y(!1), Z = y(null), fe = y(!1), de = y(null), be = y(
|
|
6526
6526
|
(() => {
|
|
6527
6527
|
try {
|
|
6528
|
-
return localStorage.getItem(
|
|
6528
|
+
return localStorage.getItem(jn) === "1";
|
|
6529
6529
|
} catch {
|
|
6530
6530
|
return !1;
|
|
6531
6531
|
}
|
|
@@ -6533,7 +6533,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
6533
6533
|
);
|
|
6534
6534
|
function Je(n) {
|
|
6535
6535
|
try {
|
|
6536
|
-
localStorage.setItem(
|
|
6536
|
+
localStorage.setItem(jn, n ? "1" : "0");
|
|
6537
6537
|
} catch {
|
|
6538
6538
|
}
|
|
6539
6539
|
}
|
|
@@ -6593,7 +6593,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
6593
6593
|
function Wt() {
|
|
6594
6594
|
Tt && (clearTimeout(Tt), Tt = void 0), pt.value = null;
|
|
6595
6595
|
}
|
|
6596
|
-
async function
|
|
6596
|
+
async function qn() {
|
|
6597
6597
|
var t;
|
|
6598
6598
|
const n = (t = pt.value) == null ? void 0 : t.action;
|
|
6599
6599
|
if (Wt(), !!n)
|
|
@@ -6604,7 +6604,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
6604
6604
|
}
|
|
6605
6605
|
}
|
|
6606
6606
|
const Ze = te(() => d.config.multiStorageRoot === !0);
|
|
6607
|
-
function
|
|
6607
|
+
function Xn(n) {
|
|
6608
6608
|
const t = n.replace(/^\/+|\/+$/g, "");
|
|
6609
6609
|
if (!t) return { adapter: "", rel: "" };
|
|
6610
6610
|
const _ = t.indexOf("/");
|
|
@@ -6612,7 +6612,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
6612
6612
|
}
|
|
6613
6613
|
function Jt(n) {
|
|
6614
6614
|
if (n.includes("://")) return n;
|
|
6615
|
-
const { adapter: t, rel: _ } =
|
|
6615
|
+
const { adapter: t, rel: _ } = Xn(n);
|
|
6616
6616
|
return t ? _ ? `${t}://${_}` : `${t}://` : "";
|
|
6617
6617
|
}
|
|
6618
6618
|
function Rt(n) {
|
|
@@ -6621,7 +6621,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
6621
6621
|
const _ = n.slice(0, t), T = n.slice(t + 3).replace(/^\/+|\/+$/g, "");
|
|
6622
6622
|
return T ? `${_}/${T}` : _;
|
|
6623
6623
|
}
|
|
6624
|
-
function
|
|
6624
|
+
function Qn() {
|
|
6625
6625
|
return (d.config.storages ?? []).map((t) => ({
|
|
6626
6626
|
type: "dir",
|
|
6627
6627
|
path: t.name,
|
|
@@ -6644,7 +6644,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
6644
6644
|
(!De || !(De === ne || De.startsWith(ne + "/"))) && (t = ne);
|
|
6645
6645
|
}
|
|
6646
6646
|
if (Ze.value && !Jt(t)) {
|
|
6647
|
-
G.value = "", z.value = "", N.value = "", M.value =
|
|
6647
|
+
G.value = "", z.value = "", N.value = "", M.value = Qn();
|
|
6648
6648
|
return;
|
|
6649
6649
|
}
|
|
6650
6650
|
const _ = Ze.value ? Jt(t) : qe(t), T = J.value ? await o.search(_, J.value) : await o.index(_);
|
|
@@ -6661,7 +6661,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
6661
6661
|
file_size: 0,
|
|
6662
6662
|
mime_type: "inode/directory",
|
|
6663
6663
|
extra_metadata: {}
|
|
6664
|
-
}),
|
|
6664
|
+
}), ea(T.adapter)), G.value = Ze.value ? Rt(T.dirname) : Et(T.dirname);
|
|
6665
6665
|
} catch (_) {
|
|
6666
6666
|
const T = _ instanceof Error ? _.message : String(_), X = _.status;
|
|
6667
6667
|
if (X === 404 || X === 403) {
|
|
@@ -6677,10 +6677,10 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
6677
6677
|
const t = n.indexOf("://");
|
|
6678
6678
|
return t === -1 ? n : n.slice(t + 3);
|
|
6679
6679
|
}
|
|
6680
|
-
function
|
|
6681
|
-
H.value = "", we("");
|
|
6680
|
+
function Zn() {
|
|
6681
|
+
H.value = "", vn(""), we("");
|
|
6682
6682
|
}
|
|
6683
|
-
async function
|
|
6683
|
+
async function ea(n) {
|
|
6684
6684
|
try {
|
|
6685
6685
|
const { entries: t } = await o.listTrash(n), _ = M.value.find((V) => V.basename === ".trash");
|
|
6686
6686
|
if (!_) return;
|
|
@@ -6731,7 +6731,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
6731
6731
|
const t = n.indexOf("://"), _ = (t === -1 ? n : n.slice(t + 3)).replace(/\/+$/, ""), T = _.lastIndexOf("/");
|
|
6732
6732
|
return T === -1 ? _ : _.slice(T + 1);
|
|
6733
6733
|
}
|
|
6734
|
-
function
|
|
6734
|
+
function ta(n) {
|
|
6735
6735
|
const t = n.indexOf("://"), _ = t === -1 ? "" : n.slice(0, t + 3), T = (t === -1 ? n : n.slice(t + 3)).replace(/\/+$/, ""), X = T.lastIndexOf("/");
|
|
6736
6736
|
return X === -1 ? _ : _ + T.slice(0, X);
|
|
6737
6737
|
}
|
|
@@ -6760,7 +6760,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
6760
6760
|
const n = Qt();
|
|
6761
6761
|
return n === "hash" || n === "hash+localStorage";
|
|
6762
6762
|
}
|
|
6763
|
-
function
|
|
6763
|
+
function na(n) {
|
|
6764
6764
|
try {
|
|
6765
6765
|
return decodeURIComponent(n);
|
|
6766
6766
|
} catch {
|
|
@@ -6776,9 +6776,9 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
6776
6776
|
}
|
|
6777
6777
|
function fn() {
|
|
6778
6778
|
const n = window.location.hash || "";
|
|
6779
|
-
return n.startsWith("#") ?
|
|
6779
|
+
return n.startsWith("#") ? na(n.slice(1)).replace(/^\/+|\/+$/g, "") : "";
|
|
6780
6780
|
}
|
|
6781
|
-
function
|
|
6781
|
+
function aa() {
|
|
6782
6782
|
if (typeof window > "u") return "";
|
|
6783
6783
|
const n = Qt();
|
|
6784
6784
|
if (n === "none") return "";
|
|
@@ -6786,7 +6786,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
6786
6786
|
const t = fn();
|
|
6787
6787
|
return t || n === "hash" ? t : me ? "" : pn();
|
|
6788
6788
|
}
|
|
6789
|
-
function
|
|
6789
|
+
function vn(n) {
|
|
6790
6790
|
if (typeof window > "u") return;
|
|
6791
6791
|
const t = Qt();
|
|
6792
6792
|
if (t === "none") return;
|
|
@@ -6804,18 +6804,18 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
6804
6804
|
T || window.location.pathname + window.location.search
|
|
6805
6805
|
);
|
|
6806
6806
|
}
|
|
6807
|
-
function
|
|
6807
|
+
function mn() {
|
|
6808
6808
|
if (!dn()) return;
|
|
6809
6809
|
const n = fn();
|
|
6810
6810
|
n && n !== G.value && we(n);
|
|
6811
6811
|
}
|
|
6812
6812
|
Ke(G, (n) => {
|
|
6813
|
-
|
|
6813
|
+
vn(n), l("navigate", { path: n }), m.subscribe(Y(n));
|
|
6814
6814
|
}), p({ reload: () => we() }), et(async () => {
|
|
6815
6815
|
var t;
|
|
6816
6816
|
Yt();
|
|
6817
|
-
const n =
|
|
6818
|
-
await we(n || void 0), await lt(), (t = rt.value) == null || t.focus(), Ee(), dn() && window.addEventListener("hashchange",
|
|
6817
|
+
const n = aa();
|
|
6818
|
+
await we(n || void 0), await lt(), (t = rt.value) == null || t.focus(), Ee(), dn() && window.addEventListener("hashchange", mn), o.endpoints.opsList && B.startPolling(), o.endpoints.capabilities && o.capabilities().then((_) => {
|
|
6819
6819
|
ue.value = _;
|
|
6820
6820
|
}).catch(() => {
|
|
6821
6821
|
});
|
|
@@ -6860,7 +6860,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
6860
6860
|
},
|
|
6861
6861
|
onCut: () => ba(),
|
|
6862
6862
|
onCopy: () => ga(),
|
|
6863
|
-
onPaste: () =>
|
|
6863
|
+
onPaste: () => gn(),
|
|
6864
6864
|
onGoUp: () => b(),
|
|
6865
6865
|
/* cila:c wiring */
|
|
6866
6866
|
onPathJump: () => {
|
|
@@ -6963,7 +6963,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
6963
6963
|
l("error", { message: _.message, context: { op: "restore" } });
|
|
6964
6964
|
}
|
|
6965
6965
|
}
|
|
6966
|
-
function
|
|
6966
|
+
function hn(n) {
|
|
6967
6967
|
Q.value = "view", yt.value = n, Ve.value = !0, Xe(n);
|
|
6968
6968
|
}
|
|
6969
6969
|
function ua(n) {
|
|
@@ -6973,7 +6973,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
6973
6973
|
return;
|
|
6974
6974
|
}
|
|
6975
6975
|
if (!S(n.perm ?? W.value)) {
|
|
6976
|
-
|
|
6976
|
+
hn(n);
|
|
6977
6977
|
return;
|
|
6978
6978
|
}
|
|
6979
6979
|
const t = (n.extension || "").toLowerCase(), _ = d.config.openPageBase;
|
|
@@ -6994,9 +6994,9 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
6994
6994
|
t[0] && bt(t[0]);
|
|
6995
6995
|
return;
|
|
6996
6996
|
}
|
|
6997
|
-
await
|
|
6997
|
+
await bn(n, t);
|
|
6998
6998
|
}
|
|
6999
|
-
async function
|
|
6999
|
+
async function yn(n, t) {
|
|
7000
7000
|
var _;
|
|
7001
7001
|
At.value = "selection", A.has(n.path) || (A.click(n.path), await lt()), (_ = _e.value) == null || _.show({ clientX: t.clientX, clientY: t.clientY }, A.nodes.value);
|
|
7002
7002
|
}
|
|
@@ -7024,14 +7024,14 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
7024
7024
|
const T = (G.value ?? "").replace(/^\/+|\/+$/g, "");
|
|
7025
7025
|
return Ze.value && T === "" ? t ? _ ? [
|
|
7026
7026
|
{ key: "open", label: s("ctx.open"), icon: "↗" }
|
|
7027
|
-
] : [] : [] : t ?
|
|
7027
|
+
] : [] : [] : t ? _n(n) : S(W.value) ? [
|
|
7028
7028
|
{ key: "new-folder", label: s("toolbar.new_folder"), icon: "📁" },
|
|
7029
7029
|
{ key: "paste", label: s("ctx.paste"), icon: "📋", disabled: !se.value.mode }
|
|
7030
7030
|
] : [];
|
|
7031
7031
|
});
|
|
7032
|
-
function
|
|
7033
|
-
var
|
|
7034
|
-
const t = n.length > 0, _ = n.length === 1, T = _ && ((
|
|
7032
|
+
function _n(n) {
|
|
7033
|
+
var En, Pn;
|
|
7034
|
+
const t = n.length > 0, _ = n.length === 1, T = _ && ((En = n[0]) == null ? void 0 : En.type) === "file", X = h.value === "en" ? "Tags…" : "Etiketler…", V = _ && typeof ((Pn = n[0]) == null ? void 0 : Pn.id) == "number", ge = h.value === "en" ? "Copy node id" : "Node id'yi kopyala", Le = le(n), De = S(Le), Ot = h.value === "en" ? "Share / Permissions" : "Paylaş / İzinler";
|
|
7035
7035
|
return [
|
|
7036
7036
|
{ key: "open", label: s("ctx.open"), icon: "↗", hidden: !_ },
|
|
7037
7037
|
{ key: "preview", label: s("ctx.preview"), icon: "👁", hidden: !_, disabled: !T },
|
|
@@ -7059,23 +7059,23 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
7059
7059
|
{ key: "delete", label: s("ctx.delete_perm"), icon: "🗑", danger: !0 }
|
|
7060
7060
|
];
|
|
7061
7061
|
const t = (G.value ?? "").replace(/^\/+|\/+$/g, "");
|
|
7062
|
-
return Ze.value && t === "" ? n.length === 1 ? [{ key: "open", label: s("ctx.open"), icon: "↗" }] : [] : n.length === 0 ? [] :
|
|
7062
|
+
return Ze.value && t === "" ? n.length === 1 ? [{ key: "open", label: s("ctx.open"), icon: "↗" }] : [] : n.length === 0 ? [] : _n(n);
|
|
7063
7063
|
});
|
|
7064
7064
|
async function _a(n, t) {
|
|
7065
7065
|
if (At.value === "breadcrumb") {
|
|
7066
|
-
n.key === "open" ? we(Et(tn.value)) : n.key === "copy-path" && await
|
|
7066
|
+
n.key === "open" ? we(Et(tn.value)) : n.key === "copy-path" && await Tn(tn.value);
|
|
7067
7067
|
return;
|
|
7068
7068
|
}
|
|
7069
|
-
await
|
|
7069
|
+
await bn(n.key, t);
|
|
7070
7070
|
}
|
|
7071
|
-
async function
|
|
7071
|
+
async function bn(n, t) {
|
|
7072
7072
|
var _;
|
|
7073
7073
|
switch (n) {
|
|
7074
7074
|
case "open":
|
|
7075
7075
|
t[0] && ua(t[0]);
|
|
7076
7076
|
break;
|
|
7077
7077
|
case "preview":
|
|
7078
|
-
t[0] &&
|
|
7078
|
+
t[0] && hn(t[0]);
|
|
7079
7079
|
break;
|
|
7080
7080
|
case "download":
|
|
7081
7081
|
t[0] && ka(t[0]);
|
|
@@ -7114,7 +7114,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
7114
7114
|
se.value = { mode: "copy", items: t, sourcePath: G.value }, xe("Kopyala → Yapıştır hazır");
|
|
7115
7115
|
break;
|
|
7116
7116
|
case "paste":
|
|
7117
|
-
await
|
|
7117
|
+
await gn();
|
|
7118
7118
|
break;
|
|
7119
7119
|
case "delete":
|
|
7120
7120
|
Ie.value = !0;
|
|
@@ -7136,7 +7136,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
7136
7136
|
function ga() {
|
|
7137
7137
|
A.isEmpty.value || (se.value = { mode: "copy", items: A.nodes.value, sourcePath: G.value }, xe("Kopyalandı"));
|
|
7138
7138
|
}
|
|
7139
|
-
async function
|
|
7139
|
+
async function gn() {
|
|
7140
7140
|
const n = se.value;
|
|
7141
7141
|
if (!(!n.mode || n.items.length === 0))
|
|
7142
7142
|
try {
|
|
@@ -7182,7 +7182,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
7182
7182
|
try {
|
|
7183
7183
|
const _ = qe(G.value), T = t.path, X = t.basename;
|
|
7184
7184
|
if (await o.rename(_, T, n), Se.value = !1, dt.value = null, await we(), n && n !== X) {
|
|
7185
|
-
const V = Xt(
|
|
7185
|
+
const V = Xt(ta(T), n);
|
|
7186
7186
|
Nt(s("toast.renamed"), async () => {
|
|
7187
7187
|
await o.rename(_, V, X);
|
|
7188
7188
|
});
|
|
@@ -7254,9 +7254,9 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
7254
7254
|
}
|
|
7255
7255
|
function Ma(n) {
|
|
7256
7256
|
const t = n.target, _ = t.files ? Array.from(t.files) : [];
|
|
7257
|
-
t.value = "",
|
|
7257
|
+
t.value = "", wn(_);
|
|
7258
7258
|
}
|
|
7259
|
-
async function
|
|
7259
|
+
async function wn(n) {
|
|
7260
7260
|
if (n.length === 0) return;
|
|
7261
7261
|
const t = !!(o.endpoints.uploadInit && o.endpoints.uploadFinalize);
|
|
7262
7262
|
for (const _ of n)
|
|
@@ -7355,23 +7355,23 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
7355
7355
|
return;
|
|
7356
7356
|
}
|
|
7357
7357
|
const t = (T = n.dataTransfer) != null && T.files ? Array.from(n.dataTransfer.files) : [];
|
|
7358
|
-
t.length !== 0 &&
|
|
7358
|
+
t.length !== 0 && wn(t);
|
|
7359
7359
|
}
|
|
7360
|
-
function
|
|
7360
|
+
function kn(n) {
|
|
7361
7361
|
var t;
|
|
7362
7362
|
(t = n.dataTransfer) != null && t.types.includes("Files") && n.preventDefault();
|
|
7363
7363
|
}
|
|
7364
|
-
function
|
|
7364
|
+
function $n(n) {
|
|
7365
7365
|
const t = rt.value, _ = n.target;
|
|
7366
7366
|
t && _ && !t.contains(_) && n.preventDefault();
|
|
7367
7367
|
}
|
|
7368
7368
|
et(() => {
|
|
7369
|
-
window.addEventListener("dragover",
|
|
7369
|
+
window.addEventListener("dragover", kn), window.addEventListener("drop", $n);
|
|
7370
7370
|
}), tt(() => {
|
|
7371
|
-
window.removeEventListener("dragover",
|
|
7371
|
+
window.removeEventListener("dragover", kn), window.removeEventListener("drop", $n), window.removeEventListener("hashchange", mn);
|
|
7372
7372
|
});
|
|
7373
7373
|
const an = te(() => se.value.mode !== "cut" ? /* @__PURE__ */ new Set() : new Set(se.value.items.map((n) => n.path)));
|
|
7374
|
-
function
|
|
7374
|
+
function xn(n, t) {
|
|
7375
7375
|
if (!t.dataTransfer) return;
|
|
7376
7376
|
if (n.basename === ".trash") {
|
|
7377
7377
|
t.preventDefault();
|
|
@@ -7382,7 +7382,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
7382
7382
|
t.dataTransfer.setData(Lt, JSON.stringify(_)), t.dataTransfer.setData("text/plain", _.map((T) => T.path).join(`
|
|
7383
7383
|
`)), t.dataTransfer.effectAllowed = "move";
|
|
7384
7384
|
}
|
|
7385
|
-
async function
|
|
7385
|
+
async function Cn(n, t, _) {
|
|
7386
7386
|
try {
|
|
7387
7387
|
const T = qe(G.value);
|
|
7388
7388
|
if (o.endpoints.moveAsync) {
|
|
@@ -7400,7 +7400,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
7400
7400
|
l("error", { message: T.message, context: { op: _, targetDir: t } });
|
|
7401
7401
|
}
|
|
7402
7402
|
}
|
|
7403
|
-
async function
|
|
7403
|
+
async function Sn(n, t) {
|
|
7404
7404
|
var ge;
|
|
7405
7405
|
if (n.type !== "dir") return;
|
|
7406
7406
|
const _ = (ge = t.dataTransfer) == null ? void 0 : ge.getData(Lt);
|
|
@@ -7417,7 +7417,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
7417
7417
|
xe("Aynı klasöre taşınamaz");
|
|
7418
7418
|
return;
|
|
7419
7419
|
}
|
|
7420
|
-
await
|
|
7420
|
+
await Cn(V, X, "move-dnd");
|
|
7421
7421
|
}
|
|
7422
7422
|
async function Na(n, t) {
|
|
7423
7423
|
var ge;
|
|
@@ -7431,7 +7431,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
7431
7431
|
}
|
|
7432
7432
|
if (T.length === 0) return;
|
|
7433
7433
|
const X = n, V = T.map((Le) => Le.path).filter((Le) => Le && Le !== X && !X.startsWith(Le + "/"));
|
|
7434
|
-
V.length !== 0 && await
|
|
7434
|
+
V.length !== 0 && await Cn(V, X, "move-dnd-crumb");
|
|
7435
7435
|
}
|
|
7436
7436
|
function Ra(n) {
|
|
7437
7437
|
n.cancel();
|
|
@@ -7450,7 +7450,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
7450
7450
|
}
|
|
7451
7451
|
we(Et(n));
|
|
7452
7452
|
}
|
|
7453
|
-
async function
|
|
7453
|
+
async function Tn(n) {
|
|
7454
7454
|
try {
|
|
7455
7455
|
await navigator.clipboard.writeText(n), xe(s("breadcrumb.copy_path"));
|
|
7456
7456
|
} catch {
|
|
@@ -7514,7 +7514,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
7514
7514
|
"multi-storage-root": Ze.value,
|
|
7515
7515
|
"root-path": f(ee),
|
|
7516
7516
|
onNavigate: Ka,
|
|
7517
|
-
onCopyPath:
|
|
7517
|
+
onCopyPath: Tn,
|
|
7518
7518
|
onCrumbContext: ma,
|
|
7519
7519
|
onCrumbDrop: Na
|
|
7520
7520
|
}, null, 8, ["dirname", "adapter", "root-label", "locale", "multi-storage-root", "root-path"]),
|
|
@@ -7593,11 +7593,11 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
7593
7593
|
e("button", {
|
|
7594
7594
|
type: "button",
|
|
7595
7595
|
class: "fe-btn",
|
|
7596
|
-
onClick:
|
|
7596
|
+
onClick: Zn
|
|
7597
7597
|
}, u(f(s)("notFound.goRoot")), 1)
|
|
7598
7598
|
])
|
|
7599
7599
|
])) : oe.value && M.value.length === 0 ? (r(), i("div", Cp, [
|
|
7600
|
-
t[35] || (t[35] =
|
|
7600
|
+
t[35] || (t[35] = Mn('<svg class="fe-state__art" viewBox="0 0 120 100" width="110" height="92" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="60" cy="50" r="28"></circle><path d="M60 36v18"></path><circle cx="60" cy="63" r="1.8" fill="currentColor" stroke="none"></circle><path d="M24 88h72" stroke-dasharray="3 5"></path></svg>', 1)),
|
|
7601
7601
|
e("p", Sp, u(f(s)("error.title")), 1),
|
|
7602
7602
|
e("p", Tp, u(oe.value), 1),
|
|
7603
7603
|
e("div", Ep, [
|
|
@@ -7631,7 +7631,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
7631
7631
|
e("p", Dp, u(f(s)("empty.search.title")), 1),
|
|
7632
7632
|
e("p", Mp, u(f(s)("empty.search.hint")), 1)
|
|
7633
7633
|
])) : !P.value && M.value.length === 0 && ie.value ? (r(), i("div", Ip, [
|
|
7634
|
-
t[37] || (t[37] =
|
|
7634
|
+
t[37] || (t[37] = Mn('<svg class="fe-state__art" viewBox="0 0 120 100" width="110" height="92" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M38 34l4 48a6 6 0 0 0 6 5.6h24a6 6 0 0 0 6-5.6l4-48"></path><path d="M32 34h56"></path><path d="M50 34v-6a6 6 0 0 1 6-6h8a6 6 0 0 1 6 6v6"></path><path d="M52 44v32M60 44v32M68 44v32" opacity="0.5"></path></svg>', 1)),
|
|
7635
7635
|
e("p", Ap, u(f(s)("empty.trash.title")), 1)
|
|
7636
7636
|
])) : !P.value && M.value.length === 0 ? (r(), i("div", Op, [
|
|
7637
7637
|
(r(), i("svg", Lp, [
|
|
@@ -7666,9 +7666,9 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
7666
7666
|
"auth-headers": () => Pt(),
|
|
7667
7667
|
onClickRow: t[6] || (t[6] = (V, ge) => f(A).click(V.path, ge)),
|
|
7668
7668
|
onDblRow: bt,
|
|
7669
|
-
onContextRow:
|
|
7670
|
-
onItemDragStart:
|
|
7671
|
-
onItemDropInto:
|
|
7669
|
+
onContextRow: yn,
|
|
7670
|
+
onItemDragStart: xn,
|
|
7671
|
+
onItemDropInto: Sn,
|
|
7672
7672
|
onStarChange: je
|
|
7673
7673
|
}, null, 8, ["files", "selected", "clipped", "show-parent-path", "locale", "loading", "starred-ids", "api-base", "auth-headers"])) : (r(), Re(Br, {
|
|
7674
7674
|
key: 7,
|
|
@@ -7681,9 +7681,9 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
7681
7681
|
"thumb-src": f(I).src,
|
|
7682
7682
|
onClickCard: t[7] || (t[7] = (V, ge) => f(A).click(V.path, ge)),
|
|
7683
7683
|
onDblCard: bt,
|
|
7684
|
-
onContextCard:
|
|
7685
|
-
onItemDragStart:
|
|
7686
|
-
onItemDropInto:
|
|
7684
|
+
onContextCard: yn,
|
|
7685
|
+
onItemDragStart: xn,
|
|
7686
|
+
onItemDropInto: Sn
|
|
7687
7687
|
}, null, 8, ["files", "selected", "clipped", "show-parent-path", "locale", "loading", "thumb-src"]))
|
|
7688
7688
|
]),
|
|
7689
7689
|
be.value ? (r(), Re(ai, {
|
|
@@ -7740,7 +7740,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
7740
7740
|
e("path", { d: "M12 5v14M5 12h14" })
|
|
7741
7741
|
], -1)
|
|
7742
7742
|
])], 8, Kp)) : O("", !0),
|
|
7743
|
-
Ne(
|
|
7743
|
+
Ne(Yn, {
|
|
7744
7744
|
ref_key: "ctxRef",
|
|
7745
7745
|
ref: _e,
|
|
7746
7746
|
locale: h.value,
|
|
@@ -7932,7 +7932,7 @@ const Js = ["aria-pressed", "title"], qs = {
|
|
|
7932
7932
|
key: 0,
|
|
7933
7933
|
type: "button",
|
|
7934
7934
|
class: "fe-toast__action",
|
|
7935
|
-
onClick: $e(
|
|
7935
|
+
onClick: $e(qn, ["stop"])
|
|
7936
7936
|
}, u(pt.value.actionLabel), 1)) : O("", !0)
|
|
7937
7937
|
], 2)) : O("", !0)
|
|
7938
7938
|
]),
|
|
@@ -7951,22 +7951,22 @@ export {
|
|
|
7951
7951
|
cu as b,
|
|
7952
7952
|
so as c,
|
|
7953
7953
|
rn as d,
|
|
7954
|
-
|
|
7955
|
-
|
|
7954
|
+
Hn as e,
|
|
7955
|
+
Vn as f,
|
|
7956
7956
|
bo as g,
|
|
7957
|
-
|
|
7958
|
-
|
|
7957
|
+
An as h,
|
|
7958
|
+
In as i,
|
|
7959
7959
|
ao as j,
|
|
7960
7960
|
Fe as k,
|
|
7961
7961
|
Jp as l,
|
|
7962
|
-
|
|
7962
|
+
Jn as m,
|
|
7963
7963
|
io as n,
|
|
7964
7964
|
to as o,
|
|
7965
7965
|
Yt as p,
|
|
7966
7966
|
eo as q,
|
|
7967
7967
|
qa as r,
|
|
7968
|
-
|
|
7968
|
+
Wn as s,
|
|
7969
7969
|
oo as t,
|
|
7970
7970
|
Za as u
|
|
7971
7971
|
};
|
|
7972
|
-
//# sourceMappingURL=index-
|
|
7972
|
+
//# sourceMappingURL=index-f-_N5BV1.js.map
|