vuefinder 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vuefinder.cjs +1 -2
- package/dist/vuefinder.js +503 -502
- package/package.json +1 -1
package/dist/vuefinder.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
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
|
|
5
|
-
import
|
|
6
|
-
import
|
|
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 I, withDirectives as q, 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
|
+
import Oe from "mitt";
|
|
6
|
+
import Ve from "dragselect";
|
|
7
7
|
import Ne from "vanilla-lazyload";
|
|
8
8
|
import "cropperjs/dist/cropper.css";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import Be from "cropperjs";
|
|
10
|
+
import ze from "@uppy/core";
|
|
11
11
|
import Ue from "@uppy/xhr-upload";
|
|
12
12
|
import "microtip/microtip.css";
|
|
13
13
|
var ge;
|
|
@@ -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(([_, w]) => {
|
|
42
|
+
c.append(_, w);
|
|
43
43
|
})) : (c = { ...u }, s.body != null && Object.assign(c, this.config.body)));
|
|
44
44
|
const g = {
|
|
45
45
|
url: d,
|
|
@@ -158,21 +158,21 @@ async function Ie(p, e) {
|
|
|
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 =
|
|
161
|
+
const { getStore: o, setStore: i } = p, u = k({}), d = k(o("locale", e)), l = (_, w = e) => {
|
|
162
162
|
Ie(_, r).then((y) => {
|
|
163
163
|
u.value = y, i("locale", _), d.value = _, i("translations", y), Object.values(r).length > 1 && (s.emit("vf-toast-push", { label: "The language is set to " + _ }), s.emit("vf-language-saved"));
|
|
164
164
|
}).catch((y) => {
|
|
165
|
-
|
|
165
|
+
w ? (s.emit("vf-toast-push", { label: "The selected locale is not yet supported!", type: "error" }), l(w, 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 = (_, ...w) => w.length ? c(_ = _.replace("%s", w.shift()), ...w) : _;
|
|
170
|
+
function g(_, ...w) {
|
|
171
|
+
return u.value && u.value.hasOwnProperty(_) ? c(u.value[_], ...w) : c(_, ...w);
|
|
172
172
|
}
|
|
173
173
|
return { t: g, changeLocale: l, locale: d };
|
|
174
174
|
}
|
|
175
|
-
const
|
|
175
|
+
const B = {
|
|
176
176
|
EDIT: "edit",
|
|
177
177
|
NEW_FILE: "newfile",
|
|
178
178
|
NEW_FOLDER: "newfolder",
|
|
@@ -186,7 +186,7 @@ const N = {
|
|
|
186
186
|
FULL_SCREEN: "fullscreen",
|
|
187
187
|
DOWNLOAD: "download",
|
|
188
188
|
LANGUAGE: "language"
|
|
189
|
-
}, We = Object.values(
|
|
189
|
+
}, We = Object.values(B), Ge = "2.2.1";
|
|
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
|
}
|
|
@@ -203,7 +203,7 @@ const J = {
|
|
|
203
203
|
DARK: "dark"
|
|
204
204
|
};
|
|
205
205
|
function Ke(p, e) {
|
|
206
|
-
const s =
|
|
206
|
+
const s = k(J.SYSTEM), r = k(J.LIGHT);
|
|
207
207
|
s.value = p.getStore("theme", e ?? J.SYSTEM);
|
|
208
208
|
const o = window.matchMedia("(prefers-color-scheme: dark)"), i = (u) => {
|
|
209
209
|
s.value === J.DARK || s.value === J.SYSTEM && u.matches ? r.value = J.DARK : r.value = J.LIGHT;
|
|
@@ -226,7 +226,7 @@ function Ke(p, e) {
|
|
|
226
226
|
};
|
|
227
227
|
}
|
|
228
228
|
const Je = (p, e) => {
|
|
229
|
-
const s = qe(p.id), r =
|
|
229
|
+
const s = qe(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,
|
|
@@ -399,11 +399,11 @@ const Je = (p, e) => {
|
|
|
399
399
|
"stroke-linecap": "round",
|
|
400
400
|
"stroke-linejoin": "round",
|
|
401
401
|
d: "M3.75 12h16.5m-16.5 3.75h16.5M3.75 19.5h16.5M5.625 4.5h12.75a1.875 1.875 0 010 3.75H5.625a1.875 1.875 0 010-3.75z"
|
|
402
|
-
},
|
|
402
|
+
}, Ot = {
|
|
403
403
|
name: "VFToolbar"
|
|
404
|
-
},
|
|
404
|
+
}, Vt = /* @__PURE__ */ Object.assign(Ot, {
|
|
405
405
|
setup(p) {
|
|
406
|
-
const e = F("ServiceContainer"), { setStore: s } = e.storage, { t: r } = e.i18n, o =
|
|
406
|
+
const e = F("ServiceContainer"), { setStore: s } = e.storage, { t: r } = e.i18n, o = k([]), i = k("");
|
|
407
407
|
e.emitter.on("vf-search-query", ({ newQuery: l }) => {
|
|
408
408
|
i.value = l;
|
|
409
409
|
});
|
|
@@ -422,25 +422,25 @@ const Je = (p, e) => {
|
|
|
422
422
|
V(v(a(r)("Search results for")) + " ", 1),
|
|
423
423
|
t("span", xt, v(i.value), 1)
|
|
424
424
|
]),
|
|
425
|
-
a(e).loading ? (n(), m("svg", wt, St)) :
|
|
425
|
+
a(e).loading ? (n(), m("svg", wt, St)) : M("", !0)
|
|
426
426
|
])) : (n(), m("div", Qe, [
|
|
427
|
-
a(e).features.includes(a(
|
|
427
|
+
a(e).features.includes(a(B).NEW_FOLDER) ? (n(), m("div", {
|
|
428
428
|
key: 0,
|
|
429
429
|
class: "mx-1.5",
|
|
430
430
|
"aria-label": a(r)("New Folder"),
|
|
431
431
|
"data-microtip-position": "bottom-right",
|
|
432
432
|
role: "tooltip",
|
|
433
433
|
onClick: c[0] || (c[0] = (g) => a(e).emitter.emit("vf-modal-show", { type: "new-folder", items: o.value }))
|
|
434
|
-
}, tt, 8, Ze)) :
|
|
435
|
-
a(e).features.includes(a(
|
|
434
|
+
}, tt, 8, Ze)) : M("", !0),
|
|
435
|
+
a(e).features.includes(a(B).NEW_FILE) ? (n(), m("div", {
|
|
436
436
|
key: 1,
|
|
437
437
|
class: "mx-1.5",
|
|
438
438
|
"aria-label": a(r)("New File"),
|
|
439
439
|
"data-microtip-position": "bottom",
|
|
440
440
|
role: "tooltip",
|
|
441
441
|
onClick: c[1] || (c[1] = (g) => a(e).emitter.emit("vf-modal-show", { type: "new-file", items: o.value }))
|
|
442
|
-
}, ot, 8, st)) :
|
|
443
|
-
a(e).features.includes(a(
|
|
442
|
+
}, ot, 8, st)) : M("", !0),
|
|
443
|
+
a(e).features.includes(a(B).RENAME) ? (n(), m("div", {
|
|
444
444
|
key: 2,
|
|
445
445
|
class: "mx-1.5",
|
|
446
446
|
"aria-label": a(r)("Rename"),
|
|
@@ -450,14 +450,14 @@ const Je = (p, e) => {
|
|
|
450
450
|
}, [
|
|
451
451
|
(n(), m("svg", {
|
|
452
452
|
xmlns: "http://www.w3.org/2000/svg",
|
|
453
|
-
class:
|
|
453
|
+
class: z([o.value.length == 1 ? "cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300" : "stroke-gray-200 dark:stroke-gray-700", "h-6 w-6 md:h-8 md:w-8 m-auto"]),
|
|
454
454
|
fill: "none",
|
|
455
455
|
viewBox: "0 0 24 24",
|
|
456
456
|
stroke: "none",
|
|
457
457
|
"stroke-width": "1.5"
|
|
458
458
|
}, lt, 2))
|
|
459
|
-
], 8, rt)) :
|
|
460
|
-
a(e).features.includes(a(
|
|
459
|
+
], 8, rt)) : M("", !0),
|
|
460
|
+
a(e).features.includes(a(B).DELETE) ? (n(), m("div", {
|
|
461
461
|
key: 3,
|
|
462
462
|
class: "mx-1.5",
|
|
463
463
|
"aria-label": a(r)("Delete"),
|
|
@@ -467,22 +467,22 @@ const Je = (p, e) => {
|
|
|
467
467
|
}, [
|
|
468
468
|
(n(), m("svg", {
|
|
469
469
|
xmlns: "http://www.w3.org/2000/svg",
|
|
470
|
-
class:
|
|
470
|
+
class: z([o.value.length ? "cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300" : "stroke-gray-200 dark:stroke-gray-700", "h-6 w-6 md:h-8 md:w-8 m-auto"]),
|
|
471
471
|
fill: "none",
|
|
472
472
|
viewBox: "0 0 24 24",
|
|
473
473
|
stroke: "none",
|
|
474
474
|
"stroke-width": "1.5"
|
|
475
475
|
}, ct, 2))
|
|
476
|
-
], 8, it)) :
|
|
477
|
-
a(e).features.includes(a(
|
|
476
|
+
], 8, it)) : M("", !0),
|
|
477
|
+
a(e).features.includes(a(B).UPLOAD) ? (n(), m("div", {
|
|
478
478
|
key: 4,
|
|
479
479
|
class: "mx-1.5",
|
|
480
480
|
"aria-label": a(r)("Upload"),
|
|
481
481
|
"data-microtip-position": "bottom",
|
|
482
482
|
role: "tooltip",
|
|
483
483
|
onClick: c[4] || (c[4] = (g) => a(e).emitter.emit("vf-modal-show", { type: "upload", items: o.value }))
|
|
484
|
-
}, vt, 8, ut)) :
|
|
485
|
-
a(e).features.includes(a(
|
|
484
|
+
}, vt, 8, ut)) : M("", !0),
|
|
485
|
+
a(e).features.includes(a(B).UNARCHIVE) && o.value.length == 1 && o.value[0].mime_type == "application/zip" ? (n(), m("div", {
|
|
486
486
|
key: 5,
|
|
487
487
|
class: "mx-1.5",
|
|
488
488
|
"aria-label": a(r)("Unarchive"),
|
|
@@ -492,14 +492,14 @@ const Je = (p, e) => {
|
|
|
492
492
|
}, [
|
|
493
493
|
(n(), m("svg", {
|
|
494
494
|
xmlns: "http://www.w3.org/2000/svg",
|
|
495
|
-
class:
|
|
495
|
+
class: z([o.value.length ? "cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300" : "stroke-gray-200 dark:stroke-gray-700", "h-6 w-6 md:h-8 md:w-8 m-auto"]),
|
|
496
496
|
fill: "none",
|
|
497
497
|
viewBox: "0 0 24 24",
|
|
498
498
|
stroke: "none",
|
|
499
499
|
"stroke-width": "1.5"
|
|
500
500
|
}, ft, 2))
|
|
501
|
-
], 8, pt)) :
|
|
502
|
-
a(e).features.includes(a(
|
|
501
|
+
], 8, pt)) : M("", !0),
|
|
502
|
+
a(e).features.includes(a(B).ARCHIVE) ? (n(), m("div", {
|
|
503
503
|
key: 6,
|
|
504
504
|
class: "mx-1.5",
|
|
505
505
|
"aria-label": a(r)("Archive"),
|
|
@@ -509,16 +509,16 @@ const Je = (p, e) => {
|
|
|
509
509
|
}, [
|
|
510
510
|
(n(), m("svg", {
|
|
511
511
|
xmlns: "http://www.w3.org/2000/svg",
|
|
512
|
-
class:
|
|
512
|
+
class: z([o.value.length ? "cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300" : "stroke-gray-200 dark:stroke-gray-700", "h-6 w-6 md:h-8 md:w-8 m-auto"]),
|
|
513
513
|
fill: "none",
|
|
514
514
|
viewBox: "0 0 24 24",
|
|
515
515
|
stroke: "none",
|
|
516
516
|
"stroke-width": "1.5"
|
|
517
517
|
}, kt, 2))
|
|
518
|
-
], 8, gt)) :
|
|
518
|
+
], 8, gt)) : M("", !0)
|
|
519
519
|
])),
|
|
520
520
|
t("div", Mt, [
|
|
521
|
-
a(e).features.includes(a(
|
|
521
|
+
a(e).features.includes(a(B).FULL_SCREEN) ? (n(), m("div", {
|
|
522
522
|
key: 0,
|
|
523
523
|
class: "mx-1.5",
|
|
524
524
|
"aria-label": a(r)("Toggle Full Screen"),
|
|
@@ -529,7 +529,7 @@ const Je = (p, e) => {
|
|
|
529
529
|
(n(), m("svg", Dt, [
|
|
530
530
|
a(e).fullScreen ? (n(), m("path", jt)) : (n(), m("path", At))
|
|
531
531
|
]))
|
|
532
|
-
], 8, Et)) :
|
|
532
|
+
], 8, Et)) : M("", !0),
|
|
533
533
|
t("div", {
|
|
534
534
|
class: "mx-1.5",
|
|
535
535
|
"aria-label": a(r)("Change View"),
|
|
@@ -539,14 +539,14 @@ const Je = (p, e) => {
|
|
|
539
539
|
}, [
|
|
540
540
|
(n(), m("svg", {
|
|
541
541
|
xmlns: "http://www.w3.org/2000/svg",
|
|
542
|
-
class:
|
|
542
|
+
class: z([i.value.length ? "stroke-gray-200 dark:stroke-gray-700" : "cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300", "h-6 w-6 md:h-8 md:w-8 m-auto"]),
|
|
543
543
|
fill: "none",
|
|
544
544
|
viewBox: "0 0 24 24",
|
|
545
545
|
stroke: "none",
|
|
546
546
|
"stroke-width": "1.5"
|
|
547
547
|
}, [
|
|
548
|
-
a(e).view === "grid" ? (n(), m("path", Tt)) :
|
|
549
|
-
a(e).view === "list" ? (n(), m("path", Ft)) :
|
|
548
|
+
a(e).view === "grid" ? (n(), m("path", Tt)) : M("", !0),
|
|
549
|
+
a(e).view === "list" ? (n(), m("path", Ft)) : M("", !0)
|
|
550
550
|
], 2))
|
|
551
551
|
], 8, Lt)
|
|
552
552
|
])
|
|
@@ -559,8 +559,8 @@ const Je = (p, e) => {
|
|
|
559
559
|
p(...o);
|
|
560
560
|
}, e);
|
|
561
561
|
};
|
|
562
|
-
},
|
|
563
|
-
const r =
|
|
562
|
+
}, Bt = (p, e, s) => {
|
|
563
|
+
const r = k(p);
|
|
564
564
|
return Me((o, i) => ({
|
|
565
565
|
get() {
|
|
566
566
|
return o(), r.value;
|
|
@@ -573,7 +573,7 @@ const Je = (p, e) => {
|
|
|
573
573
|
s
|
|
574
574
|
)
|
|
575
575
|
}));
|
|
576
|
-
},
|
|
576
|
+
}, zt = { class: "flex p-1.5 bg-neutral-100 dark:bg-gray-800 border-t border-b border-neutral-300 dark:border-gray-700/50 items-center select-none text-sm" }, Ut = ["aria-label"], Ht = /* @__PURE__ */ t("path", {
|
|
577
577
|
"fill-rule": "evenodd",
|
|
578
578
|
d: "M5.293 9.707a1 1 0 010-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 01-1.414 1.414L11 7.414V15a1 1 0 11-2 0V7.414L6.707 9.707a1 1 0 01-1.414 0z",
|
|
579
579
|
"clip-rule": "evenodd"
|
|
@@ -635,17 +635,17 @@ const Je = (p, e) => {
|
|
|
635
635
|
name: "VFBreadcrumb"
|
|
636
636
|
}, cs = /* @__PURE__ */ Object.assign(ds, {
|
|
637
637
|
setup(p) {
|
|
638
|
-
const e =
|
|
638
|
+
const e = k(null), s = k([]), r = k(!1), o = k(null), i = F("ServiceContainer"), { t: u } = i.i18n;
|
|
639
639
|
i.emitter.on("vf-explorer-update", () => {
|
|
640
|
-
let
|
|
641
|
-
e.value = i.data.dirname ?? i.adapter + "://", e.value.length == 0 && (s.value = []), e.value.replace(i.adapter + "://", "").split("/").forEach(function(
|
|
642
|
-
|
|
643
|
-
basename:
|
|
644
|
-
name:
|
|
645
|
-
path: i.adapter + "://" +
|
|
640
|
+
let $ = [], f = [];
|
|
641
|
+
e.value = i.data.dirname ?? i.adapter + "://", e.value.length == 0 && (s.value = []), e.value.replace(i.adapter + "://", "").split("/").forEach(function(h) {
|
|
642
|
+
$.push(h), $.join("/") != "" && f.push({
|
|
643
|
+
basename: h,
|
|
644
|
+
name: h,
|
|
645
|
+
path: i.adapter + "://" + $.join("/"),
|
|
646
646
|
type: "dir"
|
|
647
647
|
});
|
|
648
|
-
}),
|
|
648
|
+
}), f.length > 4 && (f = f.slice(-5), f[0].name = ".."), s.value = f;
|
|
649
649
|
});
|
|
650
650
|
const d = () => {
|
|
651
651
|
r.value = !1, c.value = "";
|
|
@@ -654,44 +654,44 @@ const Je = (p, e) => {
|
|
|
654
654
|
d();
|
|
655
655
|
});
|
|
656
656
|
const l = () => {
|
|
657
|
-
i.features.includes(
|
|
658
|
-
}, c =
|
|
659
|
-
de(c, (
|
|
660
|
-
i.emitter.emit("vf-toast-clear"), i.emitter.emit("vf-search-query", { newQuery:
|
|
657
|
+
i.features.includes(B.SEARCH) && (r.value = !0, ce(() => o.value.focus()));
|
|
658
|
+
}, c = Bt("", 400);
|
|
659
|
+
de(c, ($) => {
|
|
660
|
+
i.emitter.emit("vf-toast-clear"), i.emitter.emit("vf-search-query", { newQuery: $ });
|
|
661
661
|
});
|
|
662
|
-
const g = () => s.value.length && !r.value, _ = (
|
|
663
|
-
|
|
664
|
-
let
|
|
665
|
-
if (
|
|
662
|
+
const g = () => s.value.length && !r.value, _ = ($, f = null) => {
|
|
663
|
+
$.preventDefault(), y($), f ?? (f = s.value.length - 2);
|
|
664
|
+
let h = JSON.parse($.dataTransfer.getData("items"));
|
|
665
|
+
if (h.find((N) => N.storage !== i.adapter)) {
|
|
666
666
|
alert("Moving items between different storages is not supported yet.");
|
|
667
667
|
return;
|
|
668
668
|
}
|
|
669
669
|
i.emitter.emit("vf-modal-show", {
|
|
670
670
|
type: "move",
|
|
671
|
-
items: { from:
|
|
671
|
+
items: { from: h, to: s.value[f] ?? { path: i.adapter + "://" } }
|
|
672
672
|
});
|
|
673
|
-
},
|
|
674
|
-
|
|
675
|
-
}, y = (
|
|
676
|
-
|
|
677
|
-
},
|
|
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
|
+
}, y = ($) => {
|
|
676
|
+
$.preventDefault(), $.currentTarget.classList.remove("bg-blue-200", "dark:bg-slate-500"), g() && $.currentTarget.classList.remove("bg-blue-200", "dark:bg-slate-500");
|
|
677
|
+
}, E = () => {
|
|
678
678
|
c.value == "" && d();
|
|
679
679
|
};
|
|
680
|
-
return (
|
|
680
|
+
return ($, f) => (n(), m("div", zt, [
|
|
681
681
|
t("span", {
|
|
682
682
|
"aria-label": a(u)("Go up a directory"),
|
|
683
683
|
"data-microtip-position": "bottom-right",
|
|
684
684
|
role: "tooltip"
|
|
685
685
|
}, [
|
|
686
686
|
(n(), m("svg", {
|
|
687
|
-
onDragover:
|
|
688
|
-
onDragleave:
|
|
689
|
-
onDrop:
|
|
690
|
-
onClick:
|
|
691
|
-
var
|
|
692
|
-
return !g() || a(i).emitter.emit("vf-fetch", { params: { q: "index", adapter: a(i).data.adapter, path: ((
|
|
687
|
+
onDragover: f[0] || (f[0] = (h) => w(h)),
|
|
688
|
+
onDragleave: f[1] || (f[1] = (h) => y(h)),
|
|
689
|
+
onDrop: f[2] || (f[2] = (h) => _(h)),
|
|
690
|
+
onClick: f[3] || (f[3] = (h) => {
|
|
691
|
+
var N;
|
|
692
|
+
return !g() || a(i).emitter.emit("vf-fetch", { params: { q: "index", adapter: a(i).data.adapter, path: ((N = s.value[s.value.length - 2]) == null ? void 0 : N.path) ?? a(i).adapter + "://" } });
|
|
693
693
|
}),
|
|
694
|
-
class:
|
|
694
|
+
class: z(["h-6 w-6 p-0.5 rounded", g() ? "text-slate-700 hover:bg-neutral-300 dark:text-neutral-200 dark:hover:bg-gray-700 cursor-pointer" : "text-gray-400 dark:text-neutral-500"]),
|
|
695
695
|
xmlns: "http://www.w3.org/2000/svg",
|
|
696
696
|
viewBox: "0 0 20 20",
|
|
697
697
|
fill: "currentColor"
|
|
@@ -704,7 +704,7 @@ const Je = (p, e) => {
|
|
|
704
704
|
role: "tooltip"
|
|
705
705
|
}, [
|
|
706
706
|
(n(), m("svg", {
|
|
707
|
-
onClick:
|
|
707
|
+
onClick: f[5] || (f[5] = (h) => a(i).emitter.emit("vf-fetch-abort")),
|
|
708
708
|
xmlns: "http://www.w3.org/2000/svg",
|
|
709
709
|
fill: "none",
|
|
710
710
|
viewBox: "0 0 24 24",
|
|
@@ -719,7 +719,7 @@ const Je = (p, e) => {
|
|
|
719
719
|
role: "tooltip"
|
|
720
720
|
}, [
|
|
721
721
|
(n(), m("svg", {
|
|
722
|
-
onClick:
|
|
722
|
+
onClick: f[4] || (f[4] = (h) => {
|
|
723
723
|
a(i).emitter.emit("vf-fetch", { params: { q: "index", adapter: a(i).data.adapter, path: a(i).data.dirname } });
|
|
724
724
|
}),
|
|
725
725
|
class: "h-6 w-6 p-1 rounded text-slate-700 hover:bg-neutral-300 dark:text-neutral-200 dark:hover:bg-gray-700 cursor-pointer",
|
|
@@ -734,8 +734,8 @@ const Je = (p, e) => {
|
|
|
734
734
|
ref_key: "searchInput",
|
|
735
735
|
ref: o,
|
|
736
736
|
onKeydown: Q(d, ["esc"]),
|
|
737
|
-
onBlur:
|
|
738
|
-
"onUpdate:modelValue":
|
|
737
|
+
onBlur: E,
|
|
738
|
+
"onUpdate:modelValue": f[10] || (f[10] = (h) => _e(c) ? c.value = h : null),
|
|
739
739
|
placeholder: a(u)("Search anything.."),
|
|
740
740
|
class: "w-full pb-0 px-1 border-0 text-base ring-0 outline-0 text-gray-600 focus:ring-transparent focus:border-transparent dark:focus:ring-transparent dark:focus:border-transparent dark:text-gray-300 bg-transparent",
|
|
741
741
|
type: "text"
|
|
@@ -757,29 +757,29 @@ const Je = (p, e) => {
|
|
|
757
757
|
onClick: Y(l, ["self"])
|
|
758
758
|
}, [
|
|
759
759
|
(n(), m("svg", {
|
|
760
|
-
onDragover:
|
|
761
|
-
onDragleave:
|
|
762
|
-
onDrop:
|
|
763
|
-
onClick:
|
|
760
|
+
onDragover: f[6] || (f[6] = (h) => w(h)),
|
|
761
|
+
onDragleave: f[7] || (f[7] = (h) => y(h)),
|
|
762
|
+
onDrop: f[8] || (f[8] = (h) => _(h, -1)),
|
|
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",
|
|
765
765
|
xmlns: "http://www.w3.org/2000/svg",
|
|
766
766
|
viewBox: "0 0 20 20",
|
|
767
767
|
fill: "currentColor"
|
|
768
768
|
}, Jt, 32)),
|
|
769
769
|
t("div", Xt, [
|
|
770
|
-
(n(!0), m(U, null, I(s.value, (
|
|
770
|
+
(n(!0), m(U, null, I(s.value, (h, N) => (n(), m("div", { key: N }, [
|
|
771
771
|
Qt,
|
|
772
772
|
t("span", {
|
|
773
|
-
onDragover: (R) =>
|
|
774
|
-
onDragleave: (R) =>
|
|
775
|
-
onDrop: (R) =>
|
|
773
|
+
onDragover: (R) => N === s.value.length - 1 || w(R),
|
|
774
|
+
onDragleave: (R) => N === s.value.length - 1 || y(R),
|
|
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
|
-
title:
|
|
778
|
-
onClick: (R) => a(i).emitter.emit("vf-fetch", { params: { q: "index", adapter: a(i).data.adapter, path:
|
|
779
|
-
}, v(
|
|
777
|
+
title: h.basename,
|
|
778
|
+
onClick: (R) => a(i).emitter.emit("vf-fetch", { params: { q: "index", adapter: a(i).data.adapter, path: h.path } })
|
|
779
|
+
}, v(h.name), 41, Zt)
|
|
780
780
|
]))), 128))
|
|
781
781
|
]),
|
|
782
|
-
a(i).loading ? (n(), m("svg", es, as)) :
|
|
782
|
+
a(i).loading ? (n(), m("svg", es, as)) : M("", !0)
|
|
783
783
|
]))
|
|
784
784
|
]));
|
|
785
785
|
}
|
|
@@ -813,15 +813,15 @@ const Je = (p, e) => {
|
|
|
813
813
|
props: { direction: String },
|
|
814
814
|
setup(p) {
|
|
815
815
|
return (e, s) => (n(), m("div", null, [
|
|
816
|
-
p.direction === "down" ? (n(), m("svg", us, vs)) :
|
|
817
|
-
p.direction === "up" ? (n(), m("svg", ps, fs)) :
|
|
816
|
+
p.direction === "down" ? (n(), m("svg", us, vs)) : M("", !0),
|
|
817
|
+
p.direction === "up" ? (n(), m("svg", ps, fs)) : M("", !0)
|
|
818
818
|
]));
|
|
819
819
|
}
|
|
820
820
|
}), _s = ["onClick"], ks = {
|
|
821
821
|
name: "VFToast.vue"
|
|
822
822
|
}, bs = /* @__PURE__ */ Object.assign(ks, {
|
|
823
823
|
setup(p) {
|
|
824
|
-
const e = F("ServiceContainer"), { getStore: s } = e.storage, r =
|
|
824
|
+
const e = F("ServiceContainer"), { getStore: s } = e.storage, r = k(s("full-screen", !1)), o = k([]), i = (l) => l === "error" ? "text-red-400 border-red-400 dark:text-red-300 dark:border-red-300" : "text-lime-600 border-lime-600 dark:text-lime-300 dark:border-lime-1300", u = (l) => {
|
|
825
825
|
o.value.splice(l, 1);
|
|
826
826
|
}, d = (l) => {
|
|
827
827
|
let c = o.value.findIndex((g) => g.id === l);
|
|
@@ -835,18 +835,18 @@ const Je = (p, e) => {
|
|
|
835
835
|
d(c);
|
|
836
836
|
}, 5e3);
|
|
837
837
|
}), (l, c) => (n(), m("div", {
|
|
838
|
-
class:
|
|
838
|
+
class: z([r.value.value ? "fixed" : "absolute", "bottom-0 max-w-fit flex flex-col bottom-0 left-1/2 -translate-x-1/2"])
|
|
839
839
|
}, [
|
|
840
840
|
H(Ee, {
|
|
841
841
|
name: "vf-toast-item",
|
|
842
842
|
"leave-active-class": "transition-all duration-1000",
|
|
843
843
|
"leave-to-class": "opacity-0"
|
|
844
844
|
}, {
|
|
845
|
-
default:
|
|
845
|
+
default: A(() => [
|
|
846
846
|
(n(!0), m(U, null, I(o.value, (g, _) => (n(), m("div", {
|
|
847
|
-
onClick: (
|
|
847
|
+
onClick: (w) => u(_),
|
|
848
848
|
key: g,
|
|
849
|
-
class:
|
|
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))
|
|
851
851
|
]),
|
|
852
852
|
_: 1
|
|
@@ -902,7 +902,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
902
902
|
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"
|
|
903
903
|
}, null, -1), Fs = [
|
|
904
904
|
Ts
|
|
905
|
-
],
|
|
905
|
+
], Os = { class: "overflow-ellipsis overflow-hidden whitespace-nowrap" }, Vs = { class: "col-span-5 overflow-ellipsis overflow-hidden whitespace-nowrap" }, Ns = ["onDblclick", "onContextmenu", "onDragstart", "onDragover", "onDrop", "data-type", "data-item", "data-index"], Bs = { class: "grid grid-cols-12 items-center" }, zs = { class: "flex col-span-7 items-center" }, Us = {
|
|
906
906
|
key: 0,
|
|
907
907
|
xmlns: "http://www.w3.org/2000/svg",
|
|
908
908
|
class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
|
|
@@ -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 = (x) => x == null ? void 0 : x.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: x }) => {
|
|
975
|
+
c.value = x, x ? 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: x
|
|
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 w = () => {
|
|
989
989
|
_ && clearTimeout(_);
|
|
990
|
-
}, y =
|
|
991
|
-
|
|
992
|
-
},
|
|
990
|
+
}, y = k(!0), E = (x) => {
|
|
991
|
+
x.touches.length > 1 && (y.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")), y.value = !y.value);
|
|
992
|
+
}, $ = (x) => {
|
|
993
993
|
_ = setTimeout(() => {
|
|
994
994
|
const D = new MouseEvent("contextmenu", {
|
|
995
995
|
bubbles: !0,
|
|
@@ -997,37 +997,37 @@ 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: x.target.getBoundingClientRect().x,
|
|
1001
|
+
clientY: x.target.getBoundingClientRect().y
|
|
1002
1002
|
});
|
|
1003
|
-
|
|
1003
|
+
x.target.dispatchEvent(D);
|
|
1004
1004
|
}, 500);
|
|
1005
|
-
},
|
|
1006
|
-
|
|
1007
|
-
},
|
|
1008
|
-
let D = [...e.data.files],
|
|
1009
|
-
if (!
|
|
1005
|
+
}, f = (x) => {
|
|
1006
|
+
x.type === "dir" ? (e.emitter.emit("vf-search-exit"), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.data.adapter, path: x.path } })) : e.emitter.emit("vf-modal-show", { type: "preview", adapter: e.data.adapter, item: x });
|
|
1007
|
+
}, h = ie({ active: !1, column: "", order: "" }), N = (x = !0) => {
|
|
1008
|
+
let D = [...e.data.files], C = h.column, j = h.order == "asc" ? 1 : -1;
|
|
1009
|
+
if (!x)
|
|
1010
1010
|
return D;
|
|
1011
|
-
const
|
|
1012
|
-
return
|
|
1013
|
-
}, R = (
|
|
1014
|
-
|
|
1015
|
-
}, K = () => d.value.getSelection().map((
|
|
1016
|
-
if (
|
|
1017
|
-
return
|
|
1018
|
-
|
|
1019
|
-
}, se = (
|
|
1020
|
-
|
|
1021
|
-
let
|
|
1022
|
-
if (
|
|
1011
|
+
const S = (b, L) => typeof b == "string" && typeof L == "string" ? b.toLowerCase().localeCompare(L.toLowerCase()) : b < L ? -1 : b > L ? 1 : 0;
|
|
1012
|
+
return h.active && (D = D.slice().sort((b, L) => S(b[C], L[C]) * j)), D;
|
|
1013
|
+
}, R = (x) => {
|
|
1014
|
+
h.active && h.column == x ? (h.active = h.order == "asc", h.column = x, h.order = "desc") : (h.active = !0, h.column = x, h.order = "asc");
|
|
1015
|
+
}, K = () => d.value.getSelection().map((x) => JSON.parse(x.dataset.item)), te = (x, D) => {
|
|
1016
|
+
if (x.altKey || x.ctrlKey || x.metaKey)
|
|
1017
|
+
return x.preventDefault(), !1;
|
|
1018
|
+
x.dataTransfer.setDragImage(i.value, 0, 15), x.dataTransfer.effectAllowed = "all", x.dataTransfer.dropEffect = "copy", x.dataTransfer.setData("items", JSON.stringify(K()));
|
|
1019
|
+
}, se = (x, D) => {
|
|
1020
|
+
x.preventDefault();
|
|
1021
|
+
let C = JSON.parse(x.dataTransfer.getData("items"));
|
|
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
|
-
e.emitter.emit("vf-modal-show", { type: "move", items: { from:
|
|
1027
|
-
}, ae = (
|
|
1028
|
-
|
|
1026
|
+
e.emitter.emit("vf-modal-show", { type: "move", items: { from: C, to: D } });
|
|
1027
|
+
}, ae = (x, D) => {
|
|
1028
|
+
x.preventDefault(), !D || D.type !== "dir" || d.value.getSelection().find((C) => C == x.currentTarget) ? (x.dataTransfer.dropEffect = "none", x.dataTransfer.effectAllowed = "none") : x.dataTransfer.dropEffect = "copy";
|
|
1029
1029
|
}, oe = () => {
|
|
1030
|
-
d.value = new
|
|
1030
|
+
d.value = new Ve({
|
|
1031
1031
|
area: o.value,
|
|
1032
1032
|
keyboardDrag: !1,
|
|
1033
1033
|
selectedClass: "vf-explorer-selected",
|
|
@@ -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: x, isDragging: D }) => {
|
|
1040
1040
|
if (D)
|
|
1041
1041
|
u.value = d.value.getSelection().length, d.value.break();
|
|
1042
1042
|
else {
|
|
1043
|
-
const
|
|
1044
|
-
|
|
1043
|
+
const C = x.target.offsetWidth - x.offsetX, j = x.target.offsetHeight - x.offsetY;
|
|
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: x }) => {
|
|
1047
|
+
x && d.value.break();
|
|
1048
|
+
}), d.value.subscribe("callback", ({ items: x, event: D, isDragging: C }) => {
|
|
1049
1049
|
e.emitter.emit("vf-nodes-selected", K()), u.value = d.value.getSelection().length;
|
|
1050
1050
|
});
|
|
1051
1051
|
};
|
|
@@ -1057,56 +1057,56 @@ 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
|
+
}), (x, D) => (n(), m("div", ys, [
|
|
1061
1061
|
a(e).view == "list" || c.value.length ? (n(), m("div", xs, [
|
|
1062
1062
|
t("div", {
|
|
1063
|
-
onClick: D[0] || (D[0] = (
|
|
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
|
q(H(ne, {
|
|
1068
|
-
direction:
|
|
1068
|
+
direction: h.order == "asc" ? "down" : "up"
|
|
1069
1069
|
}, null, 8, ["direction"]), [
|
|
1070
|
-
[re,
|
|
1070
|
+
[re, h.active && h.column == "basename"]
|
|
1071
1071
|
])
|
|
1072
1072
|
]),
|
|
1073
|
-
c.value.length ?
|
|
1073
|
+
c.value.length ? M("", !0) : (n(), m("div", {
|
|
1074
1074
|
key: 0,
|
|
1075
|
-
onClick: D[1] || (D[1] = (
|
|
1075
|
+
onClick: D[1] || (D[1] = (C) => R("file_size")),
|
|
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
|
q(H(ne, {
|
|
1080
|
-
direction:
|
|
1080
|
+
direction: h.order == "asc" ? "down" : "up"
|
|
1081
1081
|
}, null, 8, ["direction"]), [
|
|
1082
|
-
[re,
|
|
1082
|
+
[re, h.active && h.column == "file_size"]
|
|
1083
1083
|
])
|
|
1084
1084
|
])),
|
|
1085
|
-
c.value.length ?
|
|
1085
|
+
c.value.length ? M("", !0) : (n(), m("div", {
|
|
1086
1086
|
key: 1,
|
|
1087
|
-
onClick: D[2] || (D[2] = (
|
|
1087
|
+
onClick: D[2] || (D[2] = (C) => R("last_modified")),
|
|
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
|
q(H(ne, {
|
|
1092
|
-
direction:
|
|
1092
|
+
direction: h.order == "asc" ? "down" : "up"
|
|
1093
1093
|
}, null, 8, ["direction"]), [
|
|
1094
|
-
[re,
|
|
1094
|
+
[re, h.active && h.column == "last_modified"]
|
|
1095
1095
|
])
|
|
1096
1096
|
])),
|
|
1097
1097
|
c.value.length ? (n(), m("div", {
|
|
1098
1098
|
key: 2,
|
|
1099
|
-
onClick: D[3] || (D[3] = (
|
|
1099
|
+
onClick: D[3] || (D[3] = (C) => R("path")),
|
|
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
|
q(H(ne, {
|
|
1104
|
-
direction:
|
|
1104
|
+
direction: h.order == "asc" ? "down" : "up"
|
|
1105
1105
|
}, null, 8, ["direction"]), [
|
|
1106
|
-
[re,
|
|
1106
|
+
[re, h.active && h.column == "path"]
|
|
1107
1107
|
])
|
|
1108
|
-
])) :
|
|
1109
|
-
])) :
|
|
1108
|
+
])) : M("", !0)
|
|
1109
|
+
])) : M("", !0),
|
|
1110
1110
|
t("div", ws, [
|
|
1111
1111
|
t("div", {
|
|
1112
1112
|
ref_key: "dragImage",
|
|
@@ -1118,80 +1118,80 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1118
1118
|
], 512)
|
|
1119
1119
|
]),
|
|
1120
1120
|
t("div", {
|
|
1121
|
-
onTouchstart:
|
|
1122
|
-
onContextmenu: D[10] || (D[10] = Y((
|
|
1123
|
-
class:
|
|
1121
|
+
onTouchstart: E,
|
|
1122
|
+
onContextmenu: D[10] || (D[10] = Y((C) => a(e).emitter.emit("vf-contextmenu-show", { event: C, area: o.value, items: K() }), ["self", "prevent"])),
|
|
1123
|
+
class: z([a(e).fullScreen ? "" : "resize-y", "h-full w-full text-xs vf-selector-area vf-scrollbar min-h-[150px] overflow-auto p-1 z-0"]),
|
|
1124
1124
|
ref_key: "selectorArea",
|
|
1125
1125
|
ref: o
|
|
1126
1126
|
}, [
|
|
1127
|
-
c.value.length ? (n(!0), m(U, { key: 0 }, I(
|
|
1128
|
-
onDblclick: (
|
|
1129
|
-
onTouchstart: D[4] || (D[4] = (
|
|
1130
|
-
onTouchend: D[5] || (D[5] = (
|
|
1131
|
-
onContextmenu: Y((
|
|
1132
|
-
class:
|
|
1133
|
-
"data-type":
|
|
1134
|
-
"data-item": JSON.stringify(
|
|
1135
|
-
"data-index":
|
|
1127
|
+
c.value.length ? (n(!0), m(U, { key: 0 }, I(N(), (C, j) => (n(), m("div", {
|
|
1128
|
+
onDblclick: (S) => f(C),
|
|
1129
|
+
onTouchstart: D[4] || (D[4] = (S) => $(S)),
|
|
1130
|
+
onTouchend: D[5] || (D[5] = (S) => w()),
|
|
1131
|
+
onContextmenu: Y((S) => a(e).emitter.emit("vf-contextmenu-show", { event: S, area: o.value, items: K(), target: C }), ["prevent"]),
|
|
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
|
+
"data-type": C.type,
|
|
1134
|
+
"data-item": JSON.stringify(C),
|
|
1135
|
+
"data-index": j
|
|
1136
1136
|
}, [
|
|
1137
1137
|
t("div", Ms, [
|
|
1138
1138
|
t("div", Es, [
|
|
1139
|
-
|
|
1140
|
-
t("span",
|
|
1139
|
+
C.type === "dir" ? (n(), m("svg", Ds, As)) : (n(), m("svg", Ls, Fs)),
|
|
1140
|
+
t("span", Os, v(C.basename), 1)
|
|
1141
1141
|
]),
|
|
1142
|
-
t("div",
|
|
1142
|
+
t("div", Vs, v(C.path), 1)
|
|
1143
1143
|
])
|
|
1144
|
-
], 42, Ss))), 256)) :
|
|
1145
|
-
a(e).view === "list" && !c.value.length ? (n(!0), m(U, { key: 1 }, I(
|
|
1144
|
+
], 42, Ss))), 256)) : M("", !0),
|
|
1145
|
+
a(e).view === "list" && !c.value.length ? (n(!0), m(U, { key: 1 }, I(N(), (C, j) => (n(), m("div", {
|
|
1146
1146
|
draggable: "true",
|
|
1147
|
-
onDblclick: (
|
|
1148
|
-
onTouchstart: D[6] || (D[6] = (
|
|
1149
|
-
onTouchend: D[7] || (D[7] = (
|
|
1150
|
-
onContextmenu: Y((
|
|
1151
|
-
onDragstart: (
|
|
1152
|
-
onDragover: (
|
|
1153
|
-
onDrop: (
|
|
1154
|
-
class:
|
|
1155
|
-
"data-type":
|
|
1156
|
-
"data-item": JSON.stringify(
|
|
1157
|
-
"data-index":
|
|
1147
|
+
onDblclick: (S) => f(C),
|
|
1148
|
+
onTouchstart: D[6] || (D[6] = (S) => $(S)),
|
|
1149
|
+
onTouchend: D[7] || (D[7] = (S) => w()),
|
|
1150
|
+
onContextmenu: Y((S) => a(e).emitter.emit("vf-contextmenu-show", { event: S, area: o.value, items: K(), target: C }), ["prevent"]),
|
|
1151
|
+
onDragstart: (S) => te(S),
|
|
1152
|
+
onDragover: (S) => ae(S, C),
|
|
1153
|
+
onDrop: (S) => se(S, C),
|
|
1154
|
+
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"]),
|
|
1155
|
+
"data-type": C.type,
|
|
1156
|
+
"data-item": JSON.stringify(C),
|
|
1157
|
+
"data-index": j
|
|
1158
1158
|
}, [
|
|
1159
|
-
t("div",
|
|
1160
|
-
t("div",
|
|
1161
|
-
|
|
1162
|
-
t("span", Ws, v(
|
|
1159
|
+
t("div", Bs, [
|
|
1160
|
+
t("div", zs, [
|
|
1161
|
+
C.type === "dir" ? (n(), m("svg", Us, Rs)) : (n(), m("svg", qs, Ps)),
|
|
1162
|
+
t("span", Ws, v(C.basename), 1)
|
|
1163
1163
|
]),
|
|
1164
|
-
t("div", Gs, v(
|
|
1165
|
-
t("div", Ys, v(a(we)(
|
|
1164
|
+
t("div", Gs, v(C.file_size ? a(e).filesize(C.file_size) : ""), 1),
|
|
1165
|
+
t("div", Ys, v(a(we)(C.last_modified)), 1)
|
|
1166
1166
|
])
|
|
1167
|
-
], 42, Ns))), 256)) :
|
|
1168
|
-
a(e).view === "grid" && !c.value.length ? (n(!0), m(U, { key: 2 }, I(
|
|
1167
|
+
], 42, Ns))), 256)) : M("", !0),
|
|
1168
|
+
a(e).view === "grid" && !c.value.length ? (n(!0), m(U, { key: 2 }, I(N(!1), (C, j) => (n(), m("div", {
|
|
1169
1169
|
draggable: "true",
|
|
1170
|
-
onDblclick: (
|
|
1171
|
-
onTouchstart: D[8] || (D[8] = (
|
|
1172
|
-
onTouchend: D[9] || (D[9] = (
|
|
1173
|
-
onContextmenu: Y((
|
|
1174
|
-
onDragstart: (
|
|
1175
|
-
onDragover: (
|
|
1176
|
-
onDrop: (
|
|
1177
|
-
class:
|
|
1178
|
-
"data-type":
|
|
1179
|
-
"data-item": JSON.stringify(
|
|
1180
|
-
"data-index":
|
|
1170
|
+
onDblclick: (S) => f(C),
|
|
1171
|
+
onTouchstart: D[8] || (D[8] = (S) => $(S)),
|
|
1172
|
+
onTouchend: D[9] || (D[9] = (S) => w()),
|
|
1173
|
+
onContextmenu: Y((S) => a(e).emitter.emit("vf-contextmenu-show", { event: S, area: o.value, items: K(), target: C }), ["prevent"]),
|
|
1174
|
+
onDragstart: (S) => te(S),
|
|
1175
|
+
onDragover: (S) => ae(S, C),
|
|
1176
|
+
onDrop: (S) => se(S, C),
|
|
1177
|
+
class: z(["vf-item-" + a(l), "border border-transparent hover:bg-neutral-50 m-1 dark:hover:bg-gray-700 inline-flex w-[5.5rem] h-20 md:w-24 text-center justify-center select-none"]),
|
|
1178
|
+
"data-type": C.type,
|
|
1179
|
+
"data-item": JSON.stringify(C),
|
|
1180
|
+
"data-index": j
|
|
1181
1181
|
}, [
|
|
1182
1182
|
t("div", null, [
|
|
1183
1183
|
t("div", Js, [
|
|
1184
|
-
|
|
1184
|
+
C.type === "dir" ? (n(), m("svg", Xs, Zs)) : (C.mime_type ?? "").startsWith("image") ? (n(), m("img", {
|
|
1185
1185
|
key: 1,
|
|
1186
1186
|
class: "lazy h-10 md:h-12 m-auto",
|
|
1187
|
-
"data-src": a(e).requester.getPreviewUrl(a(e).adapter,
|
|
1188
|
-
alt:
|
|
1187
|
+
"data-src": a(e).requester.getPreviewUrl(a(e).adapter, C),
|
|
1188
|
+
alt: C.basename
|
|
1189
1189
|
}, null, 8, ea)) : (n(), m("svg", ta, aa)),
|
|
1190
|
-
!(
|
|
1190
|
+
!(C.mime_type ?? "").startsWith("image") && C.type != "dir" ? (n(), m("div", oa, v(r(C.extension)), 1)) : M("", !0)
|
|
1191
1191
|
]),
|
|
1192
|
-
t("span", ra, v(a(he)(
|
|
1192
|
+
t("span", ra, v(a(he)(C.basename)), 1)
|
|
1193
1193
|
])
|
|
1194
|
-
], 42, Ks))), 256)) :
|
|
1194
|
+
], 42, Ks))), 256)) : M("", !0)
|
|
1195
1195
|
], 34),
|
|
1196
1196
|
H(bs)
|
|
1197
1197
|
]));
|
|
@@ -1200,7 +1200,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1200
1200
|
name: "VFContextMenu"
|
|
1201
1201
|
}, va = /* @__PURE__ */ Object.assign(ma, {
|
|
1202
1202
|
setup(p) {
|
|
1203
|
-
const e = F("ServiceContainer"), { t: s } = e.i18n, r =
|
|
1203
|
+
const e = F("ServiceContainer"), { t: s } = e.i18n, r = k(null), o = k([]), i = k(""), u = ie({
|
|
1204
1204
|
active: !1,
|
|
1205
1205
|
items: [],
|
|
1206
1206
|
positions: {
|
|
@@ -1213,14 +1213,14 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1213
1213
|
});
|
|
1214
1214
|
const l = {
|
|
1215
1215
|
newfolder: {
|
|
1216
|
-
key:
|
|
1216
|
+
key: B.NEW_FOLDER,
|
|
1217
1217
|
title: () => s("New Folder"),
|
|
1218
1218
|
action: () => {
|
|
1219
1219
|
e.emitter.emit("vf-modal-show", { type: "new-folder" });
|
|
1220
1220
|
}
|
|
1221
1221
|
},
|
|
1222
1222
|
delete: {
|
|
1223
|
-
key:
|
|
1223
|
+
key: B.DELETE,
|
|
1224
1224
|
title: () => s("Delete"),
|
|
1225
1225
|
action: () => {
|
|
1226
1226
|
e.emitter.emit("vf-modal-show", { type: "delete", items: o });
|
|
@@ -1233,7 +1233,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1233
1233
|
}
|
|
1234
1234
|
},
|
|
1235
1235
|
preview: {
|
|
1236
|
-
key:
|
|
1236
|
+
key: B.PREVIEW,
|
|
1237
1237
|
title: () => s("Preview"),
|
|
1238
1238
|
action: () => {
|
|
1239
1239
|
e.emitter.emit("vf-modal-show", { type: "preview", adapter: e.data.adapter, item: o.value[0] });
|
|
@@ -1252,7 +1252,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1252
1252
|
}
|
|
1253
1253
|
},
|
|
1254
1254
|
download: {
|
|
1255
|
-
key:
|
|
1255
|
+
key: B.DOWNLOAD,
|
|
1256
1256
|
link: ee(() => e.requester.getDownloadUrl(e.data.adapter, o.value[0])),
|
|
1257
1257
|
title: () => s("Download"),
|
|
1258
1258
|
action: () => {
|
|
@@ -1261,21 +1261,21 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1261
1261
|
}
|
|
1262
1262
|
},
|
|
1263
1263
|
archive: {
|
|
1264
|
-
key:
|
|
1264
|
+
key: B.ARCHIVE,
|
|
1265
1265
|
title: () => s("Archive"),
|
|
1266
1266
|
action: () => {
|
|
1267
1267
|
e.emitter.emit("vf-modal-show", { type: "archive", items: o });
|
|
1268
1268
|
}
|
|
1269
1269
|
},
|
|
1270
1270
|
unarchive: {
|
|
1271
|
-
key:
|
|
1271
|
+
key: B.UNARCHIVE,
|
|
1272
1272
|
title: () => s("Unarchive"),
|
|
1273
1273
|
action: () => {
|
|
1274
1274
|
e.emitter.emit("vf-modal-show", { type: "unarchive", items: o });
|
|
1275
1275
|
}
|
|
1276
1276
|
},
|
|
1277
1277
|
rename: {
|
|
1278
|
-
key:
|
|
1278
|
+
key: B.RENAME,
|
|
1279
1279
|
title: () => s("Rename"),
|
|
1280
1280
|
action: () => {
|
|
1281
1281
|
e.emitter.emit("vf-modal-show", { type: "rename", items: o });
|
|
@@ -1286,29 +1286,29 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1286
1286
|
};
|
|
1287
1287
|
e.emitter.on("vf-search-query", ({ newQuery: _ }) => {
|
|
1288
1288
|
i.value = _;
|
|
1289
|
-
}), e.emitter.on("vf-contextmenu-show", ({ event: _, area:
|
|
1289
|
+
}), e.emitter.on("vf-contextmenu-show", ({ event: _, area: w, items: y, target: E = null }) => {
|
|
1290
1290
|
if (u.items = [], i.value)
|
|
1291
|
-
if (
|
|
1292
|
-
u.items.push(l.openDir), e.emitter.emit("vf-context-selected", [
|
|
1291
|
+
if (E)
|
|
1292
|
+
u.items.push(l.openDir), e.emitter.emit("vf-context-selected", [E]);
|
|
1293
1293
|
else
|
|
1294
1294
|
return;
|
|
1295
1295
|
else
|
|
1296
|
-
!
|
|
1297
|
-
g(_,
|
|
1296
|
+
!E && !i.value ? (u.items.push(l.refresh), u.items.push(l.newfolder), e.emitter.emit("vf-context-selected", [])) : y.length > 1 && y.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", y)) : (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]));
|
|
1297
|
+
g(_, w);
|
|
1298
1298
|
}), e.emitter.on("vf-contextmenu-hide", () => {
|
|
1299
1299
|
u.active = !1;
|
|
1300
1300
|
});
|
|
1301
|
-
const g = (_,
|
|
1301
|
+
const g = (_, w) => {
|
|
1302
1302
|
u.active = !0, ce(() => {
|
|
1303
|
-
const y = e.root.getBoundingClientRect(),
|
|
1304
|
-
let
|
|
1305
|
-
|
|
1306
|
-
left:
|
|
1307
|
-
top:
|
|
1303
|
+
const y = e.root.getBoundingClientRect(), E = w.getBoundingClientRect();
|
|
1304
|
+
let $ = _.pageX - y.left, f = _.pageY - y.top, h = r.value.offsetHeight, N = r.value.offsetWidth;
|
|
1305
|
+
$ = E.right - _.pageX + window.scrollX < N ? $ - N : $, f = E.bottom - _.pageY + window.scrollY < h ? f - h : f, u.positions = {
|
|
1306
|
+
left: $ + "px",
|
|
1307
|
+
top: f + "px"
|
|
1308
1308
|
};
|
|
1309
1309
|
});
|
|
1310
1310
|
};
|
|
1311
|
-
return (_,
|
|
1311
|
+
return (_, w) => u.active ? (n(), m("ul", {
|
|
1312
1312
|
key: 0,
|
|
1313
1313
|
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
1314
|
ref_key: "contextmenu",
|
|
@@ -1318,7 +1318,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1318
1318
|
(n(!0), m(U, null, I(d.value, (y) => (n(), m("li", {
|
|
1319
1319
|
class: "px-2 py-1.5 cursor-pointer hover:bg-neutral-200 dark:hover:bg-gray-700",
|
|
1320
1320
|
key: y.title,
|
|
1321
|
-
onClick: (
|
|
1321
|
+
onClick: (E) => c(y)
|
|
1322
1322
|
}, [
|
|
1323
1323
|
y.link ? (n(), m("a", {
|
|
1324
1324
|
key: 0,
|
|
@@ -1333,7 +1333,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1333
1333
|
t("span", null, v(y.title()), 1)
|
|
1334
1334
|
], 64))
|
|
1335
1335
|
], 8, ia))), 128))
|
|
1336
|
-
], 4)) :
|
|
1336
|
+
], 4)) : M("", !0);
|
|
1337
1337
|
}
|
|
1338
1338
|
}), pa = { class: "p-1 text-xs border-t border-neutral-300 dark:border-gray-700/50 flex justify-between select-none" }, ha = { class: "flex leading-5 items-center" }, fa = ["aria-label"], ga = /* @__PURE__ */ t("svg", {
|
|
1339
1339
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1369,13 +1369,13 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1369
1369
|
name: "VFStatusbar"
|
|
1370
1370
|
}, Da = /* @__PURE__ */ Object.assign(Ea, {
|
|
1371
1371
|
setup(p) {
|
|
1372
|
-
const e = F("ServiceContainer"), { t: s } = e.i18n, { setStore: r } = e.storage, o =
|
|
1372
|
+
const e = F("ServiceContainer"), { t: s } = e.i18n, { setStore: r } = e.storage, o = k(0), i = () => {
|
|
1373
1373
|
e.emitter.emit("vf-search-exit"), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.adapter } }), r("adapter", e.adapter);
|
|
1374
1374
|
};
|
|
1375
1375
|
e.emitter.on("vf-nodes-selected", (l) => {
|
|
1376
1376
|
o.value = l.length;
|
|
1377
1377
|
});
|
|
1378
|
-
const u =
|
|
1378
|
+
const u = k("");
|
|
1379
1379
|
e.emitter.on("vf-search-query", ({ newQuery: l }) => {
|
|
1380
1380
|
u.value = l;
|
|
1381
1381
|
});
|
|
@@ -1401,17 +1401,17 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1401
1401
|
[pe, a(e).adapter]
|
|
1402
1402
|
]),
|
|
1403
1403
|
t("div", ba, [
|
|
1404
|
-
u.value.length ? (n(), m("span", ya, v(a(e).data.files.length) + " items found. ", 1)) :
|
|
1404
|
+
u.value.length ? (n(), m("span", ya, v(a(e).data.files.length) + " items found. ", 1)) : M("", !0),
|
|
1405
1405
|
t("span", xa, v(o.value > 0 ? a(s)("%s item(s) selected.", o.value) : ""), 1)
|
|
1406
1406
|
])
|
|
1407
1407
|
]),
|
|
1408
1408
|
t("div", wa, [
|
|
1409
1409
|
a(e).selectButton.active ? (n(), m("button", {
|
|
1410
1410
|
key: 0,
|
|
1411
|
-
class:
|
|
1411
|
+
class: z(["vf-btn py-0 vf-btn-primary", { disabled: !d.value }]),
|
|
1412
1412
|
disabled: !d.value,
|
|
1413
1413
|
onClick: c[1] || (c[1] = (g) => a(e).selectButton.click(a(e).selectedItems, g))
|
|
1414
|
-
}, v(a(s)("Select")), 11, $a)) :
|
|
1414
|
+
}, v(a(s)("Select")), 11, $a)) : M("", !0),
|
|
1415
1415
|
t("span", {
|
|
1416
1416
|
class: "mr-1",
|
|
1417
1417
|
"aria-label": a(s)("About"),
|
|
@@ -1487,7 +1487,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1487
1487
|
setup(p, { emit: e }) {
|
|
1488
1488
|
const s = e, o = Je(p, F("VueFinderOptions"));
|
|
1489
1489
|
je("ServiceContainer", o);
|
|
1490
|
-
const { setStore: i } = o.storage, u =
|
|
1490
|
+
const { setStore: i } = o.storage, u = k(null);
|
|
1491
1491
|
o.root = u, o.i18n, o.emitter.on("vf-modal-close", () => {
|
|
1492
1492
|
o.modal.active = !1;
|
|
1493
1493
|
}), o.emitter.on("vf-modal-show", (c) => {
|
|
@@ -1502,19 +1502,19 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1502
1502
|
let l;
|
|
1503
1503
|
return o.emitter.on("vf-fetch-abort", () => {
|
|
1504
1504
|
l.abort(), o.loading = !1;
|
|
1505
|
-
}), o.emitter.on("vf-fetch", ({ params: c, body: g = null, onSuccess: _ = null, onError:
|
|
1505
|
+
}), o.emitter.on("vf-fetch", ({ params: c, body: g = null, onSuccess: _ = null, onError: w = null, noCloseModal: y = !1 }) => {
|
|
1506
1506
|
["index", "search"].includes(c.q) && (l && l.abort(), o.loading = !0), l = new AbortController();
|
|
1507
|
-
const
|
|
1507
|
+
const E = l.signal;
|
|
1508
1508
|
o.requester.send({
|
|
1509
1509
|
url: "",
|
|
1510
1510
|
method: c.m || "get",
|
|
1511
1511
|
params: c,
|
|
1512
1512
|
body: g,
|
|
1513
|
-
abortSignal:
|
|
1514
|
-
}).then((
|
|
1515
|
-
o.adapter =
|
|
1516
|
-
}).catch((
|
|
1517
|
-
console.error(
|
|
1513
|
+
abortSignal: E
|
|
1514
|
+
}).then(($) => {
|
|
1515
|
+
o.adapter = $.adapter, o.persist && (o.path = $.dirname, i("path", o.path)), ["index", "search"].includes(c.q) && (o.loading = !1), y || o.emitter.emit("vf-modal-close"), d($), _ && _($);
|
|
1516
|
+
}).catch(($) => {
|
|
1517
|
+
console.error($), w && w($);
|
|
1518
1518
|
});
|
|
1519
1519
|
}), o.emitter.on("vf-download", (c) => {
|
|
1520
1520
|
const g = document.createElement("a");
|
|
@@ -1531,22 +1531,22 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1531
1531
|
ref: u
|
|
1532
1532
|
}, [
|
|
1533
1533
|
t("div", {
|
|
1534
|
-
class:
|
|
1534
|
+
class: z(a(o).theme.actualValue === "dark" ? "dark" : "")
|
|
1535
1535
|
}, [
|
|
1536
1536
|
t("div", {
|
|
1537
|
-
class:
|
|
1537
|
+
class: z([a(o).fullScreen ? "fixed w-screen inset-0 z-20" : "relative rounded-md", "border flex flex-col bg-white dark:bg-gray-800 text-gray-700 dark:text-neutral-400 border-neutral-300 dark:border-gray-900 min-w-min select-none"]),
|
|
1538
1538
|
style: be(a(o).fullScreen ? "" : "max-height: " + p.maxHeight),
|
|
1539
1539
|
onMousedown: g[0] || (g[0] = (_) => a(o).emitter.emit("vf-contextmenu-hide")),
|
|
1540
1540
|
onTouchstart: g[1] || (g[1] = (_) => a(o).emitter.emit("vf-contextmenu-hide"))
|
|
1541
1541
|
}, [
|
|
1542
|
-
H(
|
|
1542
|
+
H(Vt),
|
|
1543
1543
|
H(cs),
|
|
1544
1544
|
H(la),
|
|
1545
1545
|
H(Da)
|
|
1546
1546
|
], 38),
|
|
1547
1547
|
H(Ae, { name: "fade" }, {
|
|
1548
|
-
default:
|
|
1549
|
-
a(o).modal.active ? (n(), T(Le("v-f-modal-" + a(o).modal.type), { key: 0 })) :
|
|
1548
|
+
default: A(() => [
|
|
1549
|
+
a(o).modal.active ? (n(), T(Le("v-f-modal-" + a(o).modal.type), { key: 0 })) : M("", !0)
|
|
1550
1550
|
]),
|
|
1551
1551
|
_: 1
|
|
1552
1552
|
}),
|
|
@@ -1554,7 +1554,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1554
1554
|
], 2)
|
|
1555
1555
|
], 512));
|
|
1556
1556
|
}
|
|
1557
|
-
}), La = /* @__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), Ta = { class: "fixed z-10 inset-0 overflow-hidden" }, Fa = { 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" },
|
|
1557
|
+
}), La = /* @__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), Ta = { class: "fixed z-10 inset-0 overflow-hidden" }, Fa = { 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" }, Oa = { class: "bg-white dark:bg-gray-800 px-4 pt-5 pb-4 sm:p-6 sm:pb-4" }, Va = { 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
1558
|
__name: "ModalLayout",
|
|
1559
1559
|
setup(p) {
|
|
1560
1560
|
const e = F("ServiceContainer");
|
|
@@ -1576,10 +1576,10 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1576
1576
|
onMousedown: r[0] || (r[0] = Y((o) => a(e).emitter.emit("vf-modal-close"), ["self"]))
|
|
1577
1577
|
}, [
|
|
1578
1578
|
t("div", Fa, [
|
|
1579
|
-
t("div",
|
|
1579
|
+
t("div", Oa, [
|
|
1580
1580
|
le(s.$slots, "default")
|
|
1581
1581
|
]),
|
|
1582
|
-
t("div",
|
|
1582
|
+
t("div", Va, [
|
|
1583
1583
|
le(s.$slots, "buttons")
|
|
1584
1584
|
])
|
|
1585
1585
|
])
|
|
@@ -1587,7 +1587,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1587
1587
|
])
|
|
1588
1588
|
], 32));
|
|
1589
1589
|
}
|
|
1590
|
-
}, Na = ["aria-label"],
|
|
1590
|
+
}, Na = ["aria-label"], Ba = /* @__PURE__ */ t("svg", {
|
|
1591
1591
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1592
1592
|
fill: "none",
|
|
1593
1593
|
viewBox: "0 0 24 24",
|
|
@@ -1600,8 +1600,8 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1600
1600
|
"stroke-linejoin": "round",
|
|
1601
1601
|
d: "M6 18L18 6M6 6l12 12"
|
|
1602
1602
|
})
|
|
1603
|
-
], -1),
|
|
1604
|
-
|
|
1603
|
+
], -1), za = [
|
|
1604
|
+
Ba
|
|
1605
1605
|
], Ua = {
|
|
1606
1606
|
name: "Message"
|
|
1607
1607
|
}, G = /* @__PURE__ */ Object.assign(Ua, {
|
|
@@ -1614,17 +1614,17 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1614
1614
|
emits: ["hidden"],
|
|
1615
1615
|
setup(p, { emit: e }) {
|
|
1616
1616
|
var c;
|
|
1617
|
-
const s = e, r = F("ServiceContainer"), { t: o } = r.i18n, i =
|
|
1617
|
+
const s = e, r = F("ServiceContainer"), { t: o } = r.i18n, i = k(!1), u = k(null), d = k((c = u.value) == null ? void 0 : c.strMessage);
|
|
1618
1618
|
de(d, () => i.value = !1);
|
|
1619
1619
|
const l = () => {
|
|
1620
1620
|
s("hidden"), i.value = !0;
|
|
1621
1621
|
};
|
|
1622
1622
|
return (g, _) => (n(), m("div", null, [
|
|
1623
|
-
i.value ?
|
|
1623
|
+
i.value ? M("", !0) : (n(), m("div", {
|
|
1624
1624
|
key: 0,
|
|
1625
1625
|
ref_key: "strMessage",
|
|
1626
1626
|
ref: u,
|
|
1627
|
-
class:
|
|
1627
|
+
class: z(["flex mt-2 p-1 px-2 rounded text-sm break-all dark:opacity-75", p.error ? "bg-red-100 text-red-600 " : "bg-emerald-100 text-emerald-600"])
|
|
1628
1628
|
}, [
|
|
1629
1629
|
le(g.$slots, "default"),
|
|
1630
1630
|
t("div", {
|
|
@@ -1633,7 +1633,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1633
1633
|
"aria-label": a(o)("Close"),
|
|
1634
1634
|
"data-microtip-position": "top-left",
|
|
1635
1635
|
role: "tooltip"
|
|
1636
|
-
},
|
|
1636
|
+
}, za, 8, Na)
|
|
1637
1637
|
], 2))
|
|
1638
1638
|
]));
|
|
1639
1639
|
}
|
|
@@ -1692,7 +1692,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1692
1692
|
setup(p) {
|
|
1693
1693
|
const e = F("ServiceContainer");
|
|
1694
1694
|
e.storage;
|
|
1695
|
-
const { t: s } = e.i18n, r =
|
|
1695
|
+
const { t: s } = e.i18n, r = k(e.modal.data.items), o = k(""), i = () => {
|
|
1696
1696
|
r.value.length && e.emitter.emit("vf-fetch", {
|
|
1697
1697
|
params: {
|
|
1698
1698
|
q: "delete",
|
|
@@ -1712,7 +1712,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1712
1712
|
});
|
|
1713
1713
|
};
|
|
1714
1714
|
return (u, d) => (n(), T(W, null, {
|
|
1715
|
-
buttons:
|
|
1715
|
+
buttons: A(() => [
|
|
1716
1716
|
t("button", {
|
|
1717
1717
|
type: "button",
|
|
1718
1718
|
onClick: i,
|
|
@@ -1725,7 +1725,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1725
1725
|
}, v(a(s)("Cancel")), 1),
|
|
1726
1726
|
t("div", so, v(a(s)("This action cannot be undone.")), 1)
|
|
1727
1727
|
]),
|
|
1728
|
-
default:
|
|
1728
|
+
default: A(() => [
|
|
1729
1729
|
t("div", Ha, [
|
|
1730
1730
|
Ra,
|
|
1731
1731
|
t("div", qa, [
|
|
@@ -1743,11 +1743,11 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1743
1743
|
onHidden: d[0] || (d[0] = (l) => o.value = ""),
|
|
1744
1744
|
error: ""
|
|
1745
1745
|
}, {
|
|
1746
|
-
default:
|
|
1746
|
+
default: A(() => [
|
|
1747
1747
|
V(v(o.value), 1)
|
|
1748
1748
|
]),
|
|
1749
1749
|
_: 1
|
|
1750
|
-
})) :
|
|
1750
|
+
})) : M("", !0)
|
|
1751
1751
|
])
|
|
1752
1752
|
])
|
|
1753
1753
|
])
|
|
@@ -1779,14 +1779,14 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1779
1779
|
setup(p) {
|
|
1780
1780
|
const e = F("ServiceContainer"), { t: s } = e.i18n;
|
|
1781
1781
|
return (r, o) => (n(), T(W, null, {
|
|
1782
|
-
buttons:
|
|
1782
|
+
buttons: A(() => [
|
|
1783
1783
|
t("button", {
|
|
1784
1784
|
type: "button",
|
|
1785
1785
|
onClick: o[0] || (o[0] = (i) => a(e).emitter.emit("vf-modal-close")),
|
|
1786
1786
|
class: "vf-btn vf-btn-secondary"
|
|
1787
1787
|
}, v(a(s)("Close")), 1)
|
|
1788
1788
|
]),
|
|
1789
|
-
default:
|
|
1789
|
+
default: A(() => {
|
|
1790
1790
|
var i, u;
|
|
1791
1791
|
return [
|
|
1792
1792
|
t("div", ro, [
|
|
@@ -1827,7 +1827,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1827
1827
|
setup(p) {
|
|
1828
1828
|
const e = F("ServiceContainer");
|
|
1829
1829
|
e.storage;
|
|
1830
|
-
const { t: s } = e.i18n, r =
|
|
1830
|
+
const { t: s } = e.i18n, r = k(""), o = k(""), i = () => {
|
|
1831
1831
|
r.value != "" && e.emitter.emit("vf-fetch", {
|
|
1832
1832
|
params: {
|
|
1833
1833
|
q: "newfolder",
|
|
@@ -1847,7 +1847,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1847
1847
|
});
|
|
1848
1848
|
};
|
|
1849
1849
|
return (u, d) => (n(), T(W, null, {
|
|
1850
|
-
buttons:
|
|
1850
|
+
buttons: A(() => [
|
|
1851
1851
|
t("button", {
|
|
1852
1852
|
type: "button",
|
|
1853
1853
|
onClick: i,
|
|
@@ -1859,7 +1859,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1859
1859
|
class: "vf-btn vf-btn-secondary"
|
|
1860
1860
|
}, v(a(s)("Cancel")), 1)
|
|
1861
1861
|
]),
|
|
1862
|
-
default:
|
|
1862
|
+
default: A(() => [
|
|
1863
1863
|
t("div", po, [
|
|
1864
1864
|
ho,
|
|
1865
1865
|
t("div", fo, [
|
|
@@ -1880,11 +1880,11 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1880
1880
|
onHidden: d[1] || (d[1] = (l) => o.value = ""),
|
|
1881
1881
|
error: ""
|
|
1882
1882
|
}, {
|
|
1883
|
-
default:
|
|
1883
|
+
default: A(() => [
|
|
1884
1884
|
V(v(o.value), 1)
|
|
1885
1885
|
]),
|
|
1886
1886
|
_: 1
|
|
1887
|
-
})) :
|
|
1887
|
+
})) : M("", !0)
|
|
1888
1888
|
])
|
|
1889
1889
|
])
|
|
1890
1890
|
])
|
|
@@ -1916,7 +1916,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1916
1916
|
setup(p) {
|
|
1917
1917
|
const e = F("ServiceContainer");
|
|
1918
1918
|
e.storage;
|
|
1919
|
-
const { t: s } = e.i18n, r =
|
|
1919
|
+
const { t: s } = e.i18n, r = k(""), o = k(""), i = () => {
|
|
1920
1920
|
r.value != "" && e.emitter.emit("vf-fetch", {
|
|
1921
1921
|
params: {
|
|
1922
1922
|
q: "newfile",
|
|
@@ -1936,7 +1936,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1936
1936
|
});
|
|
1937
1937
|
};
|
|
1938
1938
|
return (u, d) => (n(), T(W, null, {
|
|
1939
|
-
buttons:
|
|
1939
|
+
buttons: A(() => [
|
|
1940
1940
|
t("button", {
|
|
1941
1941
|
type: "button",
|
|
1942
1942
|
onClick: i,
|
|
@@ -1948,7 +1948,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1948
1948
|
class: "vf-btn vf-btn-secondary"
|
|
1949
1949
|
}, v(a(s)("Cancel")), 1)
|
|
1950
1950
|
]),
|
|
1951
|
-
default:
|
|
1951
|
+
default: A(() => [
|
|
1952
1952
|
t("div", wo, [
|
|
1953
1953
|
$o,
|
|
1954
1954
|
t("div", Co, [
|
|
@@ -1969,11 +1969,11 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1969
1969
|
onHidden: d[1] || (d[1] = (l) => o.value = ""),
|
|
1970
1970
|
error: ""
|
|
1971
1971
|
}, {
|
|
1972
|
-
default:
|
|
1972
|
+
default: A(() => [
|
|
1973
1973
|
V(v(o.value), 1)
|
|
1974
1974
|
]),
|
|
1975
1975
|
_: 1
|
|
1976
|
-
})) :
|
|
1976
|
+
})) : M("", !0)
|
|
1977
1977
|
])
|
|
1978
1978
|
])
|
|
1979
1979
|
])
|
|
@@ -1981,14 +1981,14 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
1981
1981
|
_: 1
|
|
1982
1982
|
}));
|
|
1983
1983
|
}
|
|
1984
|
-
}), Lo = { class: "flex" }, To = ["aria-label"], Fo = { class: "ml-auto mb-2" },
|
|
1984
|
+
}), Lo = { class: "flex" }, To = ["aria-label"], Fo = { class: "ml-auto mb-2" }, Oo = {
|
|
1985
1985
|
key: 0,
|
|
1986
1986
|
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
|
-
},
|
|
1987
|
+
}, Vo = { key: 1 }, No = {
|
|
1988
1988
|
__name: "Text",
|
|
1989
1989
|
emits: ["success"],
|
|
1990
1990
|
setup(p, { emit: e }) {
|
|
1991
|
-
const s = e, r =
|
|
1991
|
+
const s = e, r = k(""), o = k(""), i = k(null), u = k(!1), d = k(""), l = k(!1), c = F("ServiceContainer"), { t: g } = c.i18n;
|
|
1992
1992
|
P(() => {
|
|
1993
1993
|
c.requester.send({
|
|
1994
1994
|
url: "",
|
|
@@ -2003,7 +2003,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2003
2003
|
u.value = !u.value, o.value = r.value, u.value == !0 && ce(() => {
|
|
2004
2004
|
i.value.focus();
|
|
2005
2005
|
});
|
|
2006
|
-
},
|
|
2006
|
+
}, w = () => {
|
|
2007
2007
|
d.value = "", l.value = !1, c.requester.send({
|
|
2008
2008
|
url: "",
|
|
2009
2009
|
method: "post",
|
|
@@ -2022,7 +2022,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2022
2022
|
d.value = g(y.message), l.value = !0;
|
|
2023
2023
|
});
|
|
2024
2024
|
};
|
|
2025
|
-
return (y,
|
|
2025
|
+
return (y, E) => (n(), m(U, null, [
|
|
2026
2026
|
t("div", Lo, [
|
|
2027
2027
|
t("div", {
|
|
2028
2028
|
class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
@@ -2034,22 +2034,22 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2034
2034
|
t("div", Fo, [
|
|
2035
2035
|
u.value ? (n(), m("button", {
|
|
2036
2036
|
key: 0,
|
|
2037
|
-
onClick:
|
|
2037
|
+
onClick: w,
|
|
2038
2038
|
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
|
-
}, v(a(g)("Save")), 1)) :
|
|
2040
|
-
a(c).features.includes(a(
|
|
2039
|
+
}, v(a(g)("Save")), 1)) : M("", !0),
|
|
2040
|
+
a(c).features.includes(a(B).EDIT) ? (n(), m("button", {
|
|
2041
2041
|
key: 1,
|
|
2042
2042
|
class: "ml-1 px-2 py-1 text-blue-500",
|
|
2043
|
-
onClick:
|
|
2044
|
-
}, v(u.value ? a(g)("Cancel") : a(g)("Edit")), 1)) :
|
|
2043
|
+
onClick: E[0] || (E[0] = ($) => _())
|
|
2044
|
+
}, v(u.value ? a(g)("Cancel") : a(g)("Edit")), 1)) : M("", !0)
|
|
2045
2045
|
])
|
|
2046
2046
|
]),
|
|
2047
2047
|
t("div", null, [
|
|
2048
|
-
u.value ? (n(), m("div",
|
|
2048
|
+
u.value ? (n(), m("div", Vo, [
|
|
2049
2049
|
q(t("textarea", {
|
|
2050
2050
|
ref_key: "editInput",
|
|
2051
2051
|
ref: i,
|
|
2052
|
-
"onUpdate:modelValue":
|
|
2052
|
+
"onUpdate:modelValue": E[1] || (E[1] = ($) => o.value = $),
|
|
2053
2053
|
class: "w-full p-2 rounded dark:bg-gray-700 dark:text-gray-200 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:selection:bg-gray-500 min-h-[200px] max-h-[60vh] text-xs",
|
|
2054
2054
|
name: "text",
|
|
2055
2055
|
id: "",
|
|
@@ -2058,27 +2058,27 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2058
2058
|
}, null, 512), [
|
|
2059
2059
|
[Z, o.value]
|
|
2060
2060
|
])
|
|
2061
|
-
])) : (n(), m("pre",
|
|
2061
|
+
])) : (n(), m("pre", Oo, v(r.value), 1)),
|
|
2062
2062
|
d.value.length ? (n(), T(G, {
|
|
2063
2063
|
key: 2,
|
|
2064
|
-
onHidden:
|
|
2064
|
+
onHidden: E[2] || (E[2] = ($) => d.value = ""),
|
|
2065
2065
|
error: l.value
|
|
2066
2066
|
}, {
|
|
2067
|
-
default:
|
|
2067
|
+
default: A(() => [
|
|
2068
2068
|
V(v(d.value), 1)
|
|
2069
2069
|
]),
|
|
2070
2070
|
_: 1
|
|
2071
|
-
}, 8, ["error"])) :
|
|
2071
|
+
}, 8, ["error"])) : M("", !0)
|
|
2072
2072
|
])
|
|
2073
2073
|
], 64));
|
|
2074
2074
|
}
|
|
2075
|
-
},
|
|
2075
|
+
}, Bo = { class: "flex" }, zo = ["aria-label"], Uo = { class: "ml-auto mb-2" }, Ho = { class: "w-full flex justify-center" }, Ro = ["src"], qo = {
|
|
2076
2076
|
__name: "Image",
|
|
2077
2077
|
emits: ["success"],
|
|
2078
2078
|
setup(p, { emit: e }) {
|
|
2079
|
-
const s = e, r = F("ServiceContainer"), { t: o } = r.i18n, i =
|
|
2080
|
-
d.value = !d.value, d.value ? u.value = new
|
|
2081
|
-
crop(
|
|
2079
|
+
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
|
+
d.value = !d.value, d.value ? u.value = new Be(i.value, {
|
|
2081
|
+
crop(w) {
|
|
2082
2082
|
}
|
|
2083
2083
|
}) : u.value.destroy();
|
|
2084
2084
|
}, _ = () => {
|
|
@@ -2086,10 +2086,10 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2086
2086
|
width: 795,
|
|
2087
2087
|
height: 341
|
|
2088
2088
|
}).toBlob(
|
|
2089
|
-
(
|
|
2089
|
+
(w) => {
|
|
2090
2090
|
l.value = "", c.value = !1;
|
|
2091
2091
|
const y = new FormData();
|
|
2092
|
-
y.set("file",
|
|
2092
|
+
y.set("file", w), r.requester.send({
|
|
2093
2093
|
url: "",
|
|
2094
2094
|
method: "post",
|
|
2095
2095
|
params: {
|
|
@@ -2098,36 +2098,36 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2098
2098
|
path: r.modal.data.item.path
|
|
2099
2099
|
},
|
|
2100
2100
|
body: y
|
|
2101
|
-
}).then((
|
|
2101
|
+
}).then((E) => {
|
|
2102
2102
|
l.value = o("Updated."), i.value.src = r.requester.getPreviewUrl(r.modal.data.adapter, r.modal.data.item), g(), s("success");
|
|
2103
|
-
}).catch((
|
|
2104
|
-
l.value = o(
|
|
2103
|
+
}).catch((E) => {
|
|
2104
|
+
l.value = o(E.message), c.value = !0;
|
|
2105
2105
|
});
|
|
2106
2106
|
}
|
|
2107
2107
|
);
|
|
2108
2108
|
};
|
|
2109
2109
|
return P(() => {
|
|
2110
2110
|
s("success");
|
|
2111
|
-
}), (
|
|
2112
|
-
t("div",
|
|
2111
|
+
}), (w, y) => (n(), m(U, null, [
|
|
2112
|
+
t("div", Bo, [
|
|
2113
2113
|
t("h3", {
|
|
2114
2114
|
class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
2115
2115
|
id: "modal-title",
|
|
2116
2116
|
"aria-label": a(r).modal.data.item.path,
|
|
2117
2117
|
"data-microtip-position": "bottom-right",
|
|
2118
2118
|
role: "tooltip"
|
|
2119
|
-
}, v(a(r).modal.data.item.basename), 9,
|
|
2119
|
+
}, v(a(r).modal.data.item.basename), 9, zo),
|
|
2120
2120
|
t("div", Uo, [
|
|
2121
2121
|
d.value ? (n(), m("button", {
|
|
2122
2122
|
key: 0,
|
|
2123
2123
|
onClick: _,
|
|
2124
2124
|
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"
|
|
2125
|
-
}, v(a(o)("Crop")), 1)) :
|
|
2126
|
-
a(r).features.includes(a(
|
|
2125
|
+
}, v(a(o)("Crop")), 1)) : M("", !0),
|
|
2126
|
+
a(r).features.includes(a(B).EDIT) ? (n(), m("button", {
|
|
2127
2127
|
key: 1,
|
|
2128
2128
|
class: "ml-1 px-2 py-1 text-blue-500",
|
|
2129
|
-
onClick: y[0] || (y[0] = (
|
|
2130
|
-
}, v(d.value ? a(o)("Cancel") : a(o)("Edit")), 1)) :
|
|
2129
|
+
onClick: y[0] || (y[0] = (E) => g())
|
|
2130
|
+
}, v(d.value ? a(o)("Cancel") : a(o)("Edit")), 1)) : M("", !0)
|
|
2131
2131
|
])
|
|
2132
2132
|
]),
|
|
2133
2133
|
t("div", Ho, [
|
|
@@ -2141,14 +2141,14 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2141
2141
|
]),
|
|
2142
2142
|
l.value.length ? (n(), T(G, {
|
|
2143
2143
|
key: 0,
|
|
2144
|
-
onHidden: y[1] || (y[1] = (
|
|
2144
|
+
onHidden: y[1] || (y[1] = (E) => l.value = ""),
|
|
2145
2145
|
error: c.value
|
|
2146
2146
|
}, {
|
|
2147
|
-
default:
|
|
2147
|
+
default: A(() => [
|
|
2148
2148
|
V(v(l.value), 1)
|
|
2149
2149
|
]),
|
|
2150
2150
|
_: 1
|
|
2151
|
-
}, 8, ["error"])) :
|
|
2151
|
+
}, 8, ["error"])) : M("", !0)
|
|
2152
2152
|
], 64));
|
|
2153
2153
|
}
|
|
2154
2154
|
}, Io = { class: "flex" }, Po = ["aria-label"], Wo = /* @__PURE__ */ t("div", null, null, -1), Go = {
|
|
@@ -2298,23 +2298,23 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2298
2298
|
name: "VFModalPreview"
|
|
2299
2299
|
}, br = /* @__PURE__ */ Object.assign(kr, {
|
|
2300
2300
|
setup(p) {
|
|
2301
|
-
const e = F("ServiceContainer"), { t: s } = e.i18n, r =
|
|
2301
|
+
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
2302
|
return i || (r.value = !0), (u, d) => (n(), T(W, null, {
|
|
2303
|
-
buttons:
|
|
2303
|
+
buttons: A(() => [
|
|
2304
2304
|
t("button", {
|
|
2305
2305
|
type: "button",
|
|
2306
2306
|
onClick: d[6] || (d[6] = (l) => a(e).emitter.emit("vf-modal-close")),
|
|
2307
2307
|
class: "vf-btn vf-btn-secondary"
|
|
2308
2308
|
}, v(a(s)("Close")), 1),
|
|
2309
|
-
a(e).features.includes(a(
|
|
2309
|
+
a(e).features.includes(a(B).DOWNLOAD) ? (n(), m("a", {
|
|
2310
2310
|
key: 0,
|
|
2311
2311
|
target: "_blank",
|
|
2312
2312
|
class: "vf-btn vf-btn-primary",
|
|
2313
2313
|
download: a(e).requester.getDownloadUrl(a(e).modal.data.adapter, a(e).modal.data.item),
|
|
2314
2314
|
href: a(e).requester.getDownloadUrl(a(e).modal.data.adapter, a(e).modal.data.item)
|
|
2315
|
-
}, v(a(s)("Download")), 9, _r)) :
|
|
2315
|
+
}, v(a(s)("Download")), 9, _r)) : M("", !0)
|
|
2316
2316
|
]),
|
|
2317
|
-
default:
|
|
2317
|
+
default: A(() => [
|
|
2318
2318
|
t("div", ir, [
|
|
2319
2319
|
t("div", dr, [
|
|
2320
2320
|
a(i) ? (n(), m("div", cr, [
|
|
@@ -2337,12 +2337,12 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2337
2337
|
key: 5,
|
|
2338
2338
|
onSuccess: d[5] || (d[5] = (l) => r.value = !0)
|
|
2339
2339
|
}))
|
|
2340
|
-
])) :
|
|
2340
|
+
])) : M("", !0),
|
|
2341
2341
|
t("div", ur, [
|
|
2342
2342
|
r.value === !1 ? (n(), m("div", mr, [
|
|
2343
2343
|
vr,
|
|
2344
2344
|
t("span", null, v(a(s)("Loading")), 1)
|
|
2345
|
-
])) :
|
|
2345
|
+
])) : M("", !0)
|
|
2346
2346
|
])
|
|
2347
2347
|
])
|
|
2348
2348
|
]),
|
|
@@ -2356,9 +2356,9 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2356
2356
|
V(" " + v(a(we)(a(e).modal.data.item.last_modified)), 1)
|
|
2357
2357
|
])
|
|
2358
2358
|
]),
|
|
2359
|
-
a(e).features.includes(a(
|
|
2359
|
+
a(e).features.includes(a(B).DOWNLOAD) ? (n(), m("div", gr, [
|
|
2360
2360
|
t("span", null, v(a(s)(`Download doesn't work? You can try right-click "Download" button, select "Save link as...".`)), 1)
|
|
2361
|
-
])) :
|
|
2361
|
+
])) : M("", !0)
|
|
2362
2362
|
]),
|
|
2363
2363
|
_: 1
|
|
2364
2364
|
}));
|
|
@@ -2411,11 +2411,11 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2411
2411
|
Ar
|
|
2412
2412
|
], Tr = { class: "ml-1.5" }, Fr = {
|
|
2413
2413
|
name: "VFModalRename"
|
|
2414
|
-
},
|
|
2414
|
+
}, Or = /* @__PURE__ */ Object.assign(Fr, {
|
|
2415
2415
|
setup(p) {
|
|
2416
2416
|
const e = F("ServiceContainer");
|
|
2417
2417
|
e.storage;
|
|
2418
|
-
const { t: s } = e.i18n, r =
|
|
2418
|
+
const { t: s } = e.i18n, r = k(e.modal.data.items[0]), o = k(e.modal.data.items[0].basename), i = k(""), u = () => {
|
|
2419
2419
|
o.value != "" && e.emitter.emit("vf-fetch", {
|
|
2420
2420
|
params: {
|
|
2421
2421
|
q: "rename",
|
|
@@ -2436,7 +2436,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2436
2436
|
});
|
|
2437
2437
|
};
|
|
2438
2438
|
return (d, l) => (n(), T(W, null, {
|
|
2439
|
-
buttons:
|
|
2439
|
+
buttons: A(() => [
|
|
2440
2440
|
t("button", {
|
|
2441
2441
|
type: "button",
|
|
2442
2442
|
onClick: u,
|
|
@@ -2448,7 +2448,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2448
2448
|
class: "vf-btn vf-btn-secondary"
|
|
2449
2449
|
}, v(a(s)("Cancel")), 1)
|
|
2450
2450
|
]),
|
|
2451
|
-
default:
|
|
2451
|
+
default: A(() => [
|
|
2452
2452
|
t("div", yr, [
|
|
2453
2453
|
xr,
|
|
2454
2454
|
t("div", wr, [
|
|
@@ -2472,11 +2472,11 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2472
2472
|
onHidden: l[1] || (l[1] = (c) => i.value = ""),
|
|
2473
2473
|
error: ""
|
|
2474
2474
|
}, {
|
|
2475
|
-
default:
|
|
2475
|
+
default: A(() => [
|
|
2476
2476
|
V(v(i.value), 1)
|
|
2477
2477
|
]),
|
|
2478
2478
|
_: 1
|
|
2479
|
-
})) :
|
|
2479
|
+
})) : M("", !0)
|
|
2480
2480
|
])
|
|
2481
2481
|
])
|
|
2482
2482
|
])
|
|
@@ -2484,7 +2484,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2484
2484
|
_: 1
|
|
2485
2485
|
}));
|
|
2486
2486
|
}
|
|
2487
|
-
}),
|
|
2487
|
+
}), Vr = { class: "sm:flex sm:items-start" }, Nr = /* @__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
2488
|
/* @__PURE__ */ t("svg", {
|
|
2489
2489
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2490
2490
|
class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
|
|
@@ -2499,7 +2499,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2499
2499
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"
|
|
2500
2500
|
})
|
|
2501
2501
|
])
|
|
2502
|
-
], -1),
|
|
2502
|
+
], -1), Br = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, zr = {
|
|
2503
2503
|
class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
2504
2504
|
id: "modal-title"
|
|
2505
2505
|
}, Ur = { class: "mt-2" }, Hr = {
|
|
@@ -2539,21 +2539,21 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2539
2539
|
UPLOADING: 2,
|
|
2540
2540
|
ERROR: 3,
|
|
2541
2541
|
DONE: 10
|
|
2542
|
-
}, i =
|
|
2543
|
-
let
|
|
2544
|
-
function
|
|
2545
|
-
return
|
|
2542
|
+
}, i = k({ QUEUE_ENTRY_STATUS: o }), u = k(null), d = k(null), l = k(null), c = k(null), g = k(null), _ = k(null), w = k([]), y = k(""), E = k(!1), $ = k(!1);
|
|
2543
|
+
let f;
|
|
2544
|
+
function h(j) {
|
|
2545
|
+
return w.value.findIndex((S) => S.id === j);
|
|
2546
2546
|
}
|
|
2547
|
-
function
|
|
2548
|
-
|
|
2549
|
-
name:
|
|
2550
|
-
type:
|
|
2551
|
-
data:
|
|
2547
|
+
function N(j, S = null) {
|
|
2548
|
+
S = S ?? (j.webkitRelativePath || j.name), f.addFile({
|
|
2549
|
+
name: S,
|
|
2550
|
+
type: j.type,
|
|
2551
|
+
data: j,
|
|
2552
2552
|
source: "Local"
|
|
2553
2553
|
});
|
|
2554
2554
|
}
|
|
2555
|
-
function R(
|
|
2556
|
-
switch (
|
|
2555
|
+
function R(j) {
|
|
2556
|
+
switch (j.status) {
|
|
2557
2557
|
case o.DONE:
|
|
2558
2558
|
return "text-green-600";
|
|
2559
2559
|
case o.ERROR:
|
|
@@ -2565,8 +2565,8 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2565
2565
|
return "";
|
|
2566
2566
|
}
|
|
2567
2567
|
}
|
|
2568
|
-
const K = (
|
|
2569
|
-
switch (
|
|
2568
|
+
const K = (j) => {
|
|
2569
|
+
switch (j.status) {
|
|
2570
2570
|
case o.DONE:
|
|
2571
2571
|
return "✓";
|
|
2572
2572
|
case o.ERROR:
|
|
@@ -2581,41 +2581,48 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2581
2581
|
c.value.click();
|
|
2582
2582
|
}
|
|
2583
2583
|
function se() {
|
|
2584
|
-
if (!
|
|
2585
|
-
if (
|
|
2584
|
+
if (!E.value) {
|
|
2585
|
+
if (!w.value.filter((j) => j.status !== o.DONE).length) {
|
|
2586
2586
|
y.value = s("Please select file to upload first.");
|
|
2587
2587
|
return;
|
|
2588
2588
|
}
|
|
2589
|
-
y.value = "",
|
|
2589
|
+
y.value = "", f.retryAll(), f.upload();
|
|
2590
2590
|
}
|
|
2591
2591
|
}
|
|
2592
2592
|
function ae() {
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
}),
|
|
2593
|
+
f.cancelAll({ reason: "user" }), w.value.forEach((j) => {
|
|
2594
|
+
j.status !== o.DONE && (j.status = o.CANCELED, j.statusName = s("Canceled"));
|
|
2595
|
+
}), E.value = !1;
|
|
2596
2596
|
}
|
|
2597
|
-
function oe(
|
|
2598
|
-
|
|
2597
|
+
function oe(j) {
|
|
2598
|
+
E.value || (f.removeFile(j.id, "removed-by-user"), w.value.splice(h(j.id), 1));
|
|
2599
2599
|
}
|
|
2600
|
-
function
|
|
2601
|
-
if (!
|
|
2602
|
-
if (
|
|
2603
|
-
const
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
}),
|
|
2607
|
-
|
|
2600
|
+
function x(j) {
|
|
2601
|
+
if (!E.value) {
|
|
2602
|
+
if (f.cancelAll({ reason: "user" }), j) {
|
|
2603
|
+
const S = [];
|
|
2604
|
+
w.value.forEach((b) => {
|
|
2605
|
+
b.status !== o.DONE && S.push(b);
|
|
2606
|
+
}), w.value = [], S.forEach((b) => {
|
|
2607
|
+
N(b.originalFile, b.name);
|
|
2608
2608
|
});
|
|
2609
2609
|
return;
|
|
2610
2610
|
}
|
|
2611
|
-
|
|
2611
|
+
w.value.splice(0);
|
|
2612
2612
|
}
|
|
2613
2613
|
}
|
|
2614
2614
|
function D() {
|
|
2615
2615
|
e.emitter.emit("vf-modal-close");
|
|
2616
2616
|
}
|
|
2617
|
+
function C() {
|
|
2618
|
+
return e.requester.transformRequestParams({
|
|
2619
|
+
url: "",
|
|
2620
|
+
method: "post",
|
|
2621
|
+
params: { q: "upload", adapter: e.data.adapter, path: e.data.dirname }
|
|
2622
|
+
});
|
|
2623
|
+
}
|
|
2617
2624
|
return P(async () => {
|
|
2618
|
-
|
|
2625
|
+
f = new ze({
|
|
2619
2626
|
debug: e.debug,
|
|
2620
2627
|
restrictions: {
|
|
2621
2628
|
maxFileSize: Ye(e.maxFileSize)
|
|
@@ -2623,66 +2630,60 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
|
|
|
2623
2630
|
//allowedFileTypes
|
|
2624
2631
|
},
|
|
2625
2632
|
locale: r,
|
|
2626
|
-
onBeforeFileAdded(
|
|
2627
|
-
if (L[
|
|
2628
|
-
const X =
|
|
2629
|
-
|
|
2633
|
+
onBeforeFileAdded(b, L) {
|
|
2634
|
+
if (L[b.id] != null) {
|
|
2635
|
+
const X = h(b.id);
|
|
2636
|
+
w.value[X].status === o.PENDING && (y.value = f.i18n("noDuplicates", { fileName: b.name })), w.value = w.value.filter((ue) => ue.id !== b.id);
|
|
2630
2637
|
}
|
|
2631
|
-
return
|
|
2632
|
-
id:
|
|
2633
|
-
name:
|
|
2634
|
-
size: e.filesize(
|
|
2638
|
+
return w.value.push({
|
|
2639
|
+
id: b.id,
|
|
2640
|
+
name: b.name,
|
|
2641
|
+
size: e.filesize(b.size),
|
|
2635
2642
|
status: o.PENDING,
|
|
2636
2643
|
statusName: s("Pending upload"),
|
|
2637
2644
|
percent: null,
|
|
2638
|
-
originalFile:
|
|
2645
|
+
originalFile: b.data
|
|
2639
2646
|
}), !0;
|
|
2640
2647
|
}
|
|
2641
|
-
})
|
|
2642
|
-
|
|
2643
|
-
url: "",
|
|
2644
|
-
method: "post",
|
|
2645
|
-
params: { q: "upload", adapter: e.data.adapter, path: e.data.dirname }
|
|
2646
|
-
});
|
|
2647
|
-
e.debug && h.body != null && (h.body instanceof FormData || Object.keys(h.body).length > 0) && console.warn(`Cannot set body on upload, make sure request.transformRequest didn't set body when upload.
|
|
2648
|
-
Will ignore for now.`), k.use(Ue, {
|
|
2649
|
-
method: h.method,
|
|
2650
|
-
endpoint: h.url + "?" + new URLSearchParams(h.params),
|
|
2651
|
-
headers: h.headers,
|
|
2648
|
+
}), f.use(Ue, {
|
|
2649
|
+
endpoint: "WILL_BE_REPLACED_BEFORE_UPLOAD",
|
|
2652
2650
|
limit: 5,
|
|
2653
2651
|
timeout: 0,
|
|
2654
|
-
getResponseError(
|
|
2655
|
-
let
|
|
2652
|
+
getResponseError(b, L) {
|
|
2653
|
+
let O;
|
|
2656
2654
|
try {
|
|
2657
|
-
|
|
2655
|
+
O = JSON.parse(b).message;
|
|
2658
2656
|
} catch {
|
|
2659
|
-
|
|
2657
|
+
O = s("Cannot parse server response.");
|
|
2660
2658
|
}
|
|
2661
|
-
return new Error(
|
|
2659
|
+
return new Error(O);
|
|
2662
2660
|
}
|
|
2663
|
-
}),
|
|
2664
|
-
const
|
|
2665
|
-
oe(
|
|
2666
|
-
}),
|
|
2667
|
-
|
|
2668
|
-
|
|
2661
|
+
}), f.on("restriction-failed", (b, L) => {
|
|
2662
|
+
const O = w.value[h(b.id)];
|
|
2663
|
+
oe(O), y.value = L.message;
|
|
2664
|
+
}), f.on("upload", () => {
|
|
2665
|
+
const b = C();
|
|
2666
|
+
f.setMeta({ ...b.body });
|
|
2667
|
+
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, w.value.forEach((O) => {
|
|
2669
|
+
O.status !== o.DONE && (O.percent = null, O.status = o.UPLOADING, O.statusName = s("Pending upload"));
|
|
2669
2670
|
});
|
|
2670
|
-
}),
|
|
2671
|
-
const
|
|
2672
|
-
|
|
2673
|
-
}),
|
|
2674
|
-
const L =
|
|
2671
|
+
}), f.on("upload-progress", (b, L) => {
|
|
2672
|
+
const O = Math.floor(L.bytesUploaded / L.bytesTotal * 100);
|
|
2673
|
+
w.value[h(b.id)].percent = `${O}%`;
|
|
2674
|
+
}), f.on("upload-success", (b) => {
|
|
2675
|
+
const L = w.value[h(b.id)];
|
|
2675
2676
|
L.status = o.DONE, L.statusName = s("Done");
|
|
2676
|
-
}),
|
|
2677
|
-
const
|
|
2678
|
-
|
|
2679
|
-
}),
|
|
2680
|
-
y.value =
|
|
2677
|
+
}), f.on("upload-error", (b, L) => {
|
|
2678
|
+
const O = w.value[h(b.id)];
|
|
2679
|
+
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
|
+
}), f.on("error", (b) => {
|
|
2681
|
+
y.value = b.message, E.value = !1, e.emitter.emit("vf-fetch", {
|
|
2681
2682
|
params: { q: "index", adapter: e.data.adapter, path: e.data.dirname },
|
|
2682
2683
|
noCloseModal: !0
|
|
2683
2684
|
});
|
|
2684
|
-
}),
|
|
2685
|
-
|
|
2685
|
+
}), f.on("complete", () => {
|
|
2686
|
+
E.value = !1, e.emitter.emit("vf-fetch", {
|
|
2686
2687
|
params: { q: "index", adapter: e.data.adapter, path: e.data.dirname },
|
|
2687
2688
|
noCloseModal: !0
|
|
2688
2689
|
});
|
|
@@ -2690,46 +2691,46 @@ Will ignore for now.`), k.use(Ue, {
|
|
|
2690
2691
|
d.value.click();
|
|
2691
2692
|
}), g.value.addEventListener("click", () => {
|
|
2692
2693
|
l.value.click();
|
|
2693
|
-
}), _.value.addEventListener("dragover", (
|
|
2694
|
-
|
|
2695
|
-
}), _.value.addEventListener("dragleave", (
|
|
2696
|
-
|
|
2694
|
+
}), _.value.addEventListener("dragover", (b) => {
|
|
2695
|
+
b.preventDefault(), $.value = !0;
|
|
2696
|
+
}), _.value.addEventListener("dragleave", (b) => {
|
|
2697
|
+
b.preventDefault(), $.value = !1;
|
|
2697
2698
|
});
|
|
2698
|
-
function
|
|
2699
|
-
L.isFile && L.file((
|
|
2700
|
-
|
|
2701
|
-
|
|
2699
|
+
function j(b, L) {
|
|
2700
|
+
L.isFile && L.file((O) => b(L, O)), L.isDirectory && L.createReader().readEntries((O) => {
|
|
2701
|
+
O.forEach((X) => {
|
|
2702
|
+
j(b, X);
|
|
2702
2703
|
});
|
|
2703
2704
|
});
|
|
2704
2705
|
}
|
|
2705
|
-
_.value.addEventListener("drop", (
|
|
2706
|
-
|
|
2706
|
+
_.value.addEventListener("drop", (b) => {
|
|
2707
|
+
b.preventDefault(), $.value = !1;
|
|
2707
2708
|
const L = /^[/\\](.+)/;
|
|
2708
|
-
[...
|
|
2709
|
-
|
|
2709
|
+
[...b.dataTransfer.items].forEach((O) => {
|
|
2710
|
+
O.kind === "file" && j((X, ue) => {
|
|
2710
2711
|
const $e = L.exec(X.fullPath);
|
|
2711
|
-
|
|
2712
|
-
},
|
|
2712
|
+
N(ue, $e[1]);
|
|
2713
|
+
}, O.webkitGetAsEntry());
|
|
2713
2714
|
});
|
|
2714
2715
|
});
|
|
2715
|
-
const
|
|
2716
|
-
const L =
|
|
2717
|
-
for (const
|
|
2718
|
-
O
|
|
2719
|
-
|
|
2716
|
+
const S = ({ target: b }) => {
|
|
2717
|
+
const L = b.files;
|
|
2718
|
+
for (const O of L)
|
|
2719
|
+
N(O);
|
|
2720
|
+
b.value = "";
|
|
2720
2721
|
};
|
|
2721
|
-
d.value.addEventListener("change",
|
|
2722
|
+
d.value.addEventListener("change", S), l.value.addEventListener("change", S);
|
|
2722
2723
|
}), ke(() => {
|
|
2723
|
-
|
|
2724
|
-
}), (
|
|
2725
|
-
buttons:
|
|
2724
|
+
f == null || f.close({ reason: "unmount" });
|
|
2725
|
+
}), (j, S) => (n(), T(W, null, {
|
|
2726
|
+
buttons: A(() => [
|
|
2726
2727
|
t("button", {
|
|
2727
2728
|
type: "button",
|
|
2728
|
-
class:
|
|
2729
|
-
disabled:
|
|
2729
|
+
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
|
+
disabled: E.value,
|
|
2730
2731
|
onClick: Y(se, ["prevent"])
|
|
2731
2732
|
}, v(a(s)("Upload")), 11, sn),
|
|
2732
|
-
|
|
2733
|
+
E.value ? (n(), m("button", {
|
|
2733
2734
|
key: 0,
|
|
2734
2735
|
type: "button",
|
|
2735
2736
|
class: "vf-btn vf-btn-secondary",
|
|
@@ -2741,11 +2742,11 @@ Will ignore for now.`), k.use(Ue, {
|
|
|
2741
2742
|
onClick: Y(D, ["prevent"])
|
|
2742
2743
|
}, v(a(s)("Close")), 1))
|
|
2743
2744
|
]),
|
|
2744
|
-
default:
|
|
2745
|
-
t("div",
|
|
2745
|
+
default: A(() => [
|
|
2746
|
+
t("div", Vr, [
|
|
2746
2747
|
Nr,
|
|
2747
|
-
t("div",
|
|
2748
|
-
t("h3",
|
|
2748
|
+
t("div", Br, [
|
|
2749
|
+
t("h3", zr, v(a(s)("Upload Files")), 1),
|
|
2749
2750
|
t("div", Ur, [
|
|
2750
2751
|
t("div", {
|
|
2751
2752
|
ref_key: "dropArea",
|
|
@@ -2753,7 +2754,7 @@ Will ignore for now.`), k.use(Ue, {
|
|
|
2753
2754
|
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]",
|
|
2754
2755
|
onClick: te
|
|
2755
2756
|
}, [
|
|
2756
|
-
|
|
2757
|
+
$.value ? (n(), m("div", Hr, v(a(s)("Release to drop these files.")), 1)) : (n(), m("div", Rr, v(a(s)("Drag and drop the files/folders to here or click here.")), 1))
|
|
2757
2758
|
], 512),
|
|
2758
2759
|
t("div", {
|
|
2759
2760
|
ref_key: "container",
|
|
@@ -2775,57 +2776,57 @@ Will ignore for now.`), k.use(Ue, {
|
|
|
2775
2776
|
t("button", {
|
|
2776
2777
|
type: "button",
|
|
2777
2778
|
class: "vf-btn vf-btn-secondary",
|
|
2778
|
-
disabled:
|
|
2779
|
-
onClick:
|
|
2779
|
+
disabled: E.value,
|
|
2780
|
+
onClick: S[0] || (S[0] = (b) => x(!1))
|
|
2780
2781
|
}, v(a(s)("Clear all")), 9, qr),
|
|
2781
2782
|
t("button", {
|
|
2782
2783
|
type: "button",
|
|
2783
2784
|
class: "vf-btn vf-btn-secondary",
|
|
2784
|
-
disabled:
|
|
2785
|
-
onClick:
|
|
2785
|
+
disabled: E.value,
|
|
2786
|
+
onClick: S[1] || (S[1] = (b) => x(!0))
|
|
2786
2787
|
}, v(a(s)("Clear only successful")), 9, Ir)
|
|
2787
2788
|
], 512),
|
|
2788
2789
|
t("div", Pr, [
|
|
2789
|
-
(n(!0), m(U, null, I(
|
|
2790
|
+
(n(!0), m(U, null, I(w.value, (b) => (n(), m("div", {
|
|
2790
2791
|
class: "flex hover:bg-gray-100 dark:hover:bg-gray-800 dark:hover:text-gray-300",
|
|
2791
|
-
key:
|
|
2792
|
+
key: b.id
|
|
2792
2793
|
}, [
|
|
2793
2794
|
t("span", Wr, [
|
|
2794
2795
|
t("span", {
|
|
2795
|
-
class:
|
|
2796
|
-
textContent: v(K(
|
|
2796
|
+
class: z(["text-base m-auto", R(b)]),
|
|
2797
|
+
textContent: v(K(b))
|
|
2797
2798
|
}, null, 10, Gr)
|
|
2798
2799
|
]),
|
|
2799
2800
|
t("div", Yr, [
|
|
2800
|
-
t("div", Kr, v(a(he)(
|
|
2801
|
-
t("div", Jr, v(a(he)(
|
|
2801
|
+
t("div", Kr, v(a(he)(b.name, 40)) + " (" + v(b.size) + ")", 1),
|
|
2802
|
+
t("div", Jr, v(a(he)(b.name, 16)) + " (" + v(b.size) + ")", 1),
|
|
2802
2803
|
t("div", {
|
|
2803
|
-
class:
|
|
2804
|
+
class: z(["flex break-all text-left", R(b)])
|
|
2804
2805
|
}, [
|
|
2805
|
-
V(v(
|
|
2806
|
-
|
|
2806
|
+
V(v(b.statusName) + " ", 1),
|
|
2807
|
+
b.status === i.value.QUEUE_ENTRY_STATUS.UPLOADING ? (n(), m("b", Xr, v(b.percent), 1)) : M("", !0)
|
|
2807
2808
|
], 2)
|
|
2808
2809
|
]),
|
|
2809
2810
|
t("button", {
|
|
2810
2811
|
type: "button",
|
|
2811
|
-
class:
|
|
2812
|
+
class: z(["rounded w-5 h-5 border-1 text-base leading-none font-medium focus:outline-none dark:border-gray-200 dark:text-gray-400 dark:hover:text-gray-200 dark:bg-gray-600 ml-auto sm:text-xs hover:text-red-600", E.value ? "disabled:bg-gray-100 text-white text-opacity-50" : "bg-gray-100"]),
|
|
2812
2813
|
title: a(s)("Delete"),
|
|
2813
|
-
disabled:
|
|
2814
|
-
onClick: (
|
|
2814
|
+
disabled: E.value,
|
|
2815
|
+
onClick: (L) => oe(b)
|
|
2815
2816
|
}, en, 10, Qr)
|
|
2816
2817
|
]))), 128)),
|
|
2817
|
-
|
|
2818
|
+
w.value.length ? M("", !0) : (n(), m("div", tn, v(a(s)("No files selected!")), 1))
|
|
2818
2819
|
]),
|
|
2819
2820
|
y.value.length ? (n(), T(G, {
|
|
2820
2821
|
key: 0,
|
|
2821
|
-
onHidden:
|
|
2822
|
+
onHidden: S[2] || (S[2] = (b) => y.value = ""),
|
|
2822
2823
|
error: ""
|
|
2823
2824
|
}, {
|
|
2824
|
-
default:
|
|
2825
|
+
default: A(() => [
|
|
2825
2826
|
V(v(y.value), 1)
|
|
2826
2827
|
]),
|
|
2827
2828
|
_: 1
|
|
2828
|
-
})) :
|
|
2829
|
+
})) : M("", !0)
|
|
2829
2830
|
])
|
|
2830
2831
|
])
|
|
2831
2832
|
]),
|
|
@@ -2903,7 +2904,7 @@ Will ignore for now.`), k.use(Ue, {
|
|
|
2903
2904
|
setup(p) {
|
|
2904
2905
|
const e = F("ServiceContainer");
|
|
2905
2906
|
e.storage;
|
|
2906
|
-
const { t: s } = e.i18n, r =
|
|
2907
|
+
const { t: s } = e.i18n, r = k(""), o = k(""), i = k(e.modal.data.items), u = () => {
|
|
2907
2908
|
i.value.length && e.emitter.emit("vf-fetch", {
|
|
2908
2909
|
params: {
|
|
2909
2910
|
q: "archive",
|
|
@@ -2924,7 +2925,7 @@ Will ignore for now.`), k.use(Ue, {
|
|
|
2924
2925
|
});
|
|
2925
2926
|
};
|
|
2926
2927
|
return (d, l) => (n(), T(W, null, {
|
|
2927
|
-
buttons:
|
|
2928
|
+
buttons: A(() => [
|
|
2928
2929
|
t("button", {
|
|
2929
2930
|
type: "button",
|
|
2930
2931
|
onClick: u,
|
|
@@ -2936,7 +2937,7 @@ Will ignore for now.`), k.use(Ue, {
|
|
|
2936
2937
|
class: "vf-btn vf-btn-secondary"
|
|
2937
2938
|
}, v(a(s)("Cancel")), 1)
|
|
2938
2939
|
]),
|
|
2939
|
-
default:
|
|
2940
|
+
default: A(() => [
|
|
2940
2941
|
t("div", rn, [
|
|
2941
2942
|
nn,
|
|
2942
2943
|
t("div", ln, [
|
|
@@ -2962,11 +2963,11 @@ Will ignore for now.`), k.use(Ue, {
|
|
|
2962
2963
|
onHidden: l[1] || (l[1] = (c) => o.value = ""),
|
|
2963
2964
|
error: ""
|
|
2964
2965
|
}, {
|
|
2965
|
-
default:
|
|
2966
|
+
default: A(() => [
|
|
2966
2967
|
V(v(o.value), 1)
|
|
2967
2968
|
]),
|
|
2968
2969
|
_: 1
|
|
2969
|
-
})) :
|
|
2970
|
+
})) : M("", !0)
|
|
2970
2971
|
])
|
|
2971
2972
|
])
|
|
2972
2973
|
])
|
|
@@ -3020,15 +3021,15 @@ Will ignore for now.`), k.use(Ue, {
|
|
|
3020
3021
|
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"
|
|
3021
3022
|
}, null, -1), Fn = [
|
|
3022
3023
|
Tn
|
|
3023
|
-
],
|
|
3024
|
+
], On = { class: "ml-1.5" }, Vn = { class: "my-1 text-sm text-gray-500" }, Nn = {
|
|
3024
3025
|
name: "VFModalUnarchive"
|
|
3025
|
-
},
|
|
3026
|
+
}, Bn = /* @__PURE__ */ Object.assign(Nn, {
|
|
3026
3027
|
setup(p) {
|
|
3027
3028
|
const e = F("ServiceContainer");
|
|
3028
3029
|
e.storage;
|
|
3029
3030
|
const { t: s } = e.i18n;
|
|
3030
|
-
|
|
3031
|
-
const r =
|
|
3031
|
+
k("");
|
|
3032
|
+
const r = k(e.modal.data.items[0]), o = k(""), i = k([]), u = () => {
|
|
3032
3033
|
e.emitter.emit("vf-fetch", {
|
|
3033
3034
|
params: {
|
|
3034
3035
|
q: "unarchive",
|
|
@@ -3048,7 +3049,7 @@ Will ignore for now.`), k.use(Ue, {
|
|
|
3048
3049
|
});
|
|
3049
3050
|
};
|
|
3050
3051
|
return (d, l) => (n(), T(W, null, {
|
|
3051
|
-
buttons:
|
|
3052
|
+
buttons: A(() => [
|
|
3052
3053
|
t("button", {
|
|
3053
3054
|
type: "button",
|
|
3054
3055
|
onClick: u,
|
|
@@ -3060,7 +3061,7 @@ Will ignore for now.`), k.use(Ue, {
|
|
|
3060
3061
|
class: "vf-btn vf-btn-secondary"
|
|
3061
3062
|
}, v(a(s)("Cancel")), 1)
|
|
3062
3063
|
]),
|
|
3063
|
-
default:
|
|
3064
|
+
default: A(() => [
|
|
3064
3065
|
t("div", wn, [
|
|
3065
3066
|
$n,
|
|
3066
3067
|
t("div", Cn, [
|
|
@@ -3068,19 +3069,19 @@ Will ignore for now.`), k.use(Ue, {
|
|
|
3068
3069
|
t("div", Mn, [
|
|
3069
3070
|
(n(!0), m(U, null, I(i.value, (c) => (n(), m("p", En, [
|
|
3070
3071
|
c.type === "dir" ? (n(), m("svg", Dn, An)) : (n(), m("svg", Ln, Fn)),
|
|
3071
|
-
t("span",
|
|
3072
|
+
t("span", On, v(c.basename), 1)
|
|
3072
3073
|
]))), 256)),
|
|
3073
|
-
t("p",
|
|
3074
|
+
t("p", Vn, v(a(s)("The archive will be unarchived at")) + " (" + v(d.current.dirname) + ")", 1),
|
|
3074
3075
|
o.value.length ? (n(), T(G, {
|
|
3075
3076
|
key: 0,
|
|
3076
3077
|
onHidden: l[0] || (l[0] = (c) => o.value = ""),
|
|
3077
3078
|
error: ""
|
|
3078
3079
|
}, {
|
|
3079
|
-
default:
|
|
3080
|
+
default: A(() => [
|
|
3080
3081
|
V(v(o.value), 1)
|
|
3081
3082
|
]),
|
|
3082
3083
|
_: 1
|
|
3083
|
-
})) :
|
|
3084
|
+
})) : M("", !0)
|
|
3084
3085
|
])
|
|
3085
3086
|
])
|
|
3086
3087
|
])
|
|
@@ -3088,7 +3089,7 @@ Will ignore for now.`), k.use(Ue, {
|
|
|
3088
3089
|
_: 1
|
|
3089
3090
|
}));
|
|
3090
3091
|
}
|
|
3091
|
-
}),
|
|
3092
|
+
}), zn = { class: "sm:flex sm:items-start" }, Un = /* @__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" }, [
|
|
3092
3093
|
/* @__PURE__ */ t("svg", {
|
|
3093
3094
|
class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
|
|
3094
3095
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3154,7 +3155,7 @@ Will ignore for now.`), k.use(Ue, {
|
|
|
3154
3155
|
setup(p) {
|
|
3155
3156
|
const e = F("ServiceContainer"), { t: s } = e.i18n;
|
|
3156
3157
|
e.storage;
|
|
3157
|
-
const r =
|
|
3158
|
+
const r = k(e.modal.data.items.from), o = k(""), i = () => {
|
|
3158
3159
|
r.value.length && e.emitter.emit("vf-fetch", {
|
|
3159
3160
|
params: {
|
|
3160
3161
|
q: "move",
|
|
@@ -3175,7 +3176,7 @@ Will ignore for now.`), k.use(Ue, {
|
|
|
3175
3176
|
});
|
|
3176
3177
|
};
|
|
3177
3178
|
return (u, d) => (n(), T(W, null, {
|
|
3178
|
-
buttons:
|
|
3179
|
+
buttons: A(() => [
|
|
3179
3180
|
t("button", {
|
|
3180
3181
|
type: "button",
|
|
3181
3182
|
onClick: i,
|
|
@@ -3188,8 +3189,8 @@ Will ignore for now.`), k.use(Ue, {
|
|
|
3188
3189
|
}, v(a(s)("Cancel")), 1),
|
|
3189
3190
|
t("div", al, v(a(s)("%s item(s) selected.", r.value.length)), 1)
|
|
3190
3191
|
]),
|
|
3191
|
-
default:
|
|
3192
|
-
t("div",
|
|
3192
|
+
default: A(() => [
|
|
3193
|
+
t("div", zn, [
|
|
3193
3194
|
Un,
|
|
3194
3195
|
t("div", Hn, [
|
|
3195
3196
|
t("h3", Rn, v(a(s)("Move files")), 1),
|
|
@@ -3212,11 +3213,11 @@ Will ignore for now.`), k.use(Ue, {
|
|
|
3212
3213
|
onHidden: d[0] || (d[0] = (l) => o.value = ""),
|
|
3213
3214
|
error: ""
|
|
3214
3215
|
}, {
|
|
3215
|
-
default:
|
|
3216
|
+
default: A(() => [
|
|
3216
3217
|
V(v(o.value), 1)
|
|
3217
3218
|
]),
|
|
3218
3219
|
_: 1
|
|
3219
|
-
})) :
|
|
3220
|
+
})) : M("", !0)
|
|
3220
3221
|
])
|
|
3221
3222
|
])
|
|
3222
3223
|
]),
|
|
@@ -3233,7 +3234,7 @@ Will ignore for now.`), k.use(Ue, {
|
|
|
3233
3234
|
on: { type: String, required: !0 }
|
|
3234
3235
|
},
|
|
3235
3236
|
setup(p, { emit: e, slots: s }) {
|
|
3236
|
-
const r = F("ServiceContainer"), o =
|
|
3237
|
+
const r = F("ServiceContainer"), o = k(!1), { t: i } = r.i18n;
|
|
3237
3238
|
let u = null;
|
|
3238
3239
|
const d = () => {
|
|
3239
3240
|
clearTimeout(u), o.value = !0, u = setTimeout(() => {
|
|
@@ -3252,7 +3253,7 @@ Will ignore for now.`), k.use(Ue, {
|
|
|
3252
3253
|
}, il = { key: 1 };
|
|
3253
3254
|
function dl(p, e, s, r, o, i) {
|
|
3254
3255
|
return n(), m("div", {
|
|
3255
|
-
class:
|
|
3256
|
+
class: z(["text-sm text-green-600 dark:text-green-600 transition-opacity duration-500 ease-out", [{ "opacity-0": !r.shown }]])
|
|
3256
3257
|
}, [
|
|
3257
3258
|
p.$slots.default ? le(p.$slots, "default", { key: 0 }) : (n(), m("span", il, v(r.t("Saved.")), 1))
|
|
3258
3259
|
], 2);
|
|
@@ -3292,16 +3293,16 @@ const ve = /* @__PURE__ */ nl(ll, [["render", dl]]), cl = { class: "sm:flex sm:i
|
|
|
3292
3293
|
}, jl = { class: "h-6 items-center" }, Al = {
|
|
3293
3294
|
for: "language",
|
|
3294
3295
|
class: "flex w-full font-medium text-gray-900 dark:text-gray-400 text-sm text-nowrap"
|
|
3295
|
-
}, Ll = { class: "flex text-sm" }, Tl = ["label"], Fl = ["value"],
|
|
3296
|
+
}, Ll = { class: "flex text-sm" }, Tl = ["label"], Fl = ["value"], Ol = {
|
|
3296
3297
|
name: "VFModalAbout"
|
|
3297
|
-
},
|
|
3298
|
+
}, Vl = /* @__PURE__ */ Object.assign(Ol, {
|
|
3298
3299
|
setup(p) {
|
|
3299
3300
|
const e = F("ServiceContainer"), { getStore: s, setStore: r, clearStore: o } = e.storage, { t: i, changeLocale: u, locale: d } = e.i18n;
|
|
3300
|
-
|
|
3301
|
+
k(""), k("");
|
|
3301
3302
|
const l = async () => {
|
|
3302
3303
|
o(), location.reload();
|
|
3303
|
-
}, c = (
|
|
3304
|
-
e.theme.set(
|
|
3304
|
+
}, c = ($) => {
|
|
3305
|
+
e.theme.set($), e.emitter.emit("vf-theme-saved");
|
|
3305
3306
|
}, g = () => {
|
|
3306
3307
|
e.metricUnits = !e.metricUnits, e.filesize = e.metricUnits ? xe : ye, r("metricUnits", e.metricUnits), e.emitter.emit("vf-metric-units-saved");
|
|
3307
3308
|
}, { i18n: _ } = F("VueFinderOptions"), y = Object.fromEntries(
|
|
@@ -3317,21 +3318,21 @@ const ve = /* @__PURE__ */ nl(ll, [["render", dl]]), cl = { class: "sm:flex sm:i
|
|
|
3317
3318
|
tr: "Turkish (Türkçe)",
|
|
3318
3319
|
zhCN: "Simplified Chinese (简体中文)",
|
|
3319
3320
|
zhTW: "Traditional Chinese (繁體中文)"
|
|
3320
|
-
}).filter(([
|
|
3321
|
-
),
|
|
3321
|
+
}).filter(([$]) => Object.keys(_).includes($))
|
|
3322
|
+
), E = ee(() => ({
|
|
3322
3323
|
system: i("System"),
|
|
3323
3324
|
light: i("Light"),
|
|
3324
3325
|
dark: i("Dark")
|
|
3325
3326
|
}));
|
|
3326
|
-
return (
|
|
3327
|
-
buttons:
|
|
3327
|
+
return ($, f) => (n(), T(W, null, {
|
|
3328
|
+
buttons: A(() => [
|
|
3328
3329
|
t("button", {
|
|
3329
3330
|
type: "button",
|
|
3330
|
-
onClick:
|
|
3331
|
+
onClick: f[5] || (f[5] = (h) => a(e).emitter.emit("vf-modal-close")),
|
|
3331
3332
|
class: "vf-btn vf-btn-secondary"
|
|
3332
3333
|
}, v(a(i)("Close")), 1)
|
|
3333
3334
|
]),
|
|
3334
|
-
default:
|
|
3335
|
+
default: A(() => [
|
|
3335
3336
|
t("div", cl, [
|
|
3336
3337
|
ul,
|
|
3337
3338
|
t("div", ml, [
|
|
@@ -3350,7 +3351,7 @@ const ve = /* @__PURE__ */ nl(ll, [["render", dl]]), cl = { class: "sm:flex sm:i
|
|
|
3350
3351
|
id: "metric_unit",
|
|
3351
3352
|
name: "metric_unit",
|
|
3352
3353
|
type: "checkbox",
|
|
3353
|
-
"onUpdate:modelValue":
|
|
3354
|
+
"onUpdate:modelValue": f[0] || (f[0] = (h) => a(e).metricUnits = h),
|
|
3354
3355
|
onClick: g,
|
|
3355
3356
|
class: "h-4 w-4 rounded border-gray-300 text-indigo-600 dark:accent-slate-400 focus:ring-indigo-600"
|
|
3356
3357
|
}, null, 512), [
|
|
@@ -3364,7 +3365,7 @@ const ve = /* @__PURE__ */ nl(ll, [["render", dl]]), cl = { class: "sm:flex sm:i
|
|
|
3364
3365
|
class: "ms-3",
|
|
3365
3366
|
on: "vf-metric-units-saved"
|
|
3366
3367
|
}, {
|
|
3367
|
-
default:
|
|
3368
|
+
default: A(() => [
|
|
3368
3369
|
V(v(a(i)("Saved.")), 1)
|
|
3369
3370
|
]),
|
|
3370
3371
|
_: 1
|
|
@@ -3379,14 +3380,14 @@ const ve = /* @__PURE__ */ nl(ll, [["render", dl]]), cl = { class: "sm:flex sm:i
|
|
|
3379
3380
|
t("div", Sl, [
|
|
3380
3381
|
q(t("select", {
|
|
3381
3382
|
id: "theme",
|
|
3382
|
-
"onUpdate:modelValue":
|
|
3383
|
-
onChange:
|
|
3383
|
+
"onUpdate:modelValue": f[1] || (f[1] = (h) => a(e).theme.value = h),
|
|
3384
|
+
onChange: f[2] || (f[2] = (h) => c(h.target.value)),
|
|
3384
3385
|
class: "flex-shrink-0 w-full text-sm text-slate-500 border dark:border-gray-600 dark:text-neutral-50 dark:bg-gray-700 rounded"
|
|
3385
3386
|
}, [
|
|
3386
3387
|
t("optgroup", {
|
|
3387
3388
|
label: a(i)("Theme")
|
|
3388
3389
|
}, [
|
|
3389
|
-
(n(!0), m(U, null, I(
|
|
3390
|
+
(n(!0), m(U, null, I(E.value, (h, N) => (n(), m("option", { value: N }, v(h), 9, El))), 256))
|
|
3390
3391
|
], 8, Ml)
|
|
3391
3392
|
], 544), [
|
|
3392
3393
|
[pe, a(e).theme.value]
|
|
@@ -3395,28 +3396,28 @@ const ve = /* @__PURE__ */ nl(ll, [["render", dl]]), cl = { class: "sm:flex sm:i
|
|
|
3395
3396
|
class: "ms-3 flex-shrink-0 flex-grow basis-full",
|
|
3396
3397
|
on: "vf-theme-saved"
|
|
3397
3398
|
}, {
|
|
3398
|
-
default:
|
|
3399
|
+
default: A(() => [
|
|
3399
3400
|
V(v(a(i)("Saved.")), 1)
|
|
3400
3401
|
]),
|
|
3401
3402
|
_: 1
|
|
3402
3403
|
})
|
|
3403
3404
|
])
|
|
3404
3405
|
]),
|
|
3405
|
-
a(e).features.includes(a(
|
|
3406
|
+
a(e).features.includes(a(B).LANGUAGE) && Object.keys(a(y)).length > 1 ? (n(), m("div", Dl, [
|
|
3406
3407
|
t("div", jl, [
|
|
3407
3408
|
t("label", Al, v(a(i)("Language")), 1)
|
|
3408
3409
|
]),
|
|
3409
3410
|
t("div", Ll, [
|
|
3410
3411
|
q(t("select", {
|
|
3411
3412
|
id: "language",
|
|
3412
|
-
"onUpdate:modelValue":
|
|
3413
|
-
onChange:
|
|
3413
|
+
"onUpdate:modelValue": f[3] || (f[3] = (h) => _e(d) ? d.value = h : null),
|
|
3414
|
+
onChange: f[4] || (f[4] = (h) => a(u)(h.target.value)),
|
|
3414
3415
|
class: "flex-shrink-0 w-1/2 sm:w-full text-sm text-slate-500 border dark:border-gray-600 dark:text-neutral-50 dark:bg-gray-700 rounded"
|
|
3415
3416
|
}, [
|
|
3416
3417
|
t("optgroup", {
|
|
3417
3418
|
label: a(i)("Language")
|
|
3418
3419
|
}, [
|
|
3419
|
-
(n(!0), m(U, null, I(a(y), (
|
|
3420
|
+
(n(!0), m(U, null, I(a(y), (h, N) => (n(), m("option", { value: N }, v(h), 9, Fl))), 256))
|
|
3420
3421
|
], 8, Tl)
|
|
3421
3422
|
], 544), [
|
|
3422
3423
|
[pe, a(d)]
|
|
@@ -3425,13 +3426,13 @@ const ve = /* @__PURE__ */ nl(ll, [["render", dl]]), cl = { class: "sm:flex sm:i
|
|
|
3425
3426
|
class: "ms-3 flex-shrink-0 flex-grow basis-full",
|
|
3426
3427
|
on: "vf-language-saved"
|
|
3427
3428
|
}, {
|
|
3428
|
-
default:
|
|
3429
|
+
default: A(() => [
|
|
3429
3430
|
V(v(a(i)("Saved.")), 1)
|
|
3430
3431
|
]),
|
|
3431
3432
|
_: 1
|
|
3432
3433
|
})
|
|
3433
3434
|
])
|
|
3434
|
-
])) :
|
|
3435
|
+
])) : M("", !0),
|
|
3435
3436
|
t("button", {
|
|
3436
3437
|
onClick: l,
|
|
3437
3438
|
type: "button",
|
|
@@ -3449,7 +3450,7 @@ const ve = /* @__PURE__ */ nl(ll, [["render", dl]]), cl = { class: "sm:flex sm:i
|
|
|
3449
3450
|
}
|
|
3450
3451
|
}), Nl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3451
3452
|
__proto__: null,
|
|
3452
|
-
ModalAbout:
|
|
3453
|
+
ModalAbout: Vl,
|
|
3453
3454
|
ModalArchive: xn,
|
|
3454
3455
|
ModalDelete: oo,
|
|
3455
3456
|
ModalMessage: vo,
|
|
@@ -3457,8 +3458,8 @@ const ve = /* @__PURE__ */ nl(ll, [["render", dl]]), cl = { class: "sm:flex sm:i
|
|
|
3457
3458
|
ModalNewFile: Ao,
|
|
3458
3459
|
ModalNewFolder: xo,
|
|
3459
3460
|
ModalPreview: br,
|
|
3460
|
-
ModalRename:
|
|
3461
|
-
ModalUnarchive:
|
|
3461
|
+
ModalRename: Or,
|
|
3462
|
+
ModalUnarchive: Bn,
|
|
3462
3463
|
ModalUpload: on
|
|
3463
3464
|
}, Symbol.toStringTag, { value: "Module" })), Yl = {
|
|
3464
3465
|
/** @param {import('vue').App} app
|