vuefinder 4.0.27 → 4.0.28
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/features.js +43 -0
- package/dist/vuefinder.js +842 -879
- package/package.json +5 -2
package/dist/vuefinder.js
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { inject as ft, reactive as ht, watch as le, ref as M, shallowRef as
|
|
2
|
-
import
|
|
3
|
-
import { toast as re, Toaster as
|
|
4
|
-
import {
|
|
1
|
+
import { inject as ft, reactive as ht, watch as le, ref as M, shallowRef as ln, computed as N, markRaw as zn, defineComponent as X, onMounted as fe, nextTick as Ae, createElementBlock as g, openBlock as v, withKeys as ct, unref as s, createElementVNode as i, createCommentVNode as T, withModifiers as ae, renderSlot as $e, toDisplayString as y, createBlock as L, resolveDynamicComponent as dn, withCtx as se, createVNode as O, Fragment as ve, renderList as he, withDirectives as pe, vModelCheckbox as mt, vModelText as ut, onUnmounted as ye, useTemplateRef as Ge, createTextVNode as de, resolveComponent as cn, normalizeClass as Z, customRef as Rn, Teleport as gt, normalizeStyle as Ve, isRef as Nn, vModelSelect as Ft, onBeforeUnmount as un, vModelRadio as St, mergeProps as Me, toHandlers as Re, vShow as Le, normalizeProps as Ne, guardReactiveProps as Ue, onUpdated as Un, mergeModels as jn, useModel as vn, Transition as Hn, provide as Kn } from "vue";
|
|
2
|
+
import qn from "mitt";
|
|
3
|
+
import { toast as re, Toaster as Gn } from "vue-sonner";
|
|
4
|
+
import { normalizeFeatures as fn } from "./features.js";
|
|
5
|
+
import { persistentAtom as Wn } from "@nanostores/persistent";
|
|
5
6
|
import { atom as Se, computed as ze } from "nanostores";
|
|
6
7
|
import { useStore as W } from "@nanostores/vue";
|
|
7
|
-
import { QueryClient as
|
|
8
|
-
import
|
|
9
|
-
import { Cropper as
|
|
8
|
+
import { QueryClient as Yn } from "@tanstack/vue-query";
|
|
9
|
+
import Qn from "@uppy/core";
|
|
10
|
+
import { Cropper as Xn } from "vue-advanced-cropper";
|
|
10
11
|
import _n from "vanilla-lazyload";
|
|
11
|
-
import { OverlayScrollbars as st, SizeObserverPlugin as
|
|
12
|
+
import { OverlayScrollbars as st, SizeObserverPlugin as Jn } from "overlayscrollbars";
|
|
12
13
|
import { computePosition as We, offset as it, flip as at, shift as rt, autoUpdate as Mt } from "@floating-ui/dom";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
14
|
+
import Zn from "@viselect/vanilla";
|
|
15
|
+
import eo from "@uppy/xhr-upload";
|
|
15
16
|
const Tt = /* @__PURE__ */ new Map(), Dt = Symbol("ServiceContainerId");
|
|
16
|
-
function
|
|
17
|
+
function to(o, e) {
|
|
17
18
|
Tt.set(o, e);
|
|
18
19
|
}
|
|
19
|
-
function
|
|
20
|
+
function no(o) {
|
|
20
21
|
Tt.delete(o);
|
|
21
22
|
}
|
|
22
23
|
function J(o) {
|
|
@@ -32,7 +33,7 @@ function J(o) {
|
|
|
32
33
|
);
|
|
33
34
|
return t;
|
|
34
35
|
}
|
|
35
|
-
function
|
|
36
|
+
function oo(o) {
|
|
36
37
|
const e = localStorage.getItem(o + "_storage"), t = ht(JSON.parse(e ?? "{}"));
|
|
37
38
|
le(t, n);
|
|
38
39
|
function n() {
|
|
@@ -65,13 +66,13 @@ function Ce(o, e = "An error occurred") {
|
|
|
65
66
|
}
|
|
66
67
|
return e;
|
|
67
68
|
}
|
|
68
|
-
async function
|
|
69
|
+
async function so(o, e) {
|
|
69
70
|
const t = e[o];
|
|
70
71
|
return typeof t == "function" ? (await t()).default : t;
|
|
71
72
|
}
|
|
72
|
-
function
|
|
73
|
+
function io(o, e, t, n) {
|
|
73
74
|
const { getStore: a, setStore: l } = o, d = M({}), r = M(a("locale", e)), c = (w, u = e) => {
|
|
74
|
-
|
|
75
|
+
so(w, n).then(($) => {
|
|
75
76
|
d.value = $, l("locale", w), r.value = w, l("translations", $), Object.values(n).length > 1 && (re.success("The language is set to " + w), t.emit("vf-language-saved"));
|
|
76
77
|
}).catch(($) => {
|
|
77
78
|
if (u)
|
|
@@ -91,60 +92,22 @@ function ro(o, e, t, n) {
|
|
|
91
92
|
}
|
|
92
93
|
return ht({ t: m, locale: r });
|
|
93
94
|
}
|
|
94
|
-
const
|
|
95
|
-
"edit",
|
|
96
|
-
"newfile",
|
|
97
|
-
"newfolder",
|
|
98
|
-
"preview",
|
|
99
|
-
"archive",
|
|
100
|
-
"unarchive",
|
|
101
|
-
"search",
|
|
102
|
-
"rename",
|
|
103
|
-
"upload",
|
|
104
|
-
"delete",
|
|
105
|
-
"fullscreen",
|
|
106
|
-
"download",
|
|
107
|
-
"language",
|
|
108
|
-
"move",
|
|
109
|
-
"copy",
|
|
110
|
-
"history",
|
|
111
|
-
"theme",
|
|
112
|
-
"pinned"
|
|
113
|
-
], pn = {
|
|
114
|
-
simple: {
|
|
115
|
-
search: !0,
|
|
116
|
-
preview: !0,
|
|
117
|
-
rename: !0,
|
|
118
|
-
upload: !0,
|
|
119
|
-
delete: !0,
|
|
120
|
-
newfile: !0,
|
|
121
|
-
newfolder: !0,
|
|
122
|
-
download: !0
|
|
123
|
-
},
|
|
124
|
-
advanced: lo.reduce((o, e) => (o[e] = !0, o), {})
|
|
125
|
-
};
|
|
126
|
-
function Qt() {
|
|
127
|
-
return pn.advanced;
|
|
128
|
-
}
|
|
129
|
-
function hn(o) {
|
|
130
|
-
return o ? o === "simple" || o === "advanced" ? { ...pn[o] } : { ...Qt(), ...o } : Qt();
|
|
131
|
-
}
|
|
132
|
-
const co = "4.0.27";
|
|
95
|
+
const ao = "4.0.28";
|
|
133
96
|
function It(o, e, t, n, a) {
|
|
134
97
|
return e = Math, t = e.log, n = 1024, a = t(o) / t(n) | 0, (o / e.pow(n, a)).toFixed(0) + " " + (a ? "KMGTPEZY"[--a] + "iB" : "B");
|
|
135
98
|
}
|
|
136
|
-
function
|
|
99
|
+
function pn(o, e, t, n, a) {
|
|
137
100
|
return e = Math, t = e.log, n = 1e3, a = t(o) / t(n) | 0, (o / e.pow(n, a)).toFixed(0) + " " + (a ? "KMGTPEZY"[--a] + "B" : "B");
|
|
138
101
|
}
|
|
139
|
-
function
|
|
102
|
+
function ro(o) {
|
|
140
103
|
if (typeof o == "number") return o;
|
|
141
104
|
const e = { k: 1, m: 2, g: 3, t: 4 }, n = /(\d+(?:\.\d+)?)\s?(k|m|g|t)?b?/i.exec(o);
|
|
142
105
|
if (!n) return 0;
|
|
143
106
|
const a = parseFloat(n[1] || "0"), l = (n[2] || "").toLowerCase(), d = e[l] ?? 0;
|
|
144
107
|
return Math.round(a * Math.pow(1024, d));
|
|
145
108
|
}
|
|
146
|
-
function
|
|
147
|
-
const e =
|
|
109
|
+
function lo(o) {
|
|
110
|
+
const e = ln(null), t = M(!1), n = M(), a = M(!1);
|
|
148
111
|
return { visible: t, type: e, data: n, open: (c, _ = null) => {
|
|
149
112
|
o.get("fullScreen") || (document.querySelector("body").style.overflow = "hidden"), t.value = !0, e.value = c, n.value = _;
|
|
150
113
|
}, close: () => {
|
|
@@ -171,19 +134,19 @@ const _t = {
|
|
|
171
134
|
loadingIndicator: "circular",
|
|
172
135
|
showMenuBar: !0,
|
|
173
136
|
showToolbar: !0
|
|
174
|
-
},
|
|
137
|
+
}, co = new Set(
|
|
175
138
|
Object.keys(pt)
|
|
176
139
|
);
|
|
177
|
-
function
|
|
140
|
+
function uo(o) {
|
|
178
141
|
return o || "silver";
|
|
179
142
|
}
|
|
180
|
-
function
|
|
181
|
-
return
|
|
143
|
+
function hn(o) {
|
|
144
|
+
return co.has(o);
|
|
182
145
|
}
|
|
183
|
-
function
|
|
146
|
+
function Qt(o) {
|
|
184
147
|
const e = {}, t = {}, n = o;
|
|
185
148
|
for (const a in n)
|
|
186
|
-
if (
|
|
149
|
+
if (hn(a))
|
|
187
150
|
t[a] = n[a];
|
|
188
151
|
else if (a in _t) {
|
|
189
152
|
const l = a;
|
|
@@ -191,21 +154,21 @@ function Xt(o) {
|
|
|
191
154
|
}
|
|
192
155
|
return { persistenceConfig: e, nonPersistenceConfig: t };
|
|
193
156
|
}
|
|
194
|
-
function
|
|
157
|
+
function Xt(o, e) {
|
|
195
158
|
const t = { ..._t, ...o, ...e };
|
|
196
|
-
return t.theme =
|
|
159
|
+
return t.theme = uo(t.theme), t;
|
|
197
160
|
}
|
|
198
|
-
function
|
|
161
|
+
function Jt(o, e) {
|
|
199
162
|
return { ...pt, ...e, ...o };
|
|
200
163
|
}
|
|
201
|
-
const
|
|
202
|
-
const t = `vuefinder_config_${o}`, { persistenceConfig: n, nonPersistenceConfig: a } =
|
|
164
|
+
const vo = (o, e = {}) => {
|
|
165
|
+
const t = `vuefinder_config_${o}`, { persistenceConfig: n, nonPersistenceConfig: a } = Qt(e), l = Xt(
|
|
203
166
|
n,
|
|
204
167
|
_t
|
|
205
|
-
), d =
|
|
168
|
+
), d = Jt(
|
|
206
169
|
a,
|
|
207
170
|
pt
|
|
208
|
-
), r =
|
|
171
|
+
), r = Wn(
|
|
209
172
|
t,
|
|
210
173
|
l,
|
|
211
174
|
{
|
|
@@ -219,12 +182,12 @@ const po = (o, e = {}) => {
|
|
|
219
182
|
...h
|
|
220
183
|
})
|
|
221
184
|
), m = (p = {}) => {
|
|
222
|
-
const h = r.get(), f = c.get(), { persistenceConfig: k, nonPersistenceConfig: C } =
|
|
185
|
+
const h = r.get(), f = c.get(), { persistenceConfig: k, nonPersistenceConfig: C } = Qt(p), F = Xt(k, h), A = Jt(
|
|
223
186
|
C,
|
|
224
187
|
f
|
|
225
188
|
);
|
|
226
189
|
r.set(F), c.set(A);
|
|
227
|
-
}, w = (p) =>
|
|
190
|
+
}, w = (p) => hn(p) ? c.get()[p] : r.get()[p], u = () => ({
|
|
228
191
|
...r.get(),
|
|
229
192
|
...c.get()
|
|
230
193
|
}), $ = (p, h) => {
|
|
@@ -251,13 +214,13 @@ const po = (o, e = {}) => {
|
|
|
251
214
|
}
|
|
252
215
|
};
|
|
253
216
|
};
|
|
254
|
-
function
|
|
217
|
+
function fo(o, e) {
|
|
255
218
|
if (typeof o == "string" && typeof e == "string")
|
|
256
219
|
return o.toLowerCase().localeCompare(e.toLowerCase());
|
|
257
220
|
const t = Number(o) || 0, n = Number(e) || 0;
|
|
258
221
|
return t === n ? 0 : t < n ? -1 : 1;
|
|
259
222
|
}
|
|
260
|
-
const
|
|
223
|
+
const _o = () => {
|
|
261
224
|
const o = Se(""), e = Se([]), t = Se(!1), n = Se([]), a = Se({ active: !1, column: "", order: "" }), l = Se({
|
|
262
225
|
kind: "all",
|
|
263
226
|
showHidden: !1
|
|
@@ -281,7 +244,7 @@ const mo = () => {
|
|
|
281
244
|
const { active: Ie, column: De, order: Ee } = H;
|
|
282
245
|
if (!Ie || !De) return te;
|
|
283
246
|
const Je = Ee === "asc" ? 1 : -1;
|
|
284
|
-
return te.slice().sort((ke, Ze) =>
|
|
247
|
+
return te.slice().sort((ke, Ze) => fo(ke[De], Ze[De]) * Je);
|
|
285
248
|
}), S = ze([n, d], (V, H) => H.size === 0 ? [] : V.filter((Q) => H.has(Q.path))), p = (V, H) => {
|
|
286
249
|
const Q = o.get();
|
|
287
250
|
if ((H ?? !0) && Q !== V) {
|
|
@@ -483,7 +446,7 @@ class At {
|
|
|
483
446
|
return e && t ? `${e}://${t}` : t || "";
|
|
484
447
|
}
|
|
485
448
|
}
|
|
486
|
-
class
|
|
449
|
+
class uf extends At {
|
|
487
450
|
filesSource;
|
|
488
451
|
storage;
|
|
489
452
|
readOnly;
|
|
@@ -818,7 +781,7 @@ class ff extends At {
|
|
|
818
781
|
});
|
|
819
782
|
}
|
|
820
783
|
}
|
|
821
|
-
function
|
|
784
|
+
function Zt(o, e, t) {
|
|
822
785
|
const n = `HTTP ${e}: ${t}`;
|
|
823
786
|
if (!o)
|
|
824
787
|
return n;
|
|
@@ -842,7 +805,7 @@ function en(o, e, t) {
|
|
|
842
805
|
return o || n;
|
|
843
806
|
}
|
|
844
807
|
}
|
|
845
|
-
class
|
|
808
|
+
class mn extends At {
|
|
846
809
|
config;
|
|
847
810
|
/**
|
|
848
811
|
* Default URL endpoints
|
|
@@ -866,7 +829,7 @@ class wn extends At {
|
|
|
866
829
|
constructor(e) {
|
|
867
830
|
super();
|
|
868
831
|
const t = {
|
|
869
|
-
...
|
|
832
|
+
...mn.DEFAULT_URLS,
|
|
870
833
|
...e.url || {}
|
|
871
834
|
};
|
|
872
835
|
this.config = {
|
|
@@ -890,7 +853,7 @@ class wn extends At {
|
|
|
890
853
|
}
|
|
891
854
|
configureUploader(e, t) {
|
|
892
855
|
const n = this.getHeaders();
|
|
893
|
-
delete n["Content-Type"], e.use(
|
|
856
|
+
delete n["Content-Type"], e.use(eo, {
|
|
894
857
|
endpoint: `${this.config.baseURL}${this.config.url.upload}`,
|
|
895
858
|
fieldName: "file",
|
|
896
859
|
bundle: !1,
|
|
@@ -919,7 +882,7 @@ class wn extends At {
|
|
|
919
882
|
}
|
|
920
883
|
});
|
|
921
884
|
if (!a.ok) {
|
|
922
|
-
const d = await a.text(), r =
|
|
885
|
+
const d = await a.text(), r = Zt(d, a.status, a.statusText);
|
|
923
886
|
throw new Error(r);
|
|
924
887
|
}
|
|
925
888
|
return (a.headers.get("content-type") || "").includes("application/json") ? await a.json() : await a.text();
|
|
@@ -995,7 +958,7 @@ class wn extends At {
|
|
|
995
958
|
this.validatePath(e.path);
|
|
996
959
|
const t = new URLSearchParams({ path: e.path }), n = `${this.config.baseURL}${this.config.url.preview}?${t.toString()}`, a = await fetch(n, { headers: this.getHeaders() });
|
|
997
960
|
if (!a.ok) {
|
|
998
|
-
const d = await a.text(), r =
|
|
961
|
+
const d = await a.text(), r = Zt(d, a.status, a.statusText);
|
|
999
962
|
throw new Error(r);
|
|
1000
963
|
}
|
|
1001
964
|
return { content: await a.text(), mimeType: a.headers.get("Content-Type") || void 0 };
|
|
@@ -1021,7 +984,7 @@ class wn extends At {
|
|
|
1021
984
|
});
|
|
1022
985
|
}
|
|
1023
986
|
}
|
|
1024
|
-
class
|
|
987
|
+
class vf extends At {
|
|
1025
988
|
dbName;
|
|
1026
989
|
storage;
|
|
1027
990
|
readOnly;
|
|
@@ -1457,7 +1420,7 @@ class _f extends At {
|
|
|
1457
1420
|
});
|
|
1458
1421
|
}
|
|
1459
1422
|
}
|
|
1460
|
-
const
|
|
1423
|
+
const en = {
|
|
1461
1424
|
list: (o) => ["adapter", "list", o],
|
|
1462
1425
|
search: (o, e, t, n) => ["adapter", "search", o, e, t, n],
|
|
1463
1426
|
delete: (o) => ["adapter", "delete", o],
|
|
@@ -1469,14 +1432,14 @@ const tn = {
|
|
|
1469
1432
|
createFile: () => ["adapter", "createFile"],
|
|
1470
1433
|
createFolder: () => ["adapter", "createFolder"]
|
|
1471
1434
|
};
|
|
1472
|
-
class
|
|
1435
|
+
class po {
|
|
1473
1436
|
driver;
|
|
1474
1437
|
queryClient;
|
|
1475
1438
|
config;
|
|
1476
1439
|
onBeforeOpen;
|
|
1477
1440
|
onAfterOpen;
|
|
1478
1441
|
constructor(e, t = {}) {
|
|
1479
|
-
this.driver = e, this.onBeforeOpen = t.onBeforeOpen, this.onAfterOpen = t.onAfterOpen, this.queryClient = t.queryClient || new
|
|
1442
|
+
this.driver = e, this.onBeforeOpen = t.onBeforeOpen, this.onAfterOpen = t.onAfterOpen, this.queryClient = t.queryClient || new Yn({
|
|
1480
1443
|
defaultOptions: {
|
|
1481
1444
|
queries: {
|
|
1482
1445
|
refetchOnWindowFocus: t.refetchOnWindowFocus ?? !1,
|
|
@@ -1515,7 +1478,7 @@ class go {
|
|
|
1515
1478
|
* List files with caching and automatic refetching
|
|
1516
1479
|
*/
|
|
1517
1480
|
async list(e) {
|
|
1518
|
-
const t =
|
|
1481
|
+
const t = en.list(e);
|
|
1519
1482
|
return await this.queryClient.fetchQuery({
|
|
1520
1483
|
queryKey: t,
|
|
1521
1484
|
queryFn: () => this.driver.list({ path: e }),
|
|
@@ -1615,7 +1578,7 @@ class go {
|
|
|
1615
1578
|
* Search files (cached per path+filter)
|
|
1616
1579
|
*/
|
|
1617
1580
|
async search(e) {
|
|
1618
|
-
const t =
|
|
1581
|
+
const t = en.search(e.path, e.filter, e.deep, e.size);
|
|
1619
1582
|
return await this.queryClient.fetchQuery({
|
|
1620
1583
|
queryKey: t,
|
|
1621
1584
|
queryFn: () => this.driver.search(e),
|
|
@@ -1651,7 +1614,7 @@ class go {
|
|
|
1651
1614
|
this.queryClient.clear();
|
|
1652
1615
|
}
|
|
1653
1616
|
}
|
|
1654
|
-
function
|
|
1617
|
+
function ho(o) {
|
|
1655
1618
|
const e = W(o.state);
|
|
1656
1619
|
return {
|
|
1657
1620
|
current: N(() => e.value.theme || "silver"),
|
|
@@ -1660,19 +1623,19 @@ function wo(o) {
|
|
|
1660
1623
|
}
|
|
1661
1624
|
};
|
|
1662
1625
|
}
|
|
1663
|
-
const
|
|
1664
|
-
const t =
|
|
1626
|
+
const mo = (o, e) => {
|
|
1627
|
+
const t = oo(o.id ?? "vf"), n = qn(), a = e.i18n, l = o.locale ?? e.locale, d = vo(o.id ?? "vf", o.config ?? {}), r = _o();
|
|
1665
1628
|
if (!o.driver)
|
|
1666
1629
|
throw new Error("Driver is required for VueFinder");
|
|
1667
|
-
const c = new
|
|
1630
|
+
const c = new po(o.driver);
|
|
1668
1631
|
return ht({
|
|
1669
1632
|
// app version
|
|
1670
|
-
version:
|
|
1633
|
+
version: ao,
|
|
1671
1634
|
// config store
|
|
1672
1635
|
config: d,
|
|
1673
1636
|
// Theme
|
|
1674
1637
|
theme: (() => {
|
|
1675
|
-
const _ =
|
|
1638
|
+
const _ = ho(d);
|
|
1676
1639
|
return {
|
|
1677
1640
|
current: _.current,
|
|
1678
1641
|
set: _.set
|
|
@@ -1689,19 +1652,19 @@ const yo = (o, e) => {
|
|
|
1689
1652
|
// storage
|
|
1690
1653
|
storage: t,
|
|
1691
1654
|
// localization object
|
|
1692
|
-
i18n:
|
|
1655
|
+
i18n: io(
|
|
1693
1656
|
t,
|
|
1694
1657
|
l,
|
|
1695
1658
|
n,
|
|
1696
1659
|
a
|
|
1697
1660
|
),
|
|
1698
1661
|
// modal state
|
|
1699
|
-
modal:
|
|
1662
|
+
modal: lo(d),
|
|
1700
1663
|
// adapter for file operations (always wrapped with AdapterManager)
|
|
1701
1664
|
// Use markRaw to prevent TanStack Query from being made reactive
|
|
1702
|
-
adapter:
|
|
1665
|
+
adapter: zn(c),
|
|
1703
1666
|
// active features
|
|
1704
|
-
features:
|
|
1667
|
+
features: fn(o.features),
|
|
1705
1668
|
// selection mode
|
|
1706
1669
|
selectionMode: o.selectionMode || "multiple",
|
|
1707
1670
|
// selection filters - computed properties for better reactivity
|
|
@@ -1710,19 +1673,19 @@ const yo = (o, e) => {
|
|
|
1710
1673
|
// treeViewData - temp. opened folders
|
|
1711
1674
|
treeViewData: [],
|
|
1712
1675
|
// human readable file sizes
|
|
1713
|
-
filesize: d.get("metricUnits") ?
|
|
1676
|
+
filesize: d.get("metricUnits") ? pn : It,
|
|
1714
1677
|
// possible items of the context menu
|
|
1715
1678
|
contextMenuItems: o.contextMenuItems,
|
|
1716
1679
|
// expose custom uploader if provided
|
|
1717
1680
|
customUploader: o.customUploader
|
|
1718
1681
|
});
|
|
1719
|
-
},
|
|
1682
|
+
}, go = ["data-theme"], wo = { class: "vuefinder__modal-layout__container" }, yo = { class: "vuefinder__modal-layout__content" }, bo = {
|
|
1720
1683
|
key: 0,
|
|
1721
1684
|
class: "vuefinder__modal-layout__footer"
|
|
1722
|
-
},
|
|
1685
|
+
}, ko = {
|
|
1723
1686
|
key: 0,
|
|
1724
1687
|
class: "vuefinder__modal-drag-overlay"
|
|
1725
|
-
},
|
|
1688
|
+
}, $o = { class: "vuefinder__modal-drag-message" }, Fe = /* @__PURE__ */ X({
|
|
1726
1689
|
__name: "ModalLayout",
|
|
1727
1690
|
props: {
|
|
1728
1691
|
showDragOverlay: { type: Boolean },
|
|
@@ -1760,7 +1723,7 @@ const yo = (o, e) => {
|
|
|
1760
1723
|
onKeyup: d[1] || (d[1] = ct((r) => s(t).modal.close(), ["esc"]))
|
|
1761
1724
|
}, [
|
|
1762
1725
|
d[2] || (d[2] = i("div", { class: "vuefinder__modal-layout__overlay" }, null, -1)),
|
|
1763
|
-
i("div",
|
|
1726
|
+
i("div", wo, [
|
|
1764
1727
|
i("div", {
|
|
1765
1728
|
class: "vuefinder__modal-layout__wrapper",
|
|
1766
1729
|
onContextmenu: a,
|
|
@@ -1771,21 +1734,21 @@ const yo = (o, e) => {
|
|
|
1771
1734
|
ref: e,
|
|
1772
1735
|
class: "vuefinder__modal-layout__body"
|
|
1773
1736
|
}, [
|
|
1774
|
-
i("div",
|
|
1737
|
+
i("div", yo, [
|
|
1775
1738
|
$e(l.$slots, "default")
|
|
1776
1739
|
]),
|
|
1777
|
-
l.$slots.buttons ? (v(), g("div",
|
|
1740
|
+
l.$slots.buttons ? (v(), g("div", bo, [
|
|
1778
1741
|
$e(l.$slots, "buttons")
|
|
1779
1742
|
])) : T("", !0)
|
|
1780
1743
|
], 512)
|
|
1781
1744
|
], 32)
|
|
1782
1745
|
]),
|
|
1783
|
-
n.showDragOverlay ? (v(), g("div",
|
|
1784
|
-
i("div",
|
|
1746
|
+
n.showDragOverlay ? (v(), g("div", ko, [
|
|
1747
|
+
i("div", $o, y(n.dragOverlayText || "Drag and drop the files/folders to here."), 1)
|
|
1785
1748
|
])) : T("", !0)
|
|
1786
|
-
], 40,
|
|
1749
|
+
], 40, go));
|
|
1787
1750
|
}
|
|
1788
|
-
}),
|
|
1751
|
+
}), xo = { class: "vuefinder__modal-header" }, So = { class: "vuefinder__modal-header__icon-container" }, Co = {
|
|
1789
1752
|
id: "modal-title",
|
|
1790
1753
|
class: "vuefinder__modal-header__title"
|
|
1791
1754
|
}, Pe = /* @__PURE__ */ X({
|
|
@@ -1795,22 +1758,22 @@ const yo = (o, e) => {
|
|
|
1795
1758
|
icon: {}
|
|
1796
1759
|
},
|
|
1797
1760
|
setup(o) {
|
|
1798
|
-
return (e, t) => (v(), g("div",
|
|
1799
|
-
i("div",
|
|
1800
|
-
(v(), L(
|
|
1761
|
+
return (e, t) => (v(), g("div", xo, [
|
|
1762
|
+
i("div", So, [
|
|
1763
|
+
(v(), L(dn(o.icon), { class: "vuefinder__modal-header__icon" }))
|
|
1801
1764
|
]),
|
|
1802
|
-
i("div",
|
|
1765
|
+
i("div", Co, y(o.title), 1)
|
|
1803
1766
|
]));
|
|
1804
1767
|
}
|
|
1805
|
-
}),
|
|
1768
|
+
}), Fo = {
|
|
1806
1769
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1807
1770
|
fill: "none",
|
|
1808
1771
|
stroke: "currentColor",
|
|
1809
1772
|
"stroke-width": "1.8",
|
|
1810
1773
|
viewBox: "0 0 24 24"
|
|
1811
1774
|
};
|
|
1812
|
-
function
|
|
1813
|
-
return v(), g("svg",
|
|
1775
|
+
function Do(o, e) {
|
|
1776
|
+
return v(), g("svg", Fo, [...e[0] || (e[0] = [
|
|
1814
1777
|
i("circle", {
|
|
1815
1778
|
cx: "12",
|
|
1816
1779
|
cy: "12",
|
|
@@ -1823,12 +1786,12 @@ function Mo(o, e) {
|
|
|
1823
1786
|
}, null, -1)
|
|
1824
1787
|
])]);
|
|
1825
1788
|
}
|
|
1826
|
-
const
|
|
1789
|
+
const gn = { render: Do }, Po = { class: "vuefinder__about-modal__content" }, Eo = { class: "vuefinder__about-modal__main" }, Mo = { class: "vuefinder__about-modal__tab-content" }, To = { class: "vuefinder__about-modal__lead" }, Io = { class: "vuefinder__about-modal__description" }, Ao = { class: "vuefinder__about-modal__links" }, Oo = {
|
|
1827
1790
|
href: "https://vuefinder.ozdemir.be",
|
|
1828
1791
|
class: "vuefinder__about-modal__link-btn",
|
|
1829
1792
|
target: "_blank",
|
|
1830
1793
|
rel: "noopener noreferrer"
|
|
1831
|
-
},
|
|
1794
|
+
}, Bo = { class: "vuefinder__about-modal__meta" }, Lo = { class: "vuefinder__about-modal__meta-item" }, Vo = { class: "vuefinder__about-modal__meta-label" }, zo = { class: "vuefinder__about-modal__meta-value" }, Ro = { class: "vuefinder__about-modal__meta-item" }, No = { class: "vuefinder__about-modal__meta-label" }, wn = /* @__PURE__ */ X({
|
|
1832
1795
|
__name: "ModalAbout",
|
|
1833
1796
|
setup(o) {
|
|
1834
1797
|
const e = J(), { t } = e.i18n;
|
|
@@ -1841,17 +1804,17 @@ const yn = { render: Mo }, To = { class: "vuefinder__about-modal__content" }, Io
|
|
|
1841
1804
|
}, y(s(t)("Close")), 1)
|
|
1842
1805
|
]),
|
|
1843
1806
|
default: se(() => [
|
|
1844
|
-
i("div",
|
|
1807
|
+
i("div", Po, [
|
|
1845
1808
|
O(Pe, {
|
|
1846
|
-
icon: s(
|
|
1809
|
+
icon: s(gn),
|
|
1847
1810
|
title: "Vuefinder " + s(e).version
|
|
1848
1811
|
}, null, 8, ["icon", "title"]),
|
|
1849
|
-
i("div",
|
|
1850
|
-
i("div",
|
|
1851
|
-
i("div",
|
|
1852
|
-
i("div",
|
|
1853
|
-
i("div",
|
|
1854
|
-
i("a",
|
|
1812
|
+
i("div", Eo, [
|
|
1813
|
+
i("div", Mo, [
|
|
1814
|
+
i("div", To, y(s(t)("A modern, customizable file manager component built for Vue.")), 1),
|
|
1815
|
+
i("div", Io, y(s(t)("If you like it, please follow and ⭐ star on GitHub.")), 1),
|
|
1816
|
+
i("div", Ao, [
|
|
1817
|
+
i("a", Oo, y(s(t)("Project Home")), 1),
|
|
1855
1818
|
a[1] || (a[1] = i("a", {
|
|
1856
1819
|
href: "https://github.com/n1crack/vuefinder",
|
|
1857
1820
|
class: "vuefinder__about-modal__link-btn",
|
|
@@ -1859,13 +1822,13 @@ const yn = { render: Mo }, To = { class: "vuefinder__about-modal__content" }, Io
|
|
|
1859
1822
|
rel: "noopener noreferrer"
|
|
1860
1823
|
}, " GitHub ", -1))
|
|
1861
1824
|
]),
|
|
1862
|
-
i("div",
|
|
1863
|
-
i("div",
|
|
1864
|
-
i("span",
|
|
1865
|
-
i("span",
|
|
1825
|
+
i("div", Bo, [
|
|
1826
|
+
i("div", Lo, [
|
|
1827
|
+
i("span", Vo, y(s(t)("Version")), 1),
|
|
1828
|
+
i("span", zo, y(s(e).version), 1)
|
|
1866
1829
|
]),
|
|
1867
|
-
i("div",
|
|
1868
|
-
i("span",
|
|
1830
|
+
i("div", Ro, [
|
|
1831
|
+
i("span", No, y(s(t)("License")), 1),
|
|
1869
1832
|
a[2] || (a[2] = i("span", { class: "vuefinder__about-modal__meta-value" }, "MIT", -1))
|
|
1870
1833
|
])
|
|
1871
1834
|
])
|
|
@@ -1876,18 +1839,18 @@ const yn = { render: Mo }, To = { class: "vuefinder__about-modal__content" }, Io
|
|
|
1876
1839
|
_: 1
|
|
1877
1840
|
}));
|
|
1878
1841
|
}
|
|
1879
|
-
}),
|
|
1842
|
+
}), Uo = {
|
|
1880
1843
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1881
1844
|
fill: "none",
|
|
1882
1845
|
"stroke-width": "1.5",
|
|
1883
1846
|
viewBox: "0 0 24 24"
|
|
1884
1847
|
};
|
|
1885
|
-
function
|
|
1886
|
-
return v(), g("svg",
|
|
1848
|
+
function jo(o, e) {
|
|
1849
|
+
return v(), g("svg", Uo, [...e[0] || (e[0] = [
|
|
1887
1850
|
i("path", { d: "m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21q.512.078 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48 48 0 0 0-3.478-.397m-12 .562q.51-.089 1.022-.165m0 0a48 48 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a52 52 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a49 49 0 0 0-7.5 0" }, null, -1)
|
|
1888
1851
|
])]);
|
|
1889
1852
|
}
|
|
1890
|
-
const
|
|
1853
|
+
const yn = { render: jo }, Ho = { class: "vuefinder__delete-modal__content" }, Ko = { class: "vuefinder__delete-modal__form" }, qo = { class: "vuefinder__delete-modal__description" }, Go = { class: "vuefinder__delete-modal__files vf-scrollbar" }, Wo = {
|
|
1891
1854
|
key: 0,
|
|
1892
1855
|
class: "vuefinder__delete-modal__icon vuefinder__delete-modal__icon--dir",
|
|
1893
1856
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1895,7 +1858,7 @@ const kn = { render: qo }, Go = { class: "vuefinder__delete-modal__content" }, W
|
|
|
1895
1858
|
viewBox: "0 0 24 24",
|
|
1896
1859
|
stroke: "currentColor",
|
|
1897
1860
|
"stroke-width": "1"
|
|
1898
|
-
},
|
|
1861
|
+
}, Yo = {
|
|
1899
1862
|
key: 1,
|
|
1900
1863
|
class: "vuefinder__delete-modal__icon",
|
|
1901
1864
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1903,7 +1866,7 @@ const kn = { render: qo }, Go = { class: "vuefinder__delete-modal__content" }, W
|
|
|
1903
1866
|
viewBox: "0 0 24 24",
|
|
1904
1867
|
stroke: "currentColor",
|
|
1905
1868
|
"stroke-width": "1"
|
|
1906
|
-
},
|
|
1869
|
+
}, Qo = { class: "vuefinder__delete-modal__file-name" }, Xo = { class: "vuefinder__delete-modal__confirmation" }, Jo = { class: "vuefinder__delete-modal__confirmation-label" }, Zo = { class: "vuefinder__delete-modal__confirmation-text" }, es = ["disabled"], wt = /* @__PURE__ */ X({
|
|
1907
1870
|
__name: "ModalDelete",
|
|
1908
1871
|
setup(o) {
|
|
1909
1872
|
const e = J(), { t } = e.i18n, n = e.fs, a = W(n.path), l = M(e.modal.data.items), d = M(!1), r = () => {
|
|
@@ -1921,8 +1884,8 @@ const kn = { render: qo }, Go = { class: "vuefinder__delete-modal__content" }, W
|
|
|
1921
1884
|
};
|
|
1922
1885
|
return (c, _) => (v(), L(Fe, null, {
|
|
1923
1886
|
buttons: se(() => [
|
|
1924
|
-
i("div",
|
|
1925
|
-
i("label",
|
|
1887
|
+
i("div", Xo, [
|
|
1888
|
+
i("label", Jo, [
|
|
1926
1889
|
pe(i("input", {
|
|
1927
1890
|
"onUpdate:modelValue": _[0] || (_[0] = (m) => d.value = m),
|
|
1928
1891
|
type: "checkbox",
|
|
@@ -1930,7 +1893,7 @@ const kn = { render: qo }, Go = { class: "vuefinder__delete-modal__content" }, W
|
|
|
1930
1893
|
}, null, 512), [
|
|
1931
1894
|
[mt, d.value]
|
|
1932
1895
|
]),
|
|
1933
|
-
i("span",
|
|
1896
|
+
i("span", Zo, y(s(t)("I'm sure delete it, This action cannot be undone.")), 1)
|
|
1934
1897
|
])
|
|
1935
1898
|
]),
|
|
1936
1899
|
i("button", {
|
|
@@ -1938,7 +1901,7 @@ const kn = { render: qo }, Go = { class: "vuefinder__delete-modal__content" }, W
|
|
|
1938
1901
|
class: "vf-btn vf-btn-danger",
|
|
1939
1902
|
disabled: !d.value,
|
|
1940
1903
|
onClick: r
|
|
1941
|
-
}, y(s(t)("Yes, Delete!")), 9,
|
|
1904
|
+
}, y(s(t)("Yes, Delete!")), 9, es),
|
|
1942
1905
|
i("button", {
|
|
1943
1906
|
type: "button",
|
|
1944
1907
|
class: "vf-btn vf-btn-secondary",
|
|
@@ -1948,31 +1911,31 @@ const kn = { render: qo }, Go = { class: "vuefinder__delete-modal__content" }, W
|
|
|
1948
1911
|
default: se(() => [
|
|
1949
1912
|
i("div", null, [
|
|
1950
1913
|
O(Pe, {
|
|
1951
|
-
icon: s(
|
|
1914
|
+
icon: s(yn),
|
|
1952
1915
|
title: s(t)("Delete files")
|
|
1953
1916
|
}, null, 8, ["icon", "title"]),
|
|
1954
|
-
i("div",
|
|
1955
|
-
i("div",
|
|
1956
|
-
i("p",
|
|
1957
|
-
i("div",
|
|
1917
|
+
i("div", Ho, [
|
|
1918
|
+
i("div", Ko, [
|
|
1919
|
+
i("p", qo, y(s(t)("Are you sure you want to delete these files?")), 1),
|
|
1920
|
+
i("div", Go, [
|
|
1958
1921
|
(v(!0), g(ve, null, he(l.value, (m) => (v(), g("p", {
|
|
1959
1922
|
key: m.path,
|
|
1960
1923
|
class: "vuefinder__delete-modal__file"
|
|
1961
1924
|
}, [
|
|
1962
|
-
m.type === "dir" ? (v(), g("svg",
|
|
1925
|
+
m.type === "dir" ? (v(), g("svg", Wo, [..._[2] || (_[2] = [
|
|
1963
1926
|
i("path", {
|
|
1964
1927
|
"stroke-linecap": "round",
|
|
1965
1928
|
"stroke-linejoin": "round",
|
|
1966
1929
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
1967
1930
|
}, null, -1)
|
|
1968
|
-
])])) : (v(), g("svg",
|
|
1931
|
+
])])) : (v(), g("svg", Yo, [..._[3] || (_[3] = [
|
|
1969
1932
|
i("path", {
|
|
1970
1933
|
"stroke-linecap": "round",
|
|
1971
1934
|
"stroke-linejoin": "round",
|
|
1972
1935
|
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"
|
|
1973
1936
|
}, null, -1)
|
|
1974
1937
|
])])),
|
|
1975
|
-
i("span",
|
|
1938
|
+
i("span", Qo, y(m.basename), 1)
|
|
1976
1939
|
]))), 128))
|
|
1977
1940
|
])
|
|
1978
1941
|
])
|
|
@@ -1982,18 +1945,18 @@ const kn = { render: qo }, Go = { class: "vuefinder__delete-modal__content" }, W
|
|
|
1982
1945
|
_: 1
|
|
1983
1946
|
}));
|
|
1984
1947
|
}
|
|
1985
|
-
}),
|
|
1948
|
+
}), ts = {
|
|
1986
1949
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1987
1950
|
fill: "none",
|
|
1988
1951
|
"stroke-width": "1.5",
|
|
1989
1952
|
viewBox: "0 0 24 24"
|
|
1990
1953
|
};
|
|
1991
|
-
function
|
|
1992
|
-
return v(), g("svg",
|
|
1954
|
+
function ns(o, e) {
|
|
1955
|
+
return v(), g("svg", ts, [...e[0] || (e[0] = [
|
|
1993
1956
|
i("path", { d: "m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10" }, null, -1)
|
|
1994
1957
|
])]);
|
|
1995
1958
|
}
|
|
1996
|
-
const
|
|
1959
|
+
const bn = { render: ns }, os = { class: "vuefinder__rename-modal__content" }, ss = { class: "vuefinder__rename-modal__item" }, is = { class: "vuefinder__rename-modal__item-info" }, as = {
|
|
1997
1960
|
key: 0,
|
|
1998
1961
|
class: "vuefinder__rename-modal__icon vuefinder__rename-modal__icon--dir",
|
|
1999
1962
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2001,7 +1964,7 @@ const $n = { render: is }, as = { class: "vuefinder__rename-modal__content" }, r
|
|
|
2001
1964
|
viewBox: "0 0 24 24",
|
|
2002
1965
|
stroke: "currentColor",
|
|
2003
1966
|
"stroke-width": "1"
|
|
2004
|
-
},
|
|
1967
|
+
}, rs = {
|
|
2005
1968
|
key: 1,
|
|
2006
1969
|
class: "vuefinder__rename-modal__icon",
|
|
2007
1970
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2009,7 +1972,7 @@ const $n = { render: is }, as = { class: "vuefinder__rename-modal__content" }, r
|
|
|
2009
1972
|
viewBox: "0 0 24 24",
|
|
2010
1973
|
stroke: "currentColor",
|
|
2011
1974
|
"stroke-width": "1"
|
|
2012
|
-
},
|
|
1975
|
+
}, ls = { class: "vuefinder__rename-modal__item-name" }, yt = /* @__PURE__ */ X({
|
|
2013
1976
|
__name: "ModalRename",
|
|
2014
1977
|
setup(o) {
|
|
2015
1978
|
const e = J(), { t } = e.i18n, n = e.fs, a = W(n.path), l = M(e.modal.data.items[0]), d = M(l.value.basename), r = () => {
|
|
@@ -2039,26 +2002,26 @@ const $n = { render: is }, as = { class: "vuefinder__rename-modal__content" }, r
|
|
|
2039
2002
|
default: se(() => [
|
|
2040
2003
|
i("div", null, [
|
|
2041
2004
|
O(Pe, {
|
|
2042
|
-
icon: s(
|
|
2005
|
+
icon: s(bn),
|
|
2043
2006
|
title: s(t)("Rename")
|
|
2044
2007
|
}, null, 8, ["icon", "title"]),
|
|
2045
|
-
i("div",
|
|
2046
|
-
i("div",
|
|
2047
|
-
i("p",
|
|
2048
|
-
l.value.type === "dir" ? (v(), g("svg",
|
|
2008
|
+
i("div", os, [
|
|
2009
|
+
i("div", ss, [
|
|
2010
|
+
i("p", is, [
|
|
2011
|
+
l.value.type === "dir" ? (v(), g("svg", as, [..._[2] || (_[2] = [
|
|
2049
2012
|
i("path", {
|
|
2050
2013
|
"stroke-linecap": "round",
|
|
2051
2014
|
"stroke-linejoin": "round",
|
|
2052
2015
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
2053
2016
|
}, null, -1)
|
|
2054
|
-
])])) : (v(), g("svg",
|
|
2017
|
+
])])) : (v(), g("svg", rs, [..._[3] || (_[3] = [
|
|
2055
2018
|
i("path", {
|
|
2056
2019
|
"stroke-linecap": "round",
|
|
2057
2020
|
"stroke-linejoin": "round",
|
|
2058
2021
|
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"
|
|
2059
2022
|
}, null, -1)
|
|
2060
2023
|
])])),
|
|
2061
|
-
i("span",
|
|
2024
|
+
i("span", ls, y(l.value.basename), 1)
|
|
2062
2025
|
]),
|
|
2063
2026
|
pe(i("input", {
|
|
2064
2027
|
"onUpdate:modelValue": _[0] || (_[0] = (m) => d.value = m),
|
|
@@ -2083,10 +2046,10 @@ function Te() {
|
|
|
2083
2046
|
enabled: (n) => e.value[n] ?? !1
|
|
2084
2047
|
};
|
|
2085
2048
|
}
|
|
2086
|
-
const
|
|
2049
|
+
const ds = { class: "vuefinder__text-preview" }, cs = { class: "vuefinder__text-preview__header" }, us = ["title"], vs = { class: "vuefinder__text-preview__actions" }, fs = {
|
|
2087
2050
|
key: 0,
|
|
2088
2051
|
class: "vuefinder__text-preview__content"
|
|
2089
|
-
},
|
|
2052
|
+
}, _s = { key: 1 }, ps = /* @__PURE__ */ X({
|
|
2090
2053
|
__name: "Text",
|
|
2091
2054
|
emits: ["success"],
|
|
2092
2055
|
setup(o, { emit: e }) {
|
|
@@ -2112,14 +2075,14 @@ const vs = { class: "vuefinder__text-preview" }, fs = { class: "vuefinder__text-
|
|
|
2112
2075
|
re.error(Ce(u, _("Failed to save file")));
|
|
2113
2076
|
}
|
|
2114
2077
|
};
|
|
2115
|
-
return (u, $) => (v(), g("div",
|
|
2116
|
-
i("div",
|
|
2078
|
+
return (u, $) => (v(), g("div", ds, [
|
|
2079
|
+
i("div", cs, [
|
|
2117
2080
|
i("div", {
|
|
2118
2081
|
id: "modal-title",
|
|
2119
2082
|
class: "vuefinder__text-preview__title",
|
|
2120
2083
|
title: s(r).modal.data.item.path
|
|
2121
|
-
}, y(s(r).modal.data.item.basename), 9,
|
|
2122
|
-
i("div",
|
|
2084
|
+
}, y(s(r).modal.data.item.basename), 9, us),
|
|
2085
|
+
i("div", vs, [
|
|
2123
2086
|
d.value ? (v(), g("button", {
|
|
2124
2087
|
key: 0,
|
|
2125
2088
|
class: "vuefinder__text-preview__save-button",
|
|
@@ -2133,7 +2096,7 @@ const vs = { class: "vuefinder__text-preview" }, fs = { class: "vuefinder__text-
|
|
|
2133
2096
|
])
|
|
2134
2097
|
]),
|
|
2135
2098
|
i("div", null, [
|
|
2136
|
-
d.value ? (v(), g("div",
|
|
2099
|
+
d.value ? (v(), g("div", _s, [
|
|
2137
2100
|
pe(i("textarea", {
|
|
2138
2101
|
ref_key: "editInput",
|
|
2139
2102
|
ref: l,
|
|
@@ -2145,7 +2108,7 @@ const vs = { class: "vuefinder__text-preview" }, fs = { class: "vuefinder__text-
|
|
|
2145
2108
|
}, null, 512), [
|
|
2146
2109
|
[ut, a.value]
|
|
2147
2110
|
])
|
|
2148
|
-
])) : (v(), g("pre",
|
|
2111
|
+
])) : (v(), g("pre", fs, y(n.value), 1))
|
|
2149
2112
|
])
|
|
2150
2113
|
]));
|
|
2151
2114
|
}
|
|
@@ -2172,7 +2135,7 @@ const vs = { class: "vuefinder__text-preview" }, fs = { class: "vuefinder__text-
|
|
|
2172
2135
|
ERROR: 3,
|
|
2173
2136
|
DONE: 10
|
|
2174
2137
|
};
|
|
2175
|
-
function
|
|
2138
|
+
function kn(o) {
|
|
2176
2139
|
const e = J(), { t } = e.i18n, n = e.fs, a = W(n.path), l = e.config, d = M({ QUEUE_ENTRY_STATUS: ge }), r = M(null), c = M(null), _ = M(null), m = M(null), w = M(null), u = M([]), $ = M(""), D = M(!1), S = M(!1), p = M(null);
|
|
2177
2140
|
let h;
|
|
2178
2141
|
const f = (x) => {
|
|
@@ -2223,9 +2186,9 @@ function xn(o) {
|
|
|
2223
2186
|
});
|
|
2224
2187
|
};
|
|
2225
2188
|
return fe(() => {
|
|
2226
|
-
h = new
|
|
2189
|
+
h = new Qn({
|
|
2227
2190
|
debug: e.debug,
|
|
2228
|
-
restrictions: { maxFileSize:
|
|
2191
|
+
restrictions: { maxFileSize: ro(l.get("maxFileSize") ?? "10mb") },
|
|
2229
2192
|
locale: e.i18n.t("uppy"),
|
|
2230
2193
|
onBeforeFileAdded: (I, G) => {
|
|
2231
2194
|
if (G[I.id] != null) {
|
|
@@ -2315,14 +2278,14 @@ function xn(o) {
|
|
|
2315
2278
|
addExternalFiles: z
|
|
2316
2279
|
};
|
|
2317
2280
|
}
|
|
2318
|
-
const
|
|
2281
|
+
const hs = { class: "vuefinder__image-preview" }, ms = { class: "vuefinder__image-preview__header" }, gs = ["title"], ws = { class: "vuefinder__image-preview__actions" }, ys = { class: "vuefinder__image-preview__image-container" }, bs = ["src"], ks = /* @__PURE__ */ X({
|
|
2319
2282
|
name: "ImagePreview",
|
|
2320
2283
|
__name: "Image",
|
|
2321
2284
|
emits: ["success"],
|
|
2322
2285
|
setup(o, { emit: e }) {
|
|
2323
2286
|
const t = e, n = J(), { enabled: a } = Te(), { t: l } = n.i18n, d = M(!1), r = M(
|
|
2324
2287
|
n.modal.data.item.previewUrl ?? n.adapter.getPreviewUrl({ path: n.modal.data.item.path })
|
|
2325
|
-
), c = M(r.value), { addExternalFiles: _, upload: m, queue: w } =
|
|
2288
|
+
), c = M(r.value), { addExternalFiles: _, upload: m, queue: w } = kn(n.customUploader), u = n.fs, $ = W(u.path), D = Ge("cropperRef"), S = async () => {
|
|
2326
2289
|
d.value = !d.value, n.modal.setEditMode(d.value);
|
|
2327
2290
|
}, p = async () => {
|
|
2328
2291
|
const f = D.value?.getResult({
|
|
@@ -2373,14 +2336,14 @@ const ws = { class: "vuefinder__image-preview" }, ys = { class: "vuefinder__imag
|
|
|
2373
2336
|
};
|
|
2374
2337
|
return fe(() => {
|
|
2375
2338
|
t("success");
|
|
2376
|
-
}), (h, f) => (v(), g("div",
|
|
2377
|
-
i("div",
|
|
2339
|
+
}), (h, f) => (v(), g("div", hs, [
|
|
2340
|
+
i("div", ms, [
|
|
2378
2341
|
i("h3", {
|
|
2379
2342
|
id: "modal-title",
|
|
2380
2343
|
class: "vuefinder__image-preview__title",
|
|
2381
2344
|
title: s(n).modal.data.item.path
|
|
2382
|
-
}, y(s(n).modal.data.item.basename), 9,
|
|
2383
|
-
i("div",
|
|
2345
|
+
}, y(s(n).modal.data.item.basename), 9, gs),
|
|
2346
|
+
i("div", ws, [
|
|
2384
2347
|
d.value ? (v(), g("button", {
|
|
2385
2348
|
key: 0,
|
|
2386
2349
|
class: "vuefinder__image-preview__crop-button",
|
|
@@ -2393,8 +2356,8 @@ const ws = { class: "vuefinder__image-preview" }, ys = { class: "vuefinder__imag
|
|
|
2393
2356
|
}, y(d.value ? s(l)("Cancel") : s(l)("Edit")), 1)) : T("", !0)
|
|
2394
2357
|
])
|
|
2395
2358
|
]),
|
|
2396
|
-
i("div",
|
|
2397
|
-
d.value ? (v(), L(s(
|
|
2359
|
+
i("div", ys, [
|
|
2360
|
+
d.value ? (v(), L(s(Xn), {
|
|
2398
2361
|
key: 1,
|
|
2399
2362
|
ref_key: "cropperRef",
|
|
2400
2363
|
ref: D,
|
|
@@ -2409,18 +2372,18 @@ const ws = { class: "vuefinder__image-preview" }, ys = { class: "vuefinder__imag
|
|
|
2409
2372
|
style: {},
|
|
2410
2373
|
src: s(n).modal.data.item.previewUrl ?? s(n).adapter.getPreviewUrl({ path: s(n).modal.data.item.path }),
|
|
2411
2374
|
class: "vuefinder__image-preview__image h-full w-full"
|
|
2412
|
-
}, null, 8,
|
|
2375
|
+
}, null, 8, bs))
|
|
2413
2376
|
])
|
|
2414
2377
|
]));
|
|
2415
2378
|
}
|
|
2416
|
-
}),
|
|
2379
|
+
}), $s = {
|
|
2417
2380
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2418
2381
|
fill: "none",
|
|
2419
2382
|
stroke: "currentColor",
|
|
2420
2383
|
viewBox: "0 0 24 24"
|
|
2421
2384
|
};
|
|
2422
|
-
function
|
|
2423
|
-
return v(), g("svg",
|
|
2385
|
+
function xs(o, e) {
|
|
2386
|
+
return v(), g("svg", $s, [...e[0] || (e[0] = [
|
|
2424
2387
|
i("path", {
|
|
2425
2388
|
"stroke-linecap": "round",
|
|
2426
2389
|
"stroke-linejoin": "round",
|
|
@@ -2428,65 +2391,65 @@ function Fs(o, e) {
|
|
|
2428
2391
|
}, null, -1)
|
|
2429
2392
|
])]);
|
|
2430
2393
|
}
|
|
2431
|
-
const lt = { render:
|
|
2394
|
+
const lt = { render: xs }, Ss = { class: "vuefinder__default-preview" }, Cs = { class: "vuefinder__default-preview__content" }, Fs = { class: "vuefinder__default-preview__header" }, Ds = ["title"], Ps = { class: "vuefinder__default-preview__icon-container" }, Es = ["title"], Ms = /* @__PURE__ */ X({
|
|
2432
2395
|
__name: "Default",
|
|
2433
2396
|
emits: ["success"],
|
|
2434
2397
|
setup(o, { emit: e }) {
|
|
2435
2398
|
const t = J(), n = e;
|
|
2436
2399
|
return fe(() => {
|
|
2437
2400
|
n("success");
|
|
2438
|
-
}), (a, l) => (v(), g("div",
|
|
2439
|
-
i("div",
|
|
2440
|
-
i("div",
|
|
2401
|
+
}), (a, l) => (v(), g("div", Ss, [
|
|
2402
|
+
i("div", Cs, [
|
|
2403
|
+
i("div", Fs, [
|
|
2441
2404
|
i("h3", {
|
|
2442
2405
|
id: "modal-title",
|
|
2443
2406
|
class: "vuefinder__default-preview__title",
|
|
2444
2407
|
title: s(t).modal.data.item.path
|
|
2445
|
-
}, y(s(t).modal.data.item.basename), 9,
|
|
2408
|
+
}, y(s(t).modal.data.item.basename), 9, Ds)
|
|
2446
2409
|
]),
|
|
2447
|
-
i("div",
|
|
2410
|
+
i("div", Ps, [
|
|
2448
2411
|
O(s(lt), { class: "vuefinder__default-preview__file-icon" }),
|
|
2449
2412
|
i("div", {
|
|
2450
2413
|
id: "modal-title",
|
|
2451
2414
|
class: "vuefinder__default-preview__file-name",
|
|
2452
2415
|
title: s(t).modal.data.item.path
|
|
2453
|
-
}, y(s(t).modal.data.item.basename), 9,
|
|
2416
|
+
}, y(s(t).modal.data.item.basename), 9, Es)
|
|
2454
2417
|
])
|
|
2455
2418
|
])
|
|
2456
2419
|
]));
|
|
2457
2420
|
}
|
|
2458
|
-
}),
|
|
2421
|
+
}), Ts = { class: "vuefinder__video-preview" }, Is = ["title"], As = {
|
|
2459
2422
|
class: "vuefinder__video-preview__video",
|
|
2460
2423
|
preload: "metadata",
|
|
2461
2424
|
controls: ""
|
|
2462
|
-
},
|
|
2425
|
+
}, Os = ["src"], Bs = /* @__PURE__ */ X({
|
|
2463
2426
|
__name: "Video",
|
|
2464
2427
|
emits: ["success"],
|
|
2465
2428
|
setup(o, { emit: e }) {
|
|
2466
2429
|
const t = J(), n = e, a = () => t.adapter.getPreviewUrl({ path: t.modal.data.item.path });
|
|
2467
2430
|
return fe(() => {
|
|
2468
2431
|
n("success");
|
|
2469
|
-
}), (l, d) => (v(), g("div",
|
|
2432
|
+
}), (l, d) => (v(), g("div", Ts, [
|
|
2470
2433
|
i("h3", {
|
|
2471
2434
|
id: "modal-title",
|
|
2472
2435
|
class: "vuefinder__video-preview__title",
|
|
2473
2436
|
title: s(t).modal.data.item.path
|
|
2474
|
-
}, y(s(t).modal.data.item.basename), 9,
|
|
2437
|
+
}, y(s(t).modal.data.item.basename), 9, Is),
|
|
2475
2438
|
i("div", null, [
|
|
2476
|
-
i("video",
|
|
2439
|
+
i("video", As, [
|
|
2477
2440
|
i("source", {
|
|
2478
2441
|
src: a(),
|
|
2479
2442
|
type: "video/mp4"
|
|
2480
|
-
}, null, 8,
|
|
2443
|
+
}, null, 8, Os),
|
|
2481
2444
|
d[0] || (d[0] = de(" Your browser does not support the video tag. ", -1))
|
|
2482
2445
|
])
|
|
2483
2446
|
])
|
|
2484
2447
|
]));
|
|
2485
2448
|
}
|
|
2486
|
-
}),
|
|
2449
|
+
}), Ls = { class: "vuefinder__audio-preview" }, Vs = ["title"], zs = {
|
|
2487
2450
|
class: "vuefinder__audio-preview__audio",
|
|
2488
2451
|
controls: ""
|
|
2489
|
-
},
|
|
2452
|
+
}, Rs = ["src"], Ns = /* @__PURE__ */ X({
|
|
2490
2453
|
__name: "Audio",
|
|
2491
2454
|
emits: ["success"],
|
|
2492
2455
|
setup(o, { emit: e }) {
|
|
@@ -2496,24 +2459,24 @@ const lt = { render: Fs }, Ds = { class: "vuefinder__default-preview" }, Ps = {
|
|
|
2496
2459
|
};
|
|
2497
2460
|
return fe(() => {
|
|
2498
2461
|
t("success");
|
|
2499
|
-
}), (l, d) => (v(), g("div",
|
|
2462
|
+
}), (l, d) => (v(), g("div", Ls, [
|
|
2500
2463
|
i("h3", {
|
|
2501
2464
|
id: "modal-title",
|
|
2502
2465
|
class: "vuefinder__audio-preview__title",
|
|
2503
2466
|
title: s(n).modal.data.item.path
|
|
2504
|
-
}, y(s(n).modal.data.item.basename), 9,
|
|
2467
|
+
}, y(s(n).modal.data.item.basename), 9, Vs),
|
|
2505
2468
|
i("div", null, [
|
|
2506
|
-
i("audio",
|
|
2469
|
+
i("audio", zs, [
|
|
2507
2470
|
i("source", {
|
|
2508
2471
|
src: a(),
|
|
2509
2472
|
type: "audio/mpeg"
|
|
2510
|
-
}, null, 8,
|
|
2473
|
+
}, null, 8, Rs),
|
|
2511
2474
|
d[0] || (d[0] = de(" Your browser does not support the audio element. ", -1))
|
|
2512
2475
|
])
|
|
2513
2476
|
])
|
|
2514
2477
|
]));
|
|
2515
2478
|
}
|
|
2516
|
-
}),
|
|
2479
|
+
}), Us = { class: "vuefinder__pdf-preview" }, js = ["title"], Hs = ["data"], Ks = ["src"], qs = /* @__PURE__ */ X({
|
|
2517
2480
|
__name: "Pdf",
|
|
2518
2481
|
emits: ["success"],
|
|
2519
2482
|
setup(o, { emit: e }) {
|
|
@@ -2523,12 +2486,12 @@ const lt = { render: Fs }, Ds = { class: "vuefinder__default-preview" }, Ps = {
|
|
|
2523
2486
|
};
|
|
2524
2487
|
return fe(() => {
|
|
2525
2488
|
n("success");
|
|
2526
|
-
}), (l, d) => (v(), g("div",
|
|
2489
|
+
}), (l, d) => (v(), g("div", Us, [
|
|
2527
2490
|
i("h3", {
|
|
2528
2491
|
id: "modal-title",
|
|
2529
2492
|
class: "vuefinder__pdf-preview__title",
|
|
2530
2493
|
title: s(t).modal.data.item.path
|
|
2531
|
-
}, y(s(t).modal.data.item.basename), 9,
|
|
2494
|
+
}, y(s(t).modal.data.item.basename), 9, js),
|
|
2532
2495
|
i("div", null, [
|
|
2533
2496
|
i("object", {
|
|
2534
2497
|
class: "vuefinder__pdf-preview__object",
|
|
@@ -2542,25 +2505,25 @@ const lt = { render: Fs }, Ds = { class: "vuefinder__default-preview" }, Ps = {
|
|
|
2542
2505
|
src: a(),
|
|
2543
2506
|
width: "100%",
|
|
2544
2507
|
height: "100%"
|
|
2545
|
-
}, " Your browser does not support PDFs ", 8,
|
|
2546
|
-
], 8,
|
|
2508
|
+
}, " Your browser does not support PDFs ", 8, Ks)
|
|
2509
|
+
], 8, Hs)
|
|
2547
2510
|
])
|
|
2548
2511
|
]));
|
|
2549
2512
|
}
|
|
2550
2513
|
});
|
|
2551
|
-
function
|
|
2514
|
+
function Gs(o, e = null) {
|
|
2552
2515
|
return new Date(o * 1e3).toLocaleString(e ?? navigator.language ?? "en-US");
|
|
2553
2516
|
}
|
|
2554
|
-
const
|
|
2517
|
+
const Ws = {
|
|
2555
2518
|
key: 0,
|
|
2556
2519
|
class: "vuefinder__preview-modal__nav-overlay"
|
|
2557
|
-
},
|
|
2520
|
+
}, Ys = ["disabled", "title"], Qs = ["disabled", "title"], Xs = { class: "vuefinder__preview-modal__content" }, Js = { key: 0 }, Zs = { class: "vuefinder__preview-modal__loading" }, ei = {
|
|
2558
2521
|
key: 0,
|
|
2559
2522
|
class: "vuefinder__preview-modal__loading-indicator"
|
|
2560
|
-
},
|
|
2523
|
+
}, ti = { class: "vuefinder__preview-modal__details" }, ni = { class: "font-bold" }, oi = { class: "pl-2 font-bold" }, si = {
|
|
2561
2524
|
key: 0,
|
|
2562
2525
|
class: "vuefinder__preview-modal__note"
|
|
2563
|
-
},
|
|
2526
|
+
}, ii = ["download", "href"], bt = /* @__PURE__ */ X({
|
|
2564
2527
|
__name: "ModalPreview",
|
|
2565
2528
|
setup(o) {
|
|
2566
2529
|
const e = J(), { enabled: t } = Te(), { t: n } = e.i18n, a = M(!1), l = (f) => {
|
|
@@ -2624,7 +2587,7 @@ const Xs = {
|
|
|
2624
2587
|
class: "vf-btn vf-btn-primary",
|
|
2625
2588
|
download: s(e).adapter.getDownloadUrl({ path: s(e).modal.data.item.path }),
|
|
2626
2589
|
href: s(e).adapter.getDownloadUrl({ path: s(e).modal.data.item.path })
|
|
2627
|
-
}, y(s(n)("Download")), 9,
|
|
2590
|
+
}, y(s(n)("Download")), 9, ii)) : T("", !0)
|
|
2628
2591
|
]),
|
|
2629
2592
|
default: se(() => [
|
|
2630
2593
|
i("div", {
|
|
@@ -2632,7 +2595,7 @@ const Xs = {
|
|
|
2632
2595
|
tabindex: "0",
|
|
2633
2596
|
onKeydown: h
|
|
2634
2597
|
}, [
|
|
2635
|
-
s(e).modal.editMode ? T("", !0) : (v(), g("div",
|
|
2598
|
+
s(e).modal.editMode ? T("", !0) : (v(), g("div", Ws, [
|
|
2636
2599
|
i("button", {
|
|
2637
2600
|
disabled: !$.value,
|
|
2638
2601
|
class: "vuefinder__preview-modal__nav-side vuefinder__preview-modal__nav-side--left",
|
|
@@ -2648,7 +2611,7 @@ const Xs = {
|
|
|
2648
2611
|
}, [
|
|
2649
2612
|
i("polyline", { points: "15,18 9,12 15,6" })
|
|
2650
2613
|
], -1)
|
|
2651
|
-
])], 8,
|
|
2614
|
+
])], 8, Ys),
|
|
2652
2615
|
i("button", {
|
|
2653
2616
|
disabled: !D.value,
|
|
2654
2617
|
class: "vuefinder__preview-modal__nav-side vuefinder__preview-modal__nav-side--right",
|
|
@@ -2664,32 +2627,32 @@ const Xs = {
|
|
|
2664
2627
|
}, [
|
|
2665
2628
|
i("polyline", { points: "9,18 15,12 9,6" })
|
|
2666
2629
|
], -1)
|
|
2667
|
-
])], 8,
|
|
2630
|
+
])], 8, Qs)
|
|
2668
2631
|
])),
|
|
2669
|
-
i("div",
|
|
2670
|
-
s(c) ? (v(), g("div",
|
|
2671
|
-
r("text") ? (v(), L(
|
|
2632
|
+
i("div", Xs, [
|
|
2633
|
+
s(c) ? (v(), g("div", Js, [
|
|
2634
|
+
r("text") ? (v(), L(ps, {
|
|
2672
2635
|
key: `text-${_.value.path}`,
|
|
2673
2636
|
onSuccess: k[0] || (k[0] = (C) => a.value = !0)
|
|
2674
|
-
})) : r("image") ? (v(), L(
|
|
2637
|
+
})) : r("image") ? (v(), L(ks, {
|
|
2675
2638
|
key: `image-${_.value.path}`,
|
|
2676
2639
|
onSuccess: k[1] || (k[1] = (C) => a.value = !0)
|
|
2677
|
-
})) : r("video") ? (v(), L(
|
|
2640
|
+
})) : r("video") ? (v(), L(Bs, {
|
|
2678
2641
|
key: `video-${_.value.path}`,
|
|
2679
2642
|
onSuccess: k[2] || (k[2] = (C) => a.value = !0)
|
|
2680
|
-
})) : r("audio") ? (v(), L(
|
|
2643
|
+
})) : r("audio") ? (v(), L(Ns, {
|
|
2681
2644
|
key: `audio-${_.value.path}`,
|
|
2682
2645
|
onSuccess: k[3] || (k[3] = (C) => a.value = !0)
|
|
2683
|
-
})) : r("application/pdf") ? (v(), L(
|
|
2646
|
+
})) : r("application/pdf") ? (v(), L(qs, {
|
|
2684
2647
|
key: `pdf-${_.value.path}`,
|
|
2685
2648
|
onSuccess: k[4] || (k[4] = (C) => a.value = !0)
|
|
2686
|
-
})) : (v(), L(
|
|
2649
|
+
})) : (v(), L(Ms, {
|
|
2687
2650
|
key: `default-${_.value.path}`,
|
|
2688
2651
|
onSuccess: k[5] || (k[5] = (C) => a.value = !0)
|
|
2689
2652
|
}))
|
|
2690
2653
|
])) : T("", !0),
|
|
2691
|
-
i("div",
|
|
2692
|
-
a.value === !1 ? (v(), g("div",
|
|
2654
|
+
i("div", Zs, [
|
|
2655
|
+
a.value === !1 ? (v(), g("div", ei, [
|
|
2693
2656
|
k[9] || (k[9] = i("svg", {
|
|
2694
2657
|
class: "vuefinder__preview-modal__spinner",
|
|
2695
2658
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2715,17 +2678,17 @@ const Xs = {
|
|
|
2715
2678
|
])
|
|
2716
2679
|
])
|
|
2717
2680
|
], 32),
|
|
2718
|
-
i("div",
|
|
2681
|
+
i("div", ti, [
|
|
2719
2682
|
i("div", null, [
|
|
2720
|
-
i("span",
|
|
2683
|
+
i("span", ni, y(s(n)("File Size")) + ": ", 1),
|
|
2721
2684
|
de(y(s(e).filesize(s(e).modal.data.item.file_size)), 1)
|
|
2722
2685
|
]),
|
|
2723
2686
|
i("div", null, [
|
|
2724
|
-
i("span",
|
|
2725
|
-
de(" " + y(s(
|
|
2687
|
+
i("span", oi, y(s(n)("Last Modified")) + ": ", 1),
|
|
2688
|
+
de(" " + y(s(Gs)(s(e).modal.data.item.last_modified)), 1)
|
|
2726
2689
|
])
|
|
2727
2690
|
]),
|
|
2728
|
-
s(t)("download") ? (v(), g("div",
|
|
2691
|
+
s(t)("download") ? (v(), g("div", si, [
|
|
2729
2692
|
i("span", null, y(s(n)(
|
|
2730
2693
|
`Download doesn't work? You can try right-click "Download" button, select "Save link as...".`
|
|
2731
2694
|
)), 1)
|
|
@@ -2734,7 +2697,7 @@ const Xs = {
|
|
|
2734
2697
|
_: 1
|
|
2735
2698
|
}));
|
|
2736
2699
|
}
|
|
2737
|
-
}),
|
|
2700
|
+
}), ai = {
|
|
2738
2701
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2739
2702
|
width: "24",
|
|
2740
2703
|
height: "24",
|
|
@@ -2744,8 +2707,8 @@ const Xs = {
|
|
|
2744
2707
|
"stroke-linejoin": "round",
|
|
2745
2708
|
"stroke-width": "2"
|
|
2746
2709
|
};
|
|
2747
|
-
function
|
|
2748
|
-
return v(), g("svg",
|
|
2710
|
+
function ri(o, e) {
|
|
2711
|
+
return v(), g("svg", ai, [...e[0] || (e[0] = [
|
|
2749
2712
|
i("path", {
|
|
2750
2713
|
stroke: "none",
|
|
2751
2714
|
d: "M0 0h24v24H0z"
|
|
@@ -2753,14 +2716,14 @@ function ci(o, e) {
|
|
|
2753
2716
|
i("path", { d: "M13 19H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h4l3 3h7a2 2 0 0 1 2 2v4M16 22l5-5M21 21.5V17h-4.5" }, null, -1)
|
|
2754
2717
|
])]);
|
|
2755
2718
|
}
|
|
2756
|
-
const
|
|
2719
|
+
const li = { render: ri }, di = {
|
|
2757
2720
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2758
2721
|
fill: "none",
|
|
2759
2722
|
stroke: "currentColor",
|
|
2760
2723
|
viewBox: "0 0 24 24"
|
|
2761
2724
|
};
|
|
2762
|
-
function
|
|
2763
|
-
return v(), g("svg",
|
|
2725
|
+
function ci(o, e) {
|
|
2726
|
+
return v(), g("svg", di, [...e[0] || (e[0] = [
|
|
2764
2727
|
i("path", {
|
|
2765
2728
|
"stroke-linecap": "round",
|
|
2766
2729
|
"stroke-linejoin": "round",
|
|
@@ -2769,14 +2732,14 @@ function fi(o, e) {
|
|
|
2769
2732
|
}, null, -1)
|
|
2770
2733
|
])]);
|
|
2771
2734
|
}
|
|
2772
|
-
const Bt = { render:
|
|
2735
|
+
const Bt = { render: ci }, ui = {
|
|
2773
2736
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2774
2737
|
fill: "none",
|
|
2775
2738
|
stroke: "currentColor",
|
|
2776
2739
|
viewBox: "0 0 24 24"
|
|
2777
2740
|
};
|
|
2778
|
-
function
|
|
2779
|
-
return v(), g("svg",
|
|
2741
|
+
function vi(o, e) {
|
|
2742
|
+
return v(), g("svg", ui, [...e[0] || (e[0] = [
|
|
2780
2743
|
i("path", {
|
|
2781
2744
|
"stroke-linecap": "round",
|
|
2782
2745
|
"stroke-linejoin": "round",
|
|
@@ -2784,7 +2747,7 @@ function pi(o, e) {
|
|
|
2784
2747
|
}, null, -1)
|
|
2785
2748
|
])]);
|
|
2786
2749
|
}
|
|
2787
|
-
const Oe = { render:
|
|
2750
|
+
const Oe = { render: vi }, fi = {
|
|
2788
2751
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2789
2752
|
fill: "none",
|
|
2790
2753
|
stroke: "currentColor",
|
|
@@ -2793,8 +2756,8 @@ const Oe = { render: pi }, hi = {
|
|
|
2793
2756
|
"stroke-width": "2",
|
|
2794
2757
|
viewBox: "0 0 24 24"
|
|
2795
2758
|
};
|
|
2796
|
-
function
|
|
2797
|
-
return v(), g("svg",
|
|
2759
|
+
function _i(o, e) {
|
|
2760
|
+
return v(), g("svg", fi, [...e[0] || (e[0] = [
|
|
2798
2761
|
i("path", {
|
|
2799
2762
|
stroke: "none",
|
|
2800
2763
|
d: "M0 0h24v24H0z"
|
|
@@ -2802,7 +2765,7 @@ function mi(o, e) {
|
|
|
2802
2765
|
i("path", { d: "M12 5v14M5 12h14" }, null, -1)
|
|
2803
2766
|
])]);
|
|
2804
2767
|
}
|
|
2805
|
-
const kt = { render:
|
|
2768
|
+
const kt = { render: _i }, pi = {
|
|
2806
2769
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2807
2770
|
fill: "none",
|
|
2808
2771
|
stroke: "currentColor",
|
|
@@ -2811,8 +2774,8 @@ const kt = { render: mi }, gi = {
|
|
|
2811
2774
|
"stroke-width": "2",
|
|
2812
2775
|
viewBox: "0 0 24 24"
|
|
2813
2776
|
};
|
|
2814
|
-
function
|
|
2815
|
-
return v(), g("svg",
|
|
2777
|
+
function hi(o, e) {
|
|
2778
|
+
return v(), g("svg", pi, [...e[0] || (e[0] = [
|
|
2816
2779
|
i("path", {
|
|
2817
2780
|
stroke: "none",
|
|
2818
2781
|
d: "M0 0h24v24H0z"
|
|
@@ -2820,7 +2783,7 @@ function wi(o, e) {
|
|
|
2820
2783
|
i("path", { d: "M5 12h14" }, null, -1)
|
|
2821
2784
|
])]);
|
|
2822
2785
|
}
|
|
2823
|
-
const $t = { render:
|
|
2786
|
+
const $t = { render: hi }, mi = {
|
|
2824
2787
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2825
2788
|
fill: "none",
|
|
2826
2789
|
stroke: "currentColor",
|
|
@@ -2830,8 +2793,8 @@ const $t = { render: wi }, yi = {
|
|
|
2830
2793
|
class: "h-5 w-5",
|
|
2831
2794
|
viewBox: "0 0 24 24"
|
|
2832
2795
|
};
|
|
2833
|
-
function
|
|
2834
|
-
return v(), g("svg",
|
|
2796
|
+
function gi(o, e) {
|
|
2797
|
+
return v(), g("svg", mi, [...e[0] || (e[0] = [
|
|
2835
2798
|
i("path", {
|
|
2836
2799
|
stroke: "none",
|
|
2837
2800
|
d: "M0 0h24v24H0z"
|
|
@@ -2839,14 +2802,14 @@ function bi(o, e) {
|
|
|
2839
2802
|
i("path", { d: "m15 4.5-4 4L7 10l-1.5 1.5 7 7L14 17l1.5-4 4-4M9 15l-4.5 4.5M14.5 4 20 9.5" }, null, -1)
|
|
2840
2803
|
])]);
|
|
2841
2804
|
}
|
|
2842
|
-
const Lt = { render:
|
|
2805
|
+
const Lt = { render: gi }, wi = {
|
|
2843
2806
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2844
2807
|
fill: "none",
|
|
2845
2808
|
stroke: "currentColor",
|
|
2846
2809
|
viewBox: "0 0 24 24"
|
|
2847
2810
|
};
|
|
2848
|
-
function
|
|
2849
|
-
return v(), g("svg",
|
|
2811
|
+
function yi(o, e) {
|
|
2812
|
+
return v(), g("svg", wi, [...e[0] || (e[0] = [
|
|
2850
2813
|
i("path", {
|
|
2851
2814
|
"stroke-linecap": "round",
|
|
2852
2815
|
"stroke-linejoin": "round",
|
|
@@ -2854,15 +2817,15 @@ function $i(o, e) {
|
|
|
2854
2817
|
}, null, -1)
|
|
2855
2818
|
])]);
|
|
2856
2819
|
}
|
|
2857
|
-
const Vt = { render:
|
|
2820
|
+
const Vt = { render: yi }, bi = {
|
|
2858
2821
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2859
2822
|
fill: "none",
|
|
2860
2823
|
stroke: "currentColor",
|
|
2861
2824
|
"stroke-width": "1.5",
|
|
2862
2825
|
viewBox: "0 0 24 24"
|
|
2863
2826
|
};
|
|
2864
|
-
function
|
|
2865
|
-
return v(), g("svg",
|
|
2827
|
+
function ki(o, e) {
|
|
2828
|
+
return v(), g("svg", bi, [...e[0] || (e[0] = [
|
|
2866
2829
|
i("path", {
|
|
2867
2830
|
"stroke-linecap": "round",
|
|
2868
2831
|
"stroke-linejoin": "round",
|
|
@@ -2870,16 +2833,16 @@ function Si(o, e) {
|
|
|
2870
2833
|
}, null, -1)
|
|
2871
2834
|
])]);
|
|
2872
2835
|
}
|
|
2873
|
-
const zt = { render:
|
|
2836
|
+
const zt = { render: ki }, $i = { class: "vuefinder__modal-tree__folder-item" }, xi = { class: "vuefinder__modal-tree__folder-content" }, Si = {
|
|
2874
2837
|
key: 1,
|
|
2875
2838
|
class: "vuefinder__modal-tree__folder-spacer"
|
|
2876
|
-
},
|
|
2839
|
+
}, Ci = { class: "vuefinder__modal-tree__folder-text" }, Fi = {
|
|
2877
2840
|
key: 0,
|
|
2878
2841
|
class: "vuefinder__modal-tree__subfolders"
|
|
2879
|
-
},
|
|
2842
|
+
}, Di = {
|
|
2880
2843
|
key: 0,
|
|
2881
2844
|
class: "vuefinder__modal-tree__more-note"
|
|
2882
|
-
},
|
|
2845
|
+
}, Pi = 300, Ei = /* @__PURE__ */ X({
|
|
2883
2846
|
__name: "ModalTreeFolderItem",
|
|
2884
2847
|
props: {
|
|
2885
2848
|
folder: {},
|
|
@@ -2911,12 +2874,12 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
2911
2874
|
let F = 0;
|
|
2912
2875
|
const A = () => {
|
|
2913
2876
|
const B = Date.now();
|
|
2914
|
-
B - F <
|
|
2877
|
+
B - F < Pi ? C() : k(), F = B;
|
|
2915
2878
|
};
|
|
2916
2879
|
return (B, Y) => {
|
|
2917
|
-
const R =
|
|
2918
|
-
return v(), g("div",
|
|
2919
|
-
i("div",
|
|
2880
|
+
const R = cn("ModalTreeFolderItem", !0);
|
|
2881
|
+
return v(), g("div", $i, [
|
|
2882
|
+
i("div", xi, [
|
|
2920
2883
|
h.value ? (v(), g("div", {
|
|
2921
2884
|
key: 0,
|
|
2922
2885
|
class: "vuefinder__modal-tree__folder-toggle",
|
|
@@ -2929,7 +2892,7 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
2929
2892
|
key: 0,
|
|
2930
2893
|
class: "vuefinder__modal-tree__folder-toggle-icon"
|
|
2931
2894
|
}))
|
|
2932
|
-
])) : (v(), g("div",
|
|
2895
|
+
])) : (v(), g("div", Si)),
|
|
2933
2896
|
i("div", {
|
|
2934
2897
|
class: Z(["vuefinder__modal-tree__folder-link", {
|
|
2935
2898
|
"vuefinder__modal-tree__folder-link--selected": _.value,
|
|
@@ -2946,10 +2909,10 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
2946
2909
|
key: 0,
|
|
2947
2910
|
class: "vuefinder__modal-tree__folder-icon vuefinder__item-icon__folder"
|
|
2948
2911
|
})),
|
|
2949
|
-
i("span",
|
|
2912
|
+
i("span", Ci, y(o.folder.basename), 1)
|
|
2950
2913
|
], 34)
|
|
2951
2914
|
]),
|
|
2952
|
-
c.value && h.value ? (v(), g("div",
|
|
2915
|
+
c.value && h.value ? (v(), g("div", Fi, [
|
|
2953
2916
|
(v(!0), g(ve, null, he(u.value, (ne) => (v(), L(R, {
|
|
2954
2917
|
key: ne.path,
|
|
2955
2918
|
folder: ne,
|
|
@@ -2962,7 +2925,7 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
2962
2925
|
onSelectAndClose: Y[1] || (Y[1] = (U) => B.$emit("selectAndClose", U)),
|
|
2963
2926
|
onToggleFolder: Y[2] || (Y[2] = (U, ee) => B.$emit("toggleFolder", U, ee))
|
|
2964
2927
|
}, null, 8, ["folder", "storage", "model-value", "expanded-folders", "modal-tree-data", "current-path"]))), 128)),
|
|
2965
|
-
S.value ? (v(), g("div",
|
|
2928
|
+
S.value ? (v(), g("div", Di, [
|
|
2966
2929
|
i("div", {
|
|
2967
2930
|
class: "vuefinder__modal-tree__load-more",
|
|
2968
2931
|
onClick: p
|
|
@@ -2972,16 +2935,16 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
2972
2935
|
]);
|
|
2973
2936
|
};
|
|
2974
2937
|
}
|
|
2975
|
-
}),
|
|
2938
|
+
}), Mi = { class: "vuefinder__modal-tree" }, Ti = { class: "vuefinder__modal-tree__header" }, Ii = { class: "vuefinder__modal-tree__title" }, Ai = {
|
|
2976
2939
|
key: 0,
|
|
2977
2940
|
class: "vuefinder__modal-tree__section"
|
|
2978
|
-
},
|
|
2941
|
+
}, Oi = { class: "vuefinder__modal-tree__section-title" }, Bi = { class: "vuefinder__modal-tree__list" }, Li = ["onClick", "onDblclick", "onTouchend"], Vi = { class: "vuefinder__modal-tree__text" }, zi = { class: "vuefinder__modal-tree__text-storage" }, Ri = { class: "vuefinder__modal-tree__section-title" }, Ni = { class: "vuefinder__modal-tree__list" }, Ui = { class: "vuefinder__modal-tree__storage-item" }, ji = { class: "vuefinder__modal-tree__storage-content" }, Hi = ["onClick"], Ki = ["onClick", "onDblclick", "onTouchend"], qi = { class: "vuefinder__modal-tree__storage-text" }, Gi = {
|
|
2979
2942
|
key: 0,
|
|
2980
2943
|
class: "vuefinder__modal-tree__subfolders"
|
|
2981
|
-
},
|
|
2944
|
+
}, Wi = {
|
|
2982
2945
|
key: 0,
|
|
2983
2946
|
class: "vuefinder__modal-tree__more-note"
|
|
2984
|
-
},
|
|
2947
|
+
}, Yi = ["onClick"], tn = 300, Rt = /* @__PURE__ */ X({
|
|
2985
2948
|
__name: "ModalTreeSelector",
|
|
2986
2949
|
props: {
|
|
2987
2950
|
modelValue: {},
|
|
@@ -3052,10 +3015,10 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3052
3015
|
const U = (E) => {
|
|
3053
3016
|
if (!E) return;
|
|
3054
3017
|
const q = Date.now();
|
|
3055
|
-
q - ne <
|
|
3018
|
+
q - ne < tn ? B(E) : A(E), ne = q;
|
|
3056
3019
|
}, ee = (E) => {
|
|
3057
3020
|
const q = Date.now();
|
|
3058
|
-
q - ne <
|
|
3021
|
+
q - ne < tn ? R(E) : Y(E), ne = q;
|
|
3059
3022
|
};
|
|
3060
3023
|
return fe(() => {
|
|
3061
3024
|
w.value && st(w.value, {
|
|
@@ -3066,18 +3029,18 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3066
3029
|
theme: "vf-scrollbars-theme"
|
|
3067
3030
|
}
|
|
3068
3031
|
});
|
|
3069
|
-
}), (E, q) => (v(), g("div",
|
|
3070
|
-
i("div",
|
|
3071
|
-
i("div",
|
|
3032
|
+
}), (E, q) => (v(), g("div", Mi, [
|
|
3033
|
+
i("div", Ti, [
|
|
3034
|
+
i("div", Ii, y(s(n)("Select Target Folder")), 1)
|
|
3072
3035
|
]),
|
|
3073
3036
|
i("div", {
|
|
3074
3037
|
ref_key: "modalContentElement",
|
|
3075
3038
|
ref: w,
|
|
3076
3039
|
class: "vuefinder__modal-tree__content"
|
|
3077
3040
|
}, [
|
|
3078
|
-
o.showPinnedFolders && s(t).features.pinned && s(l).get("pinnedFolders").length ? (v(), g("div",
|
|
3079
|
-
i("div",
|
|
3080
|
-
i("div",
|
|
3041
|
+
o.showPinnedFolders && s(t).features.pinned && s(l).get("pinnedFolders").length ? (v(), g("div", Ai, [
|
|
3042
|
+
i("div", Oi, y(s(n)("Pinned Folders")), 1),
|
|
3043
|
+
i("div", Bi, [
|
|
3081
3044
|
(v(!0), g(ve, null, he(s(l).get("pinnedFolders"), (j) => (v(), g("div", {
|
|
3082
3045
|
key: j.path,
|
|
3083
3046
|
class: Z(["vuefinder__modal-tree__item", { "vuefinder__modal-tree__item--selected": o.modelValue?.path === j.path }]),
|
|
@@ -3086,20 +3049,20 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3086
3049
|
onTouchend: (z) => U(j)
|
|
3087
3050
|
}, [
|
|
3088
3051
|
O(s(Oe), { class: "vuefinder__modal-tree__icon vuefinder__item-icon__folder" }),
|
|
3089
|
-
i("div",
|
|
3090
|
-
i("div",
|
|
3052
|
+
i("div", Vi, y(j.basename), 1),
|
|
3053
|
+
i("div", zi, y(j.storage), 1),
|
|
3091
3054
|
O(s(Lt), { class: "vuefinder__modal-tree__icon vuefinder__modal-tree__icon--pin" })
|
|
3092
|
-
], 42,
|
|
3055
|
+
], 42, Li))), 128))
|
|
3093
3056
|
])
|
|
3094
3057
|
])) : T("", !0),
|
|
3095
|
-
i("div",
|
|
3058
|
+
i("div", Ri, y(s(n)("Storages")), 1),
|
|
3096
3059
|
(v(!0), g(ve, null, he(_.value, (j) => (v(), g("div", {
|
|
3097
3060
|
key: j,
|
|
3098
3061
|
class: "vuefinder__modal-tree__section"
|
|
3099
3062
|
}, [
|
|
3100
|
-
i("div",
|
|
3101
|
-
i("div",
|
|
3102
|
-
i("div",
|
|
3063
|
+
i("div", Ni, [
|
|
3064
|
+
i("div", Ui, [
|
|
3065
|
+
i("div", ji, [
|
|
3103
3066
|
i("div", {
|
|
3104
3067
|
class: "vuefinder__modal-tree__storage-toggle",
|
|
3105
3068
|
onClick: ae((z) => S(j, j + "://"), ["stop"])
|
|
@@ -3111,7 +3074,7 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3111
3074
|
key: 0,
|
|
3112
3075
|
class: "vuefinder__modal-tree__toggle-icon"
|
|
3113
3076
|
}))
|
|
3114
|
-
], 8,
|
|
3077
|
+
], 8, Hi),
|
|
3115
3078
|
i("div", {
|
|
3116
3079
|
class: Z(["vuefinder__modal-tree__storage-link", {
|
|
3117
3080
|
"vuefinder__modal-tree__storage-link--selected": o.modelValue?.path === j + "://"
|
|
@@ -3121,11 +3084,11 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3121
3084
|
onTouchend: (z) => ee(j)
|
|
3122
3085
|
}, [
|
|
3123
3086
|
O(s(Vt), { class: "vuefinder__modal-tree__storage-icon" }),
|
|
3124
|
-
i("span",
|
|
3125
|
-
], 42,
|
|
3087
|
+
i("span", qi, y(j), 1)
|
|
3088
|
+
], 42, Ki)
|
|
3126
3089
|
]),
|
|
3127
|
-
u.value[`${j}:${j}://`] ? (v(), g("div",
|
|
3128
|
-
(v(!0), g(ve, null, he(f(j + "://"), (z) => (v(), L(
|
|
3090
|
+
u.value[`${j}:${j}://`] ? (v(), g("div", Gi, [
|
|
3091
|
+
(v(!0), g(ve, null, he(f(j + "://"), (z) => (v(), L(Ei, {
|
|
3129
3092
|
key: z.path,
|
|
3130
3093
|
folder: z,
|
|
3131
3094
|
storage: j,
|
|
@@ -3137,11 +3100,11 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3137
3100
|
onSelectAndClose: B,
|
|
3138
3101
|
onToggleFolder: S
|
|
3139
3102
|
}, null, 8, ["folder", "storage", "model-value", "expanded-folders", "modal-tree-data", "current-path"]))), 128)),
|
|
3140
|
-
C(j + "://") ? (v(), g("div",
|
|
3103
|
+
C(j + "://") ? (v(), g("div", Wi, [
|
|
3141
3104
|
i("div", {
|
|
3142
3105
|
class: "vuefinder__modal-tree__load-more",
|
|
3143
3106
|
onClick: (z) => F(j + "://")
|
|
3144
|
-
}, y(s(n)("load more")), 9,
|
|
3107
|
+
}, y(s(n)("load more")), 9, Yi)
|
|
3145
3108
|
])) : T("", !0)
|
|
3146
3109
|
])) : T("", !0)
|
|
3147
3110
|
])
|
|
@@ -3150,7 +3113,7 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3150
3113
|
], 512)
|
|
3151
3114
|
]));
|
|
3152
3115
|
}
|
|
3153
|
-
}),
|
|
3116
|
+
}), Qi = ["title"], Pt = /* @__PURE__ */ X({
|
|
3154
3117
|
__name: "Message",
|
|
3155
3118
|
props: {
|
|
3156
3119
|
error: { type: Boolean }
|
|
@@ -3189,17 +3152,17 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3189
3152
|
d: "M6 18L18 6M6 6l12 12"
|
|
3190
3153
|
})
|
|
3191
3154
|
], -1)
|
|
3192
|
-
])], 8,
|
|
3155
|
+
])], 8, Qi)
|
|
3193
3156
|
], 2))
|
|
3194
3157
|
]));
|
|
3195
3158
|
}
|
|
3196
|
-
}),
|
|
3159
|
+
}), Xi = { class: "vuefinder__move-modal__content" }, Ji = { class: "vuefinder__move-modal__description" }, Zi = { class: "vuefinder__move-modal__files vf-scrollbar" }, ea = { class: "vuefinder__move-modal__file-name" }, ta = { class: "vuefinder__move-modal__target-title" }, na = { class: "vuefinder__move-modal__target-container" }, oa = { class: "vuefinder__move-modal__target-path" }, sa = { class: "vuefinder__move-modal__target-storage" }, ia = {
|
|
3197
3160
|
key: 0,
|
|
3198
3161
|
class: "vuefinder__move-modal__destination-folder"
|
|
3199
|
-
},
|
|
3162
|
+
}, aa = { class: "vuefinder__move-modal__target-badge" }, ra = {
|
|
3200
3163
|
key: 0,
|
|
3201
3164
|
class: "vuefinder__move-modal__options"
|
|
3202
|
-
},
|
|
3165
|
+
}, la = { class: "vuefinder__move-modal__checkbox-label" }, da = { class: "vuefinder__move-modal__checkbox-text" }, ca = ["disabled"], ua = { class: "vuefinder__move-modal__selected-items" }, $n = /* @__PURE__ */ X({
|
|
3203
3166
|
__name: "ModalTransfer",
|
|
3204
3167
|
props: {
|
|
3205
3168
|
copy: { type: Boolean }
|
|
@@ -3251,23 +3214,23 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3251
3214
|
class: "vf-btn vf-btn-primary",
|
|
3252
3215
|
disabled: h.value,
|
|
3253
3216
|
onClick: C
|
|
3254
|
-
}, y(D.value), 9,
|
|
3217
|
+
}, y(D.value), 9, ca),
|
|
3255
3218
|
i("button", {
|
|
3256
3219
|
type: "button",
|
|
3257
3220
|
class: "vf-btn vf-btn-secondary",
|
|
3258
3221
|
onClick: A[4] || (A[4] = (B) => s(e).modal.close())
|
|
3259
3222
|
}, y(s(n)("Cancel")), 1),
|
|
3260
|
-
i("div",
|
|
3223
|
+
i("div", ua, y(s(n)("%s item(s) selected.", l.value.length)), 1)
|
|
3261
3224
|
]),
|
|
3262
3225
|
default: se(() => [
|
|
3263
3226
|
i("div", null, [
|
|
3264
3227
|
O(Pe, {
|
|
3265
|
-
icon: c.value ? s(Bt) : s(
|
|
3228
|
+
icon: c.value ? s(Bt) : s(li),
|
|
3266
3229
|
title: u.value
|
|
3267
3230
|
}, null, 8, ["icon", "title"]),
|
|
3268
|
-
i("div",
|
|
3269
|
-
i("p",
|
|
3270
|
-
i("div",
|
|
3231
|
+
i("div", Xi, [
|
|
3232
|
+
i("p", Ji, y($.value), 1),
|
|
3233
|
+
i("div", Zi, [
|
|
3271
3234
|
(v(!0), g(ve, null, he(l.value, (B) => (v(), g("div", {
|
|
3272
3235
|
key: B.path,
|
|
3273
3236
|
class: "vuefinder__move-modal__file"
|
|
@@ -3281,20 +3244,20 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3281
3244
|
class: "vuefinder__move-modal__icon"
|
|
3282
3245
|
}))
|
|
3283
3246
|
]),
|
|
3284
|
-
i("div",
|
|
3247
|
+
i("div", ea, y(B.path), 1)
|
|
3285
3248
|
]))), 128))
|
|
3286
3249
|
]),
|
|
3287
|
-
i("h4",
|
|
3288
|
-
i("div",
|
|
3250
|
+
i("h4", ta, y(s(n)("Target Directory")), 1),
|
|
3251
|
+
i("div", na, [
|
|
3289
3252
|
i("div", {
|
|
3290
3253
|
class: "vuefinder__move-modal__target-display",
|
|
3291
3254
|
onClick: A[0] || (A[0] = (B) => m.value = !m.value)
|
|
3292
3255
|
}, [
|
|
3293
|
-
i("div",
|
|
3294
|
-
i("span",
|
|
3295
|
-
k().path ? (v(), g("span",
|
|
3256
|
+
i("div", oa, [
|
|
3257
|
+
i("span", sa, y(k().storage) + "://", 1),
|
|
3258
|
+
k().path ? (v(), g("span", ia, y(k().path), 1)) : T("", !0)
|
|
3296
3259
|
]),
|
|
3297
|
-
i("span",
|
|
3260
|
+
i("span", aa, y(s(n)("Browse")), 1)
|
|
3298
3261
|
])
|
|
3299
3262
|
]),
|
|
3300
3263
|
i("div", {
|
|
@@ -3313,8 +3276,8 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3313
3276
|
onSelectAndClose: p
|
|
3314
3277
|
}, null, 8, ["modelValue"])
|
|
3315
3278
|
], 2),
|
|
3316
|
-
s(t)("copy") && s(t)("move") ? (v(), g("div",
|
|
3317
|
-
i("label",
|
|
3279
|
+
s(t)("copy") && s(t)("move") ? (v(), g("div", ra, [
|
|
3280
|
+
i("label", la, [
|
|
3318
3281
|
pe(i("input", {
|
|
3319
3282
|
"onUpdate:modelValue": A[2] || (A[2] = (B) => c.value = B),
|
|
3320
3283
|
type: "checkbox",
|
|
@@ -3322,7 +3285,7 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3322
3285
|
}, null, 512), [
|
|
3323
3286
|
[mt, c.value]
|
|
3324
3287
|
]),
|
|
3325
|
-
i("span",
|
|
3288
|
+
i("span", da, y(s(n)("Create a copy instead of moving")), 1)
|
|
3326
3289
|
])
|
|
3327
3290
|
])) : T("", !0),
|
|
3328
3291
|
f.value ? (v(), L(Pt, {
|
|
@@ -3353,27 +3316,27 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3353
3316
|
}), Ye = /* @__PURE__ */ X({
|
|
3354
3317
|
__name: "ModalMove",
|
|
3355
3318
|
setup(o) {
|
|
3356
|
-
return (e, t) => (v(), L(
|
|
3319
|
+
return (e, t) => (v(), L($n, { copy: !1 }));
|
|
3357
3320
|
}
|
|
3358
3321
|
}), Nt = /* @__PURE__ */ X({
|
|
3359
3322
|
__name: "ModalCopy",
|
|
3360
3323
|
setup(o) {
|
|
3361
|
-
return (e, t) => (v(), L(
|
|
3324
|
+
return (e, t) => (v(), L($n, { copy: !0 }));
|
|
3362
3325
|
}
|
|
3363
|
-
}),
|
|
3326
|
+
}), va = (o, e = 0, t = !1) => {
|
|
3364
3327
|
let n;
|
|
3365
3328
|
return (...a) => {
|
|
3366
3329
|
t && !n && o(...a), clearTimeout(n), n = setTimeout(() => {
|
|
3367
3330
|
o(...a);
|
|
3368
3331
|
}, e);
|
|
3369
3332
|
};
|
|
3370
|
-
},
|
|
3333
|
+
}, xn = (o, e, t) => {
|
|
3371
3334
|
const n = M(o);
|
|
3372
|
-
return
|
|
3335
|
+
return Rn((a, l) => ({
|
|
3373
3336
|
get() {
|
|
3374
3337
|
return a(), n.value;
|
|
3375
3338
|
},
|
|
3376
|
-
set:
|
|
3339
|
+
set: va(
|
|
3377
3340
|
(d) => {
|
|
3378
3341
|
n.value = d, l();
|
|
3379
3342
|
},
|
|
@@ -3381,24 +3344,24 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3381
3344
|
!1
|
|
3382
3345
|
)
|
|
3383
3346
|
}));
|
|
3384
|
-
},
|
|
3347
|
+
}, fa = {
|
|
3385
3348
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3386
3349
|
fill: "currentColor",
|
|
3387
3350
|
viewBox: "0 0 20 20"
|
|
3388
3351
|
};
|
|
3389
|
-
function
|
|
3390
|
-
return v(), g("svg",
|
|
3352
|
+
function _a(o, e) {
|
|
3353
|
+
return v(), g("svg", fa, [...e[0] || (e[0] = [
|
|
3391
3354
|
i("path", { d: "m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607" }, null, -1)
|
|
3392
3355
|
])]);
|
|
3393
3356
|
}
|
|
3394
|
-
const Ut = { render:
|
|
3357
|
+
const Ut = { render: _a }, pa = {
|
|
3395
3358
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3396
3359
|
fill: "none",
|
|
3397
3360
|
class: "animate-spin p-0.5 h-5 w-5 text-white ml-auto",
|
|
3398
3361
|
viewBox: "0 0 24 24"
|
|
3399
3362
|
};
|
|
3400
|
-
function
|
|
3401
|
-
return v(), g("svg",
|
|
3363
|
+
function ha(o, e) {
|
|
3364
|
+
return v(), g("svg", pa, [...e[0] || (e[0] = [
|
|
3402
3365
|
i("circle", {
|
|
3403
3366
|
cx: "12",
|
|
3404
3367
|
cy: "12",
|
|
@@ -3414,10 +3377,10 @@ function wa(o, e) {
|
|
|
3414
3377
|
}, null, -1)
|
|
3415
3378
|
])]);
|
|
3416
3379
|
}
|
|
3417
|
-
const xt = { render:
|
|
3380
|
+
const xt = { render: ha }, ma = { class: "vuefinder__search-modal__search-input" }, ga = ["value", "placeholder", "disabled"], wa = {
|
|
3418
3381
|
key: 0,
|
|
3419
3382
|
class: "vuefinder__search-modal__loading"
|
|
3420
|
-
},
|
|
3383
|
+
}, ya = /* @__PURE__ */ X({
|
|
3421
3384
|
name: "SearchInput",
|
|
3422
3385
|
__name: "SearchInput",
|
|
3423
3386
|
props: {
|
|
@@ -3437,7 +3400,7 @@ const xt = { render: wa }, ya = { class: "vuefinder__search-modal__search-input"
|
|
|
3437
3400
|
focus: () => {
|
|
3438
3401
|
d.value && d.value.focus();
|
|
3439
3402
|
}
|
|
3440
|
-
}), (_, m) => (v(), g("div",
|
|
3403
|
+
}), (_, m) => (v(), g("div", ma, [
|
|
3441
3404
|
O(s(Ut), { class: "vuefinder__search-modal__search-icon" }),
|
|
3442
3405
|
i("input", {
|
|
3443
3406
|
ref_key: "searchInput",
|
|
@@ -3451,21 +3414,21 @@ const xt = { render: wa }, ya = { class: "vuefinder__search-modal__search-input"
|
|
|
3451
3414
|
onKeyup: m[0] || (m[0] = ae(() => {
|
|
3452
3415
|
}, ["stop"])),
|
|
3453
3416
|
onInput: r
|
|
3454
|
-
}, null, 40,
|
|
3455
|
-
o.isSearching ? (v(), g("div",
|
|
3417
|
+
}, null, 40, ga),
|
|
3418
|
+
o.isSearching ? (v(), g("div", wa, [
|
|
3456
3419
|
O(s(xt), { class: "vuefinder__search-modal__loading-icon" })
|
|
3457
3420
|
])) : T("", !0)
|
|
3458
3421
|
]));
|
|
3459
3422
|
}
|
|
3460
|
-
}),
|
|
3423
|
+
}), ba = {
|
|
3461
3424
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3462
3425
|
fill: "none",
|
|
3463
3426
|
stroke: "currentColor",
|
|
3464
3427
|
"stroke-width": "1.5",
|
|
3465
3428
|
viewBox: "0 0 24 24"
|
|
3466
3429
|
};
|
|
3467
|
-
function
|
|
3468
|
-
return v(), g("svg",
|
|
3430
|
+
function ka(o, e) {
|
|
3431
|
+
return v(), g("svg", ba, [...e[0] || (e[0] = [
|
|
3469
3432
|
i("path", {
|
|
3470
3433
|
"stroke-linecap": "round",
|
|
3471
3434
|
"stroke-linejoin": "round",
|
|
@@ -3478,19 +3441,19 @@ function Sa(o, e) {
|
|
|
3478
3441
|
}, null, -1)
|
|
3479
3442
|
])]);
|
|
3480
3443
|
}
|
|
3481
|
-
const
|
|
3444
|
+
const Sn = { render: ka }, $a = ["disabled", "title"], xa = ["data-theme"], Sa = { class: "vuefinder__search-modal__dropdown-content" }, Ca = { class: "vuefinder__search-modal__dropdown-section" }, Fa = { class: "vuefinder__search-modal__dropdown-title" }, Da = { class: "vuefinder__search-modal__dropdown-options" }, Pa = {
|
|
3482
3445
|
key: 0,
|
|
3483
3446
|
class: "vuefinder__search-modal__dropdown-option-check"
|
|
3484
|
-
},
|
|
3447
|
+
}, Ea = {
|
|
3485
3448
|
key: 0,
|
|
3486
3449
|
class: "vuefinder__search-modal__dropdown-option-check"
|
|
3487
|
-
},
|
|
3450
|
+
}, Ma = {
|
|
3488
3451
|
key: 0,
|
|
3489
3452
|
class: "vuefinder__search-modal__dropdown-option-check"
|
|
3490
|
-
},
|
|
3453
|
+
}, Ta = {
|
|
3491
3454
|
key: 0,
|
|
3492
3455
|
class: "vuefinder__search-modal__dropdown-option-check"
|
|
3493
|
-
},
|
|
3456
|
+
}, Ia = /* @__PURE__ */ X({
|
|
3494
3457
|
name: "SearchOptionsDropdown",
|
|
3495
3458
|
__name: "SearchOptionsDropdown",
|
|
3496
3459
|
props: {
|
|
@@ -3599,8 +3562,8 @@ const Fn = { render: Sa }, Ca = ["disabled", "title"], Fa = ["data-theme"], Da =
|
|
|
3599
3562
|
title: s(d)("Search Options"),
|
|
3600
3563
|
onClick: ae(w, ["stop"])
|
|
3601
3564
|
}, [
|
|
3602
|
-
O(s(
|
|
3603
|
-
], 10,
|
|
3565
|
+
O(s(Sn), { class: "vuefinder__search-modal__dropdown-icon" })
|
|
3566
|
+
], 10, $a),
|
|
3604
3567
|
(v(), L(gt, { to: "body" }, [
|
|
3605
3568
|
o.visible ? (v(), g("div", {
|
|
3606
3569
|
key: 0,
|
|
@@ -3613,10 +3576,10 @@ const Fn = { render: Sa }, Ca = ["disabled", "title"], Fa = ["data-theme"], Da =
|
|
|
3613
3576
|
}, ["stop"])),
|
|
3614
3577
|
onKeydown: $
|
|
3615
3578
|
}, [
|
|
3616
|
-
i("div",
|
|
3617
|
-
i("div",
|
|
3618
|
-
i("div",
|
|
3619
|
-
i("div",
|
|
3579
|
+
i("div", Sa, [
|
|
3580
|
+
i("div", Ca, [
|
|
3581
|
+
i("div", Fa, y(s(d)("File Size")), 1),
|
|
3582
|
+
i("div", Da, [
|
|
3620
3583
|
i("div", {
|
|
3621
3584
|
class: Z(["vuefinder__search-modal__dropdown-option", {
|
|
3622
3585
|
"vuefinder__search-modal__dropdown-option--selected": o.sizeFilter === "all"
|
|
@@ -3624,7 +3587,7 @@ const Fn = { render: Sa }, Ca = ["disabled", "title"], Fa = ["data-theme"], Da =
|
|
|
3624
3587
|
onClick: p[0] || (p[0] = ae((h) => m("size-all"), ["stop"]))
|
|
3625
3588
|
}, [
|
|
3626
3589
|
i("span", null, y(s(d)("All Files")), 1),
|
|
3627
|
-
o.sizeFilter === "all" ? (v(), g("div",
|
|
3590
|
+
o.sizeFilter === "all" ? (v(), g("div", Pa, [...p[5] || (p[5] = [
|
|
3628
3591
|
i("svg", {
|
|
3629
3592
|
viewBox: "0 0 16 16",
|
|
3630
3593
|
fill: "currentColor"
|
|
@@ -3640,7 +3603,7 @@ const Fn = { render: Sa }, Ca = ["disabled", "title"], Fa = ["data-theme"], Da =
|
|
|
3640
3603
|
onClick: p[1] || (p[1] = ae((h) => m("size-small"), ["stop"]))
|
|
3641
3604
|
}, [
|
|
3642
3605
|
i("span", null, y(s(d)("Small (< 1MB)")), 1),
|
|
3643
|
-
o.sizeFilter === "small" ? (v(), g("div",
|
|
3606
|
+
o.sizeFilter === "small" ? (v(), g("div", Ea, [...p[6] || (p[6] = [
|
|
3644
3607
|
i("svg", {
|
|
3645
3608
|
viewBox: "0 0 16 16",
|
|
3646
3609
|
fill: "currentColor"
|
|
@@ -3656,7 +3619,7 @@ const Fn = { render: Sa }, Ca = ["disabled", "title"], Fa = ["data-theme"], Da =
|
|
|
3656
3619
|
onClick: p[2] || (p[2] = ae((h) => m("size-medium"), ["stop"]))
|
|
3657
3620
|
}, [
|
|
3658
3621
|
i("span", null, y(s(d)("Medium (1-10MB)")), 1),
|
|
3659
|
-
o.sizeFilter === "medium" ? (v(), g("div",
|
|
3622
|
+
o.sizeFilter === "medium" ? (v(), g("div", Ma, [...p[7] || (p[7] = [
|
|
3660
3623
|
i("svg", {
|
|
3661
3624
|
viewBox: "0 0 16 16",
|
|
3662
3625
|
fill: "currentColor"
|
|
@@ -3672,7 +3635,7 @@ const Fn = { render: Sa }, Ca = ["disabled", "title"], Fa = ["data-theme"], Da =
|
|
|
3672
3635
|
onClick: p[3] || (p[3] = ae((h) => m("size-large"), ["stop"]))
|
|
3673
3636
|
}, [
|
|
3674
3637
|
i("span", null, y(s(d)("Large (> 10MB)")), 1),
|
|
3675
|
-
o.sizeFilter === "large" ? (v(), g("div",
|
|
3638
|
+
o.sizeFilter === "large" ? (v(), g("div", Ta, [...p[8] || (p[8] = [
|
|
3676
3639
|
i("svg", {
|
|
3677
3640
|
viewBox: "0 0 16 16",
|
|
3678
3641
|
fill: "currentColor"
|
|
@@ -3684,12 +3647,12 @@ const Fn = { render: Sa }, Ca = ["disabled", "title"], Fa = ["data-theme"], Da =
|
|
|
3684
3647
|
])
|
|
3685
3648
|
])
|
|
3686
3649
|
])
|
|
3687
|
-
], 40,
|
|
3650
|
+
], 40, xa)) : T("", !0)
|
|
3688
3651
|
]))
|
|
3689
3652
|
], 64));
|
|
3690
3653
|
}
|
|
3691
3654
|
});
|
|
3692
|
-
function
|
|
3655
|
+
function Cn(o, e = 40) {
|
|
3693
3656
|
const t = o.match(/^([^:]+:\/\/)(.*)$/);
|
|
3694
3657
|
if (!t) return o;
|
|
3695
3658
|
const n = t[1], a = t[2] ?? "", l = a.split("/").filter(Boolean), d = l.pop();
|
|
@@ -3699,7 +3662,7 @@ function Dn(o, e = 40) {
|
|
|
3699
3662
|
const c = d.split(/\.(?=[^\.]+$)/), _ = c[0] ?? "", m = c[1] ?? "", w = _.length > 10 ? `${_.slice(0, 6)}...${_.slice(-5)}` : _, u = m ? `${w}.${m}` : w;
|
|
3700
3663
|
return r = `${n}${l.join("/")}${l.length ? "/" : ""}${u}`, r.length > e && (r = `${n}.../${u}`), r;
|
|
3701
3664
|
}
|
|
3702
|
-
async function
|
|
3665
|
+
async function Fn(o) {
|
|
3703
3666
|
try {
|
|
3704
3667
|
await navigator.clipboard.writeText(o);
|
|
3705
3668
|
} catch {
|
|
@@ -3708,25 +3671,25 @@ async function Pn(o) {
|
|
|
3708
3671
|
}
|
|
3709
3672
|
}
|
|
3710
3673
|
async function dt(o) {
|
|
3711
|
-
await
|
|
3674
|
+
await Fn(o);
|
|
3712
3675
|
}
|
|
3713
|
-
async function
|
|
3714
|
-
await
|
|
3676
|
+
async function Aa(o) {
|
|
3677
|
+
await Fn(o);
|
|
3715
3678
|
}
|
|
3716
|
-
const
|
|
3679
|
+
const Oa = {
|
|
3717
3680
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3718
3681
|
fill: "currentColor",
|
|
3719
3682
|
viewBox: "0 0 448 512"
|
|
3720
3683
|
};
|
|
3721
|
-
function
|
|
3722
|
-
return v(), g("svg",
|
|
3684
|
+
function Ba(o, e) {
|
|
3685
|
+
return v(), g("svg", Oa, [...e[0] || (e[0] = [
|
|
3723
3686
|
i("path", { d: "M8 256a56 56 0 1 1 112 0 56 56 0 1 1-112 0m160 0a56 56 0 1 1 112 0 56 56 0 1 1-112 0m216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112" }, null, -1)
|
|
3724
3687
|
])]);
|
|
3725
3688
|
}
|
|
3726
|
-
const
|
|
3689
|
+
const Dn = { render: Ba }, La = ["title"], Va = { class: "vuefinder__search-modal__result-icon" }, za = { class: "vuefinder__search-modal__result-content" }, Ra = { class: "vuefinder__search-modal__result-name" }, Na = {
|
|
3727
3690
|
key: 0,
|
|
3728
3691
|
class: "vuefinder__search-modal__result-size"
|
|
3729
|
-
},
|
|
3692
|
+
}, Ua = ["title"], ja = ["title"], Ha = ["data-item-dropdown", "data-theme"], Ka = { class: "vuefinder__search-modal__item-dropdown-content" }, qa = /* @__PURE__ */ X({
|
|
3730
3693
|
name: "SearchResultItem",
|
|
3731
3694
|
__name: "SearchResultItem",
|
|
3732
3695
|
props: {
|
|
@@ -3837,13 +3800,13 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
3837
3800
|
title: o.item.basename,
|
|
3838
3801
|
onClick: f[9] || (f[9] = (k) => n("select", o.index))
|
|
3839
3802
|
}, [
|
|
3840
|
-
i("div",
|
|
3803
|
+
i("div", Va, [
|
|
3841
3804
|
o.item.type === "dir" ? (v(), L(s(Oe), { key: 0 })) : (v(), L(s(lt), { key: 1 }))
|
|
3842
3805
|
]),
|
|
3843
|
-
i("div",
|
|
3844
|
-
i("div",
|
|
3806
|
+
i("div", za, [
|
|
3807
|
+
i("div", Ra, [
|
|
3845
3808
|
de(y(o.item.basename) + " ", 1),
|
|
3846
|
-
_(o.item) ? (v(), g("span",
|
|
3809
|
+
_(o.item) ? (v(), g("span", Na, y(_(o.item)), 1)) : T("", !0)
|
|
3847
3810
|
]),
|
|
3848
3811
|
i("div", {
|
|
3849
3812
|
class: "vuefinder__search-modal__result-path",
|
|
@@ -3851,7 +3814,7 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
3851
3814
|
onClick: f[0] || (f[0] = ae((k) => {
|
|
3852
3815
|
n("select", o.index), n("togglePathExpansion", o.item.path);
|
|
3853
3816
|
}, ["stop"]))
|
|
3854
|
-
}, y(c(o.item.path) ? o.item.path : s(
|
|
3817
|
+
}, y(c(o.item.path) ? o.item.path : s(Cn)(o.item.path)), 9, Ua)
|
|
3855
3818
|
]),
|
|
3856
3819
|
i("button", {
|
|
3857
3820
|
ref_key: "buttonElementRef",
|
|
@@ -3862,8 +3825,8 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
3862
3825
|
n("selectWithDropdown", o.index), m(o.item.path, k);
|
|
3863
3826
|
})
|
|
3864
3827
|
}, [
|
|
3865
|
-
O(s(
|
|
3866
|
-
], 8,
|
|
3828
|
+
O(s(Dn), { class: "vuefinder__search-modal__result-actions-icon" })
|
|
3829
|
+
], 8, ja),
|
|
3867
3830
|
(v(), L(gt, { to: "body" }, [
|
|
3868
3831
|
o.activeDropdown === o.item.path ? (v(), g("div", {
|
|
3869
3832
|
key: 0,
|
|
@@ -3875,7 +3838,7 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
3875
3838
|
}, ["stop"])),
|
|
3876
3839
|
onKeydown: p
|
|
3877
3840
|
}, [
|
|
3878
|
-
i("div",
|
|
3841
|
+
i("div", Ka, [
|
|
3879
3842
|
i("div", {
|
|
3880
3843
|
class: Z(["vuefinder__search-modal__item-dropdown-option", {
|
|
3881
3844
|
"vuefinder__search-modal__item-dropdown-option--selected": o.selectedItemDropdownOption === `copy-path-${o.item.path}`
|
|
@@ -3913,20 +3876,20 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
3913
3876
|
i("span", null, y(s(l)("Preview")), 1)
|
|
3914
3877
|
], 34)
|
|
3915
3878
|
])
|
|
3916
|
-
], 40,
|
|
3879
|
+
], 40, Ha)) : T("", !0)
|
|
3917
3880
|
]))
|
|
3918
|
-
], 10,
|
|
3881
|
+
], 10, La));
|
|
3919
3882
|
}
|
|
3920
|
-
}),
|
|
3883
|
+
}), Ga = {
|
|
3921
3884
|
key: 0,
|
|
3922
3885
|
class: "vuefinder__search-modal__searching"
|
|
3923
|
-
},
|
|
3886
|
+
}, Wa = { class: "vuefinder__search-modal__loading-icon" }, Ya = {
|
|
3924
3887
|
key: 1,
|
|
3925
3888
|
class: "vuefinder__search-modal__no-results"
|
|
3926
|
-
},
|
|
3889
|
+
}, Qa = {
|
|
3927
3890
|
key: 2,
|
|
3928
3891
|
class: "vuefinder__search-modal__results-list"
|
|
3929
|
-
},
|
|
3892
|
+
}, Xa = { class: "vuefinder__search-modal__results-header" }, He = 60, nn = 5, Ja = /* @__PURE__ */ X({
|
|
3930
3893
|
name: "SearchResultsList",
|
|
3931
3894
|
__name: "SearchResultsList",
|
|
3932
3895
|
props: {
|
|
@@ -3941,9 +3904,9 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
3941
3904
|
emits: ["selectResultItem", "selectResultItemWithDropdown", "togglePathExpansion", "toggleItemDropdown", "update:selectedItemDropdownOption", "copyPath", "openContainingFolder", "preview"],
|
|
3942
3905
|
setup(o, { expose: e, emit: t }) {
|
|
3943
3906
|
const n = o, a = t, l = J(), { t: d } = l.i18n, r = Ge("scrollableContainer"), c = N(() => n.searchResults.length > 0), _ = N(() => n.searchResults.length), m = M(0), w = M(600), u = N(() => n.searchResults.length * He), $ = N(() => {
|
|
3944
|
-
const k = Math.max(0, Math.floor(m.value / He) -
|
|
3907
|
+
const k = Math.max(0, Math.floor(m.value / He) - nn), C = Math.min(
|
|
3945
3908
|
n.searchResults.length,
|
|
3946
|
-
Math.ceil((m.value + w.value) / He) +
|
|
3909
|
+
Math.ceil((m.value + w.value) / He) + nn
|
|
3947
3910
|
);
|
|
3948
3911
|
return { start: k, end: C };
|
|
3949
3912
|
}), D = N(() => {
|
|
@@ -3987,13 +3950,13 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
3987
3950
|
}), (k, C) => (v(), g("div", {
|
|
3988
3951
|
class: Z(["vuefinder__search-modal__results", { "vuefinder__search-modal__results--enter": o.resultsEnter }])
|
|
3989
3952
|
}, [
|
|
3990
|
-
o.isSearching ? (v(), g("div",
|
|
3991
|
-
i("div",
|
|
3953
|
+
o.isSearching ? (v(), g("div", Ga, [
|
|
3954
|
+
i("div", Wa, [
|
|
3992
3955
|
O(s(xt), { class: "vuefinder__search-modal__loading-icon" })
|
|
3993
3956
|
]),
|
|
3994
3957
|
i("span", null, y(s(d)("Searching...")), 1)
|
|
3995
|
-
])) : c.value ? (v(), g("div",
|
|
3996
|
-
i("div",
|
|
3958
|
+
])) : c.value ? (v(), g("div", Qa, [
|
|
3959
|
+
i("div", Xa, [
|
|
3997
3960
|
i("span", null, y(s(d)("Found %s results", _.value)), 1)
|
|
3998
3961
|
]),
|
|
3999
3962
|
i("div", {
|
|
@@ -4016,7 +3979,7 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
4016
3979
|
height: `${He}px`
|
|
4017
3980
|
})
|
|
4018
3981
|
}, [
|
|
4019
|
-
O(
|
|
3982
|
+
O(qa, {
|
|
4020
3983
|
item: F.item,
|
|
4021
3984
|
index: F.index,
|
|
4022
3985
|
"selected-index": o.selectedIndex,
|
|
@@ -4035,22 +3998,22 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
4035
3998
|
], 4))), 128))
|
|
4036
3999
|
], 4)
|
|
4037
4000
|
], 544)
|
|
4038
|
-
])) : (v(), g("div",
|
|
4001
|
+
])) : (v(), g("div", Ya, [
|
|
4039
4002
|
i("span", null, y(s(d)("No results found")), 1)
|
|
4040
4003
|
]))
|
|
4041
4004
|
], 2));
|
|
4042
4005
|
}
|
|
4043
|
-
}),
|
|
4006
|
+
}), Za = { class: "vuefinder__search-modal" }, er = { class: "vuefinder__search-modal__content" }, tr = { class: "vuefinder__search-modal__search-bar" }, nr = { class: "vuefinder__search-modal__search-location" }, or = ["title"], sr = ["disabled"], ir = {
|
|
4044
4007
|
key: 0,
|
|
4045
4008
|
class: "vuefinder__search-modal__folder-selector"
|
|
4046
|
-
},
|
|
4009
|
+
}, ar = { class: "vuefinder__search-modal__folder-selector-content" }, rr = {
|
|
4047
4010
|
key: 1,
|
|
4048
4011
|
class: "vuefinder__search-modal__instructions"
|
|
4049
|
-
},
|
|
4012
|
+
}, lr = { class: "vuefinder__search-modal__instructions-text" }, jt = /* @__PURE__ */ X({
|
|
4050
4013
|
name: "ModalSearch",
|
|
4051
4014
|
__name: "ModalSearch",
|
|
4052
4015
|
setup(o) {
|
|
4053
|
-
const e = J(), { t } = e.i18n, n = e.fs, a = M(null), l = M(null), d = M(null), r =
|
|
4016
|
+
const e = J(), { t } = e.i18n, n = e.fs, a = M(null), l = M(null), d = M(null), r = xn("", 300), c = M([]), _ = M(!1), m = M(-1), w = M(!1), u = M(!1), $ = M(null), D = M("all"), S = M(!1), p = M(`size-${D.value}`), h = M(null), f = M(/* @__PURE__ */ new Set()), k = M(null), C = W(n.path), F = (b) => {
|
|
4054
4017
|
f.value.has(b) ? f.value.delete(b) : f.value.add(b);
|
|
4055
4018
|
}, A = (b, P) => {
|
|
4056
4019
|
P && typeof P.stopPropagation == "function" && P.stopPropagation(), k.value === b ? k.value = null : k.value = b;
|
|
@@ -4122,22 +4085,22 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
4122
4085
|
};
|
|
4123
4086
|
return (b, P) => (v(), L(Fe, { class: "vuefinder__search-modal-layout" }, {
|
|
4124
4087
|
default: se(() => [
|
|
4125
|
-
i("div",
|
|
4088
|
+
i("div", Za, [
|
|
4126
4089
|
O(Pe, {
|
|
4127
4090
|
icon: s(Ut),
|
|
4128
4091
|
title: s(t)("Search files")
|
|
4129
4092
|
}, null, 8, ["icon", "title"]),
|
|
4130
|
-
i("div",
|
|
4131
|
-
i("div",
|
|
4132
|
-
O(
|
|
4093
|
+
i("div", er, [
|
|
4094
|
+
i("div", tr, [
|
|
4095
|
+
O(ya, {
|
|
4133
4096
|
ref_key: "searchInputRef",
|
|
4134
4097
|
ref: a,
|
|
4135
4098
|
modelValue: s(r),
|
|
4136
|
-
"onUpdate:modelValue": P[0] || (P[0] = (I) =>
|
|
4099
|
+
"onUpdate:modelValue": P[0] || (P[0] = (I) => Nn(r) ? r.value = I : null),
|
|
4137
4100
|
"is-searching": _.value,
|
|
4138
4101
|
disabled: u.value
|
|
4139
4102
|
}, null, 8, ["modelValue", "is-searching", "disabled"]),
|
|
4140
|
-
O(
|
|
4103
|
+
O(Ia, {
|
|
4141
4104
|
ref_key: "searchOptionsDropdownRef",
|
|
4142
4105
|
ref: l,
|
|
4143
4106
|
visible: w.value,
|
|
@@ -4154,7 +4117,7 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
4154
4117
|
onClick: P[7] || (P[7] = ae(() => {
|
|
4155
4118
|
}, ["stop"]))
|
|
4156
4119
|
}, [
|
|
4157
|
-
i("div",
|
|
4120
|
+
i("div", nr, [
|
|
4158
4121
|
i("button", {
|
|
4159
4122
|
class: Z(["vuefinder__search-modal__location-btn", { "vuefinder__search-modal__location-btn--open": u.value }]),
|
|
4160
4123
|
onClick: ae(q, ["stop"])
|
|
@@ -4163,7 +4126,7 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
4163
4126
|
i("span", {
|
|
4164
4127
|
class: "vuefinder__search-modal__location-text",
|
|
4165
4128
|
title: $.value?.path || s(C).path
|
|
4166
|
-
}, y(s(
|
|
4129
|
+
}, y(s(Cn)($.value?.path || s(C).path)), 9, or),
|
|
4167
4130
|
P[10] || (P[10] = i("svg", {
|
|
4168
4131
|
class: "vuefinder__search-modal__location-arrow",
|
|
4169
4132
|
viewBox: "0 0 16 16",
|
|
@@ -4185,14 +4148,14 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
4185
4148
|
class: "vuefinder__search-modal__checkbox",
|
|
4186
4149
|
onClick: P[5] || (P[5] = ae(() => {
|
|
4187
4150
|
}, ["stop"]))
|
|
4188
|
-
}, null, 8,
|
|
4151
|
+
}, null, 8, sr), [
|
|
4189
4152
|
[mt, S.value]
|
|
4190
4153
|
]),
|
|
4191
4154
|
i("span", null, y(s(t)("Include subfolders")), 1)
|
|
4192
4155
|
])
|
|
4193
4156
|
]),
|
|
4194
|
-
u.value ? (v(), g("div",
|
|
4195
|
-
i("div",
|
|
4157
|
+
u.value ? (v(), g("div", ir, [
|
|
4158
|
+
i("div", ar, [
|
|
4196
4159
|
O(Rt, {
|
|
4197
4160
|
modelValue: $.value,
|
|
4198
4161
|
"onUpdate:modelValue": [
|
|
@@ -4205,10 +4168,10 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
4205
4168
|
}, null, 8, ["modelValue", "current-path"])
|
|
4206
4169
|
])
|
|
4207
4170
|
])) : T("", !0),
|
|
4208
|
-
!s(r).trim() && !u.value ? (v(), g("div",
|
|
4209
|
-
i("p",
|
|
4171
|
+
!s(r).trim() && !u.value ? (v(), g("div", rr, [
|
|
4172
|
+
i("p", lr, y(s(t)("Start typing to search files. Use options to filter or include subfolders.")), 1)
|
|
4210
4173
|
])) : T("", !0),
|
|
4211
|
-
s(r).trim() && !u.value ? (v(), L(
|
|
4174
|
+
s(r).trim() && !u.value ? (v(), L(Ja, {
|
|
4212
4175
|
key: 2,
|
|
4213
4176
|
ref_key: "searchResultsListRef",
|
|
4214
4177
|
ref: d,
|
|
@@ -4234,7 +4197,7 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
4234
4197
|
_: 1
|
|
4235
4198
|
}));
|
|
4236
4199
|
}
|
|
4237
|
-
}),
|
|
4200
|
+
}), dr = {
|
|
4238
4201
|
props: {
|
|
4239
4202
|
on: { type: String, required: !0 }
|
|
4240
4203
|
},
|
|
@@ -4255,20 +4218,20 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
4255
4218
|
t: l
|
|
4256
4219
|
};
|
|
4257
4220
|
}
|
|
4258
|
-
},
|
|
4221
|
+
}, cr = (o, e) => {
|
|
4259
4222
|
const t = o.__vccOpts || o;
|
|
4260
4223
|
for (const [n, a] of e)
|
|
4261
4224
|
t[n] = a;
|
|
4262
4225
|
return t;
|
|
4263
|
-
},
|
|
4264
|
-
function
|
|
4226
|
+
}, ur = { key: 1 };
|
|
4227
|
+
function vr(o, e, t, n, a, l) {
|
|
4265
4228
|
return v(), g("div", {
|
|
4266
4229
|
class: Z(["vuefinder__action-message", { "vuefinder__action-message--hidden": !n.shown }])
|
|
4267
4230
|
}, [
|
|
4268
|
-
o.$slots.default ? $e(o.$slots, "default", { key: 0 }) : (v(), g("span",
|
|
4231
|
+
o.$slots.default ? $e(o.$slots, "default", { key: 0 }) : (v(), g("span", ur, y(n.t("Saved.")), 1))
|
|
4269
4232
|
], 2);
|
|
4270
4233
|
}
|
|
4271
|
-
const tt = /* @__PURE__ */
|
|
4234
|
+
const tt = /* @__PURE__ */ cr(dr, [["render", vr]]), fr = [
|
|
4272
4235
|
{ name: "silver", displayName: "Silver" },
|
|
4273
4236
|
{ name: "valorite", displayName: "Valorite" },
|
|
4274
4237
|
{ name: "midnight", displayName: "Midnight" },
|
|
@@ -4281,28 +4244,28 @@ const tt = /* @__PURE__ */ fr(vr, [["render", pr]]), hr = [
|
|
|
4281
4244
|
{ name: "palenight", displayName: "Palenight" },
|
|
4282
4245
|
{ name: "arctic", displayName: "Arctic" },
|
|
4283
4246
|
{ name: "code", displayName: "Code" }
|
|
4284
|
-
],
|
|
4247
|
+
], _r = { class: "vuefinder__about-modal__content" }, pr = { class: "vuefinder__about-modal__main" }, hr = { class: "vuefinder__about-modal__description" }, mr = { class: "vuefinder__about-modal__settings" }, gr = { class: "vuefinder__about-modal__settings__fieldset" }, wr = { class: "vuefinder__about-modal__settings__section-title" }, yr = { class: "vuefinder__about-modal__setting" }, br = { class: "vuefinder__about-modal__setting-label" }, kr = {
|
|
4285
4248
|
for: "metric_unit",
|
|
4286
4249
|
class: "vuefinder__about-modal__label"
|
|
4287
|
-
},
|
|
4250
|
+
}, $r = { class: "vuefinder__about-modal__setting-input justify-end" }, xr = ["checked"], Sr = { class: "vuefinder__about-modal__setting" }, Cr = { class: "vuefinder__about-modal__setting-label" }, Fr = {
|
|
4288
4251
|
for: "large_icons",
|
|
4289
4252
|
class: "vuefinder__about-modal__label"
|
|
4290
|
-
},
|
|
4253
|
+
}, Dr = { class: "vuefinder__about-modal__setting-input justify-end" }, Pr = ["checked"], Er = { class: "vuefinder__about-modal__setting" }, Mr = { class: "vuefinder__about-modal__setting-label" }, Tr = {
|
|
4291
4254
|
for: "persist_path",
|
|
4292
4255
|
class: "vuefinder__about-modal__label"
|
|
4293
|
-
},
|
|
4256
|
+
}, Ir = { class: "vuefinder__about-modal__setting-input justify-end" }, Ar = ["checked"], Or = {
|
|
4294
4257
|
key: 0,
|
|
4295
4258
|
class: "vuefinder__about-modal__settings__section-title"
|
|
4296
|
-
},
|
|
4259
|
+
}, Br = {
|
|
4297
4260
|
key: 1,
|
|
4298
4261
|
class: "vuefinder__about-modal__setting"
|
|
4299
|
-
},
|
|
4262
|
+
}, Lr = { class: "vuefinder__about-modal__setting-input justify-end" }, Vr = ["value"], zr = ["label"], Rr = ["value"], Nr = {
|
|
4300
4263
|
key: 2,
|
|
4301
4264
|
class: "vuefinder__about-modal__settings__section-title"
|
|
4302
|
-
},
|
|
4265
|
+
}, Ur = {
|
|
4303
4266
|
key: 3,
|
|
4304
4267
|
class: "vuefinder__about-modal__setting"
|
|
4305
|
-
},
|
|
4268
|
+
}, jr = { class: "vuefinder__about-modal__setting-input justify-end" }, Hr = ["label"], Kr = ["value"], qr = { class: "vuefinder__about-modal__tab-content" }, Gr = { class: "vuefinder__about-modal__settings__section-title" }, Wr = { class: "vuefinder__about-modal__description" }, Pn = /* @__PURE__ */ X({
|
|
4306
4269
|
__name: "ModalSettings",
|
|
4307
4270
|
setup(o) {
|
|
4308
4271
|
const e = J(), { enabled: t } = Te(), n = e.config, { clearStore: a } = e.storage, { t: l } = e.i18n, d = W(n.state), r = N(() => d.value.theme || "silver"), c = async () => {
|
|
@@ -4310,7 +4273,7 @@ const tt = /* @__PURE__ */ fr(vr, [["render", pr]]), hr = [
|
|
|
4310
4273
|
}, _ = (p) => {
|
|
4311
4274
|
n.set("theme", p), e.emitter.emit("vf-theme-saved");
|
|
4312
4275
|
}, m = () => {
|
|
4313
|
-
n.toggle("metricUnits"), e.filesize = n.get("metricUnits") ?
|
|
4276
|
+
n.toggle("metricUnits"), e.filesize = n.get("metricUnits") ? pn : It, e.emitter.emit("vf-metric-units-saved");
|
|
4314
4277
|
}, w = () => {
|
|
4315
4278
|
n.toggle("compactListView"), e.emitter.emit("vf-compact-view-saved");
|
|
4316
4279
|
}, u = () => {
|
|
@@ -4346,21 +4309,21 @@ const tt = /* @__PURE__ */ fr(vr, [["render", pr]]), hr = [
|
|
|
4346
4309
|
}, y(s(l)("Close")), 1)
|
|
4347
4310
|
]),
|
|
4348
4311
|
default: se(() => [
|
|
4349
|
-
i("div",
|
|
4312
|
+
i("div", _r, [
|
|
4350
4313
|
O(Pe, {
|
|
4351
|
-
icon: s(
|
|
4314
|
+
icon: s(Sn),
|
|
4352
4315
|
title: s(l)("Settings")
|
|
4353
4316
|
}, null, 8, ["icon", "title"]),
|
|
4354
|
-
i("div",
|
|
4355
|
-
i("div",
|
|
4356
|
-
i("div",
|
|
4357
|
-
i("fieldset",
|
|
4358
|
-
i("div",
|
|
4359
|
-
i("div",
|
|
4360
|
-
i("div",
|
|
4361
|
-
i("label",
|
|
4317
|
+
i("div", pr, [
|
|
4318
|
+
i("div", hr, y(s(l)("Customize your experience with the following settings")), 1),
|
|
4319
|
+
i("div", mr, [
|
|
4320
|
+
i("fieldset", gr, [
|
|
4321
|
+
i("div", wr, y(s(l)("General")), 1),
|
|
4322
|
+
i("div", yr, [
|
|
4323
|
+
i("div", br, [
|
|
4324
|
+
i("label", kr, y(s(l)("Use Metric Units")), 1)
|
|
4362
4325
|
]),
|
|
4363
|
-
i("div",
|
|
4326
|
+
i("div", $r, [
|
|
4364
4327
|
i("input", {
|
|
4365
4328
|
id: "metric_unit",
|
|
4366
4329
|
name: "metric_unit",
|
|
@@ -4368,7 +4331,7 @@ const tt = /* @__PURE__ */ fr(vr, [["render", pr]]), hr = [
|
|
|
4368
4331
|
checked: s(n).get("metricUnits"),
|
|
4369
4332
|
class: "vuefinder__about-modal__checkbox",
|
|
4370
4333
|
onChange: m
|
|
4371
|
-
}, null, 40,
|
|
4334
|
+
}, null, 40, xr),
|
|
4372
4335
|
O(tt, {
|
|
4373
4336
|
class: "ms-3",
|
|
4374
4337
|
on: "vf-metric-units-saved"
|
|
@@ -4380,11 +4343,11 @@ const tt = /* @__PURE__ */ fr(vr, [["render", pr]]), hr = [
|
|
|
4380
4343
|
})
|
|
4381
4344
|
])
|
|
4382
4345
|
]),
|
|
4383
|
-
i("div",
|
|
4384
|
-
i("div",
|
|
4385
|
-
i("label",
|
|
4346
|
+
i("div", Sr, [
|
|
4347
|
+
i("div", Cr, [
|
|
4348
|
+
i("label", Fr, y(s(l)("Compact list view")), 1)
|
|
4386
4349
|
]),
|
|
4387
|
-
i("div",
|
|
4350
|
+
i("div", Dr, [
|
|
4388
4351
|
i("input", {
|
|
4389
4352
|
id: "large_icons",
|
|
4390
4353
|
name: "large_icons",
|
|
@@ -4392,7 +4355,7 @@ const tt = /* @__PURE__ */ fr(vr, [["render", pr]]), hr = [
|
|
|
4392
4355
|
checked: s(n).get("compactListView"),
|
|
4393
4356
|
class: "vuefinder__about-modal__checkbox",
|
|
4394
4357
|
onChange: w
|
|
4395
|
-
}, null, 40,
|
|
4358
|
+
}, null, 40, Pr),
|
|
4396
4359
|
O(tt, {
|
|
4397
4360
|
class: "ms-3",
|
|
4398
4361
|
on: "vf-compact-view-saved"
|
|
@@ -4404,11 +4367,11 @@ const tt = /* @__PURE__ */ fr(vr, [["render", pr]]), hr = [
|
|
|
4404
4367
|
})
|
|
4405
4368
|
])
|
|
4406
4369
|
]),
|
|
4407
|
-
i("div",
|
|
4408
|
-
i("div",
|
|
4409
|
-
i("label",
|
|
4370
|
+
i("div", Er, [
|
|
4371
|
+
i("div", Mr, [
|
|
4372
|
+
i("label", Tr, y(s(l)("Persist path on reload")), 1)
|
|
4410
4373
|
]),
|
|
4411
|
-
i("div",
|
|
4374
|
+
i("div", Ir, [
|
|
4412
4375
|
i("input", {
|
|
4413
4376
|
id: "persist_path",
|
|
4414
4377
|
name: "persist_path",
|
|
@@ -4416,7 +4379,7 @@ const tt = /* @__PURE__ */ fr(vr, [["render", pr]]), hr = [
|
|
|
4416
4379
|
checked: s(n).get("persist"),
|
|
4417
4380
|
class: "vuefinder__about-modal__checkbox",
|
|
4418
4381
|
onChange: u
|
|
4419
|
-
}, null, 40,
|
|
4382
|
+
}, null, 40, Ar),
|
|
4420
4383
|
O(tt, {
|
|
4421
4384
|
class: "ms-3",
|
|
4422
4385
|
on: "vf-persist-path-saved"
|
|
@@ -4428,9 +4391,9 @@ const tt = /* @__PURE__ */ fr(vr, [["render", pr]]), hr = [
|
|
|
4428
4391
|
})
|
|
4429
4392
|
])
|
|
4430
4393
|
]),
|
|
4431
|
-
s(t)("theme") ? (v(), g("div",
|
|
4432
|
-
s(t)("theme") ? (v(), g("div",
|
|
4433
|
-
i("div",
|
|
4394
|
+
s(t)("theme") ? (v(), g("div", Or, y(s(l)("Theme")), 1)) : T("", !0),
|
|
4395
|
+
s(t)("theme") ? (v(), g("div", Br, [
|
|
4396
|
+
i("div", Lr, [
|
|
4434
4397
|
i("select", {
|
|
4435
4398
|
id: "theme",
|
|
4436
4399
|
value: r.value,
|
|
@@ -4440,12 +4403,12 @@ const tt = /* @__PURE__ */ fr(vr, [["render", pr]]), hr = [
|
|
|
4440
4403
|
i("optgroup", {
|
|
4441
4404
|
label: s(l)("Theme")
|
|
4442
4405
|
}, [
|
|
4443
|
-
(v(!0), g(ve, null, he(s(
|
|
4406
|
+
(v(!0), g(ve, null, he(s(fr), (f) => (v(), g("option", {
|
|
4444
4407
|
key: f.name,
|
|
4445
4408
|
value: f.name
|
|
4446
|
-
}, y(f.displayName), 9,
|
|
4447
|
-
], 8,
|
|
4448
|
-
], 40,
|
|
4409
|
+
}, y(f.displayName), 9, Rr))), 128))
|
|
4410
|
+
], 8, zr)
|
|
4411
|
+
], 40, Vr),
|
|
4449
4412
|
O(tt, {
|
|
4450
4413
|
class: "ms-3",
|
|
4451
4414
|
on: "vf-theme-saved"
|
|
@@ -4457,9 +4420,9 @@ const tt = /* @__PURE__ */ fr(vr, [["render", pr]]), hr = [
|
|
|
4457
4420
|
})
|
|
4458
4421
|
])
|
|
4459
4422
|
])) : T("", !0),
|
|
4460
|
-
s(t)("language") && Object.keys(s(S)).length > 1 ? (v(), g("div",
|
|
4461
|
-
s(t)("language") && Object.keys(s(S)).length > 1 ? (v(), g("div",
|
|
4462
|
-
i("div",
|
|
4423
|
+
s(t)("language") && Object.keys(s(S)).length > 1 ? (v(), g("div", Nr, y(s(l)("Language")), 1)) : T("", !0),
|
|
4424
|
+
s(t)("language") && Object.keys(s(S)).length > 1 ? (v(), g("div", Ur, [
|
|
4425
|
+
i("div", jr, [
|
|
4463
4426
|
pe(i("select", {
|
|
4464
4427
|
id: "language",
|
|
4465
4428
|
"onUpdate:modelValue": h[1] || (h[1] = (f) => s(e).i18n.locale = f),
|
|
@@ -4471,8 +4434,8 @@ const tt = /* @__PURE__ */ fr(vr, [["render", pr]]), hr = [
|
|
|
4471
4434
|
(v(!0), g(ve, null, he(s(S), (f, k) => (v(), g("option", {
|
|
4472
4435
|
key: k,
|
|
4473
4436
|
value: k
|
|
4474
|
-
}, y(f), 9,
|
|
4475
|
-
], 8,
|
|
4437
|
+
}, y(f), 9, Kr))), 128))
|
|
4438
|
+
], 8, Hr)
|
|
4476
4439
|
], 512), [
|
|
4477
4440
|
[Ft, s(e).i18n.locale]
|
|
4478
4441
|
]),
|
|
@@ -4489,9 +4452,9 @@ const tt = /* @__PURE__ */ fr(vr, [["render", pr]]), hr = [
|
|
|
4489
4452
|
])) : T("", !0)
|
|
4490
4453
|
])
|
|
4491
4454
|
]),
|
|
4492
|
-
i("div",
|
|
4493
|
-
i("div",
|
|
4494
|
-
i("div",
|
|
4455
|
+
i("div", qr, [
|
|
4456
|
+
i("div", Gr, y(s(l)("Reset")), 1),
|
|
4457
|
+
i("div", Wr, y(s(l)("Reset all settings to default")), 1),
|
|
4495
4458
|
i("button", {
|
|
4496
4459
|
type: "button",
|
|
4497
4460
|
class: "vf-btn vf-btn-secondary",
|
|
@@ -4519,10 +4482,10 @@ const tt = /* @__PURE__ */ fr(vr, [["render", pr]]), hr = [
|
|
|
4519
4482
|
KEY_S: "KeyS",
|
|
4520
4483
|
KEY_R: "KeyR"
|
|
4521
4484
|
};
|
|
4522
|
-
function
|
|
4485
|
+
function Yr() {
|
|
4523
4486
|
const o = J(), e = o.fs, t = o.config, { enabled: n } = Te(), a = W(e.path), l = W(e.selectedItems), d = (r) => {
|
|
4524
4487
|
if (r.code === xe.ESCAPE && (o.modal.close(), o.root.focus()), !o.modal.visible) {
|
|
4525
|
-
if (r.metaKey && r.code === xe.KEY_R && !r.shiftKey && (o.adapter.invalidateListQuery(a.value.path), o.adapter.open(a.value.path), r.preventDefault()), r.metaKey && r.shiftKey && r.code === xe.KEY_R && n("rename") && l.value.length === 1 && (o.modal.open(yt, { items: l.value }), r.preventDefault()), r.code === xe.DELETE && l.value.length !== 0 && o.modal.open(wt, { items: l.value }), r.metaKey && r.code === xe.BACKSLASH && o.modal.open(
|
|
4488
|
+
if (r.metaKey && r.code === xe.KEY_R && !r.shiftKey && (o.adapter.invalidateListQuery(a.value.path), o.adapter.open(a.value.path), r.preventDefault()), r.metaKey && r.shiftKey && r.code === xe.KEY_R && n("rename") && l.value.length === 1 && (o.modal.open(yt, { items: l.value }), r.preventDefault()), r.code === xe.DELETE && l.value.length !== 0 && o.modal.open(wt, { items: l.value }), r.metaKey && r.code === xe.BACKSLASH && o.modal.open(wn), r.metaKey && r.code === xe.KEY_F && n("search") && (o.modal.open(jt), r.preventDefault()), r.metaKey && r.code === xe.KEY_E && (t.toggle("showTreeView"), r.preventDefault()), r.metaKey && r.code === xe.KEY_S && (o.modal.open(Pn), r.preventDefault()), r.metaKey && r.code === xe.ENTER && (t.toggle("fullScreen"), o.root.focus()), r.metaKey && r.code === xe.KEY_A && (e.selectAll(o.selectionMode || "multiple", o), r.preventDefault()), r.code === xe.SPACE && l.value.length === 1 && l.value[0]?.type !== "dir" && o.modal.open(bt, {
|
|
4526
4489
|
storage: e.path.get().storage,
|
|
4527
4490
|
item: l.value[0]
|
|
4528
4491
|
}), r.metaKey && r.code === xe.KEY_C && n("copy")) {
|
|
@@ -4574,11 +4537,11 @@ function Jr() {
|
|
|
4574
4537
|
return;
|
|
4575
4538
|
}
|
|
4576
4539
|
o.root.addEventListener("keydown", d);
|
|
4577
|
-
}),
|
|
4540
|
+
}), un(() => {
|
|
4578
4541
|
o.root && o.root.removeEventListener("keydown", d);
|
|
4579
4542
|
});
|
|
4580
4543
|
}
|
|
4581
|
-
function
|
|
4544
|
+
function Qr() {
|
|
4582
4545
|
const o = M(!1), e = M([]);
|
|
4583
4546
|
return {
|
|
4584
4547
|
isDraggingExternal: o,
|
|
@@ -4636,19 +4599,19 @@ function Zr() {
|
|
|
4636
4599
|
}
|
|
4637
4600
|
};
|
|
4638
4601
|
}
|
|
4639
|
-
const
|
|
4602
|
+
const Xr = {
|
|
4640
4603
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4641
4604
|
fill: "none",
|
|
4642
4605
|
"stroke-width": "1.5",
|
|
4643
4606
|
class: "h-6 w-6 md:h-8 md:w-8 m-auto vf-toolbar-icon",
|
|
4644
4607
|
viewBox: "0 0 24 24"
|
|
4645
4608
|
};
|
|
4646
|
-
function
|
|
4647
|
-
return v(), g("svg",
|
|
4609
|
+
function Jr(o, e) {
|
|
4610
|
+
return v(), g("svg", Xr, [...e[0] || (e[0] = [
|
|
4648
4611
|
i("path", { d: "M12 10.5v6m3-3H9m4.06-7.19-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44z" }, null, -1)
|
|
4649
4612
|
])]);
|
|
4650
4613
|
}
|
|
4651
|
-
const
|
|
4614
|
+
const En = { render: Jr }, Zr = { class: "vuefinder__new-folder-modal__content" }, el = { class: "vuefinder__new-folder-modal__form" }, tl = { class: "vuefinder__new-folder-modal__description" }, nl = ["placeholder"], Ht = /* @__PURE__ */ X({
|
|
4652
4615
|
__name: "ModalNewFolder",
|
|
4653
4616
|
setup(o) {
|
|
4654
4617
|
const e = J(), { t } = e.i18n, n = e.fs, a = W(n.path), l = M(""), d = () => {
|
|
@@ -4677,12 +4640,12 @@ const Tn = { render: tl }, nl = { class: "vuefinder__new-folder-modal__content"
|
|
|
4677
4640
|
default: se(() => [
|
|
4678
4641
|
i("div", null, [
|
|
4679
4642
|
O(Pe, {
|
|
4680
|
-
icon: s(
|
|
4643
|
+
icon: s(En),
|
|
4681
4644
|
title: s(t)("New Folder")
|
|
4682
4645
|
}, null, 8, ["icon", "title"]),
|
|
4683
|
-
i("div",
|
|
4684
|
-
i("div",
|
|
4685
|
-
i("p",
|
|
4646
|
+
i("div", Zr, [
|
|
4647
|
+
i("div", el, [
|
|
4648
|
+
i("p", tl, y(s(t)("Create a new folder")), 1),
|
|
4686
4649
|
pe(i("input", {
|
|
4687
4650
|
"onUpdate:modelValue": c[0] || (c[0] = (_) => l.value = _),
|
|
4688
4651
|
class: "vuefinder__new-folder-modal__input",
|
|
@@ -4690,7 +4653,7 @@ const Tn = { render: tl }, nl = { class: "vuefinder__new-folder-modal__content"
|
|
|
4690
4653
|
type: "text",
|
|
4691
4654
|
autofocus: "",
|
|
4692
4655
|
onKeyup: ct(d, ["enter"])
|
|
4693
|
-
}, null, 40,
|
|
4656
|
+
}, null, 40, nl), [
|
|
4694
4657
|
[ut, l.value]
|
|
4695
4658
|
])
|
|
4696
4659
|
])
|
|
@@ -4700,19 +4663,19 @@ const Tn = { render: tl }, nl = { class: "vuefinder__new-folder-modal__content"
|
|
|
4700
4663
|
_: 1
|
|
4701
4664
|
}));
|
|
4702
4665
|
}
|
|
4703
|
-
}),
|
|
4666
|
+
}), ol = {
|
|
4704
4667
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4705
4668
|
fill: "none",
|
|
4706
4669
|
"stroke-width": "1.5",
|
|
4707
4670
|
class: "h-6 w-6 md:h-8 md:w-8 m-auto vf-toolbar-icon",
|
|
4708
4671
|
viewBox: "0 0 24 24"
|
|
4709
4672
|
};
|
|
4710
|
-
function
|
|
4711
|
-
return v(), g("svg",
|
|
4673
|
+
function sl(o, e) {
|
|
4674
|
+
return v(), g("svg", ol, [...e[0] || (e[0] = [
|
|
4712
4675
|
i("path", { d: "M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m3.75 9v6m3-3H9m1.5-12H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9" }, null, -1)
|
|
4713
4676
|
])]);
|
|
4714
4677
|
}
|
|
4715
|
-
const
|
|
4678
|
+
const Mn = { render: sl }, il = { class: "vuefinder__new-file-modal__content" }, al = { class: "vuefinder__new-file-modal__form" }, rl = { class: "vuefinder__new-file-modal__description" }, ll = ["placeholder"], Tn = /* @__PURE__ */ X({
|
|
4716
4679
|
__name: "ModalNewFile",
|
|
4717
4680
|
setup(o) {
|
|
4718
4681
|
const e = J(), { t } = e.i18n, n = e.fs, a = W(n.path), l = M(""), d = () => {
|
|
@@ -4741,19 +4704,19 @@ const In = { render: rl }, ll = { class: "vuefinder__new-file-modal__content" },
|
|
|
4741
4704
|
default: se(() => [
|
|
4742
4705
|
i("div", null, [
|
|
4743
4706
|
O(Pe, {
|
|
4744
|
-
icon: s(
|
|
4707
|
+
icon: s(Mn),
|
|
4745
4708
|
title: s(t)("New File")
|
|
4746
4709
|
}, null, 8, ["icon", "title"]),
|
|
4747
|
-
i("div",
|
|
4748
|
-
i("div",
|
|
4749
|
-
i("p",
|
|
4710
|
+
i("div", il, [
|
|
4711
|
+
i("div", al, [
|
|
4712
|
+
i("p", rl, y(s(t)("Create a new file")), 1),
|
|
4750
4713
|
pe(i("input", {
|
|
4751
4714
|
"onUpdate:modelValue": c[0] || (c[0] = (_) => l.value = _),
|
|
4752
4715
|
class: "vuefinder__new-file-modal__input",
|
|
4753
4716
|
placeholder: s(t)("File Name"),
|
|
4754
4717
|
type: "text",
|
|
4755
4718
|
onKeyup: ct(d, ["enter"])
|
|
4756
|
-
}, null, 40,
|
|
4719
|
+
}, null, 40, ll), [
|
|
4757
4720
|
[ut, l.value]
|
|
4758
4721
|
])
|
|
4759
4722
|
])
|
|
@@ -4763,36 +4726,36 @@ const In = { render: rl }, ll = { class: "vuefinder__new-file-modal__content" },
|
|
|
4763
4726
|
_: 1
|
|
4764
4727
|
}));
|
|
4765
4728
|
}
|
|
4766
|
-
}),
|
|
4729
|
+
}), dl = {
|
|
4767
4730
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4768
4731
|
fill: "none",
|
|
4769
4732
|
"stroke-width": "1.5",
|
|
4770
4733
|
class: "h-6 w-6 md:h-8 md:w-8 m-auto vf-toolbar-icon",
|
|
4771
4734
|
viewBox: "0 0 24 24"
|
|
4772
4735
|
};
|
|
4773
|
-
function
|
|
4774
|
-
return v(), g("svg",
|
|
4736
|
+
function cl(o, e) {
|
|
4737
|
+
return v(), g("svg", dl, [...e[0] || (e[0] = [
|
|
4775
4738
|
i("path", { d: "M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5" }, null, -1)
|
|
4776
4739
|
])]);
|
|
4777
4740
|
}
|
|
4778
|
-
const
|
|
4741
|
+
const In = { render: cl };
|
|
4779
4742
|
function Et(o, e = 14) {
|
|
4780
4743
|
const t = `((?=([\\w\\W]{0,${e}}))([\\w\\W]{${e + 1},})([\\w\\W]{8,}))`;
|
|
4781
4744
|
return o.replace(new RegExp(t), "$2..$4");
|
|
4782
4745
|
}
|
|
4783
|
-
const
|
|
4746
|
+
const ul = { class: "vuefinder__upload-modal__content relative" }, vl = { class: "vuefinder__upload-modal__target-section" }, fl = { class: "vuefinder__upload-modal__target-label" }, _l = { class: "vuefinder__upload-modal__target-container" }, pl = { class: "vuefinder__upload-modal__target-path" }, hl = { class: "vuefinder__upload-modal__target-storage" }, ml = {
|
|
4784
4747
|
key: 0,
|
|
4785
4748
|
class: "vuefinder__upload-modal__target-folder"
|
|
4786
|
-
},
|
|
4749
|
+
}, gl = { class: "vuefinder__upload-modal__target-badge" }, wl = { class: "vuefinder__upload-modal__drag-hint" }, yl = { class: "vuefinder__upload-modal__file-list vf-scrollbar" }, bl = ["textContent"], kl = { class: "vuefinder__upload-modal__file-info" }, $l = { class: "vuefinder__upload-modal__file-name hidden md:block" }, xl = { class: "vuefinder__upload-modal__file-name md:hidden" }, Sl = {
|
|
4787
4750
|
key: 0,
|
|
4788
4751
|
class: "ml-auto"
|
|
4789
|
-
},
|
|
4752
|
+
}, Cl = ["title", "disabled", "onClick"], Fl = {
|
|
4790
4753
|
key: 0,
|
|
4791
4754
|
class: "py-2"
|
|
4792
|
-
},
|
|
4755
|
+
}, Dl = ["aria-expanded"], Pl = {
|
|
4793
4756
|
key: 0,
|
|
4794
4757
|
class: "vuefinder__upload-actions__menu absolute right-0 bottom-full left-0 mb-2"
|
|
4795
|
-
},
|
|
4758
|
+
}, El = ["disabled"], Ml = ["aria-expanded"], Tl = {
|
|
4796
4759
|
key: 0,
|
|
4797
4760
|
class: "vuefinder__upload-actions__menu"
|
|
4798
4761
|
}, Kt = /* @__PURE__ */ X({
|
|
@@ -4831,7 +4794,7 @@ const _l = { class: "vuefinder__upload-modal__content relative" }, pl = { class:
|
|
|
4831
4794
|
getClassNameForEntry: R,
|
|
4832
4795
|
getIconForEntry: ne,
|
|
4833
4796
|
addExternalFiles: U
|
|
4834
|
-
} =
|
|
4797
|
+
} = kn(e.customUploader), ee = () => {
|
|
4835
4798
|
C(l.value);
|
|
4836
4799
|
};
|
|
4837
4800
|
fe(() => {
|
|
@@ -4887,9 +4850,9 @@ const _l = { class: "vuefinder__upload-modal__content relative" }, pl = { class:
|
|
|
4887
4850
|
"clip-rule": "evenodd"
|
|
4888
4851
|
})
|
|
4889
4852
|
], -1)
|
|
4890
|
-
])], 8,
|
|
4853
|
+
])], 8, Dl)
|
|
4891
4854
|
], 2),
|
|
4892
|
-
E.value ? (v(), g("div",
|
|
4855
|
+
E.value ? (v(), g("div", Pl, [
|
|
4893
4856
|
i("div", {
|
|
4894
4857
|
class: "vuefinder__upload-actions__item",
|
|
4895
4858
|
onClick: b[5] || (b[5] = (P) => {
|
|
@@ -4918,7 +4881,7 @@ const _l = { class: "vuefinder__upload-modal__content relative" }, pl = { class:
|
|
|
4918
4881
|
class: "vf-btn vf-btn-primary",
|
|
4919
4882
|
disabled: s(p) || !s(D).length,
|
|
4920
4883
|
onClick: ae(ee, ["prevent"])
|
|
4921
|
-
}, y(s(t)("Upload")), 9,
|
|
4884
|
+
}, y(s(t)("Upload")), 9, El),
|
|
4922
4885
|
s(p) ? (v(), g("button", {
|
|
4923
4886
|
key: 0,
|
|
4924
4887
|
type: "button",
|
|
@@ -4971,9 +4934,9 @@ const _l = { class: "vuefinder__upload-modal__content relative" }, pl = { class:
|
|
|
4971
4934
|
"clip-rule": "evenodd"
|
|
4972
4935
|
})
|
|
4973
4936
|
], -1)
|
|
4974
|
-
])], 8,
|
|
4937
|
+
])], 8, Ml)
|
|
4975
4938
|
], 2),
|
|
4976
|
-
E.value ? (v(), g("div",
|
|
4939
|
+
E.value ? (v(), g("div", Tl, [
|
|
4977
4940
|
i("div", {
|
|
4978
4941
|
class: "vuefinder__upload-actions__item",
|
|
4979
4942
|
onClick: b[12] || (b[12] = (P) => {
|
|
@@ -5001,22 +4964,22 @@ const _l = { class: "vuefinder__upload-modal__content relative" }, pl = { class:
|
|
|
5001
4964
|
default: se(() => [
|
|
5002
4965
|
i("div", null, [
|
|
5003
4966
|
O(Pe, {
|
|
5004
|
-
icon: s(
|
|
4967
|
+
icon: s(In),
|
|
5005
4968
|
title: s(t)("Upload Files")
|
|
5006
4969
|
}, null, 8, ["icon", "title"]),
|
|
5007
|
-
i("div",
|
|
5008
|
-
i("div",
|
|
5009
|
-
i("div",
|
|
5010
|
-
i("div",
|
|
4970
|
+
i("div", ul, [
|
|
4971
|
+
i("div", vl, [
|
|
4972
|
+
i("div", fl, y(s(t)("Target Directory")), 1),
|
|
4973
|
+
i("div", _l, [
|
|
5011
4974
|
i("div", {
|
|
5012
4975
|
class: "vuefinder__upload-modal__target-display",
|
|
5013
4976
|
onClick: b[0] || (b[0] = (P) => d.value = !d.value)
|
|
5014
4977
|
}, [
|
|
5015
|
-
i("div",
|
|
5016
|
-
i("span",
|
|
5017
|
-
r().path ? (v(), g("span",
|
|
4978
|
+
i("div", pl, [
|
|
4979
|
+
i("span", hl, y(r().storage) + "://", 1),
|
|
4980
|
+
r().path ? (v(), g("span", ml, y(r().path), 1)) : T("", !0)
|
|
5018
4981
|
]),
|
|
5019
|
-
i("span",
|
|
4982
|
+
i("span", gl, y(s(t)("Browse")), 1)
|
|
5020
4983
|
])
|
|
5021
4984
|
]),
|
|
5022
4985
|
i("div", {
|
|
@@ -5036,13 +4999,13 @@ const _l = { class: "vuefinder__upload-modal__content relative" }, pl = { class:
|
|
|
5036
4999
|
}, null, 8, ["modelValue"])
|
|
5037
5000
|
], 2)
|
|
5038
5001
|
]),
|
|
5039
|
-
i("div",
|
|
5002
|
+
i("div", wl, y(s(t)("You can drag & drop files anywhere while this modal is open.")), 1),
|
|
5040
5003
|
i("div", {
|
|
5041
5004
|
ref_key: "container",
|
|
5042
5005
|
ref: m,
|
|
5043
5006
|
class: "hidden"
|
|
5044
5007
|
}, null, 512),
|
|
5045
|
-
i("div",
|
|
5008
|
+
i("div", yl, [
|
|
5046
5009
|
(v(!0), g(ve, null, he(s(D), (P) => (v(), g("div", {
|
|
5047
5010
|
key: P.id,
|
|
5048
5011
|
class: "vuefinder__upload-modal__file-entry"
|
|
@@ -5053,16 +5016,16 @@ const _l = { class: "vuefinder__upload-modal__content relative" }, pl = { class:
|
|
|
5053
5016
|
i("span", {
|
|
5054
5017
|
class: "vuefinder__upload-modal__file-icon-text",
|
|
5055
5018
|
textContent: y(s(ne)(P))
|
|
5056
|
-
}, null, 8,
|
|
5019
|
+
}, null, 8, bl)
|
|
5057
5020
|
], 2),
|
|
5058
|
-
i("div",
|
|
5059
|
-
i("div",
|
|
5060
|
-
i("div",
|
|
5021
|
+
i("div", kl, [
|
|
5022
|
+
i("div", $l, y(s(Et)(P.name, 40)) + " (" + y(P.size) + ") ", 1),
|
|
5023
|
+
i("div", xl, y(s(Et)(P.name, 16)) + " (" + y(P.size) + ") ", 1),
|
|
5061
5024
|
i("div", {
|
|
5062
5025
|
class: Z(["vuefinder__upload-modal__file-status", s(R)(P)])
|
|
5063
5026
|
}, [
|
|
5064
5027
|
de(y(P.statusName) + " ", 1),
|
|
5065
|
-
P.status === s(f).QUEUE_ENTRY_STATUS.UPLOADING ? (v(), g("b",
|
|
5028
|
+
P.status === s(f).QUEUE_ENTRY_STATUS.UPLOADING ? (v(), g("b", Sl, y(P.percent), 1)) : T("", !0)
|
|
5066
5029
|
], 2)
|
|
5067
5030
|
]),
|
|
5068
5031
|
i("button", {
|
|
@@ -5086,9 +5049,9 @@ const _l = { class: "vuefinder__upload-modal__content relative" }, pl = { class:
|
|
|
5086
5049
|
d: "M6 18L18 6M6 6l12 12"
|
|
5087
5050
|
})
|
|
5088
5051
|
], -1)
|
|
5089
|
-
])], 10,
|
|
5052
|
+
])], 10, Cl)
|
|
5090
5053
|
]))), 128)),
|
|
5091
|
-
s(D).length ? T("", !0) : (v(), g("div",
|
|
5054
|
+
s(D).length ? T("", !0) : (v(), g("div", Fl, y(s(t)("No files selected!")), 1))
|
|
5092
5055
|
]),
|
|
5093
5056
|
s(S).length ? (v(), L(Pt, {
|
|
5094
5057
|
key: 0,
|
|
@@ -5121,19 +5084,19 @@ const _l = { class: "vuefinder__upload-modal__content relative" }, pl = { class:
|
|
|
5121
5084
|
_: 1
|
|
5122
5085
|
}, 8, ["show-drag-overlay", "drag-overlay-text"]));
|
|
5123
5086
|
}
|
|
5124
|
-
}),
|
|
5087
|
+
}), Il = {
|
|
5125
5088
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5126
5089
|
fill: "none",
|
|
5127
5090
|
"stroke-width": "1.5",
|
|
5128
5091
|
class: "h-6 w-6 md:h-8 md:w-8 m-auto",
|
|
5129
5092
|
viewBox: "0 0 24 24"
|
|
5130
5093
|
};
|
|
5131
|
-
function
|
|
5132
|
-
return v(), g("svg",
|
|
5094
|
+
function Al(o, e) {
|
|
5095
|
+
return v(), g("svg", Il, [...e[0] || (e[0] = [
|
|
5133
5096
|
i("path", { d: "m20.25 7.5-.625 10.632a2.25 2.25 0 0 1-2.247 2.118H6.622a2.25 2.25 0 0 1-2.247-2.118L3.75 7.5m6 4.125 2.25 2.25m0 0 2.25 2.25M12 13.875l2.25-2.25M12 13.875l-2.25 2.25M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125" }, null, -1)
|
|
5134
5097
|
])]);
|
|
5135
5098
|
}
|
|
5136
|
-
const
|
|
5099
|
+
const An = { render: Al }, Ol = { class: "vuefinder__unarchive-modal__content" }, Bl = { class: "vuefinder__unarchive-modal__items" }, Ll = {
|
|
5137
5100
|
key: 0,
|
|
5138
5101
|
class: "vuefinder__unarchive-modal__icon vuefinder__unarchive-modal__icon--dir",
|
|
5139
5102
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5141,7 +5104,7 @@ const Bn = { render: Ll }, Vl = { class: "vuefinder__unarchive-modal__content" }
|
|
|
5141
5104
|
viewBox: "0 0 24 24",
|
|
5142
5105
|
stroke: "currentColor",
|
|
5143
5106
|
"stroke-width": "1"
|
|
5144
|
-
},
|
|
5107
|
+
}, Vl = {
|
|
5145
5108
|
key: 1,
|
|
5146
5109
|
class: "vuefinder__unarchive-modal__icon vuefinder__unarchive-modal__icon--file",
|
|
5147
5110
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5149,7 +5112,7 @@ const Bn = { render: Ll }, Vl = { class: "vuefinder__unarchive-modal__content" }
|
|
|
5149
5112
|
viewBox: "0 0 24 24",
|
|
5150
5113
|
stroke: "currentColor",
|
|
5151
5114
|
"stroke-width": "1"
|
|
5152
|
-
},
|
|
5115
|
+
}, zl = { class: "vuefinder__unarchive-modal__item-name" }, Rl = { class: "vuefinder__unarchive-modal__info" }, qt = /* @__PURE__ */ X({
|
|
5153
5116
|
__name: "ModalUnarchive",
|
|
5154
5117
|
setup(o) {
|
|
5155
5118
|
const e = J(), t = e.fs, n = W(t.path), { t: a } = e.i18n, l = M(e.modal.data.items[0]), d = M([]), r = () => {
|
|
@@ -5178,31 +5141,31 @@ const Bn = { render: Ll }, Vl = { class: "vuefinder__unarchive-modal__content" }
|
|
|
5178
5141
|
default: se(() => [
|
|
5179
5142
|
i("div", null, [
|
|
5180
5143
|
O(Pe, {
|
|
5181
|
-
icon: s(
|
|
5144
|
+
icon: s(An),
|
|
5182
5145
|
title: s(a)("Unarchive")
|
|
5183
5146
|
}, null, 8, ["icon", "title"]),
|
|
5184
|
-
i("div",
|
|
5185
|
-
i("div",
|
|
5147
|
+
i("div", Ol, [
|
|
5148
|
+
i("div", Bl, [
|
|
5186
5149
|
(v(!0), g(ve, null, he(d.value, (m) => (v(), g("p", {
|
|
5187
5150
|
key: m.path,
|
|
5188
5151
|
class: "vuefinder__unarchive-modal__item"
|
|
5189
5152
|
}, [
|
|
5190
|
-
m.type === "dir" ? (v(), g("svg",
|
|
5153
|
+
m.type === "dir" ? (v(), g("svg", Ll, [..._[1] || (_[1] = [
|
|
5191
5154
|
i("path", {
|
|
5192
5155
|
"stroke-linecap": "round",
|
|
5193
5156
|
"stroke-linejoin": "round",
|
|
5194
5157
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
5195
5158
|
}, null, -1)
|
|
5196
|
-
])])) : (v(), g("svg",
|
|
5159
|
+
])])) : (v(), g("svg", Vl, [..._[2] || (_[2] = [
|
|
5197
5160
|
i("path", {
|
|
5198
5161
|
"stroke-linecap": "round",
|
|
5199
5162
|
"stroke-linejoin": "round",
|
|
5200
5163
|
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"
|
|
5201
5164
|
}, null, -1)
|
|
5202
5165
|
])])),
|
|
5203
|
-
i("span",
|
|
5166
|
+
i("span", zl, y(m.basename), 1)
|
|
5204
5167
|
]))), 128)),
|
|
5205
|
-
i("p",
|
|
5168
|
+
i("p", Rl, y(s(a)("The archive will be unarchived at")) + " (" + y(s(n).path) + ") ", 1)
|
|
5206
5169
|
])
|
|
5207
5170
|
])
|
|
5208
5171
|
])
|
|
@@ -5210,18 +5173,18 @@ const Bn = { render: Ll }, Vl = { class: "vuefinder__unarchive-modal__content" }
|
|
|
5210
5173
|
_: 1
|
|
5211
5174
|
}));
|
|
5212
5175
|
}
|
|
5213
|
-
}),
|
|
5176
|
+
}), Nl = {
|
|
5214
5177
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5215
5178
|
fill: "none",
|
|
5216
5179
|
"stroke-width": "1.5",
|
|
5217
5180
|
viewBox: "0 0 24 24"
|
|
5218
5181
|
};
|
|
5219
|
-
function
|
|
5220
|
-
return v(), g("svg",
|
|
5182
|
+
function Ul(o, e) {
|
|
5183
|
+
return v(), g("svg", Nl, [...e[0] || (e[0] = [
|
|
5221
5184
|
i("path", { d: "m20.25 7.5-.625 10.632a2.25 2.25 0 0 1-2.247 2.118H6.622a2.25 2.25 0 0 1-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125" }, null, -1)
|
|
5222
5185
|
])]);
|
|
5223
5186
|
}
|
|
5224
|
-
const
|
|
5187
|
+
const On = { render: Ul }, jl = { class: "vuefinder__archive-modal__content" }, Hl = { class: "vuefinder__archive-modal__form" }, Kl = { class: "vuefinder__archive-modal__files vf-scrollbar" }, ql = {
|
|
5225
5188
|
key: 0,
|
|
5226
5189
|
class: "vuefinder__archive-modal__icon vuefinder__archive-modal__icon--dir",
|
|
5227
5190
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5229,7 +5192,7 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5229
5192
|
viewBox: "0 0 24 24",
|
|
5230
5193
|
stroke: "currentColor",
|
|
5231
5194
|
"stroke-width": "1"
|
|
5232
|
-
},
|
|
5195
|
+
}, Gl = {
|
|
5233
5196
|
key: 1,
|
|
5234
5197
|
class: "vuefinder__archive-modal__icon",
|
|
5235
5198
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5237,7 +5200,7 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5237
5200
|
viewBox: "0 0 24 24",
|
|
5238
5201
|
stroke: "currentColor",
|
|
5239
5202
|
"stroke-width": "1"
|
|
5240
|
-
},
|
|
5203
|
+
}, Wl = { class: "vuefinder__archive-modal__file-name" }, Yl = ["placeholder"], Gt = /* @__PURE__ */ X({
|
|
5241
5204
|
__name: "ModalArchive",
|
|
5242
5205
|
setup(o) {
|
|
5243
5206
|
const e = J(), { t } = e.i18n, n = e.fs, a = W(n.path), l = M(""), d = M(e.modal.data.items), r = () => {
|
|
@@ -5270,30 +5233,30 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5270
5233
|
default: se(() => [
|
|
5271
5234
|
i("div", null, [
|
|
5272
5235
|
O(Pe, {
|
|
5273
|
-
icon: s(
|
|
5236
|
+
icon: s(On),
|
|
5274
5237
|
title: s(t)("Archive the files")
|
|
5275
5238
|
}, null, 8, ["icon", "title"]),
|
|
5276
|
-
i("div",
|
|
5277
|
-
i("div",
|
|
5278
|
-
i("div",
|
|
5239
|
+
i("div", jl, [
|
|
5240
|
+
i("div", Hl, [
|
|
5241
|
+
i("div", Kl, [
|
|
5279
5242
|
(v(!0), g(ve, null, he(d.value, (m) => (v(), g("p", {
|
|
5280
5243
|
key: m.path,
|
|
5281
5244
|
class: "vuefinder__archive-modal__file"
|
|
5282
5245
|
}, [
|
|
5283
|
-
m.type === "dir" ? (v(), g("svg",
|
|
5246
|
+
m.type === "dir" ? (v(), g("svg", ql, [..._[2] || (_[2] = [
|
|
5284
5247
|
i("path", {
|
|
5285
5248
|
"stroke-linecap": "round",
|
|
5286
5249
|
"stroke-linejoin": "round",
|
|
5287
5250
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
5288
5251
|
}, null, -1)
|
|
5289
|
-
])])) : (v(), g("svg",
|
|
5252
|
+
])])) : (v(), g("svg", Gl, [..._[3] || (_[3] = [
|
|
5290
5253
|
i("path", {
|
|
5291
5254
|
"stroke-linecap": "round",
|
|
5292
5255
|
"stroke-linejoin": "round",
|
|
5293
5256
|
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"
|
|
5294
5257
|
}, null, -1)
|
|
5295
5258
|
])])),
|
|
5296
|
-
i("span",
|
|
5259
|
+
i("span", Wl, y(m.basename), 1)
|
|
5297
5260
|
]))), 128))
|
|
5298
5261
|
]),
|
|
5299
5262
|
pe(i("input", {
|
|
@@ -5302,7 +5265,7 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5302
5265
|
placeholder: s(t)("Archive name. (.zip file will be created)"),
|
|
5303
5266
|
type: "text",
|
|
5304
5267
|
onKeyup: ct(r, ["enter"])
|
|
5305
|
-
}, null, 40,
|
|
5268
|
+
}, null, 40, Yl), [
|
|
5306
5269
|
[ut, l.value]
|
|
5307
5270
|
])
|
|
5308
5271
|
])
|
|
@@ -5312,31 +5275,31 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5312
5275
|
_: 1
|
|
5313
5276
|
}));
|
|
5314
5277
|
}
|
|
5315
|
-
}),
|
|
5278
|
+
}), Ql = { class: "vuefinder__about-modal__content" }, Xl = { class: "vuefinder__about-modal__main" }, Jl = { class: "vuefinder__about-modal__shortcuts" }, Zl = { class: "vuefinder__about-modal__shortcut" }, ed = {
|
|
5316
5279
|
key: 0,
|
|
5317
5280
|
class: "vuefinder__about-modal__shortcut"
|
|
5318
|
-
},
|
|
5281
|
+
}, td = {
|
|
5319
5282
|
key: 1,
|
|
5320
5283
|
class: "vuefinder__about-modal__shortcut"
|
|
5321
|
-
},
|
|
5284
|
+
}, nd = { class: "vuefinder__about-modal__shortcut" }, od = { class: "vuefinder__about-modal__shortcut" }, sd = {
|
|
5322
5285
|
key: 2,
|
|
5323
5286
|
class: "vuefinder__about-modal__shortcut"
|
|
5324
|
-
},
|
|
5287
|
+
}, id = {
|
|
5325
5288
|
key: 3,
|
|
5326
5289
|
class: "vuefinder__about-modal__shortcut"
|
|
5327
|
-
},
|
|
5290
|
+
}, ad = {
|
|
5328
5291
|
key: 4,
|
|
5329
5292
|
class: "vuefinder__about-modal__shortcut"
|
|
5330
|
-
},
|
|
5293
|
+
}, rd = {
|
|
5331
5294
|
key: 5,
|
|
5332
5295
|
class: "vuefinder__about-modal__shortcut"
|
|
5333
|
-
},
|
|
5296
|
+
}, ld = { class: "vuefinder__about-modal__shortcut" }, dd = { class: "vuefinder__about-modal__shortcut" }, cd = {
|
|
5334
5297
|
key: 6,
|
|
5335
5298
|
class: "vuefinder__about-modal__shortcut"
|
|
5336
|
-
},
|
|
5299
|
+
}, ud = {
|
|
5337
5300
|
key: 7,
|
|
5338
5301
|
class: "vuefinder__about-modal__shortcut"
|
|
5339
|
-
},
|
|
5302
|
+
}, vd = /* @__PURE__ */ X({
|
|
5340
5303
|
__name: "ModalShortcuts",
|
|
5341
5304
|
setup(o) {
|
|
5342
5305
|
const e = J(), { enabled: t } = Te(), { t: n } = e.i18n;
|
|
@@ -5349,14 +5312,14 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5349
5312
|
}, y(s(n)("Close")), 1)
|
|
5350
5313
|
]),
|
|
5351
5314
|
default: se(() => [
|
|
5352
|
-
i("div",
|
|
5315
|
+
i("div", Ql, [
|
|
5353
5316
|
O(Pe, {
|
|
5354
|
-
icon: s(
|
|
5317
|
+
icon: s(gn),
|
|
5355
5318
|
title: s(n)("Shortcuts")
|
|
5356
5319
|
}, null, 8, ["icon", "title"]),
|
|
5357
|
-
i("div",
|
|
5358
|
-
i("div",
|
|
5359
|
-
i("div",
|
|
5320
|
+
i("div", Xl, [
|
|
5321
|
+
i("div", Jl, [
|
|
5322
|
+
i("div", Zl, [
|
|
5360
5323
|
i("div", null, y(s(n)("Refresh")), 1),
|
|
5361
5324
|
l[1] || (l[1] = i("div", null, [
|
|
5362
5325
|
i("kbd", null, "⌘"),
|
|
@@ -5364,7 +5327,7 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5364
5327
|
i("kbd", null, "R")
|
|
5365
5328
|
], -1))
|
|
5366
5329
|
]),
|
|
5367
|
-
s(t)("rename") ? (v(), g("div",
|
|
5330
|
+
s(t)("rename") ? (v(), g("div", ed, [
|
|
5368
5331
|
i("div", null, y(s(n)("Rename")), 1),
|
|
5369
5332
|
l[2] || (l[2] = i("div", null, [
|
|
5370
5333
|
i("kbd", null, "⌘"),
|
|
@@ -5374,15 +5337,15 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5374
5337
|
i("kbd", null, "R")
|
|
5375
5338
|
], -1))
|
|
5376
5339
|
])) : T("", !0),
|
|
5377
|
-
s(t)("delete") ? (v(), g("div",
|
|
5340
|
+
s(t)("delete") ? (v(), g("div", td, [
|
|
5378
5341
|
i("div", null, y(s(n)("Delete")), 1),
|
|
5379
5342
|
l[3] || (l[3] = i("kbd", null, "Del", -1))
|
|
5380
5343
|
])) : T("", !0),
|
|
5381
|
-
i("div",
|
|
5344
|
+
i("div", nd, [
|
|
5382
5345
|
i("div", null, y(s(n)("Escape")), 1),
|
|
5383
5346
|
l[4] || (l[4] = i("kbd", null, "Esc", -1))
|
|
5384
5347
|
]),
|
|
5385
|
-
i("div",
|
|
5348
|
+
i("div", od, [
|
|
5386
5349
|
i("div", null, y(s(n)("Select All")), 1),
|
|
5387
5350
|
l[5] || (l[5] = i("div", null, [
|
|
5388
5351
|
i("kbd", null, "⌘"),
|
|
@@ -5390,7 +5353,7 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5390
5353
|
i("kbd", null, "A")
|
|
5391
5354
|
], -1))
|
|
5392
5355
|
]),
|
|
5393
|
-
s(t)("copy") ? (v(), g("div",
|
|
5356
|
+
s(t)("copy") ? (v(), g("div", sd, [
|
|
5394
5357
|
i("div", null, y(s(n)("Cut")), 1),
|
|
5395
5358
|
l[6] || (l[6] = i("div", null, [
|
|
5396
5359
|
i("kbd", null, "⌘"),
|
|
@@ -5398,7 +5361,7 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5398
5361
|
i("kbd", null, "X")
|
|
5399
5362
|
], -1))
|
|
5400
5363
|
])) : T("", !0),
|
|
5401
|
-
s(t)("copy") ? (v(), g("div",
|
|
5364
|
+
s(t)("copy") ? (v(), g("div", id, [
|
|
5402
5365
|
i("div", null, y(s(n)("Copy")), 1),
|
|
5403
5366
|
l[7] || (l[7] = i("div", null, [
|
|
5404
5367
|
i("kbd", null, "⌘"),
|
|
@@ -5406,7 +5369,7 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5406
5369
|
i("kbd", null, "C")
|
|
5407
5370
|
], -1))
|
|
5408
5371
|
])) : T("", !0),
|
|
5409
|
-
s(t)("copy") ? (v(), g("div",
|
|
5372
|
+
s(t)("copy") ? (v(), g("div", ad, [
|
|
5410
5373
|
i("div", null, y(s(n)("Paste")), 1),
|
|
5411
5374
|
l[8] || (l[8] = i("div", null, [
|
|
5412
5375
|
i("kbd", null, "⌘"),
|
|
@@ -5414,7 +5377,7 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5414
5377
|
i("kbd", null, "V")
|
|
5415
5378
|
], -1))
|
|
5416
5379
|
])) : T("", !0),
|
|
5417
|
-
s(t)("search") ? (v(), g("div",
|
|
5380
|
+
s(t)("search") ? (v(), g("div", rd, [
|
|
5418
5381
|
i("div", null, y(s(n)("Search")), 1),
|
|
5419
5382
|
l[9] || (l[9] = i("div", null, [
|
|
5420
5383
|
i("kbd", null, "⌘"),
|
|
@@ -5422,7 +5385,7 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5422
5385
|
i("kbd", null, "F")
|
|
5423
5386
|
], -1))
|
|
5424
5387
|
])) : T("", !0),
|
|
5425
|
-
i("div",
|
|
5388
|
+
i("div", ld, [
|
|
5426
5389
|
i("div", null, y(s(n)("Toggle Sidebar")), 1),
|
|
5427
5390
|
l[10] || (l[10] = i("div", null, [
|
|
5428
5391
|
i("kbd", null, "⌘"),
|
|
@@ -5430,7 +5393,7 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5430
5393
|
i("kbd", null, "E")
|
|
5431
5394
|
], -1))
|
|
5432
5395
|
]),
|
|
5433
|
-
i("div",
|
|
5396
|
+
i("div", dd, [
|
|
5434
5397
|
i("div", null, y(s(n)("Open Settings")), 1),
|
|
5435
5398
|
l[11] || (l[11] = i("div", null, [
|
|
5436
5399
|
i("kbd", null, "⌘"),
|
|
@@ -5438,7 +5401,7 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5438
5401
|
i("kbd", null, "S")
|
|
5439
5402
|
], -1))
|
|
5440
5403
|
]),
|
|
5441
|
-
s(t)("fullscreen") ? (v(), g("div",
|
|
5404
|
+
s(t)("fullscreen") ? (v(), g("div", cd, [
|
|
5442
5405
|
i("div", null, y(s(n)("Toggle Full Screen")), 1),
|
|
5443
5406
|
l[12] || (l[12] = i("div", null, [
|
|
5444
5407
|
i("kbd", null, "⌘"),
|
|
@@ -5446,7 +5409,7 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5446
5409
|
i("kbd", null, "Enter")
|
|
5447
5410
|
], -1))
|
|
5448
5411
|
])) : T("", !0),
|
|
5449
|
-
s(t)("preview") ? (v(), g("div",
|
|
5412
|
+
s(t)("preview") ? (v(), g("div", ud, [
|
|
5450
5413
|
i("div", null, y(s(n)("Preview")), 1),
|
|
5451
5414
|
l[13] || (l[13] = i("kbd", null, "Space", -1))
|
|
5452
5415
|
])) : T("", !0)
|
|
@@ -5457,13 +5420,13 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5457
5420
|
_: 1
|
|
5458
5421
|
}));
|
|
5459
5422
|
}
|
|
5460
|
-
}),
|
|
5423
|
+
}), fd = { class: "vuefinder__menubar__container" }, _d = ["onClick", "onMouseenter"], pd = { class: "vuefinder__menubar__label" }, hd = ["onMouseenter"], md = ["onClick"], gd = {
|
|
5461
5424
|
key: 0,
|
|
5462
5425
|
class: "vuefinder__menubar__dropdown__label"
|
|
5463
|
-
},
|
|
5426
|
+
}, wd = {
|
|
5464
5427
|
key: 1,
|
|
5465
5428
|
class: "vuefinder__menubar__dropdown__checkmark"
|
|
5466
|
-
},
|
|
5429
|
+
}, yd = /* @__PURE__ */ X({
|
|
5467
5430
|
__name: "MenuBar",
|
|
5468
5431
|
setup(o) {
|
|
5469
5432
|
const e = J(), { enabled: t } = Te(), { t: n } = e?.i18n || { t: (f) => f }, a = e?.fs, l = e?.config, d = W(l.state), r = W(a.selectedItems), c = W(a?.storages || []), _ = M(null), m = M(!1), w = N(() => window.opener !== null || window.name !== "" || window.history.length <= 1), u = N(() => [
|
|
@@ -5480,7 +5443,7 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5480
5443
|
{
|
|
5481
5444
|
id: "new-file",
|
|
5482
5445
|
label: n("New File"),
|
|
5483
|
-
action: () => e?.modal?.open(
|
|
5446
|
+
action: () => e?.modal?.open(Tn, { items: r.value }),
|
|
5484
5447
|
enabled: () => t("newfile")
|
|
5485
5448
|
},
|
|
5486
5449
|
{ type: "separator" },
|
|
@@ -5639,7 +5602,7 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5639
5602
|
const f = r.value[0];
|
|
5640
5603
|
a?.path?.get()?.storage;
|
|
5641
5604
|
const k = e?.adapter?.getDownloadUrl({ path: f.path });
|
|
5642
|
-
k && await
|
|
5605
|
+
k && await Aa(k);
|
|
5643
5606
|
}
|
|
5644
5607
|
},
|
|
5645
5608
|
enabled: () => r.value.length === 1 && r.value[0]?.type !== "dir"
|
|
@@ -5809,19 +5772,19 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5809
5772
|
{
|
|
5810
5773
|
id: "settings",
|
|
5811
5774
|
label: n("Settings"),
|
|
5812
|
-
action: () => e?.modal?.open(
|
|
5775
|
+
action: () => e?.modal?.open(Pn),
|
|
5813
5776
|
enabled: () => !0
|
|
5814
5777
|
},
|
|
5815
5778
|
{
|
|
5816
5779
|
id: "shortcuts",
|
|
5817
5780
|
label: n("Shortcuts"),
|
|
5818
|
-
action: () => e?.modal?.open(
|
|
5781
|
+
action: () => e?.modal?.open(vd),
|
|
5819
5782
|
enabled: () => !0
|
|
5820
5783
|
},
|
|
5821
5784
|
{
|
|
5822
5785
|
id: "about",
|
|
5823
5786
|
label: n("About"),
|
|
5824
|
-
action: () => e?.modal?.open(
|
|
5787
|
+
action: () => e?.modal?.open(wn),
|
|
5825
5788
|
enabled: () => !0
|
|
5826
5789
|
}
|
|
5827
5790
|
]
|
|
@@ -5846,14 +5809,14 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5846
5809
|
onClick: k[0] || (k[0] = ae(() => {
|
|
5847
5810
|
}, ["stop"]))
|
|
5848
5811
|
}, [
|
|
5849
|
-
i("div",
|
|
5812
|
+
i("div", fd, [
|
|
5850
5813
|
(v(!0), g(ve, null, he(u.value, (C) => (v(), g("div", {
|
|
5851
5814
|
key: C.id,
|
|
5852
5815
|
class: Z(["vuefinder__menubar__item", { "vuefinder__menubar__item--active": _.value === C.id }]),
|
|
5853
5816
|
onClick: (F) => $(C.id),
|
|
5854
5817
|
onMouseenter: (F) => D(C.id)
|
|
5855
5818
|
}, [
|
|
5856
|
-
i("span",
|
|
5819
|
+
i("span", pd, y(C.label), 1),
|
|
5857
5820
|
_.value === C.id ? (v(), g("div", {
|
|
5858
5821
|
key: 0,
|
|
5859
5822
|
class: "vuefinder__menubar__dropdown",
|
|
@@ -5868,68 +5831,68 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5868
5831
|
}]),
|
|
5869
5832
|
onClick: ae((A) => F.type !== "separator" && F.enabled && F.enabled() ? p(F.action) : null, ["stop"])
|
|
5870
5833
|
}, [
|
|
5871
|
-
F.type !== "separator" ? (v(), g("span",
|
|
5872
|
-
F.checked && F.checked() ? (v(), g("span",
|
|
5873
|
-
], 10,
|
|
5874
|
-
], 40,
|
|
5875
|
-
], 42,
|
|
5834
|
+
F.type !== "separator" ? (v(), g("span", gd, y(F.label), 1)) : T("", !0),
|
|
5835
|
+
F.checked && F.checked() ? (v(), g("span", wd, " ✓ ")) : T("", !0)
|
|
5836
|
+
], 10, md))), 128))
|
|
5837
|
+
], 40, hd)) : T("", !0)
|
|
5838
|
+
], 42, _d))), 128))
|
|
5876
5839
|
])
|
|
5877
5840
|
]));
|
|
5878
5841
|
}
|
|
5879
|
-
}),
|
|
5842
|
+
}), bd = {
|
|
5880
5843
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5881
5844
|
fill: "none",
|
|
5882
5845
|
"stroke-width": "1.5",
|
|
5883
5846
|
viewBox: "0 0 24 24"
|
|
5884
5847
|
};
|
|
5885
|
-
function
|
|
5886
|
-
return v(), g("svg",
|
|
5848
|
+
function kd(o, e) {
|
|
5849
|
+
return v(), g("svg", bd, [...e[0] || (e[0] = [
|
|
5887
5850
|
i("path", { d: "M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15" }, null, -1)
|
|
5888
5851
|
])]);
|
|
5889
5852
|
}
|
|
5890
|
-
const
|
|
5853
|
+
const $d = { render: kd }, xd = {
|
|
5891
5854
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5892
5855
|
fill: "none",
|
|
5893
5856
|
"stroke-width": "1.5",
|
|
5894
5857
|
class: "h-6 w-6 md:h-8 md:w-8 m-auto vf-toolbar-icon",
|
|
5895
5858
|
viewBox: "0 0 24 24"
|
|
5896
5859
|
};
|
|
5897
|
-
function
|
|
5898
|
-
return v(), g("svg",
|
|
5860
|
+
function Sd(o, e) {
|
|
5861
|
+
return v(), g("svg", xd, [...e[0] || (e[0] = [
|
|
5899
5862
|
i("path", { d: "M9 9V4.5M9 9H4.5M9 9 3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5 5.25 5.25" }, null, -1)
|
|
5900
5863
|
])]);
|
|
5901
5864
|
}
|
|
5902
|
-
const
|
|
5865
|
+
const Cd = { render: Sd }, Fd = {
|
|
5903
5866
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5904
5867
|
fill: "none",
|
|
5905
5868
|
"stroke-width": "1.5",
|
|
5906
5869
|
class: "h-6 w-6 md:h-8 md:w-8 m-auto",
|
|
5907
5870
|
viewBox: "0 0 24 24"
|
|
5908
5871
|
};
|
|
5909
|
-
function
|
|
5910
|
-
return v(), g("svg",
|
|
5872
|
+
function Dd(o, e) {
|
|
5873
|
+
return v(), g("svg", Fd, [...e[0] || (e[0] = [
|
|
5911
5874
|
i("path", { d: "M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25zm0 9.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18zM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25zm0 9.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18z" }, null, -1)
|
|
5912
5875
|
])]);
|
|
5913
5876
|
}
|
|
5914
|
-
const
|
|
5877
|
+
const Pd = { render: Dd }, Ed = {
|
|
5915
5878
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5916
5879
|
fill: "none",
|
|
5917
5880
|
"stroke-width": "1.5",
|
|
5918
5881
|
class: "h-6 w-6 md:h-8 md:w-8 m-auto",
|
|
5919
5882
|
viewBox: "0 0 24 24"
|
|
5920
5883
|
};
|
|
5921
|
-
function
|
|
5922
|
-
return v(), g("svg",
|
|
5884
|
+
function Md(o, e) {
|
|
5885
|
+
return v(), g("svg", Ed, [...e[0] || (e[0] = [
|
|
5923
5886
|
i("path", { d: "M3.75 12h16.5m-16.5 3.75h16.5M3.75 19.5h16.5M5.625 4.5h12.75a1.875 1.875 0 0 1 0 3.75H5.625a1.875 1.875 0 0 1 0-3.75" }, null, -1)
|
|
5924
5887
|
])]);
|
|
5925
5888
|
}
|
|
5926
|
-
const
|
|
5889
|
+
const Td = { render: Md }, Id = {
|
|
5927
5890
|
fill: "none",
|
|
5928
5891
|
stroke: "currentColor",
|
|
5929
5892
|
viewBox: "0 0 24 24"
|
|
5930
5893
|
};
|
|
5931
|
-
function
|
|
5932
|
-
return v(), g("svg",
|
|
5894
|
+
function Ad(o, e) {
|
|
5895
|
+
return v(), g("svg", Id, [...e[0] || (e[0] = [
|
|
5933
5896
|
i("path", {
|
|
5934
5897
|
"stroke-linecap": "round",
|
|
5935
5898
|
"stroke-linejoin": "round",
|
|
@@ -5938,16 +5901,16 @@ function Ld(o, e) {
|
|
|
5938
5901
|
}, null, -1)
|
|
5939
5902
|
])]);
|
|
5940
5903
|
}
|
|
5941
|
-
const
|
|
5904
|
+
const Od = { render: Ad }, Bd = { class: "vuefinder__toolbar" }, Ld = { class: "vuefinder__toolbar__actions" }, Vd = ["title"], zd = ["title"], Rd = ["title"], Nd = ["title"], Ud = ["title"], jd = ["title"], Hd = ["title"], Kd = { class: "vuefinder__toolbar__controls" }, qd = ["title"], Gd = { class: "vuefinder__toolbar__control vuefinder__toolbar__dropdown-container" }, Wd = ["title"], Yd = { class: "relative" }, Qd = {
|
|
5942
5905
|
key: 0,
|
|
5943
5906
|
class: "vuefinder__toolbar__filter-indicator"
|
|
5944
|
-
},
|
|
5907
|
+
}, Xd = {
|
|
5945
5908
|
key: 0,
|
|
5946
5909
|
class: "vuefinder__toolbar__dropdown"
|
|
5947
|
-
},
|
|
5910
|
+
}, Jd = { class: "vuefinder__toolbar__dropdown-content" }, Zd = { class: "vuefinder__toolbar__dropdown-section" }, ec = { class: "vuefinder__toolbar__dropdown-label" }, tc = { class: "vuefinder__toolbar__dropdown-row" }, nc = { value: "name" }, oc = { value: "size" }, sc = { value: "modified" }, ic = { value: "" }, ac = { value: "asc" }, rc = { value: "desc" }, lc = { class: "vuefinder__toolbar__dropdown-section" }, dc = { class: "vuefinder__toolbar__dropdown-label" }, cc = { class: "vuefinder__toolbar__dropdown-options" }, uc = { class: "vuefinder__toolbar__dropdown-option" }, vc = { class: "vuefinder__toolbar__option-text" }, fc = { class: "vuefinder__toolbar__dropdown-option" }, _c = { class: "vuefinder__toolbar__option-text" }, pc = { class: "vuefinder__toolbar__dropdown-option" }, hc = { class: "vuefinder__toolbar__option-text" }, mc = { class: "vuefinder__toolbar__dropdown-toggle" }, gc = {
|
|
5948
5911
|
for: "showHidden",
|
|
5949
5912
|
class: "vuefinder__toolbar__toggle-label"
|
|
5950
|
-
},
|
|
5913
|
+
}, wc = { class: "vuefinder__toolbar__dropdown-reset" }, yc = ["title"], bc = ["title"], kc = /* @__PURE__ */ X({
|
|
5951
5914
|
name: "VfToolbar",
|
|
5952
5915
|
__name: "Toolbar",
|
|
5953
5916
|
setup(o) {
|
|
@@ -6036,74 +5999,74 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
|
|
|
6036
5999
|
// Reset to default value
|
|
6037
6000
|
}, l.set("showHiddenFiles", !0), a.clearSort(), a.clearFilter();
|
|
6038
6001
|
};
|
|
6039
|
-
return (p, h) => (v(), g("div",
|
|
6040
|
-
i("div",
|
|
6002
|
+
return (p, h) => (v(), g("div", Bd, [
|
|
6003
|
+
i("div", Ld, [
|
|
6041
6004
|
s(t)("newfolder") ? (v(), g("div", {
|
|
6042
6005
|
key: 0,
|
|
6043
6006
|
class: "mx-1.5",
|
|
6044
6007
|
title: s(n)("New Folder"),
|
|
6045
6008
|
onClick: h[0] || (h[0] = (f) => s(e).modal.open(Ht, { items: s(r) }))
|
|
6046
6009
|
}, [
|
|
6047
|
-
O(s(
|
|
6048
|
-
], 8,
|
|
6010
|
+
O(s(En))
|
|
6011
|
+
], 8, Vd)) : T("", !0),
|
|
6049
6012
|
s(t)("newfile") ? (v(), g("div", {
|
|
6050
6013
|
key: 1,
|
|
6051
6014
|
class: "mx-1.5",
|
|
6052
6015
|
title: s(n)("New File"),
|
|
6053
|
-
onClick: h[1] || (h[1] = (f) => s(e).modal.open(
|
|
6016
|
+
onClick: h[1] || (h[1] = (f) => s(e).modal.open(Tn, { items: s(r) }))
|
|
6054
6017
|
}, [
|
|
6055
|
-
O(s(
|
|
6056
|
-
], 8,
|
|
6018
|
+
O(s(Mn))
|
|
6019
|
+
], 8, zd)) : T("", !0),
|
|
6057
6020
|
s(t)("rename") ? (v(), g("div", {
|
|
6058
6021
|
key: 2,
|
|
6059
6022
|
class: "mx-1.5",
|
|
6060
6023
|
title: s(n)("Rename"),
|
|
6061
6024
|
onClick: h[2] || (h[2] = (f) => s(r).length !== 1 || s(e).modal.open(yt, { items: s(r) }))
|
|
6062
6025
|
}, [
|
|
6063
|
-
O(s(
|
|
6026
|
+
O(s(bn), {
|
|
6064
6027
|
class: Z(s(r).length === 1 ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
|
|
6065
6028
|
}, null, 8, ["class"])
|
|
6066
|
-
], 8,
|
|
6029
|
+
], 8, Rd)) : T("", !0),
|
|
6067
6030
|
s(t)("delete") ? (v(), g("div", {
|
|
6068
6031
|
key: 3,
|
|
6069
6032
|
class: "mx-1.5",
|
|
6070
6033
|
title: s(n)("Delete"),
|
|
6071
6034
|
onClick: h[3] || (h[3] = (f) => !s(r).length || s(e).modal.open(wt, { items: s(r) }))
|
|
6072
6035
|
}, [
|
|
6073
|
-
O(s(
|
|
6036
|
+
O(s(yn), {
|
|
6074
6037
|
class: Z(s(r).length ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
|
|
6075
6038
|
}, null, 8, ["class"])
|
|
6076
|
-
], 8,
|
|
6039
|
+
], 8, Nd)) : T("", !0),
|
|
6077
6040
|
s(t)("upload") ? (v(), g("div", {
|
|
6078
6041
|
key: 4,
|
|
6079
6042
|
class: "mx-1.5",
|
|
6080
6043
|
title: s(n)("Upload"),
|
|
6081
6044
|
onClick: h[4] || (h[4] = (f) => s(e).modal.open(Kt, { items: s(r) }))
|
|
6082
6045
|
}, [
|
|
6083
|
-
O(s(
|
|
6084
|
-
], 8,
|
|
6046
|
+
O(s(In))
|
|
6047
|
+
], 8, Ud)) : T("", !0),
|
|
6085
6048
|
s(t)("unarchive") && s(r).length === 1 && s(r)[0].mime_type === "application/zip" ? (v(), g("div", {
|
|
6086
6049
|
key: 5,
|
|
6087
6050
|
class: "mx-1.5",
|
|
6088
6051
|
title: s(n)("Unarchive"),
|
|
6089
6052
|
onClick: h[5] || (h[5] = (f) => !s(r).length || s(e).modal.open(qt, { items: s(r) }))
|
|
6090
6053
|
}, [
|
|
6091
|
-
O(s(
|
|
6054
|
+
O(s(An), {
|
|
6092
6055
|
class: Z(s(r).length ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
|
|
6093
6056
|
}, null, 8, ["class"])
|
|
6094
|
-
], 8,
|
|
6057
|
+
], 8, jd)) : T("", !0),
|
|
6095
6058
|
s(t)("archive") ? (v(), g("div", {
|
|
6096
6059
|
key: 6,
|
|
6097
6060
|
class: "mx-1.5",
|
|
6098
6061
|
title: s(n)("Archive"),
|
|
6099
6062
|
onClick: h[6] || (h[6] = (f) => !s(r).length || s(e).modal.open(Gt, { items: s(r) }))
|
|
6100
6063
|
}, [
|
|
6101
|
-
O(s(
|
|
6064
|
+
O(s(On), {
|
|
6102
6065
|
class: Z(s(r).length ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
|
|
6103
6066
|
}, null, 8, ["class"])
|
|
6104
|
-
], 8,
|
|
6067
|
+
], 8, Hd)) : T("", !0)
|
|
6105
6068
|
]),
|
|
6106
|
-
i("div",
|
|
6069
|
+
i("div", Kd, [
|
|
6107
6070
|
s(t)("search") ? (v(), g("div", {
|
|
6108
6071
|
key: 0,
|
|
6109
6072
|
class: "mx-1.5",
|
|
@@ -6111,30 +6074,30 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
|
|
|
6111
6074
|
onClick: h[7] || (h[7] = (f) => s(e).modal.open(jt))
|
|
6112
6075
|
}, [
|
|
6113
6076
|
O(s(Ut), { class: "vf-toolbar-icon text-(--vf-bg-primary)" })
|
|
6114
|
-
], 8,
|
|
6115
|
-
i("div",
|
|
6077
|
+
], 8, qd)) : T("", !0),
|
|
6078
|
+
i("div", Gd, [
|
|
6116
6079
|
i("div", {
|
|
6117
6080
|
title: s(n)("Filter"),
|
|
6118
6081
|
class: "vuefinder__toolbar__dropdown-trigger",
|
|
6119
6082
|
onClick: h[8] || (h[8] = (f) => m.value = !m.value)
|
|
6120
6083
|
}, [
|
|
6121
|
-
i("div",
|
|
6122
|
-
O(s(
|
|
6123
|
-
D.value ? (v(), g("div",
|
|
6084
|
+
i("div", Yd, [
|
|
6085
|
+
O(s(Od), { class: "vf-toolbar-icon vuefinder__toolbar__icon h-6 w-6" }),
|
|
6086
|
+
D.value ? (v(), g("div", Qd)) : T("", !0)
|
|
6124
6087
|
])
|
|
6125
|
-
], 8,
|
|
6126
|
-
m.value ? (v(), g("div",
|
|
6127
|
-
i("div",
|
|
6128
|
-
i("div",
|
|
6129
|
-
i("div",
|
|
6130
|
-
i("div",
|
|
6088
|
+
], 8, Wd),
|
|
6089
|
+
m.value ? (v(), g("div", Xd, [
|
|
6090
|
+
i("div", Jd, [
|
|
6091
|
+
i("div", Zd, [
|
|
6092
|
+
i("div", ec, y(s(n)("Sorting")), 1),
|
|
6093
|
+
i("div", tc, [
|
|
6131
6094
|
pe(i("select", {
|
|
6132
6095
|
"onUpdate:modelValue": h[9] || (h[9] = (f) => u.value.sortBy = f),
|
|
6133
6096
|
class: "vuefinder__toolbar__dropdown-select"
|
|
6134
6097
|
}, [
|
|
6135
|
-
i("option",
|
|
6136
|
-
i("option",
|
|
6137
|
-
i("option",
|
|
6098
|
+
i("option", nc, y(s(n)("Name")), 1),
|
|
6099
|
+
i("option", oc, y(s(n)("Size")), 1),
|
|
6100
|
+
i("option", sc, y(s(n)("Date")), 1)
|
|
6138
6101
|
], 512), [
|
|
6139
6102
|
[Ft, u.value.sortBy]
|
|
6140
6103
|
]),
|
|
@@ -6142,18 +6105,18 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
|
|
|
6142
6105
|
"onUpdate:modelValue": h[10] || (h[10] = (f) => u.value.sortOrder = f),
|
|
6143
6106
|
class: "vuefinder__toolbar__dropdown-select"
|
|
6144
6107
|
}, [
|
|
6145
|
-
i("option",
|
|
6146
|
-
i("option",
|
|
6147
|
-
i("option",
|
|
6108
|
+
i("option", ic, y(s(n)("None")), 1),
|
|
6109
|
+
i("option", ac, y(s(n)("Asc")), 1),
|
|
6110
|
+
i("option", rc, y(s(n)("Desc")), 1)
|
|
6148
6111
|
], 512), [
|
|
6149
6112
|
[Ft, u.value.sortOrder]
|
|
6150
6113
|
])
|
|
6151
6114
|
])
|
|
6152
6115
|
]),
|
|
6153
|
-
i("div",
|
|
6154
|
-
i("div",
|
|
6155
|
-
i("div",
|
|
6156
|
-
i("label",
|
|
6116
|
+
i("div", lc, [
|
|
6117
|
+
i("div", dc, y(s(n)("Show")), 1),
|
|
6118
|
+
i("div", cc, [
|
|
6119
|
+
i("label", uc, [
|
|
6157
6120
|
pe(i("input", {
|
|
6158
6121
|
"onUpdate:modelValue": h[11] || (h[11] = (f) => u.value.filterKind = f),
|
|
6159
6122
|
type: "radio",
|
|
@@ -6163,9 +6126,9 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
|
|
|
6163
6126
|
}, null, 512), [
|
|
6164
6127
|
[St, u.value.filterKind]
|
|
6165
6128
|
]),
|
|
6166
|
-
i("span",
|
|
6129
|
+
i("span", vc, y(s(n)("All items")), 1)
|
|
6167
6130
|
]),
|
|
6168
|
-
i("label",
|
|
6131
|
+
i("label", fc, [
|
|
6169
6132
|
pe(i("input", {
|
|
6170
6133
|
"onUpdate:modelValue": h[12] || (h[12] = (f) => u.value.filterKind = f),
|
|
6171
6134
|
type: "radio",
|
|
@@ -6175,9 +6138,9 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
|
|
|
6175
6138
|
}, null, 512), [
|
|
6176
6139
|
[St, u.value.filterKind]
|
|
6177
6140
|
]),
|
|
6178
|
-
i("span",
|
|
6141
|
+
i("span", _c, y(s(n)("Files only")), 1)
|
|
6179
6142
|
]),
|
|
6180
|
-
i("label",
|
|
6143
|
+
i("label", pc, [
|
|
6181
6144
|
pe(i("input", {
|
|
6182
6145
|
"onUpdate:modelValue": h[13] || (h[13] = (f) => u.value.filterKind = f),
|
|
6183
6146
|
type: "radio",
|
|
@@ -6187,12 +6150,12 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
|
|
|
6187
6150
|
}, null, 512), [
|
|
6188
6151
|
[St, u.value.filterKind]
|
|
6189
6152
|
]),
|
|
6190
|
-
i("span",
|
|
6153
|
+
i("span", hc, y(s(n)("Folders only")), 1)
|
|
6191
6154
|
])
|
|
6192
6155
|
])
|
|
6193
6156
|
]),
|
|
6194
|
-
i("div",
|
|
6195
|
-
i("label",
|
|
6157
|
+
i("div", mc, [
|
|
6158
|
+
i("label", gc, y(s(n)("Show hidden files")), 1),
|
|
6196
6159
|
pe(i("input", {
|
|
6197
6160
|
id: "showHidden",
|
|
6198
6161
|
"onUpdate:modelValue": h[14] || (h[14] = (f) => u.value.showHidden = f),
|
|
@@ -6202,7 +6165,7 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
|
|
|
6202
6165
|
[mt, u.value.showHidden]
|
|
6203
6166
|
])
|
|
6204
6167
|
]),
|
|
6205
|
-
i("div",
|
|
6168
|
+
i("div", wc, [
|
|
6206
6169
|
i("button", {
|
|
6207
6170
|
class: "vuefinder__toolbar__reset-button",
|
|
6208
6171
|
onClick: S
|
|
@@ -6217,50 +6180,50 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
|
|
|
6217
6180
|
title: s(n)("Toggle Full Screen"),
|
|
6218
6181
|
onClick: h[15] || (h[15] = (f) => s(l).toggle("fullScreen"))
|
|
6219
6182
|
}, [
|
|
6220
|
-
s(d).fullScreen ? (v(), L(s(
|
|
6183
|
+
s(d).fullScreen ? (v(), L(s(Cd), {
|
|
6221
6184
|
key: 0,
|
|
6222
6185
|
class: "vf-toolbar-icon"
|
|
6223
|
-
})) : (v(), L(s(
|
|
6186
|
+
})) : (v(), L(s($d), {
|
|
6224
6187
|
key: 1,
|
|
6225
6188
|
class: "vf-toolbar-icon"
|
|
6226
6189
|
}))
|
|
6227
|
-
], 8,
|
|
6190
|
+
], 8, yc)) : T("", !0),
|
|
6228
6191
|
i("div", {
|
|
6229
6192
|
class: "mx-1.5",
|
|
6230
6193
|
title: s(n)("Change View"),
|
|
6231
6194
|
onClick: h[16] || (h[16] = (f) => $())
|
|
6232
6195
|
}, [
|
|
6233
|
-
s(d).view === "grid" ? (v(), L(s(
|
|
6196
|
+
s(d).view === "grid" ? (v(), L(s(Pd), {
|
|
6234
6197
|
key: 0,
|
|
6235
6198
|
class: "vf-toolbar-icon"
|
|
6236
6199
|
})) : T("", !0),
|
|
6237
|
-
s(d).view === "list" ? (v(), L(s(
|
|
6200
|
+
s(d).view === "list" ? (v(), L(s(Td), {
|
|
6238
6201
|
key: 1,
|
|
6239
6202
|
class: "vf-toolbar-icon"
|
|
6240
6203
|
})) : T("", !0)
|
|
6241
|
-
], 8,
|
|
6204
|
+
], 8, bc)
|
|
6242
6205
|
])
|
|
6243
6206
|
]));
|
|
6244
6207
|
}
|
|
6245
|
-
}),
|
|
6208
|
+
}), $c = {
|
|
6246
6209
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6247
6210
|
fill: "currentColor",
|
|
6248
6211
|
class: "vuefinder__breadcrumb__refresh-icon",
|
|
6249
6212
|
viewBox: "-40 -40 580 580"
|
|
6250
6213
|
};
|
|
6251
|
-
function
|
|
6252
|
-
return v(), g("svg",
|
|
6214
|
+
function xc(o, e) {
|
|
6215
|
+
return v(), g("svg", $c, [...e[0] || (e[0] = [
|
|
6253
6216
|
i("path", { d: "M463.5 224h8.5c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2S461.9 48.1 455 55l-41.6 41.6c-87.6-86.5-228.7-86.2-315.8 1-87.5 87.5-87.5 229.3 0 316.8s229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2S334.3 224 344 224z" }, null, -1)
|
|
6254
6217
|
])]);
|
|
6255
6218
|
}
|
|
6256
|
-
const
|
|
6219
|
+
const Sc = { render: xc }, Cc = {
|
|
6257
6220
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6258
6221
|
fill: "currentColor",
|
|
6259
6222
|
class: "h-6 w-6 p-0.5 rounded",
|
|
6260
6223
|
viewBox: "0 0 20 20"
|
|
6261
6224
|
};
|
|
6262
|
-
function
|
|
6263
|
-
return v(), g("svg",
|
|
6225
|
+
function Fc(o, e) {
|
|
6226
|
+
return v(), g("svg", Cc, [...e[0] || (e[0] = [
|
|
6264
6227
|
i("path", {
|
|
6265
6228
|
"fill-rule": "evenodd",
|
|
6266
6229
|
d: "M5.293 9.707a1 1 0 0 1 0-1.414l4-4a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1-1.414 1.414L11 7.414V15a1 1 0 1 1-2 0V7.414L6.707 9.707a1 1 0 0 1-1.414 0",
|
|
@@ -6269,7 +6232,7 @@ function Ec(o, e) {
|
|
|
6269
6232
|
}, null, -1)
|
|
6270
6233
|
])]);
|
|
6271
6234
|
}
|
|
6272
|
-
const
|
|
6235
|
+
const Dc = { render: Fc }, Pc = {
|
|
6273
6236
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6274
6237
|
fill: "none",
|
|
6275
6238
|
stroke: "currentColor",
|
|
@@ -6277,8 +6240,8 @@ const Mc = { render: Ec }, Tc = {
|
|
|
6277
6240
|
class: "vuefinder__breadcrumb__close-icon",
|
|
6278
6241
|
viewBox: "0 0 24 24"
|
|
6279
6242
|
};
|
|
6280
|
-
function
|
|
6281
|
-
return v(), g("svg",
|
|
6243
|
+
function Ec(o, e) {
|
|
6244
|
+
return v(), g("svg", Pc, [...e[0] || (e[0] = [
|
|
6282
6245
|
i("path", {
|
|
6283
6246
|
"stroke-linecap": "round",
|
|
6284
6247
|
"stroke-linejoin": "round",
|
|
@@ -6286,20 +6249,20 @@ function Ic(o, e) {
|
|
|
6286
6249
|
}, null, -1)
|
|
6287
6250
|
])]);
|
|
6288
6251
|
}
|
|
6289
|
-
const
|
|
6252
|
+
const Mc = { render: Ec }, Tc = {
|
|
6290
6253
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6291
6254
|
fill: "currentColor",
|
|
6292
6255
|
viewBox: "0 0 20 20"
|
|
6293
6256
|
};
|
|
6294
|
-
function
|
|
6295
|
-
return v(), g("svg",
|
|
6257
|
+
function Ic(o, e) {
|
|
6258
|
+
return v(), g("svg", Tc, [...e[0] || (e[0] = [
|
|
6296
6259
|
i("path", {
|
|
6297
6260
|
d: "M10.707 2.293a1 1 0 0 0-1.414 0l-7 7a1 1 0 0 0 1.414 1.414L4 10.414V17a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-6.586l.293.293a1 1 0 0 0 1.414-1.414z",
|
|
6298
6261
|
class: "pointer-events-none"
|
|
6299
6262
|
}, null, -1)
|
|
6300
6263
|
])]);
|
|
6301
6264
|
}
|
|
6302
|
-
const
|
|
6265
|
+
const Ac = { render: Ic }, Oc = {
|
|
6303
6266
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6304
6267
|
fill: "none",
|
|
6305
6268
|
stroke: "currentColor",
|
|
@@ -6307,8 +6270,8 @@ const Lc = { render: Bc }, Vc = {
|
|
|
6307
6270
|
class: "w-6 h-6 cursor-pointer",
|
|
6308
6271
|
viewBox: "0 0 24 24"
|
|
6309
6272
|
};
|
|
6310
|
-
function
|
|
6311
|
-
return v(), g("svg",
|
|
6273
|
+
function Bc(o, e) {
|
|
6274
|
+
return v(), g("svg", Oc, [...e[0] || (e[0] = [
|
|
6312
6275
|
i("path", {
|
|
6313
6276
|
"stroke-linecap": "round",
|
|
6314
6277
|
"stroke-linejoin": "round",
|
|
@@ -6316,7 +6279,7 @@ function zc(o, e) {
|
|
|
6316
6279
|
}, null, -1)
|
|
6317
6280
|
])]);
|
|
6318
6281
|
}
|
|
6319
|
-
const
|
|
6282
|
+
const Lc = { render: Bc }, Vc = {
|
|
6320
6283
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6321
6284
|
fill: "none",
|
|
6322
6285
|
stroke: "currentColor",
|
|
@@ -6325,8 +6288,8 @@ const Rc = { render: zc }, Nc = {
|
|
|
6325
6288
|
"stroke-width": "2",
|
|
6326
6289
|
viewBox: "0 0 24 24"
|
|
6327
6290
|
};
|
|
6328
|
-
function
|
|
6329
|
-
return v(), g("svg",
|
|
6291
|
+
function zc(o, e) {
|
|
6292
|
+
return v(), g("svg", Vc, [...e[0] || (e[0] = [
|
|
6330
6293
|
i("path", {
|
|
6331
6294
|
stroke: "none",
|
|
6332
6295
|
d: "M0 0h24v24H0z"
|
|
@@ -6334,14 +6297,14 @@ function Uc(o, e) {
|
|
|
6334
6297
|
i("path", { d: "M9 6h11M12 12h8M15 18h5M5 6v.01M8 12v.01M11 18v.01" }, null, -1)
|
|
6335
6298
|
])]);
|
|
6336
6299
|
}
|
|
6337
|
-
const
|
|
6300
|
+
const Rc = { render: zc }, Nc = {
|
|
6338
6301
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6339
6302
|
fill: "none",
|
|
6340
6303
|
stroke: "currentColor",
|
|
6341
6304
|
viewBox: "0 0 24 24"
|
|
6342
6305
|
};
|
|
6343
|
-
function
|
|
6344
|
-
return v(), g("svg",
|
|
6306
|
+
function Uc(o, e) {
|
|
6307
|
+
return v(), g("svg", Nc, [...e[0] || (e[0] = [
|
|
6345
6308
|
i("path", {
|
|
6346
6309
|
"stroke-linecap": "round",
|
|
6347
6310
|
"stroke-linejoin": "round",
|
|
@@ -6350,7 +6313,7 @@ function Kc(o, e) {
|
|
|
6350
6313
|
}, null, -1)
|
|
6351
6314
|
])]);
|
|
6352
6315
|
}
|
|
6353
|
-
const
|
|
6316
|
+
const jc = { render: Uc };
|
|
6354
6317
|
function vt(o, e = []) {
|
|
6355
6318
|
const t = "vfDragEnterCounter", n = o.fs, a = W(n.selectedItems);
|
|
6356
6319
|
function l(w, u) {
|
|
@@ -6401,13 +6364,13 @@ function vt(o, e = []) {
|
|
|
6401
6364
|
}
|
|
6402
6365
|
return { events: m };
|
|
6403
6366
|
}
|
|
6404
|
-
const
|
|
6367
|
+
const Hc = { class: "vuefinder__breadcrumb__container" }, Kc = ["title"], qc = ["title"], Gc = ["title"], Wc = ["title"], Yc = { class: "vuefinder__breadcrumb__path-container" }, Qc = { class: "vuefinder__breadcrumb__list" }, Xc = {
|
|
6405
6368
|
key: 0,
|
|
6406
6369
|
class: "vuefinder__breadcrumb__hidden-list"
|
|
6407
|
-
},
|
|
6370
|
+
}, Jc = { class: "relative" }, Zc = ["title", "onClick"], eu = ["title"], tu = { class: "vuefinder__breadcrumb__path-mode" }, nu = { class: "vuefinder__breadcrumb__path-mode-content" }, ou = ["title"], su = { class: "vuefinder__breadcrumb__path-text" }, iu = ["title"], au = ["data-theme"], ru = ["onClick"], lu = { class: "vuefinder__breadcrumb__hidden-item-content" }, du = { class: "vuefinder__breadcrumb__hidden-item-text" }, cu = /* @__PURE__ */ X({
|
|
6408
6371
|
__name: "Breadcrumb",
|
|
6409
6372
|
setup(o) {
|
|
6410
|
-
const e = J(), { t } = e.i18n, n = e.fs, a = e.config, l = W(a.state), d = W(n.path), r = W(n.loading), c = M(null), _ =
|
|
6373
|
+
const e = J(), { t } = e.i18n, n = e.fs, a = e.config, l = W(a.state), d = W(n.path), r = W(n.loading), c = M(null), _ = xn(0, 100), m = M(5), w = M(!1), u = M(!1), $ = N(() => d.value?.breadcrumb ?? []);
|
|
6411
6374
|
function D(z, x) {
|
|
6412
6375
|
return z.length > x ? [z.slice(-x), z.slice(0, -x)] : [z, []];
|
|
6413
6376
|
}
|
|
@@ -6492,51 +6455,51 @@ const Gc = { class: "vuefinder__breadcrumb__container" }, Wc = ["title"], Yc = [
|
|
|
6492
6455
|
}, j = () => {
|
|
6493
6456
|
u.value = !1;
|
|
6494
6457
|
};
|
|
6495
|
-
return (z, x) => (v(), g("div",
|
|
6458
|
+
return (z, x) => (v(), g("div", Hc, [
|
|
6496
6459
|
i("span", {
|
|
6497
6460
|
title: s(t)("Toggle Tree View")
|
|
6498
6461
|
}, [
|
|
6499
|
-
O(s(
|
|
6462
|
+
O(s(Rc), {
|
|
6500
6463
|
class: Z(["vuefinder__breadcrumb__toggle-tree", s(l).showTreeView ? "vuefinder__breadcrumb__toggle-tree--active" : ""]),
|
|
6501
6464
|
onClick: ne
|
|
6502
6465
|
}, null, 8, ["class"])
|
|
6503
|
-
], 8,
|
|
6466
|
+
], 8, Kc),
|
|
6504
6467
|
i("span", {
|
|
6505
6468
|
title: s(t)("Go up a directory")
|
|
6506
6469
|
}, [
|
|
6507
|
-
O(s(
|
|
6470
|
+
O(s(Dc), Me({
|
|
6508
6471
|
class: $.value.length ? "vuefinder__breadcrumb__go-up--active" : "vuefinder__breadcrumb__go-up--inactive"
|
|
6509
6472
|
}, Re($.value.length ? s(k).events(C()) : {}), { onClick: A }), null, 16, ["class"])
|
|
6510
|
-
], 8,
|
|
6473
|
+
], 8, qc),
|
|
6511
6474
|
s(n).isLoading() ? (v(), g("span", {
|
|
6512
6475
|
key: 1,
|
|
6513
6476
|
title: s(t)("Cancel")
|
|
6514
6477
|
}, [
|
|
6515
|
-
O(s(
|
|
6478
|
+
O(s(Mc), {
|
|
6516
6479
|
onClick: x[0] || (x[0] = (b) => s(e).emitter.emit("vf-fetch-abort"))
|
|
6517
6480
|
})
|
|
6518
|
-
], 8,
|
|
6481
|
+
], 8, Wc)) : (v(), g("span", {
|
|
6519
6482
|
key: 0,
|
|
6520
6483
|
title: s(t)("Refresh")
|
|
6521
6484
|
}, [
|
|
6522
|
-
O(s(
|
|
6523
|
-
], 8,
|
|
6524
|
-
pe(i("div",
|
|
6485
|
+
O(s(Sc), { onClick: F })
|
|
6486
|
+
], 8, Gc)),
|
|
6487
|
+
pe(i("div", Yc, [
|
|
6525
6488
|
i("div", null, [
|
|
6526
|
-
O(s(
|
|
6489
|
+
O(s(Ac), Me({ class: "vuefinder__breadcrumb__home-icon" }, Re(s(k).events(C(-1))), {
|
|
6527
6490
|
onClick: x[1] || (x[1] = ae((b) => s(e).adapter.open(s(d).storage + "://"), ["stop"]))
|
|
6528
6491
|
}), null, 16)
|
|
6529
6492
|
]),
|
|
6530
|
-
i("div",
|
|
6531
|
-
p.value.length ? pe((v(), g("div",
|
|
6493
|
+
i("div", Qc, [
|
|
6494
|
+
p.value.length ? pe((v(), g("div", Xc, [
|
|
6532
6495
|
x[3] || (x[3] = i("div", { class: "vuefinder__breadcrumb__separator" }, "/", -1)),
|
|
6533
|
-
i("div",
|
|
6496
|
+
i("div", Jc, [
|
|
6534
6497
|
i("span", {
|
|
6535
6498
|
class: "vuefinder__breadcrumb__hidden-toggle",
|
|
6536
6499
|
onDragenter: x[2] || (x[2] = (b) => ee(b, !0)),
|
|
6537
6500
|
onClick: ae(ee, ["stop"])
|
|
6538
6501
|
}, [
|
|
6539
|
-
O(s(
|
|
6502
|
+
O(s(Dn), { class: "vuefinder__breadcrumb__hidden-toggle-icon" })
|
|
6540
6503
|
], 32)
|
|
6541
6504
|
])
|
|
6542
6505
|
])), [
|
|
@@ -6555,7 +6518,7 @@ const Gc = { class: "vuefinder__breadcrumb__container" }, Wc = ["title"], Yc = [
|
|
|
6555
6518
|
title: b.basename
|
|
6556
6519
|
}, Re(s(k).events(b), !0), {
|
|
6557
6520
|
onClick: ae((I) => s(e).adapter.open(b.path), ["stop"])
|
|
6558
|
-
}), y(b.name), 17,
|
|
6521
|
+
}), y(b.name), 17, Zc)
|
|
6559
6522
|
]))), 128))
|
|
6560
6523
|
], 512),
|
|
6561
6524
|
s(a).get("loadingIndicator") === "circular" && s(r) ? (v(), L(s(xt), { key: 0 })) : T("", !0),
|
|
@@ -6563,13 +6526,13 @@ const Gc = { class: "vuefinder__breadcrumb__container" }, Wc = ["title"], Yc = [
|
|
|
6563
6526
|
title: s(t)("Toggle Path Copy Mode"),
|
|
6564
6527
|
onClick: E
|
|
6565
6528
|
}, [
|
|
6566
|
-
O(s(
|
|
6567
|
-
], 8,
|
|
6529
|
+
O(s(jc), { class: "vuefinder__breadcrumb__toggle-icon" })
|
|
6530
|
+
], 8, eu)
|
|
6568
6531
|
], 512), [
|
|
6569
6532
|
[Le, !u.value]
|
|
6570
6533
|
]),
|
|
6571
|
-
pe(i("div",
|
|
6572
|
-
i("div",
|
|
6534
|
+
pe(i("div", tu, [
|
|
6535
|
+
i("div", nu, [
|
|
6573
6536
|
i("div", {
|
|
6574
6537
|
title: s(t)("Copy Path")
|
|
6575
6538
|
}, [
|
|
@@ -6577,16 +6540,16 @@ const Gc = { class: "vuefinder__breadcrumb__container" }, Wc = ["title"], Yc = [
|
|
|
6577
6540
|
class: "vuefinder__breadcrumb__copy-icon",
|
|
6578
6541
|
onClick: q
|
|
6579
6542
|
})
|
|
6580
|
-
], 8,
|
|
6581
|
-
i("div",
|
|
6543
|
+
], 8, ou),
|
|
6544
|
+
i("div", su, y(s(d).path), 1),
|
|
6582
6545
|
i("div", {
|
|
6583
6546
|
title: s(t)("Exit")
|
|
6584
6547
|
}, [
|
|
6585
|
-
O(s(
|
|
6548
|
+
O(s(Lc), {
|
|
6586
6549
|
class: "vuefinder__breadcrumb__exit-icon",
|
|
6587
6550
|
onClick: j
|
|
6588
6551
|
})
|
|
6589
|
-
], 8,
|
|
6552
|
+
], 8, iu)
|
|
6590
6553
|
])
|
|
6591
6554
|
], 512), [
|
|
6592
6555
|
[Le, u.value]
|
|
@@ -6608,28 +6571,28 @@ const Gc = { class: "vuefinder__breadcrumb__container" }, Wc = ["title"], Yc = [
|
|
|
6608
6571
|
}, Re(s(k).events(b), !0), {
|
|
6609
6572
|
onClick: (I) => B(b)
|
|
6610
6573
|
}), [
|
|
6611
|
-
i("div",
|
|
6574
|
+
i("div", lu, [
|
|
6612
6575
|
i("span", null, [
|
|
6613
6576
|
O(s(Oe), { class: "vuefinder__breadcrumb__hidden-item-icon" })
|
|
6614
6577
|
]),
|
|
6615
|
-
i("span",
|
|
6578
|
+
i("span", du, y(b.name), 1)
|
|
6616
6579
|
])
|
|
6617
|
-
], 16,
|
|
6618
|
-
], 12,
|
|
6580
|
+
], 16, ru))), 128))
|
|
6581
|
+
], 12, au), [
|
|
6619
6582
|
[Le, w.value]
|
|
6620
6583
|
])
|
|
6621
6584
|
])
|
|
6622
6585
|
]))
|
|
6623
6586
|
]));
|
|
6624
6587
|
}
|
|
6625
|
-
}),
|
|
6588
|
+
}), uu = {
|
|
6626
6589
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6627
6590
|
fill: "none",
|
|
6628
6591
|
stroke: "currentColor",
|
|
6629
6592
|
viewBox: "0 0 24 24"
|
|
6630
6593
|
};
|
|
6631
|
-
function
|
|
6632
|
-
return v(), g("svg",
|
|
6594
|
+
function vu(o, e) {
|
|
6595
|
+
return v(), g("svg", uu, [...e[0] || (e[0] = [
|
|
6633
6596
|
i("path", {
|
|
6634
6597
|
"stroke-linecap": "round",
|
|
6635
6598
|
"stroke-linejoin": "round",
|
|
@@ -6637,26 +6600,26 @@ function pu(o, e) {
|
|
|
6637
6600
|
}, null, -1)
|
|
6638
6601
|
])]);
|
|
6639
6602
|
}
|
|
6640
|
-
const
|
|
6603
|
+
const on = { render: vu }, fu = { class: "vuefinder__drag-item__container" }, _u = { class: "vuefinder__drag-item__count" }, pu = /* @__PURE__ */ X({
|
|
6641
6604
|
__name: "DragItem",
|
|
6642
6605
|
props: {
|
|
6643
6606
|
count: {}
|
|
6644
6607
|
},
|
|
6645
6608
|
setup(o) {
|
|
6646
6609
|
const e = o;
|
|
6647
|
-
return (t, n) => (v(), g("div",
|
|
6648
|
-
e.count > 1 ? (v(), L(s(
|
|
6610
|
+
return (t, n) => (v(), g("div", fu, [
|
|
6611
|
+
e.count > 1 ? (v(), L(s(on), {
|
|
6649
6612
|
key: 0,
|
|
6650
6613
|
class: "vuefinder__drag-item__icon translate-x-1 translate-y-1"
|
|
6651
6614
|
})) : T("", !0),
|
|
6652
|
-
O(s(
|
|
6653
|
-
i("div",
|
|
6615
|
+
O(s(on), { class: "vuefinder__drag-item__icon" }),
|
|
6616
|
+
i("div", _u, y(e.count), 1)
|
|
6654
6617
|
]));
|
|
6655
6618
|
}
|
|
6656
|
-
}),
|
|
6619
|
+
}), hu = {
|
|
6657
6620
|
key: 2,
|
|
6658
6621
|
class: "vuefinder__item-icon__extension"
|
|
6659
|
-
},
|
|
6622
|
+
}, sn = /* @__PURE__ */ X({
|
|
6660
6623
|
__name: "ItemIcon",
|
|
6661
6624
|
props: {
|
|
6662
6625
|
item: {},
|
|
@@ -6680,17 +6643,17 @@ const sn = { render: pu }, hu = { class: "vuefinder__drag-item__container" }, mu
|
|
|
6680
6643
|
key: 1,
|
|
6681
6644
|
class: "vuefinder__item-icon__file"
|
|
6682
6645
|
})),
|
|
6683
|
-
o.ext && o.item.type !== "dir" && o.item.extension ? (v(), g("div",
|
|
6646
|
+
o.ext && o.item.type !== "dir" && o.item.extension ? (v(), g("div", hu, y(o.item.extension.substring(0, 3)), 1)) : T("", !0)
|
|
6684
6647
|
])
|
|
6685
6648
|
], 2));
|
|
6686
6649
|
}
|
|
6687
|
-
}),
|
|
6650
|
+
}), mu = {
|
|
6688
6651
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6689
6652
|
fill: "currentColor",
|
|
6690
6653
|
viewBox: "0 0 24 24"
|
|
6691
6654
|
};
|
|
6692
|
-
function
|
|
6693
|
-
return v(), g("svg",
|
|
6655
|
+
function gu(o, e) {
|
|
6656
|
+
return v(), g("svg", mu, [...e[0] || (e[0] = [
|
|
6694
6657
|
i("path", {
|
|
6695
6658
|
fill: "none",
|
|
6696
6659
|
d: "M0 0h24v24H0z"
|
|
@@ -6698,19 +6661,19 @@ function bu(o, e) {
|
|
|
6698
6661
|
i("path", { d: "M12 2a5 5 0 0 1 5 5v3a3 3 0 0 1 3 3v6a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3v-6a3 3 0 0 1 3-3V7a5 5 0 0 1 5-5m0 12a2 2 0 0 0-1.995 1.85L10 16a2 2 0 1 0 2-2m0-10a3 3 0 0 0-3 3v3h6V7a3 3 0 0 0-3-3" }, null, -1)
|
|
6699
6662
|
])]);
|
|
6700
6663
|
}
|
|
6701
|
-
const
|
|
6664
|
+
const an = { render: gu }, wu = ["data-key", "data-row", "data-col", "draggable"], yu = { key: 0 }, bu = { class: "vuefinder__explorer__item-grid-content" }, ku = ["data-src", "alt"], $u = { class: "vuefinder__explorer__item-title" }, xu = {
|
|
6702
6665
|
key: 1,
|
|
6703
6666
|
class: "vuefinder__explorer__item-list-content"
|
|
6704
|
-
},
|
|
6667
|
+
}, Su = { class: "vuefinder__explorer__item-list-name" }, Cu = { class: "vuefinder__explorer__item-list-icon" }, Fu = { class: "vuefinder__explorer__item-name" }, Du = {
|
|
6705
6668
|
key: 0,
|
|
6706
6669
|
class: "vuefinder__explorer__item-path"
|
|
6707
|
-
},
|
|
6670
|
+
}, Pu = {
|
|
6708
6671
|
key: 1,
|
|
6709
6672
|
class: "vuefinder__explorer__item-size"
|
|
6710
|
-
},
|
|
6673
|
+
}, Eu = { key: 0 }, Mu = {
|
|
6711
6674
|
key: 2,
|
|
6712
6675
|
class: "vuefinder__explorer__item-date"
|
|
6713
|
-
},
|
|
6676
|
+
}, Tu = /* @__PURE__ */ X({
|
|
6714
6677
|
__name: "FileItem",
|
|
6715
6678
|
props: {
|
|
6716
6679
|
item: {},
|
|
@@ -6793,13 +6756,13 @@ const rn = { render: bu }, ku = ["data-key", "data-row", "data-col", "draggable"
|
|
|
6793
6756
|
onDragstart: R,
|
|
6794
6757
|
onDragend: ee[6] || (ee[6] = (E) => n("dragend", E))
|
|
6795
6758
|
}, [
|
|
6796
|
-
o.view === "grid" ? (v(), g("div",
|
|
6797
|
-
s(l).isReadOnly(o.item) ? (v(), L(s(
|
|
6759
|
+
o.view === "grid" ? (v(), g("div", yu, [
|
|
6760
|
+
s(l).isReadOnly(o.item) ? (v(), L(s(an), {
|
|
6798
6761
|
key: 0,
|
|
6799
6762
|
class: "vuefinder__item--readonly vuefinder__item--readonly--left",
|
|
6800
6763
|
title: "Read Only"
|
|
6801
6764
|
})) : T("", !0),
|
|
6802
|
-
i("div",
|
|
6765
|
+
i("div", bu, [
|
|
6803
6766
|
(o.item.mime_type ?? "").startsWith("image") && o.showThumbnails ? (v(), g("img", {
|
|
6804
6767
|
key: 0,
|
|
6805
6768
|
src: "data:image/png;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",
|
|
@@ -6807,7 +6770,7 @@ const rn = { render: bu }, ku = ["data-key", "data-row", "data-col", "draggable"
|
|
|
6807
6770
|
"data-src": o.item.previewUrl ?? s(a).adapter.getPreviewUrl({ path: o.item.path }),
|
|
6808
6771
|
alt: o.item.basename,
|
|
6809
6772
|
onTouchstart: ee[0] || (ee[0] = (E) => E.preventDefault())
|
|
6810
|
-
}, null, 40,
|
|
6773
|
+
}, null, 40, ku)) : (v(), L(sn, {
|
|
6811
6774
|
key: 1,
|
|
6812
6775
|
item: o.item,
|
|
6813
6776
|
ext: !0
|
|
@@ -6818,11 +6781,11 @@ const rn = { render: bu }, ku = ["data-key", "data-row", "data-col", "draggable"
|
|
|
6818
6781
|
_: 3
|
|
6819
6782
|
}, 8, ["item"]))
|
|
6820
6783
|
]),
|
|
6821
|
-
i("span",
|
|
6822
|
-
])) : (v(), g("div",
|
|
6823
|
-
i("div",
|
|
6824
|
-
i("div",
|
|
6825
|
-
O(
|
|
6784
|
+
i("span", $u, y(s(Et)(o.item.basename)), 1)
|
|
6785
|
+
])) : (v(), g("div", xu, [
|
|
6786
|
+
i("div", Su, [
|
|
6787
|
+
i("div", Cu, [
|
|
6788
|
+
O(sn, {
|
|
6826
6789
|
item: o.item,
|
|
6827
6790
|
small: o.compact
|
|
6828
6791
|
}, {
|
|
@@ -6832,28 +6795,28 @@ const rn = { render: bu }, ku = ["data-key", "data-row", "data-col", "draggable"
|
|
|
6832
6795
|
_: 3
|
|
6833
6796
|
}, 8, ["item", "small"])
|
|
6834
6797
|
]),
|
|
6835
|
-
i("span",
|
|
6798
|
+
i("span", Fu, y(o.item.basename), 1),
|
|
6836
6799
|
i("div", null, [
|
|
6837
|
-
s(l).isReadOnly(o.item) ? (v(), L(s(
|
|
6800
|
+
s(l).isReadOnly(o.item) ? (v(), L(s(an), {
|
|
6838
6801
|
key: 0,
|
|
6839
6802
|
class: "vuefinder__item--readonly vuefinder__item--readonly--list",
|
|
6840
6803
|
title: "Read Only"
|
|
6841
6804
|
})) : T("", !0)
|
|
6842
6805
|
])
|
|
6843
6806
|
]),
|
|
6844
|
-
o.showPath ? (v(), g("div",
|
|
6845
|
-
o.showPath ? T("", !0) : (v(), g("div",
|
|
6846
|
-
o.item.file_size ? (v(), g("div",
|
|
6807
|
+
o.showPath ? (v(), g("div", Du, y(o.item.path), 1)) : T("", !0),
|
|
6808
|
+
o.showPath ? T("", !0) : (v(), g("div", Pu, [
|
|
6809
|
+
o.item.file_size ? (v(), g("div", Eu, y(s(a).filesize(o.item.file_size)), 1)) : T("", !0)
|
|
6847
6810
|
])),
|
|
6848
|
-
!o.showPath && o.item.last_modified ? (v(), g("div",
|
|
6811
|
+
!o.showPath && o.item.last_modified ? (v(), g("div", Mu, y(new Date(o.item.last_modified * 1e3).toLocaleString()), 1)) : T("", !0)
|
|
6849
6812
|
])),
|
|
6850
6813
|
s(h)("pinned") && s(d).get("pinnedFolders").find((E) => E.path === o.item.path) ? (v(), L(s(Lt), {
|
|
6851
6814
|
key: 2,
|
|
6852
6815
|
class: "vuefinder__item--pinned"
|
|
6853
6816
|
})) : T("", !0)
|
|
6854
|
-
], 46,
|
|
6817
|
+
], 46, wu));
|
|
6855
6818
|
}
|
|
6856
|
-
}),
|
|
6819
|
+
}), Iu = ["data-row"], rn = /* @__PURE__ */ X({
|
|
6857
6820
|
__name: "FileRow",
|
|
6858
6821
|
props: {
|
|
6859
6822
|
rowIndex: {},
|
|
@@ -6895,7 +6858,7 @@ const rn = { render: bu }, ku = ["data-key", "data-row", "data-col", "draggable"
|
|
|
6895
6858
|
class: Z(["grid justify-self-start", { "w-full": o.view === "list" }]),
|
|
6896
6859
|
style: Ve(d.value)
|
|
6897
6860
|
}, [
|
|
6898
|
-
(v(!0), g(ve, null, he(o.items, (_, m) => (v(), L(
|
|
6861
|
+
(v(!0), g(ve, null, he(o.items, (_, m) => (v(), L(Tu, Me({
|
|
6899
6862
|
key: _.path,
|
|
6900
6863
|
item: _,
|
|
6901
6864
|
view: o.view,
|
|
@@ -6920,15 +6883,15 @@ const rn = { render: bu }, ku = ["data-key", "data-row", "data-col", "draggable"
|
|
|
6920
6883
|
_: 3
|
|
6921
6884
|
}, 16, ["item", "view", "compact", "show-thumbnails", "show-path", "is-selected", "is-dragging", "row-index", "col-index", "explorer-id"]))), 128))
|
|
6922
6885
|
], 6)
|
|
6923
|
-
], 14,
|
|
6886
|
+
], 14, Iu));
|
|
6924
6887
|
}
|
|
6925
|
-
}),
|
|
6888
|
+
}), Au = {
|
|
6926
6889
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6927
6890
|
fill: "currentColor",
|
|
6928
6891
|
viewBox: "0 0 20 20"
|
|
6929
6892
|
};
|
|
6930
|
-
function
|
|
6931
|
-
return v(), g("svg",
|
|
6893
|
+
function Ou(o, e) {
|
|
6894
|
+
return v(), g("svg", Au, [...e[0] || (e[0] = [
|
|
6932
6895
|
i("path", {
|
|
6933
6896
|
"fill-rule": "evenodd",
|
|
6934
6897
|
d: "M5.293 7.293a1 1 0 0 1 1.414 0L10 10.586l3.293-3.293a1 1 0 1 1 1.414 1.414l-4 4a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 0-1.414",
|
|
@@ -6936,13 +6899,13 @@ function Vu(o, e) {
|
|
|
6936
6899
|
}, null, -1)
|
|
6937
6900
|
])]);
|
|
6938
6901
|
}
|
|
6939
|
-
const
|
|
6902
|
+
const Bu = { render: Ou }, Lu = {
|
|
6940
6903
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6941
6904
|
fill: "currentColor",
|
|
6942
6905
|
viewBox: "0 0 20 20"
|
|
6943
6906
|
};
|
|
6944
|
-
function
|
|
6945
|
-
return v(), g("svg",
|
|
6907
|
+
function Vu(o, e) {
|
|
6908
|
+
return v(), g("svg", Lu, [...e[0] || (e[0] = [
|
|
6946
6909
|
i("path", {
|
|
6947
6910
|
"fill-rule": "evenodd",
|
|
6948
6911
|
d: "M14.707 12.707a1 1 0 0 1-1.414 0L10 9.414l-3.293 3.293a1 1 0 0 1-1.414-1.414l4-4a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1 0 1.414",
|
|
@@ -6950,28 +6913,28 @@ function Nu(o, e) {
|
|
|
6950
6913
|
}, null, -1)
|
|
6951
6914
|
])]);
|
|
6952
6915
|
}
|
|
6953
|
-
const
|
|
6916
|
+
const zu = { render: Vu }, Ct = /* @__PURE__ */ X({
|
|
6954
6917
|
__name: "SortIcon",
|
|
6955
6918
|
props: {
|
|
6956
6919
|
direction: {}
|
|
6957
6920
|
},
|
|
6958
6921
|
setup(o) {
|
|
6959
6922
|
return (e, t) => (v(), g("div", null, [
|
|
6960
|
-
o.direction === "asc" ? (v(), L(s(
|
|
6923
|
+
o.direction === "asc" ? (v(), L(s(Bu), {
|
|
6961
6924
|
key: 0,
|
|
6962
6925
|
class: "vuefinder__explorer__sort-icon"
|
|
6963
6926
|
})) : T("", !0),
|
|
6964
|
-
o.direction === "desc" ? (v(), L(s(
|
|
6927
|
+
o.direction === "desc" ? (v(), L(s(zu), {
|
|
6965
6928
|
key: 1,
|
|
6966
6929
|
class: "vuefinder__explorer__sort-icon"
|
|
6967
6930
|
})) : T("", !0)
|
|
6968
6931
|
]));
|
|
6969
6932
|
}
|
|
6970
|
-
}),
|
|
6933
|
+
}), Ru = { class: "vuefinder__explorer__header" }, Nu = /* @__PURE__ */ X({
|
|
6971
6934
|
__name: "ExplorerHeader",
|
|
6972
6935
|
setup(o) {
|
|
6973
6936
|
const e = J(), t = e.fs, { t: n } = e.i18n, a = W(t.sort);
|
|
6974
|
-
return (l, d) => (v(), g("div",
|
|
6937
|
+
return (l, d) => (v(), g("div", Ru, [
|
|
6975
6938
|
i("div", {
|
|
6976
6939
|
class: "vuefinder__explorer__sort-button vuefinder__explorer__sort-button--name vf-sort-button",
|
|
6977
6940
|
onClick: d[0] || (d[0] = (r) => s(t).toggleSort("basename"))
|
|
@@ -7008,7 +6971,7 @@ const Uu = { render: Nu }, Ct = /* @__PURE__ */ X({
|
|
|
7008
6971
|
]));
|
|
7009
6972
|
}
|
|
7010
6973
|
});
|
|
7011
|
-
function
|
|
6974
|
+
function Uu(o, e) {
|
|
7012
6975
|
const {
|
|
7013
6976
|
scrollContainer: t,
|
|
7014
6977
|
itemWidth: n = 100,
|
|
@@ -7089,7 +7052,7 @@ function Ku(o, e) {
|
|
|
7089
7052
|
getContainerHeight: f
|
|
7090
7053
|
};
|
|
7091
7054
|
}
|
|
7092
|
-
function
|
|
7055
|
+
function ju(o) {
|
|
7093
7056
|
const {
|
|
7094
7057
|
itemsPerRow: e,
|
|
7095
7058
|
totalHeight: t,
|
|
@@ -7202,7 +7165,7 @@ function qu(o) {
|
|
|
7202
7165
|
const { viewport: b } = c.value.elements();
|
|
7203
7166
|
b && (x = b);
|
|
7204
7167
|
}
|
|
7205
|
-
l.value = new
|
|
7168
|
+
l.value = new Zn({
|
|
7206
7169
|
selectables: [".file-item-" + _ + ":not(.vf-explorer-item--unselectable)"],
|
|
7207
7170
|
boundaries: x,
|
|
7208
7171
|
selectionContainerClass: "selection-area-container",
|
|
@@ -7255,7 +7218,7 @@ function qu(o) {
|
|
|
7255
7218
|
handleContentClick: z
|
|
7256
7219
|
};
|
|
7257
7220
|
}
|
|
7258
|
-
function
|
|
7221
|
+
function Hu(o) {
|
|
7259
7222
|
const e = (n) => {
|
|
7260
7223
|
if (!n)
|
|
7261
7224
|
return { typeAllowed: !1, mimeAllowed: !1 };
|
|
@@ -7271,7 +7234,7 @@ function Gu(o) {
|
|
|
7271
7234
|
}
|
|
7272
7235
|
};
|
|
7273
7236
|
}
|
|
7274
|
-
function
|
|
7237
|
+
function Ku(o) {
|
|
7275
7238
|
const e = (n) => ({
|
|
7276
7239
|
item: n,
|
|
7277
7240
|
defaultPrevented: !1,
|
|
@@ -7296,8 +7259,8 @@ function Wu(o) {
|
|
|
7296
7259
|
}
|
|
7297
7260
|
};
|
|
7298
7261
|
}
|
|
7299
|
-
function
|
|
7300
|
-
const r = o.fs, { canSelectItem: c } =
|
|
7262
|
+
function qu(o, e, t, n, a, l, d) {
|
|
7263
|
+
const r = o.fs, { canSelectItem: c } = Hu(o), { openItem: _ } = Ku(o), m = (p) => {
|
|
7301
7264
|
const h = p.target?.closest(".file-item-" + e);
|
|
7302
7265
|
if (!h) return null;
|
|
7303
7266
|
const f = String(h.getAttribute("data-key")), k = t.value?.find((C) => C.path === f);
|
|
@@ -7339,10 +7302,10 @@ function Yu(o, e, t, n, a, l, d) {
|
|
|
7339
7302
|
getSelectedItems: w
|
|
7340
7303
|
};
|
|
7341
7304
|
}
|
|
7342
|
-
function
|
|
7305
|
+
function Gu(o, e) {
|
|
7343
7306
|
const t = M(null);
|
|
7344
7307
|
return fe(() => {
|
|
7345
|
-
if (st.plugin([
|
|
7308
|
+
if (st.plugin([Jn]), o.value) {
|
|
7346
7309
|
const n = st(
|
|
7347
7310
|
o.value,
|
|
7348
7311
|
{
|
|
@@ -7370,7 +7333,7 @@ function Qu(o, e) {
|
|
|
7370
7333
|
osInstance: t
|
|
7371
7334
|
};
|
|
7372
7335
|
}
|
|
7373
|
-
function
|
|
7336
|
+
function Wu(o, e) {
|
|
7374
7337
|
const t = M(null);
|
|
7375
7338
|
return fe(() => {
|
|
7376
7339
|
o.value && (t.value = new _n({
|
|
@@ -7379,7 +7342,7 @@ function Xu(o, e) {
|
|
|
7379
7342
|
})), e?.emitter && e.emitter.on("vf-refresh-thumbnails", () => {
|
|
7380
7343
|
t.value && t.value.update();
|
|
7381
7344
|
});
|
|
7382
|
-
}),
|
|
7345
|
+
}), Un(() => {
|
|
7383
7346
|
t.value && t.value.update();
|
|
7384
7347
|
}), ye(() => {
|
|
7385
7348
|
t.value && (t.value.destroy(), t.value = null);
|
|
@@ -7387,17 +7350,17 @@ function Xu(o, e) {
|
|
|
7387
7350
|
vfLazyLoad: t
|
|
7388
7351
|
};
|
|
7389
7352
|
}
|
|
7390
|
-
const
|
|
7353
|
+
const Yu = { class: "vuefinder__explorer__container" }, Qu = {
|
|
7391
7354
|
key: 0,
|
|
7392
7355
|
class: "vuefinder__linear-loader"
|
|
7393
|
-
},
|
|
7356
|
+
}, Xu = /* @__PURE__ */ X({
|
|
7394
7357
|
__name: "Explorer",
|
|
7395
7358
|
props: {
|
|
7396
7359
|
onFileDclick: { type: Function },
|
|
7397
7360
|
onFolderDclick: { type: Function }
|
|
7398
7361
|
},
|
|
7399
7362
|
setup(o) {
|
|
7400
|
-
const e = o, t = J(), n = vt(t, ["vuefinder__drag-over"]), a = Ge("dragImage"), l =
|
|
7363
|
+
const e = o, t = J(), n = vt(t, ["vuefinder__drag-over"]), a = Ge("dragImage"), l = ln(null), d = Ge("scrollContainer"), r = Ge("scrollContent"), c = t.fs, _ = t.config, m = W(_.state), w = W(c.sortedFiles), u = W(c.selectedKeys), $ = W(c.loading), D = (K) => u.value?.has(K) ?? !1, S = N(() => {
|
|
7401
7364
|
const K = m.value.view, ce = m.value.compactListView;
|
|
7402
7365
|
return K === "grid" ? 88 : ce ? 24 : 50;
|
|
7403
7366
|
}), { t: p } = t.i18n, {
|
|
@@ -7408,7 +7371,7 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
|
|
|
7408
7371
|
getRowItems: F,
|
|
7409
7372
|
getItemsInRange: A,
|
|
7410
7373
|
updateItemsPerRow: B
|
|
7411
|
-
} =
|
|
7374
|
+
} = Uu(
|
|
7412
7375
|
N(() => w.value ?? []),
|
|
7413
7376
|
{
|
|
7414
7377
|
scrollContainer: d,
|
|
@@ -7418,7 +7381,7 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
|
|
|
7418
7381
|
containerPadding: 0,
|
|
7419
7382
|
lockItemsPerRow: N(() => m.value.view === "list")
|
|
7420
7383
|
}
|
|
7421
|
-
), { osInstance: Y } =
|
|
7384
|
+
), { osInstance: Y } = Gu(d, C), { explorerId: R, isDragging: ne, initializeSelectionArea: U, updateSelectionArea: ee, handleContentClick: E } = ju({
|
|
7422
7385
|
itemsPerRow: h,
|
|
7423
7386
|
totalHeight: f,
|
|
7424
7387
|
getItemsInRange: A,
|
|
@@ -7442,8 +7405,8 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
|
|
|
7442
7405
|
_.get("view") === "list" && K !== 1 && (h.value = 1);
|
|
7443
7406
|
});
|
|
7444
7407
|
const z = (K) => w.value?.[K];
|
|
7445
|
-
|
|
7446
|
-
const { handleItemClick: x, handleItemDblClick: b, handleItemContextMenu: P, handleContentContextMenu: I } =
|
|
7408
|
+
Wu(d, t);
|
|
7409
|
+
const { handleItemClick: x, handleItemDblClick: b, handleItemContextMenu: P, handleContentContextMenu: I } = qu(
|
|
7447
7410
|
t,
|
|
7448
7411
|
R,
|
|
7449
7412
|
w,
|
|
@@ -7504,14 +7467,14 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
|
|
|
7504
7467
|
(be > 15 || Qe > 15) && (ie && (clearTimeout(ie), ie = null), _e = null);
|
|
7505
7468
|
}
|
|
7506
7469
|
};
|
|
7507
|
-
return (K, ce) => (v(), g("div",
|
|
7508
|
-
s(m).view === "list" ? (v(), L(
|
|
7470
|
+
return (K, ce) => (v(), g("div", Yu, [
|
|
7471
|
+
s(m).view === "list" ? (v(), L(Nu, { key: 0 })) : T("", !0),
|
|
7509
7472
|
i("div", {
|
|
7510
7473
|
ref_key: "scrollContainer",
|
|
7511
7474
|
ref: d,
|
|
7512
7475
|
class: Z(["vuefinder__explorer__selector-area", "scroller-" + s(R)])
|
|
7513
7476
|
}, [
|
|
7514
|
-
s(_).get("loadingIndicator") === "linear" && s($) ? (v(), g("div",
|
|
7477
|
+
s(_).get("loadingIndicator") === "linear" && s($) ? (v(), g("div", Qu)) : T("", !0),
|
|
7515
7478
|
i("div", {
|
|
7516
7479
|
ref_key: "scrollContent",
|
|
7517
7480
|
ref: r,
|
|
@@ -7537,11 +7500,11 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
|
|
|
7537
7500
|
ref: a,
|
|
7538
7501
|
class: "vuefinder__explorer__drag-item"
|
|
7539
7502
|
}, [
|
|
7540
|
-
O(
|
|
7503
|
+
O(pu, {
|
|
7541
7504
|
count: q.value && s(u).has(q.value) ? s(u).size : 1
|
|
7542
7505
|
}, null, 8, ["count"])
|
|
7543
7506
|
], 512),
|
|
7544
|
-
s(m).view === "grid" ? (v(!0), g(ve, { key: 0 }, he(s(k), (ue) => (v(), L(
|
|
7507
|
+
s(m).view === "grid" ? (v(!0), g(ve, { key: 0 }, he(s(k), (ue) => (v(), L(rn, {
|
|
7545
7508
|
key: ue,
|
|
7546
7509
|
"row-index": ue,
|
|
7547
7510
|
"row-height": S.value,
|
|
@@ -7563,7 +7526,7 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
|
|
|
7563
7526
|
$e(K.$slots, "icon", Me({ ref_for: !0 }, be))
|
|
7564
7527
|
]),
|
|
7565
7528
|
_: 3
|
|
7566
|
-
}, 8, ["row-index", "row-height", "items-per-row", "items", "show-thumbnails", "drag-n-drop-events", "explorer-id", "onClick", "onDblclick", "onContextmenu"]))), 128)) : (v(!0), g(ve, { key: 1 }, he(s(k), (ue) => (v(), L(
|
|
7529
|
+
}, 8, ["row-index", "row-height", "items-per-row", "items", "show-thumbnails", "drag-n-drop-events", "explorer-id", "onClick", "onDblclick", "onContextmenu"]))), 128)) : (v(!0), g(ve, { key: 1 }, he(s(k), (ue) => (v(), L(rn, {
|
|
7567
7530
|
key: ue,
|
|
7568
7531
|
"row-index": ue,
|
|
7569
7532
|
"row-height": S.value,
|
|
@@ -7589,7 +7552,7 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
|
|
|
7589
7552
|
], 2)
|
|
7590
7553
|
]));
|
|
7591
7554
|
}
|
|
7592
|
-
}),
|
|
7555
|
+
}), Ju = ["href", "download"], Zu = ["onClick"], ev = /* @__PURE__ */ X({
|
|
7593
7556
|
__name: "ContextMenu",
|
|
7594
7557
|
setup(o) {
|
|
7595
7558
|
const e = J(), t = M(null), n = M([]);
|
|
@@ -7733,35 +7696,35 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
|
|
|
7733
7696
|
onClick: w[0] || (w[0] = ($) => s(e).emitter.emit("vf-contextmenu-hide"))
|
|
7734
7697
|
}, [
|
|
7735
7698
|
i("span", null, y(u.title(s(e).i18n)), 1)
|
|
7736
|
-
], 8,
|
|
7699
|
+
], 8, Ju)) : (v(), g("div", {
|
|
7737
7700
|
key: 1,
|
|
7738
7701
|
class: "vuefinder__context-menu__action",
|
|
7739
7702
|
onClick: ($) => c(u)
|
|
7740
7703
|
}, [
|
|
7741
7704
|
i("span", null, y(u.title(s(e).i18n)), 1)
|
|
7742
|
-
], 8,
|
|
7705
|
+
], 8, Zu))
|
|
7743
7706
|
]))), 128))
|
|
7744
7707
|
], 6)), [
|
|
7745
7708
|
[Le, d.active]
|
|
7746
7709
|
]);
|
|
7747
7710
|
}
|
|
7748
|
-
}),
|
|
7711
|
+
}), tv = { class: "vuefinder__status-bar__wrapper" }, nv = { class: "vuefinder__status-bar__storage" }, ov = ["title"], sv = { class: "vuefinder__status-bar__storage-icon" }, iv = ["value"], av = ["value"], rv = { class: "vuefinder__status-bar__info space-x-2" }, lv = { key: 0 }, dv = { key: 1 }, cv = {
|
|
7749
7712
|
key: 0,
|
|
7750
7713
|
class: "vuefinder__status-bar__size"
|
|
7751
|
-
},
|
|
7714
|
+
}, uv = { class: "vuefinder__status-bar__actions" }, vv = /* @__PURE__ */ X({
|
|
7752
7715
|
__name: "Statusbar",
|
|
7753
7716
|
setup(o) {
|
|
7754
7717
|
const e = J(), { t } = e.i18n, n = e.fs, a = W(n.sortedFiles), l = W(n.path), d = W(n.selectedCount), r = W(n.storages), c = W(n.selectedItems), _ = W(n.path), m = (p) => {
|
|
7755
7718
|
const h = p.target.value;
|
|
7756
7719
|
e.adapter.open(h + "://");
|
|
7757
7720
|
}, w = N(() => !c.value || c.value.length === 0 ? 0 : c.value.reduce((p, h) => p + (h.file_size || 0), 0)), u = N(() => r.value), $ = N(() => a.value), D = N(() => d.value || 0), S = N(() => c.value || []);
|
|
7758
|
-
return (p, h) => (v(), g("div",
|
|
7759
|
-
i("div",
|
|
7721
|
+
return (p, h) => (v(), g("div", tv, [
|
|
7722
|
+
i("div", nv, [
|
|
7760
7723
|
i("div", {
|
|
7761
7724
|
class: "vuefinder__status-bar__storage-container",
|
|
7762
7725
|
title: s(t)("Storage")
|
|
7763
7726
|
}, [
|
|
7764
|
-
i("div",
|
|
7727
|
+
i("div", sv, [
|
|
7765
7728
|
O(s(Vt))
|
|
7766
7729
|
]),
|
|
7767
7730
|
i("select", {
|
|
@@ -7774,21 +7737,21 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
|
|
|
7774
7737
|
(v(!0), g(ve, null, he(u.value, (f) => (v(), g("option", {
|
|
7775
7738
|
key: f,
|
|
7776
7739
|
value: f
|
|
7777
|
-
}, y(f), 9,
|
|
7778
|
-
], 40,
|
|
7740
|
+
}, y(f), 9, av))), 128))
|
|
7741
|
+
], 40, iv),
|
|
7779
7742
|
h[0] || (h[0] = i("span", {
|
|
7780
7743
|
class: "vuefinder__status-bar__storage-caret",
|
|
7781
7744
|
"aria-hidden": "true"
|
|
7782
7745
|
}, null, -1))
|
|
7783
|
-
], 8,
|
|
7784
|
-
i("div",
|
|
7785
|
-
D.value === 0 ? (v(), g("span",
|
|
7746
|
+
], 8, ov),
|
|
7747
|
+
i("div", rv, [
|
|
7748
|
+
D.value === 0 ? (v(), g("span", lv, y($.value.length) + " " + y(s(t)("items")), 1)) : (v(), g("span", dv, [
|
|
7786
7749
|
de(y(D.value) + " " + y(s(t)("selected")) + " ", 1),
|
|
7787
|
-
w.value ? (v(), g("span",
|
|
7750
|
+
w.value ? (v(), g("span", cv, y(s(e).filesize(w.value)), 1)) : T("", !0)
|
|
7788
7751
|
]))
|
|
7789
7752
|
])
|
|
7790
7753
|
]),
|
|
7791
|
-
i("div",
|
|
7754
|
+
i("div", uv, [
|
|
7792
7755
|
$e(p.$slots, "actions", {
|
|
7793
7756
|
path: s(_).path,
|
|
7794
7757
|
count: D.value || 0,
|
|
@@ -7797,14 +7760,14 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
|
|
|
7797
7760
|
])
|
|
7798
7761
|
]));
|
|
7799
7762
|
}
|
|
7800
|
-
}),
|
|
7763
|
+
}), fv = {
|
|
7801
7764
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7802
7765
|
fill: "currentColor",
|
|
7803
7766
|
class: "h-5 w-5",
|
|
7804
7767
|
viewBox: "0 0 24 24"
|
|
7805
7768
|
};
|
|
7806
|
-
function
|
|
7807
|
-
return v(), g("svg",
|
|
7769
|
+
function _v(o, e) {
|
|
7770
|
+
return v(), g("svg", fv, [...e[0] || (e[0] = [
|
|
7808
7771
|
i("path", {
|
|
7809
7772
|
fill: "none",
|
|
7810
7773
|
d: "M0 0h24v24H0z"
|
|
@@ -7812,17 +7775,17 @@ function mv(o, e) {
|
|
|
7812
7775
|
i("path", { d: "M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m3.6 5.2a1 1 0 0 0-1.4.2L12 10.333 9.8 7.4a1 1 0 1 0-1.6 1.2l2.55 3.4-2.55 3.4a1 1 0 1 0 1.6 1.2l2.2-2.933 2.2 2.933a1 1 0 0 0 1.6-1.2L13.25 12l2.55-3.4a1 1 0 0 0-.2-1.4" }, null, -1)
|
|
7813
7776
|
])]);
|
|
7814
7777
|
}
|
|
7815
|
-
const
|
|
7816
|
-
function
|
|
7778
|
+
const pv = { render: _v };
|
|
7779
|
+
function Bn(o, e) {
|
|
7817
7780
|
const t = o.findIndex((n) => n.path === e.path);
|
|
7818
7781
|
t > -1 ? o[t] = e : o.push(e);
|
|
7819
7782
|
}
|
|
7820
|
-
const
|
|
7783
|
+
const hv = { class: "vuefinder__folder-loader-indicator" }, mv = {
|
|
7821
7784
|
key: 1,
|
|
7822
7785
|
class: "vuefinder__folder-loader-indicator--icon"
|
|
7823
|
-
},
|
|
7786
|
+
}, Ln = /* @__PURE__ */ X({
|
|
7824
7787
|
__name: "FolderLoaderIndicator",
|
|
7825
|
-
props: /* @__PURE__ */
|
|
7788
|
+
props: /* @__PURE__ */ jn({
|
|
7826
7789
|
storage: {},
|
|
7827
7790
|
path: {}
|
|
7828
7791
|
}, {
|
|
@@ -7831,7 +7794,7 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
7831
7794
|
}),
|
|
7832
7795
|
emits: ["update:modelValue"],
|
|
7833
7796
|
setup(o) {
|
|
7834
|
-
const e = o, t = J(), n =
|
|
7797
|
+
const e = o, t = J(), n = vn(o, "modelValue"), a = M(!1);
|
|
7835
7798
|
le(
|
|
7836
7799
|
() => n.value,
|
|
7837
7800
|
() => l()
|
|
@@ -7840,18 +7803,18 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
7840
7803
|
a.value = !0;
|
|
7841
7804
|
try {
|
|
7842
7805
|
const r = (await t.adapter.list(e.path)).files.filter((c) => c.type === "dir");
|
|
7843
|
-
|
|
7806
|
+
Bn(t.treeViewData, { path: e.path, type: "dir", folders: r });
|
|
7844
7807
|
} catch (d) {
|
|
7845
7808
|
Ce(d, "Failed to fetch subfolders");
|
|
7846
7809
|
} finally {
|
|
7847
7810
|
a.value = !1;
|
|
7848
7811
|
}
|
|
7849
7812
|
};
|
|
7850
|
-
return (d, r) => (v(), g("div",
|
|
7813
|
+
return (d, r) => (v(), g("div", hv, [
|
|
7851
7814
|
a.value ? (v(), L(s(xt), {
|
|
7852
7815
|
key: 0,
|
|
7853
7816
|
class: "vuefinder__folder-loader-indicator--loading"
|
|
7854
|
-
})) : (v(), g("div",
|
|
7817
|
+
})) : (v(), g("div", mv, [
|
|
7855
7818
|
n.value ? (v(), L(s($t), {
|
|
7856
7819
|
key: 0,
|
|
7857
7820
|
class: "vuefinder__folder-loader-indicator--minus"
|
|
@@ -7863,10 +7826,10 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
7863
7826
|
]))
|
|
7864
7827
|
]));
|
|
7865
7828
|
}
|
|
7866
|
-
}),
|
|
7829
|
+
}), gv = { key: 0 }, wv = { class: "vuefinder__treesubfolderlist__no-folders" }, yv = { class: "vuefinder__treesubfolderlist__item-content" }, bv = ["onClick"], kv = ["title", "onDblclick", "onClick"], $v = { class: "vuefinder__treesubfolderlist__item-icon" }, xv = { class: "vuefinder__treesubfolderlist__subfolder" }, Sv = {
|
|
7867
7830
|
key: 1,
|
|
7868
7831
|
class: "vuefinder__treesubfolderlist__more-note"
|
|
7869
|
-
},
|
|
7832
|
+
}, Cv = /* @__PURE__ */ X({
|
|
7870
7833
|
__name: "TreeSubfolderList",
|
|
7871
7834
|
props: {
|
|
7872
7835
|
storage: {},
|
|
@@ -7888,31 +7851,31 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
7888
7851
|
_.value += 50;
|
|
7889
7852
|
};
|
|
7890
7853
|
return (D, S) => {
|
|
7891
|
-
const p =
|
|
7854
|
+
const p = cn("TreeSubfolderList", !0);
|
|
7892
7855
|
return v(), g("ul", {
|
|
7893
7856
|
ref_key: "parentSubfolderList",
|
|
7894
7857
|
ref: c,
|
|
7895
7858
|
class: "vuefinder__treesubfolderlist__container"
|
|
7896
7859
|
}, [
|
|
7897
|
-
m.value.length ? T("", !0) : (v(), g("li",
|
|
7898
|
-
i("div",
|
|
7860
|
+
m.value.length ? T("", !0) : (v(), g("li", gv, [
|
|
7861
|
+
i("div", wv, y(s(l)("No folders")), 1)
|
|
7899
7862
|
])),
|
|
7900
7863
|
(v(!0), g(ve, null, he(m.value, (h) => (v(), g("li", {
|
|
7901
7864
|
key: h.path,
|
|
7902
7865
|
class: "vuefinder__treesubfolderlist__item"
|
|
7903
7866
|
}, [
|
|
7904
|
-
i("div",
|
|
7867
|
+
i("div", yv, [
|
|
7905
7868
|
i("div", {
|
|
7906
7869
|
class: "vuefinder__treesubfolderlist__item-toggle",
|
|
7907
7870
|
onClick: (f) => a.value[h.path] = !a.value[h.path]
|
|
7908
7871
|
}, [
|
|
7909
|
-
O(
|
|
7872
|
+
O(Ln, {
|
|
7910
7873
|
modelValue: a.value[h.path],
|
|
7911
7874
|
"onUpdate:modelValue": (f) => a.value[h.path] = f,
|
|
7912
7875
|
storage: o.storage,
|
|
7913
7876
|
path: h.path
|
|
7914
7877
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "storage", "path"])
|
|
7915
|
-
], 8,
|
|
7878
|
+
], 8, bv),
|
|
7916
7879
|
i("div", Me({
|
|
7917
7880
|
class: "vuefinder__treesubfolderlist__item-link",
|
|
7918
7881
|
title: h.path
|
|
@@ -7931,7 +7894,7 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
7931
7894
|
onDblclick: (f) => a.value[h.path] = !a.value[h.path],
|
|
7932
7895
|
onClick: (f) => s(e).adapter.open(h.path)
|
|
7933
7896
|
}), [
|
|
7934
|
-
i("div",
|
|
7897
|
+
i("div", $v, [
|
|
7935
7898
|
s(d)?.path === h.path ? (v(), L(s(zt), {
|
|
7936
7899
|
key: 0,
|
|
7937
7900
|
class: "vuefinder__item-icon__folder--open"
|
|
@@ -7945,9 +7908,9 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
7945
7908
|
"vuefinder__treesubfolderlist__item-text--active": s(d).path === h.path
|
|
7946
7909
|
}])
|
|
7947
7910
|
}, y(h.basename), 3)
|
|
7948
|
-
], 16,
|
|
7911
|
+
], 16, kv)
|
|
7949
7912
|
]),
|
|
7950
|
-
i("div",
|
|
7913
|
+
i("div", xv, [
|
|
7951
7914
|
pe(O(p, {
|
|
7952
7915
|
storage: r.storage,
|
|
7953
7916
|
path: h.path
|
|
@@ -7956,7 +7919,7 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
7956
7919
|
])
|
|
7957
7920
|
])
|
|
7958
7921
|
]))), 128)),
|
|
7959
|
-
u.value ? (v(), g("li",
|
|
7922
|
+
u.value ? (v(), g("li", Sv, [
|
|
7960
7923
|
i("div", {
|
|
7961
7924
|
class: "vuefinder__treesubfolderlist__load-more",
|
|
7962
7925
|
onClick: $
|
|
@@ -7965,7 +7928,7 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
7965
7928
|
], 512);
|
|
7966
7929
|
};
|
|
7967
7930
|
}
|
|
7968
|
-
}),
|
|
7931
|
+
}), Fv = /* @__PURE__ */ X({
|
|
7969
7932
|
__name: "TreeStorageItem",
|
|
7970
7933
|
props: {
|
|
7971
7934
|
storage: {}
|
|
@@ -8005,7 +7968,7 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
8005
7968
|
class: "vuefinder__treestorageitem__loader",
|
|
8006
7969
|
onClick: w[1] || (w[1] = ae((u) => n.value = !n.value, ["stop"]))
|
|
8007
7970
|
}, [
|
|
8008
|
-
O(
|
|
7971
|
+
O(Ln, {
|
|
8009
7972
|
modelValue: n.value,
|
|
8010
7973
|
"onUpdate:modelValue": w[0] || (w[0] = (u) => n.value = u),
|
|
8011
7974
|
storage: o.storage,
|
|
@@ -8013,7 +7976,7 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
8013
7976
|
}, null, 8, ["modelValue", "storage", "path"])
|
|
8014
7977
|
])
|
|
8015
7978
|
]),
|
|
8016
|
-
pe(O(
|
|
7979
|
+
pe(O(Cv, {
|
|
8017
7980
|
storage: o.storage,
|
|
8018
7981
|
path: o.storage + "://",
|
|
8019
7982
|
class: "vuefinder__treestorageitem__subfolder"
|
|
@@ -8022,7 +7985,7 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
8022
7985
|
])
|
|
8023
7986
|
], 64));
|
|
8024
7987
|
}
|
|
8025
|
-
}),
|
|
7988
|
+
}), Dv = { class: "vuefinder__folder-indicator" }, Pv = { class: "vuefinder__folder-indicator--icon" }, Ev = /* @__PURE__ */ X({
|
|
8026
7989
|
__name: "FolderIndicator",
|
|
8027
7990
|
props: {
|
|
8028
7991
|
modelValue: { type: Boolean },
|
|
@@ -8030,9 +7993,9 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
8030
7993
|
},
|
|
8031
7994
|
emits: ["update:modelValue"],
|
|
8032
7995
|
setup(o) {
|
|
8033
|
-
const e =
|
|
8034
|
-
return (t, n) => (v(), g("div",
|
|
8035
|
-
i("div",
|
|
7996
|
+
const e = vn(o, "modelValue");
|
|
7997
|
+
return (t, n) => (v(), g("div", Dv, [
|
|
7998
|
+
i("div", Pv, [
|
|
8036
7999
|
e.value ? (v(), L(s($t), {
|
|
8037
8000
|
key: 0,
|
|
8038
8001
|
class: "vuefinder__folder-indicator--minus"
|
|
@@ -8044,13 +8007,13 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
8044
8007
|
])
|
|
8045
8008
|
]));
|
|
8046
8009
|
}
|
|
8047
|
-
}),
|
|
8010
|
+
}), Mv = {
|
|
8048
8011
|
key: 0,
|
|
8049
8012
|
class: "vuefinder__treeview__header"
|
|
8050
|
-
},
|
|
8013
|
+
}, Tv = { class: "vuefinder__treeview__pinned-label" }, Iv = { class: "vuefinder__treeview__pin-text text-nowrap" }, Av = {
|
|
8051
8014
|
key: 0,
|
|
8052
8015
|
class: "vuefinder__treeview__pinned-list"
|
|
8053
|
-
},
|
|
8016
|
+
}, Ov = ["onClick"], Bv = ["title"], Lv = ["onClick"], Vv = { key: 0 }, zv = { class: "vuefinder__treeview__no-pinned" }, Rv = /* @__PURE__ */ X({
|
|
8054
8017
|
__name: "TreeView",
|
|
8055
8018
|
setup(o) {
|
|
8056
8019
|
const e = J(), { enabled: t } = Te(), { t: n } = e.i18n, { getStore: a, setStore: l } = e.storage, d = e.fs, r = e.config, c = W(r.state), _ = W(d.sortedFiles), m = W(d.storages), w = N(() => m.value || []), u = W(d.path), $ = vt(e, ["vuefinder__drag-over"]), D = M(190), S = M(a("pinned-folders-opened", !0));
|
|
@@ -8082,7 +8045,7 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
8082
8045
|
});
|
|
8083
8046
|
}), le(_, (k) => {
|
|
8084
8047
|
const C = k.filter((F) => F.type === "dir");
|
|
8085
|
-
|
|
8048
|
+
Bn(e.treeViewData, {
|
|
8086
8049
|
path: u.value.path || "",
|
|
8087
8050
|
folders: C.map((F) => ({
|
|
8088
8051
|
storage: F.storage,
|
|
@@ -8107,21 +8070,21 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
8107
8070
|
ref: f,
|
|
8108
8071
|
class: "vuefinder__treeview__scroll"
|
|
8109
8072
|
}, [
|
|
8110
|
-
s(t)("pinned") ? (v(), g("div",
|
|
8073
|
+
s(t)("pinned") ? (v(), g("div", Mv, [
|
|
8111
8074
|
i("div", {
|
|
8112
8075
|
class: "vuefinder__treeview__pinned-toggle",
|
|
8113
8076
|
onClick: C[2] || (C[2] = (F) => S.value = !S.value)
|
|
8114
8077
|
}, [
|
|
8115
|
-
i("div",
|
|
8078
|
+
i("div", Tv, [
|
|
8116
8079
|
O(s(Lt), { class: "vuefinder__treeview__pin-icon" }),
|
|
8117
|
-
i("div",
|
|
8080
|
+
i("div", Iv, y(s(n)("Pinned Folders")), 1)
|
|
8118
8081
|
]),
|
|
8119
|
-
O(
|
|
8082
|
+
O(Ev, {
|
|
8120
8083
|
modelValue: S.value,
|
|
8121
8084
|
"onUpdate:modelValue": C[1] || (C[1] = (F) => S.value = F)
|
|
8122
8085
|
}, null, 8, ["modelValue"])
|
|
8123
8086
|
]),
|
|
8124
|
-
S.value ? (v(), g("ul",
|
|
8087
|
+
S.value ? (v(), g("ul", Av, [
|
|
8125
8088
|
(v(!0), g(ve, null, he(s(c).pinnedFolders, (F) => (v(), g("li", {
|
|
8126
8089
|
key: F.path,
|
|
8127
8090
|
class: "vuefinder__treeview__pinned-item"
|
|
@@ -8142,17 +8105,17 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
8142
8105
|
class: Z(["vuefinder__treeview__folder-name", {
|
|
8143
8106
|
"vuefinder__treeview__folder-name--active": s(u).path === F.path
|
|
8144
8107
|
}])
|
|
8145
|
-
}, y(F.basename), 11,
|
|
8146
|
-
], 16,
|
|
8108
|
+
}, y(F.basename), 11, Bv)
|
|
8109
|
+
], 16, Ov),
|
|
8147
8110
|
i("div", {
|
|
8148
8111
|
class: "vuefinder__treeview__remove-folder",
|
|
8149
8112
|
onClick: (A) => p(F)
|
|
8150
8113
|
}, [
|
|
8151
|
-
O(s(
|
|
8152
|
-
], 8,
|
|
8114
|
+
O(s(pv), { class: "vuefinder__treeview__remove-icon" })
|
|
8115
|
+
], 8, Lv)
|
|
8153
8116
|
]))), 128)),
|
|
8154
|
-
s(c).pinnedFolders.length ? T("", !0) : (v(), g("li",
|
|
8155
|
-
i("div",
|
|
8117
|
+
s(c).pinnedFolders.length ? T("", !0) : (v(), g("li", Vv, [
|
|
8118
|
+
i("div", zv, y(s(n)("No folders pinned")), 1)
|
|
8156
8119
|
]))
|
|
8157
8120
|
])) : T("", !0)
|
|
8158
8121
|
])) : T("", !0),
|
|
@@ -8160,7 +8123,7 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
8160
8123
|
key: F,
|
|
8161
8124
|
class: "vuefinder__treeview__storage"
|
|
8162
8125
|
}, [
|
|
8163
|
-
O(
|
|
8126
|
+
O(Fv, { storage: F }, null, 8, ["storage"])
|
|
8164
8127
|
]))), 128))
|
|
8165
8128
|
], 512),
|
|
8166
8129
|
i("div", {
|
|
@@ -8189,7 +8152,7 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
8189
8152
|
copy: "copy",
|
|
8190
8153
|
paste: "paste"
|
|
8191
8154
|
};
|
|
8192
|
-
function
|
|
8155
|
+
function Nv(o) {
|
|
8193
8156
|
return o.items.length > 1 && o.items.some((e) => e.path === o.target?.path) ? "many" : o.target ? "one" : "none";
|
|
8194
8157
|
}
|
|
8195
8158
|
function me(o) {
|
|
@@ -8199,7 +8162,7 @@ function me(o) {
|
|
|
8199
8162
|
},
|
|
8200
8163
|
o
|
|
8201
8164
|
);
|
|
8202
|
-
return (t, n) => !(e.needsSearchQuery !== !!n.searchQuery || e.target !== void 0 && e.target !==
|
|
8165
|
+
return (t, n) => !(e.needsSearchQuery !== !!n.searchQuery || e.target !== void 0 && e.target !== Nv(n) || e.targetType !== void 0 && e.targetType !== n.target?.type || e.mimeType !== void 0 && e.mimeType !== n.target?.mime_type || e.feature !== void 0 && !(t.features[e.feature] ?? !1));
|
|
8203
8166
|
}
|
|
8204
8167
|
function nt(...o) {
|
|
8205
8168
|
return (e, t) => o.some((n) => n(e, t));
|
|
@@ -8207,7 +8170,7 @@ function nt(...o) {
|
|
|
8207
8170
|
function ot(...o) {
|
|
8208
8171
|
return (e, t) => o.every((n) => n(e, t));
|
|
8209
8172
|
}
|
|
8210
|
-
const
|
|
8173
|
+
const Vn = [
|
|
8211
8174
|
{
|
|
8212
8175
|
id: we.openDir,
|
|
8213
8176
|
title: ({ t: o }) => o("Open containing folder"),
|
|
@@ -8397,10 +8360,10 @@ const Rn = [
|
|
|
8397
8360
|
),
|
|
8398
8361
|
order: 160
|
|
8399
8362
|
}
|
|
8400
|
-
],
|
|
8363
|
+
], Uv = ["data-theme"], jv = {
|
|
8401
8364
|
key: 0,
|
|
8402
8365
|
class: "vuefinder__external-drop-overlay vuefinder__external-drop-overlay--relative"
|
|
8403
|
-
},
|
|
8366
|
+
}, Hv = { class: "vuefinder__external-drop-message" }, Kv = { class: "vuefinder__main__content" }, qv = /* @__PURE__ */ X({
|
|
8404
8367
|
__name: "VueFinderView",
|
|
8405
8368
|
props: {
|
|
8406
8369
|
id: {},
|
|
@@ -8438,7 +8401,7 @@ const Rn = [
|
|
|
8438
8401
|
le(
|
|
8439
8402
|
() => n.features,
|
|
8440
8403
|
(p) => {
|
|
8441
|
-
const h =
|
|
8404
|
+
const h = fn(p);
|
|
8442
8405
|
Object.keys(a.features).forEach((f) => {
|
|
8443
8406
|
delete a.features[f];
|
|
8444
8407
|
}), Object.assign(a.features, h);
|
|
@@ -8446,8 +8409,8 @@ const Rn = [
|
|
|
8446
8409
|
{ deep: !0 }
|
|
8447
8410
|
);
|
|
8448
8411
|
const r = a.fs, c = W(d.state);
|
|
8449
|
-
|
|
8450
|
-
const { isDraggingExternal: _, handleDragEnter: m, handleDragOver: w, handleDragLeave: u, handleDrop: $ } =
|
|
8412
|
+
Yr();
|
|
8413
|
+
const { isDraggingExternal: _, handleDragEnter: m, handleDragOver: w, handleDragLeave: u, handleDrop: $ } = Qr();
|
|
8451
8414
|
function D(p) {
|
|
8452
8415
|
r.setPath(p.dirname), d.get("persist") && d.set("path", p.dirname), r.setReadOnly(p.read_only ?? !1), a.modal.close(), r.setFiles(p.files), r.clearSelection(), r.setSelectedCount(0), r.setStorages(p.storages);
|
|
8453
8416
|
}
|
|
@@ -8518,15 +8481,15 @@ const Rn = [
|
|
|
8518
8481
|
onMousedown: h[0] || (h[0] = (f) => s(a).emitter.emit("vf-contextmenu-hide")),
|
|
8519
8482
|
onTouchstart: h[1] || (h[1] = (f) => s(a).emitter.emit("vf-contextmenu-hide"))
|
|
8520
8483
|
}, [
|
|
8521
|
-
s(_) ? (v(), g("div",
|
|
8522
|
-
i("div",
|
|
8484
|
+
s(_) ? (v(), g("div", jv, [
|
|
8485
|
+
i("div", Hv, y(s(a).i18n.t("Drag and drop the files/folders to here.")), 1)
|
|
8523
8486
|
])) : T("", !0),
|
|
8524
|
-
s(c).showMenuBar ? (v(), L(
|
|
8525
|
-
s(c).showToolbar ? (v(), L(
|
|
8526
|
-
O(
|
|
8527
|
-
i("div",
|
|
8528
|
-
O(
|
|
8529
|
-
O(
|
|
8487
|
+
s(c).showMenuBar ? (v(), L(yd, { key: 1 })) : T("", !0),
|
|
8488
|
+
s(c).showToolbar ? (v(), L(kc, { key: 2 })) : T("", !0),
|
|
8489
|
+
O(cu),
|
|
8490
|
+
i("div", Kv, [
|
|
8491
|
+
O(Rv),
|
|
8492
|
+
O(Xu, {
|
|
8530
8493
|
"on-file-dclick": n.onFileDclick,
|
|
8531
8494
|
"on-folder-dclick": n.onFolderDclick
|
|
8532
8495
|
}, {
|
|
@@ -8536,7 +8499,7 @@ const Rn = [
|
|
|
8536
8499
|
_: 3
|
|
8537
8500
|
}, 8, ["on-file-dclick", "on-folder-dclick"])
|
|
8538
8501
|
]),
|
|
8539
|
-
O(
|
|
8502
|
+
O(vv, null, {
|
|
8540
8503
|
actions: se((f) => [
|
|
8541
8504
|
$e(p.$slots, "status-bar", Ne(Ue(f)))
|
|
8542
8505
|
]),
|
|
@@ -8544,19 +8507,19 @@ const Rn = [
|
|
|
8544
8507
|
})
|
|
8545
8508
|
], 34),
|
|
8546
8509
|
(v(), L(gt, { to: "body" }, [
|
|
8547
|
-
O(
|
|
8510
|
+
O(Hn, { name: "fade" }, {
|
|
8548
8511
|
default: se(() => [
|
|
8549
|
-
s(a).modal.visible ? (v(), L(
|
|
8512
|
+
s(a).modal.visible ? (v(), L(dn(s(a).modal.type), { key: 0 })) : T("", !0)
|
|
8550
8513
|
]),
|
|
8551
8514
|
_: 1
|
|
8552
8515
|
})
|
|
8553
8516
|
])),
|
|
8554
|
-
O(
|
|
8555
|
-
O(s(
|
|
8517
|
+
O(ev, { items: s(Vn) }, null, 8, ["items"]),
|
|
8518
|
+
O(s(Gn), { position: "bottom-center" })
|
|
8556
8519
|
], 2)
|
|
8557
|
-
], 42,
|
|
8520
|
+
], 42, Uv));
|
|
8558
8521
|
}
|
|
8559
|
-
}),
|
|
8522
|
+
}), Gv = /* @__PURE__ */ X({
|
|
8560
8523
|
__name: "VueFinderProvider",
|
|
8561
8524
|
props: {
|
|
8562
8525
|
id: {},
|
|
@@ -8565,7 +8528,7 @@ const Rn = [
|
|
|
8565
8528
|
features: {},
|
|
8566
8529
|
debug: { type: Boolean, default: !1 },
|
|
8567
8530
|
locale: {},
|
|
8568
|
-
contextMenuItems: { default: () =>
|
|
8531
|
+
contextMenuItems: { default: () => Vn },
|
|
8569
8532
|
selectionMode: { default: "multiple" },
|
|
8570
8533
|
selectionFilterType: { default: "both" },
|
|
8571
8534
|
selectionFilterMimeIncludes: { default: () => [] },
|
|
@@ -8583,7 +8546,7 @@ const Rn = [
|
|
|
8583
8546
|
const e = o, t = e.id ?? ft(Dt);
|
|
8584
8547
|
if (!t)
|
|
8585
8548
|
throw new Error('VueFinderProvider requires an "id" prop.');
|
|
8586
|
-
const n =
|
|
8549
|
+
const n = mo(e, ft("VueFinderOptions") || {});
|
|
8587
8550
|
return le(
|
|
8588
8551
|
() => e.config,
|
|
8589
8552
|
(a) => {
|
|
@@ -8595,9 +8558,9 @@ const Rn = [
|
|
|
8595
8558
|
}
|
|
8596
8559
|
},
|
|
8597
8560
|
{ deep: !0, immediate: !0 }
|
|
8598
|
-
),
|
|
8599
|
-
|
|
8600
|
-
}), (a, l) => (v(), L(
|
|
8561
|
+
), to(t, n), Kn(Dt, t), un(() => {
|
|
8562
|
+
no(t);
|
|
8563
|
+
}), (a, l) => (v(), L(qv, Ne(Ue(e)), {
|
|
8601
8564
|
icon: se((d) => [
|
|
8602
8565
|
$e(a.$slots, "icon", Ne(Ue(d)))
|
|
8603
8566
|
]),
|
|
@@ -8607,23 +8570,23 @@ const Rn = [
|
|
|
8607
8570
|
_: 3
|
|
8608
8571
|
}, 16));
|
|
8609
8572
|
}
|
|
8610
|
-
}),
|
|
8573
|
+
}), ff = {
|
|
8611
8574
|
install(o, e = {}) {
|
|
8612
8575
|
e.i18n = e.i18n ?? {};
|
|
8613
8576
|
const [t] = Object.keys(e.i18n);
|
|
8614
|
-
e.locale = e.locale ?? t ?? "en", o.provide("VueFinderOptions", e), o.component("VueFinder",
|
|
8577
|
+
e.locale = e.locale ?? t ?? "en", o.provide("VueFinderOptions", e), o.component("VueFinder", Gv);
|
|
8615
8578
|
}
|
|
8616
8579
|
};
|
|
8617
8580
|
export {
|
|
8618
|
-
|
|
8581
|
+
uf as ArrayDriver,
|
|
8619
8582
|
At as BaseAdapter,
|
|
8620
8583
|
we as ContextMenuIds,
|
|
8621
|
-
|
|
8622
|
-
|
|
8623
|
-
|
|
8624
|
-
|
|
8625
|
-
|
|
8626
|
-
|
|
8627
|
-
|
|
8628
|
-
|
|
8584
|
+
vf as IndexedDBDriver,
|
|
8585
|
+
mn as RemoteDriver,
|
|
8586
|
+
Gv as VueFinder,
|
|
8587
|
+
ff as VueFinderPlugin,
|
|
8588
|
+
Gv as VueFinderProvider,
|
|
8589
|
+
Vn as contextMenuItems,
|
|
8590
|
+
ff as default,
|
|
8591
|
+
Zt as parseBackendError
|
|
8629
8592
|
};
|