@gameap/frontend 4.1.0-dev13 → 4.1.0-dev15
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/{AdminClientCertificatesView-Bg8X_Ouc.js → AdminClientCertificatesView-Cdat-6ub.js} +56 -66
- package/dist/{AdminDaemonTaskListView-DbJp0aqQ.js → AdminDaemonTaskListView-C0Jy1oat.js} +28 -29
- package/dist/{AdminDaemonTaskOutputView-DNCHQfxx.js → AdminDaemonTaskOutputView-BdstVc5K.js} +23 -25
- package/dist/{AdminGamesEdit-jco7cBfk.js → AdminGamesEdit-BOxBjeqI.js} +28 -31
- package/dist/{AdminGamesList-CMjsgEpx.js → AdminGamesList-C6nSWKdx.js} +136 -143
- package/dist/{AdminModEdit-BlRu_09M.js → AdminModEdit-diCpKnO2.js} +8 -8
- package/dist/{AdminNodeShowView-BHxJkjYJ.js → AdminNodeShowView-BIUiXpmk.js} +51 -61
- package/dist/{AdminNodesCreateView-DihmM46W.js → AdminNodesCreateView-Brzzh4HN.js} +13 -12
- package/dist/{AdminNodesEditView-CVACSido.js → AdminNodesEditView-Dwr2kt82.js} +16 -15
- package/dist/{AdminNodesView-CHtiU6dZ.js → AdminNodesView-DyiGZ1lZ.js} +25 -25
- package/dist/{AdminPluginsView-CRjF3BPs.js → AdminPluginsView-CUe4i8kM.js} +96 -105
- package/dist/{AdminServersCreate-5f8x6eZO.js → AdminServersCreate-iNMqnGK9.js} +26 -25
- package/dist/{AdminServersEdit-CA7711nJ.js → AdminServersEdit-DVI74EZc.js} +24 -23
- package/dist/{AdminServersList-De5ZMEGZ.js → AdminServersList-CkjyJfPK.js} +28 -28
- package/dist/{AdminUsersEditView-DeYo98vi.js → AdminUsersEditView-BTscuJ86.js} +2 -2
- package/dist/{AdminUsersView-C8fKEhpr.js → AdminUsersView-D-fJfjLH.js} +95 -105
- package/dist/{CreateModForm-CqkvVLfN.js → CreateModForm-CDqlkWYW.js} +3 -3
- package/dist/{CreateNodeModal-DOXVtVLQ.js → CreateNodeModal-CcpGS94Z.js} +1 -1
- package/dist/{DsIpSelector-C676Y19X.js → DsIpSelector-B_sWnbEP.js} +1 -1
- package/dist/{EmptyView-Bf6zmQQt.js → EmptyView-CopbPCy6.js} +1 -1
- package/dist/{FileManager-DSa9v4Ex.js → FileManager-JXa457rg.js} +691 -690
- package/dist/GCard-BmZwrZ1e.js +50 -0
- package/dist/GDataTable-DC0a2vJJ.js +60 -0
- package/dist/GDivider-tYaNzeM5.js +16 -0
- package/dist/GEmpty-Bkw6u0WR.js +35 -0
- package/dist/GModal-C4shXjCa.js +53 -0
- package/dist/GSwitch-1wlrRoUA.js +42 -0
- package/dist/GTable-DRH5VONX.js +38 -0
- package/dist/{GameModSelector-CQBT8ZLu.js → GameModSelector-BzBYr5Bl.js} +2 -2
- package/dist/{InputManyList-DUOtepb8.js → InputManyList-B65AFbLu.js} +21 -20
- package/dist/{InputTextList-lPhVIV04.js → InputTextList-DUpEA_--.js} +1 -1
- package/dist/PluginPendingView-CaK51oA9.js +35 -0
- package/dist/{ProfileView-Dw2T3X8m.js → ProfileView-BTXGnm4R.js} +74 -83
- package/dist/{RconConsole-CvxNBv0B.js → RconConsole-BSienrhk.js} +2 -2
- package/dist/{RconPlayers-odUKa0Ps.js → RconPlayers-jIqnphJ1.js} +111 -118
- package/dist/{ServerConsole-B9v2PcWb.js → ServerConsole-BdF95Ef6.js} +1 -1
- package/dist/{ServerControlButton-D_zJbxr6.js → ServerControlButton-7Un9i8tt.js} +6 -6
- package/dist/{ServerIdView-_vGQRk7y.js → ServerIdView-1X_6i-s6.js} +69 -67
- package/dist/{ServerSelector-6fCqL3e9.js → ServerSelector-Y4fSKiM2.js} +1 -1
- package/dist/{ServerSettings-C6-tkLTH.js → ServerSettings-DsIlowVa.js} +23 -21
- package/dist/{ServerStatus-CcqB0h1r.js → ServerStatus-BblAtet5.js} +1 -1
- package/dist/{ServerTasks-BcaZzvz7.js → ServerTasks-2jQBkpL9.js} +1 -1
- package/dist/{ServersView-S_G_kuGj.js → ServersView-CmDavKT_.js} +76 -76
- package/dist/{SettingsParameters-u3Awy4Vf.js → SettingsParameters-jT8ffL4p.js} +4 -3
- package/dist/{SmartPortSelector-BRSQFVqT.js → SmartPortSelector-BuREMnLx.js} +1 -1
- package/dist/{TokensView-C1RFJSB5.js → TokensView-Cw5j1Ivk.js} +60 -64
- package/dist/{UpdateNodeForm-BAhzQLt-.js → UpdateNodeForm-BnIqe7rC.js} +11 -10
- package/dist/{UserServerPrivileges-Q2wQMyHi.js → UserServerPrivileges-CvGlXrzS.js} +82 -92
- package/dist/{_createCompounder-CXjx5-CF.js → _createCompounder-vPBqoT5p.js} +3 -3
- package/dist/{camelCase-CSrB2MWj.js → camelCase-BSEkxKhA.js} +2 -2
- package/dist/{capitalize-BZSBvd6d.js → capitalize-BVfQSCbg.js} +5 -5
- package/dist/{clientCertificates-C0FlDwsb.js → clientCertificates-DHDjG6a2.js} +1 -1
- package/dist/frontend.css +1 -1
- package/dist/{gameList-kucszmx0.js → gameList-BuPam-HN.js} +1 -1
- package/dist/{index-9fvX7FD-.js → index-CiR3a1Cv.js} +180 -179
- package/dist/index.js +1 -1
- package/dist/{isEmpty-D0Z8Rneq.js → isEmpty-CLFmjU_j.js} +11 -11
- package/dist/{loader-qtG-Lf6M.js → loader-DStCgv0r.js} +1 -1
- package/dist/mockServiceWorker.js +1 -1
- package/dist/{snakeCase-nnM4dAra.js → snakeCase-lCSKsq6x.js} +1 -1
- package/dist/{validators-ChBGsKft.js → validators-r6Rit4O6.js} +2 -2
- package/package.json +2 -2
- package/dist/PluginPendingView-DaDaN30Q.js +0 -34
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { b as lt, a as M, n as
|
|
3
|
-
import { defineStore as
|
|
4
|
-
import { NInput as dt, NButton as ct,
|
|
1
|
+
import { ref as C, computed as s, reactive as mt, createElementBlock as k, openBlock as g, createElementVNode as c, unref as n, createVNode as w, toValue as wt, normalizeClass as de, Fragment as H, renderList as ae, toDisplayString as N, createTextVNode as U, createCommentVNode as ee, withDirectives as Q, vShow as te, withModifiers as ot, onMounted as be, withKeys as Qe, withCtx as V, createBlock as ne, normalizeStyle as Oe, vModelText as xt, markRaw as _t, resolveDynamicComponent as bt, createSlots as Nt, nextTick as Ft, onUnmounted as St } from "vue";
|
|
2
|
+
import { b as lt, a as M, n as Je, g as st, u as Ct, c as rt, _ as Et, e as Pt } from "./index-CiR3a1Cv.js";
|
|
3
|
+
import { defineStore as et } from "pinia";
|
|
4
|
+
import { NInput as dt, NButton as ct, NRadioGroup as jt, NRadio as Dt, NProgress as Mt, NTag as At, NList as Tt, NListItem as $t, NThing as Rt, NText as Ut, NSpin as ut, NDescriptions as Ot, NDescriptionsItem as Bt, NModal as Lt } from "naive-ui";
|
|
5
|
+
import { _ as Ue } from "./GDivider-tYaNzeM5.js";
|
|
5
6
|
const I = lt.create({
|
|
6
7
|
baseURL: lt.defaults.baseURL,
|
|
7
8
|
withCredentials: !0
|
|
@@ -3208,8 +3209,8 @@ const pt = It(), pe = {
|
|
|
3208
3209
|
// acl
|
|
3209
3210
|
aclError: "Hozzáférés megtagadva!"
|
|
3210
3211
|
}
|
|
3211
|
-
}, oe =
|
|
3212
|
-
const u =
|
|
3212
|
+
}, oe = et("fm-settings", () => {
|
|
3213
|
+
const u = C(null), e = C("4.0.0-dev2"), d = C({}), t = C(null), o = C(null), r = C("en"), p = C({
|
|
3213
3214
|
ru: Object.freeze(Vt),
|
|
3214
3215
|
en: Object.freeze(Kt),
|
|
3215
3216
|
ar: Object.freeze(qt),
|
|
@@ -3227,7 +3228,7 @@ const pt = It(), pe = {
|
|
|
3227
3228
|
"zh-TW": Object.freeze(ai),
|
|
3228
3229
|
pl: Object.freeze(oi),
|
|
3229
3230
|
hu: Object.freeze(li)
|
|
3230
|
-
}), l =
|
|
3231
|
+
}), l = C(!1), b = C([
|
|
3231
3232
|
[
|
|
3232
3233
|
{ name: "open", icon: "folder-open" },
|
|
3233
3234
|
{ name: "audioPlay", icon: "play" },
|
|
@@ -3249,7 +3250,7 @@ const pt = It(), pe = {
|
|
|
3249
3250
|
[
|
|
3250
3251
|
{ name: "properties", icon: "info" }
|
|
3251
3252
|
]
|
|
3252
|
-
]), y =
|
|
3253
|
+
]), y = C(["png", "jpg", "jpeg", "gif", "webp"]), z = C(["png", "jpg", "jpeg", "webp"]), f = C(["ogg", "mp3", "aac", "wav"]), v = C(["webm", "mp4"]), F = C({
|
|
3253
3254
|
sh: "text/x-sh",
|
|
3254
3255
|
css: "text/css",
|
|
3255
3256
|
less: "text/x-less",
|
|
@@ -3283,20 +3284,20 @@ const pt = It(), pe = {
|
|
|
3283
3284
|
yaml: "text/x-yaml",
|
|
3284
3285
|
json: "application/json",
|
|
3285
3286
|
properties: "text/plain"
|
|
3286
|
-
}), x =
|
|
3287
|
-
function
|
|
3288
|
-
Object.prototype.hasOwnProperty.call(
|
|
3287
|
+
}), x = s(() => Object.prototype.hasOwnProperty.call(d.value, "Authorization"));
|
|
3288
|
+
function _(E) {
|
|
3289
|
+
Object.prototype.hasOwnProperty.call(E, "headers") && (d.value = E.headers), Object.prototype.hasOwnProperty.call(E, "baseUrl") && (t.value = E.baseUrl), Object.prototype.hasOwnProperty.call(E, "windowsConfig") && (o.value = E.windowsConfig), Object.prototype.hasOwnProperty.call(E, "lang") && (r.value = E.lang), Object.prototype.hasOwnProperty.call(E, "translation") && (p.value[E.translation.name] = Object.freeze(E.translation.content));
|
|
3289
3290
|
}
|
|
3290
|
-
function
|
|
3291
|
+
function j() {
|
|
3291
3292
|
if (!t.value) {
|
|
3292
|
-
let
|
|
3293
|
-
window.location.port.length ?
|
|
3293
|
+
let E = `${window.location.protocol}//${window.location.hostname}`;
|
|
3294
|
+
window.location.port.length ? E += `:${window.location.port}/api/file-manager/` : E += "/api/file-manager/", t.value = E;
|
|
3294
3295
|
}
|
|
3295
3296
|
}
|
|
3296
|
-
function
|
|
3297
|
-
|
|
3297
|
+
function A(E) {
|
|
3298
|
+
r.value || (r.value = E.lang), o.value || (o.value = E.windowsConfig), u.value = E.acl, l.value = E.hiddenFiles;
|
|
3298
3299
|
}
|
|
3299
|
-
function
|
|
3300
|
+
function T() {
|
|
3300
3301
|
l.value = !l.value;
|
|
3301
3302
|
}
|
|
3302
3303
|
return {
|
|
@@ -3306,30 +3307,30 @@ const pt = It(), pe = {
|
|
|
3306
3307
|
headers: d,
|
|
3307
3308
|
baseUrl: t,
|
|
3308
3309
|
windowsConfig: o,
|
|
3309
|
-
lang:
|
|
3310
|
+
lang: r,
|
|
3310
3311
|
translations: p,
|
|
3311
3312
|
hiddenFiles: l,
|
|
3312
|
-
contextMenu:
|
|
3313
|
+
contextMenu: b,
|
|
3313
3314
|
imageExtensions: y,
|
|
3314
3315
|
cropExtensions: z,
|
|
3315
3316
|
audioExtensions: f,
|
|
3316
3317
|
videoExtensions: v,
|
|
3317
|
-
textExtensions:
|
|
3318
|
+
textExtensions: F,
|
|
3318
3319
|
// Getters
|
|
3319
3320
|
authHeader: x,
|
|
3320
3321
|
// Actions
|
|
3321
|
-
manualSettings:
|
|
3322
|
-
initAxiosSettings:
|
|
3323
|
-
initSettings:
|
|
3324
|
-
toggleHiddenFiles:
|
|
3322
|
+
manualSettings: _,
|
|
3323
|
+
initAxiosSettings: j,
|
|
3324
|
+
initSettings: A,
|
|
3325
|
+
toggleHiddenFiles: T
|
|
3325
3326
|
};
|
|
3326
|
-
}), Ee =
|
|
3327
|
-
const u =
|
|
3327
|
+
}), Ee = et("fm-messages", () => {
|
|
3328
|
+
const u = C({
|
|
3328
3329
|
status: null,
|
|
3329
3330
|
message: null
|
|
3330
|
-
}), e =
|
|
3331
|
-
function
|
|
3332
|
-
u.value.status = x, u.value.message =
|
|
3331
|
+
}), e = C(0), d = C(0), t = C([]), o = s(() => d.value > 0);
|
|
3332
|
+
function r({ status: x, message: _ }) {
|
|
3333
|
+
u.value.status = x, u.value.message = _;
|
|
3333
3334
|
}
|
|
3334
3335
|
function p() {
|
|
3335
3336
|
u.value.status = null, u.value.message = null;
|
|
@@ -3337,7 +3338,7 @@ const pt = It(), pe = {
|
|
|
3337
3338
|
function l(x) {
|
|
3338
3339
|
e.value = x;
|
|
3339
3340
|
}
|
|
3340
|
-
function
|
|
3341
|
+
function b() {
|
|
3341
3342
|
e.value = 0;
|
|
3342
3343
|
}
|
|
3343
3344
|
function y() {
|
|
@@ -3352,7 +3353,7 @@ const pt = It(), pe = {
|
|
|
3352
3353
|
function v(x) {
|
|
3353
3354
|
t.value.push(x);
|
|
3354
3355
|
}
|
|
3355
|
-
function
|
|
3356
|
+
function F() {
|
|
3356
3357
|
t.value = [];
|
|
3357
3358
|
}
|
|
3358
3359
|
return {
|
|
@@ -3364,25 +3365,25 @@ const pt = It(), pe = {
|
|
|
3364
3365
|
// Getters
|
|
3365
3366
|
loading: o,
|
|
3366
3367
|
// Actions
|
|
3367
|
-
setActionResult:
|
|
3368
|
+
setActionResult: r,
|
|
3368
3369
|
clearActionResult: p,
|
|
3369
3370
|
setProgress: l,
|
|
3370
|
-
clearProgress:
|
|
3371
|
+
clearProgress: b,
|
|
3371
3372
|
addLoading: y,
|
|
3372
3373
|
subtractLoading: z,
|
|
3373
3374
|
clearLoading: f,
|
|
3374
3375
|
setError: v,
|
|
3375
|
-
clearErrors:
|
|
3376
|
+
clearErrors: F
|
|
3376
3377
|
};
|
|
3377
|
-
}), ge =
|
|
3378
|
-
const u =
|
|
3378
|
+
}), ge = et("fm-modal", () => {
|
|
3379
|
+
const u = C(!1), e = C(null), d = C(null);
|
|
3379
3380
|
function t({ show: p, modalName: l }) {
|
|
3380
3381
|
u.value = p, e.value = l;
|
|
3381
3382
|
}
|
|
3382
|
-
function o({ pluginId: p, editor: l, file:
|
|
3383
|
-
d.value = { pluginId: p, editor: l, file:
|
|
3383
|
+
function o({ pluginId: p, editor: l, file: b }) {
|
|
3384
|
+
d.value = { pluginId: p, editor: l, file: b }, u.value = !0, e.value = "PluginEditorModal";
|
|
3384
3385
|
}
|
|
3385
|
-
function
|
|
3386
|
+
function r() {
|
|
3386
3387
|
u.value = !1, e.value = null, d.value = null;
|
|
3387
3388
|
}
|
|
3388
3389
|
return {
|
|
@@ -3391,7 +3392,7 @@ const pt = It(), pe = {
|
|
|
3391
3392
|
pluginEditorState: d,
|
|
3392
3393
|
setModalState: t,
|
|
3393
3394
|
openPluginEditor: o,
|
|
3394
|
-
clearModal:
|
|
3395
|
+
clearModal: r
|
|
3395
3396
|
};
|
|
3396
3397
|
});
|
|
3397
3398
|
function vt() {
|
|
@@ -3412,19 +3413,19 @@ function vt() {
|
|
|
3412
3413
|
historyPointer: 0
|
|
3413
3414
|
};
|
|
3414
3415
|
}
|
|
3415
|
-
const G =
|
|
3416
|
-
const u =
|
|
3416
|
+
const G = et("fm", () => {
|
|
3417
|
+
const u = C("left"), e = C({
|
|
3417
3418
|
type: null,
|
|
3418
3419
|
disk: null,
|
|
3419
3420
|
directories: [],
|
|
3420
3421
|
files: []
|
|
3421
|
-
}), d =
|
|
3422
|
+
}), d = C([]), t = C(null), o = C(!1), r = mt(vt()), p = mt(vt());
|
|
3422
3423
|
function l(a) {
|
|
3423
|
-
return a === "left" ?
|
|
3424
|
+
return a === "left" ? r : p;
|
|
3424
3425
|
}
|
|
3425
|
-
const
|
|
3426
|
-
|
|
3427
|
-
const y =
|
|
3426
|
+
const b = s(() => Object.keys(d.value));
|
|
3427
|
+
s(() => u.value === "left" ? "right" : "left");
|
|
3428
|
+
const y = s(() => l(u.value).selectedDisk), z = s(() => l(u.value).selectedDirectory);
|
|
3428
3429
|
function f(a) {
|
|
3429
3430
|
const i = oe(), m = l(a);
|
|
3430
3431
|
return i.hiddenFiles ? m.files : m.files.filter((h) => h.basename.match(/^([^.]).*/i));
|
|
@@ -3433,17 +3434,17 @@ const G = Qe("fm", () => {
|
|
|
3433
3434
|
const i = oe(), m = l(a);
|
|
3434
3435
|
return i.hiddenFiles ? m.directories : m.directories.filter((h) => h.basename.match(/^([^.]).*/i));
|
|
3435
3436
|
}
|
|
3436
|
-
function
|
|
3437
|
+
function F(a) {
|
|
3437
3438
|
return f(a).length;
|
|
3438
3439
|
}
|
|
3439
3440
|
function x(a) {
|
|
3440
3441
|
return v(a).length;
|
|
3441
3442
|
}
|
|
3442
|
-
function
|
|
3443
|
+
function _(a) {
|
|
3443
3444
|
const i = f(a);
|
|
3444
3445
|
return i.length ? i.reduce((m, h) => m + Number(h.size), 0) : 0;
|
|
3445
3446
|
}
|
|
3446
|
-
function
|
|
3447
|
+
function j(a) {
|
|
3447
3448
|
const i = l(a), m = i.directories.filter(
|
|
3448
3449
|
(O) => i.selected.directories.includes(O.path)
|
|
3449
3450
|
), h = i.files.filter(
|
|
@@ -3451,27 +3452,27 @@ const G = Qe("fm", () => {
|
|
|
3451
3452
|
);
|
|
3452
3453
|
return m.concat(h);
|
|
3453
3454
|
}
|
|
3454
|
-
function T(a) {
|
|
3455
|
-
return P(a).length;
|
|
3456
|
-
}
|
|
3457
3455
|
function A(a) {
|
|
3456
|
+
return j(a).length;
|
|
3457
|
+
}
|
|
3458
|
+
function T(a) {
|
|
3458
3459
|
const i = l(a), m = i.files.filter(
|
|
3459
3460
|
(h) => i.selected.files.includes(h.path)
|
|
3460
3461
|
);
|
|
3461
3462
|
return m.length ? m.reduce((h, O) => h + Number(O.size), 0) : 0;
|
|
3462
3463
|
}
|
|
3463
|
-
function
|
|
3464
|
+
function E(a) {
|
|
3464
3465
|
const i = l(a);
|
|
3465
3466
|
return i.selectedDirectory ? i.selectedDirectory.split("/") : null;
|
|
3466
3467
|
}
|
|
3467
3468
|
function K(a, i) {
|
|
3468
3469
|
return l(a).directories.some((h) => h.basename === i);
|
|
3469
3470
|
}
|
|
3470
|
-
function
|
|
3471
|
+
function X(a, i) {
|
|
3471
3472
|
return l(a).files.some((h) => h.basename === i);
|
|
3472
3473
|
}
|
|
3473
|
-
const
|
|
3474
|
-
function
|
|
3474
|
+
const ce = s(() => j(u.value));
|
|
3475
|
+
function ie(a, i) {
|
|
3475
3476
|
l(a).selectedDisk = i;
|
|
3476
3477
|
}
|
|
3477
3478
|
function L(a, i) {
|
|
@@ -3499,7 +3500,7 @@ const G = Qe("fm", () => {
|
|
|
3499
3500
|
function R(a, i) {
|
|
3500
3501
|
l(a).files.push(i);
|
|
3501
3502
|
}
|
|
3502
|
-
function
|
|
3503
|
+
function P(a, i) {
|
|
3503
3504
|
const m = l(a), h = m.files.findIndex((O) => O.basename === i.basename);
|
|
3504
3505
|
h !== -1 && (m.files[h] = i);
|
|
3505
3506
|
}
|
|
@@ -3550,20 +3551,20 @@ const G = Qe("fm", () => {
|
|
|
3550
3551
|
function Te({ type: a, disk: i, directories: m, files: h }) {
|
|
3551
3552
|
e.value.type = a, e.value.disk = i, e.value.directories = m, e.value.files = h;
|
|
3552
3553
|
}
|
|
3553
|
-
function
|
|
3554
|
+
function Le({ type: a, path: i }) {
|
|
3554
3555
|
const m = e.value[a].indexOf(i);
|
|
3555
3556
|
m !== -1 && e.value[a].splice(m, 1), !e.value.directories.length && !e.value.files.length && (e.value.type = null);
|
|
3556
3557
|
}
|
|
3557
3558
|
function $e() {
|
|
3558
3559
|
e.value.type = null, e.value.disk = null, e.value.directories = [], e.value.files = [];
|
|
3559
3560
|
}
|
|
3560
|
-
function
|
|
3561
|
+
function Ie(a) {
|
|
3561
3562
|
u.value = a;
|
|
3562
3563
|
}
|
|
3563
|
-
function
|
|
3564
|
+
function Ve(a) {
|
|
3564
3565
|
t.value = a;
|
|
3565
3566
|
}
|
|
3566
|
-
function
|
|
3567
|
+
function Ke() {
|
|
3567
3568
|
o.value = !o.value;
|
|
3568
3569
|
}
|
|
3569
3570
|
async function ze(a, { path: i, history: m }) {
|
|
@@ -3583,7 +3584,7 @@ const G = Qe("fm", () => {
|
|
|
3583
3584
|
history: !1
|
|
3584
3585
|
}), _e(a);
|
|
3585
3586
|
}
|
|
3586
|
-
function
|
|
3587
|
+
function qe(a) {
|
|
3587
3588
|
const i = l(a);
|
|
3588
3589
|
ze(a, {
|
|
3589
3590
|
path: i.history[i.historyPointer + 1],
|
|
@@ -3614,24 +3615,24 @@ const G = Qe("fm", () => {
|
|
|
3614
3615
|
const a = oe(), i = await pe.initialize();
|
|
3615
3616
|
if (i.data.result.status === "success") {
|
|
3616
3617
|
a.initSettings(i.data.config), Ae(i.data.config.disks);
|
|
3617
|
-
let m = i.data.config.leftDisk ? i.data.config.leftDisk :
|
|
3618
|
+
let m = i.data.config.leftDisk ? i.data.config.leftDisk : b.value[0], h = i.data.config.leftPath;
|
|
3618
3619
|
if (window.location.search) {
|
|
3619
3620
|
const O = new URLSearchParams(window.location.search);
|
|
3620
3621
|
O.get("leftDisk") && (m = O.get("leftDisk")), O.get("leftPath") && (h = O.get("leftPath"));
|
|
3621
3622
|
}
|
|
3622
|
-
|
|
3623
|
+
ie("left", m), h && (L("left", h), ke("left", h)), Ge({ manager: "left", disk: m, path: h });
|
|
3623
3624
|
}
|
|
3624
3625
|
}
|
|
3625
|
-
async function
|
|
3626
|
+
async function Ge({ manager: a, disk: i, path: m }) {
|
|
3626
3627
|
const h = await pe.content(i, m);
|
|
3627
3628
|
h.data.result.status === "success" && Z(a, h.data);
|
|
3628
3629
|
}
|
|
3629
3630
|
async function tt({ disk: a, manager: i }) {
|
|
3630
|
-
(await pe.selectDisk(a)).data.result.status === "success" && (
|
|
3631
|
+
(await pe.selectDisk(a)).data.result.status === "success" && (ie(i, a), me(i), ze(i, { path: null, history: !1 }));
|
|
3631
3632
|
}
|
|
3632
|
-
async function
|
|
3633
|
+
async function We(a) {
|
|
3633
3634
|
const i = z.value, m = await Ce.createFile(y.value, i, a);
|
|
3634
|
-
return
|
|
3635
|
+
return Xe({
|
|
3635
3636
|
response: m,
|
|
3636
3637
|
oldDir: i,
|
|
3637
3638
|
commitName: "addNewFile",
|
|
@@ -3646,7 +3647,7 @@ const G = Qe("fm", () => {
|
|
|
3646
3647
|
}
|
|
3647
3648
|
async function S(a) {
|
|
3648
3649
|
const i = await Ce.updateFile(a);
|
|
3649
|
-
return
|
|
3650
|
+
return Xe({
|
|
3650
3651
|
response: i,
|
|
3651
3652
|
oldDir: z.value,
|
|
3652
3653
|
commitName: "updateFile",
|
|
@@ -3659,7 +3660,7 @@ const G = Qe("fm", () => {
|
|
|
3659
3660
|
path: i,
|
|
3660
3661
|
name: a
|
|
3661
3662
|
});
|
|
3662
|
-
return
|
|
3663
|
+
return Xe({
|
|
3663
3664
|
response: m,
|
|
3664
3665
|
oldDir: i,
|
|
3665
3666
|
commitName: "addNewDirectory",
|
|
@@ -3707,12 +3708,12 @@ const G = Qe("fm", () => {
|
|
|
3707
3708
|
});
|
|
3708
3709
|
return a === "dir" ? refreshAll() : xe(), h;
|
|
3709
3710
|
}
|
|
3710
|
-
function
|
|
3711
|
+
function He({ disk: a, path: i }) {
|
|
3711
3712
|
return pe.url(a, i);
|
|
3712
3713
|
}
|
|
3713
|
-
function
|
|
3714
|
+
function Ye(a) {
|
|
3714
3715
|
const i = l(u.value);
|
|
3715
|
-
|
|
3716
|
+
A(u.value) && Te({
|
|
3716
3717
|
type: a,
|
|
3717
3718
|
disk: i.selectedDisk,
|
|
3718
3719
|
directories: i.selected.directories.slice(0),
|
|
@@ -3722,19 +3723,19 @@ const G = Qe("fm", () => {
|
|
|
3722
3723
|
async function xe() {
|
|
3723
3724
|
return Fe("left");
|
|
3724
3725
|
}
|
|
3725
|
-
function
|
|
3726
|
+
function Ze(a) {
|
|
3726
3727
|
const i = l(a);
|
|
3727
3728
|
D(a, {
|
|
3728
3729
|
field: i.sort.field,
|
|
3729
3730
|
direction: i.sort.direction
|
|
3730
3731
|
});
|
|
3731
3732
|
}
|
|
3732
|
-
function
|
|
3733
|
-
a.data.result.status === "success" && i === z.value && (m === "addNewFile" ? R(u.value, a.data[h]) : m === "updateFile" ?
|
|
3733
|
+
function Xe({ response: a, oldDir: i, commitName: m, type: h }) {
|
|
3734
|
+
a.data.result.status === "success" && i === z.value && (m === "addNewFile" ? R(u.value, a.data[h]) : m === "updateFile" ? P(u.value, a.data[h]) : m === "addNewDirectory" && W(u.value, a.data[h]), Ze(u.value));
|
|
3734
3735
|
}
|
|
3735
3736
|
function yt() {
|
|
3736
3737
|
const a = ge(), i = Ee();
|
|
3737
|
-
|
|
3738
|
+
ie("left", null), L("left", null), Z("left", { directories: [], files: [] }), $("left"), he("left"), me("left"), a.clearModal(), i.clearActionResult(), i.clearProgress(), i.clearLoading(), i.clearErrors(), u.value = "left", e.value = {
|
|
3738
3739
|
type: null,
|
|
3739
3740
|
disk: null,
|
|
3740
3741
|
directories: [],
|
|
@@ -3758,35 +3759,35 @@ const G = Qe("fm", () => {
|
|
|
3758
3759
|
fileCallback: t,
|
|
3759
3760
|
fullScreen: o,
|
|
3760
3761
|
// Manager states
|
|
3761
|
-
left:
|
|
3762
|
+
left: r,
|
|
3762
3763
|
getManager: l,
|
|
3763
3764
|
// Root getters
|
|
3764
|
-
diskList:
|
|
3765
|
+
diskList: b,
|
|
3765
3766
|
selectedDisk: y,
|
|
3766
3767
|
selectedDirectory: z,
|
|
3767
|
-
selectedItems:
|
|
3768
|
+
selectedItems: ce,
|
|
3768
3769
|
// Manager getters
|
|
3769
3770
|
getFiles: f,
|
|
3770
3771
|
getDirectories: v,
|
|
3771
|
-
getFilesCount:
|
|
3772
|
+
getFilesCount: F,
|
|
3772
3773
|
getDirectoriesCount: x,
|
|
3773
|
-
getFilesSize:
|
|
3774
|
-
getSelectedList:
|
|
3775
|
-
getSelectedCount:
|
|
3776
|
-
getSelectedFilesSize:
|
|
3777
|
-
getBreadcrumb:
|
|
3774
|
+
getFilesSize: _,
|
|
3775
|
+
getSelectedList: j,
|
|
3776
|
+
getSelectedCount: A,
|
|
3777
|
+
getSelectedFilesSize: T,
|
|
3778
|
+
getBreadcrumb: E,
|
|
3778
3779
|
directoryExist: K,
|
|
3779
|
-
fileExist:
|
|
3780
|
+
fileExist: X,
|
|
3780
3781
|
// Root mutations
|
|
3781
3782
|
setDisks: Ae,
|
|
3782
3783
|
setClipboard: Te,
|
|
3783
|
-
truncateClipboard:
|
|
3784
|
+
truncateClipboard: Le,
|
|
3784
3785
|
resetClipboard: $e,
|
|
3785
|
-
setActiveManager:
|
|
3786
|
-
setFileCallBack:
|
|
3787
|
-
screenToggle:
|
|
3786
|
+
setActiveManager: Ie,
|
|
3787
|
+
setFileCallBack: Ve,
|
|
3788
|
+
screenToggle: Ke,
|
|
3788
3789
|
// Manager mutations
|
|
3789
|
-
setManagerDisk:
|
|
3790
|
+
setManagerDisk: ie,
|
|
3790
3791
|
setManagerDirectory: L,
|
|
3791
3792
|
setManagerContent: Z,
|
|
3792
3793
|
addToSelection: ue,
|
|
@@ -3794,7 +3795,7 @@ const G = Qe("fm", () => {
|
|
|
3794
3795
|
changeSelected: ye,
|
|
3795
3796
|
clearSelection: $,
|
|
3796
3797
|
addNewFile: R,
|
|
3797
|
-
updateFile:
|
|
3798
|
+
updateFile: P,
|
|
3798
3799
|
addNewDirectory: W,
|
|
3799
3800
|
setSort: q,
|
|
3800
3801
|
resetSortSettings: he,
|
|
@@ -3810,13 +3811,13 @@ const G = Qe("fm", () => {
|
|
|
3810
3811
|
selectDirectory: ze,
|
|
3811
3812
|
refreshDirectory: Fe,
|
|
3812
3813
|
historyBack: Re,
|
|
3813
|
-
historyForward:
|
|
3814
|
+
historyForward: qe,
|
|
3814
3815
|
sortBy: D,
|
|
3815
3816
|
// Root actions
|
|
3816
3817
|
initializeApp: B,
|
|
3817
|
-
getLoadContent:
|
|
3818
|
+
getLoadContent: Ge,
|
|
3818
3819
|
selectDisk: tt,
|
|
3819
|
-
createFile:
|
|
3820
|
+
createFile: We,
|
|
3820
3821
|
getFile: it,
|
|
3821
3822
|
getFileArrayBuffer: at,
|
|
3822
3823
|
updateFile: S,
|
|
@@ -3825,11 +3826,11 @@ const G = Qe("fm", () => {
|
|
|
3825
3826
|
delete: we,
|
|
3826
3827
|
paste: re,
|
|
3827
3828
|
rename: Se,
|
|
3828
|
-
url:
|
|
3829
|
-
toClipboard:
|
|
3829
|
+
url: He,
|
|
3830
|
+
toClipboard: Ye,
|
|
3830
3831
|
refreshManagers: xe,
|
|
3831
|
-
repeatSort:
|
|
3832
|
-
updateContent:
|
|
3832
|
+
repeatSort: Ze,
|
|
3833
|
+
updateContent: Xe,
|
|
3833
3834
|
resetState: yt,
|
|
3834
3835
|
openPDF: ht
|
|
3835
3836
|
};
|
|
@@ -3837,7 +3838,7 @@ const G = Qe("fm", () => {
|
|
|
3837
3838
|
function Y() {
|
|
3838
3839
|
const u = oe();
|
|
3839
3840
|
return {
|
|
3840
|
-
lang:
|
|
3841
|
+
lang: s(() => Object.prototype.hasOwnProperty.call(u.translations, u.lang) ? u.translations[u.lang] : u.translations.en)
|
|
3841
3842
|
};
|
|
3842
3843
|
}
|
|
3843
3844
|
const ni = { class: "fm-navbar" }, si = { class: "grid grid-cols-2 gap-4" }, ri = { class: "mb-2" }, di = {
|
|
@@ -3852,89 +3853,89 @@ const ni = { class: "fm-navbar" }, si = { class: "grid grid-cols-2 gap-4" }, ri
|
|
|
3852
3853
|
}, yi = ["disabled", "title"], hi = ["disabled", "title"], ki = ["disabled", "title"], zi = {
|
|
3853
3854
|
__name: "NavbarBlock",
|
|
3854
3855
|
setup(u) {
|
|
3855
|
-
const e = G(), d = Ee(), t = ge(), o = oe(), { lang:
|
|
3856
|
-
|
|
3856
|
+
const e = G(), d = Ee(), t = ge(), o = oe(), { lang: r } = Y(), p = s(() => e.activeManager);
|
|
3857
|
+
s(() => !e.getManager(p.value).historyPointer), s(() => {
|
|
3857
3858
|
const x = e.getManager(p.value);
|
|
3858
3859
|
return x.historyPointer === x.history.length - 1;
|
|
3859
3860
|
});
|
|
3860
|
-
const l =
|
|
3861
|
+
const l = s(() => {
|
|
3861
3862
|
const x = e.getManager(p.value);
|
|
3862
3863
|
return x.selected.files.length > 0 || x.selected.directories.length > 0;
|
|
3863
|
-
}),
|
|
3864
|
-
|
|
3864
|
+
}), b = s(() => d.actionProgress > 0), y = s(() => e.clipboard.type);
|
|
3865
|
+
s(() => e.fullScreen), s(() => o.hiddenFiles);
|
|
3865
3866
|
function z() {
|
|
3866
3867
|
e.refreshAll();
|
|
3867
3868
|
}
|
|
3868
3869
|
function f(x) {
|
|
3869
|
-
e.toClipboard(x), x === "cut" ?
|
|
3870
|
-
content:
|
|
3870
|
+
e.toClipboard(x), x === "cut" ? Je({
|
|
3871
|
+
content: r.value.notifications.cutToClipboard,
|
|
3871
3872
|
type: "success"
|
|
3872
|
-
}) : x === "copy" &&
|
|
3873
|
-
content:
|
|
3873
|
+
}) : x === "copy" && Je({
|
|
3874
|
+
content: r.value.notifications.copyToClipboard,
|
|
3874
3875
|
type: "success"
|
|
3875
3876
|
});
|
|
3876
3877
|
}
|
|
3877
3878
|
function v() {
|
|
3878
3879
|
e.paste();
|
|
3879
3880
|
}
|
|
3880
|
-
function
|
|
3881
|
+
function F(x) {
|
|
3881
3882
|
t.setModalState({ modalName: x, show: !0 });
|
|
3882
3883
|
}
|
|
3883
|
-
return (x,
|
|
3884
|
+
return (x, _) => (g(), k("div", ni, [
|
|
3884
3885
|
c("div", si, [
|
|
3885
3886
|
c("div", ri, [
|
|
3886
3887
|
c("div", di, [
|
|
3887
3888
|
c("button", {
|
|
3888
3889
|
type: "button",
|
|
3889
3890
|
class: "btn btn-small btn-secondary rounded",
|
|
3890
|
-
onClick:
|
|
3891
|
-
title: r
|
|
3891
|
+
onClick: _[0] || (_[0] = (j) => z()),
|
|
3892
|
+
title: n(r).btn.refresh
|
|
3892
3893
|
}, [
|
|
3893
|
-
w(
|
|
3894
|
+
w(n(M), { name: "refresh" })
|
|
3894
3895
|
], 8, ci)
|
|
3895
3896
|
]),
|
|
3896
3897
|
c("div", ui, [
|
|
3897
3898
|
c("button", {
|
|
3898
3899
|
type: "button",
|
|
3899
3900
|
class: "btn btn-small btn-secondary rounded-s border-r",
|
|
3900
|
-
onClick:
|
|
3901
|
-
title: r
|
|
3901
|
+
onClick: _[1] || (_[1] = (j) => F("NewFileModal")),
|
|
3902
|
+
title: n(r).btn.file
|
|
3902
3903
|
}, [
|
|
3903
|
-
w(
|
|
3904
|
+
w(n(M), { name: "file" })
|
|
3904
3905
|
], 8, pi),
|
|
3905
3906
|
c("button", {
|
|
3906
3907
|
type: "button",
|
|
3907
3908
|
class: "btn btn-small btn-secondary border-r",
|
|
3908
|
-
onClick:
|
|
3909
|
-
title: r
|
|
3909
|
+
onClick: _[2] || (_[2] = (j) => F("NewFolderModal")),
|
|
3910
|
+
title: n(r).btn.folder
|
|
3910
3911
|
}, [
|
|
3911
|
-
w(
|
|
3912
|
+
w(n(M), { name: "folder" })
|
|
3912
3913
|
], 8, fi),
|
|
3913
|
-
|
|
3914
|
+
b.value ? (g(), k("button", {
|
|
3914
3915
|
key: 0,
|
|
3915
3916
|
type: "button",
|
|
3916
3917
|
class: "btn btn-small btn-secondary border-r",
|
|
3917
3918
|
disabled: "",
|
|
3918
|
-
title: r
|
|
3919
|
+
title: n(r).btn.upload
|
|
3919
3920
|
}, [
|
|
3920
|
-
w(
|
|
3921
|
-
], 8, mi)) : (
|
|
3921
|
+
w(n(M), { name: "upload" })
|
|
3922
|
+
], 8, mi)) : (g(), k("button", {
|
|
3922
3923
|
key: 1,
|
|
3923
3924
|
type: "button",
|
|
3924
3925
|
class: "btn btn-small btn-secondary border-r",
|
|
3925
|
-
onClick:
|
|
3926
|
-
title: r
|
|
3926
|
+
onClick: _[3] || (_[3] = (j) => F("UploadModal")),
|
|
3927
|
+
title: n(r).btn.upload
|
|
3927
3928
|
}, [
|
|
3928
|
-
w(
|
|
3929
|
+
w(n(M), { name: "upload" })
|
|
3929
3930
|
], 8, vi)),
|
|
3930
3931
|
c("button", {
|
|
3931
3932
|
type: "button",
|
|
3932
3933
|
class: "btn btn-small btn-secondary rounded-e",
|
|
3933
3934
|
disabled: !l.value,
|
|
3934
|
-
onClick:
|
|
3935
|
-
title: r
|
|
3935
|
+
onClick: _[4] || (_[4] = (j) => F("DeleteModal")),
|
|
3936
|
+
title: n(r).btn.delete
|
|
3936
3937
|
}, [
|
|
3937
|
-
w(
|
|
3938
|
+
w(n(M), { name: "delete" })
|
|
3938
3939
|
], 8, bi)
|
|
3939
3940
|
]),
|
|
3940
3941
|
c("div", gi, [
|
|
@@ -3942,28 +3943,28 @@ const ni = { class: "fm-navbar" }, si = { class: "grid grid-cols-2 gap-4" }, ri
|
|
|
3942
3943
|
type: "button",
|
|
3943
3944
|
class: "btn btn-small btn-secondary rounded-s border-r",
|
|
3944
3945
|
disabled: !l.value,
|
|
3945
|
-
title: r
|
|
3946
|
-
onClick:
|
|
3946
|
+
title: n(r).btn.copy,
|
|
3947
|
+
onClick: _[5] || (_[5] = (j) => f("copy"))
|
|
3947
3948
|
}, [
|
|
3948
|
-
w(
|
|
3949
|
+
w(n(M), { name: "copy" })
|
|
3949
3950
|
], 8, yi),
|
|
3950
3951
|
c("button", {
|
|
3951
3952
|
type: "button",
|
|
3952
3953
|
class: "btn btn-small btn-secondary border-r",
|
|
3953
3954
|
disabled: !l.value,
|
|
3954
|
-
title: r
|
|
3955
|
-
onClick:
|
|
3955
|
+
title: n(r).btn.cut,
|
|
3956
|
+
onClick: _[6] || (_[6] = (j) => f("cut"))
|
|
3956
3957
|
}, [
|
|
3957
|
-
w(
|
|
3958
|
+
w(n(M), { name: "cut" })
|
|
3958
3959
|
], 8, hi),
|
|
3959
3960
|
c("button", {
|
|
3960
3961
|
type: "button",
|
|
3961
3962
|
class: "btn btn-small btn-secondary rounded-e",
|
|
3962
3963
|
disabled: !y.value,
|
|
3963
|
-
title: r
|
|
3964
|
+
title: n(r).btn.paste,
|
|
3964
3965
|
onClick: v
|
|
3965
3966
|
}, [
|
|
3966
|
-
w(
|
|
3967
|
+
w(n(M), { name: "paste" })
|
|
3967
3968
|
], 8, ki)
|
|
3968
3969
|
])
|
|
3969
3970
|
])
|
|
@@ -3972,17 +3973,17 @@ const ni = { class: "fm-navbar" }, si = { class: "grid grid-cols-2 gap-4" }, ri
|
|
|
3972
3973
|
}
|
|
3973
3974
|
};
|
|
3974
3975
|
function gt(u) {
|
|
3975
|
-
const e = G(), d = oe(), t = ge(), o = () => wt(u),
|
|
3976
|
-
function
|
|
3976
|
+
const e = G(), d = oe(), t = ge(), o = () => wt(u), r = s(() => e.getManager(o())), p = s(() => e.activeManager === o()), l = s(() => r.value.selectedDisk), b = s(() => r.value.selectedDirectory), y = s(() => r.value.viewType), z = s(() => r.value.sort), f = s(() => r.value.selected), v = s(() => r.value.history), F = s(() => r.value.historyPointer), x = s(() => e.getFiles(o())), _ = s(() => e.getDirectories(o())), j = s(() => e.getFilesCount(o())), A = s(() => e.getDirectoriesCount(o())), T = s(() => e.getFilesSize(o())), E = s(() => e.getSelectedList(o())), K = s(() => e.getSelectedCount(o())), X = s(() => e.getSelectedFilesSize(o())), ce = s(() => e.getBreadcrumb(o())), ie = s(() => F.value > 0), L = s(() => F.value < v.value.length - 1), Z = s(() => d.acl), ue = s(() => e.fileCallback), le = s(() => d.imageExtensions), ye = s(() => d.textExtensions), $ = s(() => d.audioExtensions), R = s(() => d.videoExtensions);
|
|
3977
|
+
function P(D, B = !0) {
|
|
3977
3978
|
return e.selectDirectory(o(), { path: D, history: B });
|
|
3978
3979
|
}
|
|
3979
3980
|
function W() {
|
|
3980
3981
|
return e.refreshDirectory(o());
|
|
3981
3982
|
}
|
|
3982
3983
|
function q() {
|
|
3983
|
-
if (!
|
|
3984
|
-
const D =
|
|
3985
|
-
D.pop(), D.length ?
|
|
3984
|
+
if (!b.value) return;
|
|
3985
|
+
const D = b.value.split("/");
|
|
3986
|
+
D.pop(), D.length ? P(D.join("/")) : P(null);
|
|
3986
3987
|
}
|
|
3987
3988
|
function he() {
|
|
3988
3989
|
e.historyBack(o());
|
|
@@ -4017,19 +4018,19 @@ function gt(u) {
|
|
|
4017
4018
|
function Te(D) {
|
|
4018
4019
|
return e.directoryExist(o(), D);
|
|
4019
4020
|
}
|
|
4020
|
-
function
|
|
4021
|
+
function Le(D) {
|
|
4021
4022
|
return e.fileExist(o(), D);
|
|
4022
4023
|
}
|
|
4023
4024
|
function $e(D) {
|
|
4024
4025
|
return le.value.includes(D.toLowerCase());
|
|
4025
4026
|
}
|
|
4026
|
-
function
|
|
4027
|
+
function Ie(D) {
|
|
4027
4028
|
return Object.prototype.hasOwnProperty.call(ye.value, D.toLowerCase());
|
|
4028
4029
|
}
|
|
4029
|
-
function
|
|
4030
|
+
function Ve(D) {
|
|
4030
4031
|
return $.value.includes(D.toLowerCase());
|
|
4031
4032
|
}
|
|
4032
|
-
function
|
|
4033
|
+
function Ke(D) {
|
|
4033
4034
|
return R.value.includes(D.toLowerCase());
|
|
4034
4035
|
}
|
|
4035
4036
|
function ze(D) {
|
|
@@ -4041,31 +4042,31 @@ function gt(u) {
|
|
|
4041
4042
|
function Re(D, B) {
|
|
4042
4043
|
return e.url({ disk: D, path: B });
|
|
4043
4044
|
}
|
|
4044
|
-
function
|
|
4045
|
+
function qe(D, B) {
|
|
4045
4046
|
e.openPDF({ disk: D, path: B });
|
|
4046
4047
|
}
|
|
4047
4048
|
return {
|
|
4048
4049
|
// State
|
|
4049
|
-
manager:
|
|
4050
|
+
manager: r,
|
|
4050
4051
|
isActive: p,
|
|
4051
4052
|
selectedDisk: l,
|
|
4052
|
-
selectedDirectory:
|
|
4053
|
+
selectedDirectory: b,
|
|
4053
4054
|
viewType: y,
|
|
4054
4055
|
sort: z,
|
|
4055
4056
|
selected: f,
|
|
4056
4057
|
history: v,
|
|
4057
|
-
historyPointer:
|
|
4058
|
+
historyPointer: F,
|
|
4058
4059
|
// Getters
|
|
4059
4060
|
files: x,
|
|
4060
|
-
directories:
|
|
4061
|
-
filesCount:
|
|
4062
|
-
directoriesCount:
|
|
4063
|
-
filesSize:
|
|
4064
|
-
selectedList:
|
|
4061
|
+
directories: _,
|
|
4062
|
+
filesCount: j,
|
|
4063
|
+
directoriesCount: A,
|
|
4064
|
+
filesSize: T,
|
|
4065
|
+
selectedList: E,
|
|
4065
4066
|
selectedCount: K,
|
|
4066
|
-
selectedFilesSize:
|
|
4067
|
-
breadcrumb:
|
|
4068
|
-
canHistoryBack:
|
|
4067
|
+
selectedFilesSize: X,
|
|
4068
|
+
breadcrumb: ce,
|
|
4069
|
+
canHistoryBack: ie,
|
|
4069
4070
|
canHistoryForward: L,
|
|
4070
4071
|
acl: Z,
|
|
4071
4072
|
fileCallback: ue,
|
|
@@ -4074,7 +4075,7 @@ function gt(u) {
|
|
|
4074
4075
|
audioExtensions: $,
|
|
4075
4076
|
videoExtensions: R,
|
|
4076
4077
|
// Actions
|
|
4077
|
-
selectDirectory:
|
|
4078
|
+
selectDirectory: P,
|
|
4078
4079
|
refreshDirectory: W,
|
|
4079
4080
|
levelUp: q,
|
|
4080
4081
|
historyBack: he,
|
|
@@ -4088,15 +4089,15 @@ function gt(u) {
|
|
|
4088
4089
|
clearSelection: Me,
|
|
4089
4090
|
isSelected: Ae,
|
|
4090
4091
|
directoryExist: Te,
|
|
4091
|
-
fileExist:
|
|
4092
|
+
fileExist: Le,
|
|
4092
4093
|
isImage: $e,
|
|
4093
|
-
isText:
|
|
4094
|
-
isAudio:
|
|
4095
|
-
isVideo:
|
|
4094
|
+
isText: Ie,
|
|
4095
|
+
isAudio: Ve,
|
|
4096
|
+
isVideo: Ke,
|
|
4096
4097
|
openModal: ze,
|
|
4097
4098
|
closeModal: Fe,
|
|
4098
4099
|
getUrl: Re,
|
|
4099
|
-
openPDF:
|
|
4100
|
+
openPDF: qe
|
|
4100
4101
|
};
|
|
4101
4102
|
}
|
|
4102
4103
|
const wi = { class: "fm-breadcrumb" }, xi = {
|
|
@@ -4108,35 +4109,35 @@ const wi = { class: "fm-breadcrumb" }, xi = {
|
|
|
4108
4109
|
manager: { type: String, required: !0 }
|
|
4109
4110
|
},
|
|
4110
4111
|
setup(u) {
|
|
4111
|
-
const e = u, d = G(), { selectedDirectory: t, breadcrumb: o, selectDirectory:
|
|
4112
|
+
const e = u, d = G(), { selectedDirectory: t, breadcrumb: o, selectDirectory: r } = gt(e.manager), p = s(() => d.activeManager);
|
|
4112
4113
|
function l(y) {
|
|
4113
4114
|
const z = o.value.slice(0, y + 1).join("/");
|
|
4114
|
-
z !== t.value &&
|
|
4115
|
+
z !== t.value && r(z, !0);
|
|
4115
4116
|
}
|
|
4116
|
-
function
|
|
4117
|
-
t.value &&
|
|
4117
|
+
function b() {
|
|
4118
|
+
t.value && r(null, !0);
|
|
4118
4119
|
}
|
|
4119
|
-
return (y, z) => (
|
|
4120
|
+
return (y, z) => (g(), k("div", wi, [
|
|
4120
4121
|
c("nav", xi, [
|
|
4121
4122
|
c("ol", {
|
|
4122
4123
|
class: de(["inline-flex items-center space-x-1 md:space-x-2 rtl:space-x-reverse", [u.manager === p.value ? "active-manager" : "bg-light"]])
|
|
4123
4124
|
}, [
|
|
4124
4125
|
c("li", {
|
|
4125
4126
|
class: "breadcrumb-item",
|
|
4126
|
-
onClick:
|
|
4127
|
+
onClick: b
|
|
4127
4128
|
}, [
|
|
4128
4129
|
c("span", _i, [
|
|
4129
|
-
w(
|
|
4130
|
+
w(n(M), { name: "hard-drive" })
|
|
4130
4131
|
])
|
|
4131
4132
|
]),
|
|
4132
|
-
(
|
|
4133
|
-
class: de(["breadcrumb-item text-truncate dark:text-stone-400", [
|
|
4133
|
+
(g(!0), k(H, null, ae(n(o), (f, v) => (g(), k("li", {
|
|
4134
|
+
class: de(["breadcrumb-item text-truncate dark:text-stone-400", [n(o).length === v + 1 ? "active" : ""]]),
|
|
4134
4135
|
key: v,
|
|
4135
|
-
onClick: (
|
|
4136
|
+
onClick: (F) => l(v)
|
|
4136
4137
|
}, [
|
|
4137
4138
|
c("div", Fi, [
|
|
4138
4139
|
z[0] || (z[0] = c("span", { class: "mx-2 text-stone-400" }, "/", -1)),
|
|
4139
|
-
c("span", null,
|
|
4140
|
+
c("span", null, N(f), 1)
|
|
4140
4141
|
])
|
|
4141
4142
|
], 10, Ni))), 128))
|
|
4142
4143
|
], 2)
|
|
@@ -4144,18 +4145,18 @@ const wi = { class: "fm-breadcrumb" }, xi = {
|
|
|
4144
4145
|
]));
|
|
4145
4146
|
}
|
|
4146
4147
|
};
|
|
4147
|
-
function
|
|
4148
|
+
function Be() {
|
|
4148
4149
|
const u = oe();
|
|
4149
|
-
function e(
|
|
4150
|
+
function e(r) {
|
|
4150
4151
|
const p = ["Bytes", "KB", "MB", "GB", "TB"];
|
|
4151
|
-
if (
|
|
4152
|
-
const l = parseInt(Math.floor(Math.log(
|
|
4153
|
-
return l === 0 ? `${
|
|
4152
|
+
if (r === 0) return "0 Bytes";
|
|
4153
|
+
const l = parseInt(Math.floor(Math.log(r) / Math.log(1024)), 10);
|
|
4154
|
+
return l === 0 ? `${r} ${p[l]}` : `${(r / 1024 ** l).toFixed(1)} ${p[l]}`;
|
|
4154
4155
|
}
|
|
4155
|
-
function d(
|
|
4156
|
-
return
|
|
4156
|
+
function d(r) {
|
|
4157
|
+
return r == null ? "-" : new Date(r * 1e3).toLocaleString(u.lang);
|
|
4157
4158
|
}
|
|
4158
|
-
function t(
|
|
4159
|
+
function t(r) {
|
|
4159
4160
|
const p = {
|
|
4160
4161
|
"image/gif": "file-image",
|
|
4161
4162
|
"image/png": "file-image",
|
|
@@ -4207,9 +4208,9 @@ function Oe() {
|
|
|
4207
4208
|
"application/vnd.openxmlformats-officedocument.spreadsheetml": "file",
|
|
4208
4209
|
"application/vnd.openxmlformats-officedocument.presentationml": "file"
|
|
4209
4210
|
};
|
|
4210
|
-
return p[
|
|
4211
|
+
return p[r] !== void 0 ? p[r] : "file";
|
|
4211
4212
|
}
|
|
4212
|
-
function o(
|
|
4213
|
+
function o(r) {
|
|
4213
4214
|
const p = {
|
|
4214
4215
|
gif: "file-image",
|
|
4215
4216
|
png: "file-image",
|
|
@@ -4279,7 +4280,7 @@ function Oe() {
|
|
|
4279
4280
|
xps: "file",
|
|
4280
4281
|
potx: "file"
|
|
4281
4282
|
};
|
|
4282
|
-
return
|
|
4283
|
+
return r && p[r.toLowerCase()] !== void 0 ? p[r.toLowerCase()] : "file";
|
|
4283
4284
|
}
|
|
4284
4285
|
return {
|
|
4285
4286
|
bytesToHuman: e,
|
|
@@ -4293,7 +4294,7 @@ function nt(u) {
|
|
|
4293
4294
|
return u.size > Ci;
|
|
4294
4295
|
}
|
|
4295
4296
|
function ft() {
|
|
4296
|
-
const u = st(), e = Ct(), d =
|
|
4297
|
+
const u = st(), e = Ct(), d = s(() => e.server?.game_id || null), t = s(() => e.server?.game?.name || null);
|
|
4297
4298
|
function o(y) {
|
|
4298
4299
|
return {
|
|
4299
4300
|
fileName: y.basename,
|
|
@@ -4301,7 +4302,7 @@ function ft() {
|
|
|
4301
4302
|
extension: y.extension
|
|
4302
4303
|
};
|
|
4303
4304
|
}
|
|
4304
|
-
function
|
|
4305
|
+
function r(y) {
|
|
4305
4306
|
const z = o(y);
|
|
4306
4307
|
return u.getMatchingEditors(z, {
|
|
4307
4308
|
gameCode: d.value,
|
|
@@ -4316,19 +4317,19 @@ function ft() {
|
|
|
4316
4317
|
});
|
|
4317
4318
|
}
|
|
4318
4319
|
function l(y) {
|
|
4319
|
-
return
|
|
4320
|
+
return r(y).length > 0;
|
|
4320
4321
|
}
|
|
4321
|
-
function
|
|
4322
|
+
function b(y) {
|
|
4322
4323
|
return !nt(y) && l(y);
|
|
4323
4324
|
}
|
|
4324
4325
|
return {
|
|
4325
4326
|
gameCode: d,
|
|
4326
4327
|
gameName: t,
|
|
4327
4328
|
getFileInfo: o,
|
|
4328
|
-
getMatchingEditors:
|
|
4329
|
+
getMatchingEditors: r,
|
|
4329
4330
|
getDefaultEditor: p,
|
|
4330
4331
|
hasCustomEditors: l,
|
|
4331
|
-
canEditWithPlugin:
|
|
4332
|
+
canEditWithPlugin: b,
|
|
4332
4333
|
isFileTooLarge: nt
|
|
4333
4334
|
};
|
|
4334
4335
|
}
|
|
@@ -4338,41 +4339,41 @@ const Ei = { class: "fm-table" }, Pi = { class: "table table-sm w-full" }, ji =
|
|
|
4338
4339
|
manager: { type: String, required: !0 }
|
|
4339
4340
|
},
|
|
4340
4341
|
setup(u) {
|
|
4341
|
-
const e = u, d = G(), t = oe(), o = ge(), { lang:
|
|
4342
|
+
const e = u, d = G(), t = oe(), o = ge(), { lang: r } = Y(), { bytesToHuman: p, timestampToDate: l, extensionToIcon: b } = Be(), { getDefaultEditor: y, isFileTooLarge: z } = ft(), {
|
|
4342
4343
|
selectedDisk: f,
|
|
4343
4344
|
selectedDirectory: v,
|
|
4344
|
-
files:
|
|
4345
|
+
files: F,
|
|
4345
4346
|
directories: x,
|
|
4346
|
-
selected:
|
|
4347
|
-
sort:
|
|
4348
|
-
selectDirectory:
|
|
4349
|
-
sortBy:
|
|
4350
|
-
} = gt(e.manager),
|
|
4351
|
-
function
|
|
4347
|
+
selected: _,
|
|
4348
|
+
sort: j,
|
|
4349
|
+
selectDirectory: A,
|
|
4350
|
+
sortBy: T
|
|
4351
|
+
} = gt(e.manager), E = s(() => j.value), K = s(() => t.acl), X = s(() => v.value === null);
|
|
4352
|
+
function ce() {
|
|
4352
4353
|
if (v.value) {
|
|
4353
4354
|
const $ = v.value.split("/").slice(0, -1).join("/");
|
|
4354
|
-
|
|
4355
|
+
A($ || null, !0);
|
|
4355
4356
|
}
|
|
4356
4357
|
}
|
|
4357
|
-
function
|
|
4358
|
-
return
|
|
4358
|
+
function ie($, R) {
|
|
4359
|
+
return _.value[$].includes(R);
|
|
4359
4360
|
}
|
|
4360
|
-
function L($, R,
|
|
4361
|
-
const W =
|
|
4362
|
-
(
|
|
4361
|
+
function L($, R, P) {
|
|
4362
|
+
const W = _.value[$].includes(R);
|
|
4363
|
+
(P.ctrlKey || P.metaKey) && (W ? d.removeFromSelection(e.manager, { type: $, path: R }) : d.addToSelection(e.manager, { type: $, path: R })), !P.ctrlKey && !W && !P.metaKey && d.changeSelected(e.manager, { type: $, path: R });
|
|
4363
4364
|
}
|
|
4364
4365
|
function Z($, R) {
|
|
4365
|
-
const
|
|
4366
|
-
|
|
4366
|
+
const P = $.type === "dir" ? "directories" : "files";
|
|
4367
|
+
_.value[P].includes($.path) || d.changeSelected(e.manager, { type: P, path: $.path }), pt.emit("contextMenu", R);
|
|
4367
4368
|
}
|
|
4368
4369
|
function ue($) {
|
|
4369
|
-
|
|
4370
|
+
A($, !0);
|
|
4370
4371
|
}
|
|
4371
4372
|
function le($) {
|
|
4372
|
-
|
|
4373
|
+
T($, null);
|
|
4373
4374
|
}
|
|
4374
4375
|
function ye($) {
|
|
4375
|
-
const { path: R, extension:
|
|
4376
|
+
const { path: R, extension: P } = $;
|
|
4376
4377
|
if (d.fileCallback) {
|
|
4377
4378
|
d.url({ disk: f.value, path: R }).then((q) => {
|
|
4378
4379
|
q.data.result.status === "success" && d.fileCallback(q.data.url);
|
|
@@ -4388,115 +4389,115 @@ const Ei = { class: "fm-table" }, Pi = { class: "table table-sm w-full" }, ji =
|
|
|
4388
4389
|
});
|
|
4389
4390
|
return;
|
|
4390
4391
|
}
|
|
4391
|
-
|
|
4392
|
+
P && (t.imageExtensions.includes(P.toLowerCase()) ? o.setModalState({ modalName: "PreviewModal", show: !0 }) : Object.keys(t.textExtensions).includes(P.toLowerCase()) ? o.setModalState({ modalName: "TextEditModal", show: !0 }) : t.audioExtensions.includes(P.toLowerCase()) ? o.setModalState({ modalName: "AudioPlayerModal", show: !0 }) : t.videoExtensions.includes(P.toLowerCase()) ? o.setModalState({ modalName: "VideoPlayerModal", show: !0 }) : P.toLowerCase() === "pdf" && d.openPDF({ disk: f.value, path: R }));
|
|
4392
4393
|
}
|
|
4393
|
-
return ($, R) => (
|
|
4394
|
+
return ($, R) => (g(), k("div", Ei, [
|
|
4394
4395
|
c("table", Pi, [
|
|
4395
4396
|
c("thead", null, [
|
|
4396
4397
|
c("tr", null, [
|
|
4397
4398
|
c("th", {
|
|
4398
4399
|
class: "w-65",
|
|
4399
|
-
onClick: R[0] || (R[0] = (
|
|
4400
|
+
onClick: R[0] || (R[0] = (P) => le("name"))
|
|
4400
4401
|
}, [
|
|
4401
|
-
U(
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
[
|
|
4402
|
+
U(N(n(r).manager.table.name) + " ", 1),
|
|
4403
|
+
E.value.field === "name" ? (g(), k(H, { key: 0 }, [
|
|
4404
|
+
Q(w(n(M), { name: "sort-desc" }, null, 512), [
|
|
4405
|
+
[te, E.value.direction === "down"]
|
|
4405
4406
|
]),
|
|
4406
|
-
|
|
4407
|
-
[
|
|
4407
|
+
Q(w(n(M), { name: "sort-asc" }, null, 512), [
|
|
4408
|
+
[te, E.value.direction === "up"]
|
|
4408
4409
|
])
|
|
4409
|
-
], 64)) :
|
|
4410
|
+
], 64)) : ee("", !0)
|
|
4410
4411
|
]),
|
|
4411
4412
|
c("th", {
|
|
4412
4413
|
class: "w-10",
|
|
4413
|
-
onClick: R[1] || (R[1] = (
|
|
4414
|
+
onClick: R[1] || (R[1] = (P) => le("size"))
|
|
4414
4415
|
}, [
|
|
4415
|
-
U(
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
[
|
|
4416
|
+
U(N(n(r).manager.table.size) + " ", 1),
|
|
4417
|
+
E.value.field === "size" ? (g(), k(H, { key: 0 }, [
|
|
4418
|
+
Q(w(n(M), { name: "sort-desc" }, null, 512), [
|
|
4419
|
+
[te, E.value.direction === "down"]
|
|
4419
4420
|
]),
|
|
4420
|
-
|
|
4421
|
-
[
|
|
4421
|
+
Q(w(n(M), { name: "sort-asc" }, null, 512), [
|
|
4422
|
+
[te, E.value.direction === "up"]
|
|
4422
4423
|
])
|
|
4423
|
-
], 64)) :
|
|
4424
|
+
], 64)) : ee("", !0)
|
|
4424
4425
|
]),
|
|
4425
4426
|
c("th", {
|
|
4426
4427
|
class: "w-10",
|
|
4427
|
-
onClick: R[2] || (R[2] = (
|
|
4428
|
+
onClick: R[2] || (R[2] = (P) => le("type"))
|
|
4428
4429
|
}, [
|
|
4429
|
-
U(
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
[
|
|
4430
|
+
U(N(n(r).manager.table.type) + " ", 1),
|
|
4431
|
+
E.value.field === "type" ? (g(), k(H, { key: 0 }, [
|
|
4432
|
+
Q(w(n(M), { name: "sort-desc" }, null, 512), [
|
|
4433
|
+
[te, E.value.direction === "down"]
|
|
4433
4434
|
]),
|
|
4434
|
-
|
|
4435
|
-
[
|
|
4435
|
+
Q(w(n(M), { name: "sort-asc" }, null, 512), [
|
|
4436
|
+
[te, E.value.direction === "up"]
|
|
4436
4437
|
])
|
|
4437
|
-
], 64)) :
|
|
4438
|
+
], 64)) : ee("", !0)
|
|
4438
4439
|
]),
|
|
4439
4440
|
c("th", {
|
|
4440
4441
|
class: "w-auto",
|
|
4441
|
-
onClick: R[3] || (R[3] = (
|
|
4442
|
+
onClick: R[3] || (R[3] = (P) => le("date"))
|
|
4442
4443
|
}, [
|
|
4443
|
-
U(
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
[
|
|
4444
|
+
U(N(n(r).manager.table.date) + " ", 1),
|
|
4445
|
+
E.value.field === "date" ? (g(), k(H, { key: 0 }, [
|
|
4446
|
+
Q(w(n(M), { name: "sort-desc" }, null, 512), [
|
|
4447
|
+
[te, E.value.direction === "down"]
|
|
4447
4448
|
]),
|
|
4448
|
-
|
|
4449
|
-
[
|
|
4449
|
+
Q(w(n(M), { name: "sort-asc" }, null, 512), [
|
|
4450
|
+
[te, E.value.direction === "up"]
|
|
4450
4451
|
])
|
|
4451
|
-
], 64)) :
|
|
4452
|
+
], 64)) : ee("", !0)
|
|
4452
4453
|
])
|
|
4453
4454
|
])
|
|
4454
4455
|
]),
|
|
4455
4456
|
c("tbody", null, [
|
|
4456
|
-
|
|
4457
|
+
X.value ? ee("", !0) : (g(), k("tr", ji, [
|
|
4457
4458
|
c("td", {
|
|
4458
4459
|
colspan: "4",
|
|
4459
4460
|
class: "fm-content-item",
|
|
4460
|
-
onClick:
|
|
4461
|
+
onClick: ce
|
|
4461
4462
|
}, [
|
|
4462
|
-
w(
|
|
4463
|
+
w(n(M), { name: "arrow-turn-up" })
|
|
4463
4464
|
])
|
|
4464
4465
|
])),
|
|
4465
|
-
(
|
|
4466
|
+
(g(!0), k(H, null, ae(n(x), (P, W) => (g(), k("tr", {
|
|
4466
4467
|
key: `d-${W}`,
|
|
4467
|
-
class: de({ "table-info":
|
|
4468
|
-
onClick: (q) => L("directories",
|
|
4469
|
-
onContextmenu: ot((q) => Z(
|
|
4468
|
+
class: de({ "table-info": ie("directories", P.path) }),
|
|
4469
|
+
onClick: (q) => L("directories", P.path, q),
|
|
4470
|
+
onContextmenu: ot((q) => Z(P, q), ["prevent"])
|
|
4470
4471
|
}, [
|
|
4471
4472
|
c("td", {
|
|
4472
|
-
class: de(["fm-content-item unselectable", K.value &&
|
|
4473
|
-
onDblclick: (q) => ue(
|
|
4473
|
+
class: de(["fm-content-item unselectable", K.value && P.acl === 0 ? "text-hidden" : ""]),
|
|
4474
|
+
onDblclick: (q) => ue(P.path)
|
|
4474
4475
|
}, [
|
|
4475
|
-
w(
|
|
4476
|
-
U(" " +
|
|
4476
|
+
w(n(M), { name: "folder" }),
|
|
4477
|
+
U(" " + N(P.basename), 1)
|
|
4477
4478
|
], 42, Mi),
|
|
4478
4479
|
R[4] || (R[4] = c("td", null, null, -1)),
|
|
4479
|
-
c("td", null,
|
|
4480
|
-
c("td", null,
|
|
4480
|
+
c("td", null, N(n(r).manager.table.folder), 1),
|
|
4481
|
+
c("td", null, N(n(l)(P.timestamp)), 1)
|
|
4481
4482
|
], 42, Di))), 128)),
|
|
4482
|
-
(
|
|
4483
|
+
(g(!0), k(H, null, ae(n(F), (P, W) => (g(), k("tr", {
|
|
4483
4484
|
key: `f-${W}`,
|
|
4484
|
-
class: de({ "table-info":
|
|
4485
|
-
onClick: (q) => L("files",
|
|
4486
|
-
onDblclick: (q) => ye(
|
|
4487
|
-
onContextmenu: ot((q) => Z(
|
|
4485
|
+
class: de({ "table-info": ie("files", P.path) }),
|
|
4486
|
+
onClick: (q) => L("files", P.path, q),
|
|
4487
|
+
onDblclick: (q) => ye(P),
|
|
4488
|
+
onContextmenu: ot((q) => Z(P, q), ["prevent"])
|
|
4488
4489
|
}, [
|
|
4489
4490
|
c("td", {
|
|
4490
|
-
class: de(["fm-content-item unselectable", K.value &&
|
|
4491
|
+
class: de(["fm-content-item unselectable", K.value && P.acl === 0 ? "text-hidden" : ""])
|
|
4491
4492
|
}, [
|
|
4492
|
-
w(
|
|
4493
|
-
name:
|
|
4493
|
+
w(n(M), {
|
|
4494
|
+
name: n(b)(P.extension)
|
|
4494
4495
|
}, null, 8, ["name"]),
|
|
4495
|
-
U(" " +
|
|
4496
|
+
U(" " + N(P.basename), 1)
|
|
4496
4497
|
], 2),
|
|
4497
|
-
c("td", null,
|
|
4498
|
-
c("td", null,
|
|
4499
|
-
c("td", null,
|
|
4498
|
+
c("td", null, N(n(p)(P.size)), 1),
|
|
4499
|
+
c("td", null, N(P.extension), 1),
|
|
4500
|
+
c("td", null, N(n(l)(P.timestamp)), 1)
|
|
4500
4501
|
], 42, Ai))), 128))
|
|
4501
4502
|
])
|
|
4502
4503
|
])
|
|
@@ -4508,7 +4509,7 @@ const Ei = { class: "fm-table" }, Pi = { class: "table table-sm w-full" }, ji =
|
|
|
4508
4509
|
manager: { type: String, required: !0 }
|
|
4509
4510
|
},
|
|
4510
4511
|
setup(u) {
|
|
4511
|
-
return (e, d) => (
|
|
4512
|
+
return (e, d) => (g(), k("div", $i, [
|
|
4512
4513
|
w(Si, { manager: u.manager }, null, 8, ["manager"]),
|
|
4513
4514
|
c("div", Ri, [
|
|
4514
4515
|
w(Ti, { manager: u.manager }, null, 8, ["manager"])
|
|
@@ -4517,7 +4518,7 @@ const Ei = { class: "fm-table" }, Pi = { class: "table table-sm w-full" }, ji =
|
|
|
4517
4518
|
}
|
|
4518
4519
|
};
|
|
4519
4520
|
function fe() {
|
|
4520
|
-
const u = G(), e = ge(), d =
|
|
4521
|
+
const u = G(), e = ge(), d = s(() => u.activeManager);
|
|
4521
4522
|
function t() {
|
|
4522
4523
|
e.setModalState({
|
|
4523
4524
|
modalName: null,
|
|
@@ -4528,8 +4529,8 @@ function fe() {
|
|
|
4528
4529
|
activeManager: d,
|
|
4529
4530
|
hideModal: t,
|
|
4530
4531
|
vFocus: {
|
|
4531
|
-
mounted(
|
|
4532
|
-
|
|
4532
|
+
mounted(r) {
|
|
4533
|
+
r.focus();
|
|
4533
4534
|
}
|
|
4534
4535
|
}
|
|
4535
4536
|
};
|
|
@@ -4543,40 +4544,40 @@ const Oi = { class: "mb-3" }, Bi = {
|
|
|
4543
4544
|
}, Ii = {
|
|
4544
4545
|
__name: "NewFileModal",
|
|
4545
4546
|
setup(u, { expose: e }) {
|
|
4546
|
-
const d = G(), { lang: t } = Y(), { activeManager: o, hideModal:
|
|
4547
|
+
const d = G(), { lang: t } = Y(), { activeManager: o, hideModal: r } = fe(), p = C(""), l = C(!1), b = C(null), y = s(() => p.value && !l.value);
|
|
4547
4548
|
be(() => {
|
|
4548
|
-
|
|
4549
|
+
b.value?.focus();
|
|
4549
4550
|
});
|
|
4550
4551
|
function z() {
|
|
4551
4552
|
p.value ? l.value = d.fileExist(o.value, p.value) : l.value = !1;
|
|
4552
4553
|
}
|
|
4553
4554
|
function f() {
|
|
4554
4555
|
d.createFile(p.value).then((v) => {
|
|
4555
|
-
v.data.result.status === "success" &&
|
|
4556
|
+
v.data.result.status === "success" && r();
|
|
4556
4557
|
});
|
|
4557
4558
|
}
|
|
4558
4559
|
return e({
|
|
4559
|
-
footerButtons:
|
|
4560
|
+
footerButtons: s(() => [
|
|
4560
4561
|
{ label: t.value.btn.submit, color: "green", icon: "file", action: f, disabled: !y.value },
|
|
4561
|
-
{ label: t.value.btn.cancel, color: "black", icon: "close", action:
|
|
4562
|
+
{ label: t.value.btn.cancel, color: "black", icon: "close", action: r }
|
|
4562
4563
|
])
|
|
4563
|
-
}), (v,
|
|
4564
|
+
}), (v, F) => {
|
|
4564
4565
|
const x = dt;
|
|
4565
|
-
return
|
|
4566
|
-
c("label", Bi,
|
|
4566
|
+
return g(), k("div", Oi, [
|
|
4567
|
+
c("label", Bi, N(n(t).modal.newFile.fieldName), 1),
|
|
4567
4568
|
w(x, {
|
|
4568
4569
|
id: "fm-file-name",
|
|
4569
4570
|
ref_key: "fileNameInput",
|
|
4570
|
-
ref:
|
|
4571
|
+
ref: b,
|
|
4571
4572
|
value: p.value,
|
|
4572
|
-
"onUpdate:value":
|
|
4573
|
+
"onUpdate:value": F[0] || (F[0] = (_) => p.value = _),
|
|
4573
4574
|
status: l.value ? "error" : void 0,
|
|
4574
4575
|
onKeyup: [
|
|
4575
4576
|
z,
|
|
4576
|
-
|
|
4577
|
+
F[1] || (F[1] = Qe((_) => y.value && f(), ["enter"]))
|
|
4577
4578
|
]
|
|
4578
4579
|
}, null, 8, ["value", "status"]),
|
|
4579
|
-
l.value ? (
|
|
4580
|
+
l.value ? (g(), k("div", Li, N(n(t).modal.newFile.fieldFeedback), 1)) : ee("", !0)
|
|
4580
4581
|
]);
|
|
4581
4582
|
};
|
|
4582
4583
|
}
|
|
@@ -4589,40 +4590,40 @@ const Oi = { class: "mb-3" }, Bi = {
|
|
|
4589
4590
|
}, Gi = {
|
|
4590
4591
|
__name: "NewFolderModal",
|
|
4591
4592
|
setup(u, { expose: e }) {
|
|
4592
|
-
const d = G(), { lang: t } = Y(), { activeManager: o, hideModal:
|
|
4593
|
+
const d = G(), { lang: t } = Y(), { activeManager: o, hideModal: r } = fe(), p = C(""), l = C(!1), b = C(null), y = s(() => p.value && !l.value);
|
|
4593
4594
|
be(() => {
|
|
4594
|
-
|
|
4595
|
+
b.value?.focus();
|
|
4595
4596
|
});
|
|
4596
4597
|
function z() {
|
|
4597
4598
|
p.value ? l.value = d.directoryExist(o.value, p.value) : l.value = !1;
|
|
4598
4599
|
}
|
|
4599
4600
|
function f() {
|
|
4600
4601
|
d.createDirectory(p.value).then((v) => {
|
|
4601
|
-
v.data.result.status === "success" &&
|
|
4602
|
+
v.data.result.status === "success" && r();
|
|
4602
4603
|
});
|
|
4603
4604
|
}
|
|
4604
4605
|
return e({
|
|
4605
|
-
footerButtons:
|
|
4606
|
+
footerButtons: s(() => [
|
|
4606
4607
|
{ label: t.value.btn.submit, color: "green", icon: "add-folder", action: f, disabled: !y.value },
|
|
4607
|
-
{ label: t.value.btn.cancel, color: "black", icon: "close", action:
|
|
4608
|
+
{ label: t.value.btn.cancel, color: "black", icon: "close", action: r }
|
|
4608
4609
|
])
|
|
4609
|
-
}), (v,
|
|
4610
|
+
}), (v, F) => {
|
|
4610
4611
|
const x = dt;
|
|
4611
|
-
return
|
|
4612
|
-
c("label", Ki,
|
|
4612
|
+
return g(), k("div", Vi, [
|
|
4613
|
+
c("label", Ki, N(n(t).modal.newFolder.fieldName), 1),
|
|
4613
4614
|
w(x, {
|
|
4614
4615
|
id: "fm-folder-name",
|
|
4615
4616
|
ref_key: "folderNameInput",
|
|
4616
|
-
ref:
|
|
4617
|
+
ref: b,
|
|
4617
4618
|
value: p.value,
|
|
4618
|
-
"onUpdate:value":
|
|
4619
|
+
"onUpdate:value": F[0] || (F[0] = (_) => p.value = _),
|
|
4619
4620
|
status: l.value ? "error" : void 0,
|
|
4620
4621
|
onKeyup: [
|
|
4621
4622
|
z,
|
|
4622
|
-
|
|
4623
|
+
F[1] || (F[1] = Qe((_) => y.value && f(), ["enter"]))
|
|
4623
4624
|
]
|
|
4624
4625
|
}, null, 8, ["value", "status"]),
|
|
4625
|
-
l.value ? (
|
|
4626
|
+
l.value ? (g(), k("div", qi, N(n(t).modal.newFolder.fieldFeedback), 1)) : ee("", !0)
|
|
4626
4627
|
]);
|
|
4627
4628
|
};
|
|
4628
4629
|
}
|
|
@@ -4632,35 +4633,35 @@ const Oi = { class: "mb-3" }, Bi = {
|
|
|
4632
4633
|
}, Yi = { class: "truncate" }, Xi = { class: "text-right" }, Ji = { class: "grid grid-cols-2 gap-4 my-4" }, Qi = { class: "text-right" }, ea = { class: "flex items-center gap-4 my-4" }, ta = { key: 1 }, ia = { class: "fm-upload-info my-4" }, aa = {
|
|
4633
4634
|
__name: "UploadModal",
|
|
4634
4635
|
setup(u, { expose: e }) {
|
|
4635
|
-
const d = G(), t = Ee(), { lang: o } = Y(), { bytesToHuman:
|
|
4636
|
-
let
|
|
4637
|
-
for (let
|
|
4638
|
-
|
|
4639
|
-
return
|
|
4636
|
+
const d = G(), t = Ee(), { lang: o } = Y(), { bytesToHuman: r, mimeToIcon: p } = Be(), { hideModal: l } = fe(), b = C([]), y = C(0), z = s(() => t.actionProgress), f = s(() => b.value.length), v = s(() => {
|
|
4637
|
+
let _ = 0;
|
|
4638
|
+
for (let j = 0; j < b.value.length; j += 1)
|
|
4639
|
+
_ += b.value[j].size;
|
|
4640
|
+
return r(_);
|
|
4640
4641
|
});
|
|
4641
|
-
function
|
|
4642
|
-
|
|
4642
|
+
function F(_) {
|
|
4643
|
+
_.target.files.length === 0 ? b.value = [] : b.value = _.target.files;
|
|
4643
4644
|
}
|
|
4644
4645
|
function x() {
|
|
4645
4646
|
f.value && d.upload({
|
|
4646
|
-
files:
|
|
4647
|
+
files: b.value,
|
|
4647
4648
|
overwrite: y.value
|
|
4648
|
-
}).then((
|
|
4649
|
-
|
|
4649
|
+
}).then((_) => {
|
|
4650
|
+
_.data.result.status === "success" && l();
|
|
4650
4651
|
});
|
|
4651
4652
|
}
|
|
4652
4653
|
return e({
|
|
4653
|
-
footerButtons:
|
|
4654
|
+
footerButtons: s(() => [
|
|
4654
4655
|
{ label: o.value.btn.submit, color: "green", icon: "upload", action: x, disabled: !f.value },
|
|
4655
4656
|
{ label: o.value.btn.cancel, color: "black", icon: "close", action: l }
|
|
4656
4657
|
])
|
|
4657
|
-
}), (
|
|
4658
|
-
const
|
|
4659
|
-
return
|
|
4660
|
-
|
|
4661
|
-
w(
|
|
4658
|
+
}), (_, j) => {
|
|
4659
|
+
const A = ct, T = Dt, E = jt, K = Mt;
|
|
4660
|
+
return g(), k("div", Hi, [
|
|
4661
|
+
Q(c("div", Zi, [
|
|
4662
|
+
w(A, { class: "w-full" }, {
|
|
4662
4663
|
default: V(() => [
|
|
4663
|
-
U(
|
|
4664
|
+
U(N(n(o).btn.uploadSelect), 1)
|
|
4664
4665
|
]),
|
|
4665
4666
|
_: 1
|
|
4666
4667
|
}),
|
|
@@ -4669,54 +4670,54 @@ const Oi = { class: "mb-3" }, Bi = {
|
|
|
4669
4670
|
multiple: "",
|
|
4670
4671
|
name: "myfile",
|
|
4671
4672
|
class: "absolute left-0 top-0 opacity-0 cursor-pointer text-[100px] h-full w-full",
|
|
4672
|
-
onChange:
|
|
4673
|
+
onChange: j[0] || (j[0] = (X) => F(X))
|
|
4673
4674
|
}, null, 32)
|
|
4674
4675
|
], 512), [
|
|
4675
|
-
[
|
|
4676
|
+
[te, !z.value]
|
|
4676
4677
|
]),
|
|
4677
|
-
f.value ? (
|
|
4678
|
-
(
|
|
4678
|
+
f.value ? (g(), k("div", Wi, [
|
|
4679
|
+
(g(!0), k(H, null, ae(b.value, (X, ce) => (g(), k("div", {
|
|
4679
4680
|
class: "grid grid-cols-2 gap-4 my-4",
|
|
4680
|
-
key:
|
|
4681
|
+
key: ce
|
|
4681
4682
|
}, [
|
|
4682
4683
|
c("div", Yi, [
|
|
4683
|
-
w(
|
|
4684
|
-
name:
|
|
4684
|
+
w(n(M), {
|
|
4685
|
+
name: n(p)(X.type)
|
|
4685
4686
|
}, null, 8, ["name"]),
|
|
4686
|
-
U(" " +
|
|
4687
|
+
U(" " + N(X.name), 1)
|
|
4687
4688
|
]),
|
|
4688
|
-
c("div", Xi,
|
|
4689
|
+
c("div", Xi, N(n(r)(X.size)), 1)
|
|
4689
4690
|
]))), 128)),
|
|
4690
|
-
w(
|
|
4691
|
+
w(n(Ue)),
|
|
4691
4692
|
c("div", Ji, [
|
|
4692
4693
|
c("div", null, [
|
|
4693
|
-
c("strong", null,
|
|
4694
|
-
U(" " +
|
|
4694
|
+
c("strong", null, N(n(o).modal.upload.selected), 1),
|
|
4695
|
+
U(" " + N(b.value.length), 1)
|
|
4695
4696
|
]),
|
|
4696
4697
|
c("div", Qi, [
|
|
4697
|
-
c("strong", null,
|
|
4698
|
-
U(" " +
|
|
4698
|
+
c("strong", null, N(n(o).modal.upload.size), 1),
|
|
4699
|
+
U(" " + N(v.value), 1)
|
|
4699
4700
|
])
|
|
4700
4701
|
]),
|
|
4701
|
-
w(
|
|
4702
|
+
w(n(Ue)),
|
|
4702
4703
|
c("div", ea, [
|
|
4703
4704
|
c("div", null, [
|
|
4704
|
-
c("strong", null,
|
|
4705
|
+
c("strong", null, N(n(o).modal.upload.ifExist), 1)
|
|
4705
4706
|
]),
|
|
4706
|
-
w(
|
|
4707
|
+
w(E, {
|
|
4707
4708
|
value: y.value,
|
|
4708
|
-
"onUpdate:value":
|
|
4709
|
+
"onUpdate:value": j[1] || (j[1] = (X) => y.value = X)
|
|
4709
4710
|
}, {
|
|
4710
4711
|
default: V(() => [
|
|
4711
|
-
w(
|
|
4712
|
+
w(T, { value: 0 }, {
|
|
4712
4713
|
default: V(() => [
|
|
4713
|
-
U(
|
|
4714
|
+
U(N(n(o).modal.upload.skip), 1)
|
|
4714
4715
|
]),
|
|
4715
4716
|
_: 1
|
|
4716
4717
|
}),
|
|
4717
|
-
w(
|
|
4718
|
+
w(T, { value: 1 }, {
|
|
4718
4719
|
default: V(() => [
|
|
4719
|
-
U(
|
|
4720
|
+
U(N(n(o).modal.upload.overwrite), 1)
|
|
4720
4721
|
]),
|
|
4721
4722
|
_: 1
|
|
4722
4723
|
})
|
|
@@ -4724,84 +4725,84 @@ const Oi = { class: "mb-3" }, Bi = {
|
|
|
4724
4725
|
_: 1
|
|
4725
4726
|
}, 8, ["value"])
|
|
4726
4727
|
]),
|
|
4727
|
-
w(
|
|
4728
|
-
])) : (
|
|
4729
|
-
c("p", null,
|
|
4728
|
+
w(n(Ue))
|
|
4729
|
+
])) : (g(), k("div", ta, [
|
|
4730
|
+
c("p", null, N(n(o).modal.upload.noSelected), 1)
|
|
4730
4731
|
])),
|
|
4731
|
-
|
|
4732
|
-
w(
|
|
4732
|
+
Q(c("div", ia, [
|
|
4733
|
+
w(K, {
|
|
4733
4734
|
type: "line",
|
|
4734
4735
|
percentage: z.value,
|
|
4735
4736
|
"show-indicator": !0
|
|
4736
4737
|
}, null, 8, ["percentage"])
|
|
4737
4738
|
], 512), [
|
|
4738
|
-
[
|
|
4739
|
+
[te, f.value]
|
|
4739
4740
|
])
|
|
4740
4741
|
]);
|
|
4741
4742
|
};
|
|
4742
4743
|
}
|
|
4743
|
-
}, oa = /* @__PURE__ */ rt(aa, [["__scopeId", "data-v-
|
|
4744
|
+
}, oa = /* @__PURE__ */ rt(aa, [["__scopeId", "data-v-bf894e43"]]), la = { class: "fm-additions-file-list" }, na = { class: "w-75 text-truncate" }, sa = { key: 0 }, ra = { key: 1 }, da = {
|
|
4744
4745
|
key: 0,
|
|
4745
4746
|
class: "text-end"
|
|
4746
4747
|
}, ca = {
|
|
4747
4748
|
__name: "SelectedFileList",
|
|
4748
4749
|
setup(u) {
|
|
4749
|
-
const e = G(), { bytesToHuman: d, extensionToIcon: t } =
|
|
4750
|
-
return (
|
|
4751
|
-
(
|
|
4750
|
+
const e = G(), { bytesToHuman: d, extensionToIcon: t } = Be(), o = s(() => e.selectedItems);
|
|
4751
|
+
return (r, p) => (g(), k("div", la, [
|
|
4752
|
+
(g(!0), k(H, null, ae(o.value, (l, b) => (g(), k("div", {
|
|
4752
4753
|
class: "d-flex justify-content-between",
|
|
4753
|
-
key:
|
|
4754
|
+
key: b
|
|
4754
4755
|
}, [
|
|
4755
4756
|
c("div", na, [
|
|
4756
|
-
l.type === "dir" ? (
|
|
4757
|
-
w(
|
|
4758
|
-
U(
|
|
4759
|
-
])) : (
|
|
4760
|
-
w(
|
|
4761
|
-
name:
|
|
4757
|
+
l.type === "dir" ? (g(), k("span", sa, [
|
|
4758
|
+
w(n(M), { name: "folder" }),
|
|
4759
|
+
U(N(l.basename), 1)
|
|
4760
|
+
])) : (g(), k("span", ra, [
|
|
4761
|
+
w(n(M), {
|
|
4762
|
+
name: n(t)(l.extension)
|
|
4762
4763
|
}, null, 8, ["name"]),
|
|
4763
|
-
U(" " +
|
|
4764
|
+
U(" " + N(l.basename), 1)
|
|
4764
4765
|
]))
|
|
4765
4766
|
]),
|
|
4766
|
-
l.type === "file" ? (
|
|
4767
|
+
l.type === "file" ? (g(), k("div", da, N(n(d)(l.size)), 1)) : ee("", !0)
|
|
4767
4768
|
]))), 128))
|
|
4768
4769
|
]));
|
|
4769
4770
|
}
|
|
4770
4771
|
}, ua = { key: 0 }, pa = { key: 1 }, fa = { class: "text-red-500" }, ma = {
|
|
4771
4772
|
__name: "DeleteModal",
|
|
4772
4773
|
setup(u, { expose: e }) {
|
|
4773
|
-
const d = G(), { lang: t } = Y(), { hideModal: o } = fe(),
|
|
4774
|
+
const d = G(), { lang: t } = Y(), { hideModal: o } = fe(), r = s(() => d.selectedItems);
|
|
4774
4775
|
function p() {
|
|
4775
|
-
const l =
|
|
4776
|
-
path:
|
|
4777
|
-
type:
|
|
4776
|
+
const l = r.value.map((b) => ({
|
|
4777
|
+
path: b.path,
|
|
4778
|
+
type: b.type
|
|
4778
4779
|
}));
|
|
4779
4780
|
d.delete(l).then(() => {
|
|
4780
4781
|
o();
|
|
4781
4782
|
});
|
|
4782
4783
|
}
|
|
4783
4784
|
return e({
|
|
4784
|
-
footerButtons:
|
|
4785
|
-
{ label: t.value.modal.delete.title, color: "red", icon: "delete", action: p, disabled: !
|
|
4785
|
+
footerButtons: s(() => [
|
|
4786
|
+
{ label: t.value.modal.delete.title, color: "red", icon: "delete", action: p, disabled: !r.value.length },
|
|
4786
4787
|
{ label: t.value.btn.cancel, color: "black", icon: "close", action: o }
|
|
4787
4788
|
])
|
|
4788
|
-
}), (l,
|
|
4789
|
-
|
|
4789
|
+
}), (l, b) => (g(), k("div", null, [
|
|
4790
|
+
r.value.length ? (g(), k("div", ua, [
|
|
4790
4791
|
w(ca)
|
|
4791
|
-
])) : (
|
|
4792
|
-
c("span", fa,
|
|
4792
|
+
])) : (g(), k("div", pa, [
|
|
4793
|
+
c("span", fa, N(n(t).modal.delete.noSelected), 1)
|
|
4793
4794
|
]))
|
|
4794
4795
|
]));
|
|
4795
4796
|
}
|
|
4796
4797
|
}, va = { class: "flex justify-between items-center mb-3" }, ba = { class: "truncate" }, ga = { class: "text-stone-500" }, ya = ["title"], ha = { class: "truncate" }, ka = { class: "truncate" }, za = { key: 1 }, wa = {
|
|
4797
4798
|
__name: "ClipboardModal",
|
|
4798
4799
|
setup(u, { expose: e }) {
|
|
4799
|
-
const d = G(), { lang: t } = Y(), { extensionToIcon: o } =
|
|
4800
|
+
const d = G(), { lang: t } = Y(), { extensionToIcon: o } = Be(), { hideModal: r } = fe(), p = s(() => d.clipboard), l = s(
|
|
4800
4801
|
() => d.clipboard.directories.map((f) => ({
|
|
4801
4802
|
path: f,
|
|
4802
4803
|
name: f.split("/").slice(-1)[0]
|
|
4803
4804
|
}))
|
|
4804
|
-
),
|
|
4805
|
+
), b = s(
|
|
4805
4806
|
() => d.clipboard.files.map((f) => {
|
|
4806
4807
|
const v = f.split("/").slice(-1)[0];
|
|
4807
4808
|
return {
|
|
@@ -4818,132 +4819,132 @@ const Oi = { class: "mb-3" }, Bi = {
|
|
|
4818
4819
|
d.resetClipboard();
|
|
4819
4820
|
}
|
|
4820
4821
|
return e({
|
|
4821
|
-
footerButtons:
|
|
4822
|
+
footerButtons: s(() => [
|
|
4822
4823
|
{ label: t.value.btn.clear, color: "red", icon: "clear", action: z, disabled: !p.value.type },
|
|
4823
|
-
{ label: t.value.btn.cancel, color: "black", icon: "close", action:
|
|
4824
|
+
{ label: t.value.btn.cancel, color: "black", icon: "close", action: r }
|
|
4824
4825
|
])
|
|
4825
4826
|
}), (f, v) => {
|
|
4826
|
-
const
|
|
4827
|
-
return
|
|
4828
|
-
p.value.type ? (
|
|
4827
|
+
const F = At, x = ct;
|
|
4828
|
+
return g(), k("div", null, [
|
|
4829
|
+
p.value.type ? (g(), k(H, { key: 0 }, [
|
|
4829
4830
|
c("div", va, [
|
|
4830
4831
|
c("div", ba, [
|
|
4831
|
-
w(
|
|
4832
|
+
w(F, null, {
|
|
4832
4833
|
icon: V(() => [
|
|
4833
|
-
w(
|
|
4834
|
+
w(n(M), { name: "hard-drive" })
|
|
4834
4835
|
]),
|
|
4835
4836
|
default: V(() => [
|
|
4836
|
-
U(" " +
|
|
4837
|
+
U(" " + N(p.value.disk), 1)
|
|
4837
4838
|
]),
|
|
4838
4839
|
_: 1
|
|
4839
4840
|
})
|
|
4840
4841
|
]),
|
|
4841
4842
|
c("div", ga, [
|
|
4842
4843
|
c("span", {
|
|
4843
|
-
title: `${
|
|
4844
|
+
title: `${n(t).clipboard.actionType} - ${n(t).clipboard[p.value.type]}`
|
|
4844
4845
|
}, [
|
|
4845
|
-
p.value.type === "copy" ? (
|
|
4846
|
+
p.value.type === "copy" ? (g(), ne(n(M), {
|
|
4846
4847
|
key: 0,
|
|
4847
4848
|
name: "copy"
|
|
4848
|
-
})) : (
|
|
4849
|
+
})) : (g(), ne(n(M), {
|
|
4849
4850
|
key: 1,
|
|
4850
4851
|
name: "cut"
|
|
4851
4852
|
}))
|
|
4852
4853
|
], 8, ya)
|
|
4853
4854
|
])
|
|
4854
4855
|
]),
|
|
4855
|
-
w(
|
|
4856
|
-
(
|
|
4856
|
+
w(n(Ue)),
|
|
4857
|
+
(g(!0), k(H, null, ae(l.value, (_, j) => (g(), k("div", {
|
|
4857
4858
|
class: "flex justify-between items-center py-1",
|
|
4858
|
-
key: `d-${
|
|
4859
|
+
key: `d-${j}`
|
|
4859
4860
|
}, [
|
|
4860
4861
|
c("div", ha, [
|
|
4861
4862
|
c("span", null, [
|
|
4862
|
-
w(
|
|
4863
|
+
w(n(M), {
|
|
4863
4864
|
name: "folder",
|
|
4864
4865
|
class: "mr-2"
|
|
4865
4866
|
}),
|
|
4866
|
-
U(_
|
|
4867
|
+
U(N(_.name), 1)
|
|
4867
4868
|
])
|
|
4868
4869
|
]),
|
|
4869
4870
|
c("div", null, [
|
|
4870
|
-
w(
|
|
4871
|
+
w(x, {
|
|
4871
4872
|
quaternary: "",
|
|
4872
4873
|
circle: "",
|
|
4873
4874
|
size: "small",
|
|
4874
|
-
title:
|
|
4875
|
-
onClick: (A) => y("directories",
|
|
4875
|
+
title: n(t).btn.delete,
|
|
4876
|
+
onClick: (A) => y("directories", _.path)
|
|
4876
4877
|
}, {
|
|
4877
4878
|
icon: V(() => [
|
|
4878
|
-
w(
|
|
4879
|
+
w(n(M), { name: "close" })
|
|
4879
4880
|
]),
|
|
4880
4881
|
_: 1
|
|
4881
4882
|
}, 8, ["title", "onClick"])
|
|
4882
4883
|
])
|
|
4883
4884
|
]))), 128)),
|
|
4884
|
-
(
|
|
4885
|
+
(g(!0), k(H, null, ae(b.value, (_, j) => (g(), k("div", {
|
|
4885
4886
|
class: "flex justify-between items-center py-1",
|
|
4886
|
-
key: `f-${
|
|
4887
|
+
key: `f-${j}`
|
|
4887
4888
|
}, [
|
|
4888
4889
|
c("div", ka, [
|
|
4889
4890
|
c("span", null, [
|
|
4890
|
-
w(
|
|
4891
|
-
name:
|
|
4891
|
+
w(n(M), {
|
|
4892
|
+
name: _.icon,
|
|
4892
4893
|
class: "mr-2"
|
|
4893
4894
|
}, null, 8, ["name"]),
|
|
4894
|
-
U(_
|
|
4895
|
+
U(N(_.name), 1)
|
|
4895
4896
|
])
|
|
4896
4897
|
]),
|
|
4897
4898
|
c("div", null, [
|
|
4898
|
-
w(
|
|
4899
|
+
w(x, {
|
|
4899
4900
|
quaternary: "",
|
|
4900
4901
|
circle: "",
|
|
4901
4902
|
size: "small",
|
|
4902
|
-
title:
|
|
4903
|
-
onClick: (A) => y("files",
|
|
4903
|
+
title: n(t).btn.delete,
|
|
4904
|
+
onClick: (A) => y("files", _.path)
|
|
4904
4905
|
}, {
|
|
4905
4906
|
icon: V(() => [
|
|
4906
|
-
w(
|
|
4907
|
+
w(n(M), { name: "close" })
|
|
4907
4908
|
]),
|
|
4908
4909
|
_: 1
|
|
4909
4910
|
}, 8, ["title", "onClick"])
|
|
4910
4911
|
])
|
|
4911
4912
|
]))), 128))
|
|
4912
|
-
], 64)) : (
|
|
4913
|
+
], 64)) : (g(), k("span", za, N(n(t).clipboard.none), 1))
|
|
4913
4914
|
]);
|
|
4914
4915
|
};
|
|
4915
4916
|
}
|
|
4916
4917
|
}, xa = { key: 0 }, _a = { key: 1 }, Na = {
|
|
4917
4918
|
__name: "StatusModal",
|
|
4918
4919
|
setup(u, { expose: e }) {
|
|
4919
|
-
const d = Ee(), { lang: t } = Y(), { hideModal: o } = fe(),
|
|
4920
|
+
const d = Ee(), { lang: t } = Y(), { hideModal: o } = fe(), r = s(() => d.errors);
|
|
4920
4921
|
function p() {
|
|
4921
4922
|
d.clearErrors();
|
|
4922
4923
|
}
|
|
4923
4924
|
return e({
|
|
4924
|
-
footerButtons:
|
|
4925
|
-
{ label: t.value.btn.clear, color: "red", icon: "clear", action: p, disabled: !
|
|
4925
|
+
footerButtons: s(() => [
|
|
4926
|
+
{ label: t.value.btn.clear, color: "red", icon: "clear", action: p, disabled: !r.value.length },
|
|
4926
4927
|
{ label: t.value.btn.cancel, color: "black", icon: "close", action: o }
|
|
4927
4928
|
])
|
|
4928
|
-
}), (l,
|
|
4929
|
+
}), (l, b) => {
|
|
4929
4930
|
const y = Ut, z = Rt, f = $t, v = Tt;
|
|
4930
|
-
return
|
|
4931
|
-
|
|
4931
|
+
return g(), k("div", null, [
|
|
4932
|
+
r.value.length ? (g(), k("div", xa, [
|
|
4932
4933
|
w(v, null, {
|
|
4933
4934
|
default: V(() => [
|
|
4934
|
-
(
|
|
4935
|
+
(g(!0), k(H, null, ae(r.value, (F, x) => (g(), ne(f, { key: x }, {
|
|
4935
4936
|
default: V(() => [
|
|
4936
4937
|
w(z, null, {
|
|
4937
4938
|
header: V(() => [
|
|
4938
4939
|
w(y, { type: "error" }, {
|
|
4939
4940
|
default: V(() => [
|
|
4940
|
-
U(
|
|
4941
|
+
U(N(F.status), 1)
|
|
4941
4942
|
]),
|
|
4942
4943
|
_: 2
|
|
4943
4944
|
}, 1024)
|
|
4944
4945
|
]),
|
|
4945
4946
|
default: V(() => [
|
|
4946
|
-
U(" " +
|
|
4947
|
+
U(" " + N(F.message), 1)
|
|
4947
4948
|
]),
|
|
4948
4949
|
_: 2
|
|
4949
4950
|
}, 1024)
|
|
@@ -4953,10 +4954,10 @@ const Oi = { class: "mb-3" }, Bi = {
|
|
|
4953
4954
|
]),
|
|
4954
4955
|
_: 1
|
|
4955
4956
|
})
|
|
4956
|
-
])) : (
|
|
4957
|
+
])) : (g(), k("div", _a, [
|
|
4957
4958
|
w(y, { type: "success" }, {
|
|
4958
4959
|
default: V(() => [
|
|
4959
|
-
U(
|
|
4960
|
+
U(N(n(t).modal.status.noErrors), 1)
|
|
4960
4961
|
]),
|
|
4961
4962
|
_: 1
|
|
4962
4963
|
})
|
|
@@ -4973,45 +4974,45 @@ const Oi = { class: "mb-3" }, Bi = {
|
|
|
4973
4974
|
}, Ea = {
|
|
4974
4975
|
__name: "RenameModal",
|
|
4975
4976
|
setup(u, { expose: e }) {
|
|
4976
|
-
const d = G(), { lang: t } = Y(), { activeManager: o, hideModal:
|
|
4977
|
+
const d = G(), { lang: t } = Y(), { activeManager: o, hideModal: r } = fe(), p = C(""), l = C(!1), b = C(!1), y = C(null), z = s(() => d.getSelectedList(o.value)[0]), f = s(() => l.value || b.value || !p.value), v = s(() => f.value || p.value === z.value?.basename);
|
|
4977
4978
|
be(() => {
|
|
4978
4979
|
p.value = z.value?.basename || "", y.value?.focus();
|
|
4979
4980
|
});
|
|
4980
|
-
function
|
|
4981
|
-
p.value !== z.value?.basename && (z.value?.type === "dir" ? l.value = d.directoryExist(o.value, p.value) :
|
|
4981
|
+
function F() {
|
|
4982
|
+
p.value !== z.value?.basename && (z.value?.type === "dir" ? l.value = d.directoryExist(o.value, p.value) : b.value = d.fileExist(o.value, p.value));
|
|
4982
4983
|
}
|
|
4983
4984
|
function x() {
|
|
4984
|
-
const
|
|
4985
|
+
const _ = z.value.dirname ? `${z.value.dirname}/${p.value}` : p.value;
|
|
4985
4986
|
d.rename({
|
|
4986
4987
|
type: z.value.type,
|
|
4987
|
-
newName:
|
|
4988
|
+
newName: _,
|
|
4988
4989
|
oldName: z.value.path
|
|
4989
4990
|
}).then(() => {
|
|
4990
|
-
|
|
4991
|
+
r();
|
|
4991
4992
|
});
|
|
4992
4993
|
}
|
|
4993
4994
|
return e({
|
|
4994
|
-
footerButtons:
|
|
4995
|
+
footerButtons: s(() => [
|
|
4995
4996
|
{ label: t.value.btn.submit, color: "green", icon: "edit", action: x, disabled: v.value },
|
|
4996
|
-
{ label: t.value.btn.cancel, color: "black", icon: "close", action:
|
|
4997
|
+
{ label: t.value.btn.cancel, color: "black", icon: "close", action: r }
|
|
4997
4998
|
])
|
|
4998
|
-
}), (
|
|
4999
|
-
const
|
|
5000
|
-
return
|
|
5001
|
-
c("label", Sa,
|
|
5002
|
-
w(
|
|
4999
|
+
}), (_, j) => {
|
|
5000
|
+
const A = dt;
|
|
5001
|
+
return g(), k("div", Fa, [
|
|
5002
|
+
c("label", Sa, N(n(t).modal.rename.fieldName), 1),
|
|
5003
|
+
w(A, {
|
|
5003
5004
|
id: "fm-input-rename",
|
|
5004
5005
|
ref_key: "renameInput",
|
|
5005
5006
|
ref: y,
|
|
5006
5007
|
value: p.value,
|
|
5007
|
-
"onUpdate:value":
|
|
5008
|
+
"onUpdate:value": j[0] || (j[0] = (T) => p.value = T),
|
|
5008
5009
|
status: f.value && p.value ? "error" : void 0,
|
|
5009
5010
|
onKeyup: [
|
|
5010
|
-
|
|
5011
|
-
|
|
5011
|
+
F,
|
|
5012
|
+
j[1] || (j[1] = Qe((T) => !v.value && x(), ["enter"]))
|
|
5012
5013
|
]
|
|
5013
5014
|
}, null, 8, ["value", "status"]),
|
|
5014
|
-
f.value && p.value ? (
|
|
5015
|
+
f.value && p.value ? (g(), k("div", Ca, N(n(t).modal.rename.fieldFeedback) + " " + N(l.value ? ` - ${n(t).modal.rename.directoryExist}` : "") + " " + N(b.value ? ` - ${n(t).modal.rename.fileExist}` : ""), 1)) : ee("", !0)
|
|
5015
5016
|
]);
|
|
5016
5017
|
};
|
|
5017
5018
|
}
|
|
@@ -5027,119 +5028,119 @@ const Oi = { class: "mb-3" }, Bi = {
|
|
|
5027
5028
|
}, Va = {
|
|
5028
5029
|
__name: "PropertiesModal",
|
|
5029
5030
|
setup(u, { expose: e }) {
|
|
5030
|
-
const d = G(), { lang: t } = Y(), { bytesToHuman: o, timestampToDate:
|
|
5031
|
+
const d = G(), { lang: t } = Y(), { bytesToHuman: o, timestampToDate: r } = Be(), { hideModal: p } = fe(), l = s(() => d.selectedDisk), b = s(() => d.selectedItems[0]);
|
|
5031
5032
|
function y(z) {
|
|
5032
5033
|
navigator.clipboard.writeText(z).then(() => {
|
|
5033
|
-
|
|
5034
|
+
Je({
|
|
5034
5035
|
content: t.value.notifications.copyToClipboard,
|
|
5035
5036
|
type: "success"
|
|
5036
5037
|
});
|
|
5037
5038
|
});
|
|
5038
5039
|
}
|
|
5039
5040
|
return e({
|
|
5040
|
-
footerButtons:
|
|
5041
|
+
footerButtons: s(() => [
|
|
5041
5042
|
{ label: t.value.btn.cancel, color: "black", icon: "close", action: p }
|
|
5042
5043
|
])
|
|
5043
|
-
}), (z, f) => (
|
|
5044
|
+
}), (z, f) => (g(), k("div", null, [
|
|
5044
5045
|
c("div", Pa, [
|
|
5045
5046
|
c("div", null, [
|
|
5046
|
-
c("strong", null,
|
|
5047
|
+
c("strong", null, N(n(t).modal.properties.disk) + ":", 1)
|
|
5047
5048
|
]),
|
|
5048
|
-
c("div", null,
|
|
5049
|
+
c("div", null, N(l.value), 1),
|
|
5049
5050
|
c("div", ja, [
|
|
5050
|
-
w(
|
|
5051
|
+
w(n(M), {
|
|
5051
5052
|
onClick: f[0] || (f[0] = (v) => y(l.value)),
|
|
5052
|
-
title:
|
|
5053
|
+
title: n(t).clipboard.copy,
|
|
5053
5054
|
name: "copy"
|
|
5054
5055
|
}, null, 8, ["title"])
|
|
5055
5056
|
])
|
|
5056
5057
|
]),
|
|
5057
5058
|
c("div", Da, [
|
|
5058
5059
|
c("div", null, [
|
|
5059
|
-
c("strong", null,
|
|
5060
|
+
c("strong", null, N(n(t).modal.properties.name) + ":", 1)
|
|
5060
5061
|
]),
|
|
5061
|
-
c("div", Ma,
|
|
5062
|
+
c("div", Ma, N(b.value.basename), 1),
|
|
5062
5063
|
c("div", Aa, [
|
|
5063
|
-
w(
|
|
5064
|
-
onClick: f[1] || (f[1] = (v) => y(
|
|
5065
|
-
title:
|
|
5064
|
+
w(n(M), {
|
|
5065
|
+
onClick: f[1] || (f[1] = (v) => y(b.value.basename)),
|
|
5066
|
+
title: n(t).clipboard.copy,
|
|
5066
5067
|
name: "copy"
|
|
5067
5068
|
}, null, 8, ["title"])
|
|
5068
5069
|
])
|
|
5069
5070
|
]),
|
|
5070
5071
|
c("div", Ta, [
|
|
5071
5072
|
c("div", null, [
|
|
5072
|
-
c("strong", null,
|
|
5073
|
+
c("strong", null, N(n(t).modal.properties.path) + ":", 1)
|
|
5073
5074
|
]),
|
|
5074
|
-
c("div", $a,
|
|
5075
|
+
c("div", $a, N(b.value.path), 1),
|
|
5075
5076
|
c("div", Ra, [
|
|
5076
|
-
w(
|
|
5077
|
-
onClick: f[2] || (f[2] = (v) => y(
|
|
5078
|
-
title:
|
|
5077
|
+
w(n(M), {
|
|
5078
|
+
onClick: f[2] || (f[2] = (v) => y(b.value.path)),
|
|
5079
|
+
title: n(t).clipboard.copy,
|
|
5079
5080
|
name: "copy"
|
|
5080
5081
|
}, null, 8, ["title"])
|
|
5081
5082
|
])
|
|
5082
5083
|
]),
|
|
5083
|
-
|
|
5084
|
+
b.value.type === "file" ? (g(), k("div", Ua, [
|
|
5084
5085
|
c("div", null, [
|
|
5085
|
-
c("strong", null,
|
|
5086
|
+
c("strong", null, N(n(t).modal.properties.size) + ":", 1)
|
|
5086
5087
|
]),
|
|
5087
|
-
c("div", null,
|
|
5088
|
+
c("div", null, N(n(o)(b.value.size)), 1),
|
|
5088
5089
|
c("div", Oa, [
|
|
5089
|
-
w(
|
|
5090
|
-
onClick: f[3] || (f[3] = (v) => y(
|
|
5091
|
-
title:
|
|
5090
|
+
w(n(M), {
|
|
5091
|
+
onClick: f[3] || (f[3] = (v) => y(n(o)(b.value.size))),
|
|
5092
|
+
title: n(t).clipboard.copy,
|
|
5092
5093
|
name: "copy"
|
|
5093
5094
|
}, null, 8, ["title"])
|
|
5094
5095
|
])
|
|
5095
|
-
])) :
|
|
5096
|
-
|
|
5096
|
+
])) : ee("", !0),
|
|
5097
|
+
b.value.hasOwnProperty("timestamp") ? (g(), k("div", Ba, [
|
|
5097
5098
|
c("div", null, [
|
|
5098
|
-
c("strong", null,
|
|
5099
|
+
c("strong", null, N(n(t).modal.properties.modified) + ":", 1)
|
|
5099
5100
|
]),
|
|
5100
|
-
c("div", null,
|
|
5101
|
+
c("div", null, N(n(r)(b.value.timestamp)), 1),
|
|
5101
5102
|
c("div", La, [
|
|
5102
|
-
w(
|
|
5103
|
-
onClick: f[4] || (f[4] = (v) => y(r
|
|
5104
|
-
title:
|
|
5103
|
+
w(n(M), {
|
|
5104
|
+
onClick: f[4] || (f[4] = (v) => y(n(r)(b.value.timestamp))),
|
|
5105
|
+
title: n(t).clipboard.copy,
|
|
5105
5106
|
name: "copy"
|
|
5106
5107
|
}, null, 8, ["title"])
|
|
5107
5108
|
])
|
|
5108
|
-
])) :
|
|
5109
|
-
|
|
5110
|
-
c("div", null,
|
|
5111
|
-
c("div", null,
|
|
5112
|
-
])) :
|
|
5109
|
+
])) : ee("", !0),
|
|
5110
|
+
b.value.hasOwnProperty("acl") ? (g(), k("div", Ia, [
|
|
5111
|
+
c("div", null, N(n(t).modal.properties.access) + ":", 1),
|
|
5112
|
+
c("div", null, N(n(t).modal.properties["access_" + b.value.acl]), 1)
|
|
5113
|
+
])) : ee("", !0)
|
|
5113
5114
|
]));
|
|
5114
5115
|
}
|
|
5115
5116
|
}, Ka = { class: "flex flex-col" }, qa = { class: "text-sm text-stone-500 mb-2" }, Ga = { class: "flex text-center justify-center items-center min-h-[200px]" }, Ha = ["src", "alt"], Za = {
|
|
5116
5117
|
__name: "PreviewModal",
|
|
5117
5118
|
setup(u, { expose: e }) {
|
|
5118
|
-
const d = G(), t = oe(), { lang: o } = Y(), { hideModal:
|
|
5119
|
+
const d = G(), t = oe(), { lang: o } = Y(), { hideModal: r } = fe(), p = C(null), l = s(() => t.authHeader), b = s(() => d.selectedDisk), y = s(() => d.selectedItems[0]), z = s(() => Math.min(window.innerHeight - 300, 600));
|
|
5119
5120
|
function f() {
|
|
5120
|
-
l.value ? pe.preview(
|
|
5121
|
-
const
|
|
5122
|
-
p.value = `data:${
|
|
5123
|
-
}) : p.value = `${t.baseUrl}preview?disk=${
|
|
5121
|
+
l.value ? pe.preview(b.value, y.value.path).then((v) => {
|
|
5122
|
+
const F = v.headers["content-type"].toLowerCase(), x = btoa(String.fromCharCode.apply(null, new Uint8Array(v.data)));
|
|
5123
|
+
p.value = `data:${F};base64,${x}`;
|
|
5124
|
+
}) : p.value = `${t.baseUrl}preview?disk=${b.value}&path=${encodeURIComponent(y.value.path)}&v=${y.value.timestamp}`;
|
|
5124
5125
|
}
|
|
5125
5126
|
return be(() => {
|
|
5126
5127
|
f();
|
|
5127
5128
|
}), e({
|
|
5128
|
-
footerButtons:
|
|
5129
|
-
{ label: o.value.btn.cancel, color: "black", icon: "close", action:
|
|
5129
|
+
footerButtons: s(() => [
|
|
5130
|
+
{ label: o.value.btn.cancel, color: "black", icon: "close", action: r }
|
|
5130
5131
|
])
|
|
5131
|
-
}), (v,
|
|
5132
|
+
}), (v, F) => {
|
|
5132
5133
|
const x = ut;
|
|
5133
|
-
return
|
|
5134
|
-
c("div", qa,
|
|
5134
|
+
return g(), k("div", Ka, [
|
|
5135
|
+
c("div", qa, N(y.value?.basename), 1),
|
|
5135
5136
|
c("div", Ga, [
|
|
5136
|
-
p.value ? (
|
|
5137
|
+
p.value ? (g(), k("img", {
|
|
5137
5138
|
key: 1,
|
|
5138
5139
|
src: p.value,
|
|
5139
5140
|
alt: y.value?.basename,
|
|
5140
|
-
style:
|
|
5141
|
+
style: Oe({ "max-height": z.value + "px" }),
|
|
5141
5142
|
class: "max-w-full"
|
|
5142
|
-
}, null, 12, Ha)) : (
|
|
5143
|
+
}, null, 12, Ha)) : (g(), ne(x, {
|
|
5143
5144
|
key: 0,
|
|
5144
5145
|
size: "large"
|
|
5145
5146
|
}))
|
|
@@ -5150,72 +5151,72 @@ const Oi = { class: "mb-3" }, Bi = {
|
|
|
5150
5151
|
}, Wa = { class: "flex flex-col" }, Ya = { class: "text-sm text-stone-500 mb-2" }, Xa = ["onKeydown"], Ja = {
|
|
5151
5152
|
__name: "TextEditModal",
|
|
5152
5153
|
setup(u, { expose: e }) {
|
|
5153
|
-
const d = G(), { lang: t } = Y(), { hideModal: o } = fe(),
|
|
5154
|
+
const d = G(), { lang: t } = Y(), { hideModal: o } = fe(), r = C(""), p = C(!1), l = C(null), b = C(null), y = s(() => d.selectedDisk), z = s(() => d.selectedItems[0]), f = s(() => Math.min(window.innerHeight - 300, 500)), v = s(() => r.value.split(`
|
|
5154
5155
|
`).length);
|
|
5155
|
-
function
|
|
5156
|
-
|
|
5156
|
+
function F() {
|
|
5157
|
+
b.value && l.value && (b.value.scrollTop = l.value.scrollTop);
|
|
5157
5158
|
}
|
|
5158
|
-
function x(
|
|
5159
|
-
const
|
|
5160
|
-
|
|
5161
|
-
|
|
5159
|
+
function x(A) {
|
|
5160
|
+
const T = A.target, E = T.selectionStart, K = T.selectionEnd;
|
|
5161
|
+
r.value = r.value.substring(0, E) + " " + r.value.substring(K), _(() => {
|
|
5162
|
+
T.selectionStart = T.selectionEnd = E + 1;
|
|
5162
5163
|
});
|
|
5163
5164
|
}
|
|
5164
|
-
function
|
|
5165
|
-
setTimeout(
|
|
5165
|
+
function _(A) {
|
|
5166
|
+
setTimeout(A, 0);
|
|
5166
5167
|
}
|
|
5167
|
-
function
|
|
5168
|
-
const
|
|
5169
|
-
|
|
5170
|
-
|
|
5168
|
+
function j() {
|
|
5169
|
+
const A = new FormData();
|
|
5170
|
+
A.append("disk", y.value), A.append("path", z.value.dirname), A.append("file", new Blob([r.value]), z.value.basename), d.updateFile(A).then((T) => {
|
|
5171
|
+
T.data.result.status === "success" && o();
|
|
5171
5172
|
});
|
|
5172
5173
|
}
|
|
5173
5174
|
return be(() => {
|
|
5174
5175
|
d.getFile({
|
|
5175
5176
|
disk: y.value,
|
|
5176
5177
|
path: z.value.path
|
|
5177
|
-
}).then((
|
|
5178
|
-
|
|
5178
|
+
}).then((A) => {
|
|
5179
|
+
r.value = A.data, p.value = !0;
|
|
5179
5180
|
}).catch(() => {
|
|
5180
5181
|
o();
|
|
5181
5182
|
});
|
|
5182
5183
|
}), e({
|
|
5183
|
-
footerButtons:
|
|
5184
|
-
{ label: t.value.btn.submit, color: "green", icon: "save", action:
|
|
5184
|
+
footerButtons: s(() => [
|
|
5185
|
+
{ label: t.value.btn.submit, color: "green", icon: "save", action: j },
|
|
5185
5186
|
{ label: t.value.btn.cancel, color: "black", icon: "close", action: o }
|
|
5186
5187
|
])
|
|
5187
|
-
}), (
|
|
5188
|
-
const
|
|
5189
|
-
return
|
|
5190
|
-
c("div", Ya,
|
|
5191
|
-
p.value ? (
|
|
5188
|
+
}), (A, T) => {
|
|
5189
|
+
const E = ut;
|
|
5190
|
+
return g(), k("div", Wa, [
|
|
5191
|
+
c("div", Ya, N(z.value?.basename), 1),
|
|
5192
|
+
p.value ? (g(), k("div", {
|
|
5192
5193
|
key: 0,
|
|
5193
5194
|
class: "code-editor",
|
|
5194
|
-
style:
|
|
5195
|
+
style: Oe({ height: f.value + "px" })
|
|
5195
5196
|
}, [
|
|
5196
5197
|
c("div", {
|
|
5197
5198
|
class: "line-numbers",
|
|
5198
5199
|
ref_key: "lineNumbersRef",
|
|
5199
|
-
ref:
|
|
5200
|
+
ref: b
|
|
5200
5201
|
}, [
|
|
5201
|
-
(
|
|
5202
|
+
(g(!0), k(H, null, ae(v.value, (K) => (g(), k("span", { key: K }, N(K), 1))), 128))
|
|
5202
5203
|
], 512),
|
|
5203
|
-
|
|
5204
|
+
Q(c("textarea", {
|
|
5204
5205
|
ref_key: "textareaRef",
|
|
5205
5206
|
ref: l,
|
|
5206
|
-
"onUpdate:modelValue":
|
|
5207
|
+
"onUpdate:modelValue": T[0] || (T[0] = (K) => r.value = K),
|
|
5207
5208
|
spellcheck: "false",
|
|
5208
|
-
onScroll:
|
|
5209
|
-
onKeydown:
|
|
5209
|
+
onScroll: F,
|
|
5210
|
+
onKeydown: Qe(ot(x, ["prevent"]), ["tab"])
|
|
5210
5211
|
}, null, 40, Xa), [
|
|
5211
|
-
[xt,
|
|
5212
|
+
[xt, r.value]
|
|
5212
5213
|
])
|
|
5213
|
-
], 4)) : (
|
|
5214
|
+
], 4)) : (g(), k("div", {
|
|
5214
5215
|
key: 1,
|
|
5215
5216
|
class: "flex justify-center items-center",
|
|
5216
|
-
style:
|
|
5217
|
+
style: Oe({ height: f.value + "px" })
|
|
5217
5218
|
}, [
|
|
5218
|
-
w(
|
|
5219
|
+
w(E, { size: "large" })
|
|
5219
5220
|
], 4))
|
|
5220
5221
|
]);
|
|
5221
5222
|
};
|
|
@@ -5223,72 +5224,72 @@ const Oi = { class: "mb-3" }, Bi = {
|
|
|
5223
5224
|
}, Qa = /* @__PURE__ */ rt(Ja, [["__scopeId", "data-v-f763a470"]]), eo = { class: "fm-modal-audio-player" }, to = { class: "truncate flex-1" }, io = { class: "text-stone-400 mr-2" }, ao = {
|
|
5224
5225
|
__name: "AudioPlayerModal",
|
|
5225
5226
|
setup(u, { expose: e }) {
|
|
5226
|
-
const d = G(), t = oe(), o =
|
|
5227
|
-
function y(
|
|
5228
|
-
return `${t.baseUrl}/stream-file?disk=${l.value}&path=${encodeURIComponent(
|
|
5227
|
+
const d = G(), t = oe(), o = C(null), r = C(0), p = C("paused"), l = s(() => d.selectedDisk), b = s(() => d.selectedItems);
|
|
5228
|
+
function y(F) {
|
|
5229
|
+
return `${t.baseUrl}/stream-file?disk=${l.value}&path=${encodeURIComponent(b.value[F].path)}`;
|
|
5229
5230
|
}
|
|
5230
|
-
function z(
|
|
5231
|
-
o.value.src = y(
|
|
5231
|
+
function z(F) {
|
|
5232
|
+
o.value.src = y(F);
|
|
5232
5233
|
}
|
|
5233
|
-
function f(
|
|
5234
|
-
o.value.paused || (o.value.pause(), o.value.currentTime = 0), z(
|
|
5234
|
+
function f(F) {
|
|
5235
|
+
o.value.paused || (o.value.pause(), o.value.currentTime = 0), z(F), o.value.play(), r.value = F;
|
|
5235
5236
|
}
|
|
5236
5237
|
function v() {
|
|
5237
5238
|
o.value.paused ? o.value.play() : o.value.pause();
|
|
5238
5239
|
}
|
|
5239
5240
|
return be(() => {
|
|
5240
|
-
z(
|
|
5241
|
+
z(r.value), o.value.addEventListener("play", () => {
|
|
5241
5242
|
p.value = "playing";
|
|
5242
5243
|
}), o.value.addEventListener("pause", () => {
|
|
5243
5244
|
p.value = "paused";
|
|
5244
5245
|
}), o.value.addEventListener("ended", () => {
|
|
5245
|
-
|
|
5246
|
+
b.value.length > r.value + 1 && f(r.value + 1);
|
|
5246
5247
|
});
|
|
5247
5248
|
}), e({
|
|
5248
|
-
footerButtons:
|
|
5249
|
-
}), (
|
|
5250
|
-
const
|
|
5251
|
-
return
|
|
5249
|
+
footerButtons: s(() => [])
|
|
5250
|
+
}), (F, x) => {
|
|
5251
|
+
const _ = ct;
|
|
5252
|
+
return g(), k("div", eo, [
|
|
5252
5253
|
c("audio", {
|
|
5253
5254
|
ref_key: "fmAudio",
|
|
5254
5255
|
ref: o,
|
|
5255
5256
|
controls: "",
|
|
5256
5257
|
class: "w-full"
|
|
5257
5258
|
}, null, 512),
|
|
5258
|
-
w(
|
|
5259
|
-
(
|
|
5260
|
-
class: de(["flex justify-between items-center py-2 px-2 rounded cursor-pointer",
|
|
5259
|
+
w(n(Ue)),
|
|
5260
|
+
(g(!0), k(H, null, ae(b.value, (j, A) => (g(), k("div", {
|
|
5261
|
+
class: de(["flex justify-between items-center py-2 px-2 rounded cursor-pointer", r.value === A ? "bg-stone-100 dark:bg-stone-800" : "hover:bg-stone-50 dark:hover:bg-stone-900"]),
|
|
5261
5262
|
key: A
|
|
5262
5263
|
}, [
|
|
5263
5264
|
c("div", to, [
|
|
5264
|
-
c("span", io,
|
|
5265
|
-
U(" " +
|
|
5265
|
+
c("span", io, N(A) + ".", 1),
|
|
5266
|
+
U(" " + N(j.basename), 1)
|
|
5266
5267
|
]),
|
|
5267
|
-
|
|
5268
|
+
r.value === A ? (g(), ne(_, {
|
|
5268
5269
|
key: 0,
|
|
5269
5270
|
quaternary: "",
|
|
5270
5271
|
circle: "",
|
|
5271
|
-
onClick: x[0] || (x[0] = (
|
|
5272
|
+
onClick: x[0] || (x[0] = (T) => v())
|
|
5272
5273
|
}, {
|
|
5273
5274
|
icon: V(() => [
|
|
5274
|
-
p.value === "playing" ? (
|
|
5275
|
+
p.value === "playing" ? (g(), ne(n(M), {
|
|
5275
5276
|
key: 0,
|
|
5276
5277
|
name: "close"
|
|
5277
|
-
})) : (
|
|
5278
|
+
})) : (g(), ne(n(M), {
|
|
5278
5279
|
key: 1,
|
|
5279
5280
|
name: "play",
|
|
5280
5281
|
class: "text-blue-500"
|
|
5281
5282
|
}))
|
|
5282
5283
|
]),
|
|
5283
5284
|
_: 1
|
|
5284
|
-
})) : (
|
|
5285
|
+
})) : (g(), ne(_, {
|
|
5285
5286
|
key: 1,
|
|
5286
5287
|
quaternary: "",
|
|
5287
5288
|
circle: "",
|
|
5288
|
-
onClick: (
|
|
5289
|
+
onClick: (T) => f(A)
|
|
5289
5290
|
}, {
|
|
5290
5291
|
icon: V(() => [
|
|
5291
|
-
w(
|
|
5292
|
+
w(n(M), { name: "play" })
|
|
5292
5293
|
]),
|
|
5293
5294
|
_: 1
|
|
5294
5295
|
}, 8, ["onClick"]))
|
|
@@ -5299,13 +5300,13 @@ const Oi = { class: "mb-3" }, Bi = {
|
|
|
5299
5300
|
}, oo = { class: "fm-modal-video-player" }, lo = { class: "text-sm text-stone-500 mb-2" }, no = ["src"], so = {
|
|
5300
5301
|
__name: "VideoPlayerModal",
|
|
5301
5302
|
setup(u, { expose: e }) {
|
|
5302
|
-
const d = G(), t = oe(), o =
|
|
5303
|
-
() => `${t.baseUrl}/stream-file?disk=${o.value}&path=${encodeURIComponent(
|
|
5303
|
+
const d = G(), t = oe(), o = s(() => d.selectedDisk), r = s(() => d.selectedItems[0]), p = s(
|
|
5304
|
+
() => `${t.baseUrl}/stream-file?disk=${o.value}&path=${encodeURIComponent(r.value.path)}`
|
|
5304
5305
|
);
|
|
5305
5306
|
return e({
|
|
5306
|
-
footerButtons:
|
|
5307
|
-
}), (l,
|
|
5308
|
-
c("div", lo,
|
|
5307
|
+
footerButtons: s(() => [])
|
|
5308
|
+
}), (l, b) => (g(), k("div", oo, [
|
|
5309
|
+
c("div", lo, N(r.value?.basename), 1),
|
|
5309
5310
|
c("video", {
|
|
5310
5311
|
controls: "",
|
|
5311
5312
|
src: p.value,
|
|
@@ -5316,46 +5317,46 @@ const Oi = { class: "mb-3" }, Bi = {
|
|
|
5316
5317
|
}, ro = {
|
|
5317
5318
|
__name: "AboutModal",
|
|
5318
5319
|
setup(u, { expose: e }) {
|
|
5319
|
-
const d = oe(), { lang: t } = Y(), { hideModal: o } = fe(),
|
|
5320
|
+
const d = oe(), { lang: t } = Y(), { hideModal: o } = fe(), r = s(() => d.version);
|
|
5320
5321
|
return e({
|
|
5321
|
-
footerButtons:
|
|
5322
|
+
footerButtons: s(() => [
|
|
5322
5323
|
{ label: t.value.btn.cancel, color: "black", icon: "close", action: o }
|
|
5323
5324
|
])
|
|
5324
5325
|
}), (p, l) => {
|
|
5325
|
-
const
|
|
5326
|
-
return
|
|
5327
|
-
c("strong", null,
|
|
5328
|
-
w(
|
|
5329
|
-
w(
|
|
5326
|
+
const b = Bt, y = Ot;
|
|
5327
|
+
return g(), k("div", null, [
|
|
5328
|
+
c("strong", null, N(n(t).modal.about.name), 1),
|
|
5329
|
+
w(n(Ue)),
|
|
5330
|
+
w(y, {
|
|
5330
5331
|
column: 1,
|
|
5331
5332
|
"label-placement": "left"
|
|
5332
5333
|
}, {
|
|
5333
5334
|
default: V(() => [
|
|
5334
|
-
w(
|
|
5335
|
-
label:
|
|
5335
|
+
w(b, {
|
|
5336
|
+
label: n(t).modal.about.version
|
|
5336
5337
|
}, {
|
|
5337
5338
|
default: V(() => [
|
|
5338
|
-
U(
|
|
5339
|
+
U(N(r.value), 1)
|
|
5339
5340
|
]),
|
|
5340
5341
|
_: 1
|
|
5341
5342
|
}, 8, ["label"]),
|
|
5342
|
-
w(
|
|
5343
|
-
label:
|
|
5343
|
+
w(b, {
|
|
5344
|
+
label: n(t).modal.about.developer
|
|
5344
5345
|
}, {
|
|
5345
5346
|
default: V(() => [...l[0] || (l[0] = [
|
|
5346
5347
|
U(" Aleksandr Manekin (alexusmai@gmail.com) ", -1)
|
|
5347
5348
|
])]),
|
|
5348
5349
|
_: 1
|
|
5349
5350
|
}, 8, ["label"]),
|
|
5350
|
-
w(
|
|
5351
|
-
label:
|
|
5351
|
+
w(b, {
|
|
5352
|
+
label: n(t).modal.about.developer
|
|
5352
5353
|
}, {
|
|
5353
5354
|
default: V(() => [...l[1] || (l[1] = [
|
|
5354
5355
|
U(" Nikita Kuznetsov (nikita.hldm@gmail.com) ", -1)
|
|
5355
5356
|
])]),
|
|
5356
5357
|
_: 1
|
|
5357
5358
|
}, 8, ["label"]),
|
|
5358
|
-
w(
|
|
5359
|
+
w(b, { label: "GitHub" }, {
|
|
5359
5360
|
default: V(() => [...l[2] || (l[2] = [
|
|
5360
5361
|
c("a", {
|
|
5361
5362
|
class: "font-medium text-blue-600 dark:text-blue-500 hover:underline",
|
|
@@ -5387,74 +5388,74 @@ const Oi = { class: "mb-3" }, Bi = {
|
|
|
5387
5388
|
}, fo = {
|
|
5388
5389
|
__name: "PluginEditorModal",
|
|
5389
5390
|
setup(u, { expose: e }) {
|
|
5390
|
-
const d = G(), t = ge(), { lang: o } = Y(), { gameCode:
|
|
5391
|
-
function
|
|
5391
|
+
const d = G(), t = ge(), { lang: o } = Y(), { gameCode: r, gameName: p } = ft(), l = C(null), b = C(!1), y = C(null), z = s(() => t.pluginEditorState), f = s(() => z.value?.pluginId), v = s(() => z.value?.editor), F = s(() => z.value?.file), x = s(() => F.value?.basename || ""), _ = s(() => F.value?.path || ""), j = s(() => F.value?.extension || ""), A = s(() => v.value?.component ? _t(v.value.component) : null), T = s(() => v.value?.readOnly || !1), E = s(() => v.value?.contentType || "text"), K = s(() => d.selectedDisk);
|
|
5392
|
+
function X(L) {
|
|
5392
5393
|
const Z = new FormData();
|
|
5393
|
-
Z.append("disk", K.value), Z.append("path",
|
|
5394
|
-
const ue =
|
|
5395
|
-
Z.append("file", ue,
|
|
5394
|
+
Z.append("disk", K.value), Z.append("path", F.value.dirname);
|
|
5395
|
+
const ue = E.value === "binary" ? new Blob([L]) : new Blob([L], { type: "text/plain" });
|
|
5396
|
+
Z.append("file", ue, F.value.basename), d.updateFile(Z).then((le) => {
|
|
5396
5397
|
le.data.result.status === "success" && t.clearModal();
|
|
5397
5398
|
});
|
|
5398
5399
|
}
|
|
5399
|
-
function
|
|
5400
|
+
function ce() {
|
|
5400
5401
|
y.value?.save && y.value.save();
|
|
5401
5402
|
}
|
|
5402
|
-
function
|
|
5403
|
+
function ie() {
|
|
5403
5404
|
t.clearModal();
|
|
5404
5405
|
}
|
|
5405
5406
|
return be(() => {
|
|
5406
|
-
if (!
|
|
5407
|
+
if (!F.value || !v.value) {
|
|
5407
5408
|
t.clearModal();
|
|
5408
5409
|
return;
|
|
5409
5410
|
}
|
|
5410
|
-
|
|
5411
|
+
E.value === "binary" ? d.getFileArrayBuffer({
|
|
5411
5412
|
disk: K.value,
|
|
5412
|
-
path:
|
|
5413
|
+
path: F.value.path
|
|
5413
5414
|
}).then((L) => {
|
|
5414
|
-
l.value = L.data,
|
|
5415
|
+
l.value = L.data, b.value = !0;
|
|
5415
5416
|
}).catch(() => {
|
|
5416
5417
|
t.clearModal();
|
|
5417
5418
|
}) : d.getFile({
|
|
5418
5419
|
disk: K.value,
|
|
5419
|
-
path:
|
|
5420
|
+
path: F.value.path
|
|
5420
5421
|
}).then((L) => {
|
|
5421
|
-
l.value = L.data,
|
|
5422
|
+
l.value = L.data, b.value = !0;
|
|
5422
5423
|
}).catch(() => {
|
|
5423
5424
|
t.clearModal();
|
|
5424
5425
|
});
|
|
5425
5426
|
}), e({
|
|
5426
|
-
footerButtons:
|
|
5427
|
+
footerButtons: s(() => {
|
|
5427
5428
|
const L = [];
|
|
5428
|
-
return
|
|
5429
|
+
return T.value || L.push({
|
|
5429
5430
|
label: o.value.btn.submit,
|
|
5430
5431
|
color: "green",
|
|
5431
5432
|
icon: "save",
|
|
5432
|
-
action:
|
|
5433
|
+
action: ce
|
|
5433
5434
|
}), L.push({
|
|
5434
5435
|
label: o.value.btn.cancel,
|
|
5435
5436
|
color: "black",
|
|
5436
5437
|
icon: "close",
|
|
5437
|
-
action:
|
|
5438
|
+
action: ie
|
|
5438
5439
|
}), L;
|
|
5439
5440
|
})
|
|
5440
5441
|
}), (L, Z) => {
|
|
5441
5442
|
const ue = ut;
|
|
5442
|
-
return
|
|
5443
|
-
|
|
5444
|
-
(
|
|
5443
|
+
return g(), k("div", co, [
|
|
5444
|
+
b.value ? (g(), k("div", uo, [
|
|
5445
|
+
(g(), ne(bt(A.value), {
|
|
5445
5446
|
ref_key: "editorRef",
|
|
5446
5447
|
ref: y,
|
|
5447
5448
|
content: l.value,
|
|
5448
|
-
"file-path":
|
|
5449
|
+
"file-path": _.value,
|
|
5449
5450
|
"file-name": x.value,
|
|
5450
|
-
extension:
|
|
5451
|
-
"game-code": r
|
|
5452
|
-
"game-name":
|
|
5451
|
+
extension: j.value,
|
|
5452
|
+
"game-code": n(r),
|
|
5453
|
+
"game-name": n(p),
|
|
5453
5454
|
"plugin-id": f.value,
|
|
5454
|
-
onSave:
|
|
5455
|
-
onClose:
|
|
5455
|
+
onSave: X,
|
|
5456
|
+
onClose: ie
|
|
5456
5457
|
}, null, 40, ["content", "file-path", "file-name", "extension", "game-code", "game-name", "plugin-id"]))
|
|
5457
|
-
])) : (
|
|
5458
|
+
])) : (g(), k("div", po, [
|
|
5458
5459
|
w(ue, { size: "large" })
|
|
5459
5460
|
]))
|
|
5460
5461
|
]);
|
|
@@ -5463,7 +5464,7 @@ const Oi = { class: "mb-3" }, Bi = {
|
|
|
5463
5464
|
}, mo = /* @__PURE__ */ rt(fo, [["__scopeId", "data-v-e8717796"]]), vo = {
|
|
5464
5465
|
__name: "ModalBlock",
|
|
5465
5466
|
setup(u) {
|
|
5466
|
-
const e = ge(), d = st(), { lang: t } = Y(), o =
|
|
5467
|
+
const e = ge(), d = st(), { lang: t } = Y(), o = C(null), r = {
|
|
5467
5468
|
NewFileModal: Ii,
|
|
5468
5469
|
NewFolderModal: Gi,
|
|
5469
5470
|
UploadModal: oa,
|
|
@@ -5478,12 +5479,12 @@ const Oi = { class: "mb-3" }, Bi = {
|
|
|
5478
5479
|
VideoPlayerModal: so,
|
|
5479
5480
|
AboutModal: ro,
|
|
5480
5481
|
PluginEditorModal: mo
|
|
5481
|
-
}, p =
|
|
5482
|
+
}, p = s({
|
|
5482
5483
|
get: () => e.showModal,
|
|
5483
5484
|
set: (f) => {
|
|
5484
5485
|
f || e.clearModal();
|
|
5485
5486
|
}
|
|
5486
|
-
}), l =
|
|
5487
|
+
}), l = s(() => e.modalName), b = s(() => ({
|
|
5487
5488
|
NewFileModal: { title: t.value.modal.newFile.title, width: "600px" },
|
|
5488
5489
|
NewFolderModal: { title: t.value.modal.newFolder.title, width: "600px" },
|
|
5489
5490
|
UploadModal: { title: t.value.modal.upload.title, width: "600px" },
|
|
@@ -5498,22 +5499,22 @@ const Oi = { class: "mb-3" }, Bi = {
|
|
|
5498
5499
|
VideoPlayerModal: { title: t.value.modal.videoPlayer.title, width: "800px" },
|
|
5499
5500
|
AboutModal: { title: t.value.modal.about.title, width: "600px" },
|
|
5500
5501
|
PluginEditorModal: { title: d.resolvePluginText(e.pluginEditorState?.pluginId, e.pluginEditorState?.editor?.name) || t.value.modal.editor.title, width: "1000px" }
|
|
5501
|
-
})), y =
|
|
5502
|
+
})), y = s(() => b.value[l.value]), z = s(() => o.value?.footerButtons || []);
|
|
5502
5503
|
return (f, v) => {
|
|
5503
|
-
const
|
|
5504
|
-
return
|
|
5504
|
+
const F = Lt;
|
|
5505
|
+
return g(), ne(F, {
|
|
5505
5506
|
show: p.value,
|
|
5506
5507
|
"onUpdate:show": v[0] || (v[0] = (x) => p.value = x),
|
|
5507
5508
|
class: "custom-card",
|
|
5508
5509
|
preset: "card",
|
|
5509
5510
|
title: y.value?.title,
|
|
5510
5511
|
bordered: !1,
|
|
5511
|
-
style:
|
|
5512
|
+
style: Oe({ width: y.value?.width || "600px" }),
|
|
5512
5513
|
segmented: { content: "soft", footer: "soft" },
|
|
5513
5514
|
"transform-origin": "center"
|
|
5514
5515
|
}, Nt({
|
|
5515
5516
|
default: V(() => [
|
|
5516
|
-
(
|
|
5517
|
+
(g(), ne(bt(r[l.value]), {
|
|
5517
5518
|
ref_key: "modalRef",
|
|
5518
5519
|
ref: o
|
|
5519
5520
|
}, null, 512))
|
|
@@ -5523,20 +5524,20 @@ const Oi = { class: "mb-3" }, Bi = {
|
|
|
5523
5524
|
z.value.length ? {
|
|
5524
5525
|
name: "footer",
|
|
5525
5526
|
fn: V(() => [
|
|
5526
|
-
(
|
|
5527
|
-
key:
|
|
5527
|
+
(g(!0), k(H, null, ae(z.value, (x, _) => (g(), ne(Et, {
|
|
5528
|
+
key: _,
|
|
5528
5529
|
color: x.color,
|
|
5529
5530
|
disabled: x.disabled,
|
|
5530
|
-
class: de({ "mr-1":
|
|
5531
|
+
class: de({ "mr-1": _ < z.value.length - 1 }),
|
|
5531
5532
|
onClick: x.action
|
|
5532
5533
|
}, {
|
|
5533
5534
|
default: V(() => [
|
|
5534
|
-
x.icon ? (
|
|
5535
|
+
x.icon ? (g(), ne(n(M), {
|
|
5535
5536
|
key: 0,
|
|
5536
5537
|
name: x.icon,
|
|
5537
5538
|
class: "mr-1"
|
|
5538
|
-
}, null, 8, ["name"])) :
|
|
5539
|
-
U(" " +
|
|
5539
|
+
}, null, 8, ["name"])) : ee("", !0),
|
|
5540
|
+
U(" " + N(x.label), 1)
|
|
5540
5541
|
]),
|
|
5541
5542
|
_: 2
|
|
5542
5543
|
}, 1032, ["color", "disabled", "class", "onClick"]))), 128))
|
|
@@ -5552,56 +5553,56 @@ const Oi = { class: "mb-3" }, Bi = {
|
|
|
5552
5553
|
}, xo = ["title"], _o = ["title"], No = {
|
|
5553
5554
|
__name: "InfoBlock",
|
|
5554
5555
|
setup(u) {
|
|
5555
|
-
const e = G(), d = Ee(), t = ge(), { lang: o } = Y(), { bytesToHuman:
|
|
5556
|
-
function
|
|
5556
|
+
const e = G(), d = Ee(), t = ge(), { lang: o } = Y(), { bytesToHuman: r } = Be(), p = s(() => e.activeManager), l = s(() => d.actionProgress), b = s(() => !!d.errors.length), y = s(() => e.getFilesCount(p.value)), z = s(() => e.getDirectoriesCount(p.value)), f = s(() => r(e.getFilesSize(p.value))), v = s(() => e.getSelectedCount(p.value)), F = s(() => r(e.getSelectedFilesSize(p.value))), x = s(() => e.clipboard.type), _ = s(() => d.loading);
|
|
5557
|
+
function j(A) {
|
|
5557
5558
|
t.setModalState({
|
|
5558
|
-
modalName:
|
|
5559
|
+
modalName: A,
|
|
5559
5560
|
show: !0
|
|
5560
5561
|
});
|
|
5561
5562
|
}
|
|
5562
|
-
return (
|
|
5563
|
+
return (A, T) => (g(), k("div", bo, [
|
|
5563
5564
|
c("div", go, [
|
|
5564
|
-
|
|
5565
|
-
[
|
|
5565
|
+
Q(c("span", null, N(`${n(o).info.selected} ${v.value}`) + " " + N(`${n(o).info.selectedSize} ${F.value}`), 513), [
|
|
5566
|
+
[te, v.value]
|
|
5566
5567
|
]),
|
|
5567
|
-
|
|
5568
|
-
[
|
|
5568
|
+
Q(c("span", null, N(`${n(o).info.directories} ${z.value}`) + " " + N(`${n(o).info.files} ${y.value}`) + " " + N(`${n(o).info.size} ${f.value}`), 513), [
|
|
5569
|
+
[te, !v.value]
|
|
5569
5570
|
])
|
|
5570
5571
|
]),
|
|
5571
5572
|
c("div", yo, [
|
|
5572
|
-
|
|
5573
|
+
Q(c("div", ho, [
|
|
5573
5574
|
c("div", {
|
|
5574
5575
|
class: "progress-bar progress-bar-striped bg-info",
|
|
5575
5576
|
role: "progressbar",
|
|
5576
5577
|
"aria-valuenow": l.value,
|
|
5577
5578
|
"aria-valuemin": "0",
|
|
5578
5579
|
"aria-valuemax": "100",
|
|
5579
|
-
style:
|
|
5580
|
-
},
|
|
5580
|
+
style: Oe({ width: l.value + "%" })
|
|
5581
|
+
}, N(l.value) + "% ", 13, ko)
|
|
5581
5582
|
], 512), [
|
|
5582
|
-
[
|
|
5583
|
+
[te, l.value]
|
|
5583
5584
|
])
|
|
5584
5585
|
]),
|
|
5585
5586
|
c("div", zo, [
|
|
5586
|
-
|
|
5587
|
+
Q(c("div", wo, [...T[2] || (T[2] = [
|
|
5587
5588
|
c("span", { class: "visually-hidden" }, "Loading...", -1)
|
|
5588
5589
|
])], 512), [
|
|
5589
|
-
[
|
|
5590
|
+
[te, _.value]
|
|
5590
5591
|
]),
|
|
5591
|
-
|
|
5592
|
-
onClick:
|
|
5593
|
-
title: [
|
|
5592
|
+
Q(c("span", {
|
|
5593
|
+
onClick: T[0] || (T[0] = (E) => j("ClipboardModal")),
|
|
5594
|
+
title: [n(o).clipboard.title + " - " + n(o).clipboard[x.value]]
|
|
5594
5595
|
}, [
|
|
5595
|
-
w(
|
|
5596
|
+
w(n(M), { name: "clipboard" })
|
|
5596
5597
|
], 8, xo), [
|
|
5597
|
-
[
|
|
5598
|
+
[te, x.value]
|
|
5598
5599
|
]),
|
|
5599
5600
|
c("span", {
|
|
5600
|
-
onClick:
|
|
5601
|
-
class: de([
|
|
5602
|
-
title:
|
|
5601
|
+
onClick: T[1] || (T[1] = (E) => j("StatusModal")),
|
|
5602
|
+
class: de([b.value ? "text-danger" : "text-success"]),
|
|
5603
|
+
title: n(o).modal.status.title
|
|
5603
5604
|
}, [
|
|
5604
|
-
w(
|
|
5605
|
+
w(n(M), { name: "info" })
|
|
5605
5606
|
], 10, _o)
|
|
5606
5607
|
])
|
|
5607
5608
|
]));
|
|
@@ -5612,45 +5613,45 @@ const Oi = { class: "mb-3" }, Bi = {
|
|
|
5612
5613
|
}, So = ["title", "onClick"], Co = ["onClick"], Eo = {
|
|
5613
5614
|
__name: "ContextMenu",
|
|
5614
5615
|
setup(u) {
|
|
5615
|
-
const e = G(), d = st(), t = oe(), o = ge(), { lang:
|
|
5616
|
+
const e = G(), d = st(), t = oe(), o = ge(), { lang: r } = Y(), { getMatchingEditors: p } = ft(), l = C(null), b = C(!1), y = C({
|
|
5616
5617
|
top: 0,
|
|
5617
5618
|
left: 0
|
|
5618
|
-
}), z =
|
|
5619
|
-
function
|
|
5619
|
+
}), z = s(() => t.contextMenu), f = s(() => e.selectedDisk), v = s(() => e.selectedItems), F = s(() => e.disks[f.value]?.driver), x = s(() => v.value.length > 1), _ = s(() => v.value[0]?.type);
|
|
5620
|
+
function j(S) {
|
|
5620
5621
|
return S ? t.imageExtensions.includes(S.toLowerCase()) : !1;
|
|
5621
5622
|
}
|
|
5622
|
-
function
|
|
5623
|
+
function A(S) {
|
|
5623
5624
|
return S ? Object.keys(t.textExtensions).includes(S.toLowerCase()) : !1;
|
|
5624
5625
|
}
|
|
5625
|
-
function
|
|
5626
|
+
function T(S) {
|
|
5626
5627
|
return S ? t.audioExtensions.includes(S.toLowerCase()) : !1;
|
|
5627
5628
|
}
|
|
5628
|
-
function
|
|
5629
|
+
function E(S) {
|
|
5629
5630
|
return S ? t.videoExtensions.includes(S.toLowerCase()) : !1;
|
|
5630
5631
|
}
|
|
5631
5632
|
function K(S) {
|
|
5632
5633
|
return S ? S.toLowerCase() === "zip" : !1;
|
|
5633
5634
|
}
|
|
5634
|
-
function ce() {
|
|
5635
|
-
return !x.value && F.value === "dir";
|
|
5636
|
-
}
|
|
5637
5635
|
function X() {
|
|
5638
|
-
return
|
|
5636
|
+
return !x.value && _.value === "dir";
|
|
5639
5637
|
}
|
|
5640
|
-
function
|
|
5641
|
-
return
|
|
5638
|
+
function ce() {
|
|
5639
|
+
return v.value.every((S) => S.type === "file") && v.value.every((S) => T(S.extension));
|
|
5640
|
+
}
|
|
5641
|
+
function ie() {
|
|
5642
|
+
return !x.value && E(v.value[0]?.extension);
|
|
5642
5643
|
}
|
|
5643
5644
|
function L() {
|
|
5644
|
-
return !x.value &&
|
|
5645
|
+
return !x.value && _.value === "file" && j(v.value[0]?.extension);
|
|
5645
5646
|
}
|
|
5646
5647
|
function Z() {
|
|
5647
|
-
return !x.value &&
|
|
5648
|
+
return !x.value && _.value === "file" && A(v.value[0]?.extension);
|
|
5648
5649
|
}
|
|
5649
5650
|
function ue() {
|
|
5650
|
-
return !x.value &&
|
|
5651
|
+
return !x.value && _.value === "file" && e.fileCallback;
|
|
5651
5652
|
}
|
|
5652
5653
|
function le() {
|
|
5653
|
-
return !x.value &&
|
|
5654
|
+
return !x.value && _.value === "file";
|
|
5654
5655
|
}
|
|
5655
5656
|
function ye() {
|
|
5656
5657
|
return !0;
|
|
@@ -5661,14 +5662,14 @@ const Oi = { class: "mb-3" }, Bi = {
|
|
|
5661
5662
|
function R() {
|
|
5662
5663
|
return !x.value;
|
|
5663
5664
|
}
|
|
5664
|
-
function
|
|
5665
|
+
function P() {
|
|
5665
5666
|
return !!e.clipboard.type;
|
|
5666
5667
|
}
|
|
5667
5668
|
function W() {
|
|
5668
|
-
return
|
|
5669
|
+
return F.value === "local";
|
|
5669
5670
|
}
|
|
5670
5671
|
function q() {
|
|
5671
|
-
return
|
|
5672
|
+
return F.value === "local" && !x.value && _.value === "file" && K(v.value[0]?.extension);
|
|
5672
5673
|
}
|
|
5673
5674
|
function he() {
|
|
5674
5675
|
return !0;
|
|
@@ -5677,9 +5678,9 @@ const Oi = { class: "mb-3" }, Bi = {
|
|
|
5677
5678
|
return !x.value;
|
|
5678
5679
|
}
|
|
5679
5680
|
const _e = {
|
|
5680
|
-
open:
|
|
5681
|
-
audioPlay:
|
|
5682
|
-
videoPlay:
|
|
5681
|
+
open: X,
|
|
5682
|
+
audioPlay: ce,
|
|
5683
|
+
videoPlay: ie,
|
|
5683
5684
|
view: L,
|
|
5684
5685
|
edit: Z,
|
|
5685
5686
|
select: ue,
|
|
@@ -5687,7 +5688,7 @@ const Oi = { class: "mb-3" }, Bi = {
|
|
|
5687
5688
|
copy: ye,
|
|
5688
5689
|
cut: $,
|
|
5689
5690
|
rename: R,
|
|
5690
|
-
paste:
|
|
5691
|
+
paste: P,
|
|
5691
5692
|
zip: W,
|
|
5692
5693
|
unzip: q,
|
|
5693
5694
|
delete: he,
|
|
@@ -5725,19 +5726,19 @@ const Oi = { class: "mb-3" }, Bi = {
|
|
|
5725
5726
|
function Te() {
|
|
5726
5727
|
e.toClipboard("copy");
|
|
5727
5728
|
}
|
|
5728
|
-
function
|
|
5729
|
+
function Le() {
|
|
5729
5730
|
e.toClipboard("cut");
|
|
5730
5731
|
}
|
|
5731
5732
|
function $e() {
|
|
5732
5733
|
o.setModalState({ modalName: "RenameModal", show: !0 });
|
|
5733
5734
|
}
|
|
5734
|
-
function
|
|
5735
|
+
function Ie() {
|
|
5735
5736
|
e.paste();
|
|
5736
5737
|
}
|
|
5737
|
-
function
|
|
5738
|
+
function Ve() {
|
|
5738
5739
|
o.setModalState({ modalName: "ZipModal", show: !0 });
|
|
5739
5740
|
}
|
|
5740
|
-
function
|
|
5741
|
+
function Ke() {
|
|
5741
5742
|
o.setModalState({ modalName: "UnzipModal", show: !0 });
|
|
5742
5743
|
}
|
|
5743
5744
|
function ze() {
|
|
@@ -5755,16 +5756,16 @@ const Oi = { class: "mb-3" }, Bi = {
|
|
|
5755
5756
|
select: Me,
|
|
5756
5757
|
download: Ae,
|
|
5757
5758
|
copy: Te,
|
|
5758
|
-
cut:
|
|
5759
|
+
cut: Le,
|
|
5759
5760
|
rename: $e,
|
|
5760
|
-
paste:
|
|
5761
|
-
zip:
|
|
5762
|
-
unzip:
|
|
5761
|
+
paste: Ie,
|
|
5762
|
+
zip: Ve,
|
|
5763
|
+
unzip: Ke,
|
|
5763
5764
|
delete: ze,
|
|
5764
5765
|
properties: Fe
|
|
5765
5766
|
};
|
|
5766
|
-
function
|
|
5767
|
-
v.value.length && (
|
|
5767
|
+
function qe(S) {
|
|
5768
|
+
v.value.length && (b.value = !0, Ft(() => {
|
|
5768
5769
|
l.value?.focus(), D(S.pageY, S.pageX);
|
|
5769
5770
|
}));
|
|
5770
5771
|
}
|
|
@@ -5772,21 +5773,21 @@ const Oi = { class: "mb-3" }, Bi = {
|
|
|
5772
5773
|
const J = l.value?.parentNode;
|
|
5773
5774
|
if (!J) return;
|
|
5774
5775
|
const we = J.getBoundingClientRect(), re = window.scrollY + we.top, Se = window.scrollX + we.left;
|
|
5775
|
-
let
|
|
5776
|
-
const xe = re + (J.offsetHeight - l.value.offsetHeight - 25),
|
|
5777
|
-
S > xe && (
|
|
5776
|
+
let He = S - re, Ye = se - Se;
|
|
5777
|
+
const xe = re + (J.offsetHeight - l.value.offsetHeight - 25), Ze = Se + (J.offsetWidth - l.value.offsetWidth - 25);
|
|
5778
|
+
S > xe && (He = xe - re), se > Ze && (Ye = Ze - Se), y.value.top = `${He}px`, y.value.left = `${Ye}px`;
|
|
5778
5779
|
}
|
|
5779
5780
|
function B() {
|
|
5780
|
-
|
|
5781
|
+
b.value = !1;
|
|
5781
5782
|
}
|
|
5782
|
-
function
|
|
5783
|
+
function Ge(S) {
|
|
5783
5784
|
return _e[S] ? _e[S]() : !1;
|
|
5784
5785
|
}
|
|
5785
5786
|
function tt(S) {
|
|
5786
5787
|
Re[S] && Re[S](), B();
|
|
5787
5788
|
}
|
|
5788
|
-
const
|
|
5789
|
-
if (x.value ||
|
|
5789
|
+
const We = s(() => {
|
|
5790
|
+
if (x.value || _.value !== "file")
|
|
5790
5791
|
return [];
|
|
5791
5792
|
const S = v.value[0];
|
|
5792
5793
|
if (!S) return [];
|
|
@@ -5808,49 +5809,49 @@ const Oi = { class: "mb-3" }, Bi = {
|
|
|
5808
5809
|
}), B();
|
|
5809
5810
|
}
|
|
5810
5811
|
return be(() => {
|
|
5811
|
-
pt.on("contextMenu", (S) =>
|
|
5812
|
-
}), (S, se) =>
|
|
5812
|
+
pt.on("contextMenu", (S) => qe(S));
|
|
5813
|
+
}), (S, se) => b.value ? (g(), k("div", {
|
|
5813
5814
|
key: 0,
|
|
5814
5815
|
ref_key: "contextMenu",
|
|
5815
5816
|
ref: l,
|
|
5816
|
-
style:
|
|
5817
|
+
style: Oe(y.value),
|
|
5817
5818
|
onBlur: B,
|
|
5818
5819
|
class: "fm-context-menu",
|
|
5819
5820
|
tabindex: "-1"
|
|
5820
5821
|
}, [
|
|
5821
|
-
|
|
5822
|
-
(
|
|
5822
|
+
We.value.length > 0 ? (g(), k("ul", Fo, [
|
|
5823
|
+
(g(!0), k(H, null, ae(We.value, (J, we) => (g(), k("li", {
|
|
5823
5824
|
key: `pe-${we}`,
|
|
5824
5825
|
class: de({ disabled: J.disabled }),
|
|
5825
|
-
title: J.disabled ? r
|
|
5826
|
+
title: J.disabled ? n(r).contextMenu.fileTooLarge : "",
|
|
5826
5827
|
onClick: (re) => !J.disabled && at(J)
|
|
5827
5828
|
}, [
|
|
5828
|
-
w(
|
|
5829
|
+
w(n(M), {
|
|
5829
5830
|
name: J.editor.icon || "edit"
|
|
5830
5831
|
}, null, 8, ["name"]),
|
|
5831
|
-
U(" " +
|
|
5832
|
+
U(" " + N(it(J)), 1)
|
|
5832
5833
|
], 10, So))), 128))
|
|
5833
|
-
])) :
|
|
5834
|
-
(
|
|
5834
|
+
])) : ee("", !0),
|
|
5835
|
+
(g(!0), k(H, null, ae(z.value, (J, we) => (g(), k("ul", {
|
|
5835
5836
|
key: `g-${we}`,
|
|
5836
5837
|
class: "list-unstyled"
|
|
5837
5838
|
}, [
|
|
5838
|
-
(
|
|
5839
|
-
|
|
5840
|
-
onClick: (
|
|
5839
|
+
(g(!0), k(H, null, ae(J, (re, Se) => (g(), k(H, null, [
|
|
5840
|
+
Ge(re.name) ? (g(), k("li", {
|
|
5841
|
+
onClick: (He) => tt(re.name),
|
|
5841
5842
|
key: `i-${Se}`
|
|
5842
5843
|
}, [
|
|
5843
|
-
w(
|
|
5844
|
+
w(n(M), {
|
|
5844
5845
|
name: re.icon,
|
|
5845
5846
|
class: de(re.iconClass)
|
|
5846
5847
|
}, null, 8, ["name", "class"]),
|
|
5847
|
-
U(" " +
|
|
5848
|
-
], 8, Co)) :
|
|
5848
|
+
U(" " + N(n(r).contextMenu[re.name]), 1)
|
|
5849
|
+
], 8, Co)) : ee("", !0)
|
|
5849
5850
|
], 64))), 256))
|
|
5850
5851
|
]))), 128))
|
|
5851
|
-
], 36)) :
|
|
5852
|
+
], 36)) : ee("", !0);
|
|
5852
5853
|
}
|
|
5853
|
-
}, Po = { class: "fm-body flex min-h-0" },
|
|
5854
|
+
}, Po = { class: "fm-body flex min-h-0" }, $o = {
|
|
5854
5855
|
__name: "FileManager",
|
|
5855
5856
|
props: {
|
|
5856
5857
|
settings: {
|
|
@@ -5861,11 +5862,11 @@ const Oi = { class: "mb-3" }, Bi = {
|
|
|
5861
5862
|
}
|
|
5862
5863
|
},
|
|
5863
5864
|
setup(u) {
|
|
5864
|
-
const e = u, d = G(), t = oe(), o = Ee(), { lang:
|
|
5865
|
+
const e = u, d = G(), t = oe(), o = Ee(), { lang: r } = Y(), p = C({
|
|
5865
5866
|
request: null,
|
|
5866
5867
|
response: null
|
|
5867
|
-
}), l =
|
|
5868
|
-
function
|
|
5868
|
+
}), l = s(() => d.fullScreen);
|
|
5869
|
+
function b() {
|
|
5869
5870
|
I.defaults.baseURL = t.baseUrl, Object.keys(t.headers).forEach((f) => {
|
|
5870
5871
|
I.defaults.headers.common[f] = t.headers[f];
|
|
5871
5872
|
});
|
|
@@ -5881,12 +5882,12 @@ const Oi = { class: "mb-3" }, Bi = {
|
|
|
5881
5882
|
(f) => {
|
|
5882
5883
|
if (o.subtractLoading(), Object.prototype.hasOwnProperty.call(f.data, "result") && f.data.result.message) {
|
|
5883
5884
|
const v = Object.prototype.hasOwnProperty.call(
|
|
5884
|
-
|
|
5885
|
+
r.value.response,
|
|
5885
5886
|
f.data.result.message
|
|
5886
|
-
) ?
|
|
5887
|
-
|
|
5887
|
+
) ? r.value.response[f.data.result.message] : f.data.result.message, F = f.data.result.status === "success" ? "success" : "info";
|
|
5888
|
+
Je({
|
|
5888
5889
|
content: v,
|
|
5889
|
-
type:
|
|
5890
|
+
type: F
|
|
5890
5891
|
}), o.setActionResult({
|
|
5891
5892
|
status: f.data.result.status,
|
|
5892
5893
|
message: v
|
|
@@ -5901,17 +5902,17 @@ const Oi = { class: "mb-3" }, Bi = {
|
|
|
5901
5902
|
message: ""
|
|
5902
5903
|
};
|
|
5903
5904
|
return f.response ? (v.status = f.response.status, f.response.data.message ? v.message = Object.prototype.hasOwnProperty.call(
|
|
5904
|
-
|
|
5905
|
+
r.value.response,
|
|
5905
5906
|
f.response.data.message
|
|
5906
|
-
) ?
|
|
5907
|
+
) ? r.value.response[f.response.data.message] : f.response.data.message : v.message = f.response.statusText) : f.request ? (v.status = f.request.status, v.message = f.request.statusText || "Network error") : v.message = f.message, o.setError(v), Pt(v.message), Promise.reject(f);
|
|
5907
5908
|
}
|
|
5908
5909
|
);
|
|
5909
5910
|
}
|
|
5910
5911
|
return be(() => {
|
|
5911
|
-
t.manualSettings(e.settings), t.initAxiosSettings(),
|
|
5912
|
+
t.manualSettings(e.settings), t.initAxiosSettings(), b(), y(), z(), d.initializeApp();
|
|
5912
5913
|
}), St(() => {
|
|
5913
5914
|
d.resetState(), pt.all.clear(), I.interceptors.request.eject(p.value.request), I.interceptors.response.eject(p.value.response);
|
|
5914
|
-
}), (f, v) => (
|
|
5915
|
+
}), (f, v) => (g(), k("div", {
|
|
5915
5916
|
class: de(["fm flex flex-col", { "fm-full-screen": l.value }])
|
|
5916
5917
|
}, [
|
|
5917
5918
|
w(zi),
|
|
@@ -5928,5 +5929,5 @@ const Oi = { class: "mb-3" }, Bi = {
|
|
|
5928
5929
|
}
|
|
5929
5930
|
};
|
|
5930
5931
|
export {
|
|
5931
|
-
|
|
5932
|
+
$o as default
|
|
5932
5933
|
};
|