@brftech/filex-core 0.1.67 → 0.1.69
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-D8xRrOPd.js → ArchiveViewer-Dt8KlYQy.js} +2 -2
- package/dist/{ArchiveViewer-D8xRrOPd.js.map → ArchiveViewer-Dt8KlYQy.js.map} +1 -1
- package/dist/{CsvViewer-gPow-K-G.js → CsvViewer-_E_K8vhx.js} +2 -2
- package/dist/{CsvViewer-gPow-K-G.js.map → CsvViewer-_E_K8vhx.js.map} +1 -1
- package/dist/{DrawioViewer-5Z-Sh7ab.js → DrawioViewer-BEP_mcp4.js} +2 -2
- package/dist/{DrawioViewer-5Z-Sh7ab.js.map → DrawioViewer-BEP_mcp4.js.map} +1 -1
- package/dist/{EpubViewer-Dpjxu635.js → EpubViewer--u3zyU0t.js} +2 -2
- package/dist/{EpubViewer-Dpjxu635.js.map → EpubViewer--u3zyU0t.js.map} +1 -1
- package/dist/{IpynbViewer-Ceqkmq9m.js → IpynbViewer-BYFy5ikz.js} +2 -2
- package/dist/{IpynbViewer-Ceqkmq9m.js.map → IpynbViewer-BYFy5ikz.js.map} +1 -1
- package/dist/{MermaidViewer-qmceupn1.js → MermaidViewer-C5Dc_ZRO.js} +2 -2
- package/dist/{MermaidViewer-qmceupn1.js.map → MermaidViewer-C5Dc_ZRO.js.map} +1 -1
- package/dist/{PsdViewer-kVwnCUUx.js → PsdViewer-CmiGJBrt.js} +2 -2
- package/dist/{PsdViewer-kVwnCUUx.js.map → PsdViewer-CmiGJBrt.js.map} +1 -1
- package/dist/{TiffViewer-Cd0YuEuL.js → TiffViewer-CRYsKUiy.js} +2 -2
- package/dist/{TiffViewer-Cd0YuEuL.js.map → TiffViewer-CRYsKUiy.js.map} +1 -1
- package/dist/{Viewer3D-b5tJm8li.js → Viewer3D-B_AkV4dl.js} +2 -2
- package/dist/{Viewer3D-b5tJm8li.js.map → Viewer3D-B_AkV4dl.js.map} +1 -1
- package/dist/filex-core.js +1 -1
- package/dist/filex-core.umd.cjs +32 -32
- package/dist/filex-core.umd.cjs.map +1 -1
- package/dist/{index-BkxD82VF.js → index-DzcShGVx.js} +628 -616
- package/dist/{index-BkxD82VF.js.map → index-DzcShGVx.js.map} +1 -1
- package/dist/index.d.ts +9 -5
- package/package.json +1 -1
- package/src/FileExplorer.vue +49 -25
- package/src/types/ExplorerConfig.ts +9 -5
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ref as h, computed as Q, onMounted as Ze, onBeforeUnmount as at, defineComponent as ke, watch as Ke, openBlock as r, createElementBlock as p, createElementVNode as n, unref as F, createCommentVNode as W, toDisplayString as i, Fragment as le, renderList as Ce, normalizeClass as fe, normalizeStyle as gt, createTextVNode as ze, withModifiers as be, withDirectives as ye, withKeys as
|
|
2
|
-
function
|
|
1
|
+
import { ref as h, computed as Q, onMounted as Ze, onBeforeUnmount as at, defineComponent as ke, watch as Ke, openBlock as r, createElementBlock as p, createElementVNode as n, unref as F, createCommentVNode as W, toDisplayString as i, Fragment as le, renderList as Ce, normalizeClass as fe, normalizeStyle as gt, createTextVNode as ze, withModifiers as be, withDirectives as ye, withKeys as qe, vModelText as Be, nextTick as ut, createBlock as Ae, Teleport as Fa, createVNode as Pe, Transition as ct, withCtx as Ee, TransitionGroup as Ka, renderSlot as Yt, vModelCheckbox as ht, shallowRef as ja, resolveDynamicComponent as Ha, mergeProps as Va, vModelSelect as mt, customRef as Ya } from "vue";
|
|
2
|
+
function Wt(s) {
|
|
3
3
|
return !!s && s.enabled && s.state === "ok";
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function Wa(s) {
|
|
6
6
|
const c = s.apiBase != null ? s.apiBase.replace(/\/+$/, "") : null;
|
|
7
7
|
function e(l, o) {
|
|
8
8
|
return l || (c === null ? null : `${c}${o}`);
|
|
@@ -38,22 +38,22 @@ function Ha(s) {
|
|
|
38
38
|
trashRestore: e(s.trashRestore, "/api/files/manager/restore")
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
async function
|
|
41
|
+
async function Ga(s) {
|
|
42
42
|
if (typeof s == "function") {
|
|
43
43
|
const c = s();
|
|
44
44
|
return c instanceof Promise ? await c : c;
|
|
45
45
|
}
|
|
46
46
|
return s;
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Ja(s) {
|
|
49
49
|
return s ? "kind" in s ? s : s.type === "bearer" ? { kind: "bearer", token: s.token } : s.type === "csrf" ? { kind: "csrf", csrf: s.csrf } : { kind: "none" } : { kind: "none" };
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
const c =
|
|
51
|
+
function qa(s) {
|
|
52
|
+
const c = Wa(s), e = Ja(s.auth);
|
|
53
53
|
async function u(P = {}) {
|
|
54
54
|
const L = { Accept: "application/json", ...P };
|
|
55
55
|
if (e.kind === "bearer") {
|
|
56
|
-
const Y = await
|
|
56
|
+
const Y = await Ga(e.token);
|
|
57
57
|
Y && (L.Authorization = `Bearer ${Y}`);
|
|
58
58
|
} else if (e.kind === "csrf")
|
|
59
59
|
L["X-CSRF-TOKEN"] = e.csrf, L["X-Requested-With"] = "XMLHttpRequest";
|
|
@@ -407,7 +407,7 @@ function Wa(s) {
|
|
|
407
407
|
jsonFetch: f
|
|
408
408
|
};
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function Xa(s, c) {
|
|
411
411
|
const e = s.chunkSize ?? 5242880, u = Math.max(1, Math.min(8, s.parallelChunks ?? 4));
|
|
412
412
|
async function l(o) {
|
|
413
413
|
var N, M;
|
|
@@ -525,7 +525,7 @@ function Ga(s, c) {
|
|
|
525
525
|
}
|
|
526
526
|
return { uploadFile: l };
|
|
527
527
|
}
|
|
528
|
-
function
|
|
528
|
+
function Qa(s) {
|
|
529
529
|
const c = h(/* @__PURE__ */ new Set()), e = h(null);
|
|
530
530
|
function u(N, M = {}) {
|
|
531
531
|
if (M.shift && e.value) {
|
|
@@ -566,7 +566,7 @@ function Ja(s) {
|
|
|
566
566
|
const C = Q(() => c.value.size), U = Q(() => c.value.size === 0), O = Q(() => s().filter((M) => c.value.has(M.path)));
|
|
567
567
|
return { selected: c, anchor: e, click: u, clear: l, selectAll: o, has: _, add: f, remove: y, size: C, isEmpty: U, nodes: O };
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function Za(s, c) {
|
|
570
570
|
function e(u) {
|
|
571
571
|
var f;
|
|
572
572
|
if (!s.value) return;
|
|
@@ -624,7 +624,7 @@ function qa(s, c) {
|
|
|
624
624
|
}
|
|
625
625
|
Ze(() => window.addEventListener("keydown", e)), at(() => window.removeEventListener("keydown", e));
|
|
626
626
|
}
|
|
627
|
-
const
|
|
627
|
+
const en = {
|
|
628
628
|
"toolbar.new_folder": "Yeni Klasör",
|
|
629
629
|
"toolbar.upload": "Yükle",
|
|
630
630
|
"toolbar.search": "Ara",
|
|
@@ -731,7 +731,7 @@ const Xa = {
|
|
|
731
731
|
"viewer.archive.error": "Arşiv okunamadı.",
|
|
732
732
|
"viewer.name": "Ad",
|
|
733
733
|
"viewer.size": "Boyut"
|
|
734
|
-
},
|
|
734
|
+
}, tn = {
|
|
735
735
|
"toolbar.new_folder": "New Folder",
|
|
736
736
|
"toolbar.upload": "Upload",
|
|
737
737
|
"toolbar.search": "Search",
|
|
@@ -838,11 +838,11 @@ const Xa = {
|
|
|
838
838
|
"viewer.archive.error": "Could not read archive contents.",
|
|
839
839
|
"viewer.name": "Name",
|
|
840
840
|
"viewer.size": "Size"
|
|
841
|
-
},
|
|
841
|
+
}, Gt = { tr: en, en: tn };
|
|
842
842
|
function Le(s) {
|
|
843
843
|
const c = Q(() => {
|
|
844
844
|
const o = typeof s == "function" ? s() : s.value;
|
|
845
|
-
return
|
|
845
|
+
return Gt[o] ?? Gt.tr;
|
|
846
846
|
});
|
|
847
847
|
function e(o, _ = {}) {
|
|
848
848
|
const f = c.value[o] ?? o;
|
|
@@ -875,8 +875,8 @@ function Le(s) {
|
|
|
875
875
|
}
|
|
876
876
|
return { t: e, formatSize: u, nodeDisplayName: l };
|
|
877
877
|
}
|
|
878
|
-
const
|
|
879
|
-
function
|
|
878
|
+
const an = 2e3, nn = 8e3;
|
|
879
|
+
function Jt(s) {
|
|
880
880
|
const c = (...f) => {
|
|
881
881
|
for (const y of f) if (typeof y == "number") return y;
|
|
882
882
|
return 0;
|
|
@@ -899,7 +899,7 @@ function Gt(s) {
|
|
|
899
899
|
created_at: e(s.created_at)
|
|
900
900
|
};
|
|
901
901
|
}
|
|
902
|
-
function
|
|
902
|
+
function on(s, c, e = {}) {
|
|
903
903
|
const u = h([]), l = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
|
|
904
904
|
let _ = !1;
|
|
905
905
|
const f = Q(
|
|
@@ -909,7 +909,7 @@ function tn(s, c, e = {}) {
|
|
|
909
909
|
function C() {
|
|
910
910
|
y || c.endpoints.opsList && (y = setInterval(() => {
|
|
911
911
|
O();
|
|
912
|
-
},
|
|
912
|
+
}, an), O());
|
|
913
913
|
}
|
|
914
914
|
function U() {
|
|
915
915
|
y && (clearInterval(y), y = void 0);
|
|
@@ -918,7 +918,7 @@ function tn(s, c, e = {}) {
|
|
|
918
918
|
var $;
|
|
919
919
|
if (c.endpoints.opsList)
|
|
920
920
|
try {
|
|
921
|
-
const z = ((await c.jsonFetch(c.endpoints.opsList)).ops || []).map(
|
|
921
|
+
const z = ((await c.jsonFetch(c.endpoints.opsList)).ops || []).map(Jt);
|
|
922
922
|
for (const w of z)
|
|
923
923
|
(w.status === "done" || w.status === "error") && !l.has(w.id) && (l.add(w.id), o.set(w.id, Date.now()), _ && (($ = e.onSettled) == null || $.call(e, w)));
|
|
924
924
|
const R = new Set(u.value.map((w) => w.id)), A = z.filter((w) => w.status === "pending" || w.status === "running" ? !0 : _ ? R.has(w.id) : !1), J = new Set(A.map((w) => w.id)), b = u.value.filter((w) => !J.has(w.id)), v = [...A, ...b];
|
|
@@ -926,7 +926,7 @@ function tn(s, c, e = {}) {
|
|
|
926
926
|
const d = Date.now(), S = v.filter((w) => {
|
|
927
927
|
if (w.status === "pending" || w.status === "running") return !0;
|
|
928
928
|
const K = o.get(w.id);
|
|
929
|
-
return K !== void 0 && d - K <
|
|
929
|
+
return K !== void 0 && d - K < nn;
|
|
930
930
|
});
|
|
931
931
|
u.value = S, !f.value && S.length === 0 && U();
|
|
932
932
|
} catch (k) {
|
|
@@ -934,7 +934,7 @@ function tn(s, c, e = {}) {
|
|
|
934
934
|
}
|
|
935
935
|
}
|
|
936
936
|
function N($) {
|
|
937
|
-
const k =
|
|
937
|
+
const k = Jt($);
|
|
938
938
|
u.value.some((R) => R.id === k.id) || (u.value = [k, ...u.value]), C();
|
|
939
939
|
}
|
|
940
940
|
function M($) {
|
|
@@ -962,31 +962,31 @@ function kt() {
|
|
|
962
962
|
"highlight.js"
|
|
963
963
|
).then((s) => (bt = s.default ?? s, bt)).catch(() => (bt = null, null)));
|
|
964
964
|
}
|
|
965
|
-
async function
|
|
965
|
+
async function Et() {
|
|
966
966
|
return _t || kt(), _t;
|
|
967
967
|
}
|
|
968
|
-
async function
|
|
968
|
+
async function Qt() {
|
|
969
969
|
return wt || kt(), wt;
|
|
970
970
|
}
|
|
971
|
-
function
|
|
971
|
+
function Zt() {
|
|
972
972
|
return yt;
|
|
973
973
|
}
|
|
974
|
-
function
|
|
974
|
+
function sn() {
|
|
975
975
|
return bt;
|
|
976
976
|
}
|
|
977
|
-
function
|
|
977
|
+
function bi() {
|
|
978
978
|
return kt(), {
|
|
979
|
-
ensureMonaco:
|
|
980
|
-
ensureHighlight:
|
|
981
|
-
getMonaco:
|
|
982
|
-
getHighlight:
|
|
979
|
+
ensureMonaco: Et,
|
|
980
|
+
ensureHighlight: Qt,
|
|
981
|
+
getMonaco: Zt,
|
|
982
|
+
getHighlight: sn
|
|
983
983
|
};
|
|
984
984
|
}
|
|
985
|
-
const
|
|
985
|
+
const rn = { class: "fe-toolbar" }, ln = { class: "fe-toolbar__primary" }, cn = ["title", "aria-label"], un = ["title"], dn = { class: "fe-btn__label" }, pn = ["disabled", "title", "onClick"], fn = { class: "fe-icon" }, vn = { class: "fe-btn__label" }, mn = ["title"], hn = { class: "fe-btn__label" }, yn = { class: "fe-toolbar__search-group" }, bn = { class: "fe-search" }, _n = ["placeholder", "value"], wn = ["title"], gn = ["title"], kn = {
|
|
986
986
|
class: "fe-toolbar__view",
|
|
987
987
|
role: "tablist",
|
|
988
988
|
"aria-label": "View"
|
|
989
|
-
},
|
|
989
|
+
}, xn = ["aria-selected", "title"], $n = ["aria-selected", "title"], Cn = /* @__PURE__ */ ke({
|
|
990
990
|
__name: "Toolbar",
|
|
991
991
|
props: {
|
|
992
992
|
viewMode: {},
|
|
@@ -1021,8 +1021,8 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1021
1021
|
function M($) {
|
|
1022
1022
|
l("action", $);
|
|
1023
1023
|
}
|
|
1024
|
-
return ($, k) => (r(), p("div",
|
|
1025
|
-
n("div",
|
|
1024
|
+
return ($, k) => (r(), p("div", rn, [
|
|
1025
|
+
n("div", ln, [
|
|
1026
1026
|
s.canGoUp ? (r(), p("button", {
|
|
1027
1027
|
key: 0,
|
|
1028
1028
|
type: "button",
|
|
@@ -1032,7 +1032,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1032
1032
|
onClick: k[0] || (k[0] = (z) => l("go-up"))
|
|
1033
1033
|
}, [...k[7] || (k[7] = [
|
|
1034
1034
|
n("span", { class: "fe-icon" }, "↑", -1)
|
|
1035
|
-
])], 8,
|
|
1035
|
+
])], 8, cn)) : W("", !0),
|
|
1036
1036
|
O.value === "none" && !s.trashActive && !s.atVirtualRoot && s.canWrite !== !1 ? (r(), p("button", {
|
|
1037
1037
|
key: 1,
|
|
1038
1038
|
type: "button",
|
|
@@ -1041,8 +1041,8 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1041
1041
|
onClick: k[1] || (k[1] = (z) => l("new-folder"))
|
|
1042
1042
|
}, [
|
|
1043
1043
|
k[8] || (k[8] = n("span", { class: "fe-icon" }, "📁", -1)),
|
|
1044
|
-
n("span",
|
|
1045
|
-
], 8,
|
|
1044
|
+
n("span", dn, i(F(o)("toolbar.new_folder")), 1)
|
|
1045
|
+
], 8, un)) : W("", !0),
|
|
1046
1046
|
(r(!0), p(le, null, Ce(N.value, (z) => (r(), p("button", {
|
|
1047
1047
|
key: z.key,
|
|
1048
1048
|
type: "button",
|
|
@@ -1051,9 +1051,9 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1051
1051
|
title: z.label,
|
|
1052
1052
|
onClick: (R) => M(z.key)
|
|
1053
1053
|
}, [
|
|
1054
|
-
n("span",
|
|
1055
|
-
n("span",
|
|
1056
|
-
], 10,
|
|
1054
|
+
n("span", fn, i(z.icon), 1),
|
|
1055
|
+
n("span", vn, i(z.label), 1)
|
|
1056
|
+
], 10, pn))), 128)),
|
|
1057
1057
|
s.pasteEnabled && O.value === "none" && !s.trashActive && !s.atVirtualRoot && s.canWrite !== !1 ? (r(), p("button", {
|
|
1058
1058
|
key: 2,
|
|
1059
1059
|
type: "button",
|
|
@@ -1062,12 +1062,12 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1062
1062
|
onClick: k[2] || (k[2] = (z) => M("paste"))
|
|
1063
1063
|
}, [
|
|
1064
1064
|
k[9] || (k[9] = n("span", { class: "fe-icon" }, "📋", -1)),
|
|
1065
|
-
n("span",
|
|
1066
|
-
], 8,
|
|
1065
|
+
n("span", hn, i(F(o)("ctx.paste")), 1)
|
|
1066
|
+
], 8, mn)) : W("", !0)
|
|
1067
1067
|
]),
|
|
1068
1068
|
k[14] || (k[14] = n("div", { class: "fe-toolbar__spacer" }, null, -1)),
|
|
1069
|
-
n("div",
|
|
1070
|
-
n("div",
|
|
1069
|
+
n("div", yn, [
|
|
1070
|
+
n("div", bn, [
|
|
1071
1071
|
n("input", {
|
|
1072
1072
|
ref_key: "searchEl",
|
|
1073
1073
|
ref: _,
|
|
@@ -1077,7 +1077,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1077
1077
|
value: f.value,
|
|
1078
1078
|
"aria-label": "Search",
|
|
1079
1079
|
onInput: C
|
|
1080
|
-
}, null, 40,
|
|
1080
|
+
}, null, 40, _n)
|
|
1081
1081
|
]),
|
|
1082
1082
|
!s.atVirtualRoot && s.canWrite !== !1 ? (r(), p("button", {
|
|
1083
1083
|
key: 0,
|
|
@@ -1087,7 +1087,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1087
1087
|
onClick: k[3] || (k[3] = (z) => l("upload"))
|
|
1088
1088
|
}, [...k[10] || (k[10] = [
|
|
1089
1089
|
n("span", { class: "fe-icon" }, "⬆", -1)
|
|
1090
|
-
])], 8,
|
|
1090
|
+
])], 8, wn)) : W("", !0),
|
|
1091
1091
|
n("button", {
|
|
1092
1092
|
type: "button",
|
|
1093
1093
|
class: "fe-btn fe-btn--icon-only",
|
|
@@ -1095,9 +1095,9 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1095
1095
|
onClick: k[4] || (k[4] = (z) => l("refresh"))
|
|
1096
1096
|
}, [...k[11] || (k[11] = [
|
|
1097
1097
|
n("span", { class: "fe-icon" }, "↻", -1)
|
|
1098
|
-
])], 8,
|
|
1098
|
+
])], 8, gn)
|
|
1099
1099
|
]),
|
|
1100
|
-
n("div",
|
|
1100
|
+
n("div", kn, [
|
|
1101
1101
|
n("button", {
|
|
1102
1102
|
type: "button",
|
|
1103
1103
|
class: fe(["fe-btn fe-btn--icon-only", { "is-active": s.viewMode === "list" }]),
|
|
@@ -1107,7 +1107,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1107
1107
|
onClick: k[5] || (k[5] = (z) => l("update:viewMode", "list"))
|
|
1108
1108
|
}, [...k[12] || (k[12] = [
|
|
1109
1109
|
n("span", { class: "fe-icon" }, "☰", -1)
|
|
1110
|
-
])], 10,
|
|
1110
|
+
])], 10, xn),
|
|
1111
1111
|
n("button", {
|
|
1112
1112
|
type: "button",
|
|
1113
1113
|
class: fe(["fe-btn fe-btn--icon-only", { "is-active": s.viewMode === "grid" }]),
|
|
@@ -1117,11 +1117,11 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1117
1117
|
onClick: k[6] || (k[6] = (z) => l("update:viewMode", "grid"))
|
|
1118
1118
|
}, [...k[13] || (k[13] = [
|
|
1119
1119
|
n("span", { class: "fe-icon" }, "▦", -1)
|
|
1120
|
-
])], 10,
|
|
1120
|
+
])], 10, $n)
|
|
1121
1121
|
])
|
|
1122
1122
|
]));
|
|
1123
1123
|
}
|
|
1124
|
-
}),
|
|
1124
|
+
}), Sn = ["onClick"], Tn = /* @__PURE__ */ ke({
|
|
1125
1125
|
__name: "TagPicker",
|
|
1126
1126
|
props: {
|
|
1127
1127
|
nodeId: {},
|
|
@@ -1208,7 +1208,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1208
1208
|
type: "button",
|
|
1209
1209
|
onClick: (A) => $(R),
|
|
1210
1210
|
"aria-label": "Remove tag"
|
|
1211
|
-
}, "×", 8,
|
|
1211
|
+
}, "×", 8, Sn)
|
|
1212
1212
|
], 4))), 128)),
|
|
1213
1213
|
_.value ? (r(), p("form", {
|
|
1214
1214
|
key: 0,
|
|
@@ -1220,7 +1220,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1220
1220
|
autofocus: "",
|
|
1221
1221
|
placeholder: "tag name",
|
|
1222
1222
|
onBlur: M,
|
|
1223
|
-
onKeydown: z[1] || (z[1] =
|
|
1223
|
+
onKeydown: z[1] || (z[1] = qe((R) => {
|
|
1224
1224
|
_.value = !1, f.value = "";
|
|
1225
1225
|
}, ["escape"]))
|
|
1226
1226
|
}, null, 544), [
|
|
@@ -1239,13 +1239,13 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1239
1239
|
for (const [u, l] of c)
|
|
1240
1240
|
e[u] = l;
|
|
1241
1241
|
return e;
|
|
1242
|
-
},
|
|
1242
|
+
}, En = /* @__PURE__ */ ft(Tn, [["__scopeId", "data-v-7040583c"]]), Pn = { class: "filex-recent" }, Dn = ["disabled"], An = { key: 0 }, On = ["onClick"], Mn = { class: "filex-recent-name" }, Bn = { class: "filex-recent-meta" }, In = {
|
|
1243
1243
|
key: 1,
|
|
1244
1244
|
class: "filex-recent-empty"
|
|
1245
|
-
},
|
|
1245
|
+
}, zn = {
|
|
1246
1246
|
key: 2,
|
|
1247
1247
|
class: "filex-recent-empty"
|
|
1248
|
-
},
|
|
1248
|
+
}, Ln = /* @__PURE__ */ ke({
|
|
1249
1249
|
__name: "RecentlyOpened",
|
|
1250
1250
|
props: {
|
|
1251
1251
|
apiBase: {},
|
|
@@ -1280,7 +1280,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1280
1280
|
const U = Date.now() - C;
|
|
1281
1281
|
return U < 6e4 ? "just now" : U < 36e5 ? `${Math.floor(U / 6e4)}m ago` : U < 864e5 ? `${Math.floor(U / 36e5)}h ago` : `${Math.floor(U / 864e5)}d ago`;
|
|
1282
1282
|
}
|
|
1283
|
-
return Ze(_), Ke(() => e.refreshKey, _), (y, C) => (r(), p("div",
|
|
1283
|
+
return Ze(_), Ke(() => e.refreshKey, _), (y, C) => (r(), p("div", Pn, [
|
|
1284
1284
|
n("header", null, [
|
|
1285
1285
|
C[0] || (C[0] = n("h3", null, "Recently opened", -1)),
|
|
1286
1286
|
n("button", {
|
|
@@ -1288,9 +1288,9 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1288
1288
|
type: "button",
|
|
1289
1289
|
onClick: _,
|
|
1290
1290
|
disabled: o.value
|
|
1291
|
-
}, " ↻ ", 8,
|
|
1291
|
+
}, " ↻ ", 8, Dn)
|
|
1292
1292
|
]),
|
|
1293
|
-
l.value.length ? (r(), p("ul",
|
|
1293
|
+
l.value.length ? (r(), p("ul", An, [
|
|
1294
1294
|
(r(!0), p(le, null, Ce(l.value, (U) => (r(), p("li", {
|
|
1295
1295
|
key: U.id
|
|
1296
1296
|
}, [
|
|
@@ -1299,21 +1299,21 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1299
1299
|
onClick: (O) => u("open", U),
|
|
1300
1300
|
class: "filex-recent-item"
|
|
1301
1301
|
}, [
|
|
1302
|
-
n("span",
|
|
1303
|
-
n("span",
|
|
1304
|
-
], 8,
|
|
1302
|
+
n("span", Mn, i(U.name), 1),
|
|
1303
|
+
n("span", Bn, i(f(U.last_opened)), 1)
|
|
1304
|
+
], 8, On)
|
|
1305
1305
|
]))), 128))
|
|
1306
|
-
])) : o.value ? (r(), p("p",
|
|
1306
|
+
])) : o.value ? (r(), p("p", zn, "Loading…")) : (r(), p("p", In, "Nothing here yet."))
|
|
1307
1307
|
]));
|
|
1308
1308
|
}
|
|
1309
|
-
}),
|
|
1309
|
+
}), Nn = /* @__PURE__ */ ft(Ln, [["__scopeId", "data-v-559f2c71"]]), Un = {
|
|
1310
1310
|
class: "fe-breadcrumb",
|
|
1311
1311
|
"aria-label": "Breadcrumb"
|
|
1312
|
-
},
|
|
1312
|
+
}, Rn = ["aria-current", "onClick", "onContextmenu", "onDrop"], Fn = {
|
|
1313
1313
|
key: 0,
|
|
1314
1314
|
class: "fe-breadcrumb__sep",
|
|
1315
1315
|
"aria-hidden": "true"
|
|
1316
|
-
},
|
|
1316
|
+
}, Kn = ["title", "aria-label"], jn = ["placeholder", "onKeydown"], Hn = /* @__PURE__ */ ke({
|
|
1317
1317
|
__name: "Breadcrumb",
|
|
1318
1318
|
props: {
|
|
1319
1319
|
dirname: {},
|
|
@@ -1423,7 +1423,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1423
1423
|
function R() {
|
|
1424
1424
|
N.value = !1;
|
|
1425
1425
|
}
|
|
1426
|
-
return (A, J) => (r(), p("nav",
|
|
1426
|
+
return (A, J) => (r(), p("nav", Un, [
|
|
1427
1427
|
N.value ? ye((r(), p("input", {
|
|
1428
1428
|
key: 1,
|
|
1429
1429
|
ref_key: "pathInput",
|
|
@@ -1435,11 +1435,11 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1435
1435
|
spellcheck: "false",
|
|
1436
1436
|
autocomplete: "off",
|
|
1437
1437
|
onKeydown: [
|
|
1438
|
-
|
|
1439
|
-
|
|
1438
|
+
qe(be(z, ["prevent"]), ["enter"]),
|
|
1439
|
+
qe(be(R, ["prevent"]), ["escape"])
|
|
1440
1440
|
],
|
|
1441
1441
|
onBlur: R
|
|
1442
|
-
}, null, 40,
|
|
1442
|
+
}, null, 40, jn)), [
|
|
1443
1443
|
[Be, M.value]
|
|
1444
1444
|
]) : (r(), p(le, { key: 0 }, [
|
|
1445
1445
|
(r(!0), p(le, null, Ce(f.value, (b, v) => (r(), p("button", {
|
|
@@ -1453,27 +1453,27 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1453
1453
|
onDrop: (d) => O(d, b)
|
|
1454
1454
|
}, [
|
|
1455
1455
|
n("span", null, i(b.label), 1),
|
|
1456
|
-
v < f.value.length - 1 ? (r(), p("span",
|
|
1457
|
-
], 42,
|
|
1456
|
+
v < f.value.length - 1 ? (r(), p("span", Fn, "›")) : W("", !0)
|
|
1457
|
+
], 42, Rn))), 128)),
|
|
1458
1458
|
n("button", {
|
|
1459
1459
|
type: "button",
|
|
1460
1460
|
class: "fe-breadcrumb__edit",
|
|
1461
1461
|
title: F(o)("breadcrumb.go_to_path"),
|
|
1462
1462
|
"aria-label": F(o)("breadcrumb.go_to_path"),
|
|
1463
1463
|
onClick: k
|
|
1464
|
-
}, "✏", 8,
|
|
1464
|
+
}, "✏", 8, Kn)
|
|
1465
1465
|
], 64))
|
|
1466
1466
|
]));
|
|
1467
1467
|
}
|
|
1468
|
-
}),
|
|
1468
|
+
}), Vn = ["aria-pressed", "title"], Yn = {
|
|
1469
1469
|
viewBox: "0 0 24 24",
|
|
1470
1470
|
width: "16",
|
|
1471
1471
|
height: "16",
|
|
1472
1472
|
"aria-hidden": "true"
|
|
1473
|
-
},
|
|
1473
|
+
}, Wn = ["fill"], Gn = {
|
|
1474
1474
|
key: 0,
|
|
1475
1475
|
class: "filex-star-label"
|
|
1476
|
-
},
|
|
1476
|
+
}, Jn = /* @__PURE__ */ ke({
|
|
1477
1477
|
__name: "StarButton",
|
|
1478
1478
|
props: {
|
|
1479
1479
|
starred: { type: Boolean },
|
|
@@ -1514,40 +1514,40 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1514
1514
|
title: l.value ? "Unstar" : "Star",
|
|
1515
1515
|
onClick: be(o, ["stop"])
|
|
1516
1516
|
}, [
|
|
1517
|
-
(r(), p("svg",
|
|
1517
|
+
(r(), p("svg", Yn, [
|
|
1518
1518
|
n("path", {
|
|
1519
1519
|
fill: l.value ? "currentColor" : "none",
|
|
1520
1520
|
stroke: "currentColor",
|
|
1521
1521
|
"stroke-width": "2",
|
|
1522
1522
|
"stroke-linejoin": "round",
|
|
1523
1523
|
d: "M12 2.5l3.09 6.26 6.91 1-5 4.87 1.18 6.87L12 18.27l-6.18 3.23L7 14.63 2 9.76l6.91-1z"
|
|
1524
|
-
}, null, 8,
|
|
1524
|
+
}, null, 8, Wn)
|
|
1525
1525
|
])),
|
|
1526
|
-
s.compact ? W("", !0) : (r(), p("span",
|
|
1527
|
-
], 10,
|
|
1526
|
+
s.compact ? W("", !0) : (r(), p("span", Gn, i(l.value ? "Starred" : "Star"), 1))
|
|
1527
|
+
], 10, Vn));
|
|
1528
1528
|
}
|
|
1529
|
-
}),
|
|
1529
|
+
}), qn = /* @__PURE__ */ ft(Jn, [["__scopeId", "data-v-12a2f9c5"]]), Xn = {
|
|
1530
1530
|
class: "fe-list__head",
|
|
1531
1531
|
role: "row"
|
|
1532
|
-
},
|
|
1532
|
+
}, Qn = {
|
|
1533
1533
|
class: "fe-list__col fe-list__col--name",
|
|
1534
1534
|
role: "columnheader"
|
|
1535
|
-
},
|
|
1535
|
+
}, Zn = {
|
|
1536
1536
|
class: "fe-list__col fe-list__col--size",
|
|
1537
1537
|
role: "columnheader"
|
|
1538
|
-
},
|
|
1538
|
+
}, eo = {
|
|
1539
1539
|
class: "fe-list__col fe-list__col--mod",
|
|
1540
1540
|
role: "columnheader"
|
|
1541
|
-
},
|
|
1541
|
+
}, to = {
|
|
1542
1542
|
class: "fe-list__body",
|
|
1543
1543
|
role: "rowgroup"
|
|
1544
|
-
},
|
|
1544
|
+
}, ao = ["onClick", "onDblclick", "onContextmenu", "onDragstart", "onDragover", "onDrop", "onTouchstartPassive"], no = { class: "fe-list__col fe-list__col--name" }, oo = {
|
|
1545
1545
|
class: "fe-list__icon",
|
|
1546
1546
|
"aria-hidden": "true"
|
|
1547
|
-
},
|
|
1547
|
+
}, so = { class: "fe-list__name-wrap" }, ro = ["title"], lo = ["title"], io = { class: "fe-list__col fe-list__col--size" }, co = { class: "fe-list__col fe-list__col--mod" }, uo = {
|
|
1548
1548
|
key: 0,
|
|
1549
1549
|
class: "fe-list__empty"
|
|
1550
|
-
},
|
|
1550
|
+
}, po = /* @__PURE__ */ ke({
|
|
1551
1551
|
__name: "ListView",
|
|
1552
1552
|
props: {
|
|
1553
1553
|
files: {},
|
|
@@ -1621,17 +1621,17 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1621
1621
|
return (d, S) => (r(), p("div", {
|
|
1622
1622
|
class: fe(["fe-list", { "is-loading": s.loading, "has-star-col": !!s.apiBase || s.apiBase === "" }])
|
|
1623
1623
|
}, [
|
|
1624
|
-
n("div",
|
|
1624
|
+
n("div", Xn, [
|
|
1625
1625
|
S[1] || (S[1] = n("div", {
|
|
1626
1626
|
class: "fe-list__col fe-list__col--star",
|
|
1627
1627
|
role: "columnheader",
|
|
1628
1628
|
"aria-label": "Star"
|
|
1629
1629
|
}, null, -1)),
|
|
1630
|
-
n("div",
|
|
1631
|
-
n("div",
|
|
1632
|
-
n("div",
|
|
1630
|
+
n("div", Qn, i(F(l)("col.name")), 1),
|
|
1631
|
+
n("div", Zn, i(F(l)("col.size")), 1),
|
|
1632
|
+
n("div", eo, i(F(l)("col.modified")), 1)
|
|
1633
1633
|
]),
|
|
1634
|
-
n("div",
|
|
1634
|
+
n("div", to, [
|
|
1635
1635
|
(r(!0), p(le, null, Ce(v.value, (w) => {
|
|
1636
1636
|
var K, j;
|
|
1637
1637
|
return r(), p("div", {
|
|
@@ -1660,7 +1660,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1660
1660
|
onClick: S[0] || (S[0] = be(() => {
|
|
1661
1661
|
}, ["stop"]))
|
|
1662
1662
|
}, [
|
|
1663
|
-
typeof w.id == "number" && w.type === "file" ? (r(), Ae(
|
|
1663
|
+
typeof w.id == "number" && w.type === "file" ? (r(), Ae(qn, {
|
|
1664
1664
|
key: 0,
|
|
1665
1665
|
starred: !!((j = s.starredIds) != null && j.has(w.id)),
|
|
1666
1666
|
"node-id": w.id,
|
|
@@ -1670,35 +1670,35 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1670
1670
|
onChange: (G) => u("star-change", w, G)
|
|
1671
1671
|
}, null, 8, ["starred", "node-id", "api-base", "auth-headers", "onChange"])) : W("", !0)
|
|
1672
1672
|
]),
|
|
1673
|
-
n("div",
|
|
1674
|
-
n("span",
|
|
1675
|
-
n("div",
|
|
1673
|
+
n("div", no, [
|
|
1674
|
+
n("span", oo, i(A(w)), 1),
|
|
1675
|
+
n("div", so, [
|
|
1676
1676
|
n("span", {
|
|
1677
1677
|
class: "fe-list__name",
|
|
1678
1678
|
title: w.basename
|
|
1679
|
-
}, i(F(_)(w)), 9,
|
|
1679
|
+
}, i(F(_)(w)), 9, ro),
|
|
1680
1680
|
s.showParentPath ? (r(), p("span", {
|
|
1681
1681
|
key: 0,
|
|
1682
1682
|
class: "fe-list__parent",
|
|
1683
1683
|
title: b(w.path)
|
|
1684
|
-
}, i(b(w.path) || "—"), 9,
|
|
1684
|
+
}, i(b(w.path) || "—"), 9, lo)) : W("", !0)
|
|
1685
1685
|
])
|
|
1686
1686
|
]),
|
|
1687
|
-
n("div",
|
|
1688
|
-
n("div",
|
|
1689
|
-
], 42,
|
|
1687
|
+
n("div", io, i(F(o)(w.size)), 1),
|
|
1688
|
+
n("div", co, i(J(w.last_modified)), 1)
|
|
1689
|
+
], 42, ao);
|
|
1690
1690
|
}), 128)),
|
|
1691
|
-
!s.loading && v.value.length === 0 ? (r(), p("div",
|
|
1691
|
+
!s.loading && v.value.length === 0 ? (r(), p("div", uo, i(F(l)("empty.folder")), 1)) : W("", !0)
|
|
1692
1692
|
])
|
|
1693
1693
|
], 2));
|
|
1694
1694
|
}
|
|
1695
|
-
}),
|
|
1695
|
+
}), fo = ["onClick", "onDblclick", "onContextmenu", "onDragstart", "onDragover", "onDrop", "onTouchstartPassive"], vo = { class: "fe-grid__thumb" }, mo = ["src", "alt"], ho = {
|
|
1696
1696
|
key: 1,
|
|
1697
1697
|
class: "fe-grid__icon"
|
|
1698
|
-
},
|
|
1698
|
+
}, yo = ["title"], bo = ["title"], _o = { class: "fe-grid__meta" }, wo = {
|
|
1699
1699
|
key: 0,
|
|
1700
1700
|
class: "fe-grid__empty"
|
|
1701
|
-
},
|
|
1701
|
+
}, go = /* @__PURE__ */ ke({
|
|
1702
1702
|
__name: "GridView",
|
|
1703
1703
|
props: {
|
|
1704
1704
|
files: {},
|
|
@@ -1787,38 +1787,38 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1787
1787
|
onTouchend: R,
|
|
1788
1788
|
onTouchmove: R
|
|
1789
1789
|
}, [
|
|
1790
|
-
n("div",
|
|
1790
|
+
n("div", vo, [
|
|
1791
1791
|
d.thumb_url ? (r(), p("img", {
|
|
1792
1792
|
key: 0,
|
|
1793
1793
|
src: d.thumb_url,
|
|
1794
1794
|
alt: d.basename,
|
|
1795
1795
|
loading: "lazy",
|
|
1796
1796
|
draggable: "false"
|
|
1797
|
-
}, null, 8,
|
|
1797
|
+
}, null, 8, mo)) : (r(), p("span", ho, i(J(d)), 1))
|
|
1798
1798
|
]),
|
|
1799
1799
|
n("div", {
|
|
1800
1800
|
class: "fe-grid__label",
|
|
1801
1801
|
title: d.basename
|
|
1802
|
-
}, i(F(_)(d)), 9,
|
|
1802
|
+
}, i(F(_)(d)), 9, yo),
|
|
1803
1803
|
s.showParentPath ? (r(), p("div", {
|
|
1804
1804
|
key: 0,
|
|
1805
1805
|
class: "fe-grid__parent",
|
|
1806
1806
|
title: A(d.path)
|
|
1807
|
-
}, i(A(d.path) || "—"), 9,
|
|
1808
|
-
n("div",
|
|
1809
|
-
], 42,
|
|
1807
|
+
}, i(A(d.path) || "—"), 9, bo)) : W("", !0),
|
|
1808
|
+
n("div", _o, i(F(o)(d.size)), 1)
|
|
1809
|
+
], 42, fo);
|
|
1810
1810
|
}), 128)),
|
|
1811
|
-
!s.loading && s.files.length === 0 ? (r(), p("div",
|
|
1811
|
+
!s.loading && s.files.length === 0 ? (r(), p("div", wo, i(F(l)("empty.folder")), 1)) : W("", !0)
|
|
1812
1812
|
], 2));
|
|
1813
1813
|
}
|
|
1814
|
-
}),
|
|
1814
|
+
}), ko = ["data-prefers-dark"], xo = {
|
|
1815
1815
|
key: 0,
|
|
1816
1816
|
class: "fe-ctx__sep"
|
|
1817
|
-
},
|
|
1817
|
+
}, $o = ["disabled", "onClick"], Co = {
|
|
1818
1818
|
key: 0,
|
|
1819
1819
|
class: "fe-ctx__icon",
|
|
1820
1820
|
"aria-hidden": "true"
|
|
1821
|
-
},
|
|
1821
|
+
}, So = { class: "fe-ctx__label" }, To = /* @__PURE__ */ ke({
|
|
1822
1822
|
__name: "ContextMenu",
|
|
1823
1823
|
props: {
|
|
1824
1824
|
locale: {},
|
|
@@ -1861,7 +1861,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1861
1861
|
(b = R == null ? void 0 : R.removeEventListener) == null || b.call(R, "change", A);
|
|
1862
1862
|
});
|
|
1863
1863
|
const J = Q(() => `fe-ctx-backdrop--theme-${u.theme || "auto"}`);
|
|
1864
|
-
return c({ show: U, hide: N }), (b, v) => (r(), Ae(
|
|
1864
|
+
return c({ show: U, hide: N }), (b, v) => (r(), Ae(Fa, { to: "body" }, [
|
|
1865
1865
|
Pe(ct, { name: "fe-ctx" }, {
|
|
1866
1866
|
default: Ee(() => [
|
|
1867
1867
|
o.value ? (r(), p("div", {
|
|
@@ -1884,7 +1884,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1884
1884
|
(r(!0), p(le, null, Ce(k.value, (d, S) => (r(), p(le, {
|
|
1885
1885
|
key: d.key || S
|
|
1886
1886
|
}, [
|
|
1887
|
-
d.divider ? (r(), p("div",
|
|
1887
|
+
d.divider ? (r(), p("div", xo)) : (r(), p("button", {
|
|
1888
1888
|
key: 1,
|
|
1889
1889
|
type: "button",
|
|
1890
1890
|
class: fe(["fe-ctx__item", { "is-danger": d.danger, "is-disabled": d.disabled }]),
|
|
@@ -1892,21 +1892,21 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1892
1892
|
role: "menuitem",
|
|
1893
1893
|
onClick: (w) => M(d)
|
|
1894
1894
|
}, [
|
|
1895
|
-
d.icon ? (r(), p("span",
|
|
1896
|
-
n("span",
|
|
1897
|
-
], 10,
|
|
1895
|
+
d.icon ? (r(), p("span", Co, i(d.icon), 1)) : W("", !0),
|
|
1896
|
+
n("span", So, i(d.label), 1)
|
|
1897
|
+
], 10, $o))
|
|
1898
1898
|
], 64))), 128))
|
|
1899
1899
|
], 4)
|
|
1900
|
-
], 42,
|
|
1900
|
+
], 42, ko)) : W("", !0)
|
|
1901
1901
|
]),
|
|
1902
1902
|
_: 1
|
|
1903
1903
|
})
|
|
1904
1904
|
]));
|
|
1905
1905
|
}
|
|
1906
|
-
}),
|
|
1906
|
+
}), Eo = {
|
|
1907
1907
|
key: 0,
|
|
1908
1908
|
class: "fe-upload"
|
|
1909
|
-
},
|
|
1909
|
+
}, Po = { class: "fe-upload__header" }, Do = { class: "fe-upload__count" }, Ao = { class: "fe-upload__list" }, Oo = ["title"], Mo = ["aria-valuenow"], Bo = { class: "fe-upload__meta" }, Io = ["onClick"], zo = ["onClick"], Lo = /* @__PURE__ */ ke({
|
|
1910
1910
|
__name: "UploadProgress",
|
|
1911
1911
|
props: {
|
|
1912
1912
|
jobs: {},
|
|
@@ -1929,12 +1929,12 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1929
1929
|
}
|
|
1930
1930
|
return (y, C) => (r(), Ae(ct, { name: "fe-upload-slide" }, {
|
|
1931
1931
|
default: Ee(() => [
|
|
1932
|
-
_.value.length > 0 ? (r(), p("div",
|
|
1933
|
-
n("div",
|
|
1932
|
+
_.value.length > 0 ? (r(), p("div", Eo, [
|
|
1933
|
+
n("div", Po, [
|
|
1934
1934
|
n("strong", null, i(F(l)("upload.progress")), 1),
|
|
1935
|
-
n("span",
|
|
1935
|
+
n("span", Do, i(_.value.length), 1)
|
|
1936
1936
|
]),
|
|
1937
|
-
n("ul",
|
|
1937
|
+
n("ul", Ao, [
|
|
1938
1938
|
(r(!0), p(le, null, Ce(_.value, (U) => (r(), p("li", {
|
|
1939
1939
|
key: U.id,
|
|
1940
1940
|
class: fe(["fe-upload__item", `is-${U.status}`])
|
|
@@ -1942,7 +1942,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1942
1942
|
n("div", {
|
|
1943
1943
|
class: "fe-upload__name",
|
|
1944
1944
|
title: U.file.name
|
|
1945
|
-
}, i(U.file.name), 9,
|
|
1945
|
+
}, i(U.file.name), 9, Oo),
|
|
1946
1946
|
n("div", {
|
|
1947
1947
|
class: "fe-upload__bar",
|
|
1948
1948
|
"aria-valuenow": U.percent,
|
|
@@ -1952,8 +1952,8 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1952
1952
|
class: "fe-upload__bar-fill",
|
|
1953
1953
|
style: gt({ width: U.percent + "%" })
|
|
1954
1954
|
}, null, 4)
|
|
1955
|
-
], 8,
|
|
1956
|
-
n("div",
|
|
1955
|
+
], 8, Mo),
|
|
1956
|
+
n("div", Bo, [
|
|
1957
1957
|
n("span", null, i(f(U)), 1),
|
|
1958
1958
|
n("span", null, i(F(o)(U.uploadedBytes)) + " / " + i(F(o)(U.totalBytes)), 1),
|
|
1959
1959
|
U.status === "uploading" || U.status === "initializing" ? (r(), p("button", {
|
|
@@ -1961,12 +1961,12 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1961
1961
|
type: "button",
|
|
1962
1962
|
class: "fe-upload__cancel",
|
|
1963
1963
|
onClick: (O) => u("cancel", U)
|
|
1964
|
-
}, i(F(l)("upload.cancel")), 9,
|
|
1964
|
+
}, i(F(l)("upload.cancel")), 9, Io)) : (r(), p("button", {
|
|
1965
1965
|
key: 1,
|
|
1966
1966
|
type: "button",
|
|
1967
1967
|
class: "fe-upload__cancel",
|
|
1968
1968
|
onClick: (O) => u("dismiss", U)
|
|
1969
|
-
}, "×", 8,
|
|
1969
|
+
}, "×", 8, zo))
|
|
1970
1970
|
])
|
|
1971
1971
|
], 2))), 128))
|
|
1972
1972
|
])
|
|
@@ -1975,10 +1975,10 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1975
1975
|
_: 1
|
|
1976
1976
|
}));
|
|
1977
1977
|
}
|
|
1978
|
-
}),
|
|
1978
|
+
}), No = { class: "fe-ops__row" }, Uo = ["title"], Ro = ["onClick"], Fo = { class: "fe-ops__bar" }, Ko = {
|
|
1979
1979
|
key: 0,
|
|
1980
1980
|
class: "fe-ops__error"
|
|
1981
|
-
},
|
|
1981
|
+
}, jo = /* @__PURE__ */ ke({
|
|
1982
1982
|
__name: "PendingOpsTray",
|
|
1983
1983
|
props: {
|
|
1984
1984
|
ops: {},
|
|
@@ -1997,7 +1997,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
1997
1997
|
const U = C.op_type === "copy" ? l("ops.copy") : C.op_type === "move" ? l("ops.move") : l("ops.delete");
|
|
1998
1998
|
return C.status === "pending" ? `${U} (${l("ops.queued")})` : C.status === "running" ? `${U} ${C.progress_done}/${C.progress_total}` : C.status === "done" ? `${U} ${l("ops.done")} (${C.progress_total})` : C.status === "error" ? `${U} ${l("ops.error")}` : U;
|
|
1999
1999
|
}
|
|
2000
|
-
return (C, U) => o.value.length > 0 ? (r(), Ae(
|
|
2000
|
+
return (C, U) => o.value.length > 0 ? (r(), Ae(Ka, {
|
|
2001
2001
|
key: 0,
|
|
2002
2002
|
name: "fe-ops-slide",
|
|
2003
2003
|
tag: "div",
|
|
@@ -2010,35 +2010,35 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
2010
2010
|
key: O.id,
|
|
2011
2011
|
class: fe(["fe-ops__item", f(O)])
|
|
2012
2012
|
}, [
|
|
2013
|
-
n("div",
|
|
2013
|
+
n("div", No, [
|
|
2014
2014
|
n("span", {
|
|
2015
2015
|
class: "fe-ops__title",
|
|
2016
2016
|
title: O.target_path || O.source_dir || ""
|
|
2017
|
-
}, i(y(O)), 9,
|
|
2017
|
+
}, i(y(O)), 9, Uo),
|
|
2018
2018
|
O.status === "done" || O.status === "error" ? (r(), p("button", {
|
|
2019
2019
|
key: 0,
|
|
2020
2020
|
type: "button",
|
|
2021
2021
|
class: "fe-ops__dismiss",
|
|
2022
2022
|
"aria-label": "Dismiss",
|
|
2023
2023
|
onClick: (N) => u("dismiss", O.id)
|
|
2024
|
-
}, "×", 8,
|
|
2024
|
+
}, "×", 8, Ro)) : W("", !0)
|
|
2025
2025
|
]),
|
|
2026
|
-
n("div",
|
|
2026
|
+
n("div", Fo, [
|
|
2027
2027
|
n("div", {
|
|
2028
2028
|
class: "fe-ops__bar-fill",
|
|
2029
2029
|
style: gt({ width: _(O) + "%" })
|
|
2030
2030
|
}, null, 4)
|
|
2031
2031
|
]),
|
|
2032
|
-
O.status === "error" && O.error_message ? (r(), p("div",
|
|
2032
|
+
O.status === "error" && O.error_message ? (r(), p("div", Ko, i(O.error_message), 1)) : W("", !0)
|
|
2033
2033
|
], 2))), 128))
|
|
2034
2034
|
]),
|
|
2035
2035
|
_: 1
|
|
2036
2036
|
})) : W("", !0);
|
|
2037
2037
|
}
|
|
2038
|
-
}),
|
|
2038
|
+
}), Ho = {
|
|
2039
2039
|
key: 0,
|
|
2040
2040
|
class: "fe-modal__head"
|
|
2041
|
-
},
|
|
2041
|
+
}, Vo = { class: "fe-modal__title" }, Yo = { class: "fe-modal__body" }, Wo = {
|
|
2042
2042
|
key: 1,
|
|
2043
2043
|
class: "fe-modal__actions"
|
|
2044
2044
|
}, vt = /* @__PURE__ */ ke({
|
|
@@ -2096,8 +2096,8 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
2096
2096
|
onClick: y[1] || (y[1] = be(() => {
|
|
2097
2097
|
}, ["stop"]))
|
|
2098
2098
|
}, [
|
|
2099
|
-
s.title && !s.chromeless ? (r(), p("header",
|
|
2100
|
-
n("h2",
|
|
2099
|
+
s.title && !s.chromeless ? (r(), p("header", Ho, [
|
|
2100
|
+
n("h2", Vo, i(s.title), 1),
|
|
2101
2101
|
n("button", {
|
|
2102
2102
|
type: "button",
|
|
2103
2103
|
class: "fe-modal__close",
|
|
@@ -2105,11 +2105,11 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
2105
2105
|
onClick: y[0] || (y[0] = (C) => u("close"))
|
|
2106
2106
|
}, "×")
|
|
2107
2107
|
])) : W("", !0),
|
|
2108
|
-
n("div",
|
|
2109
|
-
|
|
2108
|
+
n("div", Yo, [
|
|
2109
|
+
Yt(f.$slots, "default")
|
|
2110
2110
|
]),
|
|
2111
|
-
f.$slots.actions && !s.chromeless ? (r(), p("footer",
|
|
2112
|
-
|
|
2111
|
+
f.$slots.actions && !s.chromeless ? (r(), p("footer", Wo, [
|
|
2112
|
+
Yt(f.$slots, "actions")
|
|
2113
2113
|
])) : W("", !0)
|
|
2114
2114
|
], 2)
|
|
2115
2115
|
], 2)) : W("", !0)
|
|
@@ -2117,10 +2117,10 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
2117
2117
|
_: 3
|
|
2118
2118
|
}));
|
|
2119
2119
|
}
|
|
2120
|
-
}),
|
|
2120
|
+
}), Go = ["placeholder", "onKeydown"], Jo = {
|
|
2121
2121
|
key: 0,
|
|
2122
2122
|
class: "fe-form__error"
|
|
2123
|
-
},
|
|
2123
|
+
}, qo = /* @__PURE__ */ ke({
|
|
2124
2124
|
__name: "NewFolderModal",
|
|
2125
2125
|
props: {
|
|
2126
2126
|
open: { type: Boolean },
|
|
@@ -2172,17 +2172,17 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
2172
2172
|
class: "fe-input",
|
|
2173
2173
|
placeholder: F(l)("modal.newfolder.placeholder"),
|
|
2174
2174
|
autocomplete: "off",
|
|
2175
|
-
onKeydown:
|
|
2176
|
-
}, null, 40,
|
|
2175
|
+
onKeydown: qe(be(f, ["prevent"]), ["enter"])
|
|
2176
|
+
}, null, 40, Go), [
|
|
2177
2177
|
[Be, o.value]
|
|
2178
2178
|
]),
|
|
2179
|
-
_.value ? (r(), p("p",
|
|
2179
|
+
_.value ? (r(), p("p", Jo, i(_.value), 1)) : W("", !0)
|
|
2180
2180
|
], 32)
|
|
2181
2181
|
]),
|
|
2182
2182
|
_: 1
|
|
2183
2183
|
}, 8, ["open", "title"]));
|
|
2184
2184
|
}
|
|
2185
|
-
}),
|
|
2185
|
+
}), Xo = ["onKeydown"], Qo = /* @__PURE__ */ ke({
|
|
2186
2186
|
__name: "RenameModal",
|
|
2187
2187
|
props: {
|
|
2188
2188
|
open: { type: Boolean },
|
|
@@ -2229,8 +2229,8 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
2229
2229
|
type: "text",
|
|
2230
2230
|
class: "fe-input",
|
|
2231
2231
|
autocomplete: "off",
|
|
2232
|
-
onKeydown:
|
|
2233
|
-
}, null, 40,
|
|
2232
|
+
onKeydown: qe(be(_, ["prevent"]), ["enter"])
|
|
2233
|
+
}, null, 40, Xo), [
|
|
2234
2234
|
[Be, o.value]
|
|
2235
2235
|
])
|
|
2236
2236
|
], 32)
|
|
@@ -2238,7 +2238,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
2238
2238
|
_: 1
|
|
2239
2239
|
}, 8, ["open", "title"]));
|
|
2240
2240
|
}
|
|
2241
|
-
}),
|
|
2241
|
+
}), Zo = /* @__PURE__ */ ke({
|
|
2242
2242
|
__name: "DeleteConfirmModal",
|
|
2243
2243
|
props: {
|
|
2244
2244
|
open: { type: Boolean },
|
|
@@ -2272,13 +2272,13 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
2272
2272
|
_: 1
|
|
2273
2273
|
}, 8, ["open", "title"]));
|
|
2274
2274
|
}
|
|
2275
|
-
}),
|
|
2275
|
+
}), es = { class: "fe-form__row" }, ts = { class: "fe-form__row fe-form__row--stack" }, as = { class: "fe-form__row fe-form__row--stack" }, ns = {
|
|
2276
2276
|
key: 1,
|
|
2277
2277
|
class: "fe-share-result"
|
|
2278
|
-
},
|
|
2278
|
+
}, os = { class: "fe-share-result__row" }, ss = { class: "fe-share-result__copy" }, rs = ["value"], ls = {
|
|
2279
2279
|
key: 0,
|
|
2280
2280
|
class: "fe-share-result__row"
|
|
2281
|
-
},
|
|
2281
|
+
}, is = { class: "fe-share-result__copy" }, cs = ["value"], us = { class: "fe-share-result__row" }, ds = { class: "fe-share-result__copy" }, ps = ["value"], fs = /* @__PURE__ */ ke({
|
|
2282
2282
|
__name: "ShareModal",
|
|
2283
2283
|
props: {
|
|
2284
2284
|
open: { type: Boolean },
|
|
@@ -2333,15 +2333,15 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
2333
2333
|
}, i(F(l)("modal.share.create")), 1))
|
|
2334
2334
|
]),
|
|
2335
2335
|
default: Ee(() => [
|
|
2336
|
-
s.share ? (r(), p("div",
|
|
2337
|
-
n("div",
|
|
2336
|
+
s.share ? (r(), p("div", ns, [
|
|
2337
|
+
n("div", os, [
|
|
2338
2338
|
M[8] || (M[8] = n("label", null, "Link", -1)),
|
|
2339
|
-
n("div",
|
|
2339
|
+
n("div", ss, [
|
|
2340
2340
|
n("input", {
|
|
2341
2341
|
value: s.share.url,
|
|
2342
2342
|
readonly: "",
|
|
2343
2343
|
class: "fe-input"
|
|
2344
|
-
}, null, 8,
|
|
2344
|
+
}, null, 8, rs),
|
|
2345
2345
|
n("button", {
|
|
2346
2346
|
type: "button",
|
|
2347
2347
|
class: "fe-btn",
|
|
@@ -2349,14 +2349,14 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
2349
2349
|
}, i(F(l)("modal.share.copy")), 1)
|
|
2350
2350
|
])
|
|
2351
2351
|
]),
|
|
2352
|
-
s.share.password_pin ? (r(), p("div",
|
|
2352
|
+
s.share.password_pin ? (r(), p("div", ls, [
|
|
2353
2353
|
M[9] || (M[9] = n("label", null, "PIN", -1)),
|
|
2354
|
-
n("div",
|
|
2354
|
+
n("div", is, [
|
|
2355
2355
|
n("input", {
|
|
2356
2356
|
value: s.share.password_pin,
|
|
2357
2357
|
readonly: "",
|
|
2358
2358
|
class: "fe-input fe-input--mono"
|
|
2359
|
-
}, null, 8,
|
|
2359
|
+
}, null, 8, cs),
|
|
2360
2360
|
n("button", {
|
|
2361
2361
|
type: "button",
|
|
2362
2362
|
class: "fe-btn",
|
|
@@ -2364,14 +2364,14 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
2364
2364
|
}, i(F(l)("modal.share.copy")), 1)
|
|
2365
2365
|
])
|
|
2366
2366
|
])) : W("", !0),
|
|
2367
|
-
n("div",
|
|
2367
|
+
n("div", us, [
|
|
2368
2368
|
M[10] || (M[10] = n("label", null, "CLI", -1)),
|
|
2369
|
-
n("div",
|
|
2369
|
+
n("div", ds, [
|
|
2370
2370
|
n("input", {
|
|
2371
2371
|
value: O.value,
|
|
2372
2372
|
readonly: "",
|
|
2373
2373
|
class: "fe-input fe-input--mono"
|
|
2374
|
-
}, null, 8,
|
|
2374
|
+
}, null, 8, ps),
|
|
2375
2375
|
n("button", {
|
|
2376
2376
|
type: "button",
|
|
2377
2377
|
class: "fe-btn",
|
|
@@ -2384,7 +2384,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
2384
2384
|
class: "fe-form",
|
|
2385
2385
|
onSubmit: be(y, ["prevent"])
|
|
2386
2386
|
}, [
|
|
2387
|
-
n("label",
|
|
2387
|
+
n("label", es, [
|
|
2388
2388
|
ye(n("input", {
|
|
2389
2389
|
"onUpdate:modelValue": M[0] || (M[0] = ($) => o.value = $),
|
|
2390
2390
|
type: "checkbox"
|
|
@@ -2393,7 +2393,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
2393
2393
|
]),
|
|
2394
2394
|
n("span", null, i(F(l)("modal.share.pin")), 1)
|
|
2395
2395
|
]),
|
|
2396
|
-
n("label",
|
|
2396
|
+
n("label", ts, [
|
|
2397
2397
|
n("span", null, i(F(l)("modal.share.expires")), 1),
|
|
2398
2398
|
ye(n("input", {
|
|
2399
2399
|
"onUpdate:modelValue": M[1] || (M[1] = ($) => _.value = $),
|
|
@@ -2403,7 +2403,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
2403
2403
|
[Be, _.value]
|
|
2404
2404
|
])
|
|
2405
2405
|
]),
|
|
2406
|
-
n("label",
|
|
2406
|
+
n("label", as, [
|
|
2407
2407
|
n("span", null, i(F(l)("modal.share.max_downloads")), 1),
|
|
2408
2408
|
ye(n("input", {
|
|
2409
2409
|
"onUpdate:modelValue": M[2] || (M[2] = ($) => f.value = $),
|
|
@@ -2419,64 +2419,64 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
2419
2419
|
_: 1
|
|
2420
2420
|
}, 8, ["open", "title"]));
|
|
2421
2421
|
}
|
|
2422
|
-
}),
|
|
2422
|
+
}), vs = {
|
|
2423
2423
|
key: 0,
|
|
2424
2424
|
class: "fe-preview"
|
|
2425
|
-
},
|
|
2425
|
+
}, ms = ["src", "alt"], hs = ["src"], ys = ["src"], bs = ["data"], _s = { class: "fe-preview__fallback" }, ws = ["href"], gs = {
|
|
2426
2426
|
key: 0,
|
|
2427
2427
|
class: "fe-preview__fallback"
|
|
2428
|
-
},
|
|
2428
|
+
}, ks = {
|
|
2429
2429
|
key: 1,
|
|
2430
2430
|
class: "fe-preview__fallback"
|
|
2431
|
-
},
|
|
2431
|
+
}, xs = ["href"], $s = {
|
|
2432
2432
|
key: 2,
|
|
2433
2433
|
class: "fe-preview__md-split"
|
|
2434
|
-
},
|
|
2434
|
+
}, Cs = { class: "fe-preview__md-split-bar" }, Ss = {
|
|
2435
2435
|
key: 0,
|
|
2436
2436
|
class: "fe-preview__md-split-error"
|
|
2437
|
-
},
|
|
2437
|
+
}, Ts = ["disabled"], Es = { class: "fe-preview__md-split-body" }, Ps = ["onKeydown"], Ds = ["innerHTML"], As = {
|
|
2438
2438
|
key: 3,
|
|
2439
2439
|
class: "fe-preview__fallback"
|
|
2440
|
-
},
|
|
2440
|
+
}, Os = ["href"], Ms = ["innerHTML"], Bs = {
|
|
2441
2441
|
key: 5,
|
|
2442
2442
|
class: "fe-preview__pre"
|
|
2443
|
-
},
|
|
2443
|
+
}, Is = {
|
|
2444
2444
|
key: 0,
|
|
2445
2445
|
class: "fe-preview__fallback"
|
|
2446
|
-
},
|
|
2446
|
+
}, zs = ["href"], Ls = {
|
|
2447
2447
|
key: 1,
|
|
2448
2448
|
class: "fe-preview__fallback"
|
|
2449
|
-
},
|
|
2449
|
+
}, Ns = {
|
|
2450
2450
|
key: 0,
|
|
2451
2451
|
class: "fe-preview__fallback"
|
|
2452
|
-
},
|
|
2452
|
+
}, Us = {
|
|
2453
2453
|
key: 1,
|
|
2454
2454
|
class: "fe-preview__fallback"
|
|
2455
|
-
},
|
|
2455
|
+
}, Rs = ["href"], Fs = {
|
|
2456
2456
|
key: 2,
|
|
2457
2457
|
class: "fe-preview__fallback"
|
|
2458
|
-
},
|
|
2458
|
+
}, Ks = ["href"], js = {
|
|
2459
2459
|
key: 3,
|
|
2460
2460
|
class: "fe-preview__code-wrap"
|
|
2461
|
-
},
|
|
2461
|
+
}, Hs = { class: "fe-preview__code-toolbar" }, Vs = { class: "fe-preview__code-lang" }, Ys = {
|
|
2462
2462
|
key: 0,
|
|
2463
2463
|
class: "fe-preview__code-status"
|
|
2464
|
-
},
|
|
2464
|
+
}, Ws = {
|
|
2465
2465
|
key: 1,
|
|
2466
2466
|
class: "fe-preview__code-status fe-preview__code-status--ok"
|
|
2467
|
-
},
|
|
2467
|
+
}, Gs = ["title"], Js = {
|
|
2468
2468
|
key: 3,
|
|
2469
2469
|
class: "fe-preview__code-status"
|
|
2470
|
-
},
|
|
2470
|
+
}, qs = ["disabled"], Xs = {
|
|
2471
2471
|
key: 0,
|
|
2472
2472
|
class: "fe-preview__pre fe-preview__code hljs"
|
|
2473
|
-
},
|
|
2473
|
+
}, Qs = ["innerHTML"], Zs = ["data-lang"], er = {
|
|
2474
2474
|
key: 0,
|
|
2475
2475
|
class: "fe-preview__fallback"
|
|
2476
|
-
},
|
|
2476
|
+
}, tr = ["href"], ar = {
|
|
2477
2477
|
key: 8,
|
|
2478
2478
|
class: "fe-preview__fallback"
|
|
2479
|
-
},
|
|
2479
|
+
}, nr = ["href"], or = ["href"], St = 1e6, qt = "fe-onlyoffice-api-js", sr = /* @__PURE__ */ ke({
|
|
2480
2480
|
__name: "PreviewModal",
|
|
2481
2481
|
props: {
|
|
2482
2482
|
open: { type: Boolean },
|
|
@@ -2558,28 +2558,28 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
2558
2558
|
diff: "diff",
|
|
2559
2559
|
patch: "diff"
|
|
2560
2560
|
}, U = ["txt", "log"], O = ["docx", "doc", "xlsx", "xls", "pptx", "ppt", "odt", "ods", "odp", "rtf"], N = {
|
|
2561
|
-
glb: () => import("./Viewer3D-
|
|
2562
|
-
gltf: () => import("./Viewer3D-
|
|
2563
|
-
obj: () => import("./Viewer3D-
|
|
2564
|
-
stl: () => import("./Viewer3D-
|
|
2565
|
-
fbx: () => import("./Viewer3D-
|
|
2566
|
-
"3ds": () => import("./Viewer3D-
|
|
2567
|
-
epub: () => import("./EpubViewer
|
|
2568
|
-
mmd: () => import("./MermaidViewer-
|
|
2569
|
-
mermaid: () => import("./MermaidViewer-
|
|
2570
|
-
drawio: () => import("./DrawioViewer-
|
|
2571
|
-
dio: () => import("./DrawioViewer-
|
|
2572
|
-
tif: () => import("./TiffViewer-
|
|
2573
|
-
tiff: () => import("./TiffViewer-
|
|
2574
|
-
psd: () => import("./PsdViewer-
|
|
2561
|
+
glb: () => import("./Viewer3D-B_AkV4dl.js"),
|
|
2562
|
+
gltf: () => import("./Viewer3D-B_AkV4dl.js"),
|
|
2563
|
+
obj: () => import("./Viewer3D-B_AkV4dl.js"),
|
|
2564
|
+
stl: () => import("./Viewer3D-B_AkV4dl.js"),
|
|
2565
|
+
fbx: () => import("./Viewer3D-B_AkV4dl.js"),
|
|
2566
|
+
"3ds": () => import("./Viewer3D-B_AkV4dl.js"),
|
|
2567
|
+
epub: () => import("./EpubViewer--u3zyU0t.js"),
|
|
2568
|
+
mmd: () => import("./MermaidViewer-C5Dc_ZRO.js"),
|
|
2569
|
+
mermaid: () => import("./MermaidViewer-C5Dc_ZRO.js"),
|
|
2570
|
+
drawio: () => import("./DrawioViewer-BEP_mcp4.js"),
|
|
2571
|
+
dio: () => import("./DrawioViewer-BEP_mcp4.js"),
|
|
2572
|
+
tif: () => import("./TiffViewer-CRYsKUiy.js"),
|
|
2573
|
+
tiff: () => import("./TiffViewer-CRYsKUiy.js"),
|
|
2574
|
+
psd: () => import("./PsdViewer-CmiGJBrt.js"),
|
|
2575
2575
|
// PDF deliberately uses the native browser viewer (`kind === 'pdf'`
|
|
2576
2576
|
// branch in the template). PdfViewer.vue still exists for callers
|
|
2577
2577
|
// that want the rich custom UI but the SFC default keeps things
|
|
2578
2578
|
// minimal — the browser already paints search/zoom/page UI for free.
|
|
2579
|
-
ipynb: () => import("./IpynbViewer-
|
|
2580
|
-
csv: () => import("./CsvViewer-
|
|
2581
|
-
tsv: () => import("./CsvViewer-
|
|
2582
|
-
zip: () => import("./ArchiveViewer-
|
|
2579
|
+
ipynb: () => import("./IpynbViewer-BYFy5ikz.js"),
|
|
2580
|
+
csv: () => import("./CsvViewer-_E_K8vhx.js"),
|
|
2581
|
+
tsv: () => import("./CsvViewer-_E_K8vhx.js"),
|
|
2582
|
+
zip: () => import("./ArchiveViewer-Dt8KlYQy.js")
|
|
2583
2583
|
}, M = Q(() => {
|
|
2584
2584
|
const B = o(e.file);
|
|
2585
2585
|
if (!B) return "other";
|
|
@@ -2589,7 +2589,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
2589
2589
|
if (B === "pdf") return "pdf";
|
|
2590
2590
|
const m = e.openMode !== "view";
|
|
2591
2591
|
return B === "md" || B === "markdown" ? "markdown" : B in C ? "code" : B in N ? "viewer" : O.includes(B) ? "office" : U.includes(B) ? m ? "code" : "text" : "other";
|
|
2592
|
-
}), $ =
|
|
2592
|
+
}), $ = ja(null), k = h(null), z = h(!1);
|
|
2593
2593
|
async function R(B) {
|
|
2594
2594
|
$.value = null, k.value = null;
|
|
2595
2595
|
const m = N[B];
|
|
@@ -2745,12 +2745,12 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
2745
2745
|
});
|
|
2746
2746
|
if (!I.ok)
|
|
2747
2747
|
throw new Error(`${I.status} ${I.statusText}`);
|
|
2748
|
-
if (Number(I.headers.get("content-length") || "0") >
|
|
2748
|
+
if (Number(I.headers.get("content-length") || "0") > St) {
|
|
2749
2749
|
ve.value = !0;
|
|
2750
2750
|
return;
|
|
2751
2751
|
}
|
|
2752
2752
|
const ee = await I.text();
|
|
2753
|
-
ee.length >
|
|
2753
|
+
ee.length > St ? (ve.value = !0, Z.value = ee.slice(0, St)) : Z.value = ee;
|
|
2754
2754
|
} catch (m) {
|
|
2755
2755
|
ae.value = m instanceof Error ? m.message : String(m);
|
|
2756
2756
|
} finally {
|
|
@@ -2806,8 +2806,8 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
2806
2806
|
}
|
|
2807
2807
|
if (!I) continue;
|
|
2808
2808
|
try {
|
|
2809
|
-
const pe = `filex-md-mermaid-${Math.random().toString(36).slice(2)}`, { svg:
|
|
2810
|
-
rt.className = "fe-preview__md-mermaid", rt.innerHTML =
|
|
2809
|
+
const pe = `filex-md-mermaid-${Math.random().toString(36).slice(2)}`, { svg: Qe } = await I.render(pe, H.textContent || ""), rt = document.createElement("div");
|
|
2810
|
+
rt.className = "fe-preview__md-mermaid", rt.innerHTML = Qe, (T = H.parentElement) == null || T.replaceWith(rt);
|
|
2811
2811
|
} catch {
|
|
2812
2812
|
}
|
|
2813
2813
|
} else if (Me) {
|
|
@@ -2826,8 +2826,8 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
2826
2826
|
const pe = te.renderToString(H.textContent || "", {
|
|
2827
2827
|
displayMode: !0,
|
|
2828
2828
|
throwOnError: !1
|
|
2829
|
-
}),
|
|
2830
|
-
|
|
2829
|
+
}), Qe = document.createElement("div");
|
|
2830
|
+
Qe.className = "fe-preview__md-math", Qe.innerHTML = pe, (x = H.parentElement) == null || x.replaceWith(Qe);
|
|
2831
2831
|
} catch {
|
|
2832
2832
|
}
|
|
2833
2833
|
}
|
|
@@ -2836,7 +2836,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
2836
2836
|
const xe = h("");
|
|
2837
2837
|
async function P(B, m) {
|
|
2838
2838
|
try {
|
|
2839
|
-
const I = await
|
|
2839
|
+
const I = await Qt();
|
|
2840
2840
|
if (!I) {
|
|
2841
2841
|
xe.value = "";
|
|
2842
2842
|
return;
|
|
@@ -2910,7 +2910,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
2910
2910
|
}
|
|
2911
2911
|
async function et(B, m) {
|
|
2912
2912
|
var te;
|
|
2913
|
-
const I = await
|
|
2913
|
+
const I = await Et();
|
|
2914
2914
|
if (!I || !L.value) return !1;
|
|
2915
2915
|
try {
|
|
2916
2916
|
we();
|
|
@@ -2977,7 +2977,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
2977
2977
|
return;
|
|
2978
2978
|
}
|
|
2979
2979
|
const te = C[o(e.file)] || "";
|
|
2980
|
-
|
|
2980
|
+
Zt() ? (await new Promise((x) => setTimeout(x, 0)), await et(Z.value, o(e.file)) || await P(Z.value, te)) : (I === "code" && await P(Z.value, te), Et().then(async (T) => {
|
|
2981
2981
|
T && e.open && (await new Promise((x) => setTimeout(x, 0)), await et(Z.value, o(e.file)));
|
|
2982
2982
|
}));
|
|
2983
2983
|
} else I === "office" && (await new Promise((te) => setTimeout(te, 0)), await Ge());
|
|
@@ -3021,7 +3021,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
3021
3021
|
if (!m.ok)
|
|
3022
3022
|
throw new Error(`Config fetch ${m.status}: ${(await m.text()).slice(0, 200)}`);
|
|
3023
3023
|
const { config: I, documentServerUrl: te } = await m.json();
|
|
3024
|
-
await
|
|
3024
|
+
await Xe(te), Je();
|
|
3025
3025
|
const ee = "fe-onlyoffice-mount";
|
|
3026
3026
|
Ve.value.id = ee, I.events = {
|
|
3027
3027
|
onError: (x) => {
|
|
@@ -3066,20 +3066,20 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
3066
3066
|
return "OnlyOffice error";
|
|
3067
3067
|
}
|
|
3068
3068
|
}
|
|
3069
|
-
function
|
|
3069
|
+
function Xe(B) {
|
|
3070
3070
|
return new Promise((m, I) => {
|
|
3071
3071
|
var T;
|
|
3072
3072
|
if ((T = window.DocsAPI) != null && T.DocEditor) {
|
|
3073
3073
|
m();
|
|
3074
3074
|
return;
|
|
3075
3075
|
}
|
|
3076
|
-
const te = document.getElementById(
|
|
3076
|
+
const te = document.getElementById(qt);
|
|
3077
3077
|
if (te) {
|
|
3078
3078
|
te.addEventListener("load", () => m()), te.addEventListener("error", () => I(new Error("OnlyOffice api.js load failed")));
|
|
3079
3079
|
return;
|
|
3080
3080
|
}
|
|
3081
3081
|
const ee = document.createElement("script");
|
|
3082
|
-
ee.id =
|
|
3082
|
+
ee.id = qt, ee.src = `${B.replace(/\/$/, "")}/web-apps/apps/api/documents/api.js`, ee.async = !0, ee.onload = () => m(), ee.onerror = () => I(new Error("OnlyOffice api.js load failed")), document.head.appendChild(ee);
|
|
3083
3083
|
});
|
|
3084
3084
|
}
|
|
3085
3085
|
return (B, m) => {
|
|
@@ -3109,7 +3109,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
3109
3109
|
key: 2,
|
|
3110
3110
|
href: j.value,
|
|
3111
3111
|
class: "fe-btn"
|
|
3112
|
-
}, i(F(l)("viewer.download")), 9,
|
|
3112
|
+
}, i(F(l)("viewer.download")), 9, or)) : W("", !0),
|
|
3113
3113
|
n("button", {
|
|
3114
3114
|
type: "button",
|
|
3115
3115
|
class: "fe-btn",
|
|
@@ -3117,30 +3117,30 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
3117
3117
|
}, "Kapat")
|
|
3118
3118
|
]),
|
|
3119
3119
|
default: Ee(() => [
|
|
3120
|
-
s.file ? (r(), p("div",
|
|
3120
|
+
s.file ? (r(), p("div", vs, [
|
|
3121
3121
|
M.value === "image" ? (r(), p("img", {
|
|
3122
3122
|
key: 0,
|
|
3123
3123
|
src: K.value,
|
|
3124
3124
|
alt: s.file.basename,
|
|
3125
3125
|
class: "fe-preview__image"
|
|
3126
|
-
}, null, 8,
|
|
3126
|
+
}, null, 8, ms)) : M.value === "video" ? (r(), p("video", {
|
|
3127
3127
|
key: 1,
|
|
3128
3128
|
src: K.value,
|
|
3129
3129
|
controls: "",
|
|
3130
3130
|
preload: "metadata",
|
|
3131
3131
|
class: "fe-preview__video"
|
|
3132
|
-
}, null, 8,
|
|
3132
|
+
}, null, 8, hs)) : M.value === "audio" ? (r(), p("audio", {
|
|
3133
3133
|
key: 2,
|
|
3134
3134
|
src: K.value,
|
|
3135
3135
|
controls: "",
|
|
3136
3136
|
class: "fe-preview__audio"
|
|
3137
|
-
}, null, 8,
|
|
3137
|
+
}, null, 8, ys)) : M.value === "pdf" ? (r(), p("object", {
|
|
3138
3138
|
key: 3,
|
|
3139
3139
|
data: K.value,
|
|
3140
3140
|
type: "application/pdf",
|
|
3141
3141
|
class: "fe-preview__iframe"
|
|
3142
3142
|
}, [
|
|
3143
|
-
n("div",
|
|
3143
|
+
n("div", _s, [
|
|
3144
3144
|
m[3] || (m[3] = n("span", { class: "fe-preview__fallback-icon" }, "📕", -1)),
|
|
3145
3145
|
m[4] || (m[4] = n("p", null, "Tarayıcı PDF'i inline açamadı.", -1)),
|
|
3146
3146
|
n("a", {
|
|
@@ -3148,38 +3148,38 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
3148
3148
|
class: "fe-btn fe-btn--primary",
|
|
3149
3149
|
target: "_blank",
|
|
3150
3150
|
rel: "noopener"
|
|
3151
|
-
}, "PDF'i Yeni Sekmede Aç", 8,
|
|
3151
|
+
}, "PDF'i Yeni Sekmede Aç", 8, ws)
|
|
3152
3152
|
])
|
|
3153
|
-
], 8,
|
|
3154
|
-
ie.value ? (r(), p("div",
|
|
3153
|
+
], 8, bs)) : M.value === "markdown" ? (r(), p(le, { key: 4 }, [
|
|
3154
|
+
ie.value ? (r(), p("div", gs, i(F(l)("viewer.loading")), 1)) : ve.value ? (r(), p("div", ks, [
|
|
3155
3155
|
m[5] || (m[5] = ze(" Dosya çok büyük (>1 MB). ", -1)),
|
|
3156
3156
|
n("a", {
|
|
3157
3157
|
href: j.value,
|
|
3158
3158
|
class: "fe-btn"
|
|
3159
|
-
}, i(F(l)("viewer.download")), 9,
|
|
3160
|
-
])) : s.openMode === "edit" && s.saveTextEndpoint ? (r(), p("div",
|
|
3161
|
-
n("div",
|
|
3159
|
+
}, i(F(l)("viewer.download")), 9, xs)
|
|
3160
|
+
])) : s.openMode === "edit" && s.saveTextEndpoint ? (r(), p("div", $s, [
|
|
3161
|
+
n("div", Cs, [
|
|
3162
3162
|
m[6] || (m[6] = n("span", { class: "fe-preview__md-split-label" }, "MARKDOWN", -1)),
|
|
3163
|
-
ae.value ? (r(), p("span",
|
|
3163
|
+
ae.value ? (r(), p("span", Ss, i(ae.value), 1)) : W("", !0),
|
|
3164
3164
|
n("button", {
|
|
3165
3165
|
type: "button",
|
|
3166
3166
|
class: "fe-btn fe-btn--primary",
|
|
3167
3167
|
disabled: !ce.value || ne.value,
|
|
3168
3168
|
onClick: Ne
|
|
3169
|
-
}, i(ne.value ? "Kaydediliyor…" : ce.value ? "Kaydet (Ctrl+S)" : "Kaydedildi"), 9,
|
|
3169
|
+
}, i(ne.value ? "Kaydediliyor…" : ce.value ? "Kaydet (Ctrl+S)" : "Kaydedildi"), 9, Ts)
|
|
3170
3170
|
]),
|
|
3171
|
-
n("div",
|
|
3171
|
+
n("div", Es, [
|
|
3172
3172
|
ye(n("textarea", {
|
|
3173
3173
|
class: "fe-preview__md-split-input",
|
|
3174
3174
|
"onUpdate:modelValue": m[0] || (m[0] = (te) => Z.value = te),
|
|
3175
3175
|
onInput: De,
|
|
3176
3176
|
onKeydown: [
|
|
3177
|
-
|
|
3178
|
-
|
|
3177
|
+
qe(be(Ne, ["ctrl", "prevent"]), ["s"]),
|
|
3178
|
+
qe(be(Ne, ["meta", "prevent"]), ["s"])
|
|
3179
3179
|
],
|
|
3180
3180
|
spellcheck: "false",
|
|
3181
3181
|
placeholder: "# Markdown buraya…"
|
|
3182
|
-
}, null, 40,
|
|
3182
|
+
}, null, 40, Ps), [
|
|
3183
3183
|
[Be, Z.value]
|
|
3184
3184
|
]),
|
|
3185
3185
|
n("div", {
|
|
@@ -3187,104 +3187,104 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
3187
3187
|
ref: Ie,
|
|
3188
3188
|
class: "fe-preview__md-split-output fe-preview__md",
|
|
3189
3189
|
innerHTML: Se.value
|
|
3190
|
-
}, null, 8,
|
|
3190
|
+
}, null, 8, Ds)
|
|
3191
3191
|
])
|
|
3192
|
-
])) : ae.value ? (r(), p("div",
|
|
3192
|
+
])) : ae.value ? (r(), p("div", As, [
|
|
3193
3193
|
n("p", null, i(ae.value), 1),
|
|
3194
3194
|
n("a", {
|
|
3195
3195
|
href: j.value,
|
|
3196
3196
|
class: "fe-btn fe-btn--primary"
|
|
3197
|
-
}, i(F(l)("viewer.download")), 9,
|
|
3197
|
+
}, i(F(l)("viewer.download")), 9, Os)
|
|
3198
3198
|
])) : Se.value ? (r(), p("div", {
|
|
3199
3199
|
key: 4,
|
|
3200
3200
|
ref_key: "markdownEl",
|
|
3201
3201
|
ref: Ie,
|
|
3202
3202
|
class: "fe-preview__md",
|
|
3203
3203
|
innerHTML: Se.value
|
|
3204
|
-
}, null, 8,
|
|
3204
|
+
}, null, 8, Ms)) : (r(), p("pre", Bs, i(Z.value), 1))
|
|
3205
3205
|
], 64)) : M.value === "viewer" ? (r(), p(le, { key: 5 }, [
|
|
3206
|
-
k.value && !z.value ? (r(), p("div",
|
|
3206
|
+
k.value && !z.value ? (r(), p("div", Is, [
|
|
3207
3207
|
m[7] || (m[7] = n("span", { class: "fe-preview__fallback-icon" }, "⚠️", -1)),
|
|
3208
3208
|
n("p", null, i(k.value), 1),
|
|
3209
3209
|
n("a", {
|
|
3210
3210
|
href: j.value,
|
|
3211
3211
|
class: "fe-btn fe-btn--primary"
|
|
3212
|
-
}, i(F(l)("viewer.download")), 9,
|
|
3213
|
-
])) : $.value ? (r(), Ae(
|
|
3212
|
+
}, i(F(l)("viewer.download")), 9, zs)
|
|
3213
|
+
])) : $.value ? (r(), Ae(Ha($.value), Va({ key: 2 }, J.value, {
|
|
3214
3214
|
class: "fe-preview__viewer",
|
|
3215
3215
|
onFallback: A
|
|
3216
|
-
}), null, 16)) : (r(), p("div",
|
|
3216
|
+
}), null, 16)) : (r(), p("div", Ls, [
|
|
3217
3217
|
m[8] || (m[8] = n("span", { class: "fe-preview__fallback-icon" }, "⏳", -1)),
|
|
3218
3218
|
n("p", null, i(F(l)("viewer.loading")), 1)
|
|
3219
3219
|
]))
|
|
3220
3220
|
], 64)) : M.value === "code" || M.value === "text" ? (r(), p(le, { key: 6 }, [
|
|
3221
|
-
ie.value ? (r(), p("div",
|
|
3221
|
+
ie.value ? (r(), p("div", Ns, i(F(l)("viewer.loading")), 1)) : ve.value ? (r(), p("div", Us, [
|
|
3222
3222
|
m[9] || (m[9] = ze(" Dosya çok büyük (>1 MB). ", -1)),
|
|
3223
3223
|
n("a", {
|
|
3224
3224
|
href: j.value,
|
|
3225
3225
|
class: "fe-btn"
|
|
3226
|
-
}, i(F(l)("viewer.download")), 9,
|
|
3227
|
-
])) : ae.value ? (r(), p("div",
|
|
3226
|
+
}, i(F(l)("viewer.download")), 9, Rs)
|
|
3227
|
+
])) : ae.value ? (r(), p("div", Fs, [
|
|
3228
3228
|
n("p", null, i(ae.value), 1),
|
|
3229
3229
|
n("a", {
|
|
3230
3230
|
href: j.value,
|
|
3231
3231
|
class: "fe-btn fe-btn--primary"
|
|
3232
|
-
}, i(F(l)("viewer.download")), 9,
|
|
3233
|
-
])) : (r(), p("div",
|
|
3234
|
-
n("div",
|
|
3235
|
-
n("span",
|
|
3236
|
-
!re.value && xe.value ? (r(), p("span",
|
|
3237
|
-
ge.value ? (r(), p("span",
|
|
3232
|
+
}, i(F(l)("viewer.download")), 9, Ks)
|
|
3233
|
+
])) : (r(), p("div", js, [
|
|
3234
|
+
n("div", Hs, [
|
|
3235
|
+
n("span", Vs, i(Fe.value), 1),
|
|
3236
|
+
!re.value && xe.value ? (r(), p("span", Ys, i(s.saveTextEndpoint ? "Editör yükleniyor…" : "Salt okunur"), 1)) : W("", !0),
|
|
3237
|
+
ge.value ? (r(), p("span", Ws, "✓ Kaydedildi")) : W("", !0),
|
|
3238
3238
|
oe.value ? (r(), p("span", {
|
|
3239
3239
|
key: 2,
|
|
3240
3240
|
class: "fe-preview__code-status fe-preview__code-status--err",
|
|
3241
3241
|
title: oe.value
|
|
3242
|
-
}, "✗ Hata", 8,
|
|
3243
|
-
s.openMode === "view" ? (r(), p("span",
|
|
3242
|
+
}, "✗ Hata", 8, Gs)) : W("", !0),
|
|
3243
|
+
s.openMode === "view" ? (r(), p("span", Js, "Salt okunur")) : s.saveTextEndpoint && re.value ? (r(), p("button", {
|
|
3244
3244
|
key: 4,
|
|
3245
3245
|
type: "button",
|
|
3246
3246
|
class: "fe-btn fe-btn--primary",
|
|
3247
3247
|
disabled: de.value,
|
|
3248
3248
|
onClick: Re
|
|
3249
|
-
}, i(de.value ? "Kaydediliyor…" : "Kaydet (Ctrl+S)"), 9,
|
|
3249
|
+
}, i(de.value ? "Kaydediliyor…" : "Kaydet (Ctrl+S)"), 9, qs)) : W("", !0)
|
|
3250
3250
|
]),
|
|
3251
3251
|
n("div", {
|
|
3252
3252
|
ref_key: "monacoEl",
|
|
3253
3253
|
ref: L,
|
|
3254
3254
|
class: fe(["fe-preview__code-editor", { "is-hidden": !re.value }])
|
|
3255
3255
|
}, null, 2),
|
|
3256
|
-
!re.value && xe.value ? (r(), p("pre",
|
|
3256
|
+
!re.value && xe.value ? (r(), p("pre", Xs, [
|
|
3257
3257
|
n("code", {
|
|
3258
3258
|
class: fe(`language-${Fe.value}`),
|
|
3259
3259
|
innerHTML: xe.value
|
|
3260
|
-
}, null, 10,
|
|
3260
|
+
}, null, 10, Qs)
|
|
3261
3261
|
])) : !re.value && !xe.value ? (r(), p("pre", {
|
|
3262
3262
|
key: 1,
|
|
3263
3263
|
class: "fe-preview__pre",
|
|
3264
3264
|
"data-lang": Fe.value
|
|
3265
|
-
}, i(Z.value), 9,
|
|
3265
|
+
}, i(Z.value), 9, Zs)) : W("", !0)
|
|
3266
3266
|
]))
|
|
3267
3267
|
], 64)) : M.value === "office" ? (r(), p(le, { key: 7 }, [
|
|
3268
|
-
Ye.value ? (r(), p("div",
|
|
3268
|
+
Ye.value ? (r(), p("div", er, [
|
|
3269
3269
|
m[10] || (m[10] = n("span", { class: "fe-preview__fallback-icon" }, "📄", -1)),
|
|
3270
3270
|
n("p", null, i(Ye.value), 1),
|
|
3271
3271
|
n("a", {
|
|
3272
3272
|
href: j.value,
|
|
3273
3273
|
class: "fe-btn fe-btn--primary"
|
|
3274
|
-
}, "İndir", 8,
|
|
3274
|
+
}, "İndir", 8, tr)
|
|
3275
3275
|
])) : (r(), p("div", {
|
|
3276
3276
|
key: 1,
|
|
3277
3277
|
ref_key: "officeEl",
|
|
3278
3278
|
ref: Ve,
|
|
3279
3279
|
class: "fe-preview__office"
|
|
3280
3280
|
}, null, 512))
|
|
3281
|
-
], 64)) : (r(), p("div",
|
|
3281
|
+
], 64)) : (r(), p("div", ar, [
|
|
3282
3282
|
m[11] || (m[11] = n("span", { class: "fe-preview__fallback-icon" }, "📎", -1)),
|
|
3283
3283
|
m[12] || (m[12] = n("p", null, "Bu dosya tipi için önizleme henüz yok.", -1)),
|
|
3284
3284
|
n("a", {
|
|
3285
3285
|
href: j.value,
|
|
3286
3286
|
class: "fe-btn fe-btn--primary"
|
|
3287
|
-
}, "İndir", 8,
|
|
3287
|
+
}, "İndir", 8, nr)
|
|
3288
3288
|
]))
|
|
3289
3289
|
])) : W("", !0)
|
|
3290
3290
|
]),
|
|
@@ -3292,19 +3292,19 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
3292
3292
|
}, 8, ["open", "title", "chromeless", "theme"]);
|
|
3293
3293
|
};
|
|
3294
3294
|
}
|
|
3295
|
-
}),
|
|
3295
|
+
}), rr = { class: "filex-cv" }, lr = { class: "filex-cv__head" }, ir = {
|
|
3296
3296
|
key: 0,
|
|
3297
3297
|
class: "filex-cv__msg"
|
|
3298
|
-
},
|
|
3298
|
+
}, cr = {
|
|
3299
3299
|
key: 1,
|
|
3300
3300
|
class: "filex-cv__msg filex-cv__ok"
|
|
3301
|
-
},
|
|
3301
|
+
}, ur = { class: "filex-cv__src" }, dr = ["placeholder"], pr = { class: "filex-cv__list" }, fr = ["onClick"], vr = {
|
|
3302
3302
|
key: 0,
|
|
3303
3303
|
class: "filex-cv__empty"
|
|
3304
|
-
},
|
|
3304
|
+
}, mr = {
|
|
3305
3305
|
key: 0,
|
|
3306
3306
|
class: "filex-cv__err"
|
|
3307
|
-
},
|
|
3307
|
+
}, hr = { class: "filex-cv__foot" }, yr = ["disabled"], br = ["src"], _r = /* @__PURE__ */ ke({
|
|
3308
3308
|
__name: "ConvertModal",
|
|
3309
3309
|
props: {
|
|
3310
3310
|
convertUrl: {},
|
|
@@ -3380,22 +3380,22 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
3380
3380
|
class: "filex-cv__bg",
|
|
3381
3381
|
onClick: d[3] || (d[3] = be((S) => u("close"), ["self"]))
|
|
3382
3382
|
}, [
|
|
3383
|
-
n("div",
|
|
3384
|
-
n("header",
|
|
3383
|
+
n("div", rr, [
|
|
3384
|
+
n("header", lr, [
|
|
3385
3385
|
n("h3", null, i(b("convert.title", "Dönüştür")) + " — " + i(s.fileName), 1),
|
|
3386
3386
|
n("button", {
|
|
3387
3387
|
class: "filex-cv__x",
|
|
3388
3388
|
onClick: d[0] || (d[0] = (S) => u("close"))
|
|
3389
3389
|
}, "✕")
|
|
3390
3390
|
]),
|
|
3391
|
-
o.value === "loading" ? (r(), p("div",
|
|
3391
|
+
o.value === "loading" ? (r(), p("div", ir, i(b("convert.loading", "Dönüştürücü yükleniyor…")), 1)) : o.value === "done" ? (r(), p("div", cr, [
|
|
3392
3392
|
n("p", null, "✓ " + i(b("convert.done", "Dönüştürüldü ve klasöre yüklendi.")), 1),
|
|
3393
3393
|
n("button", {
|
|
3394
3394
|
class: "filex-cv__convert",
|
|
3395
3395
|
onClick: d[1] || (d[1] = (S) => u("close"))
|
|
3396
3396
|
}, i(b("convert.close", "Kapat")), 1)
|
|
3397
3397
|
])) : (r(), p(le, { key: 2 }, [
|
|
3398
|
-
n("p",
|
|
3398
|
+
n("p", ur, [
|
|
3399
3399
|
ze(i(b("convert.from", "Kaynak")) + ": ", 1),
|
|
3400
3400
|
n("b", null, i(U.value || "?"), 1)
|
|
3401
3401
|
]),
|
|
@@ -3403,10 +3403,10 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
3403
3403
|
"onUpdate:modelValue": d[2] || (d[2] = (S) => y.value = S),
|
|
3404
3404
|
class: "filex-cv__search",
|
|
3405
3405
|
placeholder: b("convert.searchFmt", "Hedef format ara (pdf, mp4, png…)")
|
|
3406
|
-
}, null, 8,
|
|
3406
|
+
}, null, 8, dr), [
|
|
3407
3407
|
[Be, y.value]
|
|
3408
3408
|
]),
|
|
3409
|
-
n("div",
|
|
3409
|
+
n("div", pr, [
|
|
3410
3410
|
(r(!0), p(le, null, Ce(N.value, (S) => {
|
|
3411
3411
|
var w;
|
|
3412
3412
|
return r(), p("button", {
|
|
@@ -3416,17 +3416,17 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
3416
3416
|
}, [
|
|
3417
3417
|
n("b", null, i((S.ext || S.format).toUpperCase()), 1),
|
|
3418
3418
|
n("small", null, i(S.name), 1)
|
|
3419
|
-
], 10,
|
|
3419
|
+
], 10, fr);
|
|
3420
3420
|
}), 128)),
|
|
3421
|
-
N.value.length === 0 ? (r(), p("div",
|
|
3421
|
+
N.value.length === 0 ? (r(), p("div", vr, i(b("convert.noFmt", "Eşleşen format yok.")), 1)) : W("", !0)
|
|
3422
3422
|
]),
|
|
3423
|
-
_.value ? (r(), p("div",
|
|
3424
|
-
n("footer",
|
|
3423
|
+
_.value ? (r(), p("div", mr, i(_.value), 1)) : W("", !0),
|
|
3424
|
+
n("footer", hr, [
|
|
3425
3425
|
n("button", {
|
|
3426
3426
|
class: "filex-cv__convert",
|
|
3427
3427
|
disabled: !C.value || !O.value || o.value === "converting",
|
|
3428
3428
|
onClick: J
|
|
3429
|
-
}, i(o.value === "converting" ? b("convert.converting", "Dönüştürülüyor…") : b("convert.convert", "Dönüştür")), 9,
|
|
3429
|
+
}, i(o.value === "converting" ? b("convert.converting", "Dönüştürülüyor…") : b("convert.convert", "Dönüştür")), 9, yr)
|
|
3430
3430
|
])
|
|
3431
3431
|
], 64)),
|
|
3432
3432
|
n("iframe", {
|
|
@@ -3435,74 +3435,74 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
3435
3435
|
src: M.value,
|
|
3436
3436
|
class: "filex-cv__frame",
|
|
3437
3437
|
title: "converter"
|
|
3438
|
-
}, null, 8,
|
|
3438
|
+
}, null, 8, br)
|
|
3439
3439
|
])
|
|
3440
3440
|
]));
|
|
3441
3441
|
}
|
|
3442
|
-
}),
|
|
3442
|
+
}), wr = /* @__PURE__ */ ft(_r, [["__scopeId", "data-v-4363f1ac"]]), gr = { class: "fx-perm-modal" }, kr = { class: "fx-perm-head" }, xr = { class: "fx-perm-title" }, $r = {
|
|
3443
3443
|
class: "fx-perm-ico",
|
|
3444
3444
|
"aria-hidden": "true"
|
|
3445
|
-
},
|
|
3445
|
+
}, Cr = { class: "fx-perm-titletext" }, Sr = ["title"], Tr = { class: "fx-perm-subdim" }, Er = { class: "fx-perm-tabs" }, Pr = { class: "fx-perm-body" }, Dr = {
|
|
3446
3446
|
key: 0,
|
|
3447
3447
|
class: "fx-perm-warn"
|
|
3448
|
-
},
|
|
3448
|
+
}, Ar = {
|
|
3449
3449
|
key: 1,
|
|
3450
3450
|
class: "fx-perm-warn"
|
|
3451
|
-
},
|
|
3451
|
+
}, Or = {
|
|
3452
3452
|
key: 2,
|
|
3453
3453
|
class: "fx-perm-muted"
|
|
3454
|
-
},
|
|
3454
|
+
}, Mr = { class: "fx-perm-addcard" }, Br = { class: "fx-perm-add" }, Ir = { class: "fx-perm-emailwrap" }, zr = ["placeholder"], Lr = {
|
|
3455
3455
|
key: 0,
|
|
3456
3456
|
class: "fx-perm-suggest"
|
|
3457
|
-
},
|
|
3457
|
+
}, Nr = ["onMousedown"], Ur = { class: "fx-perm-suggest-av" }, Rr = { class: "fx-perm-suggest-txt" }, Fr = { class: "fx-perm-suggest-name" }, Kr = { class: "fx-perm-suggest-meta" }, jr = ["title"], Hr = ["value"], Vr = ["disabled"], Yr = {
|
|
3458
3458
|
key: 0,
|
|
3459
3459
|
class: "fx-perm-invite"
|
|
3460
|
-
},
|
|
3460
|
+
}, Wr = { class: "fx-perm-muted" }, Gr = { class: "fx-perm-invite-actions" }, Jr = { class: "fx-perm-invite-row" }, qr = { value: "user" }, Xr = { value: "viewer" }, Qr = ["disabled"], Zr = ["disabled"], el = {
|
|
3461
3461
|
key: 1,
|
|
3462
3462
|
class: "fx-perm-notice"
|
|
3463
|
-
},
|
|
3463
|
+
}, tl = {
|
|
3464
3464
|
key: 2,
|
|
3465
3465
|
class: "fx-perm-reveal"
|
|
3466
|
-
},
|
|
3466
|
+
}, al = { class: "fx-perm-section" }, nl = {
|
|
3467
3467
|
key: 0,
|
|
3468
3468
|
class: "fx-perm-empty"
|
|
3469
|
-
},
|
|
3469
|
+
}, ol = { class: "fx-perm-av" }, sl = ["title"], rl = ["value", "onChange"], ll = ["value"], il = ["disabled", "title", "onClick"], cl = { class: "fx-perm-av fx-perm-av--dim" }, ul = ["title"], dl = { class: "fx-perm-badge" }, pl = ["title"], fl = { class: "fx-perm-addcard" }, vl = { class: "fx-perm-share-opts" }, ml = { class: "fx-perm-check" }, hl = { class: "fx-perm-expiry" }, yl = { class: "fx-perm-muted" }, bl = ["value"], _l = ["disabled"], wl = {
|
|
3470
3470
|
key: 0,
|
|
3471
3471
|
class: "fx-perm-warn"
|
|
3472
|
-
},
|
|
3472
|
+
}, gl = {
|
|
3473
3473
|
key: 1,
|
|
3474
3474
|
class: "fx-perm-result"
|
|
3475
|
-
},
|
|
3475
|
+
}, kl = { class: "fx-perm-linkrow" }, xl = ["href"], $l = {
|
|
3476
3476
|
key: 0,
|
|
3477
3477
|
class: "fx-perm-pin"
|
|
3478
|
-
},
|
|
3478
|
+
}, Cl = { class: "fx-perm-mailrow" }, Sl = ["placeholder"], Tl = ["disabled"], El = {
|
|
3479
3479
|
key: 1,
|
|
3480
3480
|
class: "fx-perm-notice"
|
|
3481
|
-
},
|
|
3481
|
+
}, Pl = {
|
|
3482
3482
|
key: 2,
|
|
3483
3483
|
class: "fx-perm-hint"
|
|
3484
|
-
},
|
|
3484
|
+
}, Dl = { class: "fx-perm-section" }, Al = {
|
|
3485
3485
|
key: 0,
|
|
3486
3486
|
class: "fx-perm-empty"
|
|
3487
|
-
},
|
|
3487
|
+
}, Ol = ["title"], Ml = ["onClick"], Bl = ["disabled", "title", "onClick"], Il = {
|
|
3488
3488
|
key: 2,
|
|
3489
3489
|
class: "fx-perm-addcard"
|
|
3490
|
-
},
|
|
3490
|
+
}, zl = { class: "fx-perm-muted fx-perm-dropintro" }, Ll = { class: "fx-perm-share-opts" }, Nl = { class: "fx-perm-check" }, Ul = { class: "fx-perm-expiry" }, Rl = { class: "fx-perm-muted" }, Fl = ["value"], Kl = ["disabled"], jl = {
|
|
3491
3491
|
key: 0,
|
|
3492
3492
|
class: "fx-perm-adv"
|
|
3493
|
-
},
|
|
3493
|
+
}, Hl = { class: "fx-perm-adv-row" }, Vl = { class: "fx-perm-muted" }, Yl = { class: "fx-perm-adv-row" }, Wl = { class: "fx-perm-muted" }, Gl = { class: "fx-perm-adv-row" }, Jl = { class: "fx-perm-muted" }, ql = ["placeholder"], Xl = { class: "fx-perm-check" }, Ql = {
|
|
3494
3494
|
key: 1,
|
|
3495
3495
|
class: "fx-perm-warn"
|
|
3496
|
-
},
|
|
3496
|
+
}, Zl = {
|
|
3497
3497
|
key: 2,
|
|
3498
3498
|
class: "fx-perm-result"
|
|
3499
|
-
},
|
|
3499
|
+
}, ei = { class: "fx-perm-linkrow" }, ti = ["href"], ai = {
|
|
3500
3500
|
key: 0,
|
|
3501
3501
|
class: "fx-perm-pin"
|
|
3502
|
-
},
|
|
3502
|
+
}, ni = { class: "fx-perm-mailrow" }, oi = ["placeholder"], si = ["disabled"], ri = {
|
|
3503
3503
|
key: 1,
|
|
3504
3504
|
class: "fx-perm-notice"
|
|
3505
|
-
},
|
|
3505
|
+
}, li = /* @__PURE__ */ ke({
|
|
3506
3506
|
__name: "PermissionsModal",
|
|
3507
3507
|
props: {
|
|
3508
3508
|
api: {},
|
|
@@ -3690,7 +3690,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
3690
3690
|
G.value = !1;
|
|
3691
3691
|
}
|
|
3692
3692
|
}
|
|
3693
|
-
async function
|
|
3693
|
+
async function Xe() {
|
|
3694
3694
|
var x;
|
|
3695
3695
|
const T = de(ne.value);
|
|
3696
3696
|
if (!T.length) {
|
|
@@ -3793,19 +3793,19 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
3793
3793
|
class: "fx-perm-overlay",
|
|
3794
3794
|
onClick: x[22] || (x[22] = be((D) => u("close"), ["self"]))
|
|
3795
3795
|
}, [
|
|
3796
|
-
n("div",
|
|
3797
|
-
n("header",
|
|
3798
|
-
n("div",
|
|
3799
|
-
n("span",
|
|
3800
|
-
n("div",
|
|
3796
|
+
n("div", gr, [
|
|
3797
|
+
n("header", kr, [
|
|
3798
|
+
n("div", xr, [
|
|
3799
|
+
n("span", $r, i(s.isDir ? "📁" : "📄"), 1),
|
|
3800
|
+
n("div", Cr, [
|
|
3801
3801
|
n("h3", null, i(o("Paylaş / İzinler", "Share / Permissions")), 1),
|
|
3802
3802
|
n("span", {
|
|
3803
3803
|
class: "fx-perm-sub",
|
|
3804
3804
|
title: s.path
|
|
3805
3805
|
}, [
|
|
3806
3806
|
ze(i(_.value.name), 1),
|
|
3807
|
-
n("span",
|
|
3808
|
-
], 8,
|
|
3807
|
+
n("span", Tr, " · " + i(_.value.adapter), 1)
|
|
3808
|
+
], 8, Sr)
|
|
3809
3809
|
])
|
|
3810
3810
|
]),
|
|
3811
3811
|
n("button", {
|
|
@@ -3814,7 +3814,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
3814
3814
|
"aria-label": "close"
|
|
3815
3815
|
}, "✕")
|
|
3816
3816
|
]),
|
|
3817
|
-
n("div",
|
|
3817
|
+
n("div", Er, [
|
|
3818
3818
|
y.value ? (r(), p("button", {
|
|
3819
3819
|
key: 0,
|
|
3820
3820
|
class: fe(["fx-perm-tab", { "is-active": f.value === "perms" }]),
|
|
@@ -3830,14 +3830,14 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
3830
3830
|
onClick: x[3] || (x[3] = (D) => f.value = "drop")
|
|
3831
3831
|
}, i(o("Dosya İste", "Request files")), 3)) : W("", !0)
|
|
3832
3832
|
]),
|
|
3833
|
-
n("div",
|
|
3833
|
+
n("div", Pr, [
|
|
3834
3834
|
f.value === "perms" && y.value ? (r(), p(le, { key: 0 }, [
|
|
3835
|
-
M.value ? W("", !0) : (r(), p("div",
|
|
3836
|
-
U.value ? (r(), p("div",
|
|
3837
|
-
C.value ? (r(), p("div",
|
|
3838
|
-
n("div",
|
|
3839
|
-
n("div",
|
|
3840
|
-
n("div",
|
|
3835
|
+
M.value ? W("", !0) : (r(), p("div", Dr, i(o("Bu diskte RBAC kapalı — izinler yalnızca RBAC açık disklerde geçerli.", "RBAC is off on this storage — grants only apply when RBAC is enabled.")), 1)),
|
|
3836
|
+
U.value ? (r(), p("div", Ar, i(U.value), 1)) : W("", !0),
|
|
3837
|
+
C.value ? (r(), p("div", Or, i(o("Yükleniyor…", "Loading…")), 1)) : (r(), p(le, { key: 3 }, [
|
|
3838
|
+
n("div", Mr, [
|
|
3839
|
+
n("div", Br, [
|
|
3840
|
+
n("div", Ir, [
|
|
3841
3841
|
ye(n("input", {
|
|
3842
3842
|
"onUpdate:modelValue": x[4] || (x[4] = (D) => $.value = D),
|
|
3843
3843
|
type: "email",
|
|
@@ -3845,22 +3845,22 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
3845
3845
|
autocomplete: "off",
|
|
3846
3846
|
placeholder: o("İsim veya e-posta", "Name or email"),
|
|
3847
3847
|
onInput: We,
|
|
3848
|
-
onKeyup:
|
|
3848
|
+
onKeyup: qe(Re, ["enter"]),
|
|
3849
3849
|
onFocus: We
|
|
3850
|
-
}, null, 40,
|
|
3850
|
+
}, null, 40, zr), [
|
|
3851
3851
|
[Be, $.value]
|
|
3852
3852
|
]),
|
|
3853
|
-
d.value ? (r(), p("ul",
|
|
3853
|
+
d.value ? (r(), p("ul", Lr, [
|
|
3854
3854
|
(r(!0), p(le, null, Ce(v.value, (D) => (r(), p("li", {
|
|
3855
3855
|
key: D.id,
|
|
3856
3856
|
onMousedown: be((Me) => et(D), ["prevent"])
|
|
3857
3857
|
}, [
|
|
3858
|
-
n("span",
|
|
3859
|
-
n("span",
|
|
3860
|
-
n("span",
|
|
3861
|
-
n("span",
|
|
3858
|
+
n("span", Ur, i((D.display_name || D.email).charAt(0).toUpperCase()), 1),
|
|
3859
|
+
n("span", Rr, [
|
|
3860
|
+
n("span", Fr, i(D.display_name || D.email), 1),
|
|
3861
|
+
n("span", Kr, i(D.email) + " · " + i(D.role), 1)
|
|
3862
3862
|
])
|
|
3863
|
-
], 40,
|
|
3863
|
+
], 40, Nr))), 128))
|
|
3864
3864
|
])) : W("", !0)
|
|
3865
3865
|
]),
|
|
3866
3866
|
ye(n("select", {
|
|
@@ -3871,26 +3871,26 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
3871
3871
|
(r(), p(le, null, Ce(w, (D) => n("option", {
|
|
3872
3872
|
key: D.v,
|
|
3873
3873
|
value: D.v
|
|
3874
|
-
}, i(D.l), 9,
|
|
3875
|
-
], 8,
|
|
3874
|
+
}, i(D.l), 9, Hr)), 64))
|
|
3875
|
+
], 8, jr), [
|
|
3876
3876
|
[mt, k.value]
|
|
3877
3877
|
]),
|
|
3878
3878
|
n("button", {
|
|
3879
3879
|
class: "fx-perm-btn fx-perm-btn--primary",
|
|
3880
3880
|
disabled: z.value,
|
|
3881
3881
|
onClick: Re
|
|
3882
|
-
}, i(o("Ekle", "Add")), 9,
|
|
3882
|
+
}, i(o("Ekle", "Add")), 9, Vr)
|
|
3883
3883
|
]),
|
|
3884
|
-
A.value ? (r(), p("div",
|
|
3885
|
-
n("p",
|
|
3886
|
-
n("div",
|
|
3887
|
-
n("div",
|
|
3884
|
+
A.value ? (r(), p("div", Yr, [
|
|
3885
|
+
n("p", Wr, i(o("Bu e-postada hesap yok. Ne yapmak istersiniz?", "No account for this email — what next?")), 1),
|
|
3886
|
+
n("div", Gr, [
|
|
3887
|
+
n("div", Jr, [
|
|
3888
3888
|
ye(n("select", {
|
|
3889
3889
|
"onUpdate:modelValue": x[6] || (x[6] = (D) => J.value = D),
|
|
3890
3890
|
class: "fx-perm-sel"
|
|
3891
3891
|
}, [
|
|
3892
|
-
n("option",
|
|
3893
|
-
n("option",
|
|
3892
|
+
n("option", qr, i(o("Kullanıcı", "User")), 1),
|
|
3893
|
+
n("option", Xr, i(o("Görüntüleyen", "Viewer")), 1)
|
|
3894
3894
|
], 512), [
|
|
3895
3895
|
[mt, J.value]
|
|
3896
3896
|
]),
|
|
@@ -3898,33 +3898,33 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
3898
3898
|
class: "fx-perm-btn fx-perm-btn--primary",
|
|
3899
3899
|
disabled: z.value,
|
|
3900
3900
|
onClick: tt
|
|
3901
|
-
}, i(o("Kullanıcı oluştur + yetki ver", "Create user + grant")), 9,
|
|
3901
|
+
}, i(o("Kullanıcı oluştur + yetki ver", "Create user + grant")), 9, Qr)
|
|
3902
3902
|
]),
|
|
3903
3903
|
n("button", {
|
|
3904
3904
|
class: "fx-perm-btn fx-perm-btn--ghost",
|
|
3905
3905
|
disabled: z.value,
|
|
3906
3906
|
onClick: Fe
|
|
3907
|
-
}, i(o("Sadece paylaşım linki gönder →", "Just send a share link →")), 9,
|
|
3907
|
+
}, i(o("Sadece paylaşım linki gönder →", "Just send a share link →")), 9, Zr)
|
|
3908
3908
|
])
|
|
3909
3909
|
])) : W("", !0),
|
|
3910
|
-
R.value ? (r(), p("div",
|
|
3911
|
-
(se = b.value) != null && se.tempPassword ? (r(), p("div",
|
|
3910
|
+
R.value ? (r(), p("div", el, i(R.value), 1)) : W("", !0),
|
|
3911
|
+
(se = b.value) != null && se.tempPassword ? (r(), p("div", tl, [
|
|
3912
3912
|
ze(i(o("Geçici parola:", "Temp password:")) + " ", 1),
|
|
3913
3913
|
n("code", null, i(b.value.tempPassword), 1)
|
|
3914
3914
|
])) : W("", !0)
|
|
3915
3915
|
]),
|
|
3916
|
-
n("div",
|
|
3916
|
+
n("div", al, [
|
|
3917
3917
|
n("h4", null, i(o("Erişimi olanlar", "People with access")), 1),
|
|
3918
|
-
!O.value.length && !N.value.length ? (r(), p("div",
|
|
3918
|
+
!O.value.length && !N.value.length ? (r(), p("div", nl, i(o("Henüz kimseyle paylaşılmadı.", "Not shared with anyone yet.")), 1)) : W("", !0),
|
|
3919
3919
|
(r(!0), p(le, null, Ce(O.value, (D) => (r(), p("div", {
|
|
3920
3920
|
key: "d" + D.id,
|
|
3921
3921
|
class: "fx-perm-person"
|
|
3922
3922
|
}, [
|
|
3923
|
-
n("span",
|
|
3923
|
+
n("span", ol, i(Ge(D)), 1),
|
|
3924
3924
|
n("span", {
|
|
3925
3925
|
class: "fx-perm-user",
|
|
3926
3926
|
title: D.user_email
|
|
3927
|
-
}, i(Oe(D)), 9,
|
|
3927
|
+
}, i(Oe(D)), 9, sl),
|
|
3928
3928
|
n("select", {
|
|
3929
3929
|
class: "fx-perm-sel fx-perm-sel--sm",
|
|
3930
3930
|
value: D.level,
|
|
@@ -3933,37 +3933,37 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
3933
3933
|
(r(), p(le, null, Ce(w, (Me) => n("option", {
|
|
3934
3934
|
key: Me.v,
|
|
3935
3935
|
value: Me.v
|
|
3936
|
-
}, i(Me.l), 9,
|
|
3937
|
-
], 40,
|
|
3936
|
+
}, i(Me.l), 9, ll)), 64))
|
|
3937
|
+
], 40, rl),
|
|
3938
3938
|
n("button", {
|
|
3939
3939
|
class: "fx-perm-del",
|
|
3940
3940
|
disabled: z.value,
|
|
3941
3941
|
title: o("Kaldır", "Remove"),
|
|
3942
3942
|
onClick: (Me) => Ye(D)
|
|
3943
|
-
}, "✕", 8,
|
|
3943
|
+
}, "✕", 8, il)
|
|
3944
3944
|
]))), 128)),
|
|
3945
3945
|
(r(!0), p(le, null, Ce(N.value, (D) => (r(), p("div", {
|
|
3946
3946
|
key: "i" + D.id,
|
|
3947
3947
|
class: "fx-perm-person fx-perm-inh"
|
|
3948
3948
|
}, [
|
|
3949
|
-
n("span",
|
|
3949
|
+
n("span", cl, i(Ge(D)), 1),
|
|
3950
3950
|
n("span", {
|
|
3951
3951
|
class: "fx-perm-user",
|
|
3952
3952
|
title: D.user_email
|
|
3953
|
-
}, i(Oe(D)), 9,
|
|
3954
|
-
n("span",
|
|
3953
|
+
}, i(Oe(D)), 9, ul),
|
|
3954
|
+
n("span", dl, i(K(D.level)), 1),
|
|
3955
3955
|
n("span", {
|
|
3956
3956
|
class: "fx-perm-from",
|
|
3957
3957
|
title: o("Üst klasörden gelir", "Inherited from") + ": " + (D.path_prefix || "/")
|
|
3958
|
-
}, " ↳ " + i(D.path_prefix || "/"), 9,
|
|
3958
|
+
}, " ↳ " + i(D.path_prefix || "/"), 9, pl)
|
|
3959
3959
|
]))), 128))
|
|
3960
3960
|
])
|
|
3961
3961
|
], 64))
|
|
3962
3962
|
], 64)) : W("", !0),
|
|
3963
3963
|
f.value === "share" ? (r(), p(le, { key: 1 }, [
|
|
3964
|
-
n("div",
|
|
3965
|
-
n("div",
|
|
3966
|
-
n("label",
|
|
3964
|
+
n("div", fl, [
|
|
3965
|
+
n("div", vl, [
|
|
3966
|
+
n("label", ml, [
|
|
3967
3967
|
ye(n("input", {
|
|
3968
3968
|
type: "checkbox",
|
|
3969
3969
|
"onUpdate:modelValue": x[7] || (x[7] = (D) => ie.value = D)
|
|
@@ -3972,8 +3972,8 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
3972
3972
|
]),
|
|
3973
3973
|
ze(" " + i(o("PIN ile koru", "Protect with a PIN")), 1)
|
|
3974
3974
|
]),
|
|
3975
|
-
n("label",
|
|
3976
|
-
n("span",
|
|
3975
|
+
n("label", hl, [
|
|
3976
|
+
n("span", yl, i(o("Süre", "Expiry")), 1),
|
|
3977
3977
|
ye(n("select", {
|
|
3978
3978
|
"onUpdate:modelValue": x[8] || (x[8] = (D) => ae.value = D),
|
|
3979
3979
|
class: "fx-perm-sel fx-perm-sel--sm"
|
|
@@ -3981,7 +3981,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
3981
3981
|
(r(), p(le, null, Ce(De, (D) => n("option", {
|
|
3982
3982
|
key: D.v,
|
|
3983
3983
|
value: D.v
|
|
3984
|
-
}, i(D.l), 9,
|
|
3984
|
+
}, i(D.l), 9, bl)), 64))
|
|
3985
3985
|
], 512), [
|
|
3986
3986
|
[
|
|
3987
3987
|
mt,
|
|
@@ -3995,23 +3995,23 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
3995
3995
|
class: "fx-perm-btn fx-perm-btn--primary",
|
|
3996
3996
|
disabled: G.value,
|
|
3997
3997
|
onClick: st
|
|
3998
|
-
}, i(o("Bağlantı oluştur", "Create link")), 9,
|
|
3998
|
+
}, i(o("Bağlantı oluştur", "Create link")), 9, _l)
|
|
3999
3999
|
]),
|
|
4000
|
-
ve.value ? (r(), p("div",
|
|
4001
|
-
Z.value ? (r(), p("div",
|
|
4002
|
-
n("div",
|
|
4000
|
+
ve.value ? (r(), p("div", wl, i(ve.value), 1)) : W("", !0),
|
|
4001
|
+
Z.value ? (r(), p("div", gl, [
|
|
4002
|
+
n("div", kl, [
|
|
4003
4003
|
n("a", {
|
|
4004
4004
|
href: Z.value.url,
|
|
4005
4005
|
target: "_blank",
|
|
4006
4006
|
rel: "noopener",
|
|
4007
4007
|
class: "fx-perm-link"
|
|
4008
|
-
}, i(Z.value.url), 9,
|
|
4008
|
+
}, i(Z.value.url), 9, xl),
|
|
4009
4009
|
n("button", {
|
|
4010
4010
|
class: "fx-perm-btn fx-perm-btn--sm",
|
|
4011
4011
|
onClick: x[9] || (x[9] = (D) => ee(Z.value.url, "new"))
|
|
4012
4012
|
}, i(ce.value === "new" ? o("Kopyalandı ✓", "Copied ✓") : o("Kopyala", "Copy")), 1)
|
|
4013
4013
|
]),
|
|
4014
|
-
Z.value.pin ? (r(), p("div",
|
|
4014
|
+
Z.value.pin ? (r(), p("div", $l, [
|
|
4015
4015
|
n("span", null, [
|
|
4016
4016
|
x[23] || (x[23] = ze("PIN: ", -1)),
|
|
4017
4017
|
n("code", null, i(Z.value.pin), 1)
|
|
@@ -4021,33 +4021,33 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4021
4021
|
onClick: x[10] || (x[10] = (D) => ee(Z.value.pin, "sharepin"))
|
|
4022
4022
|
}, i(ce.value === "sharepin" ? o("Kopyalandı ✓", "Copied ✓") : o("Kopyala", "Copy")), 1)
|
|
4023
4023
|
])) : W("", !0),
|
|
4024
|
-
n("div",
|
|
4024
|
+
n("div", Cl, [
|
|
4025
4025
|
ye(n("input", {
|
|
4026
4026
|
"onUpdate:modelValue": x[11] || (x[11] = (D) => ne.value = D),
|
|
4027
4027
|
type: "text",
|
|
4028
4028
|
class: "fx-perm-input",
|
|
4029
4029
|
autocomplete: "off",
|
|
4030
4030
|
placeholder: o("e-posta(lar) — virgülle ayırın", "email(s) — comma separated"),
|
|
4031
|
-
onKeyup: Xe
|
|
4032
|
-
}, null, 40,
|
|
4031
|
+
onKeyup: qe(Xe, ["enter"])
|
|
4032
|
+
}, null, 40, Sl), [
|
|
4033
4033
|
[Be, ne.value]
|
|
4034
4034
|
]),
|
|
4035
4035
|
n("button", {
|
|
4036
4036
|
class: "fx-perm-btn",
|
|
4037
4037
|
disabled: _e.value,
|
|
4038
|
-
onClick:
|
|
4039
|
-
}, i(o("Gönder", "Send")), 9,
|
|
4038
|
+
onClick: Xe
|
|
4039
|
+
}, i(o("Gönder", "Send")), 9, Tl)
|
|
4040
4040
|
]),
|
|
4041
|
-
me.value ? (r(), p("div",
|
|
4042
|
-
])) : ne.value ? (r(), p("p",
|
|
4041
|
+
me.value ? (r(), p("div", El, i(me.value), 1)) : W("", !0)
|
|
4042
|
+
])) : ne.value ? (r(), p("p", Pl, [
|
|
4043
4043
|
ze(i(o("Aşağıdan bir bağlantı oluşturun, ardından", "Create a link below, then it will be sent to")) + " ", 1),
|
|
4044
4044
|
n("strong", null, i(ne.value), 1),
|
|
4045
4045
|
ze(" " + i(o("adresine gönderin.", ".")), 1)
|
|
4046
4046
|
])) : W("", !0)
|
|
4047
4047
|
]),
|
|
4048
|
-
n("div",
|
|
4048
|
+
n("div", Dl, [
|
|
4049
4049
|
n("h4", null, i(o("Mevcut bağlantılar", "Existing links")), 1),
|
|
4050
|
-
j.value.length ? W("", !0) : (r(), p("div",
|
|
4050
|
+
j.value.length ? W("", !0) : (r(), p("div", Al, i(o("Yok", "None")), 1)),
|
|
4051
4051
|
(r(!0), p(le, null, Ce(j.value, (D) => (r(), p("div", {
|
|
4052
4052
|
key: D.uuid,
|
|
4053
4053
|
class: "fx-perm-person"
|
|
@@ -4055,24 +4055,24 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4055
4055
|
n("span", {
|
|
4056
4056
|
class: "fx-perm-user fx-perm-link",
|
|
4057
4057
|
title: D.url
|
|
4058
|
-
}, i(D.url), 9,
|
|
4058
|
+
}, i(D.url), 9, Ol),
|
|
4059
4059
|
n("button", {
|
|
4060
4060
|
class: "fx-perm-btn fx-perm-btn--sm",
|
|
4061
4061
|
onClick: (Me) => ee(D.url, D.uuid)
|
|
4062
|
-
}, i(ce.value === D.uuid ? o("✓", "✓") : o("Kopyala", "Copy")), 9,
|
|
4062
|
+
}, i(ce.value === D.uuid ? o("✓", "✓") : o("Kopyala", "Copy")), 9, Ml),
|
|
4063
4063
|
n("button", {
|
|
4064
4064
|
class: "fx-perm-del",
|
|
4065
4065
|
disabled: G.value,
|
|
4066
4066
|
title: o("İptal", "Revoke"),
|
|
4067
4067
|
onClick: (Me) => te(D)
|
|
4068
|
-
}, "✕", 8,
|
|
4068
|
+
}, "✕", 8, Bl)
|
|
4069
4069
|
]))), 128))
|
|
4070
4070
|
])
|
|
4071
4071
|
], 64)) : W("", !0),
|
|
4072
|
-
f.value === "drop" ? (r(), p("div",
|
|
4073
|
-
n("p",
|
|
4074
|
-
n("div",
|
|
4075
|
-
n("label",
|
|
4072
|
+
f.value === "drop" ? (r(), p("div", Il, [
|
|
4073
|
+
n("p", zl, i(o("Bu klasöre herkesin dosya YÜKLEYEBİLECEĞİ herkese açık bir bağlantı. Yükleyenler klasördeki mevcut dosyaları göremez.", "A public link that lets anyone UPLOAD files into this folder. Uploaders never see the folder's existing files.")), 1),
|
|
4074
|
+
n("div", Ll, [
|
|
4075
|
+
n("label", Nl, [
|
|
4076
4076
|
ye(n("input", {
|
|
4077
4077
|
type: "checkbox",
|
|
4078
4078
|
"onUpdate:modelValue": x[12] || (x[12] = (D) => Ne.value = D)
|
|
@@ -4081,8 +4081,8 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4081
4081
|
]),
|
|
4082
4082
|
ze(" " + i(o("PIN ile koru", "Protect with a PIN")), 1)
|
|
4083
4083
|
]),
|
|
4084
|
-
n("label",
|
|
4085
|
-
n("span",
|
|
4084
|
+
n("label", Ul, [
|
|
4085
|
+
n("span", Rl, i(o("Süre", "Expiry")), 1),
|
|
4086
4086
|
ye(n("select", {
|
|
4087
4087
|
"onUpdate:modelValue": x[13] || (x[13] = (D) => je.value = D),
|
|
4088
4088
|
class: "fx-perm-sel fx-perm-sel--sm"
|
|
@@ -4090,7 +4090,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4090
4090
|
(r(), p(le, null, Ce(De, (D) => n("option", {
|
|
4091
4091
|
key: D.v,
|
|
4092
4092
|
value: D.v
|
|
4093
|
-
}, i(D.l), 9,
|
|
4093
|
+
}, i(D.l), 9, Fl)), 64))
|
|
4094
4094
|
], 512), [
|
|
4095
4095
|
[
|
|
4096
4096
|
mt,
|
|
@@ -4104,16 +4104,16 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4104
4104
|
class: "fx-perm-btn fx-perm-btn--primary",
|
|
4105
4105
|
disabled: xe.value,
|
|
4106
4106
|
onClick: m
|
|
4107
|
-
}, i(o("Bağlantı oluştur", "Create link")), 9,
|
|
4107
|
+
}, i(o("Bağlantı oluştur", "Create link")), 9, Kl)
|
|
4108
4108
|
]),
|
|
4109
4109
|
n("button", {
|
|
4110
4110
|
type: "button",
|
|
4111
4111
|
class: "fx-perm-btn fx-perm-btn--ghost fx-perm-advtoggle",
|
|
4112
4112
|
onClick: x[14] || (x[14] = (D) => Se.value = !Se.value)
|
|
4113
4113
|
}, i(Se.value ? o("Gelişmiş ▲", "Advanced ▲") : o("Gelişmiş ▼", "Advanced ▼")), 1),
|
|
4114
|
-
Se.value ? (r(), p("div",
|
|
4115
|
-
n("label",
|
|
4116
|
-
n("span",
|
|
4114
|
+
Se.value ? (r(), p("div", jl, [
|
|
4115
|
+
n("label", Hl, [
|
|
4116
|
+
n("span", Vl, i(o("En fazla dosya", "Max files")), 1),
|
|
4117
4117
|
ye(n("input", {
|
|
4118
4118
|
"onUpdate:modelValue": x[15] || (x[15] = (D) => Ie.value = D),
|
|
4119
4119
|
type: "number",
|
|
@@ -4124,8 +4124,8 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4124
4124
|
[Be, Ie.value]
|
|
4125
4125
|
])
|
|
4126
4126
|
]),
|
|
4127
|
-
n("label",
|
|
4128
|
-
n("span",
|
|
4127
|
+
n("label", Yl, [
|
|
4128
|
+
n("span", Wl, i(o("Dosya başı MB", "MB / file")), 1),
|
|
4129
4129
|
ye(n("input", {
|
|
4130
4130
|
"onUpdate:modelValue": x[16] || (x[16] = (D) => He.value = D),
|
|
4131
4131
|
type: "number",
|
|
@@ -4136,18 +4136,18 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4136
4136
|
[Be, He.value]
|
|
4137
4137
|
])
|
|
4138
4138
|
]),
|
|
4139
|
-
n("label",
|
|
4140
|
-
n("span",
|
|
4139
|
+
n("label", Gl, [
|
|
4140
|
+
n("span", Jl, i(o("İzinli türler", "Allowed types")), 1),
|
|
4141
4141
|
ye(n("input", {
|
|
4142
4142
|
"onUpdate:modelValue": x[17] || (x[17] = (D) => Ue.value = D),
|
|
4143
4143
|
type: "text",
|
|
4144
4144
|
class: "fx-perm-input fx-perm-input--sm",
|
|
4145
4145
|
placeholder: o("hepsi (örn. pdf, jpg)", "all (e.g. pdf, jpg)")
|
|
4146
|
-
}, null, 8,
|
|
4146
|
+
}, null, 8, ql), [
|
|
4147
4147
|
[Be, Ue.value]
|
|
4148
4148
|
])
|
|
4149
4149
|
]),
|
|
4150
|
-
n("label",
|
|
4150
|
+
n("label", Xl, [
|
|
4151
4151
|
ye(n("input", {
|
|
4152
4152
|
type: "checkbox",
|
|
4153
4153
|
"onUpdate:modelValue": x[18] || (x[18] = (D) => he.value = D)
|
|
@@ -4157,21 +4157,21 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4157
4157
|
ze(" " + i(o("Yükleyenin adını sor", "Ask uploader name")), 1)
|
|
4158
4158
|
])
|
|
4159
4159
|
])) : W("", !0),
|
|
4160
|
-
P.value ? (r(), p("div",
|
|
4161
|
-
L.value ? (r(), p("div",
|
|
4162
|
-
n("div",
|
|
4160
|
+
P.value ? (r(), p("div", Ql, i(P.value), 1)) : W("", !0),
|
|
4161
|
+
L.value ? (r(), p("div", Zl, [
|
|
4162
|
+
n("div", ei, [
|
|
4163
4163
|
n("a", {
|
|
4164
4164
|
href: L.value.url,
|
|
4165
4165
|
target: "_blank",
|
|
4166
4166
|
rel: "noopener",
|
|
4167
4167
|
class: "fx-perm-link"
|
|
4168
|
-
}, i(L.value.url), 9,
|
|
4168
|
+
}, i(L.value.url), 9, ti),
|
|
4169
4169
|
n("button", {
|
|
4170
4170
|
class: "fx-perm-btn fx-perm-btn--sm",
|
|
4171
4171
|
onClick: x[19] || (x[19] = (D) => ee(L.value.url, "drop"))
|
|
4172
4172
|
}, i(ce.value === "drop" ? o("Kopyalandı ✓", "Copied ✓") : o("Kopyala", "Copy")), 1)
|
|
4173
4173
|
]),
|
|
4174
|
-
L.value.pin ? (r(), p("div",
|
|
4174
|
+
L.value.pin ? (r(), p("div", ai, [
|
|
4175
4175
|
n("span", null, [
|
|
4176
4176
|
x[24] || (x[24] = ze("PIN: ", -1)),
|
|
4177
4177
|
n("code", null, i(L.value.pin), 1)
|
|
@@ -4181,24 +4181,24 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4181
4181
|
onClick: x[20] || (x[20] = (D) => ee(L.value.pin, "droppin"))
|
|
4182
4182
|
}, i(ce.value === "droppin" ? o("Kopyalandı ✓", "Copied ✓") : o("Kopyala", "Copy")), 1)
|
|
4183
4183
|
])) : W("", !0),
|
|
4184
|
-
n("div",
|
|
4184
|
+
n("div", ni, [
|
|
4185
4185
|
ye(n("input", {
|
|
4186
4186
|
"onUpdate:modelValue": x[21] || (x[21] = (D) => Y.value = D),
|
|
4187
4187
|
type: "text",
|
|
4188
4188
|
class: "fx-perm-input",
|
|
4189
4189
|
autocomplete: "off",
|
|
4190
4190
|
placeholder: o("e-posta(lar) — virgülle ayırın", "email(s) — comma separated"),
|
|
4191
|
-
onKeyup:
|
|
4192
|
-
}, null, 40,
|
|
4191
|
+
onKeyup: qe(I, ["enter"])
|
|
4192
|
+
}, null, 40, oi), [
|
|
4193
4193
|
[Be, Y.value]
|
|
4194
4194
|
]),
|
|
4195
4195
|
n("button", {
|
|
4196
4196
|
class: "fx-perm-btn",
|
|
4197
4197
|
disabled: X.value,
|
|
4198
4198
|
onClick: I
|
|
4199
|
-
}, i(o("Gönder", "Send")), 9,
|
|
4199
|
+
}, i(o("Gönder", "Send")), 9, si)
|
|
4200
4200
|
]),
|
|
4201
|
-
re.value ? (r(), p("div",
|
|
4201
|
+
re.value ? (r(), p("div", ri, i(re.value), 1)) : W("", !0)
|
|
4202
4202
|
])) : W("", !0)
|
|
4203
4203
|
])) : W("", !0)
|
|
4204
4204
|
])
|
|
@@ -4206,23 +4206,23 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4206
4206
|
]);
|
|
4207
4207
|
};
|
|
4208
4208
|
}
|
|
4209
|
-
}),
|
|
4209
|
+
}), ii = /* @__PURE__ */ ft(li, [["__scopeId", "data-v-cc43fc18"]]), ci = {
|
|
4210
4210
|
key: 0,
|
|
4211
4211
|
class: "fe__loading"
|
|
4212
|
-
},
|
|
4212
|
+
}, ui = { class: "fe__loading-text" }, di = {
|
|
4213
4213
|
key: 0,
|
|
4214
4214
|
class: "fe__dragover"
|
|
4215
|
-
},
|
|
4215
|
+
}, pi = { class: "fe-recents__header" }, fi = { class: "fe-modal__head" }, vi = { class: "fe-modal__title" }, mi = { class: "fe-modal__body" }, hi = {
|
|
4216
4216
|
key: 0,
|
|
4217
4217
|
class: "fe-toast"
|
|
4218
|
-
},
|
|
4218
|
+
}, Xt = "brf-file-explorer:view-mode", Tt = "brf-file-explorer:path", pt = "application/x-brf-files", _i = /* @__PURE__ */ ke({
|
|
4219
4219
|
__name: "FileExplorer",
|
|
4220
4220
|
props: {
|
|
4221
4221
|
config: {}
|
|
4222
4222
|
},
|
|
4223
4223
|
emits: ["share-created", "file-opened", "error", "upload-progress", "selection-change"],
|
|
4224
4224
|
setup(s, { emit: c }) {
|
|
4225
|
-
const e = s, u = c, l =
|
|
4225
|
+
const e = s, u = c, l = qa(e.config), o = Xa(e.config, l), _ = on(e.config, l, {
|
|
4226
4226
|
onSettled: (t) => {
|
|
4227
4227
|
if (t.status === "error")
|
|
4228
4228
|
m(t.error_message || "İşlem başarısız");
|
|
@@ -4232,10 +4232,10 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4232
4232
|
}
|
|
4233
4233
|
H();
|
|
4234
4234
|
}
|
|
4235
|
-
}), f = h(!1), y = (e.config.rootPath || "").trim(), C = y.replace("://", "/").replace(/^\/+|\/+$/g, ""), U = C || e.config.initialPath || "", O = h(U), N = h(e.config.defaultAdapter || "brf"), M = h(U), $ = h([]), k = h(""), z =
|
|
4235
|
+
}), f = h(!1), y = (e.config.rootPath || "").trim(), C = y.replace("://", "/").replace(/^\/+|\/+$/g, ""), U = C || e.config.initialPath || "", O = h(U), N = h(e.config.defaultAdapter || "brf"), M = h(U), $ = h([]), k = h(""), z = Ya((t, a) => {
|
|
4236
4236
|
let g = (() => {
|
|
4237
4237
|
try {
|
|
4238
|
-
const E = localStorage.getItem(
|
|
4238
|
+
const E = localStorage.getItem(Xt);
|
|
4239
4239
|
if (E === "list" || E === "grid") return E;
|
|
4240
4240
|
} catch {
|
|
4241
4241
|
}
|
|
@@ -4249,7 +4249,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4249
4249
|
if (E !== g) {
|
|
4250
4250
|
g = E;
|
|
4251
4251
|
try {
|
|
4252
|
-
localStorage.setItem(
|
|
4252
|
+
localStorage.setItem(Xt, E);
|
|
4253
4253
|
} catch {
|
|
4254
4254
|
}
|
|
4255
4255
|
a();
|
|
@@ -4271,7 +4271,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4271
4271
|
let g = a === -1 ? "" : t.slice(0, a);
|
|
4272
4272
|
C && !(g === C || g.startsWith(C + "/")) && (g = C), H(g);
|
|
4273
4273
|
}
|
|
4274
|
-
const { t: K } = Le(v), j =
|
|
4274
|
+
const { t: K } = Le(v), j = Qa(() => $.value);
|
|
4275
4275
|
Ke(
|
|
4276
4276
|
() => [...j.selected.value],
|
|
4277
4277
|
() => {
|
|
@@ -4329,13 +4329,13 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4329
4329
|
var a, g, E;
|
|
4330
4330
|
if (e.config.onlyOfficeBase) return e.config.onlyOfficeBase;
|
|
4331
4331
|
const t = (g = (a = ie.value) == null ? void 0 : a.external) == null ? void 0 : g.onlyoffice;
|
|
4332
|
-
return t && !
|
|
4332
|
+
return t && !Wt(t) ? null : ((E = ie.value) == null ? void 0 : E.onlyoffice_url) || null;
|
|
4333
4333
|
}), Ie = Q(() => Se.value && l.endpoints.onlyOfficeConfig || null), He = Q(() => {
|
|
4334
4334
|
var g, E, q;
|
|
4335
4335
|
const t = e.config.drawioUrl || e.config.drawioBase;
|
|
4336
4336
|
if (t) return t;
|
|
4337
4337
|
const a = (E = (g = ie.value) == null ? void 0 : g.external) == null ? void 0 : E.drawio;
|
|
4338
|
-
return a && !
|
|
4338
|
+
return a && !Wt(a) ? null : ((q = ie.value) == null ? void 0 : q.drawio_url) || null;
|
|
4339
4339
|
}), Ue = Q(
|
|
4340
4340
|
() => {
|
|
4341
4341
|
var t;
|
|
@@ -4349,10 +4349,10 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4349
4349
|
var a;
|
|
4350
4350
|
return t.length === 1 && typeof ((a = t[0]) == null ? void 0 : a.perm) == "string" ? t[0].perm : k.value;
|
|
4351
4351
|
}
|
|
4352
|
-
const Oe = Q(() => Ve(k.value)), Ge = h(null), Je = h(null), st = h(null),
|
|
4352
|
+
const Oe = Q(() => Ve(k.value)), Ge = h(null), Je = h(null), st = h(null), Xe = h(null);
|
|
4353
4353
|
let B;
|
|
4354
4354
|
function m(t) {
|
|
4355
|
-
|
|
4355
|
+
Xe.value = t, B && clearTimeout(B), B = setTimeout(() => Xe.value = null, 2500);
|
|
4356
4356
|
}
|
|
4357
4357
|
const I = Q(() => e.config.multiStorageRoot === !0);
|
|
4358
4358
|
function te(t) {
|
|
@@ -4475,59 +4475,71 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4475
4475
|
() => R.value,
|
|
4476
4476
|
() => void H()
|
|
4477
4477
|
);
|
|
4478
|
-
function
|
|
4478
|
+
function Qe() {
|
|
4479
4479
|
return e.config.pathPersist ?? "hash";
|
|
4480
4480
|
}
|
|
4481
4481
|
function rt() {
|
|
4482
|
+
const t = Qe();
|
|
4483
|
+
return t === "hash" || t === "hash+localStorage";
|
|
4484
|
+
}
|
|
4485
|
+
function ea(t) {
|
|
4486
|
+
try {
|
|
4487
|
+
return decodeURIComponent(t);
|
|
4488
|
+
} catch {
|
|
4489
|
+
return t;
|
|
4490
|
+
}
|
|
4491
|
+
}
|
|
4492
|
+
function Pt() {
|
|
4493
|
+
try {
|
|
4494
|
+
return localStorage.getItem(Tt) || "";
|
|
4495
|
+
} catch {
|
|
4496
|
+
return "";
|
|
4497
|
+
}
|
|
4498
|
+
}
|
|
4499
|
+
function Dt() {
|
|
4500
|
+
const t = window.location.hash || "";
|
|
4501
|
+
return t.startsWith("#") ? ea(t.slice(1)).replace(/^\/+|\/+$/g, "") : "";
|
|
4502
|
+
}
|
|
4503
|
+
function ta() {
|
|
4482
4504
|
if (typeof window > "u") return "";
|
|
4483
|
-
const t =
|
|
4505
|
+
const t = Qe();
|
|
4484
4506
|
if (t === "none") return "";
|
|
4485
|
-
if (t === "localStorage")
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
} catch {
|
|
4489
|
-
return "";
|
|
4490
|
-
}
|
|
4491
|
-
const a = window.location.hash || "";
|
|
4492
|
-
return a.startsWith("#") ? decodeURIComponent(a.slice(1)).replace(/^\/+|\/+$/g, "") : "";
|
|
4507
|
+
if (t === "localStorage") return Pt();
|
|
4508
|
+
const a = Dt();
|
|
4509
|
+
return a || t === "hash" ? a : U ? "" : Pt();
|
|
4493
4510
|
}
|
|
4494
|
-
|
|
4495
|
-
function Zt(t) {
|
|
4511
|
+
function aa(t) {
|
|
4496
4512
|
if (typeof window > "u") return;
|
|
4497
|
-
const a =
|
|
4513
|
+
const a = Qe();
|
|
4498
4514
|
if (a === "none") return;
|
|
4499
|
-
if (a === "localStorage") {
|
|
4515
|
+
if (a === "localStorage" || a === "hash+localStorage") {
|
|
4500
4516
|
try {
|
|
4501
|
-
t ? localStorage.setItem(
|
|
4517
|
+
t ? localStorage.setItem(Tt, t) : localStorage.removeItem(Tt);
|
|
4502
4518
|
} catch {
|
|
4503
4519
|
}
|
|
4504
|
-
return;
|
|
4520
|
+
if (a === "localStorage") return;
|
|
4505
4521
|
}
|
|
4506
|
-
const g = t ? `#${
|
|
4507
|
-
window.location.hash !==
|
|
4522
|
+
const g = t ? t.split("/").map(encodeURIComponent).join("/") : "", E = g ? `#${g}` : "";
|
|
4523
|
+
(window.location.hash || "") !== E && history.replaceState(
|
|
4508
4524
|
null,
|
|
4509
4525
|
"",
|
|
4510
|
-
|
|
4511
|
-
)
|
|
4526
|
+
E || window.location.pathname + window.location.search
|
|
4527
|
+
);
|
|
4512
4528
|
}
|
|
4513
|
-
function
|
|
4514
|
-
if (
|
|
4515
|
-
|
|
4516
|
-
xt = !1;
|
|
4517
|
-
return;
|
|
4518
|
-
}
|
|
4519
|
-
const t = rt();
|
|
4529
|
+
function At() {
|
|
4530
|
+
if (!rt()) return;
|
|
4531
|
+
const t = Dt();
|
|
4520
4532
|
t && t !== O.value && H(t);
|
|
4521
4533
|
}
|
|
4522
|
-
Ke(O, (t) =>
|
|
4534
|
+
Ke(O, (t) => aa(t)), Ze(async () => {
|
|
4523
4535
|
var a;
|
|
4524
4536
|
kt();
|
|
4525
|
-
const t =
|
|
4526
|
-
await H(t || void 0), await ut(), (a = Je.value) == null || a.focus(), _e(),
|
|
4537
|
+
const t = ta();
|
|
4538
|
+
await H(t || void 0), await ut(), (a = Je.value) == null || a.focus(), _e(), rt() && window.addEventListener("hashchange", At), l.endpoints.opsList && _.startPolling(), l.endpoints.capabilities && l.capabilities().then((g) => {
|
|
4527
4539
|
ie.value = g;
|
|
4528
4540
|
}).catch(() => {
|
|
4529
4541
|
});
|
|
4530
|
-
}),
|
|
4542
|
+
}), Za(Je, {
|
|
4531
4543
|
onDelete: () => {
|
|
4532
4544
|
j.isEmpty.value || (Y.value = !0);
|
|
4533
4545
|
},
|
|
@@ -4547,13 +4559,13 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4547
4559
|
var t;
|
|
4548
4560
|
return (t = st.value) == null ? void 0 : t.focusSearch();
|
|
4549
4561
|
},
|
|
4550
|
-
onCut: () =>
|
|
4551
|
-
onCopy: () =>
|
|
4552
|
-
onPaste: () =>
|
|
4562
|
+
onCut: () => ha(),
|
|
4563
|
+
onCopy: () => ya(),
|
|
4564
|
+
onPaste: () => zt(),
|
|
4553
4565
|
onGoUp: () => w(),
|
|
4554
4566
|
hasSelection: () => !j.isEmpty.value
|
|
4555
4567
|
});
|
|
4556
|
-
const
|
|
4568
|
+
const na = /* @__PURE__ */ new Set([
|
|
4557
4569
|
"docx",
|
|
4558
4570
|
"xlsx",
|
|
4559
4571
|
"pptx",
|
|
@@ -4575,10 +4587,10 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4575
4587
|
return;
|
|
4576
4588
|
}
|
|
4577
4589
|
const a = (t.extension || "").toLowerCase();
|
|
4578
|
-
We.value = Ve(t.perm ?? k.value) ?
|
|
4590
|
+
We.value = Ve(t.perm ?? k.value) ? sa(a) : "view", we.value = t, re.value = !0, u("file-opened", { path: t.path, basename: t.basename }), De(t);
|
|
4579
4591
|
}
|
|
4580
|
-
const
|
|
4581
|
-
...
|
|
4592
|
+
const oa = /* @__PURE__ */ new Set([
|
|
4593
|
+
...na,
|
|
4582
4594
|
"drawio",
|
|
4583
4595
|
"dio",
|
|
4584
4596
|
"pdf",
|
|
@@ -4624,10 +4636,10 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4624
4636
|
"aac",
|
|
4625
4637
|
"opus"
|
|
4626
4638
|
]);
|
|
4627
|
-
function
|
|
4628
|
-
return
|
|
4639
|
+
function sa(t) {
|
|
4640
|
+
return oa.has(t) ? "view" : "edit";
|
|
4629
4641
|
}
|
|
4630
|
-
async function
|
|
4642
|
+
async function ra(t) {
|
|
4631
4643
|
const a = t ?? j.nodes.value;
|
|
4632
4644
|
if (a.length !== 0)
|
|
4633
4645
|
try {
|
|
@@ -4643,17 +4655,17 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4643
4655
|
u("error", { message: g.message, context: { op: "restore" } });
|
|
4644
4656
|
}
|
|
4645
4657
|
}
|
|
4646
|
-
function
|
|
4658
|
+
function Ot(t) {
|
|
4647
4659
|
We.value = "view", we.value = t, re.value = !0, De(t);
|
|
4648
4660
|
}
|
|
4649
|
-
function
|
|
4661
|
+
function la(t) {
|
|
4650
4662
|
if (t.type === "dir") {
|
|
4651
4663
|
const V = I.value ? T(t.path) : se(t.path);
|
|
4652
4664
|
H(V);
|
|
4653
4665
|
return;
|
|
4654
4666
|
}
|
|
4655
4667
|
if (!Ve(t.perm ?? k.value)) {
|
|
4656
|
-
|
|
4668
|
+
Ot(t);
|
|
4657
4669
|
return;
|
|
4658
4670
|
}
|
|
4659
4671
|
const a = (t.extension || "").toLowerCase(), g = e.config.openPageBase;
|
|
@@ -4664,31 +4676,31 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4664
4676
|
const E = g.includes("?") ? "&" : "?", q = `${g}${E}path=${encodeURIComponent(t.path)}&type=${encodeURIComponent(a)}&mode=edit`;
|
|
4665
4677
|
window.open(q, "_blank", "noopener"), u("file-opened", { path: t.path, basename: t.basename }), De(t);
|
|
4666
4678
|
}
|
|
4667
|
-
const dt = h("selection"),
|
|
4679
|
+
const dt = h("selection"), xt = h(""), ia = h(""), ca = Q(() => {
|
|
4668
4680
|
const t = j.nodes.value;
|
|
4669
4681
|
return t.length === 0 ? "none" : t.length === 1 ? t[0].type === "dir" ? "single-dir" : "single-file" : "multi";
|
|
4670
4682
|
});
|
|
4671
|
-
async function
|
|
4683
|
+
async function ua(t) {
|
|
4672
4684
|
const a = j.nodes.value;
|
|
4673
4685
|
if (t === "open") {
|
|
4674
4686
|
a[0] && lt(a[0]);
|
|
4675
4687
|
return;
|
|
4676
4688
|
}
|
|
4677
|
-
await
|
|
4689
|
+
await It(t, a);
|
|
4678
4690
|
}
|
|
4679
|
-
async function
|
|
4691
|
+
async function Mt(t, a) {
|
|
4680
4692
|
var g;
|
|
4681
4693
|
dt.value = "selection", j.has(t.path) || (j.click(t.path), await ut()), (g = Ge.value) == null || g.show({ clientX: a.clientX, clientY: a.clientY }, j.nodes.value);
|
|
4682
4694
|
}
|
|
4683
|
-
function
|
|
4695
|
+
function da(t) {
|
|
4684
4696
|
var a;
|
|
4685
4697
|
t.preventDefault(), dt.value = "selection", j.clear(), (a = Ge.value) == null || a.show({ clientX: t.clientX, clientY: t.clientY }, []);
|
|
4686
4698
|
}
|
|
4687
|
-
function
|
|
4699
|
+
function pa(t) {
|
|
4688
4700
|
var a;
|
|
4689
|
-
dt.value = "breadcrumb",
|
|
4701
|
+
dt.value = "breadcrumb", xt.value = t.adapterPath, ia.value = t.label, (a = Ge.value) == null || a.show({ clientX: t.x, clientY: t.y }, []);
|
|
4690
4702
|
}
|
|
4691
|
-
const
|
|
4703
|
+
const fa = Q(() => {
|
|
4692
4704
|
if (dt.value === "breadcrumb")
|
|
4693
4705
|
return [
|
|
4694
4706
|
{ key: "open", label: K("ctx.open"), icon: "↗" },
|
|
@@ -4704,20 +4716,20 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4704
4716
|
const E = (O.value ?? "").replace(/^\/+|\/+$/g, "");
|
|
4705
4717
|
return I.value && E === "" ? a ? g ? [
|
|
4706
4718
|
{ key: "open", label: K("ctx.open"), icon: "↗" }
|
|
4707
|
-
] : [] : [] : a ?
|
|
4719
|
+
] : [] : [] : a ? Bt(t) : Ve(k.value) ? [
|
|
4708
4720
|
{ key: "new-folder", label: K("toolbar.new_folder"), icon: "📁" },
|
|
4709
4721
|
{ key: "paste", label: K("ctx.paste"), icon: "📋", disabled: !G.value.mode }
|
|
4710
4722
|
] : [];
|
|
4711
4723
|
});
|
|
4712
|
-
function
|
|
4713
|
-
var
|
|
4714
|
-
const a = t.length > 0, g = t.length === 1, E = g && ((
|
|
4724
|
+
function Bt(t) {
|
|
4725
|
+
var Ht, Vt;
|
|
4726
|
+
const a = t.length > 0, g = t.length === 1, E = g && ((Ht = t[0]) == null ? void 0 : Ht.type) === "file", q = v.value === "en" ? "Tags…" : "Etiketler…", V = g && typeof ((Vt = t[0]) == null ? void 0 : Vt.id) == "number", ue = v.value === "en" ? "Copy node id" : "Node id'yi kopyala", Te = Ye(t), $e = Ve(Te), Ra = v.value === "en" ? "Share / Permissions" : "Paylaş / İzinler";
|
|
4715
4727
|
return [
|
|
4716
4728
|
{ key: "open", label: K("ctx.open"), icon: "↗", hidden: !g },
|
|
4717
4729
|
{ key: "preview", label: K("ctx.preview"), icon: "👁", hidden: !g, disabled: !E },
|
|
4718
4730
|
{ key: "download", label: K("ctx.download"), icon: "⬇", hidden: !g, disabled: !E },
|
|
4719
4731
|
{ key: "convert", label: K("ctx.convert"), icon: "🔄", hidden: !g || !Ue.value || !$e, disabled: !E },
|
|
4720
|
-
{ key: "access", label:
|
|
4732
|
+
{ key: "access", label: Ra, icon: "🔗", hidden: !g || !$e },
|
|
4721
4733
|
{ key: "copy-id", label: ue, icon: "🆔", hidden: !V, disabled: !V },
|
|
4722
4734
|
{ divider: !0, key: "sep1", label: "", hidden: !$e },
|
|
4723
4735
|
{ key: "rename", label: K("ctx.rename"), icon: "✎", hidden: !g || !$e, disabled: !g },
|
|
@@ -4730,7 +4742,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4730
4742
|
{ key: "delete", label: K("ctx.delete"), icon: "🗑", danger: !0, hidden: !a || !$e, disabled: !a }
|
|
4731
4743
|
];
|
|
4732
4744
|
}
|
|
4733
|
-
const
|
|
4745
|
+
const va = Q(() => {
|
|
4734
4746
|
const t = j.nodes.value;
|
|
4735
4747
|
if (b.value)
|
|
4736
4748
|
return t.length === 0 ? [] : [
|
|
@@ -4738,32 +4750,32 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4738
4750
|
{ key: "delete", label: K("ctx.delete_perm"), icon: "🗑", danger: !0 }
|
|
4739
4751
|
];
|
|
4740
4752
|
const a = (O.value ?? "").replace(/^\/+|\/+$/g, "");
|
|
4741
|
-
return I.value && a === "" ? t.length === 1 ? [{ key: "open", label: K("ctx.open"), icon: "↗" }] : [] : t.length === 0 ? [] :
|
|
4753
|
+
return I.value && a === "" ? t.length === 1 ? [{ key: "open", label: K("ctx.open"), icon: "↗" }] : [] : t.length === 0 ? [] : Bt(t);
|
|
4742
4754
|
});
|
|
4743
|
-
async function
|
|
4755
|
+
async function ma(t, a) {
|
|
4744
4756
|
if (dt.value === "breadcrumb") {
|
|
4745
|
-
t.key === "open" ? H(se(
|
|
4757
|
+
t.key === "open" ? H(se(xt.value)) : t.key === "copy-path" && await jt(xt.value);
|
|
4746
4758
|
return;
|
|
4747
4759
|
}
|
|
4748
|
-
await
|
|
4760
|
+
await It(t.key, a);
|
|
4749
4761
|
}
|
|
4750
|
-
async function
|
|
4762
|
+
async function It(t, a) {
|
|
4751
4763
|
var g;
|
|
4752
4764
|
switch (t) {
|
|
4753
4765
|
case "open":
|
|
4754
|
-
a[0] &&
|
|
4766
|
+
a[0] && la(a[0]);
|
|
4755
4767
|
break;
|
|
4756
4768
|
case "preview":
|
|
4757
|
-
a[0] &&
|
|
4769
|
+
a[0] && Ot(a[0]);
|
|
4758
4770
|
break;
|
|
4759
4771
|
case "download":
|
|
4760
|
-
a[0] &&
|
|
4772
|
+
a[0] && _a(a[0]);
|
|
4761
4773
|
break;
|
|
4762
4774
|
case "convert":
|
|
4763
|
-
a[0] &&
|
|
4775
|
+
a[0] && $a(a[0]);
|
|
4764
4776
|
break;
|
|
4765
4777
|
case "share":
|
|
4766
|
-
a[0] &&
|
|
4778
|
+
a[0] && xa(a[0]);
|
|
4767
4779
|
break;
|
|
4768
4780
|
case "access":
|
|
4769
4781
|
a[0] && (Fe.value = a[0], tt.value = !0);
|
|
@@ -4790,29 +4802,29 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4790
4802
|
G.value = { mode: "copy", items: a, sourcePath: O.value }, m("Kopyala → Yapıştır hazır");
|
|
4791
4803
|
break;
|
|
4792
4804
|
case "paste":
|
|
4793
|
-
await
|
|
4805
|
+
await zt();
|
|
4794
4806
|
break;
|
|
4795
4807
|
case "delete":
|
|
4796
4808
|
Y.value = !0;
|
|
4797
4809
|
break;
|
|
4798
4810
|
case "restore":
|
|
4799
|
-
a.length > 0 && await
|
|
4811
|
+
a.length > 0 && await ra(a);
|
|
4800
4812
|
break;
|
|
4801
4813
|
case "new-folder":
|
|
4802
4814
|
P.value = !0;
|
|
4803
4815
|
break;
|
|
4804
4816
|
case "duplicate":
|
|
4805
|
-
a[0] && await
|
|
4817
|
+
a[0] && await ba(a[0]);
|
|
4806
4818
|
break;
|
|
4807
4819
|
}
|
|
4808
4820
|
}
|
|
4809
|
-
function
|
|
4821
|
+
function ha() {
|
|
4810
4822
|
j.isEmpty.value || (G.value = { mode: "cut", items: j.nodes.value, sourcePath: O.value }, m("Kesildi"));
|
|
4811
4823
|
}
|
|
4812
|
-
function
|
|
4824
|
+
function ya() {
|
|
4813
4825
|
j.isEmpty.value || (G.value = { mode: "copy", items: j.nodes.value, sourcePath: O.value }, m("Kopyalandı"));
|
|
4814
4826
|
}
|
|
4815
|
-
async function
|
|
4827
|
+
async function zt() {
|
|
4816
4828
|
const t = G.value;
|
|
4817
4829
|
if (!(!t.mode || t.items.length === 0))
|
|
4818
4830
|
try {
|
|
@@ -4833,7 +4845,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4833
4845
|
u("error", { message: a.message, context: { op: "paste" } });
|
|
4834
4846
|
}
|
|
4835
4847
|
}
|
|
4836
|
-
async function
|
|
4848
|
+
async function ba(t) {
|
|
4837
4849
|
try {
|
|
4838
4850
|
const { op: a } = await l.copy([t.path], pe(O.value));
|
|
4839
4851
|
_.register(a);
|
|
@@ -4841,18 +4853,18 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4841
4853
|
u("error", { message: a.message, context: { op: "duplicate" } });
|
|
4842
4854
|
}
|
|
4843
4855
|
}
|
|
4844
|
-
function
|
|
4856
|
+
function _a(t) {
|
|
4845
4857
|
const a = l.downloadUrl(t.path);
|
|
4846
4858
|
window.open(a, "_blank");
|
|
4847
4859
|
}
|
|
4848
|
-
async function
|
|
4860
|
+
async function wa(t) {
|
|
4849
4861
|
try {
|
|
4850
4862
|
await l.newFolder(pe(O.value), t), P.value = !1, await H();
|
|
4851
4863
|
} catch (a) {
|
|
4852
4864
|
u("error", { message: a.message, context: { op: "newfolder" } });
|
|
4853
4865
|
}
|
|
4854
4866
|
}
|
|
4855
|
-
async function
|
|
4867
|
+
async function ga(t) {
|
|
4856
4868
|
const a = de.value;
|
|
4857
4869
|
if (a)
|
|
4858
4870
|
try {
|
|
@@ -4861,7 +4873,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4861
4873
|
u("error", { message: g.message, context: { op: "rename" } });
|
|
4862
4874
|
}
|
|
4863
4875
|
}
|
|
4864
|
-
async function
|
|
4876
|
+
async function ka() {
|
|
4865
4877
|
if (A.value) {
|
|
4866
4878
|
Y.value = !1, m("Çöpteki öğeler saklama süresi sonunda otomatik silinir. Kalıcı silme yönetici panelinden yapılır.");
|
|
4867
4879
|
return;
|
|
@@ -4882,16 +4894,16 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4882
4894
|
u("error", { message: a.message, context: { op: "delete" } });
|
|
4883
4895
|
}
|
|
4884
4896
|
}
|
|
4885
|
-
function
|
|
4897
|
+
function xa(t) {
|
|
4886
4898
|
ge.value = t, oe.value = null, X.value = !0;
|
|
4887
4899
|
}
|
|
4888
|
-
function
|
|
4900
|
+
function $a(t) {
|
|
4889
4901
|
Re.value = t, et.value = !0;
|
|
4890
4902
|
}
|
|
4891
|
-
function
|
|
4903
|
+
function Ca(t) {
|
|
4892
4904
|
m(v.value === "en" ? `Converted → ${t}` : `Dönüştürüldü → ${t}`), H();
|
|
4893
4905
|
}
|
|
4894
|
-
async function
|
|
4906
|
+
async function Sa(t) {
|
|
4895
4907
|
const a = ge.value;
|
|
4896
4908
|
if (a)
|
|
4897
4909
|
try {
|
|
@@ -4907,10 +4919,10 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4907
4919
|
u("error", { message: g.message, context: { op: "share" } });
|
|
4908
4920
|
}
|
|
4909
4921
|
}
|
|
4910
|
-
function
|
|
4922
|
+
function Ta() {
|
|
4911
4923
|
X.value = !1, ge.value = null, oe.value = null;
|
|
4912
4924
|
}
|
|
4913
|
-
function
|
|
4925
|
+
function Ea() {
|
|
4914
4926
|
var t;
|
|
4915
4927
|
if (!Oe.value) {
|
|
4916
4928
|
m(v.value === "en" ? "Read-only here" : "Burada yazma yetkiniz yok");
|
|
@@ -4918,18 +4930,18 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4918
4930
|
}
|
|
4919
4931
|
(t = xe.value) == null || t.click();
|
|
4920
4932
|
}
|
|
4921
|
-
function
|
|
4933
|
+
function Pa(t) {
|
|
4922
4934
|
const a = t.target, g = a.files ? Array.from(a.files) : [];
|
|
4923
|
-
a.value = "",
|
|
4935
|
+
a.value = "", Lt(g);
|
|
4924
4936
|
}
|
|
4925
|
-
async function
|
|
4937
|
+
async function Lt(t) {
|
|
4926
4938
|
if (t.length === 0) return;
|
|
4927
4939
|
const a = !!(l.endpoints.uploadInit && l.endpoints.uploadFinalize);
|
|
4928
4940
|
for (const g of t)
|
|
4929
|
-
a && g.size >= 10 * 1024 * 1024 && await
|
|
4941
|
+
a && g.size >= 10 * 1024 * 1024 && await Aa(g) || await Da(g);
|
|
4930
4942
|
await H();
|
|
4931
4943
|
}
|
|
4932
|
-
async function
|
|
4944
|
+
async function Da(t) {
|
|
4933
4945
|
const a = crypto.randomUUID(), g = pe(O.value);
|
|
4934
4946
|
he.value = [
|
|
4935
4947
|
...he.value,
|
|
@@ -4953,7 +4965,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4953
4965
|
});
|
|
4954
4966
|
}
|
|
4955
4967
|
}
|
|
4956
|
-
async function
|
|
4968
|
+
async function Aa(t) {
|
|
4957
4969
|
const a = crypto.randomUUID();
|
|
4958
4970
|
let g = !1;
|
|
4959
4971
|
try {
|
|
@@ -4983,7 +4995,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4983
4995
|
}
|
|
4984
4996
|
}
|
|
4985
4997
|
const nt = h(0), ot = h(!1);
|
|
4986
|
-
function
|
|
4998
|
+
function $t(t) {
|
|
4987
4999
|
const a = t.dataTransfer;
|
|
4988
5000
|
if (!a || a.types && a.types.includes(pt)) return !1;
|
|
4989
5001
|
if (a.items && a.items.length > 0) {
|
|
@@ -4997,22 +5009,22 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
4997
5009
|
}
|
|
4998
5010
|
return a.types ? a.types.includes("Files") : !1;
|
|
4999
5011
|
}
|
|
5000
|
-
function
|
|
5001
|
-
|
|
5012
|
+
function Oa(t) {
|
|
5013
|
+
$t(t) && (t.preventDefault(), nt.value++, ot.value = !0);
|
|
5002
5014
|
}
|
|
5003
|
-
function
|
|
5015
|
+
function Ma() {
|
|
5004
5016
|
nt.value = Math.max(0, nt.value - 1), nt.value === 0 && (ot.value = !1);
|
|
5005
5017
|
}
|
|
5006
|
-
function
|
|
5007
|
-
|
|
5018
|
+
function Ba(t) {
|
|
5019
|
+
$t(t) && t.preventDefault();
|
|
5008
5020
|
}
|
|
5009
|
-
function
|
|
5021
|
+
function Ia(t) {
|
|
5010
5022
|
var g, E;
|
|
5011
5023
|
if ((g = t.dataTransfer) != null && g.types.includes(pt)) {
|
|
5012
5024
|
nt.value = 0, ot.value = !1;
|
|
5013
5025
|
return;
|
|
5014
5026
|
}
|
|
5015
|
-
if (
|
|
5027
|
+
if (!$t(t)) {
|
|
5016
5028
|
nt.value = 0, ot.value = !1;
|
|
5017
5029
|
return;
|
|
5018
5030
|
}
|
|
@@ -5021,34 +5033,34 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
5021
5033
|
return;
|
|
5022
5034
|
}
|
|
5023
5035
|
const a = (E = t.dataTransfer) != null && E.files ? Array.from(t.dataTransfer.files) : [];
|
|
5024
|
-
a.length !== 0 &&
|
|
5036
|
+
a.length !== 0 && Lt(a);
|
|
5025
5037
|
}
|
|
5026
|
-
function
|
|
5038
|
+
function Nt(t) {
|
|
5027
5039
|
var a;
|
|
5028
5040
|
(a = t.dataTransfer) != null && a.types.includes("Files") && t.preventDefault();
|
|
5029
5041
|
}
|
|
5030
|
-
function
|
|
5042
|
+
function Ut(t) {
|
|
5031
5043
|
const a = Je.value, g = t.target;
|
|
5032
5044
|
a && g && !a.contains(g) && t.preventDefault();
|
|
5033
5045
|
}
|
|
5034
5046
|
Ze(() => {
|
|
5035
|
-
window.addEventListener("dragover",
|
|
5047
|
+
window.addEventListener("dragover", Nt), window.addEventListener("drop", Ut);
|
|
5036
5048
|
}), at(() => {
|
|
5037
|
-
window.removeEventListener("dragover",
|
|
5049
|
+
window.removeEventListener("dragover", Nt), window.removeEventListener("drop", Ut), window.removeEventListener("hashchange", At);
|
|
5038
5050
|
});
|
|
5039
|
-
const
|
|
5040
|
-
function
|
|
5051
|
+
const Ct = Q(() => G.value.mode !== "cut" ? /* @__PURE__ */ new Set() : new Set(G.value.items.map((t) => t.path)));
|
|
5052
|
+
function Rt(t, a) {
|
|
5041
5053
|
if (!a.dataTransfer) return;
|
|
5042
5054
|
if (t.basename === ".trash") {
|
|
5043
5055
|
a.preventDefault();
|
|
5044
5056
|
return;
|
|
5045
5057
|
}
|
|
5046
5058
|
j.has(t.path) || j.click(t.path);
|
|
5047
|
-
const g = j.nodes.value.filter((E) => !
|
|
5059
|
+
const g = j.nodes.value.filter((E) => !Ct.value.has(E.path)).filter((E) => E.basename !== ".trash").map((E) => ({ path: E.path, basename: E.basename, type: E.type }));
|
|
5048
5060
|
a.dataTransfer.setData(pt, JSON.stringify(g)), a.dataTransfer.setData("text/plain", g.map((E) => E.path).join(`
|
|
5049
5061
|
`)), a.dataTransfer.effectAllowed = "move";
|
|
5050
5062
|
}
|
|
5051
|
-
async function
|
|
5063
|
+
async function Ft(t, a, g) {
|
|
5052
5064
|
try {
|
|
5053
5065
|
if (l.endpoints.moveAsync) {
|
|
5054
5066
|
const { op: E } = await l.moveAsync(t, a, pe(O.value));
|
|
@@ -5060,7 +5072,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
5060
5072
|
u("error", { message: E.message, context: { op: g, targetDir: a } });
|
|
5061
5073
|
}
|
|
5062
5074
|
}
|
|
5063
|
-
async function
|
|
5075
|
+
async function Kt(t, a) {
|
|
5064
5076
|
var ue;
|
|
5065
5077
|
if (t.type !== "dir") return;
|
|
5066
5078
|
const g = (ue = a.dataTransfer) == null ? void 0 : ue.getData(pt);
|
|
@@ -5077,9 +5089,9 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
5077
5089
|
m("Aynı klasöre taşınamaz");
|
|
5078
5090
|
return;
|
|
5079
5091
|
}
|
|
5080
|
-
await
|
|
5092
|
+
await Ft(V, q, "move-dnd");
|
|
5081
5093
|
}
|
|
5082
|
-
async function
|
|
5094
|
+
async function za(t, a) {
|
|
5083
5095
|
var ue;
|
|
5084
5096
|
const g = (ue = a.dataTransfer) == null ? void 0 : ue.getData(pt);
|
|
5085
5097
|
if (!g) return;
|
|
@@ -5091,15 +5103,15 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
5091
5103
|
}
|
|
5092
5104
|
if (E.length === 0) return;
|
|
5093
5105
|
const q = t, V = E.map((Te) => Te.path).filter((Te) => Te && Te !== q && !q.startsWith(Te + "/"));
|
|
5094
|
-
V.length !== 0 && await
|
|
5106
|
+
V.length !== 0 && await Ft(V, q, "move-dnd-crumb");
|
|
5095
5107
|
}
|
|
5096
|
-
function
|
|
5108
|
+
function La(t) {
|
|
5097
5109
|
t.cancel();
|
|
5098
5110
|
}
|
|
5099
|
-
function
|
|
5111
|
+
function Na(t) {
|
|
5100
5112
|
he.value = he.value.filter((a) => a.id !== t.id);
|
|
5101
5113
|
}
|
|
5102
|
-
function
|
|
5114
|
+
function Ua(t) {
|
|
5103
5115
|
if (I.value && !t) {
|
|
5104
5116
|
H("");
|
|
5105
5117
|
return;
|
|
@@ -5110,7 +5122,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
5110
5122
|
}
|
|
5111
5123
|
H(se(t));
|
|
5112
5124
|
}
|
|
5113
|
-
async function
|
|
5125
|
+
async function jt(t) {
|
|
5114
5126
|
try {
|
|
5115
5127
|
await navigator.clipboard.writeText(t), m(K("breadcrumb.copy_path"));
|
|
5116
5128
|
} catch {
|
|
@@ -5130,20 +5142,20 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
5130
5142
|
"fe--is-dragover": ot.value
|
|
5131
5143
|
}]),
|
|
5132
5144
|
tabindex: "-1",
|
|
5133
|
-
onDragenter:
|
|
5134
|
-
onDragover:
|
|
5135
|
-
onDragleave:
|
|
5136
|
-
onDrop:
|
|
5137
|
-
onContextmenu:
|
|
5145
|
+
onDragenter: Oa,
|
|
5146
|
+
onDragover: Ba,
|
|
5147
|
+
onDragleave: Ma,
|
|
5148
|
+
onDrop: Ia,
|
|
5149
|
+
onContextmenu: da
|
|
5138
5150
|
}, [
|
|
5139
|
-
Pe(
|
|
5151
|
+
Pe(Cn, {
|
|
5140
5152
|
ref_key: "toolbarRef",
|
|
5141
5153
|
ref: st,
|
|
5142
5154
|
"view-mode": z.value,
|
|
5143
5155
|
"search-query": R.value,
|
|
5144
5156
|
"trash-active": b.value,
|
|
5145
|
-
actions:
|
|
5146
|
-
"selection-mode":
|
|
5157
|
+
actions: va.value,
|
|
5158
|
+
"selection-mode": ca.value,
|
|
5147
5159
|
"paste-enabled": !!G.value.mode,
|
|
5148
5160
|
"convert-enabled": !!Ue.value,
|
|
5149
5161
|
"can-go-up": d.value,
|
|
@@ -5153,39 +5165,39 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
5153
5165
|
"onUpdate:viewMode": a[0] || (a[0] = (V) => z.value = V),
|
|
5154
5166
|
"onUpdate:searchQuery": a[1] || (a[1] = (V) => R.value = V),
|
|
5155
5167
|
onNewFolder: a[2] || (a[2] = (V) => P.value = !0),
|
|
5156
|
-
onUpload:
|
|
5168
|
+
onUpload: Ea,
|
|
5157
5169
|
onRefresh: a[3] || (a[3] = () => H()),
|
|
5158
5170
|
onGoUp: w,
|
|
5159
|
-
onAction:
|
|
5171
|
+
onAction: ua,
|
|
5160
5172
|
onOpenRecents: a[4] || (a[4] = (V) => Z.value = !0)
|
|
5161
5173
|
}, null, 8, ["view-mode", "search-query", "trash-active", "actions", "selection-mode", "paste-enabled", "convert-enabled", "can-go-up", "at-virtual-root", "can-write", "locale"]),
|
|
5162
|
-
Pe(
|
|
5174
|
+
Pe(Hn, {
|
|
5163
5175
|
dirname: M.value,
|
|
5164
5176
|
adapter: N.value,
|
|
5165
5177
|
"root-label": N.value,
|
|
5166
5178
|
locale: v.value,
|
|
5167
5179
|
"multi-storage-root": I.value,
|
|
5168
5180
|
"root-path": F(y),
|
|
5169
|
-
onNavigate:
|
|
5170
|
-
onCopyPath:
|
|
5171
|
-
onCrumbContext:
|
|
5172
|
-
onCrumbDrop:
|
|
5181
|
+
onNavigate: Ua,
|
|
5182
|
+
onCopyPath: jt,
|
|
5183
|
+
onCrumbContext: pa,
|
|
5184
|
+
onCrumbDrop: za
|
|
5173
5185
|
}, null, 8, ["dirname", "adapter", "root-label", "locale", "multi-storage-root", "root-path"]),
|
|
5174
5186
|
n("div", {
|
|
5175
5187
|
class: "fe__body",
|
|
5176
5188
|
onClick: a[7] || (a[7] = be((V) => F(j).clear(), ["self"]))
|
|
5177
5189
|
}, [
|
|
5178
|
-
f.value && $.value.length === 0 ? (r(), p("div",
|
|
5190
|
+
f.value && $.value.length === 0 ? (r(), p("div", ci, [
|
|
5179
5191
|
a[23] || (a[23] = n("span", {
|
|
5180
5192
|
class: "fe__spinner",
|
|
5181
5193
|
"aria-hidden": "true"
|
|
5182
5194
|
}, null, -1)),
|
|
5183
|
-
n("p",
|
|
5184
|
-
])) : z.value === "list" ? (r(), Ae(
|
|
5195
|
+
n("p", ui, i(F(K)("loading")), 1)
|
|
5196
|
+
])) : z.value === "list" ? (r(), Ae(po, {
|
|
5185
5197
|
key: 1,
|
|
5186
5198
|
files: $.value,
|
|
5187
5199
|
selected: F(j).selected.value,
|
|
5188
|
-
clipped:
|
|
5200
|
+
clipped: Ct.value,
|
|
5189
5201
|
"show-parent-path": !!R.value,
|
|
5190
5202
|
locale: v.value,
|
|
5191
5203
|
loading: f.value,
|
|
@@ -5194,79 +5206,79 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
5194
5206
|
"auth-headers": () => it(),
|
|
5195
5207
|
onClickRow: a[5] || (a[5] = (V, ue) => F(j).click(V.path, ue)),
|
|
5196
5208
|
onDblRow: lt,
|
|
5197
|
-
onContextRow:
|
|
5198
|
-
onItemDragStart:
|
|
5199
|
-
onItemDropInto:
|
|
5209
|
+
onContextRow: Mt,
|
|
5210
|
+
onItemDragStart: Rt,
|
|
5211
|
+
onItemDropInto: Kt,
|
|
5200
5212
|
onStarChange: me
|
|
5201
|
-
}, null, 8, ["files", "selected", "clipped", "show-parent-path", "locale", "loading", "starred-ids", "api-base", "auth-headers"])) : (r(), Ae(
|
|
5213
|
+
}, null, 8, ["files", "selected", "clipped", "show-parent-path", "locale", "loading", "starred-ids", "api-base", "auth-headers"])) : (r(), Ae(go, {
|
|
5202
5214
|
key: 2,
|
|
5203
5215
|
files: $.value,
|
|
5204
5216
|
selected: F(j).selected.value,
|
|
5205
|
-
clipped:
|
|
5217
|
+
clipped: Ct.value,
|
|
5206
5218
|
"show-parent-path": !!R.value,
|
|
5207
5219
|
locale: v.value,
|
|
5208
5220
|
loading: f.value,
|
|
5209
5221
|
onClickCard: a[6] || (a[6] = (V, ue) => F(j).click(V.path, ue)),
|
|
5210
5222
|
onDblCard: lt,
|
|
5211
|
-
onContextCard:
|
|
5212
|
-
onItemDragStart:
|
|
5213
|
-
onItemDropInto:
|
|
5223
|
+
onContextCard: Mt,
|
|
5224
|
+
onItemDragStart: Rt,
|
|
5225
|
+
onItemDropInto: Kt
|
|
5214
5226
|
}, null, 8, ["files", "selected", "clipped", "show-parent-path", "locale", "loading"]))
|
|
5215
5227
|
]),
|
|
5216
|
-
ot.value ? (r(), p("div",
|
|
5228
|
+
ot.value ? (r(), p("div", di, [...a[24] || (a[24] = [
|
|
5217
5229
|
n("div", { class: "fe__dragover-card" }, [
|
|
5218
5230
|
n("span", { class: "fe-icon" }, "⬆"),
|
|
5219
5231
|
n("p", null, "Dosyaları buraya bırak")
|
|
5220
5232
|
], -1)
|
|
5221
5233
|
])])) : W("", !0),
|
|
5222
|
-
Pe(
|
|
5234
|
+
Pe(Lo, {
|
|
5223
5235
|
jobs: he.value,
|
|
5224
5236
|
locale: v.value,
|
|
5225
|
-
onCancel:
|
|
5226
|
-
onDismiss:
|
|
5237
|
+
onCancel: La,
|
|
5238
|
+
onDismiss: Na
|
|
5227
5239
|
}, null, 8, ["jobs", "locale"]),
|
|
5228
|
-
Pe(
|
|
5240
|
+
Pe(jo, {
|
|
5229
5241
|
ops: F(_).ops.value,
|
|
5230
5242
|
locale: v.value,
|
|
5231
5243
|
onDismiss: a[8] || (a[8] = (V) => F(_).dismiss(V))
|
|
5232
5244
|
}, null, 8, ["ops", "locale"]),
|
|
5233
|
-
Pe(
|
|
5245
|
+
Pe(To, {
|
|
5234
5246
|
ref_key: "ctxRef",
|
|
5235
5247
|
ref: Ge,
|
|
5236
5248
|
locale: v.value,
|
|
5237
5249
|
theme: s.config.theme || "auto",
|
|
5238
|
-
actions:
|
|
5239
|
-
onSelect:
|
|
5250
|
+
actions: fa.value,
|
|
5251
|
+
onSelect: ma
|
|
5240
5252
|
}, null, 8, ["locale", "theme", "actions"]),
|
|
5241
|
-
Pe(
|
|
5253
|
+
Pe(qo, {
|
|
5242
5254
|
open: P.value,
|
|
5243
5255
|
locale: v.value,
|
|
5244
5256
|
onClose: a[9] || (a[9] = (V) => P.value = !1),
|
|
5245
|
-
onSubmit:
|
|
5257
|
+
onSubmit: wa
|
|
5246
5258
|
}, null, 8, ["open", "locale"]),
|
|
5247
|
-
Pe(
|
|
5259
|
+
Pe(Qo, {
|
|
5248
5260
|
open: L.value,
|
|
5249
5261
|
locale: v.value,
|
|
5250
5262
|
"current-name": ((g = de.value) == null ? void 0 : g.basename) || "",
|
|
5251
5263
|
onClose: a[10] || (a[10] = (V) => L.value = !1),
|
|
5252
|
-
onSubmit:
|
|
5264
|
+
onSubmit: ga
|
|
5253
5265
|
}, null, 8, ["open", "locale", "current-name"]),
|
|
5254
|
-
Pe(
|
|
5266
|
+
Pe(Zo, {
|
|
5255
5267
|
open: Y.value,
|
|
5256
5268
|
locale: v.value,
|
|
5257
5269
|
count: F(j).size.value,
|
|
5258
5270
|
onClose: a[11] || (a[11] = (V) => Y.value = !1),
|
|
5259
|
-
onConfirm:
|
|
5271
|
+
onConfirm: ka
|
|
5260
5272
|
}, null, 8, ["open", "locale", "count"]),
|
|
5261
|
-
Pe(
|
|
5273
|
+
Pe(fs, {
|
|
5262
5274
|
open: X.value,
|
|
5263
5275
|
locale: v.value,
|
|
5264
5276
|
share: oe.value,
|
|
5265
|
-
onClose:
|
|
5266
|
-
onSubmit:
|
|
5277
|
+
onClose: Ta,
|
|
5278
|
+
onSubmit: Sa,
|
|
5267
5279
|
onToast: m
|
|
5268
5280
|
}, null, 8, ["open", "locale", "share"]),
|
|
5269
|
-
Pe(
|
|
5281
|
+
Pe(sr, {
|
|
5270
5282
|
open: re.value,
|
|
5271
5283
|
locale: v.value,
|
|
5272
5284
|
file: we.value,
|
|
@@ -5285,7 +5297,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
5285
5297
|
"viewer-base-url": e.config.viewerBaseUrl || null,
|
|
5286
5298
|
onClose: a[12] || (a[12] = (V) => re.value = !1)
|
|
5287
5299
|
}, null, 8, ["open", "locale", "file", "theme", "preview-url", "download-url", "only-office-base", "only-office-config-endpoint", "save-text-endpoint", "open-mode", "auth-headers", "auth-credentials", "drawio-url", "pdf-worker-url", "pdf-save-url", "viewer-base-url"]),
|
|
5288
|
-
et.value && Re.value && Ue.value ? (r(), Ae(
|
|
5300
|
+
et.value && Re.value && Ue.value ? (r(), Ae(wr, {
|
|
5289
5301
|
key: 1,
|
|
5290
5302
|
"convert-url": Ue.value,
|
|
5291
5303
|
"file-name": ((E = Re.value) == null ? void 0 : E.basename) || ((q = Re.value) == null ? void 0 : q.path) || "",
|
|
@@ -5296,9 +5308,9 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
5296
5308
|
upload: (V) => F(l).uploadMultipart(pe(O.value), [V]).then(() => {
|
|
5297
5309
|
}),
|
|
5298
5310
|
onClose: a[13] || (a[13] = (V) => et.value = !1),
|
|
5299
|
-
onDone:
|
|
5311
|
+
onDone: Ca
|
|
5300
5312
|
}, null, 8, ["convert-url", "file-name", "fetch-bytes", "upload"])) : W("", !0),
|
|
5301
|
-
tt.value && Fe.value ? (r(), Ae(
|
|
5313
|
+
tt.value && Fe.value ? (r(), Ae(ii, {
|
|
5302
5314
|
key: 2,
|
|
5303
5315
|
api: F(l),
|
|
5304
5316
|
path: Fe.value.path,
|
|
@@ -5322,7 +5334,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
5322
5334
|
onClick: a[17] || (a[17] = be(() => {
|
|
5323
5335
|
}, ["stop"]))
|
|
5324
5336
|
}, [
|
|
5325
|
-
n("div",
|
|
5337
|
+
n("div", pi, [
|
|
5326
5338
|
n("strong", null, i(v.value === "en" ? "Recently opened" : "Son açılanlar"), 1),
|
|
5327
5339
|
n("button", {
|
|
5328
5340
|
class: "fe-recents__close",
|
|
@@ -5330,7 +5342,7 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
5330
5342
|
onClick: a[15] || (a[15] = (V) => Z.value = !1)
|
|
5331
5343
|
}, "×")
|
|
5332
5344
|
]),
|
|
5333
|
-
Pe(
|
|
5345
|
+
Pe(Nn, {
|
|
5334
5346
|
"api-base": e.config.apiBase ?? "",
|
|
5335
5347
|
"auth-headers": () => it(),
|
|
5336
5348
|
limit: 20,
|
|
@@ -5355,16 +5367,16 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
5355
5367
|
onClick: a[21] || (a[21] = be(() => {
|
|
5356
5368
|
}, ["stop"]))
|
|
5357
5369
|
}, [
|
|
5358
|
-
n("header",
|
|
5359
|
-
n("h2",
|
|
5370
|
+
n("header", fi, [
|
|
5371
|
+
n("h2", vi, i(v.value === "en" ? "Tags" : "Etiketler") + " — " + i(ce.value.basename), 1),
|
|
5360
5372
|
n("button", {
|
|
5361
5373
|
class: "fe-modal__close",
|
|
5362
5374
|
"aria-label": "Close",
|
|
5363
5375
|
onClick: a[19] || (a[19] = (V) => ve.value = !1)
|
|
5364
5376
|
}, "×")
|
|
5365
5377
|
]),
|
|
5366
|
-
n("div",
|
|
5367
|
-
Pe(
|
|
5378
|
+
n("div", mi, [
|
|
5379
|
+
Pe(En, {
|
|
5368
5380
|
"node-id": ce.value.id,
|
|
5369
5381
|
"api-base": e.config.apiBase ?? "",
|
|
5370
5382
|
"auth-headers": () => it(),
|
|
@@ -5382,11 +5394,11 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
5382
5394
|
type: "file",
|
|
5383
5395
|
multiple: "",
|
|
5384
5396
|
class: "fe__file-input",
|
|
5385
|
-
onChange:
|
|
5397
|
+
onChange: Pa
|
|
5386
5398
|
}, null, 544),
|
|
5387
5399
|
Pe(ct, { name: "fe-toast" }, {
|
|
5388
5400
|
default: Ee(() => [
|
|
5389
|
-
|
|
5401
|
+
Xe.value ? (r(), p("div", hi, i(Xe.value), 1)) : W("", !0)
|
|
5390
5402
|
]),
|
|
5391
5403
|
_: 1
|
|
5392
5404
|
})
|
|
@@ -5395,28 +5407,28 @@ const nn = { class: "fe-toolbar" }, on = { class: "fe-toolbar__primary" }, sn =
|
|
|
5395
5407
|
}
|
|
5396
5408
|
});
|
|
5397
5409
|
export {
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5410
|
+
Nn as R,
|
|
5411
|
+
qn as S,
|
|
5412
|
+
En as T,
|
|
5401
5413
|
ft as _,
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5414
|
+
_i as a,
|
|
5415
|
+
sr as b,
|
|
5416
|
+
tn as c,
|
|
5417
|
+
Et as d,
|
|
5418
|
+
Qt as e,
|
|
5419
|
+
Zt as f,
|
|
5420
|
+
sn as g,
|
|
5421
|
+
Za as h,
|
|
5422
|
+
Wt as i,
|
|
5411
5423
|
Le as j,
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5424
|
+
bi as k,
|
|
5425
|
+
on as l,
|
|
5426
|
+
Gt as m,
|
|
5427
|
+
Qa as n,
|
|
5428
|
+
Xa as o,
|
|
5417
5429
|
kt as p,
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5430
|
+
Wa as r,
|
|
5431
|
+
en as t,
|
|
5432
|
+
qa as u
|
|
5421
5433
|
};
|
|
5422
|
-
//# sourceMappingURL=index-
|
|
5434
|
+
//# sourceMappingURL=index-DzcShGVx.js.map
|