vuefinder 2.2.2 → 2.2.4
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/style.css +1 -1
- package/dist/vuefinder.cjs +1 -1
- package/dist/vuefinder.js +479 -478
- package/package.json +1 -1
package/dist/vuefinder.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Ce = Object.defineProperty;
|
|
2
2
|
var Se = (p, e, s) => e in p ? Ce(p, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : p[e] = s;
|
|
3
3
|
var fe = (p, e, s) => (Se(p, typeof e != "symbol" ? e + "" : e, s), s);
|
|
4
|
-
import { reactive as ie, watch as de, ref as k, computed as ee, inject as F, openBlock as n, createElementBlock as m, unref as a, createCommentVNode as M, normalizeClass as z, createElementVNode as t, createTextVNode as V, toDisplayString as v, customRef as Me, withModifiers as Y, Fragment as U, renderList as
|
|
4
|
+
import { reactive as ie, watch as de, ref as k, computed as ee, inject as F, openBlock as n, createElementBlock as m, unref as a, createCommentVNode as M, normalizeClass as z, createElementVNode as t, createTextVNode as V, toDisplayString as v, customRef as Me, withModifiers as Y, Fragment as U, renderList as q, withDirectives as I, withKeys as Q, isRef as _e, vModelText as Z, nextTick as ce, createVNode as H, TransitionGroup as Ee, withCtx as A, onMounted as P, onUpdated as De, onBeforeUnmount as ke, vShow as re, normalizeStyle as be, vModelSelect as pe, provide as je, Transition as Ae, createBlock as T, resolveDynamicComponent as Le, renderSlot as le, onUnmounted as Te, vModelCheckbox as Fe } from "vue";
|
|
5
5
|
import Oe from "mitt";
|
|
6
6
|
import Ve from "dragselect";
|
|
7
7
|
import Ne from "vanilla-lazyload";
|
|
@@ -38,8 +38,8 @@ class He {
|
|
|
38
38
|
me != null && me !== "" && (r[s.xsrfHeaderName] = me);
|
|
39
39
|
const o = Object.assign({}, s.headers, r, e.headers), i = Object.assign({}, s.params, e.params), u = e.body, d = s.baseUrl + e.url, l = e.method;
|
|
40
40
|
let c;
|
|
41
|
-
l !== "get" && (u instanceof FormData ? (c = u, s.body != null && Object.entries(this.config.body).forEach(([_,
|
|
42
|
-
c.append(_,
|
|
41
|
+
l !== "get" && (u instanceof FormData ? (c = u, s.body != null && Object.entries(this.config.body).forEach(([_, y]) => {
|
|
42
|
+
c.append(_, y);
|
|
43
43
|
})) : (c = { ...u }, s.body != null && Object.assign(c, this.config.body)));
|
|
44
44
|
const g = {
|
|
45
45
|
url: d,
|
|
@@ -135,7 +135,7 @@ function Re(p) {
|
|
|
135
135
|
};
|
|
136
136
|
return typeof p == "string" ? Object.assign(e, { baseUrl: p }) : Object.assign(e, p), new He(e);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function Ie(p) {
|
|
139
139
|
let e = localStorage.getItem(p + "_storage");
|
|
140
140
|
const s = ie(JSON.parse(e ?? "{}"));
|
|
141
141
|
de(s, r);
|
|
@@ -153,22 +153,22 @@ function qe(p) {
|
|
|
153
153
|
}
|
|
154
154
|
return { getStore: (l, c = null) => s.hasOwnProperty(l) ? s[l] : c, setStore: o, removeStore: i, clearStore: u };
|
|
155
155
|
}
|
|
156
|
-
async function
|
|
156
|
+
async function qe(p, e) {
|
|
157
157
|
const s = e[p];
|
|
158
158
|
return typeof s == "function" ? (await s()).default : s;
|
|
159
159
|
}
|
|
160
160
|
function Pe(p, e, s, r) {
|
|
161
|
-
const { getStore: o, setStore: i } = p, u = k({}), d = k(o("locale", e)), l = (_,
|
|
162
|
-
|
|
163
|
-
u.value =
|
|
164
|
-
}).catch((
|
|
165
|
-
|
|
161
|
+
const { getStore: o, setStore: i } = p, u = k({}), d = k(o("locale", e)), l = (_, y = e) => {
|
|
162
|
+
qe(_, r).then((x) => {
|
|
163
|
+
u.value = x, i("locale", _), d.value = _, i("translations", x), Object.values(r).length > 1 && (s.emit("vf-toast-push", { label: "The language is set to " + _ }), s.emit("vf-language-saved"));
|
|
164
|
+
}).catch((x) => {
|
|
165
|
+
y ? (s.emit("vf-toast-push", { label: "The selected locale is not yet supported!", type: "error" }), l(y, null)) : s.emit("vf-toast-push", { label: "Locale cannot be loaded!", type: "error" });
|
|
166
166
|
});
|
|
167
167
|
};
|
|
168
168
|
!o("locale") && !r.length ? l(e) : u.value = o("translations");
|
|
169
|
-
const c = (_, ...
|
|
170
|
-
function g(_, ...
|
|
171
|
-
return u.value && u.value.hasOwnProperty(_) ? c(u.value[_], ...
|
|
169
|
+
const c = (_, ...y) => y.length ? c(_ = _.replace("%s", y.shift()), ...y) : _;
|
|
170
|
+
function g(_, ...y) {
|
|
171
|
+
return u.value && u.value.hasOwnProperty(_) ? c(u.value[_], ...y) : c(_, ...y);
|
|
172
172
|
}
|
|
173
173
|
return { t: g, changeLocale: l, locale: d };
|
|
174
174
|
}
|
|
@@ -186,7 +186,7 @@ const B = {
|
|
|
186
186
|
FULL_SCREEN: "fullscreen",
|
|
187
187
|
DOWNLOAD: "download",
|
|
188
188
|
LANGUAGE: "language"
|
|
189
|
-
}, We = Object.values(B), Ge = "2.2.
|
|
189
|
+
}, We = Object.values(B), Ge = "2.2.4";
|
|
190
190
|
function ye(p, e, s, r, o) {
|
|
191
191
|
return (e = Math, s = e.log, r = 1024, o = s(p) / s(r) | 0, p / e.pow(r, o)).toFixed(0) + " " + (o ? "KMGTPEZY"[--o] + "iB" : "B");
|
|
192
192
|
}
|
|
@@ -226,7 +226,7 @@ function Ke(p, e) {
|
|
|
226
226
|
};
|
|
227
227
|
}
|
|
228
228
|
const Je = (p, e) => {
|
|
229
|
-
const s =
|
|
229
|
+
const s = Ie(p.id), r = Oe(), o = s.getStore("metricUnits", !1), i = Ke(s, p.theme), u = e.i18n, d = p.locale ?? e.locale, l = ee(() => Pe(s, d, r, u)), c = (_) => Array.isArray(_) ? _ : We, g = p.persist ? s.getStore("path", p.path) : p.path;
|
|
230
230
|
return ie({
|
|
231
231
|
// app version
|
|
232
232
|
version: Ge,
|
|
@@ -579,8 +579,8 @@ const Je = (p, e) => {
|
|
|
579
579
|
"clip-rule": "evenodd"
|
|
580
580
|
}, null, -1), Rt = [
|
|
581
581
|
Ht
|
|
582
|
-
],
|
|
583
|
-
|
|
582
|
+
], It = ["aria-label"], qt = /* @__PURE__ */ t("path", { d: "M463.5 224H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1c-87.5 87.5-87.5 229.3 0 316.8s229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5z" }, null, -1), Pt = [
|
|
583
|
+
qt
|
|
584
584
|
], Wt = ["aria-label"], Gt = /* @__PURE__ */ t("path", {
|
|
585
585
|
"stroke-linecap": "round",
|
|
586
586
|
"stroke-linejoin": "round",
|
|
@@ -660,7 +660,7 @@ const Je = (p, e) => {
|
|
|
660
660
|
i.emitter.emit("vf-toast-clear"), i.emitter.emit("vf-search-query", { newQuery: $ });
|
|
661
661
|
});
|
|
662
662
|
const g = () => s.value.length && !r.value, _ = ($, f = null) => {
|
|
663
|
-
$.preventDefault(),
|
|
663
|
+
$.preventDefault(), x($), f ?? (f = s.value.length - 2);
|
|
664
664
|
let h = JSON.parse($.dataTransfer.getData("items"));
|
|
665
665
|
if (h.find((N) => N.storage !== i.adapter)) {
|
|
666
666
|
alert("Moving items between different storages is not supported yet.");
|
|
@@ -670,9 +670,9 @@ const Je = (p, e) => {
|
|
|
670
670
|
type: "move",
|
|
671
671
|
items: { from: h, to: s.value[f] ?? { path: i.adapter + "://" } }
|
|
672
672
|
});
|
|
673
|
-
}, w = ($) => {
|
|
674
|
-
$.preventDefault(), g() ? ($.dataTransfer.dropEffect = "copy", $.currentTarget.classList.add("bg-blue-200", "dark:bg-slate-500")) : ($.dataTransfer.dropEffect = "none", $.dataTransfer.effectAllowed = "none");
|
|
675
673
|
}, y = ($) => {
|
|
674
|
+
$.preventDefault(), g() ? ($.dataTransfer.dropEffect = "copy", $.currentTarget.classList.add("bg-blue-200", "dark:bg-slate-500")) : ($.dataTransfer.dropEffect = "none", $.dataTransfer.effectAllowed = "none");
|
|
675
|
+
}, x = ($) => {
|
|
676
676
|
$.preventDefault(), $.currentTarget.classList.remove("bg-blue-200", "dark:bg-slate-500"), g() && $.currentTarget.classList.remove("bg-blue-200", "dark:bg-slate-500");
|
|
677
677
|
}, E = () => {
|
|
678
678
|
c.value == "" && d();
|
|
@@ -684,8 +684,8 @@ const Je = (p, e) => {
|
|
|
684
684
|
role: "tooltip"
|
|
685
685
|
}, [
|
|
686
686
|
(n(), m("svg", {
|
|
687
|
-
onDragover: f[0] || (f[0] = (h) =>
|
|
688
|
-
onDragleave: f[1] || (f[1] = (h) =>
|
|
687
|
+
onDragover: f[0] || (f[0] = (h) => y(h)),
|
|
688
|
+
onDragleave: f[1] || (f[1] = (h) => x(h)),
|
|
689
689
|
onDrop: f[2] || (f[2] = (h) => _(h)),
|
|
690
690
|
onClick: f[3] || (f[3] = (h) => {
|
|
691
691
|
var N;
|
|
@@ -727,10 +727,10 @@ const Je = (p, e) => {
|
|
|
727
727
|
viewBox: "-40 -40 580 580",
|
|
728
728
|
fill: "currentColor"
|
|
729
729
|
}, Pt))
|
|
730
|
-
], 8,
|
|
730
|
+
], 8, It)),
|
|
731
731
|
r.value ? (n(), m("div", os, [
|
|
732
732
|
rs,
|
|
733
|
-
|
|
733
|
+
I(t("input", {
|
|
734
734
|
ref_key: "searchInput",
|
|
735
735
|
ref: o,
|
|
736
736
|
onKeydown: Q(d, ["esc"]),
|
|
@@ -757,8 +757,8 @@ const Je = (p, e) => {
|
|
|
757
757
|
onClick: Y(l, ["self"])
|
|
758
758
|
}, [
|
|
759
759
|
(n(), m("svg", {
|
|
760
|
-
onDragover: f[6] || (f[6] = (h) =>
|
|
761
|
-
onDragleave: f[7] || (f[7] = (h) =>
|
|
760
|
+
onDragover: f[6] || (f[6] = (h) => y(h)),
|
|
761
|
+
onDragleave: f[7] || (f[7] = (h) => x(h)),
|
|
762
762
|
onDrop: f[8] || (f[8] = (h) => _(h, -1)),
|
|
763
763
|
onClick: f[9] || (f[9] = (h) => a(i).emitter.emit("vf-fetch", { params: { q: "index", adapter: a(i).data.adapter } })),
|
|
764
764
|
class: "h-6 w-6 p-1 rounded text-slate-700 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-gray-800 cursor-pointer",
|
|
@@ -767,11 +767,11 @@ const Je = (p, e) => {
|
|
|
767
767
|
fill: "currentColor"
|
|
768
768
|
}, Jt, 32)),
|
|
769
769
|
t("div", Xt, [
|
|
770
|
-
(n(!0), m(U, null,
|
|
770
|
+
(n(!0), m(U, null, q(s.value, (h, N) => (n(), m("div", { key: N }, [
|
|
771
771
|
Qt,
|
|
772
772
|
t("span", {
|
|
773
|
-
onDragover: (R) => N === s.value.length - 1 ||
|
|
774
|
-
onDragleave: (R) => N === s.value.length - 1 ||
|
|
773
|
+
onDragover: (R) => N === s.value.length - 1 || y(R),
|
|
774
|
+
onDragleave: (R) => N === s.value.length - 1 || x(R),
|
|
775
775
|
onDrop: (R) => N === s.value.length - 1 || _(R, N),
|
|
776
776
|
class: "px-1.5 py-1 text-slate-700 dark:text-slate-200 hover:bg-neutral-100 dark:hover:bg-gray-800 rounded cursor-pointer",
|
|
777
777
|
title: h.basename,
|
|
@@ -843,8 +843,8 @@ const Je = (p, e) => {
|
|
|
843
843
|
"leave-to-class": "opacity-0"
|
|
844
844
|
}, {
|
|
845
845
|
default: A(() => [
|
|
846
|
-
(n(!0), m(U, null,
|
|
847
|
-
onClick: (
|
|
846
|
+
(n(!0), m(U, null, q(o.value, (g, _) => (n(), m("div", {
|
|
847
|
+
onClick: (y) => u(_),
|
|
848
848
|
key: g,
|
|
849
849
|
class: z([i(g.type), "inline-block mx-auto my-0.5 py-0.5 px-2 min-w-max bg-gray-50 dark:bg-gray-600 border text-xs sm:text-sm rounded cursor-pointer"])
|
|
850
850
|
}, v(g.label), 11, _s))), 128))
|
|
@@ -916,7 +916,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
916
916
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
917
917
|
}, null, -1), Rs = [
|
|
918
918
|
Hs
|
|
919
|
-
],
|
|
919
|
+
], Is = {
|
|
920
920
|
key: 1,
|
|
921
921
|
xmlns: "http://www.w3.org/2000/svg",
|
|
922
922
|
class: "h-5 w-5 text-neutral-500",
|
|
@@ -924,12 +924,12 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
924
924
|
viewBox: "0 0 24 24",
|
|
925
925
|
stroke: "currentColor",
|
|
926
926
|
"stroke-width": "1"
|
|
927
|
-
},
|
|
927
|
+
}, qs = /* @__PURE__ */ t("path", {
|
|
928
928
|
"stroke-linecap": "round",
|
|
929
929
|
"stroke-linejoin": "round",
|
|
930
930
|
d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
|
|
931
931
|
}, null, -1), Ps = [
|
|
932
|
-
|
|
932
|
+
qs
|
|
933
933
|
], Ws = { class: "overflow-ellipsis overflow-hidden whitespace-nowrap" }, Gs = { class: "col-span-2 text-center" }, Ys = { class: "col-span-3 overflow-ellipsis overflow-hidden whitespace-nowrap" }, Ks = ["onDblclick", "onContextmenu", "onDragstart", "onDragover", "onDrop", "data-type", "data-item", "data-index"], Js = { class: "relative" }, Xs = {
|
|
934
934
|
key: 0,
|
|
935
935
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -967,17 +967,17 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
967
967
|
setup(p) {
|
|
968
968
|
const e = F("ServiceContainer"), { t: s } = e.i18n;
|
|
969
969
|
e.storage;
|
|
970
|
-
const r = (
|
|
970
|
+
const r = (w) => w == null ? void 0 : w.substring(0, 3), o = k(null), i = k(null), u = k(0), d = k(null), l = Math.floor(Math.random() * 2 ** 32), c = k("");
|
|
971
971
|
let g;
|
|
972
972
|
e.emitter.on("vf-fullscreen-toggle", () => {
|
|
973
973
|
o.value.style.height = null;
|
|
974
|
-
}), e.emitter.on("vf-search-query", ({ newQuery:
|
|
975
|
-
c.value =
|
|
974
|
+
}), e.emitter.on("vf-search-query", ({ newQuery: w }) => {
|
|
975
|
+
c.value = w, w ? e.emitter.emit("vf-fetch", {
|
|
976
976
|
params: {
|
|
977
977
|
q: "search",
|
|
978
978
|
adapter: e.data.adapter,
|
|
979
979
|
path: e.data.dirname,
|
|
980
|
-
filter:
|
|
980
|
+
filter: w
|
|
981
981
|
},
|
|
982
982
|
onSuccess: (D) => {
|
|
983
983
|
D.files.length || e.emitter.emit("vf-toast-push", { label: s("No search result found.") });
|
|
@@ -985,11 +985,11 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
985
985
|
}) : e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.data.adapter, path: e.data.dirname } });
|
|
986
986
|
});
|
|
987
987
|
let _ = null;
|
|
988
|
-
const
|
|
988
|
+
const y = () => {
|
|
989
989
|
_ && clearTimeout(_);
|
|
990
|
-
},
|
|
991
|
-
|
|
992
|
-
}, $ = (
|
|
990
|
+
}, x = k(!0), E = (w) => {
|
|
991
|
+
w.touches.length > 1 && (x.value ? (d.value.stop(), e.emitter.emit("vf-toast-push", { label: s("Drag&Drop: off") })) : (d.value.start(), e.emitter.emit("vf-toast-push", { label: s("Drag&Drop: on") }), e.emitter.emit("vf-explorer-update")), x.value = !x.value);
|
|
992
|
+
}, $ = (w) => {
|
|
993
993
|
_ = setTimeout(() => {
|
|
994
994
|
const D = new MouseEvent("contextmenu", {
|
|
995
995
|
bubbles: !0,
|
|
@@ -997,35 +997,35 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
997
997
|
view: window,
|
|
998
998
|
button: 2,
|
|
999
999
|
buttons: 0,
|
|
1000
|
-
clientX:
|
|
1001
|
-
clientY:
|
|
1000
|
+
clientX: w.target.getBoundingClientRect().x,
|
|
1001
|
+
clientY: w.target.getBoundingClientRect().y
|
|
1002
1002
|
});
|
|
1003
|
-
|
|
1003
|
+
w.target.dispatchEvent(D);
|
|
1004
1004
|
}, 500);
|
|
1005
|
-
}, f = (
|
|
1006
|
-
|
|
1007
|
-
}, h = ie({ active: !1, column: "", order: "" }), N = (
|
|
1005
|
+
}, f = (w) => {
|
|
1006
|
+
w.type === "dir" ? (e.emitter.emit("vf-search-exit"), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.data.adapter, path: w.path } })) : e.emitter.emit("vf-modal-show", { type: "preview", adapter: e.data.adapter, item: w });
|
|
1007
|
+
}, h = ie({ active: !1, column: "", order: "" }), N = (w = !0) => {
|
|
1008
1008
|
let D = [...e.data.files], C = h.column, j = h.order == "asc" ? 1 : -1;
|
|
1009
|
-
if (!
|
|
1009
|
+
if (!w)
|
|
1010
1010
|
return D;
|
|
1011
1011
|
const S = (b, L) => typeof b == "string" && typeof L == "string" ? b.toLowerCase().localeCompare(L.toLowerCase()) : b < L ? -1 : b > L ? 1 : 0;
|
|
1012
1012
|
return h.active && (D = D.slice().sort((b, L) => S(b[C], L[C]) * j)), D;
|
|
1013
|
-
}, R = (
|
|
1014
|
-
h.active && h.column ==
|
|
1015
|
-
}, K = () => d.value.getSelection().map((
|
|
1016
|
-
if (
|
|
1017
|
-
return
|
|
1018
|
-
|
|
1019
|
-
}, se = (
|
|
1020
|
-
|
|
1021
|
-
let C = JSON.parse(
|
|
1013
|
+
}, R = (w) => {
|
|
1014
|
+
h.active && h.column == w ? (h.active = h.order == "asc", h.column = w, h.order = "desc") : (h.active = !0, h.column = w, h.order = "asc");
|
|
1015
|
+
}, K = () => d.value.getSelection().map((w) => JSON.parse(w.dataset.item)), te = (w, D) => {
|
|
1016
|
+
if (w.altKey || w.ctrlKey || w.metaKey)
|
|
1017
|
+
return w.preventDefault(), !1;
|
|
1018
|
+
w.dataTransfer.setDragImage(i.value, 0, 15), w.dataTransfer.effectAllowed = "all", w.dataTransfer.dropEffect = "copy", w.dataTransfer.setData("items", JSON.stringify(K()));
|
|
1019
|
+
}, se = (w, D) => {
|
|
1020
|
+
w.preventDefault();
|
|
1021
|
+
let C = JSON.parse(w.dataTransfer.getData("items"));
|
|
1022
1022
|
if (C.find((j) => j.storage !== e.adapter)) {
|
|
1023
1023
|
alert("Moving items between different storages is not supported yet.");
|
|
1024
1024
|
return;
|
|
1025
1025
|
}
|
|
1026
1026
|
e.emitter.emit("vf-modal-show", { type: "move", items: { from: C, to: D } });
|
|
1027
|
-
}, ae = (
|
|
1028
|
-
|
|
1027
|
+
}, ae = (w, D) => {
|
|
1028
|
+
w.preventDefault(), !D || D.type !== "dir" || d.value.getSelection().find((C) => C == w.currentTarget) ? (w.dataTransfer.dropEffect = "none", w.dataTransfer.effectAllowed = "none") : w.dataTransfer.dropEffect = "copy";
|
|
1029
1029
|
}, oe = () => {
|
|
1030
1030
|
d.value = new Ve({
|
|
1031
1031
|
area: o.value,
|
|
@@ -1036,16 +1036,16 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1036
1036
|
d.value.clearSelection(), d.value.setSettings({
|
|
1037
1037
|
selectables: document.getElementsByClassName("vf-item-" + l)
|
|
1038
1038
|
});
|
|
1039
|
-
})), d.value.subscribe("predragstart", ({ event:
|
|
1039
|
+
})), d.value.subscribe("predragstart", ({ event: w, isDragging: D }) => {
|
|
1040
1040
|
if (D)
|
|
1041
1041
|
u.value = d.value.getSelection().length, d.value.break();
|
|
1042
1042
|
else {
|
|
1043
|
-
const C =
|
|
1043
|
+
const C = w.target.offsetWidth - w.offsetX, j = w.target.offsetHeight - w.offsetY;
|
|
1044
1044
|
C < 15 && j < 15 && (d.value.clearSelection(), d.value.break());
|
|
1045
1045
|
}
|
|
1046
|
-
}), d.value.subscribe("predragmove", ({ isDragging:
|
|
1047
|
-
|
|
1048
|
-
}), d.value.subscribe("callback", ({ items:
|
|
1046
|
+
}), d.value.subscribe("predragmove", ({ isDragging: w }) => {
|
|
1047
|
+
w && d.value.break();
|
|
1048
|
+
}), d.value.subscribe("callback", ({ items: w, event: D, isDragging: C }) => {
|
|
1049
1049
|
e.emitter.emit("vf-nodes-selected", K()), u.value = d.value.getSelection().length;
|
|
1050
1050
|
});
|
|
1051
1051
|
};
|
|
@@ -1057,14 +1057,14 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1057
1057
|
de(() => e.view, () => e.emitter.emit("vf-explorer-update"));
|
|
1058
1058
|
}), ke(() => {
|
|
1059
1059
|
g.destroy();
|
|
1060
|
-
}), (
|
|
1060
|
+
}), (w, D) => (n(), m("div", ys, [
|
|
1061
1061
|
a(e).view == "list" || c.value.length ? (n(), m("div", xs, [
|
|
1062
1062
|
t("div", {
|
|
1063
1063
|
onClick: D[0] || (D[0] = (C) => R("basename")),
|
|
1064
1064
|
class: "col-span-7 py-1 leading-6 hover:bg-neutral-100 bg-neutral-50 dark:bg-gray-800 dark:hover:bg-gray-700/10 flex items-center pl-1"
|
|
1065
1065
|
}, [
|
|
1066
1066
|
V(v(a(s)("Name")) + " ", 1),
|
|
1067
|
-
|
|
1067
|
+
I(H(ne, {
|
|
1068
1068
|
direction: h.order == "asc" ? "down" : "up"
|
|
1069
1069
|
}, null, 8, ["direction"]), [
|
|
1070
1070
|
[re, h.active && h.column == "basename"]
|
|
@@ -1076,7 +1076,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1076
1076
|
class: "col-span-2 py-1 leading-6 hover:bg-neutral-100 bg-neutral-50 dark:bg-gray-800 dark:hover:bg-gray-700/10 flex items-center justify-center border-l border-r dark:border-gray-700"
|
|
1077
1077
|
}, [
|
|
1078
1078
|
V(v(a(s)("Size")) + " ", 1),
|
|
1079
|
-
|
|
1079
|
+
I(H(ne, {
|
|
1080
1080
|
direction: h.order == "asc" ? "down" : "up"
|
|
1081
1081
|
}, null, 8, ["direction"]), [
|
|
1082
1082
|
[re, h.active && h.column == "file_size"]
|
|
@@ -1088,7 +1088,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1088
1088
|
class: "col-span-3 py-1 leading-6 hover:bg-neutral-100 bg-neutral-50 dark:bg-gray-800 dark:hover:bg-gray-700/10 flex items-center justify-center"
|
|
1089
1089
|
}, [
|
|
1090
1090
|
V(v(a(s)("Date")) + " ", 1),
|
|
1091
|
-
|
|
1091
|
+
I(H(ne, {
|
|
1092
1092
|
direction: h.order == "asc" ? "down" : "up"
|
|
1093
1093
|
}, null, 8, ["direction"]), [
|
|
1094
1094
|
[re, h.active && h.column == "last_modified"]
|
|
@@ -1100,7 +1100,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1100
1100
|
class: "col-span-5 py-1 leading-6 hover:bg-neutral-100 bg-neutral-50 dark:bg-gray-800 dark:hover:bg-gray-700/10 flex items-center justify-center border-l dark:border-gray-700"
|
|
1101
1101
|
}, [
|
|
1102
1102
|
V(v(a(s)("Filepath")) + " ", 1),
|
|
1103
|
-
|
|
1103
|
+
I(H(ne, {
|
|
1104
1104
|
direction: h.order == "asc" ? "down" : "up"
|
|
1105
1105
|
}, null, 8, ["direction"]), [
|
|
1106
1106
|
[re, h.active && h.column == "path"]
|
|
@@ -1124,10 +1124,10 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1124
1124
|
ref_key: "selectorArea",
|
|
1125
1125
|
ref: o
|
|
1126
1126
|
}, [
|
|
1127
|
-
c.value.length ? (n(!0), m(U, { key: 0 },
|
|
1127
|
+
c.value.length ? (n(!0), m(U, { key: 0 }, q(N(), (C, j) => (n(), m("div", {
|
|
1128
1128
|
onDblclick: (S) => f(C),
|
|
1129
1129
|
onTouchstart: D[4] || (D[4] = (S) => $(S)),
|
|
1130
|
-
onTouchend: D[5] || (D[5] = (S) =>
|
|
1130
|
+
onTouchend: D[5] || (D[5] = (S) => y()),
|
|
1131
1131
|
onContextmenu: Y((S) => a(e).emitter.emit("vf-contextmenu-show", { event: S, area: o.value, items: K(), target: C }), ["prevent"]),
|
|
1132
1132
|
class: z(["vf-item-" + a(l), "grid grid-cols-1 border hover:bg-neutral-50 dark:hover:bg-gray-700 border-transparent my-0.5 w-full select-none"]),
|
|
1133
1133
|
"data-type": C.type,
|
|
@@ -1142,11 +1142,11 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1142
1142
|
t("div", Vs, v(C.path), 1)
|
|
1143
1143
|
])
|
|
1144
1144
|
], 42, Ss))), 256)) : M("", !0),
|
|
1145
|
-
a(e).view === "list" && !c.value.length ? (n(!0), m(U, { key: 1 },
|
|
1145
|
+
a(e).view === "list" && !c.value.length ? (n(!0), m(U, { key: 1 }, q(N(), (C, j) => (n(), m("div", {
|
|
1146
1146
|
draggable: "true",
|
|
1147
1147
|
onDblclick: (S) => f(C),
|
|
1148
1148
|
onTouchstart: D[6] || (D[6] = (S) => $(S)),
|
|
1149
|
-
onTouchend: D[7] || (D[7] = (S) =>
|
|
1149
|
+
onTouchend: D[7] || (D[7] = (S) => y()),
|
|
1150
1150
|
onContextmenu: Y((S) => a(e).emitter.emit("vf-contextmenu-show", { event: S, area: o.value, items: K(), target: C }), ["prevent"]),
|
|
1151
1151
|
onDragstart: (S) => te(S),
|
|
1152
1152
|
onDragover: (S) => ae(S, C),
|
|
@@ -1158,18 +1158,18 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1158
1158
|
}, [
|
|
1159
1159
|
t("div", Bs, [
|
|
1160
1160
|
t("div", zs, [
|
|
1161
|
-
C.type === "dir" ? (n(), m("svg", Us, Rs)) : (n(), m("svg",
|
|
1161
|
+
C.type === "dir" ? (n(), m("svg", Us, Rs)) : (n(), m("svg", Is, Ps)),
|
|
1162
1162
|
t("span", Ws, v(C.basename), 1)
|
|
1163
1163
|
]),
|
|
1164
1164
|
t("div", Gs, v(C.file_size ? a(e).filesize(C.file_size) : ""), 1),
|
|
1165
1165
|
t("div", Ys, v(a(we)(C.last_modified)), 1)
|
|
1166
1166
|
])
|
|
1167
1167
|
], 42, Ns))), 256)) : M("", !0),
|
|
1168
|
-
a(e).view === "grid" && !c.value.length ? (n(!0), m(U, { key: 2 },
|
|
1168
|
+
a(e).view === "grid" && !c.value.length ? (n(!0), m(U, { key: 2 }, q(N(!1), (C, j) => (n(), m("div", {
|
|
1169
1169
|
draggable: "true",
|
|
1170
1170
|
onDblclick: (S) => f(C),
|
|
1171
1171
|
onTouchstart: D[8] || (D[8] = (S) => $(S)),
|
|
1172
|
-
onTouchend: D[9] || (D[9] = (S) =>
|
|
1172
|
+
onTouchend: D[9] || (D[9] = (S) => y()),
|
|
1173
1173
|
onContextmenu: Y((S) => a(e).emitter.emit("vf-contextmenu-show", { event: S, area: o.value, items: K(), target: C }), ["prevent"]),
|
|
1174
1174
|
onDragstart: (S) => te(S),
|
|
1175
1175
|
onDragover: (S) => ae(S, C),
|
|
@@ -1196,9 +1196,9 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1196
1196
|
H(bs)
|
|
1197
1197
|
]));
|
|
1198
1198
|
}
|
|
1199
|
-
}), ia = ["
|
|
1199
|
+
}), ia = ["href", "download"], da = ["onClick"], ca = {
|
|
1200
1200
|
name: "VFContextMenu"
|
|
1201
|
-
},
|
|
1201
|
+
}, ua = /* @__PURE__ */ Object.assign(ca, {
|
|
1202
1202
|
setup(p) {
|
|
1203
1203
|
const e = F("ServiceContainer"), { t: s } = e.i18n, r = k(null), o = k([]), i = k(""), u = ie({
|
|
1204
1204
|
active: !1,
|
|
@@ -1256,8 +1256,6 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1256
1256
|
link: ee(() => e.requester.getDownloadUrl(e.data.adapter, o.value[0])),
|
|
1257
1257
|
title: () => s("Download"),
|
|
1258
1258
|
action: () => {
|
|
1259
|
-
const _ = e.requester.getDownloadUrl(e.data.adapter, o.value[0]);
|
|
1260
|
-
e.emitter.emit("vf-download", _);
|
|
1261
1259
|
}
|
|
1262
1260
|
},
|
|
1263
1261
|
archive: {
|
|
@@ -1286,56 +1284,59 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1286
1284
|
};
|
|
1287
1285
|
e.emitter.on("vf-search-query", ({ newQuery: _ }) => {
|
|
1288
1286
|
i.value = _;
|
|
1289
|
-
}), e.emitter.on("vf-contextmenu-show", ({ event: _, area:
|
|
1287
|
+
}), e.emitter.on("vf-contextmenu-show", ({ event: _, area: y, items: x, target: E = null }) => {
|
|
1290
1288
|
if (u.items = [], i.value)
|
|
1291
1289
|
if (E)
|
|
1292
1290
|
u.items.push(l.openDir), e.emitter.emit("vf-context-selected", [E]);
|
|
1293
1291
|
else
|
|
1294
1292
|
return;
|
|
1295
1293
|
else
|
|
1296
|
-
!E && !i.value ? (u.items.push(l.refresh), u.items.push(l.newfolder), e.emitter.emit("vf-context-selected", [])) :
|
|
1297
|
-
g(_,
|
|
1294
|
+
!E && !i.value ? (u.items.push(l.refresh), u.items.push(l.newfolder), e.emitter.emit("vf-context-selected", [])) : x.length > 1 && x.some(($) => $.path === E.path) ? (u.items.push(l.refresh), u.items.push(l.archive), u.items.push(l.delete), e.emitter.emit("vf-context-selected", x)) : (E.type == "dir" ? u.items.push(l.open) : (u.items.push(l.preview), u.items.push(l.download)), u.items.push(l.rename), E.mime_type == "application/zip" ? u.items.push(l.unarchive) : u.items.push(l.archive), u.items.push(l.delete), e.emitter.emit("vf-context-selected", [E]));
|
|
1295
|
+
g(_, y);
|
|
1298
1296
|
}), e.emitter.on("vf-contextmenu-hide", () => {
|
|
1299
1297
|
u.active = !1;
|
|
1300
1298
|
});
|
|
1301
|
-
const g = (_,
|
|
1299
|
+
const g = (_, y) => {
|
|
1302
1300
|
u.active = !0, ce(() => {
|
|
1303
|
-
const
|
|
1304
|
-
let $ = _.pageX -
|
|
1301
|
+
const x = e.root.getBoundingClientRect(), E = y.getBoundingClientRect();
|
|
1302
|
+
let $ = _.pageX - x.left, f = _.pageY - x.top, h = r.value.offsetHeight, N = r.value.offsetWidth;
|
|
1305
1303
|
$ = E.right - _.pageX + window.scrollX < N ? $ - N : $, f = E.bottom - _.pageY + window.scrollY < h ? f - h : f, u.positions = {
|
|
1306
1304
|
left: $ + "px",
|
|
1307
1305
|
top: f + "px"
|
|
1308
1306
|
};
|
|
1309
1307
|
});
|
|
1310
1308
|
};
|
|
1311
|
-
return (_,
|
|
1309
|
+
return (_, y) => u.active ? (n(), m("ul", {
|
|
1312
1310
|
key: 0,
|
|
1313
1311
|
class: "z-30 absolute text-xs bg-neutral-50 dark:bg-gray-800 text-gray-700 dark:text-gray-200 border border-neutral-300 dark:border-gray-600 shadow rounded select-none",
|
|
1314
1312
|
ref_key: "contextmenu",
|
|
1315
1313
|
ref: r,
|
|
1316
1314
|
style: be(u.positions)
|
|
1317
1315
|
}, [
|
|
1318
|
-
(n(!0), m(U, null,
|
|
1319
|
-
class: "
|
|
1320
|
-
key:
|
|
1321
|
-
onClick: (E) => c(y)
|
|
1316
|
+
(n(!0), m(U, null, q(d.value, (x) => (n(), m("li", {
|
|
1317
|
+
class: "cursor-pointer hover:bg-neutral-200 dark:hover:bg-gray-700",
|
|
1318
|
+
key: x.title
|
|
1322
1319
|
}, [
|
|
1323
|
-
|
|
1320
|
+
x.link ? (n(), m("a", {
|
|
1324
1321
|
key: 0,
|
|
1322
|
+
class: "block pl-2 pr-3 py-1",
|
|
1325
1323
|
target: "_blank",
|
|
1326
|
-
href:
|
|
1327
|
-
download:
|
|
1324
|
+
href: x.link,
|
|
1325
|
+
download: x.link,
|
|
1326
|
+
onClick: y[0] || (y[0] = (E) => a(e).emitter.emit("vf-contextmenu-hide"))
|
|
1328
1327
|
}, [
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1328
|
+
t("span", null, v(x.title()), 1)
|
|
1329
|
+
], 8, ia)) : (n(), m("div", {
|
|
1330
|
+
key: 1,
|
|
1331
|
+
class: "pl-2 pr-3 py-1",
|
|
1332
|
+
onClick: (E) => c(x)
|
|
1333
|
+
}, [
|
|
1334
|
+
t("span", null, v(x.title()), 1)
|
|
1335
|
+
], 8, da))
|
|
1336
|
+
]))), 128))
|
|
1336
1337
|
], 4)) : M("", !0);
|
|
1337
1338
|
}
|
|
1338
|
-
}),
|
|
1339
|
+
}), ma = { class: "p-1 text-xs border-t border-neutral-300 dark:border-gray-700/50 flex justify-between select-none" }, va = { class: "flex leading-5 items-center" }, pa = ["aria-label"], ha = /* @__PURE__ */ t("svg", {
|
|
1339
1340
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1340
1341
|
class: "h-5 w-5",
|
|
1341
1342
|
fill: "none",
|
|
@@ -1348,9 +1349,9 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1348
1349
|
"stroke-linejoin": "round",
|
|
1349
1350
|
d: "M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4"
|
|
1350
1351
|
})
|
|
1351
|
-
], -1),
|
|
1352
|
-
|
|
1353
|
-
],
|
|
1352
|
+
], -1), fa = [
|
|
1353
|
+
ha
|
|
1354
|
+
], ga = ["value"], _a = { class: "ml-3" }, ka = { key: 0 }, ba = { class: "ml-1" }, ya = { class: "flex leading-5 items-center justify-end" }, xa = ["disabled"], wa = ["aria-label"], $a = /* @__PURE__ */ t("svg", {
|
|
1354
1355
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1355
1356
|
class: "h-5 w-5 stroke-slate-500 cursor-pointer",
|
|
1356
1357
|
fill: "none",
|
|
@@ -1363,11 +1364,11 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1363
1364
|
"stroke-linejoin": "round",
|
|
1364
1365
|
d: "M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
1365
1366
|
})
|
|
1366
|
-
], -1),
|
|
1367
|
-
|
|
1368
|
-
],
|
|
1367
|
+
], -1), Ca = [
|
|
1368
|
+
$a
|
|
1369
|
+
], Sa = {
|
|
1369
1370
|
name: "VFStatusbar"
|
|
1370
|
-
},
|
|
1371
|
+
}, Ma = /* @__PURE__ */ Object.assign(Sa, {
|
|
1371
1372
|
setup(p) {
|
|
1372
1373
|
const e = F("ServiceContainer"), { t: s } = e.i18n, { setStore: r } = e.storage, o = k(0), i = () => {
|
|
1373
1374
|
e.emitter.emit("vf-search-exit"), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.adapter } }), r("adapter", e.adapter);
|
|
@@ -1383,48 +1384,48 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1383
1384
|
const l = e.selectButton.multiple ? e.selectedItems.length > 0 : e.selectedItems.length === 1;
|
|
1384
1385
|
return e.selectButton.active && l;
|
|
1385
1386
|
});
|
|
1386
|
-
return (l, c) => (n(), m("div",
|
|
1387
|
-
t("div",
|
|
1387
|
+
return (l, c) => (n(), m("div", ma, [
|
|
1388
|
+
t("div", va, [
|
|
1388
1389
|
t("div", {
|
|
1389
1390
|
class: "mx-2",
|
|
1390
1391
|
"aria-label": a(s)("Storage"),
|
|
1391
1392
|
"data-microtip-position": "top-right",
|
|
1392
1393
|
role: "tooltip"
|
|
1393
|
-
},
|
|
1394
|
-
|
|
1394
|
+
}, fa, 8, pa),
|
|
1395
|
+
I(t("select", {
|
|
1395
1396
|
"onUpdate:modelValue": c[0] || (c[0] = (g) => a(e).adapter = g),
|
|
1396
1397
|
onChange: i,
|
|
1397
1398
|
class: "py-0.5 text-sm text-slate-500 border dark:border-gray-600 dark:text-neutral-50 dark:bg-gray-700 rounded pl-2 pr-8"
|
|
1398
1399
|
}, [
|
|
1399
|
-
(n(!0), m(U, null,
|
|
1400
|
+
(n(!0), m(U, null, q(a(e).data.storages, (g) => (n(), m("option", { value: g }, v(g), 9, ga))), 256))
|
|
1400
1401
|
], 544), [
|
|
1401
1402
|
[pe, a(e).adapter]
|
|
1402
1403
|
]),
|
|
1403
|
-
t("div",
|
|
1404
|
-
u.value.length ? (n(), m("span",
|
|
1405
|
-
t("span",
|
|
1404
|
+
t("div", _a, [
|
|
1405
|
+
u.value.length ? (n(), m("span", ka, v(a(e).data.files.length) + " items found. ", 1)) : M("", !0),
|
|
1406
|
+
t("span", ba, v(o.value > 0 ? a(s)("%s item(s) selected.", o.value) : ""), 1)
|
|
1406
1407
|
])
|
|
1407
1408
|
]),
|
|
1408
|
-
t("div",
|
|
1409
|
+
t("div", ya, [
|
|
1409
1410
|
a(e).selectButton.active ? (n(), m("button", {
|
|
1410
1411
|
key: 0,
|
|
1411
1412
|
class: z(["vf-btn py-0 vf-btn-primary", { disabled: !d.value }]),
|
|
1412
1413
|
disabled: !d.value,
|
|
1413
1414
|
onClick: c[1] || (c[1] = (g) => a(e).selectButton.click(a(e).selectedItems, g))
|
|
1414
|
-
}, v(a(s)("Select")), 11,
|
|
1415
|
+
}, v(a(s)("Select")), 11, xa)) : M("", !0),
|
|
1415
1416
|
t("span", {
|
|
1416
1417
|
class: "mr-1",
|
|
1417
1418
|
"aria-label": a(s)("About"),
|
|
1418
1419
|
"data-microtip-position": "top-left",
|
|
1419
1420
|
role: "tooltip",
|
|
1420
1421
|
onClick: c[2] || (c[2] = (g) => a(e).emitter.emit("vf-modal-show", { type: "about" }))
|
|
1421
|
-
},
|
|
1422
|
+
}, Ca, 8, wa)
|
|
1422
1423
|
])
|
|
1423
1424
|
]));
|
|
1424
1425
|
}
|
|
1425
|
-
}),
|
|
1426
|
+
}), Ea = {
|
|
1426
1427
|
name: "VueFinder"
|
|
1427
|
-
},
|
|
1428
|
+
}, Da = /* @__PURE__ */ Object.assign(Ea, {
|
|
1428
1429
|
props: {
|
|
1429
1430
|
id: {
|
|
1430
1431
|
type: String,
|
|
@@ -1502,7 +1503,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1502
1503
|
let l;
|
|
1503
1504
|
return o.emitter.on("vf-fetch-abort", () => {
|
|
1504
1505
|
l.abort(), o.loading = !1;
|
|
1505
|
-
}), o.emitter.on("vf-fetch", ({ params: c, body: g = null, onSuccess: _ = null, onError:
|
|
1506
|
+
}), o.emitter.on("vf-fetch", ({ params: c, body: g = null, onSuccess: _ = null, onError: y = null, noCloseModal: x = !1 }) => {
|
|
1506
1507
|
["index", "search"].includes(c.q) && (l && l.abort(), o.loading = !0), l = new AbortController();
|
|
1507
1508
|
const E = l.signal;
|
|
1508
1509
|
o.requester.send({
|
|
@@ -1512,9 +1513,9 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1512
1513
|
body: g,
|
|
1513
1514
|
abortSignal: E
|
|
1514
1515
|
}).then(($) => {
|
|
1515
|
-
o.adapter = $.adapter, o.persist && (o.path = $.dirname, i("path", o.path)), ["index", "search"].includes(c.q) && (o.loading = !1),
|
|
1516
|
+
o.adapter = $.adapter, o.persist && (o.path = $.dirname, i("path", o.path)), ["index", "search"].includes(c.q) && (o.loading = !1), x || o.emitter.emit("vf-modal-close"), d($), _ && _($);
|
|
1516
1517
|
}).catch(($) => {
|
|
1517
|
-
console.error($),
|
|
1518
|
+
console.error($), y && y($);
|
|
1518
1519
|
});
|
|
1519
1520
|
}), o.emitter.on("vf-download", (c) => {
|
|
1520
1521
|
const g = document.createElement("a");
|
|
@@ -1542,7 +1543,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1542
1543
|
H(Vt),
|
|
1543
1544
|
H(cs),
|
|
1544
1545
|
H(la),
|
|
1545
|
-
H(
|
|
1546
|
+
H(Ma)
|
|
1546
1547
|
], 38),
|
|
1547
1548
|
H(Ae, { name: "fade" }, {
|
|
1548
1549
|
default: A(() => [
|
|
@@ -1550,11 +1551,11 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1550
1551
|
]),
|
|
1551
1552
|
_: 1
|
|
1552
1553
|
}),
|
|
1553
|
-
H(
|
|
1554
|
+
H(ua)
|
|
1554
1555
|
], 2)
|
|
1555
1556
|
], 512));
|
|
1556
1557
|
}
|
|
1557
|
-
}),
|
|
1558
|
+
}), ja = /* @__PURE__ */ t("div", { class: "fixed inset-0 bg-gray-500 dark:bg-gray-600 dark:bg-opacity-75 bg-opacity-75 transition-opacity" }, null, -1), Aa = { class: "fixed z-10 inset-0 overflow-hidden" }, La = { class: "relative bg-white dark:bg-gray-800 rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-4xl md:max-w-2xl lg:max-w-3xl xl:max-w-5xl w-full" }, Ta = { class: "bg-white dark:bg-gray-800 px-4 pt-5 pb-4 sm:p-6 sm:pb-4" }, Fa = { class: "bg-gray-50 dark:bg-gray-800 dark:border-t dark:border-gray-700 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse" }, W = {
|
|
1558
1559
|
__name: "ModalLayout",
|
|
1559
1560
|
setup(p) {
|
|
1560
1561
|
const e = F("ServiceContainer");
|
|
@@ -1569,17 +1570,17 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1569
1570
|
onKeyup: r[1] || (r[1] = Q((o) => a(e).emitter.emit("vf-modal-close"), ["esc"])),
|
|
1570
1571
|
tabindex: "0"
|
|
1571
1572
|
}, [
|
|
1572
|
-
|
|
1573
|
-
t("div",
|
|
1573
|
+
ja,
|
|
1574
|
+
t("div", Aa, [
|
|
1574
1575
|
t("div", {
|
|
1575
1576
|
class: "flex items-end sm:items-center justify-center min-h-full p-4 text-center sm:p-0",
|
|
1576
1577
|
onMousedown: r[0] || (r[0] = Y((o) => a(e).emitter.emit("vf-modal-close"), ["self"]))
|
|
1577
1578
|
}, [
|
|
1578
|
-
t("div",
|
|
1579
|
-
t("div",
|
|
1579
|
+
t("div", La, [
|
|
1580
|
+
t("div", Ta, [
|
|
1580
1581
|
le(s.$slots, "default")
|
|
1581
1582
|
]),
|
|
1582
|
-
t("div",
|
|
1583
|
+
t("div", Fa, [
|
|
1583
1584
|
le(s.$slots, "buttons")
|
|
1584
1585
|
])
|
|
1585
1586
|
])
|
|
@@ -1587,7 +1588,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1587
1588
|
])
|
|
1588
1589
|
], 32));
|
|
1589
1590
|
}
|
|
1590
|
-
},
|
|
1591
|
+
}, Oa = ["aria-label"], Va = /* @__PURE__ */ t("svg", {
|
|
1591
1592
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1592
1593
|
fill: "none",
|
|
1593
1594
|
viewBox: "0 0 24 24",
|
|
@@ -1600,11 +1601,11 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1600
1601
|
"stroke-linejoin": "round",
|
|
1601
1602
|
d: "M6 18L18 6M6 6l12 12"
|
|
1602
1603
|
})
|
|
1603
|
-
], -1),
|
|
1604
|
-
|
|
1605
|
-
],
|
|
1604
|
+
], -1), Na = [
|
|
1605
|
+
Va
|
|
1606
|
+
], Ba = {
|
|
1606
1607
|
name: "Message"
|
|
1607
|
-
}, G = /* @__PURE__ */ Object.assign(
|
|
1608
|
+
}, G = /* @__PURE__ */ Object.assign(Ba, {
|
|
1608
1609
|
props: {
|
|
1609
1610
|
error: {
|
|
1610
1611
|
type: Boolean,
|
|
@@ -1633,11 +1634,11 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1633
1634
|
"aria-label": a(o)("Close"),
|
|
1634
1635
|
"data-microtip-position": "top-left",
|
|
1635
1636
|
role: "tooltip"
|
|
1636
|
-
},
|
|
1637
|
+
}, Na, 8, Oa)
|
|
1637
1638
|
], 2))
|
|
1638
1639
|
]));
|
|
1639
1640
|
}
|
|
1640
|
-
}),
|
|
1641
|
+
}), za = { class: "sm:flex sm:items-start" }, Ua = /* @__PURE__ */ t("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
|
|
1641
1642
|
/* @__PURE__ */ t("svg", {
|
|
1642
1643
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1643
1644
|
class: "h-6 w-6 stroke-red-600 dark:stroke-red-200",
|
|
@@ -1652,13 +1653,13 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1652
1653
|
d: "M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"
|
|
1653
1654
|
})
|
|
1654
1655
|
])
|
|
1655
|
-
], -1),
|
|
1656
|
+
], -1), Ha = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, Ra = {
|
|
1656
1657
|
class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
1657
1658
|
id: "modal-title"
|
|
1658
|
-
},
|
|
1659
|
+
}, Ia = { class: "mt-2" }, qa = { class: "text-sm text-gray-500" }, Pa = {
|
|
1659
1660
|
class: "text-gray-500 text-sm mb-1 overflow-auto vf-scrollbar",
|
|
1660
1661
|
style: { "max-height": "200px" }
|
|
1661
|
-
},
|
|
1662
|
+
}, Wa = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, Ga = {
|
|
1662
1663
|
key: 0,
|
|
1663
1664
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1664
1665
|
class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
|
|
@@ -1666,13 +1667,13 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1666
1667
|
viewBox: "0 0 24 24",
|
|
1667
1668
|
stroke: "currentColor",
|
|
1668
1669
|
"stroke-width": "1"
|
|
1669
|
-
},
|
|
1670
|
+
}, Ya = /* @__PURE__ */ t("path", {
|
|
1670
1671
|
"stroke-linecap": "round",
|
|
1671
1672
|
"stroke-linejoin": "round",
|
|
1672
1673
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
1673
|
-
}, null, -1),
|
|
1674
|
-
|
|
1675
|
-
],
|
|
1674
|
+
}, null, -1), Ka = [
|
|
1675
|
+
Ya
|
|
1676
|
+
], Ja = {
|
|
1676
1677
|
key: 1,
|
|
1677
1678
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1678
1679
|
class: "h-5 w-5 text-neutral-500",
|
|
@@ -1680,15 +1681,15 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1680
1681
|
viewBox: "0 0 24 24",
|
|
1681
1682
|
stroke: "currentColor",
|
|
1682
1683
|
"stroke-width": "1"
|
|
1683
|
-
},
|
|
1684
|
+
}, Xa = /* @__PURE__ */ t("path", {
|
|
1684
1685
|
"stroke-linecap": "round",
|
|
1685
1686
|
"stroke-linejoin": "round",
|
|
1686
1687
|
d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
|
|
1687
|
-
}, null, -1),
|
|
1688
|
-
|
|
1689
|
-
],
|
|
1688
|
+
}, null, -1), Qa = [
|
|
1689
|
+
Xa
|
|
1690
|
+
], Za = { class: "ml-1.5" }, eo = { class: "m-auto font-bold text-red-500 text-sm dark:text-red-200 text-center" }, to = {
|
|
1690
1691
|
name: "VFModalDelete"
|
|
1691
|
-
},
|
|
1692
|
+
}, so = /* @__PURE__ */ Object.assign(to, {
|
|
1692
1693
|
setup(p) {
|
|
1693
1694
|
const e = F("ServiceContainer");
|
|
1694
1695
|
e.storage;
|
|
@@ -1723,19 +1724,19 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1723
1724
|
onClick: d[1] || (d[1] = (l) => a(e).emitter.emit("vf-modal-close")),
|
|
1724
1725
|
class: "vf-btn vf-btn-secondary"
|
|
1725
1726
|
}, v(a(s)("Cancel")), 1),
|
|
1726
|
-
t("div",
|
|
1727
|
+
t("div", eo, v(a(s)("This action cannot be undone.")), 1)
|
|
1727
1728
|
]),
|
|
1728
1729
|
default: A(() => [
|
|
1729
|
-
t("div",
|
|
1730
|
-
|
|
1731
|
-
t("div",
|
|
1732
|
-
t("h3",
|
|
1733
|
-
t("div",
|
|
1734
|
-
t("p",
|
|
1735
|
-
t("div",
|
|
1736
|
-
(n(!0), m(U, null,
|
|
1737
|
-
l.type === "dir" ? (n(), m("svg",
|
|
1738
|
-
t("span",
|
|
1730
|
+
t("div", za, [
|
|
1731
|
+
Ua,
|
|
1732
|
+
t("div", Ha, [
|
|
1733
|
+
t("h3", Ra, v(a(s)("Delete files")), 1),
|
|
1734
|
+
t("div", Ia, [
|
|
1735
|
+
t("p", qa, v(a(s)("Are you sure you want to delete these files?")), 1),
|
|
1736
|
+
t("div", Pa, [
|
|
1737
|
+
(n(!0), m(U, null, q(r.value, (l) => (n(), m("p", Wa, [
|
|
1738
|
+
l.type === "dir" ? (n(), m("svg", Ga, Ka)) : (n(), m("svg", Ja, Qa)),
|
|
1739
|
+
t("span", Za, v(l.basename), 1)
|
|
1739
1740
|
]))), 256))
|
|
1740
1741
|
]),
|
|
1741
1742
|
o.value.length ? (n(), T(G, {
|
|
@@ -1755,7 +1756,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1755
1756
|
_: 1
|
|
1756
1757
|
}));
|
|
1757
1758
|
}
|
|
1758
|
-
}),
|
|
1759
|
+
}), ao = { class: "sm:flex sm:items-start" }, oo = /* @__PURE__ */ t("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
|
|
1759
1760
|
/* @__PURE__ */ t("svg", {
|
|
1760
1761
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1761
1762
|
class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
|
|
@@ -1770,12 +1771,12 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1770
1771
|
d: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
1771
1772
|
})
|
|
1772
1773
|
])
|
|
1773
|
-
], -1),
|
|
1774
|
+
], -1), ro = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, no = {
|
|
1774
1775
|
class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
1775
1776
|
id: "modal-title"
|
|
1776
|
-
},
|
|
1777
|
+
}, lo = { class: "mt-2" }, io = { class: "text-sm text-gray-500" }, co = {
|
|
1777
1778
|
name: "VFModalMessage"
|
|
1778
|
-
},
|
|
1779
|
+
}, uo = /* @__PURE__ */ Object.assign(co, {
|
|
1779
1780
|
setup(p) {
|
|
1780
1781
|
const e = F("ServiceContainer"), { t: s } = e.i18n;
|
|
1781
1782
|
return (r, o) => (n(), T(W, null, {
|
|
@@ -1789,12 +1790,12 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1789
1790
|
default: A(() => {
|
|
1790
1791
|
var i, u;
|
|
1791
1792
|
return [
|
|
1792
|
-
t("div",
|
|
1793
|
-
|
|
1794
|
-
t("div",
|
|
1795
|
-
t("h3",
|
|
1796
|
-
t("div",
|
|
1797
|
-
t("p",
|
|
1793
|
+
t("div", ao, [
|
|
1794
|
+
oo,
|
|
1795
|
+
t("div", ro, [
|
|
1796
|
+
t("h3", no, v(((i = a(e).modal.data) == null ? void 0 : i.title) ?? "Title"), 1),
|
|
1797
|
+
t("div", lo, [
|
|
1798
|
+
t("p", io, v(((u = a(e).modal.data) == null ? void 0 : u.message) ?? "Message"), 1)
|
|
1798
1799
|
])
|
|
1799
1800
|
])
|
|
1800
1801
|
])
|
|
@@ -1803,7 +1804,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1803
1804
|
_: 1
|
|
1804
1805
|
}));
|
|
1805
1806
|
}
|
|
1806
|
-
}),
|
|
1807
|
+
}), mo = { class: "sm:flex sm:items-start" }, vo = /* @__PURE__ */ t("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
|
|
1807
1808
|
/* @__PURE__ */ t("svg", {
|
|
1808
1809
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1809
1810
|
class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
|
|
@@ -1818,12 +1819,12 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1818
1819
|
d: "M9 13h6m-3-3v6m-9 1V7a2 2 0 012-2h6l2 2h6a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z"
|
|
1819
1820
|
})
|
|
1820
1821
|
])
|
|
1821
|
-
], -1),
|
|
1822
|
+
], -1), po = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, ho = {
|
|
1822
1823
|
class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
1823
1824
|
id: "modal-title"
|
|
1824
|
-
},
|
|
1825
|
+
}, fo = { class: "mt-2" }, go = { class: "text-sm text-gray-500" }, _o = ["placeholder"], ko = {
|
|
1825
1826
|
name: "VFModalNewFolder"
|
|
1826
|
-
},
|
|
1827
|
+
}, bo = /* @__PURE__ */ Object.assign(ko, {
|
|
1827
1828
|
setup(p) {
|
|
1828
1829
|
const e = F("ServiceContainer");
|
|
1829
1830
|
e.storage;
|
|
@@ -1860,19 +1861,19 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1860
1861
|
}, v(a(s)("Cancel")), 1)
|
|
1861
1862
|
]),
|
|
1862
1863
|
default: A(() => [
|
|
1863
|
-
t("div",
|
|
1864
|
-
|
|
1865
|
-
t("div",
|
|
1866
|
-
t("h3",
|
|
1867
|
-
t("div",
|
|
1868
|
-
t("p",
|
|
1869
|
-
|
|
1864
|
+
t("div", mo, [
|
|
1865
|
+
vo,
|
|
1866
|
+
t("div", po, [
|
|
1867
|
+
t("h3", ho, v(a(s)("New Folder")), 1),
|
|
1868
|
+
t("div", fo, [
|
|
1869
|
+
t("p", go, v(a(s)("Create a new folder")), 1),
|
|
1870
|
+
I(t("input", {
|
|
1870
1871
|
"onUpdate:modelValue": d[0] || (d[0] = (l) => r.value = l),
|
|
1871
1872
|
onKeyup: Q(i, ["enter"]),
|
|
1872
1873
|
class: "px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",
|
|
1873
1874
|
placeholder: a(s)("Folder Name"),
|
|
1874
1875
|
type: "text"
|
|
1875
|
-
}, null, 40,
|
|
1876
|
+
}, null, 40, _o), [
|
|
1876
1877
|
[Z, r.value]
|
|
1877
1878
|
]),
|
|
1878
1879
|
o.value.length ? (n(), T(G, {
|
|
@@ -1892,7 +1893,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1892
1893
|
_: 1
|
|
1893
1894
|
}));
|
|
1894
1895
|
}
|
|
1895
|
-
}),
|
|
1896
|
+
}), yo = { class: "sm:flex sm:items-start" }, xo = /* @__PURE__ */ t("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
|
|
1896
1897
|
/* @__PURE__ */ t("svg", {
|
|
1897
1898
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1898
1899
|
class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
|
|
@@ -1907,12 +1908,12 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1907
1908
|
d: "M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"
|
|
1908
1909
|
})
|
|
1909
1910
|
])
|
|
1910
|
-
], -1),
|
|
1911
|
+
], -1), wo = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, $o = {
|
|
1911
1912
|
class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
1912
1913
|
id: "modal-title"
|
|
1913
|
-
},
|
|
1914
|
+
}, Co = { class: "mt-2" }, So = { class: "text-sm text-gray-500" }, Mo = ["placeholder"], Eo = {
|
|
1914
1915
|
name: "VFModalNewFile"
|
|
1915
|
-
},
|
|
1916
|
+
}, Do = /* @__PURE__ */ Object.assign(Eo, {
|
|
1916
1917
|
setup(p) {
|
|
1917
1918
|
const e = F("ServiceContainer");
|
|
1918
1919
|
e.storage;
|
|
@@ -1949,19 +1950,19 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1949
1950
|
}, v(a(s)("Cancel")), 1)
|
|
1950
1951
|
]),
|
|
1951
1952
|
default: A(() => [
|
|
1952
|
-
t("div",
|
|
1953
|
-
|
|
1954
|
-
t("div",
|
|
1955
|
-
t("h3",
|
|
1956
|
-
t("div",
|
|
1957
|
-
t("p",
|
|
1958
|
-
|
|
1953
|
+
t("div", yo, [
|
|
1954
|
+
xo,
|
|
1955
|
+
t("div", wo, [
|
|
1956
|
+
t("h3", $o, v(a(s)("New File")), 1),
|
|
1957
|
+
t("div", Co, [
|
|
1958
|
+
t("p", So, v(a(s)("Create a new file")), 1),
|
|
1959
|
+
I(t("input", {
|
|
1959
1960
|
"onUpdate:modelValue": d[0] || (d[0] = (l) => r.value = l),
|
|
1960
1961
|
onKeyup: Q(i, ["enter"]),
|
|
1961
1962
|
class: "px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",
|
|
1962
1963
|
placeholder: a(s)("File Name"),
|
|
1963
1964
|
type: "text"
|
|
1964
|
-
}, null, 40,
|
|
1965
|
+
}, null, 40, Mo), [
|
|
1965
1966
|
[Z, r.value]
|
|
1966
1967
|
]),
|
|
1967
1968
|
o.value.length ? (n(), T(G, {
|
|
@@ -1981,10 +1982,10 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1981
1982
|
_: 1
|
|
1982
1983
|
}));
|
|
1983
1984
|
}
|
|
1984
|
-
}),
|
|
1985
|
+
}), jo = { class: "flex" }, Ao = ["aria-label"], Lo = { class: "ml-auto mb-2" }, To = {
|
|
1985
1986
|
key: 0,
|
|
1986
1987
|
class: "p-2 border font-normal whitespace-pre-wrap border-gray-200 dark:border-gray-700/50 dark:text-gray-200 rounded min-h-[200px] max-h-[60vh] text-xs overflow-auto"
|
|
1987
|
-
},
|
|
1988
|
+
}, Fo = { key: 1 }, Oo = {
|
|
1988
1989
|
__name: "Text",
|
|
1989
1990
|
emits: ["success"],
|
|
1990
1991
|
setup(p, { emit: e }) {
|
|
@@ -1995,15 +1996,15 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1995
1996
|
method: "get",
|
|
1996
1997
|
params: { q: "preview", adapter: c.modal.data.adapter, path: c.modal.data.item.path },
|
|
1997
1998
|
responseType: "text"
|
|
1998
|
-
}).then((
|
|
1999
|
-
r.value =
|
|
1999
|
+
}).then((x) => {
|
|
2000
|
+
r.value = x, s("success");
|
|
2000
2001
|
});
|
|
2001
2002
|
});
|
|
2002
2003
|
const _ = () => {
|
|
2003
2004
|
u.value = !u.value, o.value = r.value, u.value == !0 && ce(() => {
|
|
2004
2005
|
i.value.focus();
|
|
2005
2006
|
});
|
|
2006
|
-
},
|
|
2007
|
+
}, y = () => {
|
|
2007
2008
|
d.value = "", l.value = !1, c.requester.send({
|
|
2008
2009
|
url: "",
|
|
2009
2010
|
method: "post",
|
|
@@ -2016,25 +2017,25 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2016
2017
|
content: o.value
|
|
2017
2018
|
},
|
|
2018
2019
|
responseType: "text"
|
|
2019
|
-
}).then((
|
|
2020
|
-
d.value = g("Updated."), r.value =
|
|
2021
|
-
}).catch((
|
|
2022
|
-
d.value = g(
|
|
2020
|
+
}).then((x) => {
|
|
2021
|
+
d.value = g("Updated."), r.value = x, s("success"), u.value = !u.value;
|
|
2022
|
+
}).catch((x) => {
|
|
2023
|
+
d.value = g(x.message), l.value = !0;
|
|
2023
2024
|
});
|
|
2024
2025
|
};
|
|
2025
|
-
return (
|
|
2026
|
-
t("div",
|
|
2026
|
+
return (x, E) => (n(), m(U, null, [
|
|
2027
|
+
t("div", jo, [
|
|
2027
2028
|
t("div", {
|
|
2028
2029
|
class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
2029
2030
|
id: "modal-title",
|
|
2030
2031
|
"aria-label": a(c).modal.data.item.path,
|
|
2031
2032
|
"data-microtip-position": "bottom-right",
|
|
2032
2033
|
role: "tooltip"
|
|
2033
|
-
}, v(a(c).modal.data.item.basename), 9,
|
|
2034
|
-
t("div",
|
|
2034
|
+
}, v(a(c).modal.data.item.basename), 9, Ao),
|
|
2035
|
+
t("div", Lo, [
|
|
2035
2036
|
u.value ? (n(), m("button", {
|
|
2036
2037
|
key: 0,
|
|
2037
|
-
onClick:
|
|
2038
|
+
onClick: y,
|
|
2038
2039
|
class: "ml-1 px-2 py-1 rounded border border-transparent shadow-sm bg-blue-700/75 hover:bg-blue-700 dark:bg-gray-700 dark:hover:bg-gray-700/50 text-base font-medium text-white sm:ml-3 sm:w-auto sm:text-sm"
|
|
2039
2040
|
}, v(a(g)("Save")), 1)) : M("", !0),
|
|
2040
2041
|
a(c).features.includes(a(B).EDIT) ? (n(), m("button", {
|
|
@@ -2045,8 +2046,8 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2045
2046
|
])
|
|
2046
2047
|
]),
|
|
2047
2048
|
t("div", null, [
|
|
2048
|
-
u.value ? (n(), m("div",
|
|
2049
|
-
|
|
2049
|
+
u.value ? (n(), m("div", Fo, [
|
|
2050
|
+
I(t("textarea", {
|
|
2050
2051
|
ref_key: "editInput",
|
|
2051
2052
|
ref: i,
|
|
2052
2053
|
"onUpdate:modelValue": E[1] || (E[1] = ($) => o.value = $),
|
|
@@ -2058,7 +2059,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2058
2059
|
}, null, 512), [
|
|
2059
2060
|
[Z, o.value]
|
|
2060
2061
|
])
|
|
2061
|
-
])) : (n(), m("pre",
|
|
2062
|
+
])) : (n(), m("pre", To, v(r.value), 1)),
|
|
2062
2063
|
d.value.length ? (n(), T(G, {
|
|
2063
2064
|
key: 2,
|
|
2064
2065
|
onHidden: E[2] || (E[2] = ($) => d.value = ""),
|
|
@@ -2072,13 +2073,13 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2072
2073
|
])
|
|
2073
2074
|
], 64));
|
|
2074
2075
|
}
|
|
2075
|
-
},
|
|
2076
|
+
}, Vo = { class: "flex" }, No = ["aria-label"], Bo = { class: "ml-auto mb-2" }, zo = { class: "w-full flex justify-center" }, Uo = ["src"], Ho = {
|
|
2076
2077
|
__name: "Image",
|
|
2077
2078
|
emits: ["success"],
|
|
2078
2079
|
setup(p, { emit: e }) {
|
|
2079
2080
|
const s = e, r = F("ServiceContainer"), { t: o } = r.i18n, i = k(null), u = k(null), d = k(!1), l = k(""), c = k(!1), g = () => {
|
|
2080
2081
|
d.value = !d.value, d.value ? u.value = new Be(i.value, {
|
|
2081
|
-
crop(
|
|
2082
|
+
crop(y) {
|
|
2082
2083
|
}
|
|
2083
2084
|
}) : u.value.destroy();
|
|
2084
2085
|
}, _ = () => {
|
|
@@ -2086,10 +2087,10 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2086
2087
|
width: 795,
|
|
2087
2088
|
height: 341
|
|
2088
2089
|
}).toBlob(
|
|
2089
|
-
(
|
|
2090
|
+
(y) => {
|
|
2090
2091
|
l.value = "", c.value = !1;
|
|
2091
|
-
const
|
|
2092
|
-
|
|
2092
|
+
const x = new FormData();
|
|
2093
|
+
x.set("file", y), r.requester.send({
|
|
2093
2094
|
url: "",
|
|
2094
2095
|
method: "post",
|
|
2095
2096
|
params: {
|
|
@@ -2097,7 +2098,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2097
2098
|
adapter: r.modal.data.adapter,
|
|
2098
2099
|
path: r.modal.data.item.path
|
|
2099
2100
|
},
|
|
2100
|
-
body:
|
|
2101
|
+
body: x
|
|
2101
2102
|
}).then((E) => {
|
|
2102
2103
|
l.value = o("Updated."), i.value.src = r.requester.getPreviewUrl(r.modal.data.adapter, r.modal.data.item), g(), s("success");
|
|
2103
2104
|
}).catch((E) => {
|
|
@@ -2108,16 +2109,16 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2108
2109
|
};
|
|
2109
2110
|
return P(() => {
|
|
2110
2111
|
s("success");
|
|
2111
|
-
}), (
|
|
2112
|
-
t("div",
|
|
2112
|
+
}), (y, x) => (n(), m(U, null, [
|
|
2113
|
+
t("div", Vo, [
|
|
2113
2114
|
t("h3", {
|
|
2114
2115
|
class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
2115
2116
|
id: "modal-title",
|
|
2116
2117
|
"aria-label": a(r).modal.data.item.path,
|
|
2117
2118
|
"data-microtip-position": "bottom-right",
|
|
2118
2119
|
role: "tooltip"
|
|
2119
|
-
}, v(a(r).modal.data.item.basename), 9,
|
|
2120
|
-
t("div",
|
|
2120
|
+
}, v(a(r).modal.data.item.basename), 9, No),
|
|
2121
|
+
t("div", Bo, [
|
|
2121
2122
|
d.value ? (n(), m("button", {
|
|
2122
2123
|
key: 0,
|
|
2123
2124
|
onClick: _,
|
|
@@ -2126,22 +2127,22 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2126
2127
|
a(r).features.includes(a(B).EDIT) ? (n(), m("button", {
|
|
2127
2128
|
key: 1,
|
|
2128
2129
|
class: "ml-1 px-2 py-1 text-blue-500",
|
|
2129
|
-
onClick:
|
|
2130
|
+
onClick: x[0] || (x[0] = (E) => g())
|
|
2130
2131
|
}, v(d.value ? a(o)("Cancel") : a(o)("Edit")), 1)) : M("", !0)
|
|
2131
2132
|
])
|
|
2132
2133
|
]),
|
|
2133
|
-
t("div",
|
|
2134
|
+
t("div", zo, [
|
|
2134
2135
|
t("img", {
|
|
2135
2136
|
ref_key: "image",
|
|
2136
2137
|
ref: i,
|
|
2137
2138
|
class: "max-w-[50vh] max-h-[50vh]",
|
|
2138
2139
|
src: a(r).requester.getPreviewUrl(a(r).modal.data.adapter, a(r).modal.data.item),
|
|
2139
2140
|
alt: ""
|
|
2140
|
-
}, null, 8,
|
|
2141
|
+
}, null, 8, Uo)
|
|
2141
2142
|
]),
|
|
2142
2143
|
l.value.length ? (n(), T(G, {
|
|
2143
2144
|
key: 0,
|
|
2144
|
-
onHidden:
|
|
2145
|
+
onHidden: x[1] || (x[1] = (E) => l.value = ""),
|
|
2145
2146
|
error: c.value
|
|
2146
2147
|
}, {
|
|
2147
2148
|
default: A(() => [
|
|
@@ -2151,7 +2152,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2151
2152
|
}, 8, ["error"])) : M("", !0)
|
|
2152
2153
|
], 64));
|
|
2153
2154
|
}
|
|
2154
|
-
},
|
|
2155
|
+
}, Ro = { class: "flex" }, Io = ["aria-label"], qo = /* @__PURE__ */ t("div", null, null, -1), Po = {
|
|
2155
2156
|
__name: "Default",
|
|
2156
2157
|
emits: ["success"],
|
|
2157
2158
|
setup(p, { emit: e }) {
|
|
@@ -2159,23 +2160,23 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2159
2160
|
return P(() => {
|
|
2160
2161
|
r("success");
|
|
2161
2162
|
}), (o, i) => (n(), m(U, null, [
|
|
2162
|
-
t("div",
|
|
2163
|
+
t("div", Ro, [
|
|
2163
2164
|
t("h3", {
|
|
2164
2165
|
class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
2165
2166
|
id: "modal-title",
|
|
2166
2167
|
"aria-label": a(s).modal.data.item.path,
|
|
2167
2168
|
"data-microtip-position": "bottom-right",
|
|
2168
2169
|
role: "tooltip"
|
|
2169
|
-
}, v(a(s).modal.data.item.basename), 9,
|
|
2170
|
+
}, v(a(s).modal.data.item.basename), 9, Io)
|
|
2170
2171
|
]),
|
|
2171
|
-
|
|
2172
|
+
qo
|
|
2172
2173
|
], 64));
|
|
2173
2174
|
}
|
|
2174
|
-
},
|
|
2175
|
+
}, Wo = ["aria-label"], Go = {
|
|
2175
2176
|
class: "w-full",
|
|
2176
2177
|
preload: "",
|
|
2177
2178
|
controls: ""
|
|
2178
|
-
},
|
|
2179
|
+
}, Yo = ["src"], Ko = {
|
|
2179
2180
|
__name: "Video",
|
|
2180
2181
|
emits: ["success"],
|
|
2181
2182
|
setup(p, { emit: e }) {
|
|
@@ -2189,22 +2190,22 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2189
2190
|
"aria-label": a(s).modal.data.item.path,
|
|
2190
2191
|
"data-microtip-position": "bottom-right",
|
|
2191
2192
|
role: "tooltip"
|
|
2192
|
-
}, v(a(s).modal.data.item.basename), 9,
|
|
2193
|
+
}, v(a(s).modal.data.item.basename), 9, Wo),
|
|
2193
2194
|
t("div", null, [
|
|
2194
|
-
t("video",
|
|
2195
|
+
t("video", Go, [
|
|
2195
2196
|
t("source", {
|
|
2196
2197
|
src: o(),
|
|
2197
2198
|
type: "video/mp4"
|
|
2198
|
-
}, null, 8,
|
|
2199
|
+
}, null, 8, Yo),
|
|
2199
2200
|
V(" Your browser does not support the video tag. ")
|
|
2200
2201
|
])
|
|
2201
2202
|
])
|
|
2202
2203
|
]));
|
|
2203
2204
|
}
|
|
2204
|
-
},
|
|
2205
|
+
}, Jo = ["aria-label"], Xo = {
|
|
2205
2206
|
class: "w-full",
|
|
2206
2207
|
controls: ""
|
|
2207
|
-
},
|
|
2208
|
+
}, Qo = ["src"], Zo = {
|
|
2208
2209
|
__name: "Audio",
|
|
2209
2210
|
emits: ["success"],
|
|
2210
2211
|
setup(p, { emit: e }) {
|
|
@@ -2218,25 +2219,25 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2218
2219
|
"aria-label": a(r).modal.data.item.path,
|
|
2219
2220
|
"data-microtip-position": "bottom-right",
|
|
2220
2221
|
role: "tooltip"
|
|
2221
|
-
}, v(a(r).modal.data.item.basename), 9,
|
|
2222
|
+
}, v(a(r).modal.data.item.basename), 9, Jo),
|
|
2222
2223
|
t("div", null, [
|
|
2223
|
-
t("audio",
|
|
2224
|
+
t("audio", Xo, [
|
|
2224
2225
|
t("source", {
|
|
2225
2226
|
src: o(),
|
|
2226
2227
|
type: "audio/mpeg"
|
|
2227
|
-
}, null, 8,
|
|
2228
|
+
}, null, 8, Qo),
|
|
2228
2229
|
V(" Your browser does not support the audio element. ")
|
|
2229
2230
|
])
|
|
2230
2231
|
])
|
|
2231
2232
|
], 64));
|
|
2232
2233
|
}
|
|
2233
|
-
},
|
|
2234
|
+
}, er = ["aria-label"], tr = ["data"], sr = ["src"], ar = /* @__PURE__ */ t("p", null, [
|
|
2234
2235
|
/* @__PURE__ */ V(" Your browser does not support PDFs. "),
|
|
2235
2236
|
/* @__PURE__ */ t("a", { href: "https://example.com/test.pdf" }, "Download the PDF"),
|
|
2236
2237
|
/* @__PURE__ */ V(" . ")
|
|
2237
|
-
], -1),
|
|
2238
|
-
|
|
2239
|
-
],
|
|
2238
|
+
], -1), or = [
|
|
2239
|
+
ar
|
|
2240
|
+
], rr = {
|
|
2240
2241
|
__name: "Pdf",
|
|
2241
2242
|
emits: ["success"],
|
|
2242
2243
|
setup(p, { emit: e }) {
|
|
@@ -2250,7 +2251,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2250
2251
|
"aria-label": a(s).modal.data.item.path,
|
|
2251
2252
|
"data-microtip-position": "bottom-right",
|
|
2252
2253
|
role: "tooltip"
|
|
2253
|
-
}, v(a(s).modal.data.item.basename), 9,
|
|
2254
|
+
}, v(a(s).modal.data.item.basename), 9, er),
|
|
2254
2255
|
t("div", null, [
|
|
2255
2256
|
t("object", {
|
|
2256
2257
|
class: "h-[60vh]",
|
|
@@ -2264,15 +2265,15 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2264
2265
|
src: o(),
|
|
2265
2266
|
width: "100%",
|
|
2266
2267
|
height: "100%"
|
|
2267
|
-
},
|
|
2268
|
-
], 8,
|
|
2268
|
+
}, or, 8, sr)
|
|
2269
|
+
], 8, tr)
|
|
2269
2270
|
])
|
|
2270
2271
|
], 64));
|
|
2271
2272
|
}
|
|
2272
|
-
},
|
|
2273
|
+
}, nr = { class: "sm:flex sm:items-start" }, lr = { class: "mt-3 text-center sm:mt-0 sm:text-left w-full" }, ir = { key: 0 }, dr = { class: "text-gray-700 dark:text-gray-200 text-sm" }, cr = {
|
|
2273
2274
|
key: 0,
|
|
2274
2275
|
class: "flex leading-5"
|
|
2275
|
-
},
|
|
2276
|
+
}, ur = /* @__PURE__ */ t("svg", {
|
|
2276
2277
|
class: "animate-spin -ml-1 mr-3 h-5 w-5 text-white",
|
|
2277
2278
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2278
2279
|
fill: "none",
|
|
@@ -2291,12 +2292,12 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2291
2292
|
fill: "currentColor",
|
|
2292
2293
|
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
2293
2294
|
})
|
|
2294
|
-
], -1),
|
|
2295
|
+
], -1), mr = { class: "py-2 flex font-normal break-all dark:text-gray-200 rounded text-xs" }, vr = { class: "font-bold" }, pr = { class: "font-bold pl-2" }, hr = {
|
|
2295
2296
|
key: 0,
|
|
2296
2297
|
class: "text-xs text-gray-600 dark:text-gray-400"
|
|
2297
|
-
},
|
|
2298
|
+
}, fr = ["download", "href"], gr = {
|
|
2298
2299
|
name: "VFModalPreview"
|
|
2299
|
-
},
|
|
2300
|
+
}, _r = /* @__PURE__ */ Object.assign(gr, {
|
|
2300
2301
|
setup(p) {
|
|
2301
2302
|
const e = F("ServiceContainer"), { t: s } = e.i18n, r = k(!1), o = (u) => (e.modal.data.item.mime_type ?? "").startsWith(u), i = e.features.includes(B.PREVIEW);
|
|
2302
2303
|
return i || (r.value = !0), (u, d) => (n(), T(W, null, {
|
|
@@ -2312,58 +2313,58 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2312
2313
|
class: "vf-btn vf-btn-primary",
|
|
2313
2314
|
download: a(e).requester.getDownloadUrl(a(e).modal.data.adapter, a(e).modal.data.item),
|
|
2314
2315
|
href: a(e).requester.getDownloadUrl(a(e).modal.data.adapter, a(e).modal.data.item)
|
|
2315
|
-
}, v(a(s)("Download")), 9,
|
|
2316
|
+
}, v(a(s)("Download")), 9, fr)) : M("", !0)
|
|
2316
2317
|
]),
|
|
2317
2318
|
default: A(() => [
|
|
2318
|
-
t("div",
|
|
2319
|
-
t("div",
|
|
2320
|
-
a(i) ? (n(), m("div",
|
|
2321
|
-
o("text") ? (n(), T(
|
|
2319
|
+
t("div", nr, [
|
|
2320
|
+
t("div", lr, [
|
|
2321
|
+
a(i) ? (n(), m("div", ir, [
|
|
2322
|
+
o("text") ? (n(), T(Oo, {
|
|
2322
2323
|
key: 0,
|
|
2323
2324
|
onSuccess: d[0] || (d[0] = (l) => r.value = !0)
|
|
2324
|
-
})) : o("image") ? (n(), T(
|
|
2325
|
+
})) : o("image") ? (n(), T(Ho, {
|
|
2325
2326
|
key: 1,
|
|
2326
2327
|
onSuccess: d[1] || (d[1] = (l) => r.value = !0)
|
|
2327
|
-
})) : o("video") ? (n(), T(
|
|
2328
|
+
})) : o("video") ? (n(), T(Ko, {
|
|
2328
2329
|
key: 2,
|
|
2329
2330
|
onSuccess: d[2] || (d[2] = (l) => r.value = !0)
|
|
2330
|
-
})) : o("audio") ? (n(), T(
|
|
2331
|
+
})) : o("audio") ? (n(), T(Zo, {
|
|
2331
2332
|
key: 3,
|
|
2332
2333
|
onSuccess: d[3] || (d[3] = (l) => r.value = !0)
|
|
2333
|
-
})) : o("application/pdf") ? (n(), T(
|
|
2334
|
+
})) : o("application/pdf") ? (n(), T(rr, {
|
|
2334
2335
|
key: 4,
|
|
2335
2336
|
onSuccess: d[4] || (d[4] = (l) => r.value = !0)
|
|
2336
|
-
})) : (n(), T(
|
|
2337
|
+
})) : (n(), T(Po, {
|
|
2337
2338
|
key: 5,
|
|
2338
2339
|
onSuccess: d[5] || (d[5] = (l) => r.value = !0)
|
|
2339
2340
|
}))
|
|
2340
2341
|
])) : M("", !0),
|
|
2341
|
-
t("div",
|
|
2342
|
-
r.value === !1 ? (n(), m("div",
|
|
2343
|
-
|
|
2342
|
+
t("div", dr, [
|
|
2343
|
+
r.value === !1 ? (n(), m("div", cr, [
|
|
2344
|
+
ur,
|
|
2344
2345
|
t("span", null, v(a(s)("Loading")), 1)
|
|
2345
2346
|
])) : M("", !0)
|
|
2346
2347
|
])
|
|
2347
2348
|
])
|
|
2348
2349
|
]),
|
|
2349
|
-
t("div",
|
|
2350
|
+
t("div", mr, [
|
|
2350
2351
|
t("div", null, [
|
|
2351
|
-
t("span",
|
|
2352
|
+
t("span", vr, v(a(s)("File Size")) + ": ", 1),
|
|
2352
2353
|
V(v(a(e).filesize(a(e).modal.data.item.file_size)), 1)
|
|
2353
2354
|
]),
|
|
2354
2355
|
t("div", null, [
|
|
2355
|
-
t("span",
|
|
2356
|
+
t("span", pr, v(a(s)("Last Modified")) + ": ", 1),
|
|
2356
2357
|
V(" " + v(a(we)(a(e).modal.data.item.last_modified)), 1)
|
|
2357
2358
|
])
|
|
2358
2359
|
]),
|
|
2359
|
-
a(e).features.includes(a(B).DOWNLOAD) ? (n(), m("div",
|
|
2360
|
+
a(e).features.includes(a(B).DOWNLOAD) ? (n(), m("div", hr, [
|
|
2360
2361
|
t("span", null, v(a(s)(`Download doesn't work? You can try right-click "Download" button, select "Save link as...".`)), 1)
|
|
2361
2362
|
])) : M("", !0)
|
|
2362
2363
|
]),
|
|
2363
2364
|
_: 1
|
|
2364
2365
|
}));
|
|
2365
2366
|
}
|
|
2366
|
-
}),
|
|
2367
|
+
}), kr = { class: "sm:flex sm:items-start" }, br = /* @__PURE__ */ t("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
|
|
2367
2368
|
/* @__PURE__ */ t("svg", {
|
|
2368
2369
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2369
2370
|
class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
|
|
@@ -2378,10 +2379,10 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2378
2379
|
d: "M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"
|
|
2379
2380
|
})
|
|
2380
2381
|
])
|
|
2381
|
-
], -1),
|
|
2382
|
+
], -1), yr = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, xr = {
|
|
2382
2383
|
class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
2383
2384
|
id: "modal-title"
|
|
2384
|
-
},
|
|
2385
|
+
}, wr = { class: "mt-2" }, $r = { class: "flex text-sm text-gray-800 dark:text-gray-400 py-2" }, Cr = {
|
|
2385
2386
|
key: 0,
|
|
2386
2387
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2387
2388
|
class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
|
|
@@ -2389,13 +2390,13 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2389
2390
|
viewBox: "0 0 24 24",
|
|
2390
2391
|
stroke: "currentColor",
|
|
2391
2392
|
"stroke-width": "1"
|
|
2392
|
-
},
|
|
2393
|
+
}, Sr = /* @__PURE__ */ t("path", {
|
|
2393
2394
|
"stroke-linecap": "round",
|
|
2394
2395
|
"stroke-linejoin": "round",
|
|
2395
2396
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
2396
|
-
}, null, -1),
|
|
2397
|
-
|
|
2398
|
-
],
|
|
2397
|
+
}, null, -1), Mr = [
|
|
2398
|
+
Sr
|
|
2399
|
+
], Er = {
|
|
2399
2400
|
key: 1,
|
|
2400
2401
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2401
2402
|
class: "h-5 w-5 text-neutral-500",
|
|
@@ -2403,15 +2404,15 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2403
2404
|
viewBox: "0 0 24 24",
|
|
2404
2405
|
stroke: "currentColor",
|
|
2405
2406
|
"stroke-width": "1"
|
|
2406
|
-
},
|
|
2407
|
+
}, Dr = /* @__PURE__ */ t("path", {
|
|
2407
2408
|
"stroke-linecap": "round",
|
|
2408
2409
|
"stroke-linejoin": "round",
|
|
2409
2410
|
d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
|
|
2410
|
-
}, null, -1),
|
|
2411
|
-
|
|
2412
|
-
],
|
|
2411
|
+
}, null, -1), jr = [
|
|
2412
|
+
Dr
|
|
2413
|
+
], Ar = { class: "ml-1.5" }, Lr = {
|
|
2413
2414
|
name: "VFModalRename"
|
|
2414
|
-
},
|
|
2415
|
+
}, Tr = /* @__PURE__ */ Object.assign(Lr, {
|
|
2415
2416
|
setup(p) {
|
|
2416
2417
|
const e = F("ServiceContainer");
|
|
2417
2418
|
e.storage;
|
|
@@ -2449,16 +2450,16 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2449
2450
|
}, v(a(s)("Cancel")), 1)
|
|
2450
2451
|
]),
|
|
2451
2452
|
default: A(() => [
|
|
2452
|
-
t("div",
|
|
2453
|
-
|
|
2454
|
-
t("div",
|
|
2455
|
-
t("h3",
|
|
2456
|
-
t("div",
|
|
2457
|
-
t("p",
|
|
2458
|
-
r.value.type === "dir" ? (n(), m("svg",
|
|
2459
|
-
t("span",
|
|
2453
|
+
t("div", kr, [
|
|
2454
|
+
br,
|
|
2455
|
+
t("div", yr, [
|
|
2456
|
+
t("h3", xr, v(a(s)("Rename")), 1),
|
|
2457
|
+
t("div", wr, [
|
|
2458
|
+
t("p", $r, [
|
|
2459
|
+
r.value.type === "dir" ? (n(), m("svg", Cr, Mr)) : (n(), m("svg", Er, jr)),
|
|
2460
|
+
t("span", Ar, v(r.value.basename), 1)
|
|
2460
2461
|
]),
|
|
2461
|
-
|
|
2462
|
+
I(t("input", {
|
|
2462
2463
|
"onUpdate:modelValue": l[0] || (l[0] = (c) => o.value = c),
|
|
2463
2464
|
onKeyup: Q(u, ["enter"]),
|
|
2464
2465
|
class: "px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",
|
|
@@ -2484,7 +2485,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2484
2485
|
_: 1
|
|
2485
2486
|
}));
|
|
2486
2487
|
}
|
|
2487
|
-
}),
|
|
2488
|
+
}), Fr = { class: "sm:flex sm:items-start" }, Or = /* @__PURE__ */ t("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
|
|
2488
2489
|
/* @__PURE__ */ t("svg", {
|
|
2489
2490
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2490
2491
|
class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
|
|
@@ -2499,19 +2500,19 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2499
2500
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"
|
|
2500
2501
|
})
|
|
2501
2502
|
])
|
|
2502
|
-
], -1),
|
|
2503
|
+
], -1), Vr = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, Nr = {
|
|
2503
2504
|
class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
2504
2505
|
id: "modal-title"
|
|
2505
|
-
},
|
|
2506
|
+
}, Br = { class: "mt-2" }, zr = {
|
|
2506
2507
|
key: 0,
|
|
2507
2508
|
class: "pointer-events-none"
|
|
2508
|
-
},
|
|
2509
|
+
}, Ur = {
|
|
2509
2510
|
key: 1,
|
|
2510
2511
|
class: "pointer-events-none"
|
|
2511
|
-
},
|
|
2512
|
+
}, Hr = ["disabled"], Rr = ["disabled"], Ir = { class: "text-gray-500 text-sm mb-1 pr-1 max-h-[200px] overflow-y-auto vf-scrollbar" }, qr = { class: "rounded flex flex-shrink-0 w-6 h-6 border bg-gray-50 text-xs cursor-default dark:border-gray-700 dark:bg-gray-800 dark:text-gray-50" }, Pr = ["textContent"], Wr = { class: "ml-1 w-full h-fit" }, Gr = { class: "text-left hidden md:block" }, Yr = { class: "text-left md:hidden" }, Kr = {
|
|
2512
2513
|
key: 0,
|
|
2513
2514
|
class: "ml-auto"
|
|
2514
|
-
},
|
|
2515
|
+
}, Jr = ["title", "disabled", "onClick"], Xr = /* @__PURE__ */ t("svg", {
|
|
2515
2516
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2516
2517
|
fill: "none",
|
|
2517
2518
|
viewBox: "0 0 24 24",
|
|
@@ -2524,14 +2525,14 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2524
2525
|
"stroke-linejoin": "round",
|
|
2525
2526
|
d: "M6 18L18 6M6 6l12 12"
|
|
2526
2527
|
})
|
|
2527
|
-
], -1),
|
|
2528
|
-
|
|
2529
|
-
],
|
|
2528
|
+
], -1), Qr = [
|
|
2529
|
+
Xr
|
|
2530
|
+
], Zr = {
|
|
2530
2531
|
key: 0,
|
|
2531
2532
|
class: "py-2"
|
|
2532
|
-
},
|
|
2533
|
+
}, en = ["disabled"], tn = {
|
|
2533
2534
|
name: "VFModalUpload"
|
|
2534
|
-
},
|
|
2535
|
+
}, sn = /* @__PURE__ */ Object.assign(tn, {
|
|
2535
2536
|
setup(p) {
|
|
2536
2537
|
const e = F("ServiceContainer"), { t: s } = e.i18n, r = s("uppy"), o = {
|
|
2537
2538
|
PENDING: 0,
|
|
@@ -2539,10 +2540,10 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2539
2540
|
UPLOADING: 2,
|
|
2540
2541
|
ERROR: 3,
|
|
2541
2542
|
DONE: 10
|
|
2542
|
-
}, i = k({ QUEUE_ENTRY_STATUS: o }), u = k(null), d = k(null), l = k(null), c = k(null), g = k(null), _ = k(null),
|
|
2543
|
+
}, i = k({ QUEUE_ENTRY_STATUS: o }), u = k(null), d = k(null), l = k(null), c = k(null), g = k(null), _ = k(null), y = k([]), x = k(""), E = k(!1), $ = k(!1);
|
|
2543
2544
|
let f;
|
|
2544
2545
|
function h(j) {
|
|
2545
|
-
return
|
|
2546
|
+
return y.value.findIndex((S) => S.id === j);
|
|
2546
2547
|
}
|
|
2547
2548
|
function N(j, S = null) {
|
|
2548
2549
|
S = S ?? (j.webkitRelativePath || j.name), f.addFile({
|
|
@@ -2582,33 +2583,33 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2582
2583
|
}
|
|
2583
2584
|
function se() {
|
|
2584
2585
|
if (!E.value) {
|
|
2585
|
-
if (!
|
|
2586
|
-
|
|
2586
|
+
if (!y.value.filter((j) => j.status !== o.DONE).length) {
|
|
2587
|
+
x.value = s("Please select file to upload first.");
|
|
2587
2588
|
return;
|
|
2588
2589
|
}
|
|
2589
|
-
|
|
2590
|
+
x.value = "", f.retryAll(), f.upload();
|
|
2590
2591
|
}
|
|
2591
2592
|
}
|
|
2592
2593
|
function ae() {
|
|
2593
|
-
f.cancelAll({ reason: "user" }),
|
|
2594
|
+
f.cancelAll({ reason: "user" }), y.value.forEach((j) => {
|
|
2594
2595
|
j.status !== o.DONE && (j.status = o.CANCELED, j.statusName = s("Canceled"));
|
|
2595
2596
|
}), E.value = !1;
|
|
2596
2597
|
}
|
|
2597
2598
|
function oe(j) {
|
|
2598
|
-
E.value || (f.removeFile(j.id, "removed-by-user"),
|
|
2599
|
+
E.value || (f.removeFile(j.id, "removed-by-user"), y.value.splice(h(j.id), 1));
|
|
2599
2600
|
}
|
|
2600
|
-
function
|
|
2601
|
+
function w(j) {
|
|
2601
2602
|
if (!E.value) {
|
|
2602
2603
|
if (f.cancelAll({ reason: "user" }), j) {
|
|
2603
2604
|
const S = [];
|
|
2604
|
-
|
|
2605
|
+
y.value.forEach((b) => {
|
|
2605
2606
|
b.status !== o.DONE && S.push(b);
|
|
2606
|
-
}),
|
|
2607
|
+
}), y.value = [], S.forEach((b) => {
|
|
2607
2608
|
N(b.originalFile, b.name);
|
|
2608
2609
|
});
|
|
2609
2610
|
return;
|
|
2610
2611
|
}
|
|
2611
|
-
|
|
2612
|
+
y.value.splice(0);
|
|
2612
2613
|
}
|
|
2613
2614
|
}
|
|
2614
2615
|
function D() {
|
|
@@ -2633,9 +2634,9 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2633
2634
|
onBeforeFileAdded(b, L) {
|
|
2634
2635
|
if (L[b.id] != null) {
|
|
2635
2636
|
const X = h(b.id);
|
|
2636
|
-
|
|
2637
|
+
y.value[X].status === o.PENDING && (x.value = f.i18n("noDuplicates", { fileName: b.name })), y.value = y.value.filter((ue) => ue.id !== b.id);
|
|
2637
2638
|
}
|
|
2638
|
-
return
|
|
2639
|
+
return y.value.push({
|
|
2639
2640
|
id: b.id,
|
|
2640
2641
|
name: b.name,
|
|
2641
2642
|
size: e.filesize(b.size),
|
|
@@ -2659,26 +2660,26 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2659
2660
|
return new Error(O);
|
|
2660
2661
|
}
|
|
2661
2662
|
}), f.on("restriction-failed", (b, L) => {
|
|
2662
|
-
const O =
|
|
2663
|
-
oe(O),
|
|
2663
|
+
const O = y.value[h(b.id)];
|
|
2664
|
+
oe(O), x.value = L.message;
|
|
2664
2665
|
}), f.on("upload", () => {
|
|
2665
2666
|
const b = C();
|
|
2666
2667
|
f.setMeta({ ...b.body });
|
|
2667
2668
|
const L = f.getPlugin("XHRUpload");
|
|
2668
|
-
L.opts.method = b.method, L.opts.endpoint = b.url + "?" + new URLSearchParams(b.params), L.opts.headers = b.headers, E.value = !0,
|
|
2669
|
+
L.opts.method = b.method, L.opts.endpoint = b.url + "?" + new URLSearchParams(b.params), L.opts.headers = b.headers, E.value = !0, y.value.forEach((O) => {
|
|
2669
2670
|
O.status !== o.DONE && (O.percent = null, O.status = o.UPLOADING, O.statusName = s("Pending upload"));
|
|
2670
2671
|
});
|
|
2671
2672
|
}), f.on("upload-progress", (b, L) => {
|
|
2672
2673
|
const O = Math.floor(L.bytesUploaded / L.bytesTotal * 100);
|
|
2673
|
-
|
|
2674
|
+
y.value[h(b.id)].percent = `${O}%`;
|
|
2674
2675
|
}), f.on("upload-success", (b) => {
|
|
2675
|
-
const L =
|
|
2676
|
+
const L = y.value[h(b.id)];
|
|
2676
2677
|
L.status = o.DONE, L.statusName = s("Done");
|
|
2677
2678
|
}), f.on("upload-error", (b, L) => {
|
|
2678
|
-
const O =
|
|
2679
|
+
const O = y.value[h(b.id)];
|
|
2679
2680
|
O.percent = null, O.status = o.ERROR, L.isNetworkError ? O.statusName = s("Network Error, Unable establish connection to the server or interrupted.") : O.statusName = L ? L.message : s("Unknown Error");
|
|
2680
2681
|
}), f.on("error", (b) => {
|
|
2681
|
-
|
|
2682
|
+
x.value = b.message, E.value = !1, e.emitter.emit("vf-fetch", {
|
|
2682
2683
|
params: { q: "index", adapter: e.data.adapter, path: e.data.dirname },
|
|
2683
2684
|
noCloseModal: !0
|
|
2684
2685
|
});
|
|
@@ -2729,7 +2730,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2729
2730
|
class: z(["vf-btn vf-btn-primary", E.value ? "bg-blue-200 hover:bg-blue-200 dark:bg-gray-700/50 dark:hover:bg-gray-700/50 dark:text-gray-500" : "bg-blue-600 hover:bg-blue-700 dark:bg-gray-700 dark:hover:bg-gray-500"]),
|
|
2730
2731
|
disabled: E.value,
|
|
2731
2732
|
onClick: Y(se, ["prevent"])
|
|
2732
|
-
}, v(a(s)("Upload")), 11,
|
|
2733
|
+
}, v(a(s)("Upload")), 11, en),
|
|
2733
2734
|
E.value ? (n(), m("button", {
|
|
2734
2735
|
key: 0,
|
|
2735
2736
|
type: "button",
|
|
@@ -2743,18 +2744,18 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2743
2744
|
}, v(a(s)("Close")), 1))
|
|
2744
2745
|
]),
|
|
2745
2746
|
default: A(() => [
|
|
2746
|
-
t("div",
|
|
2747
|
-
|
|
2748
|
-
t("div",
|
|
2749
|
-
t("h3",
|
|
2750
|
-
t("div",
|
|
2747
|
+
t("div", Fr, [
|
|
2748
|
+
Or,
|
|
2749
|
+
t("div", Vr, [
|
|
2750
|
+
t("h3", Nr, v(a(s)("Upload Files")), 1),
|
|
2751
|
+
t("div", Br, [
|
|
2751
2752
|
t("div", {
|
|
2752
2753
|
ref_key: "dropArea",
|
|
2753
2754
|
ref: _,
|
|
2754
2755
|
class: "flex items-center justify-center text-lg mb-4 text-gray-500 border-2 border-gray-300 rounded border-dashed select-none cursor-pointer dark:border-gray-600 h-[120px]",
|
|
2755
2756
|
onClick: te
|
|
2756
2757
|
}, [
|
|
2757
|
-
$.value ? (n(), m("div",
|
|
2758
|
+
$.value ? (n(), m("div", zr, v(a(s)("Release to drop these files.")), 1)) : (n(), m("div", Ur, v(a(s)("Drag and drop the files/folders to here or click here.")), 1))
|
|
2758
2759
|
], 512),
|
|
2759
2760
|
t("div", {
|
|
2760
2761
|
ref_key: "container",
|
|
@@ -2777,34 +2778,34 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2777
2778
|
type: "button",
|
|
2778
2779
|
class: "vf-btn vf-btn-secondary",
|
|
2779
2780
|
disabled: E.value,
|
|
2780
|
-
onClick: S[0] || (S[0] = (b) =>
|
|
2781
|
-
}, v(a(s)("Clear all")), 9,
|
|
2781
|
+
onClick: S[0] || (S[0] = (b) => w(!1))
|
|
2782
|
+
}, v(a(s)("Clear all")), 9, Hr),
|
|
2782
2783
|
t("button", {
|
|
2783
2784
|
type: "button",
|
|
2784
2785
|
class: "vf-btn vf-btn-secondary",
|
|
2785
2786
|
disabled: E.value,
|
|
2786
|
-
onClick: S[1] || (S[1] = (b) =>
|
|
2787
|
-
}, v(a(s)("Clear only successful")), 9,
|
|
2787
|
+
onClick: S[1] || (S[1] = (b) => w(!0))
|
|
2788
|
+
}, v(a(s)("Clear only successful")), 9, Rr)
|
|
2788
2789
|
], 512),
|
|
2789
|
-
t("div",
|
|
2790
|
-
(n(!0), m(U, null,
|
|
2790
|
+
t("div", Ir, [
|
|
2791
|
+
(n(!0), m(U, null, q(y.value, (b) => (n(), m("div", {
|
|
2791
2792
|
class: "flex hover:bg-gray-100 dark:hover:bg-gray-800 dark:hover:text-gray-300",
|
|
2792
2793
|
key: b.id
|
|
2793
2794
|
}, [
|
|
2794
|
-
t("span",
|
|
2795
|
+
t("span", qr, [
|
|
2795
2796
|
t("span", {
|
|
2796
2797
|
class: z(["text-base m-auto", R(b)]),
|
|
2797
2798
|
textContent: v(K(b))
|
|
2798
|
-
}, null, 10,
|
|
2799
|
+
}, null, 10, Pr)
|
|
2799
2800
|
]),
|
|
2800
|
-
t("div",
|
|
2801
|
-
t("div",
|
|
2802
|
-
t("div",
|
|
2801
|
+
t("div", Wr, [
|
|
2802
|
+
t("div", Gr, v(a(he)(b.name, 40)) + " (" + v(b.size) + ")", 1),
|
|
2803
|
+
t("div", Yr, v(a(he)(b.name, 16)) + " (" + v(b.size) + ")", 1),
|
|
2803
2804
|
t("div", {
|
|
2804
2805
|
class: z(["flex break-all text-left", R(b)])
|
|
2805
2806
|
}, [
|
|
2806
2807
|
V(v(b.statusName) + " ", 1),
|
|
2807
|
-
b.status === i.value.QUEUE_ENTRY_STATUS.UPLOADING ? (n(), m("b",
|
|
2808
|
+
b.status === i.value.QUEUE_ENTRY_STATUS.UPLOADING ? (n(), m("b", Kr, v(b.percent), 1)) : M("", !0)
|
|
2808
2809
|
], 2)
|
|
2809
2810
|
]),
|
|
2810
2811
|
t("button", {
|
|
@@ -2813,17 +2814,17 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2813
2814
|
title: a(s)("Delete"),
|
|
2814
2815
|
disabled: E.value,
|
|
2815
2816
|
onClick: (L) => oe(b)
|
|
2816
|
-
},
|
|
2817
|
+
}, Qr, 10, Jr)
|
|
2817
2818
|
]))), 128)),
|
|
2818
|
-
|
|
2819
|
+
y.value.length ? M("", !0) : (n(), m("div", Zr, v(a(s)("No files selected!")), 1))
|
|
2819
2820
|
]),
|
|
2820
|
-
|
|
2821
|
+
x.value.length ? (n(), T(G, {
|
|
2821
2822
|
key: 0,
|
|
2822
|
-
onHidden: S[2] || (S[2] = (b) =>
|
|
2823
|
+
onHidden: S[2] || (S[2] = (b) => x.value = ""),
|
|
2823
2824
|
error: ""
|
|
2824
2825
|
}, {
|
|
2825
2826
|
default: A(() => [
|
|
2826
|
-
V(v(
|
|
2827
|
+
V(v(x.value), 1)
|
|
2827
2828
|
]),
|
|
2828
2829
|
_: 1
|
|
2829
2830
|
})) : M("", !0)
|
|
@@ -2849,7 +2850,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2849
2850
|
_: 1
|
|
2850
2851
|
}));
|
|
2851
2852
|
}
|
|
2852
|
-
}),
|
|
2853
|
+
}), an = { class: "sm:flex sm:items-start" }, on = /* @__PURE__ */ t("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
|
|
2853
2854
|
/* @__PURE__ */ t("svg", {
|
|
2854
2855
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2855
2856
|
class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
|
|
@@ -2864,13 +2865,13 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2864
2865
|
d: "M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"
|
|
2865
2866
|
})
|
|
2866
2867
|
])
|
|
2867
|
-
], -1),
|
|
2868
|
+
], -1), rn = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, nn = {
|
|
2868
2869
|
class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
2869
2870
|
id: "modal-title"
|
|
2870
|
-
},
|
|
2871
|
+
}, ln = { class: "mt-2" }, dn = {
|
|
2871
2872
|
class: "text-gray-500 text-sm mb-1 overflow-auto vf-scrollbar",
|
|
2872
2873
|
style: { "max-height": "200px" }
|
|
2873
|
-
},
|
|
2874
|
+
}, cn = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, un = {
|
|
2874
2875
|
key: 0,
|
|
2875
2876
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2876
2877
|
class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
|
|
@@ -2878,13 +2879,13 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2878
2879
|
viewBox: "0 0 24 24",
|
|
2879
2880
|
stroke: "currentColor",
|
|
2880
2881
|
"stroke-width": "1"
|
|
2881
|
-
},
|
|
2882
|
+
}, mn = /* @__PURE__ */ t("path", {
|
|
2882
2883
|
"stroke-linecap": "round",
|
|
2883
2884
|
"stroke-linejoin": "round",
|
|
2884
2885
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
2885
|
-
}, null, -1),
|
|
2886
|
-
|
|
2887
|
-
],
|
|
2886
|
+
}, null, -1), vn = [
|
|
2887
|
+
mn
|
|
2888
|
+
], pn = {
|
|
2888
2889
|
key: 1,
|
|
2889
2890
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2890
2891
|
class: "h-5 w-5 text-neutral-500",
|
|
@@ -2892,15 +2893,15 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2892
2893
|
viewBox: "0 0 24 24",
|
|
2893
2894
|
stroke: "currentColor",
|
|
2894
2895
|
"stroke-width": "1"
|
|
2895
|
-
},
|
|
2896
|
+
}, hn = /* @__PURE__ */ t("path", {
|
|
2896
2897
|
"stroke-linecap": "round",
|
|
2897
2898
|
"stroke-linejoin": "round",
|
|
2898
2899
|
d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
|
|
2899
|
-
}, null, -1),
|
|
2900
|
-
|
|
2901
|
-
],
|
|
2900
|
+
}, null, -1), fn = [
|
|
2901
|
+
hn
|
|
2902
|
+
], gn = { class: "ml-1.5" }, _n = ["placeholder"], kn = {
|
|
2902
2903
|
name: "VFModalArchive"
|
|
2903
|
-
},
|
|
2904
|
+
}, bn = /* @__PURE__ */ Object.assign(kn, {
|
|
2904
2905
|
setup(p) {
|
|
2905
2906
|
const e = F("ServiceContainer");
|
|
2906
2907
|
e.storage;
|
|
@@ -2938,24 +2939,24 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2938
2939
|
}, v(a(s)("Cancel")), 1)
|
|
2939
2940
|
]),
|
|
2940
2941
|
default: A(() => [
|
|
2941
|
-
t("div",
|
|
2942
|
-
|
|
2943
|
-
t("div",
|
|
2944
|
-
t("h3",
|
|
2945
|
-
t("div",
|
|
2946
|
-
t("div",
|
|
2947
|
-
(n(!0), m(U, null,
|
|
2948
|
-
c.type === "dir" ? (n(), m("svg",
|
|
2949
|
-
t("span",
|
|
2942
|
+
t("div", an, [
|
|
2943
|
+
on,
|
|
2944
|
+
t("div", rn, [
|
|
2945
|
+
t("h3", nn, v(a(s)("Archive the files")), 1),
|
|
2946
|
+
t("div", ln, [
|
|
2947
|
+
t("div", dn, [
|
|
2948
|
+
(n(!0), m(U, null, q(i.value, (c) => (n(), m("p", cn, [
|
|
2949
|
+
c.type === "dir" ? (n(), m("svg", un, vn)) : (n(), m("svg", pn, fn)),
|
|
2950
|
+
t("span", gn, v(c.basename), 1)
|
|
2950
2951
|
]))), 256))
|
|
2951
2952
|
]),
|
|
2952
|
-
|
|
2953
|
+
I(t("input", {
|
|
2953
2954
|
"onUpdate:modelValue": l[0] || (l[0] = (c) => r.value = c),
|
|
2954
2955
|
onKeyup: Q(u, ["enter"]),
|
|
2955
2956
|
class: "my-1 px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",
|
|
2956
2957
|
placeholder: a(s)("Archive name. (.zip file will be created)"),
|
|
2957
2958
|
type: "text"
|
|
2958
|
-
}, null, 40,
|
|
2959
|
+
}, null, 40, _n), [
|
|
2959
2960
|
[Z, r.value]
|
|
2960
2961
|
]),
|
|
2961
2962
|
o.value.length ? (n(), T(G, {
|
|
@@ -2975,7 +2976,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2975
2976
|
_: 1
|
|
2976
2977
|
}));
|
|
2977
2978
|
}
|
|
2978
|
-
}),
|
|
2979
|
+
}), yn = { class: "sm:flex sm:items-start" }, xn = /* @__PURE__ */ t("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
|
|
2979
2980
|
/* @__PURE__ */ t("svg", {
|
|
2980
2981
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2981
2982
|
class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
|
|
@@ -2990,10 +2991,10 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2990
2991
|
d: "M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5m6 4.125l2.25 2.25m0 0l2.25 2.25M12 13.875l2.25-2.25M12 13.875l-2.25 2.25M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"
|
|
2991
2992
|
})
|
|
2992
2993
|
])
|
|
2993
|
-
], -1),
|
|
2994
|
+
], -1), wn = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, $n = {
|
|
2994
2995
|
class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
2995
2996
|
id: "modal-title"
|
|
2996
|
-
},
|
|
2997
|
+
}, Cn = { class: "mt-2" }, Sn = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, Mn = {
|
|
2997
2998
|
key: 0,
|
|
2998
2999
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2999
3000
|
class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
|
|
@@ -3001,13 +3002,13 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
3001
3002
|
viewBox: "0 0 24 24",
|
|
3002
3003
|
stroke: "currentColor",
|
|
3003
3004
|
"stroke-width": "1"
|
|
3004
|
-
},
|
|
3005
|
+
}, En = /* @__PURE__ */ t("path", {
|
|
3005
3006
|
"stroke-linecap": "round",
|
|
3006
3007
|
"stroke-linejoin": "round",
|
|
3007
3008
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
3008
|
-
}, null, -1),
|
|
3009
|
-
|
|
3010
|
-
],
|
|
3009
|
+
}, null, -1), Dn = [
|
|
3010
|
+
En
|
|
3011
|
+
], jn = {
|
|
3011
3012
|
key: 1,
|
|
3012
3013
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3013
3014
|
class: "h-5 w-5 text-neutral-500",
|
|
@@ -3015,15 +3016,15 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
3015
3016
|
viewBox: "0 0 24 24",
|
|
3016
3017
|
stroke: "currentColor",
|
|
3017
3018
|
"stroke-width": "1"
|
|
3018
|
-
},
|
|
3019
|
+
}, An = /* @__PURE__ */ t("path", {
|
|
3019
3020
|
"stroke-linecap": "round",
|
|
3020
3021
|
"stroke-linejoin": "round",
|
|
3021
3022
|
d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
|
|
3022
|
-
}, null, -1),
|
|
3023
|
-
|
|
3024
|
-
],
|
|
3023
|
+
}, null, -1), Ln = [
|
|
3024
|
+
An
|
|
3025
|
+
], Tn = { class: "ml-1.5" }, Fn = { class: "my-1 text-sm text-gray-500" }, On = {
|
|
3025
3026
|
name: "VFModalUnarchive"
|
|
3026
|
-
},
|
|
3027
|
+
}, Vn = /* @__PURE__ */ Object.assign(On, {
|
|
3027
3028
|
setup(p) {
|
|
3028
3029
|
const e = F("ServiceContainer");
|
|
3029
3030
|
e.storage;
|
|
@@ -3062,16 +3063,16 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
3062
3063
|
}, v(a(s)("Cancel")), 1)
|
|
3063
3064
|
]),
|
|
3064
3065
|
default: A(() => [
|
|
3065
|
-
t("div",
|
|
3066
|
-
|
|
3067
|
-
t("div",
|
|
3068
|
-
t("h3",
|
|
3069
|
-
t("div",
|
|
3070
|
-
(n(!0), m(U, null,
|
|
3071
|
-
c.type === "dir" ? (n(), m("svg",
|
|
3072
|
-
t("span",
|
|
3066
|
+
t("div", yn, [
|
|
3067
|
+
xn,
|
|
3068
|
+
t("div", wn, [
|
|
3069
|
+
t("h3", $n, v(a(s)("Unarchive")), 1),
|
|
3070
|
+
t("div", Cn, [
|
|
3071
|
+
(n(!0), m(U, null, q(i.value, (c) => (n(), m("p", Sn, [
|
|
3072
|
+
c.type === "dir" ? (n(), m("svg", Mn, Dn)) : (n(), m("svg", jn, Ln)),
|
|
3073
|
+
t("span", Tn, v(c.basename), 1)
|
|
3073
3074
|
]))), 256)),
|
|
3074
|
-
t("p",
|
|
3075
|
+
t("p", Fn, v(a(s)("The archive will be unarchived at")) + " (" + v(d.current.dirname) + ")", 1),
|
|
3075
3076
|
o.value.length ? (n(), T(G, {
|
|
3076
3077
|
key: 0,
|
|
3077
3078
|
onHidden: l[0] || (l[0] = (c) => o.value = ""),
|
|
@@ -3089,7 +3090,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
3089
3090
|
_: 1
|
|
3090
3091
|
}));
|
|
3091
3092
|
}
|
|
3092
|
-
}),
|
|
3093
|
+
}), Nn = { class: "sm:flex sm:items-start" }, Bn = /* @__PURE__ */ t("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
|
|
3093
3094
|
/* @__PURE__ */ t("svg", {
|
|
3094
3095
|
class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
|
|
3095
3096
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3105,10 +3106,10 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
3105
3106
|
d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
|
|
3106
3107
|
})
|
|
3107
3108
|
])
|
|
3108
|
-
], -1),
|
|
3109
|
+
], -1), zn = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, Un = {
|
|
3109
3110
|
class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
3110
3111
|
id: "modal-title"
|
|
3111
|
-
},
|
|
3112
|
+
}, Hn = { class: "text-sm text-gray-500 pb-1" }, Rn = { class: "max-h-[200px] overflow-y-auto vf-scrollbar text-left" }, In = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, qn = {
|
|
3112
3113
|
key: 0,
|
|
3113
3114
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3114
3115
|
class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
|
|
@@ -3116,13 +3117,13 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
3116
3117
|
viewBox: "0 0 24 24",
|
|
3117
3118
|
stroke: "currentColor",
|
|
3118
3119
|
"stroke-width": "1"
|
|
3119
|
-
},
|
|
3120
|
+
}, Pn = /* @__PURE__ */ t("path", {
|
|
3120
3121
|
"stroke-linecap": "round",
|
|
3121
3122
|
"stroke-linejoin": "round",
|
|
3122
3123
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
3123
|
-
}, null, -1),
|
|
3124
|
-
|
|
3125
|
-
],
|
|
3124
|
+
}, null, -1), Wn = [
|
|
3125
|
+
Pn
|
|
3126
|
+
], Gn = {
|
|
3126
3127
|
key: 1,
|
|
3127
3128
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3128
3129
|
class: "h-5 w-5 text-neutral-500",
|
|
@@ -3130,13 +3131,13 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
3130
3131
|
viewBox: "0 0 24 24",
|
|
3131
3132
|
stroke: "currentColor",
|
|
3132
3133
|
"stroke-width": "1"
|
|
3133
|
-
},
|
|
3134
|
+
}, Yn = /* @__PURE__ */ t("path", {
|
|
3134
3135
|
"stroke-linecap": "round",
|
|
3135
3136
|
"stroke-linejoin": "round",
|
|
3136
3137
|
d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
|
|
3137
|
-
}, null, -1),
|
|
3138
|
-
|
|
3139
|
-
],
|
|
3138
|
+
}, null, -1), Kn = [
|
|
3139
|
+
Yn
|
|
3140
|
+
], Jn = { class: "ml-1.5" }, Xn = { class: "font-bold text-xs text-gray-700 dark:text-gray-500 mt-3 tracking-wider" }, Qn = { class: "flex text-sm text-gray-800 dark:text-gray-400 border dark:border-gray-700 p-1 rounded" }, Zn = /* @__PURE__ */ t("svg", {
|
|
3140
3141
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3141
3142
|
class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
|
|
3142
3143
|
fill: "none",
|
|
@@ -3149,9 +3150,9 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
3149
3150
|
"stroke-linejoin": "round",
|
|
3150
3151
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
3151
3152
|
})
|
|
3152
|
-
], -1),
|
|
3153
|
+
], -1), el = { class: "ml-1.5 overflow-auto" }, tl = { class: "m-1 mr-auto font-bold text-gray-500 text-sm dark:text-gray-200 self-center" }, sl = {
|
|
3153
3154
|
name: "VFModalMove"
|
|
3154
|
-
},
|
|
3155
|
+
}, al = /* @__PURE__ */ Object.assign(sl, {
|
|
3155
3156
|
setup(p) {
|
|
3156
3157
|
const e = F("ServiceContainer"), { t: s } = e.i18n;
|
|
3157
3158
|
e.storage;
|
|
@@ -3187,26 +3188,26 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
3187
3188
|
onClick: d[1] || (d[1] = (l) => a(e).emitter.emit("vf-modal-close")),
|
|
3188
3189
|
class: "vf-btn vf-btn-secondary"
|
|
3189
3190
|
}, v(a(s)("Cancel")), 1),
|
|
3190
|
-
t("div",
|
|
3191
|
+
t("div", tl, v(a(s)("%s item(s) selected.", r.value.length)), 1)
|
|
3191
3192
|
]),
|
|
3192
3193
|
default: A(() => [
|
|
3193
|
-
t("div",
|
|
3194
|
-
|
|
3195
|
-
t("div",
|
|
3196
|
-
t("h3",
|
|
3197
|
-
t("p",
|
|
3198
|
-
t("div",
|
|
3199
|
-
(n(!0), m(U, null,
|
|
3194
|
+
t("div", Nn, [
|
|
3195
|
+
Bn,
|
|
3196
|
+
t("div", zn, [
|
|
3197
|
+
t("h3", Un, v(a(s)("Move files")), 1),
|
|
3198
|
+
t("p", Hn, v(a(s)("Are you sure you want to move these files?")), 1),
|
|
3199
|
+
t("div", Rn, [
|
|
3200
|
+
(n(!0), m(U, null, q(r.value, (l) => (n(), m("div", In, [
|
|
3200
3201
|
t("div", null, [
|
|
3201
|
-
l.type === "dir" ? (n(), m("svg",
|
|
3202
|
+
l.type === "dir" ? (n(), m("svg", qn, Wn)) : (n(), m("svg", Gn, Kn))
|
|
3202
3203
|
]),
|
|
3203
|
-
t("div",
|
|
3204
|
+
t("div", Jn, v(l.path), 1)
|
|
3204
3205
|
]))), 256))
|
|
3205
3206
|
]),
|
|
3206
|
-
t("h4",
|
|
3207
|
-
t("p",
|
|
3208
|
-
|
|
3209
|
-
t("span",
|
|
3207
|
+
t("h4", Xn, v(a(s)("Target Directory")), 1),
|
|
3208
|
+
t("p", Qn, [
|
|
3209
|
+
Zn,
|
|
3210
|
+
t("span", el, v(a(e).modal.data.items.to.path), 1)
|
|
3210
3211
|
]),
|
|
3211
3212
|
o.value.length ? (n(), T(G, {
|
|
3212
3213
|
key: 0,
|
|
@@ -3224,12 +3225,12 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
3224
3225
|
_: 1
|
|
3225
3226
|
}));
|
|
3226
3227
|
}
|
|
3227
|
-
}),
|
|
3228
|
+
}), ol = (p, e) => {
|
|
3228
3229
|
const s = p.__vccOpts || p;
|
|
3229
3230
|
for (const [r, o] of e)
|
|
3230
3231
|
s[r] = o;
|
|
3231
3232
|
return s;
|
|
3232
|
-
},
|
|
3233
|
+
}, rl = {
|
|
3233
3234
|
props: {
|
|
3234
3235
|
on: { type: String, required: !0 }
|
|
3235
3236
|
},
|
|
@@ -3250,15 +3251,15 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
3250
3251
|
t: i
|
|
3251
3252
|
};
|
|
3252
3253
|
}
|
|
3253
|
-
},
|
|
3254
|
-
function
|
|
3254
|
+
}, nl = { key: 1 };
|
|
3255
|
+
function ll(p, e, s, r, o, i) {
|
|
3255
3256
|
return n(), m("div", {
|
|
3256
3257
|
class: z(["text-sm text-green-600 dark:text-green-600 transition-opacity duration-500 ease-out", [{ "opacity-0": !r.shown }]])
|
|
3257
3258
|
}, [
|
|
3258
|
-
p.$slots.default ? le(p.$slots, "default", { key: 0 }) : (n(), m("span",
|
|
3259
|
+
p.$slots.default ? le(p.$slots, "default", { key: 0 }) : (n(), m("span", nl, v(r.t("Saved.")), 1))
|
|
3259
3260
|
], 2);
|
|
3260
3261
|
}
|
|
3261
|
-
const ve = /* @__PURE__ */
|
|
3262
|
+
const ve = /* @__PURE__ */ ol(rl, [["render", ll]]), il = { class: "sm:flex sm:items-start" }, dl = /* @__PURE__ */ t("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
|
|
3262
3263
|
/* @__PURE__ */ t("svg", {
|
|
3263
3264
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3264
3265
|
class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
|
|
@@ -3278,24 +3279,24 @@ const ve = /* @__PURE__ */ nl(ll, [["render", dl]]), cl = { class: "sm:flex sm:i
|
|
|
3278
3279
|
d: "M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"
|
|
3279
3280
|
})
|
|
3280
3281
|
])
|
|
3281
|
-
], -1),
|
|
3282
|
+
], -1), cl = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, ul = {
|
|
3282
3283
|
class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
3283
3284
|
id: "modal-title"
|
|
3284
|
-
},
|
|
3285
|
+
}, ml = { class: "mt-2" }, vl = { class: "text-sm text-gray-500" }, pl = { class: "text-sm font-semibold mt-5 text-gray-900 dark:text-gray-400 tracking-wider" }, hl = { class: "mt-3 text-left" }, fl = { class: "space-y-2" }, gl = { class: "flex relative gap-x-3" }, _l = { class: "h-6 items-center" }, kl = { class: "flex-1 block text-sm" }, bl = {
|
|
3285
3286
|
for: "metric_unit",
|
|
3286
3287
|
class: "flex w-full font-medium text-gray-900 dark:text-gray-400"
|
|
3287
|
-
},
|
|
3288
|
+
}, yl = { class: "flex relative gap-x-3" }, xl = { class: "h-6 items-center" }, wl = {
|
|
3288
3289
|
for: "theme",
|
|
3289
3290
|
class: "flex w-full font-medium text-gray-900 dark:text-gray-400 text-sm"
|
|
3290
|
-
},
|
|
3291
|
+
}, $l = { class: "flex text-sm" }, Cl = ["label"], Sl = ["value"], Ml = {
|
|
3291
3292
|
key: 0,
|
|
3292
3293
|
class: "flex relative gap-x-3"
|
|
3293
|
-
},
|
|
3294
|
+
}, El = { class: "h-6 items-center" }, Dl = {
|
|
3294
3295
|
for: "language",
|
|
3295
3296
|
class: "flex w-full font-medium text-gray-900 dark:text-gray-400 text-sm text-nowrap"
|
|
3296
|
-
},
|
|
3297
|
+
}, jl = { class: "flex text-sm" }, Al = ["label"], Ll = ["value"], Tl = {
|
|
3297
3298
|
name: "VFModalAbout"
|
|
3298
|
-
},
|
|
3299
|
+
}, Fl = /* @__PURE__ */ Object.assign(Tl, {
|
|
3299
3300
|
setup(p) {
|
|
3300
3301
|
const e = F("ServiceContainer"), { getStore: s, setStore: r, clearStore: o } = e.storage, { t: i, changeLocale: u, locale: d } = e.i18n;
|
|
3301
3302
|
k(""), k("");
|
|
@@ -3305,7 +3306,7 @@ const ve = /* @__PURE__ */ nl(ll, [["render", dl]]), cl = { class: "sm:flex sm:i
|
|
|
3305
3306
|
e.theme.set($), e.emitter.emit("vf-theme-saved");
|
|
3306
3307
|
}, g = () => {
|
|
3307
3308
|
e.metricUnits = !e.metricUnits, e.filesize = e.metricUnits ? xe : ye, r("metricUnits", e.metricUnits), e.emitter.emit("vf-metric-units-saved");
|
|
3308
|
-
}, { i18n: _ } = F("VueFinderOptions"),
|
|
3309
|
+
}, { i18n: _ } = F("VueFinderOptions"), x = Object.fromEntries(
|
|
3309
3310
|
Object.entries({
|
|
3310
3311
|
en: "English",
|
|
3311
3312
|
fr: "French (Français)",
|
|
@@ -3333,21 +3334,21 @@ const ve = /* @__PURE__ */ nl(ll, [["render", dl]]), cl = { class: "sm:flex sm:i
|
|
|
3333
3334
|
}, v(a(i)("Close")), 1)
|
|
3334
3335
|
]),
|
|
3335
3336
|
default: A(() => [
|
|
3336
|
-
t("div",
|
|
3337
|
-
|
|
3338
|
-
t("div",
|
|
3339
|
-
t("h3",
|
|
3340
|
-
t("div",
|
|
3341
|
-
t("p",
|
|
3337
|
+
t("div", il, [
|
|
3338
|
+
dl,
|
|
3339
|
+
t("div", cl, [
|
|
3340
|
+
t("h3", ul, v(a(i)("About %s", "Vuefinder " + a(e).version)), 1),
|
|
3341
|
+
t("div", ml, [
|
|
3342
|
+
t("p", vl, v(a(i)("Vuefinder is a file manager component for vue 3.")), 1),
|
|
3342
3343
|
t("div", null, [
|
|
3343
|
-
t("h3",
|
|
3344
|
+
t("h3", pl, v(a(i)("Settings")), 1)
|
|
3344
3345
|
]),
|
|
3345
|
-
t("div",
|
|
3346
|
+
t("div", hl, [
|
|
3346
3347
|
t("fieldset", null, [
|
|
3347
|
-
t("div",
|
|
3348
|
-
t("div",
|
|
3349
|
-
t("div",
|
|
3350
|
-
|
|
3348
|
+
t("div", fl, [
|
|
3349
|
+
t("div", gl, [
|
|
3350
|
+
t("div", _l, [
|
|
3351
|
+
I(t("input", {
|
|
3351
3352
|
id: "metric_unit",
|
|
3352
3353
|
name: "metric_unit",
|
|
3353
3354
|
type: "checkbox",
|
|
@@ -3358,8 +3359,8 @@ const ve = /* @__PURE__ */ nl(ll, [["render", dl]]), cl = { class: "sm:flex sm:i
|
|
|
3358
3359
|
[Fe, a(e).metricUnits]
|
|
3359
3360
|
])
|
|
3360
3361
|
]),
|
|
3361
|
-
t("div",
|
|
3362
|
-
t("label",
|
|
3362
|
+
t("div", kl, [
|
|
3363
|
+
t("label", bl, [
|
|
3363
3364
|
V(v(a(i)("Use Metric Units")) + " ", 1),
|
|
3364
3365
|
H(ve, {
|
|
3365
3366
|
class: "ms-3",
|
|
@@ -3373,12 +3374,12 @@ const ve = /* @__PURE__ */ nl(ll, [["render", dl]]), cl = { class: "sm:flex sm:i
|
|
|
3373
3374
|
])
|
|
3374
3375
|
])
|
|
3375
3376
|
]),
|
|
3376
|
-
t("div",
|
|
3377
|
-
t("div",
|
|
3378
|
-
t("label",
|
|
3377
|
+
t("div", yl, [
|
|
3378
|
+
t("div", xl, [
|
|
3379
|
+
t("label", wl, v(a(i)("Theme")), 1)
|
|
3379
3380
|
]),
|
|
3380
|
-
t("div",
|
|
3381
|
-
|
|
3381
|
+
t("div", $l, [
|
|
3382
|
+
I(t("select", {
|
|
3382
3383
|
id: "theme",
|
|
3383
3384
|
"onUpdate:modelValue": f[1] || (f[1] = (h) => a(e).theme.value = h),
|
|
3384
3385
|
onChange: f[2] || (f[2] = (h) => c(h.target.value)),
|
|
@@ -3387,8 +3388,8 @@ const ve = /* @__PURE__ */ nl(ll, [["render", dl]]), cl = { class: "sm:flex sm:i
|
|
|
3387
3388
|
t("optgroup", {
|
|
3388
3389
|
label: a(i)("Theme")
|
|
3389
3390
|
}, [
|
|
3390
|
-
(n(!0), m(U, null,
|
|
3391
|
-
], 8,
|
|
3391
|
+
(n(!0), m(U, null, q(E.value, (h, N) => (n(), m("option", { value: N }, v(h), 9, Sl))), 256))
|
|
3392
|
+
], 8, Cl)
|
|
3392
3393
|
], 544), [
|
|
3393
3394
|
[pe, a(e).theme.value]
|
|
3394
3395
|
]),
|
|
@@ -3403,12 +3404,12 @@ const ve = /* @__PURE__ */ nl(ll, [["render", dl]]), cl = { class: "sm:flex sm:i
|
|
|
3403
3404
|
})
|
|
3404
3405
|
])
|
|
3405
3406
|
]),
|
|
3406
|
-
a(e).features.includes(a(B).LANGUAGE) && Object.keys(a(
|
|
3407
|
-
t("div",
|
|
3408
|
-
t("label",
|
|
3407
|
+
a(e).features.includes(a(B).LANGUAGE) && Object.keys(a(x)).length > 1 ? (n(), m("div", Ml, [
|
|
3408
|
+
t("div", El, [
|
|
3409
|
+
t("label", Dl, v(a(i)("Language")), 1)
|
|
3409
3410
|
]),
|
|
3410
|
-
t("div",
|
|
3411
|
-
|
|
3411
|
+
t("div", jl, [
|
|
3412
|
+
I(t("select", {
|
|
3412
3413
|
id: "language",
|
|
3413
3414
|
"onUpdate:modelValue": f[3] || (f[3] = (h) => _e(d) ? d.value = h : null),
|
|
3414
3415
|
onChange: f[4] || (f[4] = (h) => a(u)(h.target.value)),
|
|
@@ -3417,8 +3418,8 @@ const ve = /* @__PURE__ */ nl(ll, [["render", dl]]), cl = { class: "sm:flex sm:i
|
|
|
3417
3418
|
t("optgroup", {
|
|
3418
3419
|
label: a(i)("Language")
|
|
3419
3420
|
}, [
|
|
3420
|
-
(n(!0), m(U, null,
|
|
3421
|
-
], 8,
|
|
3421
|
+
(n(!0), m(U, null, q(a(x), (h, N) => (n(), m("option", { value: N }, v(h), 9, Ll))), 256))
|
|
3422
|
+
], 8, Al)
|
|
3422
3423
|
], 544), [
|
|
3423
3424
|
[pe, a(d)]
|
|
3424
3425
|
]),
|
|
@@ -3448,26 +3449,26 @@ const ve = /* @__PURE__ */ nl(ll, [["render", dl]]), cl = { class: "sm:flex sm:i
|
|
|
3448
3449
|
_: 1
|
|
3449
3450
|
}));
|
|
3450
3451
|
}
|
|
3451
|
-
}),
|
|
3452
|
+
}), Ol = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3452
3453
|
__proto__: null,
|
|
3453
|
-
ModalAbout:
|
|
3454
|
-
ModalArchive:
|
|
3455
|
-
ModalDelete:
|
|
3456
|
-
ModalMessage:
|
|
3457
|
-
ModalMove:
|
|
3458
|
-
ModalNewFile:
|
|
3459
|
-
ModalNewFolder:
|
|
3460
|
-
ModalPreview:
|
|
3461
|
-
ModalRename:
|
|
3462
|
-
ModalUnarchive:
|
|
3463
|
-
ModalUpload:
|
|
3464
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3454
|
+
ModalAbout: Fl,
|
|
3455
|
+
ModalArchive: bn,
|
|
3456
|
+
ModalDelete: so,
|
|
3457
|
+
ModalMessage: uo,
|
|
3458
|
+
ModalMove: al,
|
|
3459
|
+
ModalNewFile: Do,
|
|
3460
|
+
ModalNewFolder: bo,
|
|
3461
|
+
ModalPreview: _r,
|
|
3462
|
+
ModalRename: Tr,
|
|
3463
|
+
ModalUnarchive: Vn,
|
|
3464
|
+
ModalUpload: sn
|
|
3465
|
+
}, Symbol.toStringTag, { value: "Module" })), Wl = {
|
|
3465
3466
|
/** @param {import('vue').App} app
|
|
3466
3467
|
* @param options
|
|
3467
3468
|
*/
|
|
3468
3469
|
install(p, e = {}) {
|
|
3469
|
-
p.component("VueFinder",
|
|
3470
|
-
for (const r of Object.values(
|
|
3470
|
+
p.component("VueFinder", Da);
|
|
3471
|
+
for (const r of Object.values(Ol))
|
|
3471
3472
|
p.component(r.name, r);
|
|
3472
3473
|
e.i18n = e.i18n ?? {};
|
|
3473
3474
|
let [s] = Object.keys(e.i18n);
|
|
@@ -3475,5 +3476,5 @@ const ve = /* @__PURE__ */ nl(ll, [["render", dl]]), cl = { class: "sm:flex sm:i
|
|
|
3475
3476
|
}
|
|
3476
3477
|
};
|
|
3477
3478
|
export {
|
|
3478
|
-
|
|
3479
|
+
Wl as default
|
|
3479
3480
|
};
|