vuefinder 4.0.21 → 4.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vuefinder.css +1 -1
- package/dist/vuefinder.js +950 -937
- package/package.json +1 -1
package/dist/vuefinder.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inject as ft, reactive as ht, watch as
|
|
1
|
+
import { inject as ft, reactive as ht, watch as le, ref as M, shallowRef as dn, computed as N, markRaw as Nn, 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 ie, renderSlot as $e, toDisplayString as y, createBlock as L, resolveDynamicComponent as cn, withCtx as oe, 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 un, normalizeClass as Z, customRef as Un, Teleport as gt, normalizeStyle as Ve, isRef as jn, vModelSelect as Ft, onBeforeUnmount as vn, vModelRadio as St, mergeProps as Me, toHandlers as Re, vShow as Le, normalizeProps as Ne, guardReactiveProps as Ue, onUpdated as Hn, mergeModels as Kn, useModel as fn, Transition as qn, provide as Gn } from "vue";
|
|
2
2
|
import Wn from "mitt";
|
|
3
3
|
import { toast as re, Toaster as Yn } from "vue-sonner";
|
|
4
4
|
import { persistentAtom as Qn } from "@nanostores/persistent";
|
|
@@ -34,7 +34,7 @@ function J(o) {
|
|
|
34
34
|
}
|
|
35
35
|
function io(o) {
|
|
36
36
|
const e = localStorage.getItem(o + "_storage"), t = ht(JSON.parse(e ?? "{}"));
|
|
37
|
-
|
|
37
|
+
le(t, n);
|
|
38
38
|
function n() {
|
|
39
39
|
Object.keys(t).length ? localStorage.setItem(o + "_storage", JSON.stringify(t)) : localStorage.removeItem(o + "_storage");
|
|
40
40
|
}
|
|
@@ -82,7 +82,7 @@ function ro(o, e, t, n) {
|
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
84
|
};
|
|
85
|
-
|
|
85
|
+
le(r, (w) => {
|
|
86
86
|
c(w);
|
|
87
87
|
}), !a("locale") && !Object.keys(n).length ? c(e) : d.value = a("translations");
|
|
88
88
|
const _ = (w, ...u) => u.length ? _(w = w.replace("%s", String(u.shift())), ...u) : w;
|
|
@@ -129,7 +129,7 @@ function Qt() {
|
|
|
129
129
|
function hn(o) {
|
|
130
130
|
return o ? o === "simple" || o === "advanced" ? { ...pn[o] } : { ...Qt(), ...o } : Qt();
|
|
131
131
|
}
|
|
132
|
-
const co = "4.0.
|
|
132
|
+
const co = "4.0.22";
|
|
133
133
|
function It(o, e, t, n, a) {
|
|
134
134
|
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
135
|
}
|
|
@@ -168,7 +168,9 @@ const _t = {
|
|
|
168
168
|
}, pt = {
|
|
169
169
|
initialPath: null,
|
|
170
170
|
maxFileSize: null,
|
|
171
|
-
loadingIndicator: "circular"
|
|
171
|
+
loadingIndicator: "circular",
|
|
172
|
+
showMenuBar: !0,
|
|
173
|
+
showToolbar: !0
|
|
172
174
|
}, fo = new Set(
|
|
173
175
|
Object.keys(pt)
|
|
174
176
|
);
|
|
@@ -1749,27 +1751,27 @@ const yo = (o, e) => {
|
|
|
1749
1751
|
) && (l.preventDefault(), l.stopPropagation());
|
|
1750
1752
|
};
|
|
1751
1753
|
return (l, d) => (v(), g("div", {
|
|
1752
|
-
"data-theme":
|
|
1754
|
+
"data-theme": s(t).theme.current,
|
|
1753
1755
|
class: "vuefinder__themer vuefinder__modal-layout",
|
|
1754
1756
|
"aria-labelledby": "modal-title",
|
|
1755
1757
|
role: "dialog",
|
|
1756
1758
|
"aria-modal": "true",
|
|
1757
1759
|
tabindex: "0",
|
|
1758
|
-
onKeyup: d[1] || (d[1] = ct((r) =>
|
|
1760
|
+
onKeyup: d[1] || (d[1] = ct((r) => s(t).modal.close(), ["esc"]))
|
|
1759
1761
|
}, [
|
|
1760
|
-
d[2] || (d[2] =
|
|
1761
|
-
|
|
1762
|
-
|
|
1762
|
+
d[2] || (d[2] = i("div", { class: "vuefinder__modal-layout__overlay" }, null, -1)),
|
|
1763
|
+
i("div", ko, [
|
|
1764
|
+
i("div", {
|
|
1763
1765
|
class: "vuefinder__modal-layout__wrapper",
|
|
1764
1766
|
onContextmenu: a,
|
|
1765
|
-
onMousedown: d[0] || (d[0] = ie((r) =>
|
|
1767
|
+
onMousedown: d[0] || (d[0] = ie((r) => s(t).modal.close(), ["self"]))
|
|
1766
1768
|
}, [
|
|
1767
|
-
|
|
1769
|
+
i("div", {
|
|
1768
1770
|
ref_key: "modalBody",
|
|
1769
1771
|
ref: e,
|
|
1770
1772
|
class: "vuefinder__modal-layout__body"
|
|
1771
1773
|
}, [
|
|
1772
|
-
|
|
1774
|
+
i("div", $o, [
|
|
1773
1775
|
$e(l.$slots, "default")
|
|
1774
1776
|
]),
|
|
1775
1777
|
l.$slots.buttons ? (v(), g("div", xo, [
|
|
@@ -1779,7 +1781,7 @@ const yo = (o, e) => {
|
|
|
1779
1781
|
], 32)
|
|
1780
1782
|
]),
|
|
1781
1783
|
n.showDragOverlay ? (v(), g("div", So, [
|
|
1782
|
-
|
|
1784
|
+
i("div", Co, y(n.dragOverlayText || "Drag and drop the files/folders to here."), 1)
|
|
1783
1785
|
])) : T("", !0)
|
|
1784
1786
|
], 40, bo));
|
|
1785
1787
|
}
|
|
@@ -1794,10 +1796,10 @@ const yo = (o, e) => {
|
|
|
1794
1796
|
},
|
|
1795
1797
|
setup(o) {
|
|
1796
1798
|
return (e, t) => (v(), g("div", Fo, [
|
|
1797
|
-
|
|
1799
|
+
i("div", Do, [
|
|
1798
1800
|
(v(), L(cn(o.icon), { class: "vuefinder__modal-header__icon" }))
|
|
1799
1801
|
]),
|
|
1800
|
-
|
|
1802
|
+
i("div", Po, y(o.title), 1)
|
|
1801
1803
|
]));
|
|
1802
1804
|
}
|
|
1803
1805
|
}), Eo = {
|
|
@@ -1809,12 +1811,12 @@ const yo = (o, e) => {
|
|
|
1809
1811
|
};
|
|
1810
1812
|
function Mo(o, e) {
|
|
1811
1813
|
return v(), g("svg", Eo, [...e[0] || (e[0] = [
|
|
1812
|
-
|
|
1814
|
+
i("circle", {
|
|
1813
1815
|
cx: "12",
|
|
1814
1816
|
cy: "12",
|
|
1815
1817
|
r: "9"
|
|
1816
1818
|
}, null, -1),
|
|
1817
|
-
|
|
1819
|
+
i("path", {
|
|
1818
1820
|
"stroke-linecap": "round",
|
|
1819
1821
|
"stroke-linejoin": "round",
|
|
1820
1822
|
d: "M12 8.2h.01M10.75 11.25H12v4.5m0 0h1.25m-1.25 0h-2"
|
|
@@ -1832,39 +1834,39 @@ const yn = { render: Mo }, To = { class: "vuefinder__about-modal__content" }, Io
|
|
|
1832
1834
|
const e = J(), { t } = e.i18n;
|
|
1833
1835
|
return (n, a) => (v(), L(Fe, null, {
|
|
1834
1836
|
buttons: oe(() => [
|
|
1835
|
-
|
|
1837
|
+
i("button", {
|
|
1836
1838
|
type: "button",
|
|
1837
1839
|
class: "vf-btn vf-btn-secondary",
|
|
1838
|
-
onClick: a[0] || (a[0] = (l) =>
|
|
1839
|
-
}, y(
|
|
1840
|
+
onClick: a[0] || (a[0] = (l) => s(e).modal.close())
|
|
1841
|
+
}, y(s(t)("Close")), 1)
|
|
1840
1842
|
]),
|
|
1841
1843
|
default: oe(() => [
|
|
1842
|
-
|
|
1844
|
+
i("div", To, [
|
|
1843
1845
|
O(Pe, {
|
|
1844
|
-
icon:
|
|
1845
|
-
title: "Vuefinder " +
|
|
1846
|
+
icon: s(yn),
|
|
1847
|
+
title: "Vuefinder " + s(e).version
|
|
1846
1848
|
}, null, 8, ["icon", "title"]),
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
a[1] || (a[1] =
|
|
1849
|
+
i("div", Io, [
|
|
1850
|
+
i("div", Ao, [
|
|
1851
|
+
i("div", Oo, y(s(t)("A modern, customizable file manager component built for Vue.")), 1),
|
|
1852
|
+
i("div", Bo, y(s(t)("If you like it, please follow and ⭐ star on GitHub.")), 1),
|
|
1853
|
+
i("div", Lo, [
|
|
1854
|
+
i("a", Vo, y(s(t)("Project Home")), 1),
|
|
1855
|
+
a[1] || (a[1] = i("a", {
|
|
1854
1856
|
href: "https://github.com/n1crack/vuefinder",
|
|
1855
1857
|
class: "vuefinder__about-modal__link-btn",
|
|
1856
1858
|
target: "_blank",
|
|
1857
1859
|
rel: "noopener noreferrer"
|
|
1858
1860
|
}, " GitHub ", -1))
|
|
1859
1861
|
]),
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1862
|
+
i("div", zo, [
|
|
1863
|
+
i("div", Ro, [
|
|
1864
|
+
i("span", No, y(s(t)("Version")), 1),
|
|
1865
|
+
i("span", Uo, y(s(e).version), 1)
|
|
1864
1866
|
]),
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
a[2] || (a[2] =
|
|
1867
|
+
i("div", jo, [
|
|
1868
|
+
i("span", Ho, y(s(t)("License")), 1),
|
|
1869
|
+
a[2] || (a[2] = i("span", { class: "vuefinder__about-modal__meta-value" }, "MIT", -1))
|
|
1868
1870
|
])
|
|
1869
1871
|
])
|
|
1870
1872
|
])
|
|
@@ -1882,7 +1884,7 @@ const yn = { render: Mo }, To = { class: "vuefinder__about-modal__content" }, Io
|
|
|
1882
1884
|
};
|
|
1883
1885
|
function qo(o, e) {
|
|
1884
1886
|
return v(), g("svg", Ko, [...e[0] || (e[0] = [
|
|
1885
|
-
|
|
1887
|
+
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)
|
|
1886
1888
|
])]);
|
|
1887
1889
|
}
|
|
1888
1890
|
const kn = { render: qo }, Go = { class: "vuefinder__delete-modal__content" }, Wo = { class: "vuefinder__delete-modal__form" }, Yo = { class: "vuefinder__delete-modal__description" }, Qo = { class: "vuefinder__delete-modal__files vf-scrollbar" }, Xo = {
|
|
@@ -1919,58 +1921,58 @@ const kn = { render: qo }, Go = { class: "vuefinder__delete-modal__content" }, W
|
|
|
1919
1921
|
};
|
|
1920
1922
|
return (c, _) => (v(), L(Fe, null, {
|
|
1921
1923
|
buttons: oe(() => [
|
|
1922
|
-
|
|
1924
|
+
i("button", {
|
|
1923
1925
|
type: "button",
|
|
1924
1926
|
class: "vf-btn vf-btn-danger",
|
|
1925
1927
|
disabled: !d.value,
|
|
1926
1928
|
onClick: r
|
|
1927
|
-
}, y(
|
|
1928
|
-
|
|
1929
|
+
}, y(s(t)("Yes, Delete!")), 9, es),
|
|
1930
|
+
i("button", {
|
|
1929
1931
|
type: "button",
|
|
1930
1932
|
class: "vf-btn vf-btn-secondary",
|
|
1931
|
-
onClick: _[0] || (_[0] = (m) =>
|
|
1932
|
-
}, y(
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
pe(
|
|
1933
|
+
onClick: _[0] || (_[0] = (m) => s(e).modal.close())
|
|
1934
|
+
}, y(s(t)("Cancel")), 1),
|
|
1935
|
+
i("div", ts, [
|
|
1936
|
+
i("label", ns, [
|
|
1937
|
+
pe(i("input", {
|
|
1936
1938
|
"onUpdate:modelValue": _[1] || (_[1] = (m) => d.value = m),
|
|
1937
1939
|
type: "checkbox",
|
|
1938
1940
|
class: "vuefinder__delete-modal__checkbox"
|
|
1939
1941
|
}, null, 512), [
|
|
1940
1942
|
[mt, d.value]
|
|
1941
1943
|
]),
|
|
1942
|
-
|
|
1944
|
+
i("span", os, y(s(t)("I'm sure delete it, This action cannot be undone.")), 1)
|
|
1943
1945
|
])
|
|
1944
1946
|
])
|
|
1945
1947
|
]),
|
|
1946
1948
|
default: oe(() => [
|
|
1947
|
-
|
|
1949
|
+
i("div", null, [
|
|
1948
1950
|
O(Pe, {
|
|
1949
|
-
icon:
|
|
1950
|
-
title:
|
|
1951
|
+
icon: s(kn),
|
|
1952
|
+
title: s(t)("Delete files")
|
|
1951
1953
|
}, null, 8, ["icon", "title"]),
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1954
|
+
i("div", Go, [
|
|
1955
|
+
i("div", Wo, [
|
|
1956
|
+
i("p", Yo, y(s(t)("Are you sure you want to delete these files?")), 1),
|
|
1957
|
+
i("div", Qo, [
|
|
1956
1958
|
(v(!0), g(ve, null, he(l.value, (m) => (v(), g("p", {
|
|
1957
1959
|
key: m.path,
|
|
1958
1960
|
class: "vuefinder__delete-modal__file"
|
|
1959
1961
|
}, [
|
|
1960
1962
|
m.type === "dir" ? (v(), g("svg", Xo, [..._[2] || (_[2] = [
|
|
1961
|
-
|
|
1963
|
+
i("path", {
|
|
1962
1964
|
"stroke-linecap": "round",
|
|
1963
1965
|
"stroke-linejoin": "round",
|
|
1964
1966
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
1965
1967
|
}, null, -1)
|
|
1966
1968
|
])])) : (v(), g("svg", Jo, [..._[3] || (_[3] = [
|
|
1967
|
-
|
|
1969
|
+
i("path", {
|
|
1968
1970
|
"stroke-linecap": "round",
|
|
1969
1971
|
"stroke-linejoin": "round",
|
|
1970
1972
|
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"
|
|
1971
1973
|
}, null, -1)
|
|
1972
1974
|
])])),
|
|
1973
|
-
|
|
1975
|
+
i("span", Zo, y(m.basename), 1)
|
|
1974
1976
|
]))), 128))
|
|
1975
1977
|
])
|
|
1976
1978
|
])
|
|
@@ -1988,7 +1990,7 @@ const kn = { render: qo }, Go = { class: "vuefinder__delete-modal__content" }, W
|
|
|
1988
1990
|
};
|
|
1989
1991
|
function is(o, e) {
|
|
1990
1992
|
return v(), g("svg", ss, [...e[0] || (e[0] = [
|
|
1991
|
-
|
|
1993
|
+
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)
|
|
1992
1994
|
])]);
|
|
1993
1995
|
}
|
|
1994
1996
|
const $n = { render: is }, as = { class: "vuefinder__rename-modal__content" }, rs = { class: "vuefinder__rename-modal__item" }, ls = { class: "vuefinder__rename-modal__item-info" }, ds = {
|
|
@@ -2023,42 +2025,42 @@ const $n = { render: is }, as = { class: "vuefinder__rename-modal__content" }, r
|
|
|
2023
2025
|
};
|
|
2024
2026
|
return (c, _) => (v(), L(Fe, null, {
|
|
2025
2027
|
buttons: oe(() => [
|
|
2026
|
-
|
|
2028
|
+
i("button", {
|
|
2027
2029
|
type: "button",
|
|
2028
2030
|
class: "vf-btn vf-btn-primary",
|
|
2029
2031
|
onClick: r
|
|
2030
|
-
}, y(
|
|
2031
|
-
|
|
2032
|
+
}, y(s(t)("Rename")), 1),
|
|
2033
|
+
i("button", {
|
|
2032
2034
|
type: "button",
|
|
2033
2035
|
class: "vf-btn vf-btn-secondary",
|
|
2034
|
-
onClick: _[1] || (_[1] = (m) =>
|
|
2035
|
-
}, y(
|
|
2036
|
+
onClick: _[1] || (_[1] = (m) => s(e).modal.close())
|
|
2037
|
+
}, y(s(t)("Cancel")), 1)
|
|
2036
2038
|
]),
|
|
2037
2039
|
default: oe(() => [
|
|
2038
|
-
|
|
2040
|
+
i("div", null, [
|
|
2039
2041
|
O(Pe, {
|
|
2040
|
-
icon:
|
|
2041
|
-
title:
|
|
2042
|
+
icon: s($n),
|
|
2043
|
+
title: s(t)("Rename")
|
|
2042
2044
|
}, null, 8, ["icon", "title"]),
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2045
|
+
i("div", as, [
|
|
2046
|
+
i("div", rs, [
|
|
2047
|
+
i("p", ls, [
|
|
2046
2048
|
l.value.type === "dir" ? (v(), g("svg", ds, [..._[2] || (_[2] = [
|
|
2047
|
-
|
|
2049
|
+
i("path", {
|
|
2048
2050
|
"stroke-linecap": "round",
|
|
2049
2051
|
"stroke-linejoin": "round",
|
|
2050
2052
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
2051
2053
|
}, null, -1)
|
|
2052
2054
|
])])) : (v(), g("svg", cs, [..._[3] || (_[3] = [
|
|
2053
|
-
|
|
2055
|
+
i("path", {
|
|
2054
2056
|
"stroke-linecap": "round",
|
|
2055
2057
|
"stroke-linejoin": "round",
|
|
2056
2058
|
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"
|
|
2057
2059
|
}, null, -1)
|
|
2058
2060
|
])])),
|
|
2059
|
-
|
|
2061
|
+
i("span", us, y(l.value.basename), 1)
|
|
2060
2062
|
]),
|
|
2061
|
-
pe(
|
|
2063
|
+
pe(i("input", {
|
|
2062
2064
|
"onUpdate:modelValue": _[0] || (_[0] = (m) => d.value = m),
|
|
2063
2065
|
class: "vuefinder__rename-modal__input",
|
|
2064
2066
|
placeholder: "Name",
|
|
@@ -2111,28 +2113,28 @@ const vs = { class: "vuefinder__text-preview" }, fs = { class: "vuefinder__text-
|
|
|
2111
2113
|
}
|
|
2112
2114
|
};
|
|
2113
2115
|
return (u, $) => (v(), g("div", vs, [
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
+
i("div", fs, [
|
|
2117
|
+
i("div", {
|
|
2116
2118
|
id: "modal-title",
|
|
2117
2119
|
class: "vuefinder__text-preview__title",
|
|
2118
|
-
title:
|
|
2119
|
-
}, y(
|
|
2120
|
-
|
|
2120
|
+
title: s(r).modal.data.item.path
|
|
2121
|
+
}, y(s(r).modal.data.item.basename), 9, _s),
|
|
2122
|
+
i("div", ps, [
|
|
2121
2123
|
d.value ? (v(), g("button", {
|
|
2122
2124
|
key: 0,
|
|
2123
2125
|
class: "vuefinder__text-preview__save-button",
|
|
2124
2126
|
onClick: w
|
|
2125
|
-
}, y(
|
|
2126
|
-
|
|
2127
|
+
}, y(s(_)("Save")), 1)) : T("", !0),
|
|
2128
|
+
s(c)("edit") ? (v(), g("button", {
|
|
2127
2129
|
key: 1,
|
|
2128
2130
|
class: "vuefinder__text-preview__edit-button",
|
|
2129
2131
|
onClick: $[0] || ($[0] = (D) => m())
|
|
2130
|
-
}, y(d.value ?
|
|
2132
|
+
}, y(d.value ? s(_)("Cancel") : s(_)("Edit")), 1)) : T("", !0)
|
|
2131
2133
|
])
|
|
2132
2134
|
]),
|
|
2133
|
-
|
|
2135
|
+
i("div", null, [
|
|
2134
2136
|
d.value ? (v(), g("div", ms, [
|
|
2135
|
-
pe(
|
|
2137
|
+
pe(i("textarea", {
|
|
2136
2138
|
ref_key: "editInput",
|
|
2137
2139
|
ref: l,
|
|
2138
2140
|
"onUpdate:modelValue": $[1] || ($[1] = (D) => a.value = D),
|
|
@@ -2365,27 +2367,27 @@ const ws = { class: "vuefinder__image-preview" }, ys = { class: "vuefinder__imag
|
|
|
2365
2367
|
return fe(() => {
|
|
2366
2368
|
t("success");
|
|
2367
2369
|
}), (h, f) => (v(), g("div", ws, [
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
+
i("div", ys, [
|
|
2371
|
+
i("h3", {
|
|
2370
2372
|
id: "modal-title",
|
|
2371
2373
|
class: "vuefinder__image-preview__title",
|
|
2372
|
-
title:
|
|
2373
|
-
}, y(
|
|
2374
|
-
|
|
2374
|
+
title: s(n).modal.data.item.path
|
|
2375
|
+
}, y(s(n).modal.data.item.basename), 9, bs),
|
|
2376
|
+
i("div", ks, [
|
|
2375
2377
|
d.value ? (v(), g("button", {
|
|
2376
2378
|
key: 0,
|
|
2377
2379
|
class: "vuefinder__image-preview__crop-button",
|
|
2378
2380
|
onClick: p
|
|
2379
|
-
}, y(
|
|
2380
|
-
|
|
2381
|
+
}, y(s(l)("Crop")), 1)) : T("", !0),
|
|
2382
|
+
s(a)("edit") ? (v(), g("button", {
|
|
2381
2383
|
key: 1,
|
|
2382
2384
|
class: "vuefinder__image-preview__edit-button",
|
|
2383
2385
|
onClick: f[0] || (f[0] = (k) => S())
|
|
2384
|
-
}, y(d.value ?
|
|
2386
|
+
}, y(d.value ? s(l)("Cancel") : s(l)("Edit")), 1)) : T("", !0)
|
|
2385
2387
|
])
|
|
2386
2388
|
]),
|
|
2387
|
-
|
|
2388
|
-
d.value ? (v(), L(
|
|
2389
|
+
i("div", $s, [
|
|
2390
|
+
d.value ? (v(), L(s(Zn), {
|
|
2389
2391
|
key: 1,
|
|
2390
2392
|
ref_key: "cropperRef",
|
|
2391
2393
|
ref: D,
|
|
@@ -2398,7 +2400,7 @@ const ws = { class: "vuefinder__image-preview" }, ys = { class: "vuefinder__imag
|
|
|
2398
2400
|
}, null, 8, ["src"])) : (v(), g("img", {
|
|
2399
2401
|
key: 0,
|
|
2400
2402
|
style: {},
|
|
2401
|
-
src:
|
|
2403
|
+
src: s(n).modal.data.item.previewUrl ?? s(n).adapter.getPreviewUrl({ path: s(n).modal.data.item.path }),
|
|
2402
2404
|
class: "vuefinder__image-preview__image h-full w-full"
|
|
2403
2405
|
}, null, 8, xs))
|
|
2404
2406
|
])
|
|
@@ -2412,7 +2414,7 @@ const ws = { class: "vuefinder__image-preview" }, ys = { class: "vuefinder__imag
|
|
|
2412
2414
|
};
|
|
2413
2415
|
function Fs(o, e) {
|
|
2414
2416
|
return v(), g("svg", Cs, [...e[0] || (e[0] = [
|
|
2415
|
-
|
|
2417
|
+
i("path", {
|
|
2416
2418
|
"stroke-linecap": "round",
|
|
2417
2419
|
"stroke-linejoin": "round",
|
|
2418
2420
|
d: "M7 21h10a2 2 0 0 0 2-2V9.414a1 1 0 0 0-.293-.707l-5.414-5.414A1 1 0 0 0 12.586 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2"
|
|
@@ -2427,21 +2429,21 @@ const lt = { render: Fs }, Ds = { class: "vuefinder__default-preview" }, Ps = {
|
|
|
2427
2429
|
return fe(() => {
|
|
2428
2430
|
n("success");
|
|
2429
2431
|
}), (a, l) => (v(), g("div", Ds, [
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2432
|
+
i("div", Ps, [
|
|
2433
|
+
i("div", Es, [
|
|
2434
|
+
i("h3", {
|
|
2433
2435
|
id: "modal-title",
|
|
2434
2436
|
class: "vuefinder__default-preview__title",
|
|
2435
|
-
title:
|
|
2436
|
-
}, y(
|
|
2437
|
+
title: s(t).modal.data.item.path
|
|
2438
|
+
}, y(s(t).modal.data.item.basename), 9, Ms)
|
|
2437
2439
|
]),
|
|
2438
|
-
|
|
2439
|
-
O(
|
|
2440
|
-
|
|
2440
|
+
i("div", Ts, [
|
|
2441
|
+
O(s(lt), { class: "vuefinder__default-preview__file-icon" }),
|
|
2442
|
+
i("div", {
|
|
2441
2443
|
id: "modal-title",
|
|
2442
2444
|
class: "vuefinder__default-preview__file-name",
|
|
2443
|
-
title:
|
|
2444
|
-
}, y(
|
|
2445
|
+
title: s(t).modal.data.item.path
|
|
2446
|
+
}, y(s(t).modal.data.item.basename), 9, Is)
|
|
2445
2447
|
])
|
|
2446
2448
|
])
|
|
2447
2449
|
]));
|
|
@@ -2458,18 +2460,18 @@ const lt = { render: Fs }, Ds = { class: "vuefinder__default-preview" }, Ps = {
|
|
|
2458
2460
|
return fe(() => {
|
|
2459
2461
|
n("success");
|
|
2460
2462
|
}), (l, d) => (v(), g("div", Os, [
|
|
2461
|
-
|
|
2463
|
+
i("h3", {
|
|
2462
2464
|
id: "modal-title",
|
|
2463
2465
|
class: "vuefinder__video-preview__title",
|
|
2464
|
-
title:
|
|
2465
|
-
}, y(
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2466
|
+
title: s(t).modal.data.item.path
|
|
2467
|
+
}, y(s(t).modal.data.item.basename), 9, Bs),
|
|
2468
|
+
i("div", null, [
|
|
2469
|
+
i("video", Ls, [
|
|
2470
|
+
i("source", {
|
|
2469
2471
|
src: a(),
|
|
2470
2472
|
type: "video/mp4"
|
|
2471
2473
|
}, null, 8, Vs),
|
|
2472
|
-
d[0] || (d[0] =
|
|
2474
|
+
d[0] || (d[0] = de(" Your browser does not support the video tag. ", -1))
|
|
2473
2475
|
])
|
|
2474
2476
|
])
|
|
2475
2477
|
]));
|
|
@@ -2488,18 +2490,18 @@ const lt = { render: Fs }, Ds = { class: "vuefinder__default-preview" }, Ps = {
|
|
|
2488
2490
|
return fe(() => {
|
|
2489
2491
|
t("success");
|
|
2490
2492
|
}), (l, d) => (v(), g("div", Rs, [
|
|
2491
|
-
|
|
2493
|
+
i("h3", {
|
|
2492
2494
|
id: "modal-title",
|
|
2493
2495
|
class: "vuefinder__audio-preview__title",
|
|
2494
|
-
title:
|
|
2495
|
-
}, y(
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2496
|
+
title: s(n).modal.data.item.path
|
|
2497
|
+
}, y(s(n).modal.data.item.basename), 9, Ns),
|
|
2498
|
+
i("div", null, [
|
|
2499
|
+
i("audio", Us, [
|
|
2500
|
+
i("source", {
|
|
2499
2501
|
src: a(),
|
|
2500
2502
|
type: "audio/mpeg"
|
|
2501
2503
|
}, null, 8, js),
|
|
2502
|
-
d[0] || (d[0] =
|
|
2504
|
+
d[0] || (d[0] = de(" Your browser does not support the audio element. ", -1))
|
|
2503
2505
|
])
|
|
2504
2506
|
])
|
|
2505
2507
|
]));
|
|
@@ -2515,20 +2517,20 @@ const lt = { render: Fs }, Ds = { class: "vuefinder__default-preview" }, Ps = {
|
|
|
2515
2517
|
return fe(() => {
|
|
2516
2518
|
n("success");
|
|
2517
2519
|
}), (l, d) => (v(), g("div", Ks, [
|
|
2518
|
-
|
|
2520
|
+
i("h3", {
|
|
2519
2521
|
id: "modal-title",
|
|
2520
2522
|
class: "vuefinder__pdf-preview__title",
|
|
2521
|
-
title:
|
|
2522
|
-
}, y(
|
|
2523
|
-
|
|
2524
|
-
|
|
2523
|
+
title: s(t).modal.data.item.path
|
|
2524
|
+
}, y(s(t).modal.data.item.basename), 9, qs),
|
|
2525
|
+
i("div", null, [
|
|
2526
|
+
i("object", {
|
|
2525
2527
|
class: "vuefinder__pdf-preview__object",
|
|
2526
2528
|
data: a(),
|
|
2527
2529
|
type: "application/pdf",
|
|
2528
2530
|
width: "100%",
|
|
2529
2531
|
height: "100%"
|
|
2530
2532
|
}, [
|
|
2531
|
-
|
|
2533
|
+
i("iframe", {
|
|
2532
2534
|
class: "vuefinder__pdf-preview__iframe",
|
|
2533
2535
|
src: a(),
|
|
2534
2536
|
width: "100%",
|
|
@@ -2604,61 +2606,61 @@ const Xs = {
|
|
|
2604
2606
|
f && f.focus();
|
|
2605
2607
|
}), (f, k) => (v(), L(Fe, null, {
|
|
2606
2608
|
buttons: oe(() => [
|
|
2607
|
-
|
|
2609
|
+
i("button", {
|
|
2608
2610
|
type: "button",
|
|
2609
2611
|
class: "vf-btn vf-btn-secondary",
|
|
2610
|
-
onClick: k[6] || (k[6] = (C) =>
|
|
2611
|
-
}, y(
|
|
2612
|
-
|
|
2612
|
+
onClick: k[6] || (k[6] = (C) => s(e).modal.close())
|
|
2613
|
+
}, y(s(n)("Close")), 1),
|
|
2614
|
+
s(t)("download") ? (v(), g("a", {
|
|
2613
2615
|
key: 0,
|
|
2614
2616
|
target: "_blank",
|
|
2615
2617
|
class: "vf-btn vf-btn-primary",
|
|
2616
|
-
download:
|
|
2617
|
-
href:
|
|
2618
|
-
}, y(
|
|
2618
|
+
download: s(e).adapter.getDownloadUrl({ path: s(e).modal.data.item.path }),
|
|
2619
|
+
href: s(e).adapter.getDownloadUrl({ path: s(e).modal.data.item.path })
|
|
2620
|
+
}, y(s(n)("Download")), 9, li)) : T("", !0)
|
|
2619
2621
|
]),
|
|
2620
2622
|
default: oe(() => [
|
|
2621
|
-
|
|
2623
|
+
i("div", {
|
|
2622
2624
|
class: "vuefinder__preview-modal",
|
|
2623
2625
|
tabindex: "0",
|
|
2624
2626
|
onKeydown: h
|
|
2625
2627
|
}, [
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
+
s(e).modal.editMode ? T("", !0) : (v(), g("div", Xs, [
|
|
2629
|
+
i("button", {
|
|
2628
2630
|
disabled: !$.value,
|
|
2629
2631
|
class: "vuefinder__preview-modal__nav-side vuefinder__preview-modal__nav-side--left",
|
|
2630
|
-
title:
|
|
2632
|
+
title: s(n)("Previous file"),
|
|
2631
2633
|
onClick: S
|
|
2632
2634
|
}, [...k[7] || (k[7] = [
|
|
2633
|
-
|
|
2635
|
+
i("svg", {
|
|
2634
2636
|
class: "vuefinder__preview-modal__nav-icon",
|
|
2635
2637
|
viewBox: "0 0 24 24",
|
|
2636
2638
|
fill: "none",
|
|
2637
2639
|
stroke: "currentColor",
|
|
2638
2640
|
"stroke-width": "2"
|
|
2639
2641
|
}, [
|
|
2640
|
-
|
|
2642
|
+
i("polyline", { points: "15,18 9,12 15,6" })
|
|
2641
2643
|
], -1)
|
|
2642
2644
|
])], 8, Js),
|
|
2643
|
-
|
|
2645
|
+
i("button", {
|
|
2644
2646
|
disabled: !D.value,
|
|
2645
2647
|
class: "vuefinder__preview-modal__nav-side vuefinder__preview-modal__nav-side--right",
|
|
2646
|
-
title:
|
|
2648
|
+
title: s(n)("Next file"),
|
|
2647
2649
|
onClick: p
|
|
2648
2650
|
}, [...k[8] || (k[8] = [
|
|
2649
|
-
|
|
2651
|
+
i("svg", {
|
|
2650
2652
|
class: "vuefinder__preview-modal__nav-icon",
|
|
2651
2653
|
viewBox: "0 0 24 24",
|
|
2652
2654
|
fill: "none",
|
|
2653
2655
|
stroke: "currentColor",
|
|
2654
2656
|
"stroke-width": "2"
|
|
2655
2657
|
}, [
|
|
2656
|
-
|
|
2658
|
+
i("polyline", { points: "9,18 15,12 9,6" })
|
|
2657
2659
|
], -1)
|
|
2658
2660
|
])], 8, Zs)
|
|
2659
2661
|
])),
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
+
i("div", ei, [
|
|
2663
|
+
s(c) ? (v(), g("div", ti, [
|
|
2662
2664
|
r("text") ? (v(), L(gs, {
|
|
2663
2665
|
key: `text-${_.value.path}`,
|
|
2664
2666
|
onSuccess: k[0] || (k[0] = (C) => a.value = !0)
|
|
@@ -2679,15 +2681,15 @@ const Xs = {
|
|
|
2679
2681
|
onSuccess: k[5] || (k[5] = (C) => a.value = !0)
|
|
2680
2682
|
}))
|
|
2681
2683
|
])) : T("", !0),
|
|
2682
|
-
|
|
2684
|
+
i("div", ni, [
|
|
2683
2685
|
a.value === !1 ? (v(), g("div", oi, [
|
|
2684
|
-
k[9] || (k[9] =
|
|
2686
|
+
k[9] || (k[9] = i("svg", {
|
|
2685
2687
|
class: "vuefinder__preview-modal__spinner",
|
|
2686
2688
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2687
2689
|
fill: "none",
|
|
2688
2690
|
viewBox: "0 0 24 24"
|
|
2689
2691
|
}, [
|
|
2690
|
-
|
|
2692
|
+
i("circle", {
|
|
2691
2693
|
class: "vuefinder__preview-modal__spinner-circle",
|
|
2692
2694
|
cx: "12",
|
|
2693
2695
|
cy: "12",
|
|
@@ -2695,29 +2697,29 @@ const Xs = {
|
|
|
2695
2697
|
stroke: "currentColor",
|
|
2696
2698
|
"stroke-width": "4"
|
|
2697
2699
|
}),
|
|
2698
|
-
|
|
2700
|
+
i("path", {
|
|
2699
2701
|
class: "vuefinder__preview-modal__spinner-path",
|
|
2700
2702
|
fill: "currentColor",
|
|
2701
2703
|
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
2702
2704
|
})
|
|
2703
2705
|
], -1)),
|
|
2704
|
-
|
|
2706
|
+
i("span", null, y(s(n)("Loading")), 1)
|
|
2705
2707
|
])) : T("", !0)
|
|
2706
2708
|
])
|
|
2707
2709
|
])
|
|
2708
2710
|
], 32),
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2711
|
+
i("div", si, [
|
|
2712
|
+
i("div", null, [
|
|
2713
|
+
i("span", ii, y(s(n)("File Size")) + ": ", 1),
|
|
2714
|
+
de(y(s(e).filesize(s(e).modal.data.item.file_size)), 1)
|
|
2713
2715
|
]),
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2716
|
+
i("div", null, [
|
|
2717
|
+
i("span", ai, y(s(n)("Last Modified")) + ": ", 1),
|
|
2718
|
+
de(" " + y(s(Qs)(s(e).modal.data.item.last_modified)), 1)
|
|
2717
2719
|
])
|
|
2718
2720
|
]),
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
+
s(t)("download") ? (v(), g("div", ri, [
|
|
2722
|
+
i("span", null, y(s(n)(
|
|
2721
2723
|
`Download doesn't work? You can try right-click "Download" button, select "Save link as...".`
|
|
2722
2724
|
)), 1)
|
|
2723
2725
|
])) : T("", !0)
|
|
@@ -2737,11 +2739,11 @@ const Xs = {
|
|
|
2737
2739
|
};
|
|
2738
2740
|
function ci(o, e) {
|
|
2739
2741
|
return v(), g("svg", di, [...e[0] || (e[0] = [
|
|
2740
|
-
|
|
2742
|
+
i("path", {
|
|
2741
2743
|
stroke: "none",
|
|
2742
2744
|
d: "M0 0h24v24H0z"
|
|
2743
2745
|
}, null, -1),
|
|
2744
|
-
|
|
2746
|
+
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)
|
|
2745
2747
|
])]);
|
|
2746
2748
|
}
|
|
2747
2749
|
const ui = { render: ci }, vi = {
|
|
@@ -2752,7 +2754,7 @@ const ui = { render: ci }, vi = {
|
|
|
2752
2754
|
};
|
|
2753
2755
|
function fi(o, e) {
|
|
2754
2756
|
return v(), g("svg", vi, [...e[0] || (e[0] = [
|
|
2755
|
-
|
|
2757
|
+
i("path", {
|
|
2756
2758
|
"stroke-linecap": "round",
|
|
2757
2759
|
"stroke-linejoin": "round",
|
|
2758
2760
|
"stroke-width": "1.5",
|
|
@@ -2768,7 +2770,7 @@ const Bt = { render: fi }, _i = {
|
|
|
2768
2770
|
};
|
|
2769
2771
|
function pi(o, e) {
|
|
2770
2772
|
return v(), g("svg", _i, [...e[0] || (e[0] = [
|
|
2771
|
-
|
|
2773
|
+
i("path", {
|
|
2772
2774
|
"stroke-linecap": "round",
|
|
2773
2775
|
"stroke-linejoin": "round",
|
|
2774
2776
|
d: "M3 7v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-6l-2-2H5a2 2 0 0 0-2 2"
|
|
@@ -2786,11 +2788,11 @@ const Oe = { render: pi }, hi = {
|
|
|
2786
2788
|
};
|
|
2787
2789
|
function mi(o, e) {
|
|
2788
2790
|
return v(), g("svg", hi, [...e[0] || (e[0] = [
|
|
2789
|
-
|
|
2791
|
+
i("path", {
|
|
2790
2792
|
stroke: "none",
|
|
2791
2793
|
d: "M0 0h24v24H0z"
|
|
2792
2794
|
}, null, -1),
|
|
2793
|
-
|
|
2795
|
+
i("path", { d: "M12 5v14M5 12h14" }, null, -1)
|
|
2794
2796
|
])]);
|
|
2795
2797
|
}
|
|
2796
2798
|
const kt = { render: mi }, gi = {
|
|
@@ -2804,11 +2806,11 @@ const kt = { render: mi }, gi = {
|
|
|
2804
2806
|
};
|
|
2805
2807
|
function wi(o, e) {
|
|
2806
2808
|
return v(), g("svg", gi, [...e[0] || (e[0] = [
|
|
2807
|
-
|
|
2809
|
+
i("path", {
|
|
2808
2810
|
stroke: "none",
|
|
2809
2811
|
d: "M0 0h24v24H0z"
|
|
2810
2812
|
}, null, -1),
|
|
2811
|
-
|
|
2813
|
+
i("path", { d: "M5 12h14" }, null, -1)
|
|
2812
2814
|
])]);
|
|
2813
2815
|
}
|
|
2814
2816
|
const $t = { render: wi }, yi = {
|
|
@@ -2823,11 +2825,11 @@ const $t = { render: wi }, yi = {
|
|
|
2823
2825
|
};
|
|
2824
2826
|
function bi(o, e) {
|
|
2825
2827
|
return v(), g("svg", yi, [...e[0] || (e[0] = [
|
|
2826
|
-
|
|
2828
|
+
i("path", {
|
|
2827
2829
|
stroke: "none",
|
|
2828
2830
|
d: "M0 0h24v24H0z"
|
|
2829
2831
|
}, null, -1),
|
|
2830
|
-
|
|
2832
|
+
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)
|
|
2831
2833
|
])]);
|
|
2832
2834
|
}
|
|
2833
2835
|
const Lt = { render: bi }, ki = {
|
|
@@ -2838,7 +2840,7 @@ const Lt = { render: bi }, ki = {
|
|
|
2838
2840
|
};
|
|
2839
2841
|
function $i(o, e) {
|
|
2840
2842
|
return v(), g("svg", ki, [...e[0] || (e[0] = [
|
|
2841
|
-
|
|
2843
|
+
i("path", {
|
|
2842
2844
|
"stroke-linecap": "round",
|
|
2843
2845
|
"stroke-linejoin": "round",
|
|
2844
2846
|
d: "M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4"
|
|
@@ -2854,7 +2856,7 @@ const Vt = { render: $i }, xi = {
|
|
|
2854
2856
|
};
|
|
2855
2857
|
function Si(o, e) {
|
|
2856
2858
|
return v(), g("svg", xi, [...e[0] || (e[0] = [
|
|
2857
|
-
|
|
2859
|
+
i("path", {
|
|
2858
2860
|
"stroke-linecap": "round",
|
|
2859
2861
|
"stroke-linejoin": "round",
|
|
2860
2862
|
d: "M3.75 9.776q.168-.026.344-.026h15.812q.176 0 .344.026m-16.5 0a2.25 2.25 0 0 0-1.883 2.542l.857 6a2.25 2.25 0 0 0 2.227 1.932H19.05a2.25 2.25 0 0 0 2.227-1.932l.857-6a2.25 2.25 0 0 0-1.883-2.542m-16.5 0V6A2.25 2.25 0 0 1 6 3.75h3.879a1.5 1.5 0 0 1 1.06.44l2.122 2.12a1.5 1.5 0 0 0 1.06.44H18A2.25 2.25 0 0 1 20.25 9v.776"
|
|
@@ -2907,21 +2909,21 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
2907
2909
|
return (B, Y) => {
|
|
2908
2910
|
const R = un("ModalTreeFolderItem", !0);
|
|
2909
2911
|
return v(), g("div", Ci, [
|
|
2910
|
-
|
|
2912
|
+
i("div", Fi, [
|
|
2911
2913
|
h.value ? (v(), g("div", {
|
|
2912
2914
|
key: 0,
|
|
2913
2915
|
class: "vuefinder__modal-tree__folder-toggle",
|
|
2914
2916
|
onClick: f
|
|
2915
2917
|
}, [
|
|
2916
|
-
c.value ? (v(), L(
|
|
2918
|
+
c.value ? (v(), L(s($t), {
|
|
2917
2919
|
key: 1,
|
|
2918
2920
|
class: "vuefinder__modal-tree__folder-toggle-icon"
|
|
2919
|
-
})) : (v(), L(
|
|
2921
|
+
})) : (v(), L(s(kt), {
|
|
2920
2922
|
key: 0,
|
|
2921
2923
|
class: "vuefinder__modal-tree__folder-toggle-icon"
|
|
2922
2924
|
}))
|
|
2923
2925
|
])) : (v(), g("div", Di)),
|
|
2924
|
-
|
|
2926
|
+
i("div", {
|
|
2925
2927
|
class: Z(["vuefinder__modal-tree__folder-link", {
|
|
2926
2928
|
"vuefinder__modal-tree__folder-link--selected": _.value,
|
|
2927
2929
|
"vuefinder__modal-tree__folder-link--current": m.value
|
|
@@ -2930,14 +2932,14 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
2930
2932
|
onDblclick: C,
|
|
2931
2933
|
onTouchend: A
|
|
2932
2934
|
}, [
|
|
2933
|
-
c.value ? (v(), L(
|
|
2935
|
+
c.value ? (v(), L(s(zt), {
|
|
2934
2936
|
key: 1,
|
|
2935
2937
|
class: "vuefinder__item-icon__folder--open vuefinder__modal-tree__folder-icon"
|
|
2936
|
-
})) : (v(), L(
|
|
2938
|
+
})) : (v(), L(s(Oe), {
|
|
2937
2939
|
key: 0,
|
|
2938
2940
|
class: "vuefinder__modal-tree__folder-icon vuefinder__item-icon__folder"
|
|
2939
2941
|
})),
|
|
2940
|
-
|
|
2942
|
+
i("span", Pi, y(o.folder.basename), 1)
|
|
2941
2943
|
], 34)
|
|
2942
2944
|
]),
|
|
2943
2945
|
c.value && h.value ? (v(), g("div", Ei, [
|
|
@@ -2954,10 +2956,10 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
2954
2956
|
onToggleFolder: Y[2] || (Y[2] = (U, ee) => B.$emit("toggleFolder", U, ee))
|
|
2955
2957
|
}, null, 8, ["folder", "storage", "model-value", "expanded-folders", "modal-tree-data", "current-path"]))), 128)),
|
|
2956
2958
|
S.value ? (v(), g("div", Mi, [
|
|
2957
|
-
|
|
2959
|
+
i("div", {
|
|
2958
2960
|
class: "vuefinder__modal-tree__load-more",
|
|
2959
2961
|
onClick: p
|
|
2960
|
-
}, y(
|
|
2962
|
+
}, y(s(n)("load more")), 1)
|
|
2961
2963
|
])) : T("", !0)
|
|
2962
2964
|
])) : T("", !0)
|
|
2963
2965
|
]);
|
|
@@ -2982,7 +2984,7 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
2982
2984
|
emits: ["update:modelValue", "selectAndClose"],
|
|
2983
2985
|
setup(o, { emit: e }) {
|
|
2984
2986
|
const t = J(), { t: n } = t.i18n, a = t.fs, l = t.config, d = e, r = G(a.sortedFiles), c = G(a.storages), _ = N(() => c.value || []), m = G(a.path), w = M(null), u = M({}), $ = M({}), D = M({});
|
|
2985
|
-
|
|
2987
|
+
le(r, (E) => {
|
|
2986
2988
|
const q = E.filter((z) => z.type === "dir"), j = m.value?.path || "";
|
|
2987
2989
|
j && ($.value[j] = q.map((z) => ({
|
|
2988
2990
|
...z,
|
|
@@ -3058,52 +3060,52 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3058
3060
|
}
|
|
3059
3061
|
});
|
|
3060
3062
|
}), (E, q) => (v(), g("div", Ai, [
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
+
i("div", Oi, [
|
|
3064
|
+
i("div", Bi, y(s(n)("Select Target Folder")), 1)
|
|
3063
3065
|
]),
|
|
3064
|
-
|
|
3066
|
+
i("div", {
|
|
3065
3067
|
ref_key: "modalContentElement",
|
|
3066
3068
|
ref: w,
|
|
3067
3069
|
class: "vuefinder__modal-tree__content"
|
|
3068
3070
|
}, [
|
|
3069
|
-
o.showPinnedFolders &&
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
(v(!0), g(ve, null, he(
|
|
3071
|
+
o.showPinnedFolders && s(t).features.pinned && s(l).get("pinnedFolders").length ? (v(), g("div", Li, [
|
|
3072
|
+
i("div", Vi, y(s(n)("Pinned Folders")), 1),
|
|
3073
|
+
i("div", zi, [
|
|
3074
|
+
(v(!0), g(ve, null, he(s(l).get("pinnedFolders"), (j) => (v(), g("div", {
|
|
3073
3075
|
key: j.path,
|
|
3074
3076
|
class: Z(["vuefinder__modal-tree__item", { "vuefinder__modal-tree__item--selected": o.modelValue?.path === j.path }]),
|
|
3075
3077
|
onClick: (z) => A(j),
|
|
3076
3078
|
onDblclick: (z) => B(j),
|
|
3077
3079
|
onTouchend: (z) => U(j)
|
|
3078
3080
|
}, [
|
|
3079
|
-
O(
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
O(
|
|
3081
|
+
O(s(Oe), { class: "vuefinder__modal-tree__icon vuefinder__item-icon__folder" }),
|
|
3082
|
+
i("div", Ni, y(j.basename), 1),
|
|
3083
|
+
i("div", Ui, y(j.storage), 1),
|
|
3084
|
+
O(s(Lt), { class: "vuefinder__modal-tree__icon vuefinder__modal-tree__icon--pin" })
|
|
3083
3085
|
], 42, Ri))), 128))
|
|
3084
3086
|
])
|
|
3085
3087
|
])) : T("", !0),
|
|
3086
|
-
|
|
3088
|
+
i("div", ji, y(s(n)("Storages")), 1),
|
|
3087
3089
|
(v(!0), g(ve, null, he(_.value, (j) => (v(), g("div", {
|
|
3088
3090
|
key: j,
|
|
3089
3091
|
class: "vuefinder__modal-tree__section"
|
|
3090
3092
|
}, [
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3093
|
+
i("div", Hi, [
|
|
3094
|
+
i("div", Ki, [
|
|
3095
|
+
i("div", qi, [
|
|
3096
|
+
i("div", {
|
|
3095
3097
|
class: "vuefinder__modal-tree__storage-toggle",
|
|
3096
3098
|
onClick: ie((z) => S(j, j + "://"), ["stop"])
|
|
3097
3099
|
}, [
|
|
3098
|
-
u.value[`${j}:${j}://`] ? (v(), L(
|
|
3100
|
+
u.value[`${j}:${j}://`] ? (v(), L(s($t), {
|
|
3099
3101
|
key: 1,
|
|
3100
3102
|
class: "vuefinder__modal-tree__toggle-icon"
|
|
3101
|
-
})) : (v(), L(
|
|
3103
|
+
})) : (v(), L(s(kt), {
|
|
3102
3104
|
key: 0,
|
|
3103
3105
|
class: "vuefinder__modal-tree__toggle-icon"
|
|
3104
3106
|
}))
|
|
3105
3107
|
], 8, Gi),
|
|
3106
|
-
|
|
3108
|
+
i("div", {
|
|
3107
3109
|
class: Z(["vuefinder__modal-tree__storage-link", {
|
|
3108
3110
|
"vuefinder__modal-tree__storage-link--selected": o.modelValue?.path === j + "://"
|
|
3109
3111
|
}]),
|
|
@@ -3111,8 +3113,8 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3111
3113
|
onDblclick: (z) => R(j),
|
|
3112
3114
|
onTouchend: (z) => ee(j)
|
|
3113
3115
|
}, [
|
|
3114
|
-
O(
|
|
3115
|
-
|
|
3116
|
+
O(s(Vt), { class: "vuefinder__modal-tree__storage-icon" }),
|
|
3117
|
+
i("span", Yi, y(j), 1)
|
|
3116
3118
|
], 42, Wi)
|
|
3117
3119
|
]),
|
|
3118
3120
|
u.value[`${j}:${j}://`] ? (v(), g("div", Qi, [
|
|
@@ -3129,10 +3131,10 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3129
3131
|
onToggleFolder: S
|
|
3130
3132
|
}, null, 8, ["folder", "storage", "model-value", "expanded-folders", "modal-tree-data", "current-path"]))), 128)),
|
|
3131
3133
|
C(j + "://") ? (v(), g("div", Xi, [
|
|
3132
|
-
|
|
3134
|
+
i("div", {
|
|
3133
3135
|
class: "vuefinder__modal-tree__load-more",
|
|
3134
3136
|
onClick: (z) => F(j + "://")
|
|
3135
|
-
}, y(
|
|
3137
|
+
}, y(s(n)("load more")), 9, Ji)
|
|
3136
3138
|
])) : T("", !0)
|
|
3137
3139
|
])) : T("", !0)
|
|
3138
3140
|
])
|
|
@@ -3149,7 +3151,7 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3149
3151
|
emits: ["hidden"],
|
|
3150
3152
|
setup(o, { emit: e }) {
|
|
3151
3153
|
const t = e, n = J(), { t: a } = n.i18n, l = M(!1), d = M(null), r = M(d.value?.innerHTML);
|
|
3152
|
-
|
|
3154
|
+
le(r, () => l.value = !1);
|
|
3153
3155
|
const c = () => {
|
|
3154
3156
|
t("hidden"), l.value = !0;
|
|
3155
3157
|
};
|
|
@@ -3161,12 +3163,12 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3161
3163
|
class: Z(["vuefinder__message", o.error ? "vuefinder__message--error" : "vuefinder__message--success"])
|
|
3162
3164
|
}, [
|
|
3163
3165
|
$e(_.$slots, "default"),
|
|
3164
|
-
|
|
3166
|
+
i("div", {
|
|
3165
3167
|
class: "vuefinder__message__close",
|
|
3166
|
-
title:
|
|
3168
|
+
title: s(a)("Close"),
|
|
3167
3169
|
onClick: c
|
|
3168
3170
|
}, [...m[0] || (m[0] = [
|
|
3169
|
-
|
|
3171
|
+
i("svg", {
|
|
3170
3172
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3171
3173
|
fill: "none",
|
|
3172
3174
|
viewBox: "0 0 24 24",
|
|
@@ -3174,7 +3176,7 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3174
3176
|
stroke: "currentColor",
|
|
3175
3177
|
class: "vuefinder__message__icon"
|
|
3176
3178
|
}, [
|
|
3177
|
-
|
|
3179
|
+
i("path", {
|
|
3178
3180
|
"stroke-linecap": "round",
|
|
3179
3181
|
"stroke-linejoin": "round",
|
|
3180
3182
|
d: "M6 18L18 6M6 6l12 12"
|
|
@@ -3237,58 +3239,58 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3237
3239
|
};
|
|
3238
3240
|
return (F, A) => (v(), L(Fe, null, {
|
|
3239
3241
|
buttons: oe(() => [
|
|
3240
|
-
|
|
3242
|
+
i("button", {
|
|
3241
3243
|
type: "button",
|
|
3242
3244
|
class: "vf-btn vf-btn-primary",
|
|
3243
3245
|
disabled: h.value,
|
|
3244
3246
|
onClick: C
|
|
3245
3247
|
}, y(D.value), 9, fa),
|
|
3246
|
-
|
|
3248
|
+
i("button", {
|
|
3247
3249
|
type: "button",
|
|
3248
3250
|
class: "vf-btn vf-btn-secondary",
|
|
3249
|
-
onClick: A[4] || (A[4] = (B) =>
|
|
3250
|
-
}, y(
|
|
3251
|
-
|
|
3251
|
+
onClick: A[4] || (A[4] = (B) => s(e).modal.close())
|
|
3252
|
+
}, y(s(n)("Cancel")), 1),
|
|
3253
|
+
i("div", _a, y(s(n)("%s item(s) selected.", l.value.length)), 1)
|
|
3252
3254
|
]),
|
|
3253
3255
|
default: oe(() => [
|
|
3254
|
-
|
|
3256
|
+
i("div", null, [
|
|
3255
3257
|
O(Pe, {
|
|
3256
|
-
icon: c.value ?
|
|
3258
|
+
icon: c.value ? s(Bt) : s(ui),
|
|
3257
3259
|
title: u.value
|
|
3258
3260
|
}, null, 8, ["icon", "title"]),
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3261
|
+
i("div", ea, [
|
|
3262
|
+
i("p", ta, y($.value), 1),
|
|
3263
|
+
i("div", na, [
|
|
3262
3264
|
(v(!0), g(ve, null, he(l.value, (B) => (v(), g("div", {
|
|
3263
3265
|
key: B.path,
|
|
3264
3266
|
class: "vuefinder__move-modal__file"
|
|
3265
3267
|
}, [
|
|
3266
|
-
|
|
3267
|
-
B.type === "dir" ? (v(), L(
|
|
3268
|
+
i("div", null, [
|
|
3269
|
+
B.type === "dir" ? (v(), L(s(Oe), {
|
|
3268
3270
|
key: 0,
|
|
3269
3271
|
class: "vuefinder__move-modal__icon vuefinder__move-modal__icon--dir"
|
|
3270
|
-
})) : (v(), L(
|
|
3272
|
+
})) : (v(), L(s(lt), {
|
|
3271
3273
|
key: 1,
|
|
3272
3274
|
class: "vuefinder__move-modal__icon"
|
|
3273
3275
|
}))
|
|
3274
3276
|
]),
|
|
3275
|
-
|
|
3277
|
+
i("div", oa, y(B.path), 1)
|
|
3276
3278
|
]))), 128))
|
|
3277
3279
|
]),
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3280
|
+
i("h4", sa, y(s(n)("Target Directory")), 1),
|
|
3281
|
+
i("div", ia, [
|
|
3282
|
+
i("div", {
|
|
3281
3283
|
class: "vuefinder__move-modal__target-display",
|
|
3282
3284
|
onClick: A[0] || (A[0] = (B) => m.value = !m.value)
|
|
3283
3285
|
}, [
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
+
i("div", aa, [
|
|
3287
|
+
i("span", ra, y(k().storage) + "://", 1),
|
|
3286
3288
|
k().path ? (v(), g("span", la, y(k().path), 1)) : T("", !0)
|
|
3287
3289
|
]),
|
|
3288
|
-
|
|
3290
|
+
i("span", da, y(s(n)("Browse")), 1)
|
|
3289
3291
|
])
|
|
3290
3292
|
]),
|
|
3291
|
-
|
|
3293
|
+
i("div", {
|
|
3292
3294
|
class: Z([
|
|
3293
3295
|
"vuefinder__move-modal__tree-selector",
|
|
3294
3296
|
m.value ? "vuefinder__move-modal__tree-selector--expanded" : "vuefinder__move-modal__tree-selector--collapsed"
|
|
@@ -3304,16 +3306,16 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3304
3306
|
onSelectAndClose: p
|
|
3305
3307
|
}, null, 8, ["modelValue"])
|
|
3306
3308
|
], 2),
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
pe(
|
|
3309
|
+
s(t)("copy") && s(t)("move") ? (v(), g("div", ca, [
|
|
3310
|
+
i("label", ua, [
|
|
3311
|
+
pe(i("input", {
|
|
3310
3312
|
"onUpdate:modelValue": A[2] || (A[2] = (B) => c.value = B),
|
|
3311
3313
|
type: "checkbox",
|
|
3312
3314
|
class: "vuefinder__move-modal__checkbox"
|
|
3313
3315
|
}, null, 512), [
|
|
3314
3316
|
[mt, c.value]
|
|
3315
3317
|
]),
|
|
3316
|
-
|
|
3318
|
+
i("span", va, y(s(n)("Create a copy instead of moving")), 1)
|
|
3317
3319
|
])
|
|
3318
3320
|
])) : T("", !0),
|
|
3319
3321
|
f.value ? (v(), L(Pt, {
|
|
@@ -3321,7 +3323,7 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3321
3323
|
error: ""
|
|
3322
3324
|
}, {
|
|
3323
3325
|
default: oe(() => [
|
|
3324
|
-
|
|
3326
|
+
de(y(f.value), 1)
|
|
3325
3327
|
]),
|
|
3326
3328
|
_: 1
|
|
3327
3329
|
})) : T("", !0),
|
|
@@ -3331,7 +3333,7 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3331
3333
|
onHidden: A[3] || (A[3] = (B) => r.value = "")
|
|
3332
3334
|
}, {
|
|
3333
3335
|
default: oe(() => [
|
|
3334
|
-
|
|
3336
|
+
de(y(r.value), 1)
|
|
3335
3337
|
]),
|
|
3336
3338
|
_: 1
|
|
3337
3339
|
})) : T("", !0)
|
|
@@ -3379,7 +3381,7 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3379
3381
|
};
|
|
3380
3382
|
function ma(o, e) {
|
|
3381
3383
|
return v(), g("svg", ha, [...e[0] || (e[0] = [
|
|
3382
|
-
|
|
3384
|
+
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)
|
|
3383
3385
|
])]);
|
|
3384
3386
|
}
|
|
3385
3387
|
const Ut = { render: ma }, ga = {
|
|
@@ -3390,7 +3392,7 @@ const Ut = { render: ma }, ga = {
|
|
|
3390
3392
|
};
|
|
3391
3393
|
function wa(o, e) {
|
|
3392
3394
|
return v(), g("svg", ga, [...e[0] || (e[0] = [
|
|
3393
|
-
|
|
3395
|
+
i("circle", {
|
|
3394
3396
|
cx: "12",
|
|
3395
3397
|
cy: "12",
|
|
3396
3398
|
r: "10",
|
|
@@ -3398,7 +3400,7 @@ function wa(o, e) {
|
|
|
3398
3400
|
"stroke-width": "4",
|
|
3399
3401
|
class: "opacity-25 stroke-blue-900"
|
|
3400
3402
|
}, null, -1),
|
|
3401
|
-
|
|
3403
|
+
i("path", {
|
|
3402
3404
|
fill: "currentColor",
|
|
3403
3405
|
d: "M4 12a8 8 0 0 1 8-8V0C5.373 0 0 5.373 0 12zm2 5.291A7.96 7.96 0 0 1 4 12H0c0 3.042 1.135 5.824 3 7.938z",
|
|
3404
3406
|
class: "opacity-75"
|
|
@@ -3429,13 +3431,13 @@ const xt = { render: wa }, ya = { class: "vuefinder__search-modal__search-input"
|
|
|
3429
3431
|
d.value && d.value.focus();
|
|
3430
3432
|
}
|
|
3431
3433
|
}), (_, m) => (v(), g("div", ya, [
|
|
3432
|
-
O(
|
|
3433
|
-
|
|
3434
|
+
O(s(Ut), { class: "vuefinder__search-modal__search-icon" }),
|
|
3435
|
+
i("input", {
|
|
3434
3436
|
ref_key: "searchInput",
|
|
3435
3437
|
ref: d,
|
|
3436
3438
|
value: o.modelValue,
|
|
3437
3439
|
type: "text",
|
|
3438
|
-
placeholder:
|
|
3440
|
+
placeholder: s(l)("Search Files"),
|
|
3439
3441
|
disabled: o.disabled,
|
|
3440
3442
|
class: "vuefinder__search-modal__input",
|
|
3441
3443
|
onKeydown: c,
|
|
@@ -3444,7 +3446,7 @@ const xt = { render: wa }, ya = { class: "vuefinder__search-modal__search-input"
|
|
|
3444
3446
|
onInput: r
|
|
3445
3447
|
}, null, 40, ba),
|
|
3446
3448
|
o.isSearching ? (v(), g("div", ka, [
|
|
3447
|
-
O(
|
|
3449
|
+
O(s(xt), { class: "vuefinder__search-modal__loading-icon" })
|
|
3448
3450
|
])) : T("", !0)
|
|
3449
3451
|
]));
|
|
3450
3452
|
}
|
|
@@ -3457,12 +3459,12 @@ const xt = { render: wa }, ya = { class: "vuefinder__search-modal__search-input"
|
|
|
3457
3459
|
};
|
|
3458
3460
|
function Sa(o, e) {
|
|
3459
3461
|
return v(), g("svg", xa, [...e[0] || (e[0] = [
|
|
3460
|
-
|
|
3462
|
+
i("path", {
|
|
3461
3463
|
"stroke-linecap": "round",
|
|
3462
3464
|
"stroke-linejoin": "round",
|
|
3463
3465
|
d: "M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87q.11.06.22.127c.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a8 8 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a7 7 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a7 7 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a7 7 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124q.108-.066.22-.128c.332-.183.582-.495.644-.869z"
|
|
3464
3466
|
}, null, -1),
|
|
3465
|
-
|
|
3467
|
+
i("path", {
|
|
3466
3468
|
"stroke-linecap": "round",
|
|
3467
3469
|
"stroke-linejoin": "round",
|
|
3468
3470
|
d: "M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0"
|
|
@@ -3572,7 +3574,7 @@ const Fn = { render: Sa }, Ca = ["disabled", "title"], Fa = ["data-theme"], Da =
|
|
|
3572
3574
|
}, D = () => {
|
|
3573
3575
|
_ && (_(), _ = null);
|
|
3574
3576
|
};
|
|
3575
|
-
return
|
|
3577
|
+
return le(
|
|
3576
3578
|
() => n.visible,
|
|
3577
3579
|
(S) => {
|
|
3578
3580
|
!S && _ && (_(), _ = null);
|
|
@@ -3582,15 +3584,15 @@ const Fn = { render: Sa }, Ca = ["disabled", "title"], Fa = ["data-theme"], Da =
|
|
|
3582
3584
|
}), e({
|
|
3583
3585
|
cleanup: D
|
|
3584
3586
|
}), (S, p) => (v(), g(ve, null, [
|
|
3585
|
-
|
|
3587
|
+
i("button", {
|
|
3586
3588
|
ref_key: "dropdownBtn",
|
|
3587
3589
|
ref: r,
|
|
3588
3590
|
class: Z(["vuefinder__search-modal__dropdown-btn", { "vuefinder__search-modal__dropdown-btn--active": o.visible }]),
|
|
3589
3591
|
disabled: o.disabled,
|
|
3590
|
-
title:
|
|
3592
|
+
title: s(d)("Search Options"),
|
|
3591
3593
|
onClick: ie(w, ["stop"])
|
|
3592
3594
|
}, [
|
|
3593
|
-
O(
|
|
3595
|
+
O(s(Fn), { class: "vuefinder__search-modal__dropdown-icon" })
|
|
3594
3596
|
], 10, Ca),
|
|
3595
3597
|
(v(), L(gt, { to: "body" }, [
|
|
3596
3598
|
o.visible ? (v(), g("div", {
|
|
@@ -3598,77 +3600,77 @@ const Fn = { render: Sa }, Ca = ["disabled", "title"], Fa = ["data-theme"], Da =
|
|
|
3598
3600
|
ref_key: "dropdownContent",
|
|
3599
3601
|
ref: c,
|
|
3600
3602
|
class: "vuefinder__themer vuefinder__search-modal__dropdown vuefinder__search-modal__dropdown--visible",
|
|
3601
|
-
"data-theme":
|
|
3603
|
+
"data-theme": s(l).theme.current,
|
|
3602
3604
|
tabindex: "-1",
|
|
3603
3605
|
onClick: p[4] || (p[4] = ie(() => {
|
|
3604
3606
|
}, ["stop"])),
|
|
3605
3607
|
onKeydown: $
|
|
3606
3608
|
}, [
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3609
|
+
i("div", Da, [
|
|
3610
|
+
i("div", Pa, [
|
|
3611
|
+
i("div", Ea, y(s(d)("File Size")), 1),
|
|
3612
|
+
i("div", Ma, [
|
|
3613
|
+
i("div", {
|
|
3612
3614
|
class: Z(["vuefinder__search-modal__dropdown-option", {
|
|
3613
3615
|
"vuefinder__search-modal__dropdown-option--selected": o.sizeFilter === "all"
|
|
3614
3616
|
}]),
|
|
3615
3617
|
onClick: p[0] || (p[0] = ie((h) => m("size-all"), ["stop"]))
|
|
3616
3618
|
}, [
|
|
3617
|
-
|
|
3619
|
+
i("span", null, y(s(d)("All Files")), 1),
|
|
3618
3620
|
o.sizeFilter === "all" ? (v(), g("div", Ta, [...p[5] || (p[5] = [
|
|
3619
|
-
|
|
3621
|
+
i("svg", {
|
|
3620
3622
|
viewBox: "0 0 16 16",
|
|
3621
3623
|
fill: "currentColor"
|
|
3622
3624
|
}, [
|
|
3623
|
-
|
|
3625
|
+
i("path", { d: "M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z" })
|
|
3624
3626
|
], -1)
|
|
3625
3627
|
])])) : T("", !0)
|
|
3626
3628
|
], 2),
|
|
3627
|
-
|
|
3629
|
+
i("div", {
|
|
3628
3630
|
class: Z(["vuefinder__search-modal__dropdown-option", {
|
|
3629
3631
|
"vuefinder__search-modal__dropdown-option--selected": o.sizeFilter === "small"
|
|
3630
3632
|
}]),
|
|
3631
3633
|
onClick: p[1] || (p[1] = ie((h) => m("size-small"), ["stop"]))
|
|
3632
3634
|
}, [
|
|
3633
|
-
|
|
3635
|
+
i("span", null, y(s(d)("Small (< 1MB)")), 1),
|
|
3634
3636
|
o.sizeFilter === "small" ? (v(), g("div", Ia, [...p[6] || (p[6] = [
|
|
3635
|
-
|
|
3637
|
+
i("svg", {
|
|
3636
3638
|
viewBox: "0 0 16 16",
|
|
3637
3639
|
fill: "currentColor"
|
|
3638
3640
|
}, [
|
|
3639
|
-
|
|
3641
|
+
i("path", { d: "M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z" })
|
|
3640
3642
|
], -1)
|
|
3641
3643
|
])])) : T("", !0)
|
|
3642
3644
|
], 2),
|
|
3643
|
-
|
|
3645
|
+
i("div", {
|
|
3644
3646
|
class: Z(["vuefinder__search-modal__dropdown-option", {
|
|
3645
3647
|
"vuefinder__search-modal__dropdown-option--selected": o.sizeFilter === "medium"
|
|
3646
3648
|
}]),
|
|
3647
3649
|
onClick: p[2] || (p[2] = ie((h) => m("size-medium"), ["stop"]))
|
|
3648
3650
|
}, [
|
|
3649
|
-
|
|
3651
|
+
i("span", null, y(s(d)("Medium (1-10MB)")), 1),
|
|
3650
3652
|
o.sizeFilter === "medium" ? (v(), g("div", Aa, [...p[7] || (p[7] = [
|
|
3651
|
-
|
|
3653
|
+
i("svg", {
|
|
3652
3654
|
viewBox: "0 0 16 16",
|
|
3653
3655
|
fill: "currentColor"
|
|
3654
3656
|
}, [
|
|
3655
|
-
|
|
3657
|
+
i("path", { d: "M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z" })
|
|
3656
3658
|
], -1)
|
|
3657
3659
|
])])) : T("", !0)
|
|
3658
3660
|
], 2),
|
|
3659
|
-
|
|
3661
|
+
i("div", {
|
|
3660
3662
|
class: Z(["vuefinder__search-modal__dropdown-option", {
|
|
3661
3663
|
"vuefinder__search-modal__dropdown-option--selected": o.sizeFilter === "large"
|
|
3662
3664
|
}]),
|
|
3663
3665
|
onClick: p[3] || (p[3] = ie((h) => m("size-large"), ["stop"]))
|
|
3664
3666
|
}, [
|
|
3665
|
-
|
|
3667
|
+
i("span", null, y(s(d)("Large (> 10MB)")), 1),
|
|
3666
3668
|
o.sizeFilter === "large" ? (v(), g("div", Oa, [...p[8] || (p[8] = [
|
|
3667
|
-
|
|
3669
|
+
i("svg", {
|
|
3668
3670
|
viewBox: "0 0 16 16",
|
|
3669
3671
|
fill: "currentColor"
|
|
3670
3672
|
}, [
|
|
3671
|
-
|
|
3673
|
+
i("path", { d: "M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z" })
|
|
3672
3674
|
], -1)
|
|
3673
3675
|
])])) : T("", !0)
|
|
3674
3676
|
], 2)
|
|
@@ -3711,7 +3713,7 @@ const Va = {
|
|
|
3711
3713
|
};
|
|
3712
3714
|
function za(o, e) {
|
|
3713
3715
|
return v(), g("svg", Va, [...e[0] || (e[0] = [
|
|
3714
|
-
|
|
3716
|
+
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)
|
|
3715
3717
|
])]);
|
|
3716
3718
|
}
|
|
3717
3719
|
const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-modal__result-icon" }, Ua = { class: "vuefinder__search-modal__result-content" }, ja = { class: "vuefinder__search-modal__result-name" }, Ha = {
|
|
@@ -3732,7 +3734,7 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
3732
3734
|
setup(o, { emit: e }) {
|
|
3733
3735
|
const t = o, n = e, a = J(), { t: l } = a.i18n, d = M(null);
|
|
3734
3736
|
let r = null;
|
|
3735
|
-
|
|
3737
|
+
le(
|
|
3736
3738
|
() => t.activeDropdown,
|
|
3737
3739
|
(h) => {
|
|
3738
3740
|
r && (r(), r = null), h === t.item.path && d.value && Ae(() => {
|
|
@@ -3828,46 +3830,46 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
3828
3830
|
title: o.item.basename,
|
|
3829
3831
|
onClick: f[9] || (f[9] = (k) => n("select", o.index))
|
|
3830
3832
|
}, [
|
|
3831
|
-
|
|
3832
|
-
o.item.type === "dir" ? (v(), L(
|
|
3833
|
+
i("div", Na, [
|
|
3834
|
+
o.item.type === "dir" ? (v(), L(s(Oe), { key: 0 })) : (v(), L(s(lt), { key: 1 }))
|
|
3833
3835
|
]),
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3836
|
+
i("div", Ua, [
|
|
3837
|
+
i("div", ja, [
|
|
3838
|
+
de(y(o.item.basename) + " ", 1),
|
|
3837
3839
|
_(o.item) ? (v(), g("span", Ha, y(_(o.item)), 1)) : T("", !0)
|
|
3838
3840
|
]),
|
|
3839
|
-
|
|
3841
|
+
i("div", {
|
|
3840
3842
|
class: "vuefinder__search-modal__result-path",
|
|
3841
3843
|
title: o.item.path,
|
|
3842
3844
|
onClick: f[0] || (f[0] = ie((k) => {
|
|
3843
3845
|
n("select", o.index), n("togglePathExpansion", o.item.path);
|
|
3844
3846
|
}, ["stop"]))
|
|
3845
|
-
}, y(c(o.item.path) ? o.item.path :
|
|
3847
|
+
}, y(c(o.item.path) ? o.item.path : s(Dn)(o.item.path)), 9, Ka)
|
|
3846
3848
|
]),
|
|
3847
|
-
|
|
3849
|
+
i("button", {
|
|
3848
3850
|
ref_key: "buttonElementRef",
|
|
3849
3851
|
ref: d,
|
|
3850
3852
|
class: "vuefinder__search-modal__result-actions",
|
|
3851
|
-
title:
|
|
3853
|
+
title: s(l)("More actions"),
|
|
3852
3854
|
onClick: f[1] || (f[1] = (k) => {
|
|
3853
3855
|
n("selectWithDropdown", o.index), m(o.item.path, k);
|
|
3854
3856
|
})
|
|
3855
3857
|
}, [
|
|
3856
|
-
O(
|
|
3858
|
+
O(s(En), { class: "vuefinder__search-modal__result-actions-icon" })
|
|
3857
3859
|
], 8, qa),
|
|
3858
3860
|
(v(), L(gt, { to: "body" }, [
|
|
3859
3861
|
o.activeDropdown === o.item.path ? (v(), g("div", {
|
|
3860
3862
|
key: 0,
|
|
3861
3863
|
"data-item-dropdown": o.item.path,
|
|
3862
3864
|
class: "vuefinder__themer vuefinder__search-modal__item-dropdown vuefinder__search-modal__item-dropdown--visible",
|
|
3863
|
-
"data-theme":
|
|
3865
|
+
"data-theme": s(a).theme.current,
|
|
3864
3866
|
tabindex: "-1",
|
|
3865
3867
|
onClick: f[8] || (f[8] = ie(() => {
|
|
3866
3868
|
}, ["stop"])),
|
|
3867
3869
|
onKeydown: p
|
|
3868
3870
|
}, [
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
+
i("div", Wa, [
|
|
3872
|
+
i("div", {
|
|
3871
3873
|
class: Z(["vuefinder__search-modal__item-dropdown-option", {
|
|
3872
3874
|
"vuefinder__search-modal__item-dropdown-option--selected": o.selectedItemDropdownOption === `copy-path-${o.item.path}`
|
|
3873
3875
|
}]),
|
|
@@ -3876,10 +3878,10 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
3876
3878
|
}),
|
|
3877
3879
|
onFocus: f[3] || (f[3] = (k) => u(`copy-path-${o.item.path}`))
|
|
3878
3880
|
}, [
|
|
3879
|
-
O(
|
|
3880
|
-
|
|
3881
|
+
O(s(Bt), { class: "vuefinder__search-modal__item-dropdown-icon" }),
|
|
3882
|
+
i("span", null, y(s(l)("Copy Path")), 1)
|
|
3881
3883
|
], 34),
|
|
3882
|
-
|
|
3884
|
+
i("div", {
|
|
3883
3885
|
class: Z(["vuefinder__search-modal__item-dropdown-option", {
|
|
3884
3886
|
"vuefinder__search-modal__item-dropdown-option--selected": o.selectedItemDropdownOption === `open-folder-${o.item.path}`
|
|
3885
3887
|
}]),
|
|
@@ -3888,10 +3890,10 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
3888
3890
|
}),
|
|
3889
3891
|
onFocus: f[5] || (f[5] = (k) => u(`open-folder-${o.item.path}`))
|
|
3890
3892
|
}, [
|
|
3891
|
-
O(
|
|
3892
|
-
|
|
3893
|
+
O(s(Oe), { class: "vuefinder__search-modal__item-dropdown-icon" }),
|
|
3894
|
+
i("span", null, y(s(l)("Open Containing Folder")), 1)
|
|
3893
3895
|
], 34),
|
|
3894
|
-
|
|
3896
|
+
i("div", {
|
|
3895
3897
|
class: Z(["vuefinder__search-modal__item-dropdown-option", {
|
|
3896
3898
|
"vuefinder__search-modal__item-dropdown-option--selected": o.selectedItemDropdownOption === `preview-${o.item.path}`
|
|
3897
3899
|
}]),
|
|
@@ -3900,8 +3902,8 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
3900
3902
|
}),
|
|
3901
3903
|
onFocus: f[7] || (f[7] = (k) => u(`preview-${o.item.path}`))
|
|
3902
3904
|
}, [
|
|
3903
|
-
O(
|
|
3904
|
-
|
|
3905
|
+
O(s(lt), { class: "vuefinder__search-modal__item-dropdown-icon" }),
|
|
3906
|
+
i("span", null, y(s(l)("Preview")), 1)
|
|
3905
3907
|
], 34)
|
|
3906
3908
|
])
|
|
3907
3909
|
], 40, Ga)) : T("", !0)
|
|
@@ -3965,7 +3967,7 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
3965
3967
|
p(), window.addEventListener("resize", p);
|
|
3966
3968
|
}), ye(() => {
|
|
3967
3969
|
window.removeEventListener("resize", p);
|
|
3968
|
-
}),
|
|
3970
|
+
}), le(
|
|
3969
3971
|
() => r.value,
|
|
3970
3972
|
() => {
|
|
3971
3973
|
p();
|
|
@@ -3979,21 +3981,21 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
3979
3981
|
class: Z(["vuefinder__search-modal__results", { "vuefinder__search-modal__results--enter": o.resultsEnter }])
|
|
3980
3982
|
}, [
|
|
3981
3983
|
o.isSearching ? (v(), g("div", Qa, [
|
|
3982
|
-
|
|
3983
|
-
O(
|
|
3984
|
+
i("div", Xa, [
|
|
3985
|
+
O(s(xt), { class: "vuefinder__search-modal__loading-icon" })
|
|
3984
3986
|
]),
|
|
3985
|
-
|
|
3987
|
+
i("span", null, y(s(d)("Searching...")), 1)
|
|
3986
3988
|
])) : c.value ? (v(), g("div", Za, [
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
+
i("div", er, [
|
|
3990
|
+
i("span", null, y(s(d)("Found %s results", _.value)), 1)
|
|
3989
3991
|
]),
|
|
3990
|
-
|
|
3992
|
+
i("div", {
|
|
3991
3993
|
ref_key: "scrollableContainer",
|
|
3992
3994
|
ref: r,
|
|
3993
3995
|
class: "vuefinder__search-modal__results-scrollable",
|
|
3994
3996
|
onScroll: S
|
|
3995
3997
|
}, [
|
|
3996
|
-
|
|
3998
|
+
i("div", {
|
|
3997
3999
|
class: "vuefinder__search-modal__results-items",
|
|
3998
4000
|
style: Ve({ height: `${u.value}px`, position: "relative" })
|
|
3999
4001
|
}, [
|
|
@@ -4027,7 +4029,7 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
4027
4029
|
], 4)
|
|
4028
4030
|
], 544)
|
|
4029
4031
|
])) : (v(), g("div", Ja, [
|
|
4030
|
-
|
|
4032
|
+
i("span", null, y(s(d)("No results found")), 1)
|
|
4031
4033
|
]))
|
|
4032
4034
|
], 2));
|
|
4033
4035
|
}
|
|
@@ -4066,11 +4068,11 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
4066
4068
|
}, ee = async (b) => {
|
|
4067
4069
|
await dt(b.path), B();
|
|
4068
4070
|
};
|
|
4069
|
-
|
|
4071
|
+
le(r, async (b) => {
|
|
4070
4072
|
b.trim() ? (await E(b.trim()), m.value = 0) : (c.value = [], _.value = !1, m.value = -1);
|
|
4071
|
-
}),
|
|
4073
|
+
}), le(D, async (b) => {
|
|
4072
4074
|
p.value = `size-${b}`, r.value.trim() && !u.value && (await E(r.value.trim()), m.value = 0);
|
|
4073
|
-
}),
|
|
4075
|
+
}), le(S, async () => {
|
|
4074
4076
|
r.value.trim() && !u.value && (await E(r.value.trim()), m.value = 0);
|
|
4075
4077
|
});
|
|
4076
4078
|
const E = async (b) => {
|
|
@@ -4113,17 +4115,17 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
4113
4115
|
};
|
|
4114
4116
|
return (b, P) => (v(), L(Fe, { class: "vuefinder__search-modal-layout" }, {
|
|
4115
4117
|
default: oe(() => [
|
|
4116
|
-
|
|
4118
|
+
i("div", nr, [
|
|
4117
4119
|
O(Pe, {
|
|
4118
|
-
icon:
|
|
4119
|
-
title:
|
|
4120
|
+
icon: s(Ut),
|
|
4121
|
+
title: s(t)("Search files")
|
|
4120
4122
|
}, null, 8, ["icon", "title"]),
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
+
i("div", or, [
|
|
4124
|
+
i("div", sr, [
|
|
4123
4125
|
O($a, {
|
|
4124
4126
|
ref_key: "searchInputRef",
|
|
4125
4127
|
ref: a,
|
|
4126
|
-
modelValue:
|
|
4128
|
+
modelValue: s(r),
|
|
4127
4129
|
"onUpdate:modelValue": P[0] || (P[0] = (I) => jn(r) ? r.value = I : null),
|
|
4128
4130
|
"is-searching": _.value,
|
|
4129
4131
|
disabled: u.value
|
|
@@ -4140,36 +4142,36 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
4140
4142
|
disabled: u.value
|
|
4141
4143
|
}, null, 8, ["visible", "size-filter", "selected-option", "disabled"])
|
|
4142
4144
|
]),
|
|
4143
|
-
|
|
4145
|
+
i("div", {
|
|
4144
4146
|
class: "vuefinder__search-modal__options",
|
|
4145
4147
|
onClick: P[7] || (P[7] = ie(() => {
|
|
4146
4148
|
}, ["stop"]))
|
|
4147
4149
|
}, [
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
+
i("div", ir, [
|
|
4151
|
+
i("button", {
|
|
4150
4152
|
class: Z(["vuefinder__search-modal__location-btn", { "vuefinder__search-modal__location-btn--open": u.value }]),
|
|
4151
4153
|
onClick: ie(q, ["stop"])
|
|
4152
4154
|
}, [
|
|
4153
|
-
O(
|
|
4154
|
-
|
|
4155
|
+
O(s(Oe), { class: "vuefinder__search-modal__location-icon" }),
|
|
4156
|
+
i("span", {
|
|
4155
4157
|
class: "vuefinder__search-modal__location-text",
|
|
4156
|
-
title: $.value?.path ||
|
|
4157
|
-
}, y(
|
|
4158
|
-
P[10] || (P[10] =
|
|
4158
|
+
title: $.value?.path || s(C).path
|
|
4159
|
+
}, y(s(Dn)($.value?.path || s(C).path)), 9, ar),
|
|
4160
|
+
P[10] || (P[10] = i("svg", {
|
|
4159
4161
|
class: "vuefinder__search-modal__location-arrow",
|
|
4160
4162
|
viewBox: "0 0 16 16",
|
|
4161
4163
|
fill: "currentColor"
|
|
4162
4164
|
}, [
|
|
4163
|
-
|
|
4165
|
+
i("path", { d: "M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z" })
|
|
4164
4166
|
], -1))
|
|
4165
4167
|
], 2)
|
|
4166
4168
|
]),
|
|
4167
|
-
|
|
4169
|
+
i("label", {
|
|
4168
4170
|
class: "vuefinder__search-modal__deep-search",
|
|
4169
4171
|
onClick: P[6] || (P[6] = ie(() => {
|
|
4170
4172
|
}, ["stop"]))
|
|
4171
4173
|
}, [
|
|
4172
|
-
pe(
|
|
4174
|
+
pe(i("input", {
|
|
4173
4175
|
"onUpdate:modelValue": P[4] || (P[4] = (I) => S.value = I),
|
|
4174
4176
|
type: "checkbox",
|
|
4175
4177
|
disabled: u.value,
|
|
@@ -4179,11 +4181,11 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
4179
4181
|
}, null, 8, rr), [
|
|
4180
4182
|
[mt, S.value]
|
|
4181
4183
|
]),
|
|
4182
|
-
|
|
4184
|
+
i("span", null, y(s(t)("Include subfolders")), 1)
|
|
4183
4185
|
])
|
|
4184
4186
|
]),
|
|
4185
4187
|
u.value ? (v(), g("div", lr, [
|
|
4186
|
-
|
|
4188
|
+
i("div", dr, [
|
|
4187
4189
|
O(Rt, {
|
|
4188
4190
|
modelValue: $.value,
|
|
4189
4191
|
"onUpdate:modelValue": [
|
|
@@ -4191,15 +4193,15 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
4191
4193
|
j
|
|
4192
4194
|
],
|
|
4193
4195
|
"show-pinned-folders": !0,
|
|
4194
|
-
"current-path":
|
|
4196
|
+
"current-path": s(C),
|
|
4195
4197
|
onSelectAndClose: z
|
|
4196
4198
|
}, null, 8, ["modelValue", "current-path"])
|
|
4197
4199
|
])
|
|
4198
4200
|
])) : T("", !0),
|
|
4199
|
-
!
|
|
4200
|
-
|
|
4201
|
+
!s(r).trim() && !u.value ? (v(), g("div", cr, [
|
|
4202
|
+
i("p", ur, y(s(t)("Start typing to search files. Use options to filter or include subfolders.")), 1)
|
|
4201
4203
|
])) : T("", !0),
|
|
4202
|
-
|
|
4204
|
+
s(r).trim() && !u.value ? (v(), L(tr, {
|
|
4203
4205
|
key: 2,
|
|
4204
4206
|
ref_key: "searchResultsListRef",
|
|
4205
4207
|
ref: d,
|
|
@@ -4330,33 +4332,33 @@ const tt = /* @__PURE__ */ fr(vr, [["render", pr]]), hr = [
|
|
|
4330
4332
|
);
|
|
4331
4333
|
return (p, h) => (v(), L(Fe, null, {
|
|
4332
4334
|
buttons: oe(() => [
|
|
4333
|
-
|
|
4335
|
+
i("button", {
|
|
4334
4336
|
type: "button",
|
|
4335
4337
|
class: "vf-btn vf-btn-secondary",
|
|
4336
|
-
onClick: h[2] || (h[2] = (f) =>
|
|
4337
|
-
}, y(
|
|
4338
|
+
onClick: h[2] || (h[2] = (f) => s(e).modal.close())
|
|
4339
|
+
}, y(s(l)("Close")), 1)
|
|
4338
4340
|
]),
|
|
4339
4341
|
default: oe(() => [
|
|
4340
|
-
|
|
4342
|
+
i("div", mr, [
|
|
4341
4343
|
O(Pe, {
|
|
4342
|
-
icon:
|
|
4343
|
-
title:
|
|
4344
|
+
icon: s(Fn),
|
|
4345
|
+
title: s(l)("Settings")
|
|
4344
4346
|
}, null, 8, ["icon", "title"]),
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4347
|
+
i("div", gr, [
|
|
4348
|
+
i("div", wr, y(s(l)("Customize your experience with the following settings")), 1),
|
|
4349
|
+
i("div", yr, [
|
|
4350
|
+
i("fieldset", br, [
|
|
4351
|
+
i("div", kr, y(s(l)("General")), 1),
|
|
4352
|
+
i("div", $r, [
|
|
4353
|
+
i("div", xr, [
|
|
4354
|
+
i("label", Sr, y(s(l)("Use Metric Units")), 1)
|
|
4353
4355
|
]),
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
+
i("div", Cr, [
|
|
4357
|
+
i("input", {
|
|
4356
4358
|
id: "metric_unit",
|
|
4357
4359
|
name: "metric_unit",
|
|
4358
4360
|
type: "checkbox",
|
|
4359
|
-
checked:
|
|
4361
|
+
checked: s(n).get("metricUnits"),
|
|
4360
4362
|
class: "vuefinder__about-modal__checkbox",
|
|
4361
4363
|
onChange: m
|
|
4362
4364
|
}, null, 40, Fr),
|
|
@@ -4365,22 +4367,22 @@ const tt = /* @__PURE__ */ fr(vr, [["render", pr]]), hr = [
|
|
|
4365
4367
|
on: "vf-metric-units-saved"
|
|
4366
4368
|
}, {
|
|
4367
4369
|
default: oe(() => [
|
|
4368
|
-
|
|
4370
|
+
de(y(s(l)("Saved.")), 1)
|
|
4369
4371
|
]),
|
|
4370
4372
|
_: 1
|
|
4371
4373
|
})
|
|
4372
4374
|
])
|
|
4373
4375
|
]),
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4376
|
+
i("div", Dr, [
|
|
4377
|
+
i("div", Pr, [
|
|
4378
|
+
i("label", Er, y(s(l)("Compact list view")), 1)
|
|
4377
4379
|
]),
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
+
i("div", Mr, [
|
|
4381
|
+
i("input", {
|
|
4380
4382
|
id: "large_icons",
|
|
4381
4383
|
name: "large_icons",
|
|
4382
4384
|
type: "checkbox",
|
|
4383
|
-
checked:
|
|
4385
|
+
checked: s(n).get("compactListView"),
|
|
4384
4386
|
class: "vuefinder__about-modal__checkbox",
|
|
4385
4387
|
onChange: w
|
|
4386
4388
|
}, null, 40, Tr),
|
|
@@ -4389,22 +4391,22 @@ const tt = /* @__PURE__ */ fr(vr, [["render", pr]]), hr = [
|
|
|
4389
4391
|
on: "vf-compact-view-saved"
|
|
4390
4392
|
}, {
|
|
4391
4393
|
default: oe(() => [
|
|
4392
|
-
|
|
4394
|
+
de(y(s(l)("Saved.")), 1)
|
|
4393
4395
|
]),
|
|
4394
4396
|
_: 1
|
|
4395
4397
|
})
|
|
4396
4398
|
])
|
|
4397
4399
|
]),
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4400
|
+
i("div", Ir, [
|
|
4401
|
+
i("div", Ar, [
|
|
4402
|
+
i("label", Or, y(s(l)("Persist path on reload")), 1)
|
|
4401
4403
|
]),
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
+
i("div", Br, [
|
|
4405
|
+
i("input", {
|
|
4404
4406
|
id: "persist_path",
|
|
4405
4407
|
name: "persist_path",
|
|
4406
4408
|
type: "checkbox",
|
|
4407
|
-
checked:
|
|
4409
|
+
checked: s(n).get("persist"),
|
|
4408
4410
|
class: "vuefinder__about-modal__checkbox",
|
|
4409
4411
|
onChange: u
|
|
4410
4412
|
}, null, 40, Lr),
|
|
@@ -4413,25 +4415,25 @@ const tt = /* @__PURE__ */ fr(vr, [["render", pr]]), hr = [
|
|
|
4413
4415
|
on: "vf-persist-path-saved"
|
|
4414
4416
|
}, {
|
|
4415
4417
|
default: oe(() => [
|
|
4416
|
-
|
|
4418
|
+
de(y(s(l)("Saved.")), 1)
|
|
4417
4419
|
]),
|
|
4418
4420
|
_: 1
|
|
4419
4421
|
})
|
|
4420
4422
|
])
|
|
4421
4423
|
]),
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4424
|
+
s(t)("theme") ? (v(), g("div", Vr, y(s(l)("Theme")), 1)) : T("", !0),
|
|
4425
|
+
s(t)("theme") ? (v(), g("div", zr, [
|
|
4426
|
+
i("div", Rr, [
|
|
4427
|
+
i("select", {
|
|
4426
4428
|
id: "theme",
|
|
4427
4429
|
value: r.value,
|
|
4428
4430
|
class: "vuefinder__about-modal__select",
|
|
4429
4431
|
onChange: h[0] || (h[0] = (f) => _(f.target?.value))
|
|
4430
4432
|
}, [
|
|
4431
|
-
|
|
4432
|
-
label:
|
|
4433
|
+
i("optgroup", {
|
|
4434
|
+
label: s(l)("Theme")
|
|
4433
4435
|
}, [
|
|
4434
|
-
(v(!0), g(ve, null, he(
|
|
4436
|
+
(v(!0), g(ve, null, he(s(hr), (f) => (v(), g("option", {
|
|
4435
4437
|
key: f.name,
|
|
4436
4438
|
value: f.name
|
|
4437
4439
|
}, y(f.displayName), 9, jr))), 128))
|
|
@@ -4442,37 +4444,37 @@ const tt = /* @__PURE__ */ fr(vr, [["render", pr]]), hr = [
|
|
|
4442
4444
|
on: "vf-theme-saved"
|
|
4443
4445
|
}, {
|
|
4444
4446
|
default: oe(() => [
|
|
4445
|
-
|
|
4447
|
+
de(y(s(l)("Saved.")), 1)
|
|
4446
4448
|
]),
|
|
4447
4449
|
_: 1
|
|
4448
4450
|
})
|
|
4449
4451
|
])
|
|
4450
4452
|
])) : T("", !0),
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
pe(
|
|
4453
|
+
s(t)("language") && Object.keys(s(S)).length > 1 ? (v(), g("div", Hr, y(s(l)("Language")), 1)) : T("", !0),
|
|
4454
|
+
s(t)("language") && Object.keys(s(S)).length > 1 ? (v(), g("div", Kr, [
|
|
4455
|
+
i("div", qr, [
|
|
4456
|
+
pe(i("select", {
|
|
4455
4457
|
id: "language",
|
|
4456
|
-
"onUpdate:modelValue": h[1] || (h[1] = (f) =>
|
|
4458
|
+
"onUpdate:modelValue": h[1] || (h[1] = (f) => s(e).i18n.locale = f),
|
|
4457
4459
|
class: "vuefinder__about-modal__select"
|
|
4458
4460
|
}, [
|
|
4459
|
-
|
|
4460
|
-
label:
|
|
4461
|
+
i("optgroup", {
|
|
4462
|
+
label: s(l)("Language")
|
|
4461
4463
|
}, [
|
|
4462
|
-
(v(!0), g(ve, null, he(
|
|
4464
|
+
(v(!0), g(ve, null, he(s(S), (f, k) => (v(), g("option", {
|
|
4463
4465
|
key: k,
|
|
4464
4466
|
value: k
|
|
4465
4467
|
}, y(f), 9, Wr))), 128))
|
|
4466
4468
|
], 8, Gr)
|
|
4467
4469
|
], 512), [
|
|
4468
|
-
[Ft,
|
|
4470
|
+
[Ft, s(e).i18n.locale]
|
|
4469
4471
|
]),
|
|
4470
4472
|
O(tt, {
|
|
4471
4473
|
class: "ms-3",
|
|
4472
4474
|
on: "vf-language-saved"
|
|
4473
4475
|
}, {
|
|
4474
4476
|
default: oe(() => [
|
|
4475
|
-
|
|
4477
|
+
de(y(s(l)("Saved.")), 1)
|
|
4476
4478
|
]),
|
|
4477
4479
|
_: 1
|
|
4478
4480
|
})
|
|
@@ -4480,14 +4482,14 @@ const tt = /* @__PURE__ */ fr(vr, [["render", pr]]), hr = [
|
|
|
4480
4482
|
])) : T("", !0)
|
|
4481
4483
|
])
|
|
4482
4484
|
]),
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4485
|
+
i("div", Yr, [
|
|
4486
|
+
i("div", Qr, y(s(l)("Reset")), 1),
|
|
4487
|
+
i("div", Xr, y(s(l)("Reset all settings to default")), 1),
|
|
4488
|
+
i("button", {
|
|
4487
4489
|
type: "button",
|
|
4488
4490
|
class: "vf-btn vf-btn-secondary",
|
|
4489
4491
|
onClick: c
|
|
4490
|
-
}, y(
|
|
4492
|
+
}, y(s(l)("Reset Settings")), 1)
|
|
4491
4493
|
])
|
|
4492
4494
|
])
|
|
4493
4495
|
])
|
|
@@ -4636,7 +4638,7 @@ const el = {
|
|
|
4636
4638
|
};
|
|
4637
4639
|
function tl(o, e) {
|
|
4638
4640
|
return v(), g("svg", el, [...e[0] || (e[0] = [
|
|
4639
|
-
|
|
4641
|
+
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)
|
|
4640
4642
|
])]);
|
|
4641
4643
|
}
|
|
4642
4644
|
const Tn = { render: tl }, nl = { class: "vuefinder__new-folder-modal__content" }, ol = { class: "vuefinder__new-folder-modal__form" }, sl = { class: "vuefinder__new-folder-modal__description" }, il = ["placeholder"], Ht = /* @__PURE__ */ X({
|
|
@@ -4654,30 +4656,30 @@ const Tn = { render: tl }, nl = { class: "vuefinder__new-folder-modal__content"
|
|
|
4654
4656
|
};
|
|
4655
4657
|
return (r, c) => (v(), L(Fe, null, {
|
|
4656
4658
|
buttons: oe(() => [
|
|
4657
|
-
|
|
4659
|
+
i("button", {
|
|
4658
4660
|
type: "button",
|
|
4659
4661
|
class: "vf-btn vf-btn-primary",
|
|
4660
4662
|
onClick: d
|
|
4661
|
-
}, y(
|
|
4662
|
-
|
|
4663
|
+
}, y(s(t)("Create")), 1),
|
|
4664
|
+
i("button", {
|
|
4663
4665
|
type: "button",
|
|
4664
4666
|
class: "vf-btn vf-btn-secondary",
|
|
4665
|
-
onClick: c[1] || (c[1] = (_) =>
|
|
4666
|
-
}, y(
|
|
4667
|
+
onClick: c[1] || (c[1] = (_) => s(e).modal.close())
|
|
4668
|
+
}, y(s(t)("Cancel")), 1)
|
|
4667
4669
|
]),
|
|
4668
4670
|
default: oe(() => [
|
|
4669
|
-
|
|
4671
|
+
i("div", null, [
|
|
4670
4672
|
O(Pe, {
|
|
4671
|
-
icon:
|
|
4672
|
-
title:
|
|
4673
|
+
icon: s(Tn),
|
|
4674
|
+
title: s(t)("New Folder")
|
|
4673
4675
|
}, null, 8, ["icon", "title"]),
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
pe(
|
|
4676
|
+
i("div", nl, [
|
|
4677
|
+
i("div", ol, [
|
|
4678
|
+
i("p", sl, y(s(t)("Create a new folder")), 1),
|
|
4679
|
+
pe(i("input", {
|
|
4678
4680
|
"onUpdate:modelValue": c[0] || (c[0] = (_) => l.value = _),
|
|
4679
4681
|
class: "vuefinder__new-folder-modal__input",
|
|
4680
|
-
placeholder:
|
|
4682
|
+
placeholder: s(t)("Folder Name"),
|
|
4681
4683
|
type: "text",
|
|
4682
4684
|
autofocus: "",
|
|
4683
4685
|
onKeyup: ct(d, ["enter"])
|
|
@@ -4700,7 +4702,7 @@ const Tn = { render: tl }, nl = { class: "vuefinder__new-folder-modal__content"
|
|
|
4700
4702
|
};
|
|
4701
4703
|
function rl(o, e) {
|
|
4702
4704
|
return v(), g("svg", al, [...e[0] || (e[0] = [
|
|
4703
|
-
|
|
4705
|
+
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)
|
|
4704
4706
|
])]);
|
|
4705
4707
|
}
|
|
4706
4708
|
const In = { render: rl }, ll = { class: "vuefinder__new-file-modal__content" }, dl = { class: "vuefinder__new-file-modal__form" }, cl = { class: "vuefinder__new-file-modal__description" }, ul = ["placeholder"], An = /* @__PURE__ */ X({
|
|
@@ -4718,30 +4720,30 @@ const In = { render: rl }, ll = { class: "vuefinder__new-file-modal__content" },
|
|
|
4718
4720
|
};
|
|
4719
4721
|
return (r, c) => (v(), L(Fe, null, {
|
|
4720
4722
|
buttons: oe(() => [
|
|
4721
|
-
|
|
4723
|
+
i("button", {
|
|
4722
4724
|
type: "button",
|
|
4723
4725
|
class: "vf-btn vf-btn-primary",
|
|
4724
4726
|
onClick: d
|
|
4725
|
-
}, y(
|
|
4726
|
-
|
|
4727
|
+
}, y(s(t)("Create")), 1),
|
|
4728
|
+
i("button", {
|
|
4727
4729
|
type: "button",
|
|
4728
4730
|
class: "vf-btn vf-btn-secondary",
|
|
4729
|
-
onClick: c[1] || (c[1] = (_) =>
|
|
4730
|
-
}, y(
|
|
4731
|
+
onClick: c[1] || (c[1] = (_) => s(e).modal.close())
|
|
4732
|
+
}, y(s(t)("Cancel")), 1)
|
|
4731
4733
|
]),
|
|
4732
4734
|
default: oe(() => [
|
|
4733
|
-
|
|
4735
|
+
i("div", null, [
|
|
4734
4736
|
O(Pe, {
|
|
4735
|
-
icon:
|
|
4736
|
-
title:
|
|
4737
|
+
icon: s(In),
|
|
4738
|
+
title: s(t)("New File")
|
|
4737
4739
|
}, null, 8, ["icon", "title"]),
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
pe(
|
|
4740
|
+
i("div", ll, [
|
|
4741
|
+
i("div", dl, [
|
|
4742
|
+
i("p", cl, y(s(t)("Create a new file")), 1),
|
|
4743
|
+
pe(i("input", {
|
|
4742
4744
|
"onUpdate:modelValue": c[0] || (c[0] = (_) => l.value = _),
|
|
4743
4745
|
class: "vuefinder__new-file-modal__input",
|
|
4744
|
-
placeholder:
|
|
4746
|
+
placeholder: s(t)("File Name"),
|
|
4745
4747
|
type: "text",
|
|
4746
4748
|
onKeyup: ct(d, ["enter"])
|
|
4747
4749
|
}, null, 40, ul), [
|
|
@@ -4768,7 +4770,7 @@ const vl = {
|
|
|
4768
4770
|
};
|
|
4769
4771
|
function fl(o, e) {
|
|
4770
4772
|
return v(), g("svg", vl, [...e[0] || (e[0] = [
|
|
4771
|
-
|
|
4773
|
+
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)
|
|
4772
4774
|
])]);
|
|
4773
4775
|
}
|
|
4774
4776
|
const On = { render: fl }, _l = { class: "vuefinder__upload-modal__content relative" }, pl = { class: "vuefinder__upload-modal__target-section" }, hl = { class: "vuefinder__upload-modal__target-label" }, ml = { class: "vuefinder__upload-modal__target-container" }, gl = { class: "vuefinder__upload-modal__target-path" }, wl = { class: "vuefinder__upload-modal__target-storage" }, yl = {
|
|
@@ -4838,41 +4840,41 @@ const On = { render: fl }, _l = { class: "vuefinder__upload-modal__content relat
|
|
|
4838
4840
|
!P && !I && (E.value = !1);
|
|
4839
4841
|
};
|
|
4840
4842
|
return fe(() => document.addEventListener("click", z)), ye(() => document.removeEventListener("click", z)), (x, b) => (v(), L(Fe, {
|
|
4841
|
-
"show-drag-overlay":
|
|
4842
|
-
"drag-overlay-text":
|
|
4843
|
+
"show-drag-overlay": s(h),
|
|
4844
|
+
"drag-overlay-text": s(t)("Drag and drop the files/folders to here.")
|
|
4843
4845
|
}, {
|
|
4844
4846
|
buttons: oe(() => [
|
|
4845
|
-
|
|
4847
|
+
i("div", {
|
|
4846
4848
|
ref_key: "actionsMenuMobileRef",
|
|
4847
4849
|
ref: q,
|
|
4848
4850
|
class: "relative mb-2 w-full sm:hidden"
|
|
4849
4851
|
}, [
|
|
4850
|
-
|
|
4852
|
+
i("div", {
|
|
4851
4853
|
class: Z([
|
|
4852
4854
|
"vuefinder__upload-actions",
|
|
4853
4855
|
"vuefinder__upload-actions--block",
|
|
4854
4856
|
E.value ? "vuefinder__upload-actions--ring" : ""
|
|
4855
4857
|
])
|
|
4856
4858
|
}, [
|
|
4857
|
-
|
|
4859
|
+
i("button", {
|
|
4858
4860
|
type: "button",
|
|
4859
4861
|
class: "vuefinder__upload-actions__main",
|
|
4860
|
-
onClick: b[3] || (b[3] = (P) =>
|
|
4861
|
-
}, y(
|
|
4862
|
-
|
|
4862
|
+
onClick: b[3] || (b[3] = (P) => s(k)())
|
|
4863
|
+
}, y(s(t)("Select Files")), 1),
|
|
4864
|
+
i("button", {
|
|
4863
4865
|
type: "button",
|
|
4864
4866
|
class: "vuefinder__upload-actions__trigger",
|
|
4865
4867
|
"aria-haspopup": "menu",
|
|
4866
4868
|
"aria-expanded": E.value ? "true" : "false",
|
|
4867
4869
|
onClick: b[4] || (b[4] = ie((P) => E.value = !E.value, ["stop"]))
|
|
4868
4870
|
}, [...b[17] || (b[17] = [
|
|
4869
|
-
|
|
4871
|
+
i("svg", {
|
|
4870
4872
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4871
4873
|
class: "h-4 w-4",
|
|
4872
4874
|
viewBox: "0 0 20 20",
|
|
4873
4875
|
fill: "currentColor"
|
|
4874
4876
|
}, [
|
|
4875
|
-
|
|
4877
|
+
i("path", {
|
|
4876
4878
|
"fill-rule": "evenodd",
|
|
4877
4879
|
d: "M5.23 7.21a.75.75 0 011.06.02L10 10.94l3.71-3.71a.75.75 0 111.06 1.06l-4.24 4.24a.75.75 0 01-1.06 0L5.21 8.29a.75.75 0 01.02-1.08z",
|
|
4878
4880
|
"clip-rule": "evenodd"
|
|
@@ -4881,82 +4883,82 @@ const On = { render: fl }, _l = { class: "vuefinder__upload-modal__content relat
|
|
|
4881
4883
|
])], 8, Ml)
|
|
4882
4884
|
], 2),
|
|
4883
4885
|
E.value ? (v(), g("div", Tl, [
|
|
4884
|
-
|
|
4886
|
+
i("div", {
|
|
4885
4887
|
class: "vuefinder__upload-actions__item",
|
|
4886
4888
|
onClick: b[5] || (b[5] = (P) => {
|
|
4887
|
-
|
|
4889
|
+
s(k)(), E.value = !1;
|
|
4888
4890
|
})
|
|
4889
|
-
}, y(
|
|
4890
|
-
|
|
4891
|
+
}, y(s(t)("Select Files")), 1),
|
|
4892
|
+
i("div", {
|
|
4891
4893
|
class: "vuefinder__upload-actions__item",
|
|
4892
4894
|
onClick: b[6] || (b[6] = (P) => {
|
|
4893
|
-
|
|
4895
|
+
s(u)?.click(), E.value = !1;
|
|
4894
4896
|
})
|
|
4895
|
-
}, y(
|
|
4896
|
-
b[18] || (b[18] =
|
|
4897
|
-
|
|
4898
|
-
class: Z(["vuefinder__upload-actions__item",
|
|
4899
|
-
onClick: b[7] || (b[7] = (P) =>
|
|
4900
|
-
}, y(
|
|
4901
|
-
|
|
4902
|
-
class: Z(["vuefinder__upload-actions__item",
|
|
4903
|
-
onClick: b[8] || (b[8] = (P) =>
|
|
4904
|
-
}, y(
|
|
4897
|
+
}, y(s(t)("Select Folders")), 1),
|
|
4898
|
+
b[18] || (b[18] = i("div", { class: "vuefinder__upload-actions__separator" }, null, -1)),
|
|
4899
|
+
i("div", {
|
|
4900
|
+
class: Z(["vuefinder__upload-actions__item", s(p) ? "disabled" : ""]),
|
|
4901
|
+
onClick: b[7] || (b[7] = (P) => s(p) ? null : (s(B)(!1), E.value = !1))
|
|
4902
|
+
}, y(s(t)("Clear all")), 3),
|
|
4903
|
+
i("div", {
|
|
4904
|
+
class: Z(["vuefinder__upload-actions__item", s(p) ? "disabled" : ""]),
|
|
4905
|
+
onClick: b[8] || (b[8] = (P) => s(p) ? null : (s(B)(!0), E.value = !1))
|
|
4906
|
+
}, y(s(t)("Clear only successful")), 3)
|
|
4905
4907
|
])) : T("", !0)
|
|
4906
4908
|
], 512),
|
|
4907
|
-
|
|
4909
|
+
i("button", {
|
|
4908
4910
|
type: "button",
|
|
4909
4911
|
class: "vf-btn vf-btn-primary",
|
|
4910
|
-
disabled:
|
|
4912
|
+
disabled: s(p) || !s(D).length,
|
|
4911
4913
|
onClick: ie(ee, ["prevent"])
|
|
4912
|
-
}, y(
|
|
4913
|
-
|
|
4914
|
+
}, y(s(t)("Upload")), 9, Il),
|
|
4915
|
+
s(p) ? (v(), g("button", {
|
|
4914
4916
|
key: 0,
|
|
4915
4917
|
type: "button",
|
|
4916
4918
|
class: "vf-btn vf-btn-secondary",
|
|
4917
4919
|
onClick: b[9] || (b[9] = ie(
|
|
4918
4920
|
//@ts-ignore
|
|
4919
|
-
(...P) =>
|
|
4921
|
+
(...P) => s(F) && s(F)(...P),
|
|
4920
4922
|
["prevent"]
|
|
4921
4923
|
))
|
|
4922
|
-
}, y(
|
|
4924
|
+
}, y(s(t)("Cancel")), 1)) : (v(), g("button", {
|
|
4923
4925
|
key: 1,
|
|
4924
4926
|
type: "button",
|
|
4925
4927
|
class: "vf-btn vf-btn-secondary",
|
|
4926
4928
|
onClick: b[10] || (b[10] = ie(
|
|
4927
4929
|
//@ts-ignore
|
|
4928
|
-
(...P) =>
|
|
4930
|
+
(...P) => s(Y) && s(Y)(...P),
|
|
4929
4931
|
["prevent"]
|
|
4930
4932
|
))
|
|
4931
|
-
}, y(
|
|
4932
|
-
|
|
4933
|
+
}, y(s(t)("Close")), 1)),
|
|
4934
|
+
i("div", {
|
|
4933
4935
|
ref_key: "actionsMenuDesktopRef",
|
|
4934
4936
|
ref: j,
|
|
4935
4937
|
class: "relative mr-auto hidden sm:block"
|
|
4936
4938
|
}, [
|
|
4937
|
-
|
|
4939
|
+
i("div", {
|
|
4938
4940
|
class: Z(["vuefinder__upload-actions", E.value ? "vuefinder__upload-actions--ring" : ""])
|
|
4939
4941
|
}, [
|
|
4940
|
-
|
|
4942
|
+
i("button", {
|
|
4941
4943
|
ref_key: "pickFiles",
|
|
4942
4944
|
ref: $,
|
|
4943
4945
|
type: "button",
|
|
4944
4946
|
class: "vuefinder__upload-actions__main"
|
|
4945
|
-
}, y(
|
|
4946
|
-
|
|
4947
|
+
}, y(s(t)("Select Files")), 513),
|
|
4948
|
+
i("button", {
|
|
4947
4949
|
type: "button",
|
|
4948
4950
|
class: "vuefinder__upload-actions__trigger",
|
|
4949
4951
|
"aria-haspopup": "menu",
|
|
4950
4952
|
"aria-expanded": E.value ? "true" : "false",
|
|
4951
4953
|
onClick: b[11] || (b[11] = ie((P) => E.value = !E.value, ["stop"]))
|
|
4952
4954
|
}, [...b[19] || (b[19] = [
|
|
4953
|
-
|
|
4955
|
+
i("svg", {
|
|
4954
4956
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4955
4957
|
class: "h-4 w-4",
|
|
4956
4958
|
viewBox: "0 0 20 20",
|
|
4957
4959
|
fill: "currentColor"
|
|
4958
4960
|
}, [
|
|
4959
|
-
|
|
4961
|
+
i("path", {
|
|
4960
4962
|
"fill-rule": "evenodd",
|
|
4961
4963
|
d: "M5.23 7.21a.75.75 0 011.06.02L10 10.94l3.71-3.71a.75.75 0 111.06 1.06l-4.24 4.24a.75.75 0 01-1.06 0L5.21 8.29a.75.75 0 01.02-1.08z",
|
|
4962
4964
|
"clip-rule": "evenodd"
|
|
@@ -4965,52 +4967,52 @@ const On = { render: fl }, _l = { class: "vuefinder__upload-modal__content relat
|
|
|
4965
4967
|
])], 8, Al)
|
|
4966
4968
|
], 2),
|
|
4967
4969
|
E.value ? (v(), g("div", Ol, [
|
|
4968
|
-
|
|
4970
|
+
i("div", {
|
|
4969
4971
|
class: "vuefinder__upload-actions__item",
|
|
4970
4972
|
onClick: b[12] || (b[12] = (P) => {
|
|
4971
|
-
|
|
4973
|
+
s(k)(), E.value = !1;
|
|
4972
4974
|
})
|
|
4973
|
-
}, y(
|
|
4974
|
-
|
|
4975
|
+
}, y(s(t)("Select Files")), 1),
|
|
4976
|
+
i("div", {
|
|
4975
4977
|
class: "vuefinder__upload-actions__item",
|
|
4976
4978
|
onClick: b[13] || (b[13] = (P) => {
|
|
4977
|
-
|
|
4979
|
+
s(u)?.click(), E.value = !1;
|
|
4978
4980
|
})
|
|
4979
|
-
}, y(
|
|
4980
|
-
b[20] || (b[20] =
|
|
4981
|
-
|
|
4982
|
-
class: Z(["vuefinder__upload-actions__item",
|
|
4983
|
-
onClick: b[14] || (b[14] = (P) =>
|
|
4984
|
-
}, y(
|
|
4985
|
-
|
|
4986
|
-
class: Z(["vuefinder__upload-actions__item",
|
|
4987
|
-
onClick: b[15] || (b[15] = (P) =>
|
|
4988
|
-
}, y(
|
|
4981
|
+
}, y(s(t)("Select Folders")), 1),
|
|
4982
|
+
b[20] || (b[20] = i("div", { class: "vuefinder__upload-actions__separator" }, null, -1)),
|
|
4983
|
+
i("div", {
|
|
4984
|
+
class: Z(["vuefinder__upload-actions__item", s(p) ? "disabled" : ""]),
|
|
4985
|
+
onClick: b[14] || (b[14] = (P) => s(p) ? null : (s(B)(!1), E.value = !1))
|
|
4986
|
+
}, y(s(t)("Clear all")), 3),
|
|
4987
|
+
i("div", {
|
|
4988
|
+
class: Z(["vuefinder__upload-actions__item", s(p) ? "disabled" : ""]),
|
|
4989
|
+
onClick: b[15] || (b[15] = (P) => s(p) ? null : (s(B)(!0), E.value = !1))
|
|
4990
|
+
}, y(s(t)("Clear only successful")), 3)
|
|
4989
4991
|
])) : T("", !0)
|
|
4990
4992
|
], 512)
|
|
4991
4993
|
]),
|
|
4992
4994
|
default: oe(() => [
|
|
4993
|
-
|
|
4995
|
+
i("div", null, [
|
|
4994
4996
|
O(Pe, {
|
|
4995
|
-
icon:
|
|
4996
|
-
title:
|
|
4997
|
+
icon: s(On),
|
|
4998
|
+
title: s(t)("Upload Files")
|
|
4997
4999
|
}, null, 8, ["icon", "title"]),
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5000
|
+
i("div", _l, [
|
|
5001
|
+
i("div", pl, [
|
|
5002
|
+
i("div", hl, y(s(t)("Hedef Klasör")), 1),
|
|
5003
|
+
i("div", ml, [
|
|
5004
|
+
i("div", {
|
|
5003
5005
|
class: "vuefinder__upload-modal__target-display",
|
|
5004
5006
|
onClick: b[0] || (b[0] = (P) => d.value = !d.value)
|
|
5005
5007
|
}, [
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
+
i("div", gl, [
|
|
5009
|
+
i("span", wl, y(r().storage) + "://", 1),
|
|
5008
5010
|
r().path ? (v(), g("span", yl, y(r().path), 1)) : T("", !0)
|
|
5009
5011
|
]),
|
|
5010
|
-
|
|
5012
|
+
i("span", bl, y(s(t)("Browse")), 1)
|
|
5011
5013
|
])
|
|
5012
5014
|
]),
|
|
5013
|
-
|
|
5015
|
+
i("div", {
|
|
5014
5016
|
class: Z([
|
|
5015
5017
|
"vuefinder__upload-modal__tree-selector",
|
|
5016
5018
|
d.value ? "vuefinder__upload-modal__tree-selector--expanded" : "vuefinder__upload-modal__tree-selector--collapsed"
|
|
@@ -5027,43 +5029,43 @@ const On = { render: fl }, _l = { class: "vuefinder__upload-modal__content relat
|
|
|
5027
5029
|
}, null, 8, ["modelValue"])
|
|
5028
5030
|
], 2)
|
|
5029
5031
|
]),
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
+
i("div", kl, y(s(t)("You can drag & drop files anywhere while this modal is open.")), 1),
|
|
5033
|
+
i("div", {
|
|
5032
5034
|
ref_key: "container",
|
|
5033
5035
|
ref: m,
|
|
5034
5036
|
class: "hidden"
|
|
5035
5037
|
}, null, 512),
|
|
5036
|
-
|
|
5037
|
-
(v(!0), g(ve, null, he(
|
|
5038
|
+
i("div", $l, [
|
|
5039
|
+
(v(!0), g(ve, null, he(s(D), (P) => (v(), g("div", {
|
|
5038
5040
|
key: P.id,
|
|
5039
5041
|
class: "vuefinder__upload-modal__file-entry"
|
|
5040
5042
|
}, [
|
|
5041
|
-
|
|
5042
|
-
class: Z(["vuefinder__upload-modal__file-icon",
|
|
5043
|
+
i("span", {
|
|
5044
|
+
class: Z(["vuefinder__upload-modal__file-icon", s(R)(P)])
|
|
5043
5045
|
}, [
|
|
5044
|
-
|
|
5046
|
+
i("span", {
|
|
5045
5047
|
class: "vuefinder__upload-modal__file-icon-text",
|
|
5046
|
-
textContent: y(
|
|
5048
|
+
textContent: y(s(ne)(P))
|
|
5047
5049
|
}, null, 8, xl)
|
|
5048
5050
|
], 2),
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
class: Z(["vuefinder__upload-modal__file-status",
|
|
5051
|
+
i("div", Sl, [
|
|
5052
|
+
i("div", Cl, y(s(Et)(P.name, 40)) + " (" + y(P.size) + ") ", 1),
|
|
5053
|
+
i("div", Fl, y(s(Et)(P.name, 16)) + " (" + y(P.size) + ") ", 1),
|
|
5054
|
+
i("div", {
|
|
5055
|
+
class: Z(["vuefinder__upload-modal__file-status", s(R)(P)])
|
|
5054
5056
|
}, [
|
|
5055
|
-
|
|
5056
|
-
P.status ===
|
|
5057
|
+
de(y(P.statusName) + " ", 1),
|
|
5058
|
+
P.status === s(f).QUEUE_ENTRY_STATUS.UPLOADING ? (v(), g("b", Dl, y(P.percent), 1)) : T("", !0)
|
|
5057
5059
|
], 2)
|
|
5058
5060
|
]),
|
|
5059
|
-
|
|
5061
|
+
i("button", {
|
|
5060
5062
|
type: "button",
|
|
5061
|
-
class: Z(["vuefinder__upload-modal__file-remove",
|
|
5062
|
-
title:
|
|
5063
|
-
disabled:
|
|
5064
|
-
onClick: (I) =>
|
|
5063
|
+
class: Z(["vuefinder__upload-modal__file-remove", s(p) ? "disabled" : ""]),
|
|
5064
|
+
title: s(t)("Delete"),
|
|
5065
|
+
disabled: s(p),
|
|
5066
|
+
onClick: (I) => s(A)(P)
|
|
5065
5067
|
}, [...b[16] || (b[16] = [
|
|
5066
|
-
|
|
5068
|
+
i("svg", {
|
|
5067
5069
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5068
5070
|
fill: "none",
|
|
5069
5071
|
viewBox: "0 0 24 24",
|
|
@@ -5071,7 +5073,7 @@ const On = { render: fl }, _l = { class: "vuefinder__upload-modal__content relat
|
|
|
5071
5073
|
stroke: "currentColor",
|
|
5072
5074
|
class: "vuefinder__upload-modal__file-remove-icon"
|
|
5073
5075
|
}, [
|
|
5074
|
-
|
|
5076
|
+
i("path", {
|
|
5075
5077
|
"stroke-linecap": "round",
|
|
5076
5078
|
"stroke-linejoin": "round",
|
|
5077
5079
|
d: "M6 18L18 6M6 6l12 12"
|
|
@@ -5079,28 +5081,28 @@ const On = { render: fl }, _l = { class: "vuefinder__upload-modal__content relat
|
|
|
5079
5081
|
], -1)
|
|
5080
5082
|
])], 10, Pl)
|
|
5081
5083
|
]))), 128)),
|
|
5082
|
-
|
|
5084
|
+
s(D).length ? T("", !0) : (v(), g("div", El, y(s(t)("No files selected!")), 1))
|
|
5083
5085
|
]),
|
|
5084
|
-
|
|
5086
|
+
s(S).length ? (v(), L(Pt, {
|
|
5085
5087
|
key: 0,
|
|
5086
5088
|
error: "",
|
|
5087
5089
|
onHidden: b[2] || (b[2] = (P) => S.value = "")
|
|
5088
5090
|
}, {
|
|
5089
5091
|
default: oe(() => [
|
|
5090
|
-
|
|
5092
|
+
de(y(s(S)), 1)
|
|
5091
5093
|
]),
|
|
5092
5094
|
_: 1
|
|
5093
5095
|
})) : T("", !0)
|
|
5094
5096
|
])
|
|
5095
5097
|
]),
|
|
5096
|
-
|
|
5098
|
+
i("input", {
|
|
5097
5099
|
ref_key: "internalFileInput",
|
|
5098
5100
|
ref: w,
|
|
5099
5101
|
type: "file",
|
|
5100
5102
|
multiple: "",
|
|
5101
5103
|
class: "hidden"
|
|
5102
5104
|
}, null, 512),
|
|
5103
|
-
|
|
5105
|
+
i("input", {
|
|
5104
5106
|
ref_key: "internalFolderInput",
|
|
5105
5107
|
ref: u,
|
|
5106
5108
|
type: "file",
|
|
@@ -5121,7 +5123,7 @@ const On = { render: fl }, _l = { class: "vuefinder__upload-modal__content relat
|
|
|
5121
5123
|
};
|
|
5122
5124
|
function Ll(o, e) {
|
|
5123
5125
|
return v(), g("svg", Bl, [...e[0] || (e[0] = [
|
|
5124
|
-
|
|
5126
|
+
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)
|
|
5125
5127
|
])]);
|
|
5126
5128
|
}
|
|
5127
5129
|
const Bn = { render: Ll }, Vl = { class: "vuefinder__unarchive-modal__content" }, zl = { class: "vuefinder__unarchive-modal__items" }, Rl = {
|
|
@@ -5155,45 +5157,45 @@ const Bn = { render: Ll }, Vl = { class: "vuefinder__unarchive-modal__content" }
|
|
|
5155
5157
|
};
|
|
5156
5158
|
return (c, _) => (v(), L(Fe, null, {
|
|
5157
5159
|
buttons: oe(() => [
|
|
5158
|
-
|
|
5160
|
+
i("button", {
|
|
5159
5161
|
type: "button",
|
|
5160
5162
|
class: "vf-btn vf-btn-primary",
|
|
5161
5163
|
onClick: r
|
|
5162
|
-
}, y(
|
|
5163
|
-
|
|
5164
|
+
}, y(s(a)("Unarchive")), 1),
|
|
5165
|
+
i("button", {
|
|
5164
5166
|
type: "button",
|
|
5165
5167
|
class: "vf-btn vf-btn-secondary",
|
|
5166
|
-
onClick: _[0] || (_[0] = (m) =>
|
|
5167
|
-
}, y(
|
|
5168
|
+
onClick: _[0] || (_[0] = (m) => s(e).modal.close())
|
|
5169
|
+
}, y(s(a)("Cancel")), 1)
|
|
5168
5170
|
]),
|
|
5169
5171
|
default: oe(() => [
|
|
5170
|
-
|
|
5172
|
+
i("div", null, [
|
|
5171
5173
|
O(Pe, {
|
|
5172
|
-
icon:
|
|
5173
|
-
title:
|
|
5174
|
+
icon: s(Bn),
|
|
5175
|
+
title: s(a)("Unarchive")
|
|
5174
5176
|
}, null, 8, ["icon", "title"]),
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
+
i("div", Vl, [
|
|
5178
|
+
i("div", zl, [
|
|
5177
5179
|
(v(!0), g(ve, null, he(d.value, (m) => (v(), g("p", {
|
|
5178
5180
|
key: m.path,
|
|
5179
5181
|
class: "vuefinder__unarchive-modal__item"
|
|
5180
5182
|
}, [
|
|
5181
5183
|
m.type === "dir" ? (v(), g("svg", Rl, [..._[1] || (_[1] = [
|
|
5182
|
-
|
|
5184
|
+
i("path", {
|
|
5183
5185
|
"stroke-linecap": "round",
|
|
5184
5186
|
"stroke-linejoin": "round",
|
|
5185
5187
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
5186
5188
|
}, null, -1)
|
|
5187
5189
|
])])) : (v(), g("svg", Nl, [..._[2] || (_[2] = [
|
|
5188
|
-
|
|
5190
|
+
i("path", {
|
|
5189
5191
|
"stroke-linecap": "round",
|
|
5190
5192
|
"stroke-linejoin": "round",
|
|
5191
5193
|
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"
|
|
5192
5194
|
}, null, -1)
|
|
5193
5195
|
])])),
|
|
5194
|
-
|
|
5196
|
+
i("span", Ul, y(m.basename), 1)
|
|
5195
5197
|
]))), 128)),
|
|
5196
|
-
|
|
5198
|
+
i("p", jl, y(s(a)("The archive will be unarchived at")) + " (" + y(s(n).path) + ") ", 1)
|
|
5197
5199
|
])
|
|
5198
5200
|
])
|
|
5199
5201
|
])
|
|
@@ -5209,7 +5211,7 @@ const Bn = { render: Ll }, Vl = { class: "vuefinder__unarchive-modal__content" }
|
|
|
5209
5211
|
};
|
|
5210
5212
|
function Kl(o, e) {
|
|
5211
5213
|
return v(), g("svg", Hl, [...e[0] || (e[0] = [
|
|
5212
|
-
|
|
5214
|
+
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)
|
|
5213
5215
|
])]);
|
|
5214
5216
|
}
|
|
5215
5217
|
const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" }, Gl = { class: "vuefinder__archive-modal__form" }, Wl = { class: "vuefinder__archive-modal__files vf-scrollbar" }, Yl = {
|
|
@@ -5247,50 +5249,50 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5247
5249
|
};
|
|
5248
5250
|
return (c, _) => (v(), L(Fe, null, {
|
|
5249
5251
|
buttons: oe(() => [
|
|
5250
|
-
|
|
5252
|
+
i("button", {
|
|
5251
5253
|
type: "button",
|
|
5252
5254
|
class: "vf-btn vf-btn-primary",
|
|
5253
5255
|
onClick: r
|
|
5254
|
-
}, y(
|
|
5255
|
-
|
|
5256
|
+
}, y(s(t)("Archive")), 1),
|
|
5257
|
+
i("button", {
|
|
5256
5258
|
type: "button",
|
|
5257
5259
|
class: "vf-btn vf-btn-secondary",
|
|
5258
|
-
onClick: _[1] || (_[1] = (m) =>
|
|
5259
|
-
}, y(
|
|
5260
|
+
onClick: _[1] || (_[1] = (m) => s(e).modal.close())
|
|
5261
|
+
}, y(s(t)("Cancel")), 1)
|
|
5260
5262
|
]),
|
|
5261
5263
|
default: oe(() => [
|
|
5262
|
-
|
|
5264
|
+
i("div", null, [
|
|
5263
5265
|
O(Pe, {
|
|
5264
|
-
icon:
|
|
5265
|
-
title:
|
|
5266
|
+
icon: s(Ln),
|
|
5267
|
+
title: s(t)("Archive the files")
|
|
5266
5268
|
}, null, 8, ["icon", "title"]),
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5269
|
+
i("div", ql, [
|
|
5270
|
+
i("div", Gl, [
|
|
5271
|
+
i("div", Wl, [
|
|
5270
5272
|
(v(!0), g(ve, null, he(d.value, (m) => (v(), g("p", {
|
|
5271
5273
|
key: m.path,
|
|
5272
5274
|
class: "vuefinder__archive-modal__file"
|
|
5273
5275
|
}, [
|
|
5274
5276
|
m.type === "dir" ? (v(), g("svg", Yl, [..._[2] || (_[2] = [
|
|
5275
|
-
|
|
5277
|
+
i("path", {
|
|
5276
5278
|
"stroke-linecap": "round",
|
|
5277
5279
|
"stroke-linejoin": "round",
|
|
5278
5280
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
5279
5281
|
}, null, -1)
|
|
5280
5282
|
])])) : (v(), g("svg", Ql, [..._[3] || (_[3] = [
|
|
5281
|
-
|
|
5283
|
+
i("path", {
|
|
5282
5284
|
"stroke-linecap": "round",
|
|
5283
5285
|
"stroke-linejoin": "round",
|
|
5284
5286
|
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"
|
|
5285
5287
|
}, null, -1)
|
|
5286
5288
|
])])),
|
|
5287
|
-
|
|
5289
|
+
i("span", Xl, y(m.basename), 1)
|
|
5288
5290
|
]))), 128))
|
|
5289
5291
|
]),
|
|
5290
|
-
pe(
|
|
5292
|
+
pe(i("input", {
|
|
5291
5293
|
"onUpdate:modelValue": _[0] || (_[0] = (m) => l.value = m),
|
|
5292
5294
|
class: "vuefinder__archive-modal__input",
|
|
5293
|
-
placeholder:
|
|
5295
|
+
placeholder: s(t)("Archive name. (.zip file will be created)"),
|
|
5294
5296
|
type: "text",
|
|
5295
5297
|
onKeyup: ct(r, ["enter"])
|
|
5296
5298
|
}, null, 40, Jl), [
|
|
@@ -5333,113 +5335,113 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5333
5335
|
const e = J(), { enabled: t } = Te(), { t: n } = e.i18n;
|
|
5334
5336
|
return (a, l) => (v(), L(Fe, null, {
|
|
5335
5337
|
buttons: oe(() => [
|
|
5336
|
-
|
|
5338
|
+
i("button", {
|
|
5337
5339
|
type: "button",
|
|
5338
5340
|
class: "vf-btn vf-btn-secondary",
|
|
5339
|
-
onClick: l[0] || (l[0] = (d) =>
|
|
5340
|
-
}, y(
|
|
5341
|
+
onClick: l[0] || (l[0] = (d) => s(e).modal.close())
|
|
5342
|
+
}, y(s(n)("Close")), 1)
|
|
5341
5343
|
]),
|
|
5342
5344
|
default: oe(() => [
|
|
5343
|
-
|
|
5345
|
+
i("div", Zl, [
|
|
5344
5346
|
O(Pe, {
|
|
5345
|
-
icon:
|
|
5346
|
-
title:
|
|
5347
|
+
icon: s(yn),
|
|
5348
|
+
title: s(n)("Shortcuts")
|
|
5347
5349
|
}, null, 8, ["icon", "title"]),
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
l[1] || (l[1] =
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5350
|
+
i("div", ed, [
|
|
5351
|
+
i("div", td, [
|
|
5352
|
+
i("div", nd, [
|
|
5353
|
+
i("div", null, y(s(n)("Refresh")), 1),
|
|
5354
|
+
l[1] || (l[1] = i("div", null, [
|
|
5355
|
+
i("kbd", null, "⌘"),
|
|
5356
|
+
de(" + "),
|
|
5357
|
+
i("kbd", null, "R")
|
|
5356
5358
|
], -1))
|
|
5357
5359
|
]),
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
l[2] || (l[2] =
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5360
|
+
s(t)("rename") ? (v(), g("div", od, [
|
|
5361
|
+
i("div", null, y(s(n)("Rename")), 1),
|
|
5362
|
+
l[2] || (l[2] = i("div", null, [
|
|
5363
|
+
i("kbd", null, "⌘"),
|
|
5364
|
+
de(" + "),
|
|
5365
|
+
i("kbd", null, "Shift"),
|
|
5366
|
+
de(" + "),
|
|
5367
|
+
i("kbd", null, "R")
|
|
5366
5368
|
], -1))
|
|
5367
5369
|
])) : T("", !0),
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
l[3] || (l[3] =
|
|
5370
|
+
s(t)("delete") ? (v(), g("div", sd, [
|
|
5371
|
+
i("div", null, y(s(n)("Delete")), 1),
|
|
5372
|
+
l[3] || (l[3] = i("kbd", null, "Del", -1))
|
|
5371
5373
|
])) : T("", !0),
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
l[4] || (l[4] =
|
|
5374
|
+
i("div", id, [
|
|
5375
|
+
i("div", null, y(s(n)("Escape")), 1),
|
|
5376
|
+
l[4] || (l[4] = i("kbd", null, "Esc", -1))
|
|
5375
5377
|
]),
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
l[5] || (l[5] =
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5378
|
+
i("div", ad, [
|
|
5379
|
+
i("div", null, y(s(n)("Select All")), 1),
|
|
5380
|
+
l[5] || (l[5] = i("div", null, [
|
|
5381
|
+
i("kbd", null, "⌘"),
|
|
5382
|
+
de(" + "),
|
|
5383
|
+
i("kbd", null, "A")
|
|
5382
5384
|
], -1))
|
|
5383
5385
|
]),
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
l[6] || (l[6] =
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5386
|
+
s(t)("copy") ? (v(), g("div", rd, [
|
|
5387
|
+
i("div", null, y(s(n)("Cut")), 1),
|
|
5388
|
+
l[6] || (l[6] = i("div", null, [
|
|
5389
|
+
i("kbd", null, "⌘"),
|
|
5390
|
+
de(" + "),
|
|
5391
|
+
i("kbd", null, "X")
|
|
5390
5392
|
], -1))
|
|
5391
5393
|
])) : T("", !0),
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
l[7] || (l[7] =
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5394
|
+
s(t)("copy") ? (v(), g("div", ld, [
|
|
5395
|
+
i("div", null, y(s(n)("Copy")), 1),
|
|
5396
|
+
l[7] || (l[7] = i("div", null, [
|
|
5397
|
+
i("kbd", null, "⌘"),
|
|
5398
|
+
de(" + "),
|
|
5399
|
+
i("kbd", null, "C")
|
|
5398
5400
|
], -1))
|
|
5399
5401
|
])) : T("", !0),
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
l[8] || (l[8] =
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5402
|
+
s(t)("copy") ? (v(), g("div", dd, [
|
|
5403
|
+
i("div", null, y(s(n)("Paste")), 1),
|
|
5404
|
+
l[8] || (l[8] = i("div", null, [
|
|
5405
|
+
i("kbd", null, "⌘"),
|
|
5406
|
+
de(" + "),
|
|
5407
|
+
i("kbd", null, "V")
|
|
5406
5408
|
], -1))
|
|
5407
5409
|
])) : T("", !0),
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
l[9] || (l[9] =
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5410
|
+
s(t)("search") ? (v(), g("div", cd, [
|
|
5411
|
+
i("div", null, y(s(n)("Search")), 1),
|
|
5412
|
+
l[9] || (l[9] = i("div", null, [
|
|
5413
|
+
i("kbd", null, "⌘"),
|
|
5414
|
+
de(" + "),
|
|
5415
|
+
i("kbd", null, "F")
|
|
5414
5416
|
], -1))
|
|
5415
5417
|
])) : T("", !0),
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
l[10] || (l[10] =
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5418
|
+
i("div", ud, [
|
|
5419
|
+
i("div", null, y(s(n)("Toggle Sidebar")), 1),
|
|
5420
|
+
l[10] || (l[10] = i("div", null, [
|
|
5421
|
+
i("kbd", null, "⌘"),
|
|
5422
|
+
de(" + "),
|
|
5423
|
+
i("kbd", null, "E")
|
|
5422
5424
|
], -1))
|
|
5423
5425
|
]),
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
l[11] || (l[11] =
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5426
|
+
i("div", vd, [
|
|
5427
|
+
i("div", null, y(s(n)("Open Settings")), 1),
|
|
5428
|
+
l[11] || (l[11] = i("div", null, [
|
|
5429
|
+
i("kbd", null, "⌘"),
|
|
5430
|
+
de(" + "),
|
|
5431
|
+
i("kbd", null, "S")
|
|
5430
5432
|
], -1))
|
|
5431
5433
|
]),
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
l[12] || (l[12] =
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5434
|
+
s(t)("fullscreen") ? (v(), g("div", fd, [
|
|
5435
|
+
i("div", null, y(s(n)("Toggle Full Screen")), 1),
|
|
5436
|
+
l[12] || (l[12] = i("div", null, [
|
|
5437
|
+
i("kbd", null, "⌘"),
|
|
5438
|
+
de(" + "),
|
|
5439
|
+
i("kbd", null, "Enter")
|
|
5438
5440
|
], -1))
|
|
5439
5441
|
])) : T("", !0),
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
l[13] || (l[13] =
|
|
5442
|
+
s(t)("preview") ? (v(), g("div", _d, [
|
|
5443
|
+
i("div", null, y(s(n)("Preview")), 1),
|
|
5444
|
+
l[13] || (l[13] = i("kbd", null, "Space", -1))
|
|
5443
5445
|
])) : T("", !0)
|
|
5444
5446
|
])
|
|
5445
5447
|
])
|
|
@@ -5837,14 +5839,14 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5837
5839
|
onClick: k[0] || (k[0] = ie(() => {
|
|
5838
5840
|
}, ["stop"]))
|
|
5839
5841
|
}, [
|
|
5840
|
-
|
|
5842
|
+
i("div", hd, [
|
|
5841
5843
|
(v(!0), g(ve, null, he(u.value, (C) => (v(), g("div", {
|
|
5842
5844
|
key: C.id,
|
|
5843
5845
|
class: Z(["vuefinder__menubar__item", { "vuefinder__menubar__item--active": _.value === C.id }]),
|
|
5844
5846
|
onClick: (F) => $(C.id),
|
|
5845
5847
|
onMouseenter: (F) => D(C.id)
|
|
5846
5848
|
}, [
|
|
5847
|
-
|
|
5849
|
+
i("span", gd, y(C.label), 1),
|
|
5848
5850
|
_.value === C.id ? (v(), g("div", {
|
|
5849
5851
|
key: 0,
|
|
5850
5852
|
class: "vuefinder__menubar__dropdown",
|
|
@@ -5875,7 +5877,7 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5875
5877
|
};
|
|
5876
5878
|
function Sd(o, e) {
|
|
5877
5879
|
return v(), g("svg", xd, [...e[0] || (e[0] = [
|
|
5878
|
-
|
|
5880
|
+
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)
|
|
5879
5881
|
])]);
|
|
5880
5882
|
}
|
|
5881
5883
|
const Cd = { render: Sd }, Fd = {
|
|
@@ -5887,7 +5889,7 @@ const Cd = { render: Sd }, Fd = {
|
|
|
5887
5889
|
};
|
|
5888
5890
|
function Dd(o, e) {
|
|
5889
5891
|
return v(), g("svg", Fd, [...e[0] || (e[0] = [
|
|
5890
|
-
|
|
5892
|
+
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)
|
|
5891
5893
|
])]);
|
|
5892
5894
|
}
|
|
5893
5895
|
const Pd = { render: Dd }, Ed = {
|
|
@@ -5899,7 +5901,7 @@ const Pd = { render: Dd }, Ed = {
|
|
|
5899
5901
|
};
|
|
5900
5902
|
function Md(o, e) {
|
|
5901
5903
|
return v(), g("svg", Ed, [...e[0] || (e[0] = [
|
|
5902
|
-
|
|
5904
|
+
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)
|
|
5903
5905
|
])]);
|
|
5904
5906
|
}
|
|
5905
5907
|
const Td = { render: Md }, Id = {
|
|
@@ -5911,7 +5913,7 @@ const Td = { render: Md }, Id = {
|
|
|
5911
5913
|
};
|
|
5912
5914
|
function Ad(o, e) {
|
|
5913
5915
|
return v(), g("svg", Id, [...e[0] || (e[0] = [
|
|
5914
|
-
|
|
5916
|
+
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)
|
|
5915
5917
|
])]);
|
|
5916
5918
|
}
|
|
5917
5919
|
const Od = { render: Ad }, Bd = {
|
|
@@ -5921,7 +5923,7 @@ const Od = { render: Ad }, Bd = {
|
|
|
5921
5923
|
};
|
|
5922
5924
|
function Ld(o, e) {
|
|
5923
5925
|
return v(), g("svg", Bd, [...e[0] || (e[0] = [
|
|
5924
|
-
|
|
5926
|
+
i("path", {
|
|
5925
5927
|
"stroke-linecap": "round",
|
|
5926
5928
|
"stroke-linejoin": "round",
|
|
5927
5929
|
"stroke-width": "1.5",
|
|
@@ -5943,7 +5945,7 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
|
|
|
5943
5945
|
__name: "Toolbar",
|
|
5944
5946
|
setup(o) {
|
|
5945
5947
|
const e = J(), { enabled: t } = Te(), { t: n } = e.i18n, a = e.fs, l = e.config, d = G(l.state), r = G(a.selectedItems), c = G(a.sort), _ = G(a.filter);
|
|
5946
|
-
|
|
5948
|
+
le(
|
|
5947
5949
|
() => d.value.fullScreen,
|
|
5948
5950
|
() => {
|
|
5949
5951
|
const p = document.querySelector("body");
|
|
@@ -5970,7 +5972,7 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
|
|
|
5970
5972
|
showHidden: d.value.showHiddenFiles
|
|
5971
5973
|
// Initialize with config store default
|
|
5972
5974
|
});
|
|
5973
|
-
|
|
5975
|
+
le(
|
|
5974
5976
|
() => u.value.sortBy,
|
|
5975
5977
|
(p) => {
|
|
5976
5978
|
if (!u.value.sortOrder) {
|
|
@@ -5979,7 +5981,7 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
|
|
|
5979
5981
|
}
|
|
5980
5982
|
p === "name" ? a.setSort("basename", u.value.sortOrder) : p === "size" ? a.setSort("file_size", u.value.sortOrder) : p === "modified" && a.setSort("last_modified", u.value.sortOrder);
|
|
5981
5983
|
}
|
|
5982
|
-
),
|
|
5984
|
+
), le(
|
|
5983
5985
|
() => u.value.sortOrder,
|
|
5984
5986
|
(p) => {
|
|
5985
5987
|
if (!p) {
|
|
@@ -5988,29 +5990,29 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
|
|
|
5988
5990
|
}
|
|
5989
5991
|
u.value.sortBy === "name" ? a.setSort("basename", p) : u.value.sortBy === "size" ? a.setSort("file_size", p) : u.value.sortBy === "modified" && a.setSort("last_modified", p);
|
|
5990
5992
|
}
|
|
5991
|
-
),
|
|
5993
|
+
), le(
|
|
5992
5994
|
c,
|
|
5993
5995
|
(p) => {
|
|
5994
5996
|
p.active ? (p.column === "basename" ? u.value.sortBy = "name" : p.column === "file_size" ? u.value.sortBy = "size" : p.column === "last_modified" && (u.value.sortBy = "modified"), u.value.sortOrder = p.order) : u.value.sortOrder = "";
|
|
5995
5997
|
},
|
|
5996
5998
|
{ immediate: !0 }
|
|
5997
|
-
),
|
|
5999
|
+
), le(
|
|
5998
6000
|
() => u.value.filterKind,
|
|
5999
6001
|
(p) => {
|
|
6000
6002
|
a.setFilter(p, d.value.showHiddenFiles);
|
|
6001
6003
|
}
|
|
6002
|
-
),
|
|
6004
|
+
), le(
|
|
6003
6005
|
() => u.value.showHidden,
|
|
6004
6006
|
(p) => {
|
|
6005
6007
|
l.set("showHiddenFiles", p), a.setFilter(u.value.filterKind, p);
|
|
6006
6008
|
}
|
|
6007
|
-
),
|
|
6009
|
+
), le(
|
|
6008
6010
|
_,
|
|
6009
6011
|
(p) => {
|
|
6010
6012
|
u.value.filterKind = p.kind;
|
|
6011
6013
|
},
|
|
6012
6014
|
{ immediate: !0 }
|
|
6013
|
-
),
|
|
6015
|
+
), le(
|
|
6014
6016
|
() => d.value.showHiddenFiles,
|
|
6015
6017
|
(p) => {
|
|
6016
6018
|
u.value.showHidden = p, a.setFilter(u.value.filterKind, p);
|
|
@@ -6028,124 +6030,124 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
|
|
|
6028
6030
|
}, l.set("showHiddenFiles", !0), a.clearSort(), a.clearFilter();
|
|
6029
6031
|
};
|
|
6030
6032
|
return (p, h) => (v(), g("div", zd, [
|
|
6031
|
-
|
|
6032
|
-
|
|
6033
|
+
i("div", Rd, [
|
|
6034
|
+
s(t)("newfolder") ? (v(), g("div", {
|
|
6033
6035
|
key: 0,
|
|
6034
6036
|
class: "mx-1.5",
|
|
6035
|
-
title:
|
|
6036
|
-
onClick: h[0] || (h[0] = (f) =>
|
|
6037
|
+
title: s(n)("New Folder"),
|
|
6038
|
+
onClick: h[0] || (h[0] = (f) => s(e).modal.open(Ht, { items: s(r) }))
|
|
6037
6039
|
}, [
|
|
6038
|
-
O(
|
|
6040
|
+
O(s(Tn))
|
|
6039
6041
|
], 8, Nd)) : T("", !0),
|
|
6040
|
-
|
|
6042
|
+
s(t)("newfile") ? (v(), g("div", {
|
|
6041
6043
|
key: 1,
|
|
6042
6044
|
class: "mx-1.5",
|
|
6043
|
-
title:
|
|
6044
|
-
onClick: h[1] || (h[1] = (f) =>
|
|
6045
|
+
title: s(n)("New File"),
|
|
6046
|
+
onClick: h[1] || (h[1] = (f) => s(e).modal.open(An, { items: s(r) }))
|
|
6045
6047
|
}, [
|
|
6046
|
-
O(
|
|
6048
|
+
O(s(In))
|
|
6047
6049
|
], 8, Ud)) : T("", !0),
|
|
6048
|
-
|
|
6050
|
+
s(t)("rename") ? (v(), g("div", {
|
|
6049
6051
|
key: 2,
|
|
6050
6052
|
class: "mx-1.5",
|
|
6051
|
-
title:
|
|
6052
|
-
onClick: h[2] || (h[2] = (f) =>
|
|
6053
|
+
title: s(n)("Rename"),
|
|
6054
|
+
onClick: h[2] || (h[2] = (f) => s(r).length !== 1 || s(e).modal.open(yt, { items: s(r) }))
|
|
6053
6055
|
}, [
|
|
6054
|
-
O(
|
|
6055
|
-
class: Z(
|
|
6056
|
+
O(s($n), {
|
|
6057
|
+
class: Z(s(r).length === 1 ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
|
|
6056
6058
|
}, null, 8, ["class"])
|
|
6057
6059
|
], 8, jd)) : T("", !0),
|
|
6058
|
-
|
|
6060
|
+
s(t)("delete") ? (v(), g("div", {
|
|
6059
6061
|
key: 3,
|
|
6060
6062
|
class: "mx-1.5",
|
|
6061
|
-
title:
|
|
6062
|
-
onClick: h[3] || (h[3] = (f) => !
|
|
6063
|
+
title: s(n)("Delete"),
|
|
6064
|
+
onClick: h[3] || (h[3] = (f) => !s(r).length || s(e).modal.open(wt, { items: s(r) }))
|
|
6063
6065
|
}, [
|
|
6064
|
-
O(
|
|
6065
|
-
class: Z(
|
|
6066
|
+
O(s(kn), {
|
|
6067
|
+
class: Z(s(r).length ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
|
|
6066
6068
|
}, null, 8, ["class"])
|
|
6067
6069
|
], 8, Hd)) : T("", !0),
|
|
6068
|
-
|
|
6070
|
+
s(t)("upload") ? (v(), g("div", {
|
|
6069
6071
|
key: 4,
|
|
6070
6072
|
class: "mx-1.5",
|
|
6071
|
-
title:
|
|
6072
|
-
onClick: h[4] || (h[4] = (f) =>
|
|
6073
|
+
title: s(n)("Upload"),
|
|
6074
|
+
onClick: h[4] || (h[4] = (f) => s(e).modal.open(Kt, { items: s(r) }))
|
|
6073
6075
|
}, [
|
|
6074
|
-
O(
|
|
6076
|
+
O(s(On))
|
|
6075
6077
|
], 8, Kd)) : T("", !0),
|
|
6076
|
-
|
|
6078
|
+
s(t)("unarchive") && s(r).length === 1 && s(r)[0].mime_type === "application/zip" ? (v(), g("div", {
|
|
6077
6079
|
key: 5,
|
|
6078
6080
|
class: "mx-1.5",
|
|
6079
|
-
title:
|
|
6080
|
-
onClick: h[5] || (h[5] = (f) => !
|
|
6081
|
+
title: s(n)("Unarchive"),
|
|
6082
|
+
onClick: h[5] || (h[5] = (f) => !s(r).length || s(e).modal.open(qt, { items: s(r) }))
|
|
6081
6083
|
}, [
|
|
6082
|
-
O(
|
|
6083
|
-
class: Z(
|
|
6084
|
+
O(s(Bn), {
|
|
6085
|
+
class: Z(s(r).length ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
|
|
6084
6086
|
}, null, 8, ["class"])
|
|
6085
6087
|
], 8, qd)) : T("", !0),
|
|
6086
|
-
|
|
6088
|
+
s(t)("archive") ? (v(), g("div", {
|
|
6087
6089
|
key: 6,
|
|
6088
6090
|
class: "mx-1.5",
|
|
6089
|
-
title:
|
|
6090
|
-
onClick: h[6] || (h[6] = (f) => !
|
|
6091
|
+
title: s(n)("Archive"),
|
|
6092
|
+
onClick: h[6] || (h[6] = (f) => !s(r).length || s(e).modal.open(Gt, { items: s(r) }))
|
|
6091
6093
|
}, [
|
|
6092
|
-
O(
|
|
6093
|
-
class: Z(
|
|
6094
|
+
O(s(Ln), {
|
|
6095
|
+
class: Z(s(r).length ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
|
|
6094
6096
|
}, null, 8, ["class"])
|
|
6095
6097
|
], 8, Gd)) : T("", !0)
|
|
6096
6098
|
]),
|
|
6097
|
-
|
|
6098
|
-
|
|
6099
|
+
i("div", Wd, [
|
|
6100
|
+
s(t)("search") ? (v(), g("div", {
|
|
6099
6101
|
key: 0,
|
|
6100
6102
|
class: "mx-1.5",
|
|
6101
|
-
title:
|
|
6102
|
-
onClick: h[7] || (h[7] = (f) =>
|
|
6103
|
+
title: s(n)("Search Files"),
|
|
6104
|
+
onClick: h[7] || (h[7] = (f) => s(e).modal.open(jt))
|
|
6103
6105
|
}, [
|
|
6104
|
-
O(
|
|
6106
|
+
O(s(Ut), { class: "vf-toolbar-icon text-(--vf-bg-primary)" })
|
|
6105
6107
|
], 8, Yd)) : T("", !0),
|
|
6106
|
-
|
|
6107
|
-
|
|
6108
|
-
title:
|
|
6108
|
+
i("div", Qd, [
|
|
6109
|
+
i("div", {
|
|
6110
|
+
title: s(n)("Filter"),
|
|
6109
6111
|
class: "vuefinder__toolbar__dropdown-trigger",
|
|
6110
6112
|
onClick: h[8] || (h[8] = (f) => m.value = !m.value)
|
|
6111
6113
|
}, [
|
|
6112
|
-
|
|
6113
|
-
O(
|
|
6114
|
+
i("div", Jd, [
|
|
6115
|
+
O(s(Vd), { class: "vf-toolbar-icon vuefinder__toolbar__icon h-6 w-6" }),
|
|
6114
6116
|
D.value ? (v(), g("div", Zd)) : T("", !0)
|
|
6115
6117
|
])
|
|
6116
6118
|
], 8, Xd),
|
|
6117
6119
|
m.value ? (v(), g("div", ec, [
|
|
6118
|
-
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
|
|
6122
|
-
pe(
|
|
6120
|
+
i("div", tc, [
|
|
6121
|
+
i("div", nc, [
|
|
6122
|
+
i("div", oc, y(s(n)("Sorting")), 1),
|
|
6123
|
+
i("div", sc, [
|
|
6124
|
+
pe(i("select", {
|
|
6123
6125
|
"onUpdate:modelValue": h[9] || (h[9] = (f) => u.value.sortBy = f),
|
|
6124
6126
|
class: "vuefinder__toolbar__dropdown-select"
|
|
6125
6127
|
}, [
|
|
6126
|
-
|
|
6127
|
-
|
|
6128
|
-
|
|
6128
|
+
i("option", ic, y(s(n)("Name")), 1),
|
|
6129
|
+
i("option", ac, y(s(n)("Size")), 1),
|
|
6130
|
+
i("option", rc, y(s(n)("Date")), 1)
|
|
6129
6131
|
], 512), [
|
|
6130
6132
|
[Ft, u.value.sortBy]
|
|
6131
6133
|
]),
|
|
6132
|
-
pe(
|
|
6134
|
+
pe(i("select", {
|
|
6133
6135
|
"onUpdate:modelValue": h[10] || (h[10] = (f) => u.value.sortOrder = f),
|
|
6134
6136
|
class: "vuefinder__toolbar__dropdown-select"
|
|
6135
6137
|
}, [
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6138
|
+
i("option", lc, y(s(n)("None")), 1),
|
|
6139
|
+
i("option", dc, y(s(n)("Asc")), 1),
|
|
6140
|
+
i("option", cc, y(s(n)("Desc")), 1)
|
|
6139
6141
|
], 512), [
|
|
6140
6142
|
[Ft, u.value.sortOrder]
|
|
6141
6143
|
])
|
|
6142
6144
|
])
|
|
6143
6145
|
]),
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
pe(
|
|
6146
|
+
i("div", uc, [
|
|
6147
|
+
i("div", vc, y(s(n)("Show")), 1),
|
|
6148
|
+
i("div", fc, [
|
|
6149
|
+
i("label", _c, [
|
|
6150
|
+
pe(i("input", {
|
|
6149
6151
|
"onUpdate:modelValue": h[11] || (h[11] = (f) => u.value.filterKind = f),
|
|
6150
6152
|
type: "radio",
|
|
6151
6153
|
name: "filterKind",
|
|
@@ -6154,10 +6156,10 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
|
|
|
6154
6156
|
}, null, 512), [
|
|
6155
6157
|
[St, u.value.filterKind]
|
|
6156
6158
|
]),
|
|
6157
|
-
|
|
6159
|
+
i("span", pc, y(s(n)("All items")), 1)
|
|
6158
6160
|
]),
|
|
6159
|
-
|
|
6160
|
-
pe(
|
|
6161
|
+
i("label", hc, [
|
|
6162
|
+
pe(i("input", {
|
|
6161
6163
|
"onUpdate:modelValue": h[12] || (h[12] = (f) => u.value.filterKind = f),
|
|
6162
6164
|
type: "radio",
|
|
6163
6165
|
name: "filterKind",
|
|
@@ -6166,10 +6168,10 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
|
|
|
6166
6168
|
}, null, 512), [
|
|
6167
6169
|
[St, u.value.filterKind]
|
|
6168
6170
|
]),
|
|
6169
|
-
|
|
6171
|
+
i("span", mc, y(s(n)("Files only")), 1)
|
|
6170
6172
|
]),
|
|
6171
|
-
|
|
6172
|
-
pe(
|
|
6173
|
+
i("label", gc, [
|
|
6174
|
+
pe(i("input", {
|
|
6173
6175
|
"onUpdate:modelValue": h[13] || (h[13] = (f) => u.value.filterKind = f),
|
|
6174
6176
|
type: "radio",
|
|
6175
6177
|
name: "filterKind",
|
|
@@ -6178,13 +6180,13 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
|
|
|
6178
6180
|
}, null, 512), [
|
|
6179
6181
|
[St, u.value.filterKind]
|
|
6180
6182
|
]),
|
|
6181
|
-
|
|
6183
|
+
i("span", wc, y(s(n)("Folders only")), 1)
|
|
6182
6184
|
])
|
|
6183
6185
|
])
|
|
6184
6186
|
]),
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
pe(
|
|
6187
|
+
i("div", yc, [
|
|
6188
|
+
i("label", bc, y(s(n)("Show hidden files")), 1),
|
|
6189
|
+
pe(i("input", {
|
|
6188
6190
|
id: "showHidden",
|
|
6189
6191
|
"onUpdate:modelValue": h[14] || (h[14] = (f) => u.value.showHidden = f),
|
|
6190
6192
|
type: "checkbox",
|
|
@@ -6193,39 +6195,39 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
|
|
|
6193
6195
|
[mt, u.value.showHidden]
|
|
6194
6196
|
])
|
|
6195
6197
|
]),
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
+
i("div", kc, [
|
|
6199
|
+
i("button", {
|
|
6198
6200
|
class: "vuefinder__toolbar__reset-button",
|
|
6199
6201
|
onClick: S
|
|
6200
|
-
}, y(
|
|
6202
|
+
}, y(s(n)("Reset")), 1)
|
|
6201
6203
|
])
|
|
6202
6204
|
])
|
|
6203
6205
|
])) : T("", !0)
|
|
6204
6206
|
]),
|
|
6205
|
-
|
|
6207
|
+
s(t)("fullscreen") ? (v(), g("div", {
|
|
6206
6208
|
key: 1,
|
|
6207
6209
|
class: "mx-1.5",
|
|
6208
|
-
title:
|
|
6209
|
-
onClick: h[15] || (h[15] = (f) =>
|
|
6210
|
+
title: s(n)("Toggle Full Screen"),
|
|
6211
|
+
onClick: h[15] || (h[15] = (f) => s(l).toggle("fullScreen"))
|
|
6210
6212
|
}, [
|
|
6211
|
-
|
|
6213
|
+
s(d).fullScreen ? (v(), L(s(Pd), {
|
|
6212
6214
|
key: 0,
|
|
6213
6215
|
class: "vf-toolbar-icon"
|
|
6214
|
-
})) : (v(), L(
|
|
6216
|
+
})) : (v(), L(s(Cd), {
|
|
6215
6217
|
key: 1,
|
|
6216
6218
|
class: "vf-toolbar-icon"
|
|
6217
6219
|
}))
|
|
6218
6220
|
], 8, $c)) : T("", !0),
|
|
6219
|
-
|
|
6221
|
+
i("div", {
|
|
6220
6222
|
class: "mx-1.5",
|
|
6221
|
-
title:
|
|
6223
|
+
title: s(n)("Change View"),
|
|
6222
6224
|
onClick: h[16] || (h[16] = (f) => $())
|
|
6223
6225
|
}, [
|
|
6224
|
-
|
|
6226
|
+
s(d).view === "grid" ? (v(), L(s(Td), {
|
|
6225
6227
|
key: 0,
|
|
6226
6228
|
class: "vf-toolbar-icon"
|
|
6227
6229
|
})) : T("", !0),
|
|
6228
|
-
|
|
6230
|
+
s(d).view === "list" ? (v(), L(s(Od), {
|
|
6229
6231
|
key: 1,
|
|
6230
6232
|
class: "vf-toolbar-icon"
|
|
6231
6233
|
})) : T("", !0)
|
|
@@ -6241,7 +6243,7 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
|
|
|
6241
6243
|
};
|
|
6242
6244
|
function Fc(o, e) {
|
|
6243
6245
|
return v(), g("svg", Cc, [...e[0] || (e[0] = [
|
|
6244
|
-
|
|
6246
|
+
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)
|
|
6245
6247
|
])]);
|
|
6246
6248
|
}
|
|
6247
6249
|
const Dc = { render: Fc }, Pc = {
|
|
@@ -6252,7 +6254,7 @@ const Dc = { render: Fc }, Pc = {
|
|
|
6252
6254
|
};
|
|
6253
6255
|
function Ec(o, e) {
|
|
6254
6256
|
return v(), g("svg", Pc, [...e[0] || (e[0] = [
|
|
6255
|
-
|
|
6257
|
+
i("path", {
|
|
6256
6258
|
"fill-rule": "evenodd",
|
|
6257
6259
|
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",
|
|
6258
6260
|
class: "pointer-events-none",
|
|
@@ -6270,7 +6272,7 @@ const Mc = { render: Ec }, Tc = {
|
|
|
6270
6272
|
};
|
|
6271
6273
|
function Ic(o, e) {
|
|
6272
6274
|
return v(), g("svg", Tc, [...e[0] || (e[0] = [
|
|
6273
|
-
|
|
6275
|
+
i("path", {
|
|
6274
6276
|
"stroke-linecap": "round",
|
|
6275
6277
|
"stroke-linejoin": "round",
|
|
6276
6278
|
d: "M6 18 18 6M6 6l12 12"
|
|
@@ -6284,7 +6286,7 @@ const Ac = { render: Ic }, Oc = {
|
|
|
6284
6286
|
};
|
|
6285
6287
|
function Bc(o, e) {
|
|
6286
6288
|
return v(), g("svg", Oc, [...e[0] || (e[0] = [
|
|
6287
|
-
|
|
6289
|
+
i("path", {
|
|
6288
6290
|
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",
|
|
6289
6291
|
class: "pointer-events-none"
|
|
6290
6292
|
}, null, -1)
|
|
@@ -6300,7 +6302,7 @@ const Lc = { render: Bc }, Vc = {
|
|
|
6300
6302
|
};
|
|
6301
6303
|
function zc(o, e) {
|
|
6302
6304
|
return v(), g("svg", Vc, [...e[0] || (e[0] = [
|
|
6303
|
-
|
|
6305
|
+
i("path", {
|
|
6304
6306
|
"stroke-linecap": "round",
|
|
6305
6307
|
"stroke-linejoin": "round",
|
|
6306
6308
|
d: "M6 18 18 6M6 6l12 12"
|
|
@@ -6318,11 +6320,11 @@ const Rc = { render: zc }, Nc = {
|
|
|
6318
6320
|
};
|
|
6319
6321
|
function Uc(o, e) {
|
|
6320
6322
|
return v(), g("svg", Nc, [...e[0] || (e[0] = [
|
|
6321
|
-
|
|
6323
|
+
i("path", {
|
|
6322
6324
|
stroke: "none",
|
|
6323
6325
|
d: "M0 0h24v24H0z"
|
|
6324
6326
|
}, null, -1),
|
|
6325
|
-
|
|
6327
|
+
i("path", { d: "M9 6h11M12 12h8M15 18h5M5 6v.01M8 12v.01M11 18v.01" }, null, -1)
|
|
6326
6328
|
])]);
|
|
6327
6329
|
}
|
|
6328
6330
|
const jc = { render: Uc }, Hc = {
|
|
@@ -6333,7 +6335,7 @@ const jc = { render: Uc }, Hc = {
|
|
|
6333
6335
|
};
|
|
6334
6336
|
function Kc(o, e) {
|
|
6335
6337
|
return v(), g("svg", Hc, [...e[0] || (e[0] = [
|
|
6336
|
-
|
|
6338
|
+
i("path", {
|
|
6337
6339
|
"stroke-linecap": "round",
|
|
6338
6340
|
"stroke-linejoin": "round",
|
|
6339
6341
|
"stroke-width": "2",
|
|
@@ -6407,7 +6409,7 @@ const Gc = { class: "vuefinder__breadcrumb__container" }, Wc = ["title"], Yc = [
|
|
|
6407
6409
|
), p = N(
|
|
6408
6410
|
() => D($.value, m.value)[1]
|
|
6409
6411
|
);
|
|
6410
|
-
|
|
6412
|
+
le(_, () => {
|
|
6411
6413
|
if (!c.value) return;
|
|
6412
6414
|
const z = c.value.children;
|
|
6413
6415
|
let x = 0, b = 0;
|
|
@@ -6484,96 +6486,96 @@ const Gc = { class: "vuefinder__breadcrumb__container" }, Wc = ["title"], Yc = [
|
|
|
6484
6486
|
u.value = !1;
|
|
6485
6487
|
};
|
|
6486
6488
|
return (z, x) => (v(), g("div", Gc, [
|
|
6487
|
-
|
|
6488
|
-
title:
|
|
6489
|
+
i("span", {
|
|
6490
|
+
title: s(t)("Toggle Tree View")
|
|
6489
6491
|
}, [
|
|
6490
|
-
O(
|
|
6491
|
-
class: Z(["vuefinder__breadcrumb__toggle-tree",
|
|
6492
|
+
O(s(jc), {
|
|
6493
|
+
class: Z(["vuefinder__breadcrumb__toggle-tree", s(l).showTreeView ? "vuefinder__breadcrumb__toggle-tree--active" : ""]),
|
|
6492
6494
|
onClick: ne
|
|
6493
6495
|
}, null, 8, ["class"])
|
|
6494
6496
|
], 8, Wc),
|
|
6495
|
-
|
|
6496
|
-
title:
|
|
6497
|
+
i("span", {
|
|
6498
|
+
title: s(t)("Go up a directory")
|
|
6497
6499
|
}, [
|
|
6498
|
-
O(
|
|
6500
|
+
O(s(Mc), Me({
|
|
6499
6501
|
class: $.value.length ? "vuefinder__breadcrumb__go-up--active" : "vuefinder__breadcrumb__go-up--inactive"
|
|
6500
|
-
}, Re($.value.length ?
|
|
6502
|
+
}, Re($.value.length ? s(k).events(C()) : {}), { onClick: A }), null, 16, ["class"])
|
|
6501
6503
|
], 8, Yc),
|
|
6502
|
-
|
|
6504
|
+
s(n).isLoading() ? (v(), g("span", {
|
|
6503
6505
|
key: 1,
|
|
6504
|
-
title:
|
|
6506
|
+
title: s(t)("Cancel")
|
|
6505
6507
|
}, [
|
|
6506
|
-
O(
|
|
6507
|
-
onClick: x[0] || (x[0] = (b) =>
|
|
6508
|
+
O(s(Ac), {
|
|
6509
|
+
onClick: x[0] || (x[0] = (b) => s(e).emitter.emit("vf-fetch-abort"))
|
|
6508
6510
|
})
|
|
6509
6511
|
], 8, Xc)) : (v(), g("span", {
|
|
6510
6512
|
key: 0,
|
|
6511
|
-
title:
|
|
6513
|
+
title: s(t)("Refresh")
|
|
6512
6514
|
}, [
|
|
6513
|
-
O(
|
|
6515
|
+
O(s(Dc), { onClick: F })
|
|
6514
6516
|
], 8, Qc)),
|
|
6515
|
-
pe(
|
|
6516
|
-
|
|
6517
|
-
O(
|
|
6518
|
-
onClick: x[1] || (x[1] = ie((b) =>
|
|
6517
|
+
pe(i("div", Jc, [
|
|
6518
|
+
i("div", null, [
|
|
6519
|
+
O(s(Lc), Me({ class: "vuefinder__breadcrumb__home-icon" }, Re(s(k).events(C(-1))), {
|
|
6520
|
+
onClick: x[1] || (x[1] = ie((b) => s(e).adapter.open(s(d).storage + "://"), ["stop"]))
|
|
6519
6521
|
}), null, 16)
|
|
6520
6522
|
]),
|
|
6521
|
-
|
|
6523
|
+
i("div", Zc, [
|
|
6522
6524
|
p.value.length ? pe((v(), g("div", eu, [
|
|
6523
|
-
x[3] || (x[3] =
|
|
6524
|
-
|
|
6525
|
-
|
|
6525
|
+
x[3] || (x[3] = i("div", { class: "vuefinder__breadcrumb__separator" }, "/", -1)),
|
|
6526
|
+
i("div", tu, [
|
|
6527
|
+
i("span", {
|
|
6526
6528
|
class: "vuefinder__breadcrumb__hidden-toggle",
|
|
6527
6529
|
onDragenter: x[2] || (x[2] = (b) => ee(b, !0)),
|
|
6528
6530
|
onClick: ie(ee, ["stop"])
|
|
6529
6531
|
}, [
|
|
6530
|
-
O(
|
|
6532
|
+
O(s(En), { class: "vuefinder__breadcrumb__hidden-toggle-icon" })
|
|
6531
6533
|
], 32)
|
|
6532
6534
|
])
|
|
6533
6535
|
])), [
|
|
6534
6536
|
[R, Y]
|
|
6535
6537
|
]) : T("", !0)
|
|
6536
6538
|
]),
|
|
6537
|
-
|
|
6539
|
+
i("div", {
|
|
6538
6540
|
ref_key: "breadcrumbContainer",
|
|
6539
6541
|
ref: c,
|
|
6540
6542
|
class: "vuefinder__breadcrumb__visible-list pointer-events-none"
|
|
6541
6543
|
}, [
|
|
6542
6544
|
(v(!0), g(ve, null, he(S.value, (b, P) => (v(), g("div", { key: P }, [
|
|
6543
|
-
x[4] || (x[4] =
|
|
6544
|
-
|
|
6545
|
+
x[4] || (x[4] = i("span", { class: "vuefinder__breadcrumb__separator" }, "/", -1)),
|
|
6546
|
+
i("span", Me({
|
|
6545
6547
|
class: "vuefinder__breadcrumb__item pointer-events-auto",
|
|
6546
6548
|
title: b.basename
|
|
6547
|
-
}, Re(
|
|
6548
|
-
onClick: ie((I) =>
|
|
6549
|
+
}, Re(s(k).events(b), !0), {
|
|
6550
|
+
onClick: ie((I) => s(e).adapter.open(b.path), ["stop"])
|
|
6549
6551
|
}), y(b.name), 17, nu)
|
|
6550
6552
|
]))), 128))
|
|
6551
6553
|
], 512),
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
title:
|
|
6554
|
+
s(a).get("loadingIndicator") === "circular" && s(r) ? (v(), L(s(xt), { key: 0 })) : T("", !0),
|
|
6555
|
+
i("span", {
|
|
6556
|
+
title: s(t)("Toggle Path Copy Mode"),
|
|
6555
6557
|
onClick: E
|
|
6556
6558
|
}, [
|
|
6557
|
-
O(
|
|
6559
|
+
O(s(qc), { class: "vuefinder__breadcrumb__toggle-icon" })
|
|
6558
6560
|
], 8, ou)
|
|
6559
6561
|
], 512), [
|
|
6560
6562
|
[Le, !u.value]
|
|
6561
6563
|
]),
|
|
6562
|
-
pe(
|
|
6563
|
-
|
|
6564
|
-
|
|
6565
|
-
title:
|
|
6564
|
+
pe(i("div", su, [
|
|
6565
|
+
i("div", iu, [
|
|
6566
|
+
i("div", {
|
|
6567
|
+
title: s(t)("Copy Path")
|
|
6566
6568
|
}, [
|
|
6567
|
-
O(
|
|
6569
|
+
O(s(Bt), {
|
|
6568
6570
|
class: "vuefinder__breadcrumb__copy-icon",
|
|
6569
6571
|
onClick: q
|
|
6570
6572
|
})
|
|
6571
6573
|
], 8, au),
|
|
6572
|
-
|
|
6573
|
-
|
|
6574
|
-
title:
|
|
6574
|
+
i("div", ru, y(s(d).path), 1),
|
|
6575
|
+
i("div", {
|
|
6576
|
+
title: s(t)("Exit")
|
|
6575
6577
|
}, [
|
|
6576
|
-
O(
|
|
6578
|
+
O(s(Rc), {
|
|
6577
6579
|
class: "vuefinder__breadcrumb__exit-icon",
|
|
6578
6580
|
onClick: j
|
|
6579
6581
|
})
|
|
@@ -6583,27 +6585,27 @@ const Gc = { class: "vuefinder__breadcrumb__container" }, Wc = ["title"], Yc = [
|
|
|
6583
6585
|
[Le, u.value]
|
|
6584
6586
|
]),
|
|
6585
6587
|
(v(), L(gt, { to: "body" }, [
|
|
6586
|
-
|
|
6587
|
-
pe(
|
|
6588
|
+
i("div", null, [
|
|
6589
|
+
pe(i("div", {
|
|
6588
6590
|
style: Ve({
|
|
6589
6591
|
position: "absolute",
|
|
6590
6592
|
top: U.value.y + "px",
|
|
6591
6593
|
left: U.value.x + "px"
|
|
6592
6594
|
}),
|
|
6593
6595
|
class: "vuefinder__themer vuefinder__breadcrumb__hidden-dropdown",
|
|
6594
|
-
"data-theme":
|
|
6596
|
+
"data-theme": s(e).theme.current
|
|
6595
6597
|
}, [
|
|
6596
6598
|
(v(!0), g(ve, null, he(p.value, (b, P) => (v(), g("div", Me({
|
|
6597
6599
|
key: P,
|
|
6598
6600
|
class: "vuefinder__breadcrumb__hidden-item"
|
|
6599
|
-
}, Re(
|
|
6601
|
+
}, Re(s(k).events(b), !0), {
|
|
6600
6602
|
onClick: (I) => B(b)
|
|
6601
6603
|
}), [
|
|
6602
|
-
|
|
6603
|
-
|
|
6604
|
-
O(
|
|
6604
|
+
i("div", uu, [
|
|
6605
|
+
i("span", null, [
|
|
6606
|
+
O(s(Oe), { class: "vuefinder__breadcrumb__hidden-item-icon" })
|
|
6605
6607
|
]),
|
|
6606
|
-
|
|
6608
|
+
i("span", vu, y(b.name), 1)
|
|
6607
6609
|
])
|
|
6608
6610
|
], 16, cu))), 128))
|
|
6609
6611
|
], 12, du), [
|
|
@@ -6621,7 +6623,7 @@ const Gc = { class: "vuefinder__breadcrumb__container" }, Wc = ["title"], Yc = [
|
|
|
6621
6623
|
};
|
|
6622
6624
|
function pu(o, e) {
|
|
6623
6625
|
return v(), g("svg", _u, [...e[0] || (e[0] = [
|
|
6624
|
-
|
|
6626
|
+
i("path", {
|
|
6625
6627
|
"stroke-linecap": "round",
|
|
6626
6628
|
"stroke-linejoin": "round",
|
|
6627
6629
|
d: "M7 21h10a2 2 0 0 0 2-2V9.414a1 1 0 0 0-.293-.707l-5.414-5.414A1 1 0 0 0 12.586 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2"
|
|
@@ -6636,12 +6638,12 @@ const sn = { render: pu }, hu = { class: "vuefinder__drag-item__container" }, mu
|
|
|
6636
6638
|
setup(o) {
|
|
6637
6639
|
const e = o;
|
|
6638
6640
|
return (t, n) => (v(), g("div", hu, [
|
|
6639
|
-
e.count > 1 ? (v(), L(
|
|
6641
|
+
e.count > 1 ? (v(), L(s(sn), {
|
|
6640
6642
|
key: 0,
|
|
6641
6643
|
class: "vuefinder__drag-item__icon translate-x-1 translate-y-1"
|
|
6642
6644
|
})) : T("", !0),
|
|
6643
|
-
O(
|
|
6644
|
-
|
|
6645
|
+
O(s(sn), { class: "vuefinder__drag-item__icon" }),
|
|
6646
|
+
i("div", mu, y(e.count), 1)
|
|
6645
6647
|
]));
|
|
6646
6648
|
}
|
|
6647
6649
|
}), wu = {
|
|
@@ -6664,10 +6666,10 @@ const sn = { render: pu }, hu = { class: "vuefinder__drag-item__container" }, mu
|
|
|
6664
6666
|
class: Z(["vuefinder__item-icon", o.small ? "vuefinder__item-icon--small" : "vuefinder__item-icon--large"])
|
|
6665
6667
|
}, [
|
|
6666
6668
|
$e(l.$slots, "icon", Ne(Ue(a)), () => [
|
|
6667
|
-
o.item.type === "dir" ? (v(), L(
|
|
6669
|
+
o.item.type === "dir" ? (v(), L(s(Oe), {
|
|
6668
6670
|
key: 0,
|
|
6669
6671
|
class: "vuefinder__item-icon__folder"
|
|
6670
|
-
})) : (v(), L(
|
|
6672
|
+
})) : (v(), L(s(lt), {
|
|
6671
6673
|
key: 1,
|
|
6672
6674
|
class: "vuefinder__item-icon__file"
|
|
6673
6675
|
})),
|
|
@@ -6682,11 +6684,11 @@ const sn = { render: pu }, hu = { class: "vuefinder__drag-item__container" }, mu
|
|
|
6682
6684
|
};
|
|
6683
6685
|
function bu(o, e) {
|
|
6684
6686
|
return v(), g("svg", yu, [...e[0] || (e[0] = [
|
|
6685
|
-
|
|
6687
|
+
i("path", {
|
|
6686
6688
|
fill: "none",
|
|
6687
6689
|
d: "M0 0h24v24H0z"
|
|
6688
6690
|
}, null, -1),
|
|
6689
|
-
|
|
6691
|
+
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)
|
|
6690
6692
|
])]);
|
|
6691
6693
|
}
|
|
6692
6694
|
const rn = { render: bu }, ku = ["data-key", "data-row", "data-col", "draggable"], $u = { key: 0 }, xu = { class: "vuefinder__explorer__item-grid-content" }, Su = ["data-src", "alt"], Cu = { class: "vuefinder__explorer__item-title" }, Fu = {
|
|
@@ -6785,17 +6787,17 @@ const rn = { render: bu }, ku = ["data-key", "data-row", "data-col", "draggable"
|
|
|
6785
6787
|
onDragend: ee[6] || (ee[6] = (E) => n("dragend", E))
|
|
6786
6788
|
}, [
|
|
6787
6789
|
o.view === "grid" ? (v(), g("div", $u, [
|
|
6788
|
-
|
|
6790
|
+
s(l).isReadOnly(o.item) ? (v(), L(s(rn), {
|
|
6789
6791
|
key: 0,
|
|
6790
6792
|
class: "vuefinder__item--readonly vuefinder__item--readonly--left",
|
|
6791
6793
|
title: "Read Only"
|
|
6792
6794
|
})) : T("", !0),
|
|
6793
|
-
|
|
6795
|
+
i("div", xu, [
|
|
6794
6796
|
(o.item.mime_type ?? "").startsWith("image") && o.showThumbnails ? (v(), g("img", {
|
|
6795
6797
|
key: 0,
|
|
6796
6798
|
src: "data:image/png;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",
|
|
6797
6799
|
class: "vuefinder__explorer__item-thumbnail lazy",
|
|
6798
|
-
"data-src": o.item.previewUrl ??
|
|
6800
|
+
"data-src": o.item.previewUrl ?? s(a).adapter.getPreviewUrl({ path: o.item.path }),
|
|
6799
6801
|
alt: o.item.basename,
|
|
6800
6802
|
onTouchstart: ee[0] || (ee[0] = (E) => E.preventDefault())
|
|
6801
6803
|
}, null, 40, Su)) : (v(), L(an, {
|
|
@@ -6809,10 +6811,10 @@ const rn = { render: bu }, ku = ["data-key", "data-row", "data-col", "draggable"
|
|
|
6809
6811
|
_: 3
|
|
6810
6812
|
}, 8, ["item"]))
|
|
6811
6813
|
]),
|
|
6812
|
-
|
|
6814
|
+
i("span", Cu, y(s(Et)(o.item.basename)), 1)
|
|
6813
6815
|
])) : (v(), g("div", Fu, [
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
+
i("div", Du, [
|
|
6817
|
+
i("div", Pu, [
|
|
6816
6818
|
O(an, {
|
|
6817
6819
|
item: o.item,
|
|
6818
6820
|
small: o.compact
|
|
@@ -6823,9 +6825,9 @@ const rn = { render: bu }, ku = ["data-key", "data-row", "data-col", "draggable"
|
|
|
6823
6825
|
_: 3
|
|
6824
6826
|
}, 8, ["item", "small"])
|
|
6825
6827
|
]),
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
|
|
6828
|
+
i("span", Eu, y(o.item.basename), 1),
|
|
6829
|
+
i("div", null, [
|
|
6830
|
+
s(l).isReadOnly(o.item) ? (v(), L(s(rn), {
|
|
6829
6831
|
key: 0,
|
|
6830
6832
|
class: "vuefinder__item--readonly vuefinder__item--readonly--list",
|
|
6831
6833
|
title: "Read Only"
|
|
@@ -6834,11 +6836,11 @@ const rn = { render: bu }, ku = ["data-key", "data-row", "data-col", "draggable"
|
|
|
6834
6836
|
]),
|
|
6835
6837
|
o.showPath ? (v(), g("div", Mu, y(o.item.path), 1)) : T("", !0),
|
|
6836
6838
|
o.showPath ? T("", !0) : (v(), g("div", Tu, [
|
|
6837
|
-
o.item.file_size ? (v(), g("div", Iu, y(
|
|
6839
|
+
o.item.file_size ? (v(), g("div", Iu, y(s(a).filesize(o.item.file_size)), 1)) : T("", !0)
|
|
6838
6840
|
])),
|
|
6839
6841
|
!o.showPath && o.item.last_modified ? (v(), g("div", Au, y(new Date(o.item.last_modified * 1e3).toLocaleString()), 1)) : T("", !0)
|
|
6840
6842
|
])),
|
|
6841
|
-
|
|
6843
|
+
s(h)("pinned") && s(d).get("pinnedFolders").find((E) => E.path === o.item.path) ? (v(), L(s(Lt), {
|
|
6842
6844
|
key: 2,
|
|
6843
6845
|
class: "vuefinder__item--pinned"
|
|
6844
6846
|
})) : T("", !0)
|
|
@@ -6882,7 +6884,7 @@ const rn = { render: bu }, ku = ["data-key", "data-row", "data-col", "draggable"
|
|
|
6882
6884
|
"data-row": o.rowIndex,
|
|
6883
6885
|
style: Ve(l.value)
|
|
6884
6886
|
}, [
|
|
6885
|
-
|
|
6887
|
+
i("div", {
|
|
6886
6888
|
class: Z(["grid justify-self-start", { "w-full": o.view === "list" }]),
|
|
6887
6889
|
style: Ve(d.value)
|
|
6888
6890
|
}, [
|
|
@@ -6920,7 +6922,7 @@ const rn = { render: bu }, ku = ["data-key", "data-row", "data-col", "draggable"
|
|
|
6920
6922
|
};
|
|
6921
6923
|
function Vu(o, e) {
|
|
6922
6924
|
return v(), g("svg", Lu, [...e[0] || (e[0] = [
|
|
6923
|
-
|
|
6925
|
+
i("path", {
|
|
6924
6926
|
"fill-rule": "evenodd",
|
|
6925
6927
|
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",
|
|
6926
6928
|
"clip-rule": "evenodd"
|
|
@@ -6934,7 +6936,7 @@ const zu = { render: Vu }, Ru = {
|
|
|
6934
6936
|
};
|
|
6935
6937
|
function Nu(o, e) {
|
|
6936
6938
|
return v(), g("svg", Ru, [...e[0] || (e[0] = [
|
|
6937
|
-
|
|
6939
|
+
i("path", {
|
|
6938
6940
|
"fill-rule": "evenodd",
|
|
6939
6941
|
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",
|
|
6940
6942
|
"clip-rule": "evenodd"
|
|
@@ -6948,11 +6950,11 @@ const Uu = { render: Nu }, Ct = /* @__PURE__ */ X({
|
|
|
6948
6950
|
},
|
|
6949
6951
|
setup(o) {
|
|
6950
6952
|
return (e, t) => (v(), g("div", null, [
|
|
6951
|
-
o.direction === "asc" ? (v(), L(
|
|
6953
|
+
o.direction === "asc" ? (v(), L(s(zu), {
|
|
6952
6954
|
key: 0,
|
|
6953
6955
|
class: "vuefinder__explorer__sort-icon"
|
|
6954
6956
|
})) : T("", !0),
|
|
6955
|
-
o.direction === "desc" ? (v(), L(
|
|
6957
|
+
o.direction === "desc" ? (v(), L(s(Uu), {
|
|
6956
6958
|
key: 1,
|
|
6957
6959
|
class: "vuefinder__explorer__sort-icon"
|
|
6958
6960
|
})) : T("", !0)
|
|
@@ -6963,37 +6965,37 @@ const Uu = { render: Nu }, Ct = /* @__PURE__ */ X({
|
|
|
6963
6965
|
setup(o) {
|
|
6964
6966
|
const e = J(), t = e.fs, { t: n } = e.i18n, a = G(t.sort);
|
|
6965
6967
|
return (l, d) => (v(), g("div", ju, [
|
|
6966
|
-
|
|
6968
|
+
i("div", {
|
|
6967
6969
|
class: "vuefinder__explorer__sort-button vuefinder__explorer__sort-button--name vf-sort-button",
|
|
6968
|
-
onClick: d[0] || (d[0] = (r) =>
|
|
6970
|
+
onClick: d[0] || (d[0] = (r) => s(t).toggleSort("basename"))
|
|
6969
6971
|
}, [
|
|
6970
|
-
|
|
6972
|
+
de(y(s(n)("Name")) + " ", 1),
|
|
6971
6973
|
pe(O(Ct, {
|
|
6972
|
-
direction:
|
|
6974
|
+
direction: s(a).order
|
|
6973
6975
|
}, null, 8, ["direction"]), [
|
|
6974
|
-
[Le,
|
|
6976
|
+
[Le, s(a).active && s(a).column === "basename"]
|
|
6975
6977
|
])
|
|
6976
6978
|
]),
|
|
6977
|
-
|
|
6979
|
+
i("div", {
|
|
6978
6980
|
class: "vuefinder__explorer__sort-button vuefinder__explorer__sort-button--size vf-sort-button",
|
|
6979
|
-
onClick: d[1] || (d[1] = (r) =>
|
|
6981
|
+
onClick: d[1] || (d[1] = (r) => s(t).toggleSort("file_size"))
|
|
6980
6982
|
}, [
|
|
6981
|
-
|
|
6983
|
+
de(y(s(n)("Size")) + " ", 1),
|
|
6982
6984
|
pe(O(Ct, {
|
|
6983
|
-
direction:
|
|
6985
|
+
direction: s(a).order
|
|
6984
6986
|
}, null, 8, ["direction"]), [
|
|
6985
|
-
[Le,
|
|
6987
|
+
[Le, s(a).active && s(a).column === "file_size"]
|
|
6986
6988
|
])
|
|
6987
6989
|
]),
|
|
6988
|
-
|
|
6990
|
+
i("div", {
|
|
6989
6991
|
class: "vuefinder__explorer__sort-button vuefinder__explorer__sort-button--date vf-sort-button",
|
|
6990
|
-
onClick: d[2] || (d[2] = (r) =>
|
|
6992
|
+
onClick: d[2] || (d[2] = (r) => s(t).toggleSort("last_modified"))
|
|
6991
6993
|
}, [
|
|
6992
|
-
|
|
6994
|
+
de(y(s(n)("Date")) + " ", 1),
|
|
6993
6995
|
pe(O(Ct, {
|
|
6994
|
-
direction:
|
|
6996
|
+
direction: s(a).order
|
|
6995
6997
|
}, null, 8, ["direction"]), [
|
|
6996
|
-
[Le,
|
|
6998
|
+
[Le, s(a).active && s(a).column === "last_modified"]
|
|
6997
6999
|
])
|
|
6998
7000
|
])
|
|
6999
7001
|
]));
|
|
@@ -7031,7 +7033,7 @@ function Ku(o, e) {
|
|
|
7031
7033
|
const ne = R.target;
|
|
7032
7034
|
m.value = ne.scrollTop;
|
|
7033
7035
|
};
|
|
7034
|
-
|
|
7036
|
+
le(
|
|
7035
7037
|
() => c.value.length,
|
|
7036
7038
|
() => {
|
|
7037
7039
|
C();
|
|
@@ -7423,13 +7425,13 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
|
|
|
7423
7425
|
const ce = u.value?.has(q.value) ?? !1;
|
|
7424
7426
|
return ne.value && (ce ? u.value?.has(K) ?? !1 : K === q.value);
|
|
7425
7427
|
};
|
|
7426
|
-
|
|
7428
|
+
le(
|
|
7427
7429
|
() => _.get("view"),
|
|
7428
7430
|
(K) => {
|
|
7429
7431
|
K === "list" ? h.value = 1 : B();
|
|
7430
7432
|
},
|
|
7431
7433
|
{ immediate: !0 }
|
|
7432
|
-
),
|
|
7434
|
+
), le(h, (K) => {
|
|
7433
7435
|
_.get("view") === "list" && K !== 1 && (h.value = 1);
|
|
7434
7436
|
});
|
|
7435
7437
|
const z = (K) => w.value?.[K];
|
|
@@ -7461,7 +7463,7 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
|
|
|
7461
7463
|
clearInterval(ce), l.value || K();
|
|
7462
7464
|
}, 500);
|
|
7463
7465
|
}
|
|
7464
|
-
|
|
7466
|
+
le(() => [t.selectionFilterType, t.selectionFilterMimeIncludes], ee, {
|
|
7465
7467
|
deep: !0
|
|
7466
7468
|
});
|
|
7467
7469
|
});
|
|
@@ -7496,26 +7498,26 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
|
|
|
7496
7498
|
}
|
|
7497
7499
|
};
|
|
7498
7500
|
return (K, ce) => (v(), g("div", Ju, [
|
|
7499
|
-
|
|
7500
|
-
|
|
7501
|
+
s(m).view === "list" ? (v(), L(Hu, { key: 0 })) : T("", !0),
|
|
7502
|
+
i("div", {
|
|
7501
7503
|
ref_key: "scrollContainer",
|
|
7502
7504
|
ref: d,
|
|
7503
|
-
class: Z(["vuefinder__explorer__selector-area", "scroller-" +
|
|
7505
|
+
class: Z(["vuefinder__explorer__selector-area", "scroller-" + s(R)])
|
|
7504
7506
|
}, [
|
|
7505
|
-
|
|
7506
|
-
|
|
7507
|
+
s(_).get("loadingIndicator") === "linear" && s($) ? (v(), g("div", Zu)) : T("", !0),
|
|
7508
|
+
i("div", {
|
|
7507
7509
|
ref_key: "scrollContent",
|
|
7508
7510
|
ref: r,
|
|
7509
7511
|
class: "scrollContent vuefinder__explorer__scroll-content",
|
|
7510
|
-
style: Ve({ height: `${
|
|
7512
|
+
style: Ve({ height: `${s(f)}px`, position: "relative", width: "100%" }),
|
|
7511
7513
|
onContextmenu: ce[0] || (ce[0] = ie(
|
|
7512
7514
|
//@ts-ignore
|
|
7513
|
-
(...ue) =>
|
|
7515
|
+
(...ue) => s(I) && s(I)(...ue),
|
|
7514
7516
|
["self", "prevent"]
|
|
7515
7517
|
)),
|
|
7516
7518
|
onClick: ce[1] || (ce[1] = ie(
|
|
7517
7519
|
//@ts-ignore
|
|
7518
|
-
(...ue) =>
|
|
7520
|
+
(...ue) => s(E) && s(E)(...ue),
|
|
7519
7521
|
["self"]
|
|
7520
7522
|
)),
|
|
7521
7523
|
onTouchstartCapture: ie(Ke, ["self"]),
|
|
@@ -7523,30 +7525,30 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
|
|
|
7523
7525
|
onTouchmoveCapture: ie(qe, ["self"]),
|
|
7524
7526
|
onTouchcancelCapture: ie(je, ["self"])
|
|
7525
7527
|
}, [
|
|
7526
|
-
|
|
7528
|
+
i("div", {
|
|
7527
7529
|
ref_key: "dragImage",
|
|
7528
7530
|
ref: a,
|
|
7529
7531
|
class: "vuefinder__explorer__drag-item"
|
|
7530
7532
|
}, [
|
|
7531
7533
|
O(gu, {
|
|
7532
|
-
count: q.value &&
|
|
7534
|
+
count: q.value && s(u).has(q.value) ? s(u).size : 1
|
|
7533
7535
|
}, null, 8, ["count"])
|
|
7534
7536
|
], 512),
|
|
7535
|
-
|
|
7537
|
+
s(m).view === "grid" ? (v(!0), g(ve, { key: 0 }, he(s(k), (ue) => (v(), L(ln, {
|
|
7536
7538
|
key: ue,
|
|
7537
7539
|
"row-index": ue,
|
|
7538
7540
|
"row-height": S.value,
|
|
7539
7541
|
view: "grid",
|
|
7540
|
-
"items-per-row":
|
|
7541
|
-
items:
|
|
7542
|
-
"show-thumbnails":
|
|
7542
|
+
"items-per-row": s(h),
|
|
7543
|
+
items: s(F)(s(w), ue),
|
|
7544
|
+
"show-thumbnails": s(m).showThumbnails,
|
|
7543
7545
|
"is-dragging-item": j,
|
|
7544
7546
|
"is-selected": D,
|
|
7545
|
-
"drag-n-drop-events": (be) =>
|
|
7546
|
-
"explorer-id":
|
|
7547
|
-
onClick:
|
|
7548
|
-
onDblclick:
|
|
7549
|
-
onContextmenu:
|
|
7547
|
+
"drag-n-drop-events": (be) => s(n).events(be),
|
|
7548
|
+
"explorer-id": s(R),
|
|
7549
|
+
onClick: s(x),
|
|
7550
|
+
onDblclick: s(b),
|
|
7551
|
+
onContextmenu: s(P),
|
|
7550
7552
|
onDragstart: W,
|
|
7551
7553
|
onDragend: se
|
|
7552
7554
|
}, {
|
|
@@ -7554,20 +7556,20 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
|
|
|
7554
7556
|
$e(K.$slots, "icon", Me({ ref_for: !0 }, be))
|
|
7555
7557
|
]),
|
|
7556
7558
|
_: 3
|
|
7557
|
-
}, 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(
|
|
7559
|
+
}, 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(ln, {
|
|
7558
7560
|
key: ue,
|
|
7559
7561
|
"row-index": ue,
|
|
7560
7562
|
"row-height": S.value,
|
|
7561
7563
|
view: "list",
|
|
7562
7564
|
items: z(ue) ? [z(ue)] : [],
|
|
7563
|
-
compact:
|
|
7565
|
+
compact: s(m).compactListView,
|
|
7564
7566
|
"is-dragging-item": j,
|
|
7565
7567
|
"is-selected": D,
|
|
7566
|
-
"drag-n-drop-events": (be) =>
|
|
7567
|
-
"explorer-id":
|
|
7568
|
-
onClick:
|
|
7569
|
-
onDblclick:
|
|
7570
|
-
onContextmenu:
|
|
7568
|
+
"drag-n-drop-events": (be) => s(n).events(be),
|
|
7569
|
+
"explorer-id": s(R),
|
|
7570
|
+
onClick: s(x),
|
|
7571
|
+
onDblclick: s(b),
|
|
7572
|
+
onContextmenu: s(P),
|
|
7571
7573
|
onDragstart: W,
|
|
7572
7574
|
onDragend: se
|
|
7573
7575
|
}, {
|
|
@@ -7721,15 +7723,15 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
|
|
|
7721
7723
|
target: "_blank",
|
|
7722
7724
|
href: r(u),
|
|
7723
7725
|
download: r(u),
|
|
7724
|
-
onClick: w[0] || (w[0] = ($) =>
|
|
7726
|
+
onClick: w[0] || (w[0] = ($) => s(e).emitter.emit("vf-contextmenu-hide"))
|
|
7725
7727
|
}, [
|
|
7726
|
-
|
|
7728
|
+
i("span", null, y(u.title(s(e).i18n)), 1)
|
|
7727
7729
|
], 8, tv)) : (v(), g("div", {
|
|
7728
7730
|
key: 1,
|
|
7729
7731
|
class: "vuefinder__context-menu__action",
|
|
7730
7732
|
onClick: ($) => c(u)
|
|
7731
7733
|
}, [
|
|
7732
|
-
|
|
7734
|
+
i("span", null, y(u.title(s(e).i18n)), 1)
|
|
7733
7735
|
], 8, nv))
|
|
7734
7736
|
]))), 128))
|
|
7735
7737
|
], 6)), [
|
|
@@ -7747,17 +7749,17 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
|
|
|
7747
7749
|
e.adapter.open(h + "://");
|
|
7748
7750
|
}, 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 || []);
|
|
7749
7751
|
return (p, h) => (v(), g("div", sv, [
|
|
7750
|
-
|
|
7751
|
-
|
|
7752
|
+
i("div", iv, [
|
|
7753
|
+
i("div", {
|
|
7752
7754
|
class: "vuefinder__status-bar__storage-container",
|
|
7753
|
-
title:
|
|
7755
|
+
title: s(t)("Storage")
|
|
7754
7756
|
}, [
|
|
7755
|
-
|
|
7756
|
-
O(
|
|
7757
|
+
i("div", rv, [
|
|
7758
|
+
O(s(Vt))
|
|
7757
7759
|
]),
|
|
7758
|
-
|
|
7760
|
+
i("select", {
|
|
7759
7761
|
name: "vuefinder-media-selector",
|
|
7760
|
-
value:
|
|
7762
|
+
value: s(l).storage,
|
|
7761
7763
|
class: "vuefinder__status-bar__storage-select",
|
|
7762
7764
|
tabindex: "-1",
|
|
7763
7765
|
onChange: m
|
|
@@ -7767,21 +7769,21 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
|
|
|
7767
7769
|
value: f
|
|
7768
7770
|
}, y(f), 9, dv))), 128))
|
|
7769
7771
|
], 40, lv),
|
|
7770
|
-
h[0] || (h[0] =
|
|
7772
|
+
h[0] || (h[0] = i("span", {
|
|
7771
7773
|
class: "vuefinder__status-bar__storage-caret",
|
|
7772
7774
|
"aria-hidden": "true"
|
|
7773
7775
|
}, null, -1))
|
|
7774
7776
|
], 8, av),
|
|
7775
|
-
|
|
7776
|
-
D.value === 0 ? (v(), g("span", uv, y($.value.length) + " " + y(
|
|
7777
|
-
|
|
7778
|
-
w.value ? (v(), g("span", fv, y(
|
|
7777
|
+
i("div", cv, [
|
|
7778
|
+
D.value === 0 ? (v(), g("span", uv, y($.value.length) + " " + y(s(t)("items")), 1)) : (v(), g("span", vv, [
|
|
7779
|
+
de(y(D.value) + " " + y(s(t)("selected")) + " ", 1),
|
|
7780
|
+
w.value ? (v(), g("span", fv, y(s(e).filesize(w.value)), 1)) : T("", !0)
|
|
7779
7781
|
]))
|
|
7780
7782
|
])
|
|
7781
7783
|
]),
|
|
7782
|
-
|
|
7784
|
+
i("div", _v, [
|
|
7783
7785
|
$e(p.$slots, "actions", {
|
|
7784
|
-
path:
|
|
7786
|
+
path: s(_).path,
|
|
7785
7787
|
count: D.value || 0,
|
|
7786
7788
|
selected: S.value
|
|
7787
7789
|
})
|
|
@@ -7796,11 +7798,11 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
|
|
|
7796
7798
|
};
|
|
7797
7799
|
function mv(o, e) {
|
|
7798
7800
|
return v(), g("svg", hv, [...e[0] || (e[0] = [
|
|
7799
|
-
|
|
7801
|
+
i("path", {
|
|
7800
7802
|
fill: "none",
|
|
7801
7803
|
d: "M0 0h24v24H0z"
|
|
7802
7804
|
}, null, -1),
|
|
7803
|
-
|
|
7805
|
+
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)
|
|
7804
7806
|
])]);
|
|
7805
7807
|
}
|
|
7806
7808
|
const gv = { render: mv };
|
|
@@ -7823,7 +7825,7 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
7823
7825
|
emits: ["update:modelValue"],
|
|
7824
7826
|
setup(o) {
|
|
7825
7827
|
const e = o, t = J(), n = fn(o, "modelValue"), a = M(!1);
|
|
7826
|
-
|
|
7828
|
+
le(
|
|
7827
7829
|
() => n.value,
|
|
7828
7830
|
() => l()
|
|
7829
7831
|
);
|
|
@@ -7839,15 +7841,15 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
7839
7841
|
}
|
|
7840
7842
|
};
|
|
7841
7843
|
return (d, r) => (v(), g("div", wv, [
|
|
7842
|
-
a.value ? (v(), L(
|
|
7844
|
+
a.value ? (v(), L(s(xt), {
|
|
7843
7845
|
key: 0,
|
|
7844
7846
|
class: "vuefinder__folder-loader-indicator--loading"
|
|
7845
7847
|
})) : (v(), g("div", yv, [
|
|
7846
|
-
n.value ? (v(), L(
|
|
7848
|
+
n.value ? (v(), L(s($t), {
|
|
7847
7849
|
key: 0,
|
|
7848
7850
|
class: "vuefinder__folder-loader-indicator--minus"
|
|
7849
7851
|
})) : T("", !0),
|
|
7850
|
-
n.value ? T("", !0) : (v(), L(
|
|
7852
|
+
n.value ? T("", !0) : (v(), L(s(kt), {
|
|
7851
7853
|
key: 1,
|
|
7852
7854
|
class: "vuefinder__folder-loader-indicator--plus"
|
|
7853
7855
|
}))
|
|
@@ -7886,14 +7888,14 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
7886
7888
|
class: "vuefinder__treesubfolderlist__container"
|
|
7887
7889
|
}, [
|
|
7888
7890
|
m.value.length ? T("", !0) : (v(), g("li", bv, [
|
|
7889
|
-
|
|
7891
|
+
i("div", kv, y(s(l)("No folders")), 1)
|
|
7890
7892
|
])),
|
|
7891
7893
|
(v(!0), g(ve, null, he(m.value, (h) => (v(), g("li", {
|
|
7892
7894
|
key: h.path,
|
|
7893
7895
|
class: "vuefinder__treesubfolderlist__item"
|
|
7894
7896
|
}, [
|
|
7895
|
-
|
|
7896
|
-
|
|
7897
|
+
i("div", $v, [
|
|
7898
|
+
i("div", {
|
|
7897
7899
|
class: "vuefinder__treesubfolderlist__item-toggle",
|
|
7898
7900
|
onClick: (f) => a.value[h.path] = !a.value[h.path]
|
|
7899
7901
|
}, [
|
|
@@ -7904,11 +7906,11 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
7904
7906
|
path: h.path
|
|
7905
7907
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "storage", "path"])
|
|
7906
7908
|
], 8, xv),
|
|
7907
|
-
|
|
7909
|
+
i("div", Me({
|
|
7908
7910
|
class: "vuefinder__treesubfolderlist__item-link",
|
|
7909
7911
|
title: h.path
|
|
7910
7912
|
}, Re(
|
|
7911
|
-
|
|
7913
|
+
s(n).events({
|
|
7912
7914
|
...h,
|
|
7913
7915
|
dir: h.path,
|
|
7914
7916
|
extension: "",
|
|
@@ -7920,25 +7922,25 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
7920
7922
|
!0
|
|
7921
7923
|
), {
|
|
7922
7924
|
onDblclick: (f) => a.value[h.path] = !a.value[h.path],
|
|
7923
|
-
onClick: (f) =>
|
|
7925
|
+
onClick: (f) => s(e).adapter.open(h.path)
|
|
7924
7926
|
}), [
|
|
7925
|
-
|
|
7926
|
-
|
|
7927
|
+
i("div", Cv, [
|
|
7928
|
+
s(d)?.path === h.path ? (v(), L(s(zt), {
|
|
7927
7929
|
key: 0,
|
|
7928
7930
|
class: "vuefinder__item-icon__folder--open"
|
|
7929
|
-
})) : (v(), L(
|
|
7931
|
+
})) : (v(), L(s(Oe), {
|
|
7930
7932
|
key: 1,
|
|
7931
7933
|
class: "vuefinder__item-icon__folder"
|
|
7932
7934
|
}))
|
|
7933
7935
|
]),
|
|
7934
|
-
|
|
7936
|
+
i("div", {
|
|
7935
7937
|
class: Z(["vuefinder__treesubfolderlist__item-text", {
|
|
7936
|
-
"vuefinder__treesubfolderlist__item-text--active":
|
|
7938
|
+
"vuefinder__treesubfolderlist__item-text--active": s(d).path === h.path
|
|
7937
7939
|
}])
|
|
7938
7940
|
}, y(h.basename), 3)
|
|
7939
7941
|
], 16, Sv)
|
|
7940
7942
|
]),
|
|
7941
|
-
|
|
7943
|
+
i("div", Fv, [
|
|
7942
7944
|
pe(O(p, {
|
|
7943
7945
|
storage: r.storage,
|
|
7944
7946
|
path: h.path
|
|
@@ -7948,10 +7950,10 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
7948
7950
|
])
|
|
7949
7951
|
]))), 128)),
|
|
7950
7952
|
u.value ? (v(), g("li", Dv, [
|
|
7951
|
-
|
|
7953
|
+
i("div", {
|
|
7952
7954
|
class: "vuefinder__treesubfolderlist__load-more",
|
|
7953
7955
|
onClick: $
|
|
7954
|
-
}, y(
|
|
7956
|
+
}, y(s(l)("load more")), 1)
|
|
7955
7957
|
])) : T("", !0)
|
|
7956
7958
|
], 512);
|
|
7957
7959
|
};
|
|
@@ -7978,21 +7980,21 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
7978
7980
|
m === d.value?.storage ? n.value = !n.value : e.adapter.open(m + "://");
|
|
7979
7981
|
}
|
|
7980
7982
|
return (m, w) => (v(), g(ve, null, [
|
|
7981
|
-
|
|
7983
|
+
i("div", {
|
|
7982
7984
|
class: "vuefinder__treestorageitem__header",
|
|
7983
7985
|
onClick: w[2] || (w[2] = (u) => _(o.storage))
|
|
7984
7986
|
}, [
|
|
7985
|
-
|
|
7987
|
+
i("div", Me({
|
|
7986
7988
|
class: ["vuefinder__treestorageitem__info", r.value ? "vuefinder__treestorageitem__info--active" : ""]
|
|
7987
|
-
}, Re(
|
|
7988
|
-
|
|
7989
|
+
}, Re(s(l).events(c), !0)), [
|
|
7990
|
+
i("div", {
|
|
7989
7991
|
class: Z(["vuefinder__treestorageitem__icon", r.value ? "vuefinder__treestorageitem__icon--active" : ""])
|
|
7990
7992
|
}, [
|
|
7991
|
-
O(
|
|
7993
|
+
O(s(Vt))
|
|
7992
7994
|
], 2),
|
|
7993
|
-
|
|
7995
|
+
i("div", null, y(o.storage), 1)
|
|
7994
7996
|
], 16),
|
|
7995
|
-
|
|
7997
|
+
i("div", {
|
|
7996
7998
|
class: "vuefinder__treestorageitem__loader",
|
|
7997
7999
|
onClick: w[1] || (w[1] = ie((u) => n.value = !n.value, ["stop"]))
|
|
7998
8000
|
}, [
|
|
@@ -8023,12 +8025,12 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
8023
8025
|
setup(o) {
|
|
8024
8026
|
const e = fn(o, "modelValue");
|
|
8025
8027
|
return (t, n) => (v(), g("div", Mv, [
|
|
8026
|
-
|
|
8027
|
-
e.value ? (v(), L(
|
|
8028
|
+
i("div", Tv, [
|
|
8029
|
+
e.value ? (v(), L(s($t), {
|
|
8028
8030
|
key: 0,
|
|
8029
8031
|
class: "vuefinder__folder-indicator--minus"
|
|
8030
8032
|
})) : T("", !0),
|
|
8031
|
-
e.value ? T("", !0) : (v(), L(
|
|
8033
|
+
e.value ? T("", !0) : (v(), L(s(kt), {
|
|
8032
8034
|
key: 1,
|
|
8033
8035
|
class: "vuefinder__folder-indicator--plus"
|
|
8034
8036
|
}))
|
|
@@ -8045,7 +8047,7 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
8045
8047
|
__name: "TreeView",
|
|
8046
8048
|
setup(o) {
|
|
8047
8049
|
const e = J(), { enabled: t } = Te(), { t: n } = e.i18n, { getStore: a, setStore: l } = e.storage, d = e.fs, r = e.config, c = G(r.state), _ = G(d.sortedFiles), m = G(d.storages), w = N(() => m.value || []), u = G(d.path), $ = vt(e, ["vuefinder__drag-over"]), D = M(190), S = M(a("pinned-folders-opened", !0));
|
|
8048
|
-
|
|
8050
|
+
le(S, (k) => l("pinned-folders-opened", k));
|
|
8049
8051
|
const p = (k) => {
|
|
8050
8052
|
const C = r.get("pinnedFolders");
|
|
8051
8053
|
r.set("pinnedFolders", C.filter((F) => F.path !== k.path));
|
|
@@ -8071,7 +8073,7 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
8071
8073
|
theme: "vf-scrollbars-theme"
|
|
8072
8074
|
}
|
|
8073
8075
|
});
|
|
8074
|
-
}),
|
|
8076
|
+
}), le(_, (k) => {
|
|
8075
8077
|
const C = k.filter((F) => F.type === "dir");
|
|
8076
8078
|
Vn(e.treeViewData, {
|
|
8077
8079
|
path: u.value.path || "",
|
|
@@ -8083,29 +8085,29 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
8083
8085
|
}))
|
|
8084
8086
|
});
|
|
8085
8087
|
}), (k, C) => (v(), g(ve, null, [
|
|
8086
|
-
|
|
8087
|
-
class: Z(["vuefinder__treeview__overlay",
|
|
8088
|
-
onClick: C[0] || (C[0] = (F) =>
|
|
8088
|
+
i("div", {
|
|
8089
|
+
class: Z(["vuefinder__treeview__overlay", s(c).showTreeView ? "vuefinder__treeview__backdrop" : "hidden"]),
|
|
8090
|
+
onClick: C[0] || (C[0] = (F) => s(r).toggle("showTreeView"))
|
|
8089
8091
|
}, null, 2),
|
|
8090
|
-
|
|
8092
|
+
i("div", {
|
|
8091
8093
|
style: Ve(
|
|
8092
|
-
|
|
8094
|
+
s(c).showTreeView ? "min-width:100px;max-width:75%; width: " + D.value + "px" : "width: 0"
|
|
8093
8095
|
),
|
|
8094
8096
|
class: "vuefinder__treeview__container"
|
|
8095
8097
|
}, [
|
|
8096
|
-
|
|
8098
|
+
i("div", {
|
|
8097
8099
|
ref_key: "treeViewScrollElement",
|
|
8098
8100
|
ref: f,
|
|
8099
8101
|
class: "vuefinder__treeview__scroll"
|
|
8100
8102
|
}, [
|
|
8101
|
-
|
|
8102
|
-
|
|
8103
|
+
s(t)("pinned") ? (v(), g("div", Av, [
|
|
8104
|
+
i("div", {
|
|
8103
8105
|
class: "vuefinder__treeview__pinned-toggle",
|
|
8104
8106
|
onClick: C[2] || (C[2] = (F) => S.value = !S.value)
|
|
8105
8107
|
}, [
|
|
8106
|
-
|
|
8107
|
-
O(
|
|
8108
|
-
|
|
8108
|
+
i("div", Ov, [
|
|
8109
|
+
O(s(Lt), { class: "vuefinder__treeview__pin-icon" }),
|
|
8110
|
+
i("div", Bv, y(s(n)("Pinned Folders")), 1)
|
|
8109
8111
|
]),
|
|
8110
8112
|
O(Iv, {
|
|
8111
8113
|
modelValue: S.value,
|
|
@@ -8113,37 +8115,37 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
8113
8115
|
}, null, 8, ["modelValue"])
|
|
8114
8116
|
]),
|
|
8115
8117
|
S.value ? (v(), g("ul", Lv, [
|
|
8116
|
-
(v(!0), g(ve, null, he(
|
|
8118
|
+
(v(!0), g(ve, null, he(s(c).pinnedFolders, (F) => (v(), g("li", {
|
|
8117
8119
|
key: F.path,
|
|
8118
8120
|
class: "vuefinder__treeview__pinned-item"
|
|
8119
8121
|
}, [
|
|
8120
|
-
|
|
8121
|
-
onClick: (A) =>
|
|
8122
|
+
i("div", Me({ class: "vuefinder__treeview__pinned-folder" }, Re(s($).events(F), !0), {
|
|
8123
|
+
onClick: (A) => s(e).adapter.open(F.path)
|
|
8122
8124
|
}), [
|
|
8123
|
-
|
|
8125
|
+
s(u).path !== F.path ? (v(), L(s(Oe), {
|
|
8124
8126
|
key: 0,
|
|
8125
8127
|
class: "vuefinder__treeview__folder-icon vuefinder__item-icon__folder"
|
|
8126
8128
|
})) : T("", !0),
|
|
8127
|
-
|
|
8129
|
+
s(u).path === F.path ? (v(), L(s(zt), {
|
|
8128
8130
|
key: 1,
|
|
8129
8131
|
class: "vuefinder__item-icon__folder--open vuefinder__treeview__open-folder-icon"
|
|
8130
8132
|
})) : T("", !0),
|
|
8131
|
-
|
|
8133
|
+
i("div", {
|
|
8132
8134
|
title: F.path,
|
|
8133
8135
|
class: Z(["vuefinder__treeview__folder-name", {
|
|
8134
|
-
"vuefinder__treeview__folder-name--active":
|
|
8136
|
+
"vuefinder__treeview__folder-name--active": s(u).path === F.path
|
|
8135
8137
|
}])
|
|
8136
8138
|
}, y(F.basename), 11, zv)
|
|
8137
8139
|
], 16, Vv),
|
|
8138
|
-
|
|
8140
|
+
i("div", {
|
|
8139
8141
|
class: "vuefinder__treeview__remove-folder",
|
|
8140
8142
|
onClick: (A) => p(F)
|
|
8141
8143
|
}, [
|
|
8142
|
-
O(
|
|
8144
|
+
O(s(gv), { class: "vuefinder__treeview__remove-icon" })
|
|
8143
8145
|
], 8, Rv)
|
|
8144
8146
|
]))), 128)),
|
|
8145
|
-
|
|
8146
|
-
|
|
8147
|
+
s(c).pinnedFolders.length ? T("", !0) : (v(), g("li", Nv, [
|
|
8148
|
+
i("div", Uv, y(s(n)("No folders pinned")), 1)
|
|
8147
8149
|
]))
|
|
8148
8150
|
])) : T("", !0)
|
|
8149
8151
|
])) : T("", !0),
|
|
@@ -8154,7 +8156,7 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
8154
8156
|
O(Ev, { storage: F }, null, 8, ["storage"])
|
|
8155
8157
|
]))), 128))
|
|
8156
8158
|
], 512),
|
|
8157
|
-
|
|
8159
|
+
i("div", {
|
|
8158
8160
|
class: "vuefinder__treeview__resize-handle",
|
|
8159
8161
|
onMousedown: h
|
|
8160
8162
|
}, null, 32)
|
|
@@ -8426,7 +8428,7 @@ const Rn = [
|
|
|
8426
8428
|
],
|
|
8427
8429
|
setup(o, { emit: e }) {
|
|
8428
8430
|
const t = e, n = o, a = J(), l = Ge("root"), d = a.config;
|
|
8429
|
-
|
|
8431
|
+
le(
|
|
8430
8432
|
() => n.features,
|
|
8431
8433
|
(p) => {
|
|
8432
8434
|
const h = hn(p);
|
|
@@ -8454,14 +8456,14 @@ const Rn = [
|
|
|
8454
8456
|
t("file-dclick", p);
|
|
8455
8457
|
}), a.emitter.on("vf-folder-dclick", (p) => {
|
|
8456
8458
|
t("folder-dclick", p);
|
|
8457
|
-
}),
|
|
8459
|
+
}), le(
|
|
8458
8460
|
() => n.config?.theme,
|
|
8459
8461
|
(p) => {
|
|
8460
|
-
p && d.set("theme",
|
|
8462
|
+
p && d.set("theme", s(p));
|
|
8461
8463
|
},
|
|
8462
8464
|
{ immediate: !0 }
|
|
8463
8465
|
), fe(() => {
|
|
8464
|
-
a.root = l.value,
|
|
8466
|
+
a.root = l.value, le(
|
|
8465
8467
|
() => d.get("path"),
|
|
8466
8468
|
(h) => {
|
|
8467
8469
|
a.adapter.open(h);
|
|
@@ -8487,35 +8489,35 @@ const Rn = [
|
|
|
8487
8489
|
ref_key: "root",
|
|
8488
8490
|
ref: l,
|
|
8489
8491
|
tabindex: "0",
|
|
8490
|
-
class: Z(["vuefinder vuefinder__main vuefinder__themer", { "vuefinder--dragging-external":
|
|
8491
|
-
"data-theme":
|
|
8492
|
+
class: Z(["vuefinder vuefinder__main vuefinder__themer", { "vuefinder--dragging-external": s(_) }]),
|
|
8493
|
+
"data-theme": s(a).theme.current,
|
|
8492
8494
|
onDragenter: h[2] || (h[2] = //@ts-ignore
|
|
8493
|
-
(...f) =>
|
|
8495
|
+
(...f) => s(m) && s(m)(...f)),
|
|
8494
8496
|
onDragover: h[3] || (h[3] = //@ts-ignore
|
|
8495
|
-
(...f) =>
|
|
8497
|
+
(...f) => s(w) && s(w)(...f)),
|
|
8496
8498
|
onDragleave: h[4] || (h[4] = //@ts-ignore
|
|
8497
|
-
(...f) =>
|
|
8499
|
+
(...f) => s(u) && s(u)(...f)),
|
|
8498
8500
|
onDrop: S
|
|
8499
8501
|
}, [
|
|
8500
|
-
|
|
8501
|
-
class: Z(
|
|
8502
|
+
i("div", {
|
|
8503
|
+
class: Z(s(a).theme.current),
|
|
8502
8504
|
style: { height: "100%", width: "100%" }
|
|
8503
8505
|
}, [
|
|
8504
|
-
|
|
8506
|
+
i("div", {
|
|
8505
8507
|
class: Z([
|
|
8506
|
-
|
|
8508
|
+
s(c)?.fullScreen ? "vuefinder__main__fixed" : "vuefinder__main__relative",
|
|
8507
8509
|
"vuefinder__main__container"
|
|
8508
8510
|
]),
|
|
8509
|
-
onMousedown: h[0] || (h[0] = (f) =>
|
|
8510
|
-
onTouchstart: h[1] || (h[1] = (f) =>
|
|
8511
|
+
onMousedown: h[0] || (h[0] = (f) => s(a).emitter.emit("vf-contextmenu-hide")),
|
|
8512
|
+
onTouchstart: h[1] || (h[1] = (f) => s(a).emitter.emit("vf-contextmenu-hide"))
|
|
8511
8513
|
}, [
|
|
8512
|
-
|
|
8513
|
-
|
|
8514
|
+
s(_) ? (v(), g("div", qv, [
|
|
8515
|
+
i("div", Gv, y(s(a).i18n.t("Drag and drop the files/folders to here.")), 1)
|
|
8514
8516
|
])) : T("", !0),
|
|
8515
|
-
|
|
8516
|
-
|
|
8517
|
+
s(c).showMenuBar ? (v(), L($d, { key: 1 })) : T("", !0),
|
|
8518
|
+
s(c).showToolbar ? (v(), L(Sc, { key: 2 })) : T("", !0),
|
|
8517
8519
|
O(fu),
|
|
8518
|
-
|
|
8520
|
+
i("div", Wv, [
|
|
8519
8521
|
O(jv),
|
|
8520
8522
|
O(ev, {
|
|
8521
8523
|
"on-file-dclick": n.onFileDclick,
|
|
@@ -8537,13 +8539,13 @@ const Rn = [
|
|
|
8537
8539
|
(v(), L(gt, { to: "body" }, [
|
|
8538
8540
|
O(qn, { name: "fade" }, {
|
|
8539
8541
|
default: oe(() => [
|
|
8540
|
-
|
|
8542
|
+
s(a).modal.visible ? (v(), L(cn(s(a).modal.type), { key: 0 })) : T("", !0)
|
|
8541
8543
|
]),
|
|
8542
8544
|
_: 1
|
|
8543
8545
|
})
|
|
8544
8546
|
])),
|
|
8545
|
-
O(ov, { items:
|
|
8546
|
-
O(
|
|
8547
|
+
O(ov, { items: s(Rn) }, null, 8, ["items"]),
|
|
8548
|
+
O(s(Yn), { position: "bottom-center" })
|
|
8547
8549
|
], 2)
|
|
8548
8550
|
], 42, Kv));
|
|
8549
8551
|
}
|
|
@@ -8575,7 +8577,18 @@ const Rn = [
|
|
|
8575
8577
|
if (!t)
|
|
8576
8578
|
throw new Error('VueFinderProvider requires an "id" prop.');
|
|
8577
8579
|
const n = yo(e, ft("VueFinderOptions") || {});
|
|
8578
|
-
return
|
|
8580
|
+
return le(
|
|
8581
|
+
() => e.config,
|
|
8582
|
+
(a) => {
|
|
8583
|
+
if (a) {
|
|
8584
|
+
const l = {};
|
|
8585
|
+
for (const d in a)
|
|
8586
|
+
l[d] = s(a[d]);
|
|
8587
|
+
n.config.init(l);
|
|
8588
|
+
}
|
|
8589
|
+
},
|
|
8590
|
+
{ deep: !0, immediate: !0 }
|
|
8591
|
+
), oo(t, n), Gn(Dt, t), vn(() => {
|
|
8579
8592
|
so(t);
|
|
8580
8593
|
}), (a, l) => (v(), L(Yv, Ne(Ue(e)), {
|
|
8581
8594
|
icon: oe((d) => [
|