@gameap/frontend 4.1.0-dev3 → 4.1.0-dev5
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-DQTMJ6LY.js → AdminClientCertificatesView-BQyXmri1.js} +33 -34
- package/dist/{AdminDaemonTaskListView-Bx3e0Miy.js → AdminDaemonTaskListView-DTQbTpkt.js} +49 -50
- package/dist/{AdminDaemonTaskOutputView-BJtLdoAq.js → AdminDaemonTaskOutputView-DRrZwAwW.js} +32 -33
- package/dist/{AdminGamesEdit-hDe3Pr-7.js → AdminGamesEdit-CDTCJu52.js} +43 -44
- package/dist/{AdminGamesList-CM1xADCW.js → AdminGamesList-CU_RB7gu.js} +55 -56
- package/dist/{AdminModEdit-DDKd6Vga.js → AdminModEdit-P0crpkM3.js} +106 -107
- package/dist/{AdminNodeShowView-DMoEY2Cu.js → AdminNodeShowView-Col-7fyA.js} +34 -35
- package/dist/{AdminNodesCreateView-BXZDQIJ1.js → AdminNodesCreateView-CZsMnSCJ.js} +26 -27
- package/dist/{AdminNodesEditView-xO7-szjJ.js → AdminNodesEditView-DdNciuMa.js} +23 -24
- package/dist/{AdminNodesView-ugTPiC4h.js → AdminNodesView-DvuZ9haB.js} +16 -17
- package/dist/{AdminServersCreate-DOygFz_E.js → AdminServersCreate-zGHHAEkO.js} +56 -57
- package/dist/{AdminServersEdit-cZX6UGB1.js → AdminServersEdit-BR6sRGlM.js} +31 -32
- package/dist/{AdminServersList-CC50WRsv.js → AdminServersList-DhUQ1zrt.js} +21 -22
- package/dist/{AdminUsersEditView-CXpMKFfI.js → AdminUsersEditView-CqRLzCkV.js} +44 -45
- package/dist/{AdminUsersView-DGuGEHVR.js → AdminUsersView-TCHghzxY.js} +37 -38
- package/dist/{CreateModForm-CqhcrNFp.js → CreateModForm-Byq8UvuW.js} +23 -23
- package/dist/{CreateNodeModal-BvbJTKhD.js → CreateNodeModal-BNV35RnR.js} +1 -1
- package/dist/{DsIpSelector-DN9IyT4L.js → DsIpSelector-EnBHsJLE.js} +1 -1
- package/dist/{FileManager-8TWHezyM.js → FileManager-X3FkHNzF.js} +1 -1
- package/dist/{GameModSelector-DRIaCbGY.js → GameModSelector-bZsSGC6T.js} +4 -4
- package/dist/{InputManyList-By5xECIK.js → InputManyList-BFGIEnls.js} +1 -1
- package/dist/{InputTextList-Bm2Ofq5J.js → InputTextList-D280D5fs.js} +1 -1
- package/dist/{PluginPendingView-DHd_yijv.js → PluginPendingView-Cp6KgA8z.js} +1 -1
- package/dist/{RconConsole-DH9XeOu3.js → RconConsole-BxjHKC6E.js} +24 -25
- package/dist/{RconPlayers-GrvCMJX3.js → RconPlayers-CXL0bHlU.js} +32 -32
- package/dist/{ServerConsole-BHHnpxJy.js → ServerConsole-Cr-BZJIC.js} +1 -1
- package/dist/{ServerIdView-BfqrYuar.js → ServerIdView-wsnPfVUi.js} +141 -142
- package/dist/{ServerSelector-QMK1qiXa.js → ServerSelector-D7O1thVu.js} +1 -1
- package/dist/{ServerSettings-Cz6C8Dlh.js → ServerSettings-Lk4lq5hI.js} +1 -1
- package/dist/{ServerStatus-DBJW9C6H.js → ServerStatus-CCFiPWXV.js} +1 -1
- package/dist/{ServerTasks-Bs3iGYY3.js → ServerTasks-gNFBkyv1.js} +1 -1
- package/dist/{SettingsParameters-DCqhqxHk.js → SettingsParameters-BVpVg868.js} +1 -1
- package/dist/{SmartPortSelector-DektJC6p.js → SmartPortSelector-bubAEnvR.js} +8 -8
- package/dist/{UpdateNodeForm-CwirLUIK.js → UpdateNodeForm-BQDjp3CR.js} +1 -1
- package/dist/{UserServerPrivileges-utyKdh7O.js → UserServerPrivileges-CizE2EYl.js} +1 -1
- package/dist/{_createCompounder-DSupx5mD.js → _createCompounder-NPjOAZm-.js} +2 -2
- package/dist/{camelCase-WcUYdRB3.js → camelCase-BXg45SFI.js} +2 -2
- package/dist/{capitalize-DRKkBaYR.js → capitalize-BSQeiLff.js} +10 -10
- package/dist/{clientCertificates-BsJdUHYw.js → clientCertificates-Dm0Bh62v.js} +1 -1
- package/dist/{gameList-DpGDCxFE.js → gameList-CJAymSBL.js} +1 -1
- package/dist/{index-60qEjGuU.js → index-Fmomw6wi.js} +2333 -1954
- package/dist/index.js +1 -1
- package/dist/{loader-CrZTMKcy.js → loader-BGOXrNPF.js} +1 -1
- package/dist/{snakeCase-CTCA7tap.js → snakeCase-o1mQEFQr.js} +1 -1
- package/package.json +6 -4
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { mergeModels as I, ref as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { _ as oe } from "./CreateModForm-CqhcrNFp.js";
|
|
1
|
+
import { mergeModels as I, ref as A, useModel as O, createElementBlock as S, openBlock as _, createVNode as a, unref as e, withCtx as d, createElementVNode as v, renderSlot as j, createBlock as w, createCommentVNode as R, normalizeClass as C, toDisplayString as $, computed as M, onMounted as H, Fragment as J, createTextVNode as K } from "vue";
|
|
2
|
+
import { s as G, t, y as Q, z as X, l as h, _ as z, v as Y, k as Z, A as ee, e as V, n as N } from "./index-Fmomw6wi.js";
|
|
3
|
+
import { NForm as ae, NCard as k, NFormItem as m, NInput as p, NModal as le } from "naive-ui";
|
|
4
|
+
import { u as te } from "./gameList-CJAymSBL.js";
|
|
5
|
+
import { _ as oe } from "./CreateModForm-Byq8UvuW.js";
|
|
7
6
|
import { useRoute as se, useRouter as ne } from "vue-router";
|
|
8
7
|
import { storeToRefs as ie } from "pinia";
|
|
9
8
|
const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re = { class: "md:w-1/2" }, me = { class: "hidden lg:inline" }, pe = {
|
|
@@ -25,22 +24,22 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
25
24
|
modelModifiers: {}
|
|
26
25
|
}),
|
|
27
26
|
emits: /* @__PURE__ */ I(["update"], ["update:modelValue"]),
|
|
28
|
-
setup(c, { emit:
|
|
29
|
-
const
|
|
27
|
+
setup(c, { emit: U }) {
|
|
28
|
+
const x = A({}), l = O(c, "modelValue"), g = {
|
|
30
29
|
code: {
|
|
31
30
|
required: !0,
|
|
32
|
-
validator:
|
|
31
|
+
validator: Q(
|
|
33
32
|
G(t("labels.code")),
|
|
34
|
-
|
|
33
|
+
X(t("labels.code"), 2, 16)
|
|
35
34
|
)
|
|
36
35
|
},
|
|
37
36
|
name: {
|
|
38
37
|
required: !0,
|
|
39
38
|
validator: G(t("labels.name"))
|
|
40
39
|
}
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
}, W = U, b = () => {
|
|
41
|
+
x.value.validate().then(() => {
|
|
42
|
+
W("update");
|
|
44
43
|
});
|
|
45
44
|
};
|
|
46
45
|
return (r, o) => (_(), S("div", null, [
|
|
@@ -48,14 +47,14 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
48
47
|
"label-placement": "top",
|
|
49
48
|
"label-width": "auto",
|
|
50
49
|
ref_key: "formRef",
|
|
51
|
-
ref:
|
|
50
|
+
ref: x,
|
|
52
51
|
model: l.value,
|
|
53
52
|
rules: g
|
|
54
53
|
}, {
|
|
55
54
|
default: d(() => [
|
|
56
55
|
v("div", de, [
|
|
57
56
|
v("div", ue, [
|
|
58
|
-
a(e(
|
|
57
|
+
a(e(k), {
|
|
59
58
|
title: e(t)("games.basic_info"),
|
|
60
59
|
size: "small",
|
|
61
60
|
class: "mb-3",
|
|
@@ -130,7 +129,7 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
130
129
|
j(r.$slots, "mods")
|
|
131
130
|
]),
|
|
132
131
|
v("div", re, [
|
|
133
|
-
a(e(
|
|
132
|
+
a(e(k), {
|
|
134
133
|
title: e(t)("games.steam_info"),
|
|
135
134
|
size: "small",
|
|
136
135
|
class: "mb-3",
|
|
@@ -188,7 +187,7 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
188
187
|
]),
|
|
189
188
|
_: 1
|
|
190
189
|
}, 8, ["title"]),
|
|
191
|
-
a(e(
|
|
190
|
+
a(e(k), {
|
|
192
191
|
title: e(t)("games.repositories_local"),
|
|
193
192
|
size: "small",
|
|
194
193
|
class: "mb-3",
|
|
@@ -233,7 +232,7 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
233
232
|
]),
|
|
234
233
|
_: 1
|
|
235
234
|
}, 8, ["title"]),
|
|
236
|
-
a(e(
|
|
235
|
+
a(e(k), {
|
|
237
236
|
title: e(t)("games.repositories_remote"),
|
|
238
237
|
size: "small",
|
|
239
238
|
class: "mb-3",
|
|
@@ -285,55 +284,55 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
285
284
|
}, 8, ["model"]),
|
|
286
285
|
a(z, {
|
|
287
286
|
color: "green",
|
|
288
|
-
onClick:
|
|
287
|
+
onClick: b
|
|
289
288
|
}, {
|
|
290
289
|
default: d(() => [
|
|
291
290
|
o[11] || (o[11] = v("i", { class: "fa-regular fa-floppy-disk mr-0.5" }, null, -1)),
|
|
292
|
-
v("span", me, " " +
|
|
291
|
+
v("span", me, " " + $(e(t)("main.save")), 1)
|
|
293
292
|
]),
|
|
294
293
|
_: 1
|
|
295
294
|
})
|
|
296
295
|
]));
|
|
297
296
|
}
|
|
298
|
-
},
|
|
297
|
+
}, be = {
|
|
299
298
|
__name: "AdminGamesEdit",
|
|
300
299
|
setup(c) {
|
|
301
|
-
const
|
|
300
|
+
const U = se(), x = ne(), l = Y(), g = te(), W = M(() => [
|
|
302
301
|
{ route: "/", text: "GameAP", icon: "gicon gicon-gameap" },
|
|
303
302
|
{ route: { name: "admin.games.index" }, text: t("games.games") },
|
|
304
303
|
{ text: t("games.title_edit") }
|
|
305
|
-
]), { gameCode:
|
|
304
|
+
]), { gameCode: b, game: r, mods: o } = ie(l);
|
|
306
305
|
H(() => {
|
|
307
|
-
l.setGameCode(
|
|
306
|
+
l.setGameCode(U.params.code), i.value.code = b.value, l.fetchGame().then(() => {
|
|
308
307
|
i.value.name = r.value.name, i.value.engine = r.value.engine, i.value.engineVersion = r.value.engine_version, i.value.steamAppIdLinux = r.value.steam_app_id_linux, i.value.steamAppIdWindows = r.value.steam_app_id_windows, i.value.steamAppSetConfig = r.value.steam_app_set_config, i.value.localRepositoryLinux = r.value.local_repository_linux, i.value.localRepositoryWindows = r.value.local_repository_windows, i.value.remoteRepositoryLinux = r.value.remote_repository_linux, i.value.remoteRepositoryWindows = r.value.remote_repository_windows;
|
|
309
308
|
}), l.fetchMods();
|
|
310
309
|
});
|
|
311
|
-
const s = M(() => l.loading || g.loading),
|
|
310
|
+
const s = M(() => l.loading || g.loading), B = M(() => {
|
|
312
311
|
let u = [];
|
|
313
312
|
return o.value.forEach((n) => {
|
|
314
313
|
u.push({
|
|
315
314
|
id: n.id,
|
|
316
315
|
name: n.name,
|
|
317
|
-
gameCode:
|
|
316
|
+
gameCode: b.value
|
|
318
317
|
});
|
|
319
318
|
}), u;
|
|
320
|
-
}),
|
|
319
|
+
}), E = (u) => {
|
|
321
320
|
g.fetchGames().then(() => {
|
|
322
321
|
f.value = {
|
|
323
|
-
game:
|
|
322
|
+
game: b.value,
|
|
324
323
|
name: "",
|
|
325
324
|
remoteRepositoryLinux: "",
|
|
326
325
|
remoteRepositoryWindows: ""
|
|
327
|
-
},
|
|
326
|
+
}, L.value = !0;
|
|
328
327
|
}).catch((n) => {
|
|
329
328
|
V(n);
|
|
330
329
|
});
|
|
331
|
-
}, i =
|
|
330
|
+
}, i = A({}), L = A(!1), f = A({
|
|
332
331
|
game: null,
|
|
333
332
|
name: "",
|
|
334
333
|
remoteRepositoryLinux: "",
|
|
335
334
|
remoteRepositoryWindows: ""
|
|
336
|
-
}),
|
|
335
|
+
}), q = () => {
|
|
337
336
|
const u = {
|
|
338
337
|
name: f.value.name,
|
|
339
338
|
game_code: f.value.game,
|
|
@@ -350,10 +349,10 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
350
349
|
}).catch((n) => {
|
|
351
350
|
V(n);
|
|
352
351
|
}).finally(() => {
|
|
353
|
-
|
|
352
|
+
L.value = !1;
|
|
354
353
|
});
|
|
355
354
|
}, F = (u, n) => {
|
|
356
|
-
|
|
355
|
+
x.push({ name: "admin.games.mods.edit", params: { code: u, id: n } });
|
|
357
356
|
}, T = (u) => {
|
|
358
357
|
window.$dialog.success({
|
|
359
358
|
title: t("games.delete_mod_confirm_msg"),
|
|
@@ -390,22 +389,22 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
390
389
|
content: t("games.update_success_msg"),
|
|
391
390
|
type: "success"
|
|
392
391
|
}, () => {
|
|
393
|
-
|
|
392
|
+
x.push({ name: "admin.games.index" });
|
|
394
393
|
});
|
|
395
394
|
}).catch((n) => {
|
|
396
395
|
V(n);
|
|
397
396
|
});
|
|
398
397
|
};
|
|
399
398
|
return (u, n) => (_(), S(J, null, [
|
|
400
|
-
a(e(
|
|
399
|
+
a(e(Z), { items: W.value }, null, 8, ["items"]),
|
|
401
400
|
a(z, {
|
|
402
401
|
class: "mr-1",
|
|
403
402
|
color: "orange",
|
|
404
|
-
onClick: n[0] || (n[0] = (y) =>
|
|
403
|
+
onClick: n[0] || (n[0] = (y) => E())
|
|
405
404
|
}, {
|
|
406
405
|
default: d(() => [
|
|
407
406
|
n[4] || (n[4] = v("i", { class: "fa-solid fa-cat" }, null, -1)),
|
|
408
|
-
K(" " +
|
|
407
|
+
K(" " + $(e(t)("games.add_mod")), 1)
|
|
409
408
|
]),
|
|
410
409
|
_: 1
|
|
411
410
|
}),
|
|
@@ -416,7 +415,7 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
416
415
|
onUpdate: P
|
|
417
416
|
}, {
|
|
418
417
|
mods: d(() => [
|
|
419
|
-
a(e(
|
|
418
|
+
a(e(k), {
|
|
420
419
|
title: e(t)("games.mods"),
|
|
421
420
|
size: "small",
|
|
422
421
|
class: "mb-3",
|
|
@@ -431,8 +430,8 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
431
430
|
v("div", {
|
|
432
431
|
class: C(s.value ? "hidden" : "")
|
|
433
432
|
}, [
|
|
434
|
-
a(e(
|
|
435
|
-
items:
|
|
433
|
+
a(e(ee), {
|
|
434
|
+
items: B.value,
|
|
436
435
|
deleteCallback: T,
|
|
437
436
|
clickCallback: F
|
|
438
437
|
}, null, 8, ["items"])
|
|
@@ -444,8 +443,8 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
444
443
|
_: 1
|
|
445
444
|
}, 8, ["loading", "modelValue"]),
|
|
446
445
|
a(e(le), {
|
|
447
|
-
show:
|
|
448
|
-
"onUpdate:show": n[3] || (n[3] = (y) =>
|
|
446
|
+
show: L.value,
|
|
447
|
+
"onUpdate:show": n[3] || (n[3] = (y) => L.value = y),
|
|
449
448
|
class: "custom-card",
|
|
450
449
|
preset: "card",
|
|
451
450
|
title: e(t)("games.title_add_mod"),
|
|
@@ -457,7 +456,7 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
457
456
|
a(oe, {
|
|
458
457
|
modelValue: f.value,
|
|
459
458
|
"onUpdate:modelValue": n[2] || (n[2] = (y) => f.value = y),
|
|
460
|
-
onCreate:
|
|
459
|
+
onCreate: q
|
|
461
460
|
}, null, 8, ["modelValue"])
|
|
462
461
|
]),
|
|
463
462
|
_: 1
|
|
@@ -466,5 +465,5 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
466
465
|
}
|
|
467
466
|
};
|
|
468
467
|
export {
|
|
469
|
-
|
|
468
|
+
be as default
|
|
470
469
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { mergeModels as X, ref as v, useModel as Y, createElementBlock as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { NForm as re, NFormItem as C, NInput as _, NSpace as de, NInputGroup as me, NInputGroupLabel as ue, NDataTable as ce, NEmpty as pe, NModal as B } from "naive-ui";
|
|
1
|
+
import { mergeModels as X, ref as v, useModel as Y, createElementBlock as q, openBlock as B, createVNode as l, unref as t, withCtx as n, createElementVNode as f, toDisplayString as G, computed as W, onMounted as Z, Fragment as ee, createTextVNode as L, h as m } from "vue";
|
|
2
|
+
import { s as T, t as o, y as ae, z as oe, _ as y, e as g, k as te, l as le, g as se, A as ne, n as M } from "./index-Fmomw6wi.js";
|
|
3
|
+
import { u as ie } from "./gameList-CJAymSBL.js";
|
|
4
|
+
import { NForm as re, NFormItem as b, NInput as _, NSpace as de, NInputGroup as me, NInputGroupLabel as ue, NDataTable as ce, NEmpty as pe, NModal as E } from "naive-ui";
|
|
6
5
|
import { useRouter as fe } from "vue-router";
|
|
7
6
|
import { storeToRefs as ge } from "pinia";
|
|
8
|
-
import { _ as ve } from "./CreateModForm-
|
|
7
|
+
import { _ as ve } from "./CreateModForm-Byq8UvuW.js";
|
|
9
8
|
const ye = { class: "hidden lg:inline" }, _e = {
|
|
10
9
|
__name: "CreateGameForm",
|
|
11
10
|
props: {
|
|
@@ -24,21 +23,21 @@ const ye = { class: "hidden lg:inline" }, _e = {
|
|
|
24
23
|
const u = v({}), r = Y(N, "modelValue"), x = {
|
|
25
24
|
code: {
|
|
26
25
|
required: !0,
|
|
27
|
-
validator:
|
|
26
|
+
validator: ae(
|
|
28
27
|
T(o("labels.code")),
|
|
29
|
-
|
|
28
|
+
oe(o("labels.code"), 2, 16)
|
|
30
29
|
)
|
|
31
30
|
},
|
|
32
31
|
name: {
|
|
33
32
|
required: !0,
|
|
34
33
|
validator: T(o("labels.name"))
|
|
35
34
|
}
|
|
36
|
-
},
|
|
35
|
+
}, C = V, h = () => {
|
|
37
36
|
u.value.validate().then(() => {
|
|
38
|
-
|
|
37
|
+
C("create");
|
|
39
38
|
});
|
|
40
39
|
};
|
|
41
|
-
return (
|
|
40
|
+
return ($, i) => (B(), q("div", null, [
|
|
42
41
|
l(t(re), {
|
|
43
42
|
"label-placement": "top",
|
|
44
43
|
"label-width": "auto",
|
|
@@ -48,7 +47,7 @@ const ye = { class: "hidden lg:inline" }, _e = {
|
|
|
48
47
|
rules: x
|
|
49
48
|
}, {
|
|
50
49
|
default: n(() => [
|
|
51
|
-
l(t(
|
|
50
|
+
l(t(b), {
|
|
52
51
|
label: t(o)("labels.code"),
|
|
53
52
|
path: "code"
|
|
54
53
|
}, {
|
|
@@ -64,7 +63,7 @@ const ye = { class: "hidden lg:inline" }, _e = {
|
|
|
64
63
|
]),
|
|
65
64
|
_: 1
|
|
66
65
|
}, 8, ["label"]),
|
|
67
|
-
l(t(
|
|
66
|
+
l(t(b), {
|
|
68
67
|
label: t(o)("labels.name"),
|
|
69
68
|
path: "name"
|
|
70
69
|
}, {
|
|
@@ -79,7 +78,7 @@ const ye = { class: "hidden lg:inline" }, _e = {
|
|
|
79
78
|
}, 8, ["label"]),
|
|
80
79
|
l(t(de), null, {
|
|
81
80
|
default: n(() => [
|
|
82
|
-
l(t(
|
|
81
|
+
l(t(b), {
|
|
83
82
|
label: t(o)("labels.engine"),
|
|
84
83
|
path: "engine"
|
|
85
84
|
}, {
|
|
@@ -92,7 +91,7 @@ const ye = { class: "hidden lg:inline" }, _e = {
|
|
|
92
91
|
]),
|
|
93
92
|
_: 1
|
|
94
93
|
}, 8, ["label"]),
|
|
95
|
-
l(t(
|
|
94
|
+
l(t(b), {
|
|
96
95
|
label: t(o)("labels.engine_version"),
|
|
97
96
|
path: "engineVersion"
|
|
98
97
|
}, {
|
|
@@ -108,7 +107,7 @@ const ye = { class: "hidden lg:inline" }, _e = {
|
|
|
108
107
|
]),
|
|
109
108
|
_: 1
|
|
110
109
|
}),
|
|
111
|
-
l(t(
|
|
110
|
+
l(t(b), {
|
|
112
111
|
label: t(o)("labels.remote_repository_linux"),
|
|
113
112
|
path: "remoteRepositoryLinux"
|
|
114
113
|
}, {
|
|
@@ -121,7 +120,7 @@ const ye = { class: "hidden lg:inline" }, _e = {
|
|
|
121
120
|
]),
|
|
122
121
|
_: 1
|
|
123
122
|
}, 8, ["label"]),
|
|
124
|
-
l(t(
|
|
123
|
+
l(t(b), {
|
|
125
124
|
label: t(o)("labels.remote_repository_windows"),
|
|
126
125
|
path: "remoteRepositoryWindows"
|
|
127
126
|
}, {
|
|
@@ -143,13 +142,13 @@ const ye = { class: "hidden lg:inline" }, _e = {
|
|
|
143
142
|
}, {
|
|
144
143
|
default: n(() => [
|
|
145
144
|
i[6] || (i[6] = f("i", { class: "fa-regular fa-square-plus" }, null, -1)),
|
|
146
|
-
f("span", ye, " " +
|
|
145
|
+
f("span", ye, " " + G(t(o)("main.create")), 1)
|
|
147
146
|
]),
|
|
148
147
|
_: 1
|
|
149
148
|
})
|
|
150
149
|
]));
|
|
151
150
|
}
|
|
152
|
-
},
|
|
151
|
+
}, Ce = { class: "mb-5" }, be = { class: "w-1/4 mb-1" }, Le = {
|
|
153
152
|
__name: "AdminGamesList",
|
|
154
153
|
setup(N) {
|
|
155
154
|
const V = fe(), u = ie(), r = W(() => [
|
|
@@ -157,13 +156,13 @@ const ye = { class: "hidden lg:inline" }, _e = {
|
|
|
157
156
|
{ route: { name: "admin.games.index" }, text: o("games.games") }
|
|
158
157
|
]);
|
|
159
158
|
Z(() => {
|
|
160
|
-
x(),
|
|
159
|
+
x(), C();
|
|
161
160
|
});
|
|
162
161
|
const x = () => {
|
|
163
162
|
u.fetchGames().catch((a) => {
|
|
164
163
|
g(a);
|
|
165
164
|
});
|
|
166
|
-
},
|
|
165
|
+
}, C = () => {
|
|
167
166
|
u.fetchAllGameMods().catch((a) => {
|
|
168
167
|
g(a);
|
|
169
168
|
});
|
|
@@ -173,7 +172,7 @@ const ye = { class: "hidden lg:inline" }, _e = {
|
|
|
173
172
|
key: "name",
|
|
174
173
|
render(a) {
|
|
175
174
|
return m("div", { class: "flex items-center" }, [
|
|
176
|
-
m(
|
|
175
|
+
m(se, { game: a.code, class: "mr-2" }),
|
|
177
176
|
m("span", { class: "" }, a.name)
|
|
178
177
|
]);
|
|
179
178
|
}
|
|
@@ -191,13 +190,13 @@ const ye = { class: "hidden lg:inline" }, _e = {
|
|
|
191
190
|
size: "small",
|
|
192
191
|
class: "px-2 py-1",
|
|
193
192
|
onClick: () => {
|
|
194
|
-
|
|
193
|
+
U(a.code);
|
|
195
194
|
}
|
|
196
195
|
}, [
|
|
197
196
|
m("i", { class: "fa-solid fa-cat mr-0.5" }),
|
|
198
197
|
m("span", { class: "" }, o("games.add_first_mod"))
|
|
199
198
|
]) : m(
|
|
200
|
-
|
|
199
|
+
ne,
|
|
201
200
|
{
|
|
202
201
|
class: ["md:max-w-48"],
|
|
203
202
|
items: a.mods,
|
|
@@ -225,7 +224,7 @@ const ye = { class: "hidden lg:inline" }, _e = {
|
|
|
225
224
|
size: "small",
|
|
226
225
|
text: o("main.delete"),
|
|
227
226
|
onClick: () => {
|
|
228
|
-
|
|
227
|
+
S(a.code);
|
|
229
228
|
}
|
|
230
229
|
}, [
|
|
231
230
|
m("i", { class: "fa-solid fa-trash" }),
|
|
@@ -234,31 +233,31 @@ const ye = { class: "hidden lg:inline" }, _e = {
|
|
|
234
233
|
];
|
|
235
234
|
}
|
|
236
235
|
}
|
|
237
|
-
], { loading:
|
|
236
|
+
], { loading: $, games: i, allGameMods: d } = ge(u), k = v(!1), p = v({
|
|
238
237
|
game: null,
|
|
239
238
|
name: "",
|
|
240
239
|
remoteRepositoryLinux: "",
|
|
241
240
|
remoteRepositoryWindows: ""
|
|
242
|
-
}),
|
|
241
|
+
}), R = v(!1), c = v({
|
|
243
242
|
code: "",
|
|
244
243
|
name: "",
|
|
245
244
|
engine: "",
|
|
246
245
|
engineVersion: "",
|
|
247
246
|
remoteRepositoryLinux: "",
|
|
248
247
|
remoteRepositoryWindows: ""
|
|
249
|
-
}),
|
|
248
|
+
}), I = v(h()), z = {
|
|
250
249
|
pageSize: 50
|
|
251
|
-
}, w = v(""),
|
|
250
|
+
}, w = v(""), A = W(() => {
|
|
252
251
|
let a = [];
|
|
253
252
|
return i.value.forEach((e) => {
|
|
254
253
|
w.value && !e.name.toLowerCase().includes(w.value.toLowerCase()) && !e.code.toLowerCase().includes(w.value.toLowerCase()) || a.push({
|
|
255
254
|
name: e.name,
|
|
256
255
|
code: e.code,
|
|
257
256
|
engine: e.engine,
|
|
258
|
-
mods:
|
|
257
|
+
mods: D(e.code)
|
|
259
258
|
});
|
|
260
259
|
}), a.sort((e, s) => e.name.localeCompare(s.name));
|
|
261
|
-
}),
|
|
260
|
+
}), D = (a) => {
|
|
262
261
|
let e = [];
|
|
263
262
|
return d.value.forEach((s) => {
|
|
264
263
|
s.game_code === a && e.push({
|
|
@@ -267,7 +266,7 @@ const ye = { class: "hidden lg:inline" }, _e = {
|
|
|
267
266
|
gameCode: s.game_code
|
|
268
267
|
});
|
|
269
268
|
}), e;
|
|
270
|
-
},
|
|
269
|
+
}, S = (a) => {
|
|
271
270
|
window.$dialog.success({
|
|
272
271
|
title: o("games.delete_game_confirm_msg"),
|
|
273
272
|
positiveText: o("main.yes"),
|
|
@@ -285,7 +284,7 @@ const ye = { class: "hidden lg:inline" }, _e = {
|
|
|
285
284
|
}).catch((e) => {
|
|
286
285
|
g(e);
|
|
287
286
|
});
|
|
288
|
-
},
|
|
287
|
+
}, U = (a) => {
|
|
289
288
|
p.value = {
|
|
290
289
|
game: null,
|
|
291
290
|
name: "",
|
|
@@ -304,7 +303,7 @@ const ye = { class: "hidden lg:inline" }, _e = {
|
|
|
304
303
|
content: o("games.mod_create_success_msg"),
|
|
305
304
|
type: "success"
|
|
306
305
|
}, () => {
|
|
307
|
-
|
|
306
|
+
C();
|
|
308
307
|
});
|
|
309
308
|
}).catch((e) => {
|
|
310
309
|
g(e);
|
|
@@ -317,7 +316,7 @@ const ye = { class: "hidden lg:inline" }, _e = {
|
|
|
317
316
|
name: "",
|
|
318
317
|
remoteRepositoryLinux: "",
|
|
319
318
|
remoteRepositoryWindows: ""
|
|
320
|
-
},
|
|
319
|
+
}, R.value = !0;
|
|
321
320
|
}, j = () => {
|
|
322
321
|
const a = {
|
|
323
322
|
name: c.value.name,
|
|
@@ -337,7 +336,7 @@ const ye = { class: "hidden lg:inline" }, _e = {
|
|
|
337
336
|
}).catch((e) => {
|
|
338
337
|
g(e);
|
|
339
338
|
}).finally(() => {
|
|
340
|
-
|
|
339
|
+
R.value = !1;
|
|
341
340
|
});
|
|
342
341
|
}, H = (a, e) => {
|
|
343
342
|
V.push({ name: "admin.games.mods.edit", params: { code: a, id: e } });
|
|
@@ -355,7 +354,7 @@ const ye = { class: "hidden lg:inline" }, _e = {
|
|
|
355
354
|
});
|
|
356
355
|
}, K = (a) => {
|
|
357
356
|
u.deleteModById(a).then(() => {
|
|
358
|
-
|
|
357
|
+
C();
|
|
359
358
|
}).catch((e) => {
|
|
360
359
|
g(e);
|
|
361
360
|
});
|
|
@@ -370,7 +369,7 @@ const ye = { class: "hidden lg:inline" }, _e = {
|
|
|
370
369
|
M({
|
|
371
370
|
content: o("games.upgrade_success_msg"),
|
|
372
371
|
type: "success"
|
|
373
|
-
}), x(),
|
|
372
|
+
}), x(), C();
|
|
374
373
|
}).catch((a) => {
|
|
375
374
|
g(a);
|
|
376
375
|
});
|
|
@@ -379,9 +378,9 @@ const ye = { class: "hidden lg:inline" }, _e = {
|
|
|
379
378
|
}
|
|
380
379
|
});
|
|
381
380
|
};
|
|
382
|
-
return (a, e) => (
|
|
383
|
-
l(t(
|
|
384
|
-
f("div",
|
|
381
|
+
return (a, e) => (B(), q(ee, null, [
|
|
382
|
+
l(t(te), { items: r.value }, null, 8, ["items"]),
|
|
383
|
+
f("div", Ce, [
|
|
385
384
|
l(y, {
|
|
386
385
|
class: "mr-1",
|
|
387
386
|
color: "green",
|
|
@@ -389,18 +388,18 @@ const ye = { class: "hidden lg:inline" }, _e = {
|
|
|
389
388
|
}, {
|
|
390
389
|
default: n(() => [
|
|
391
390
|
e[8] || (e[8] = f("i", { class: "fa-solid fa-plus-square" }, null, -1)),
|
|
392
|
-
L(" " +
|
|
391
|
+
L(" " + G(t(o)("games.add")), 1)
|
|
393
392
|
]),
|
|
394
393
|
_: 1
|
|
395
394
|
}),
|
|
396
395
|
l(y, {
|
|
397
396
|
class: "mr-1",
|
|
398
397
|
color: "orange",
|
|
399
|
-
onClick: e[1] || (e[1] = (s) =>
|
|
398
|
+
onClick: e[1] || (e[1] = (s) => U())
|
|
400
399
|
}, {
|
|
401
400
|
default: n(() => [
|
|
402
401
|
e[9] || (e[9] = f("i", { class: "fa-solid fa-cat" }, null, -1)),
|
|
403
|
-
L(" " +
|
|
402
|
+
L(" " + G(t(o)("games.add_mod")), 1)
|
|
404
403
|
]),
|
|
405
404
|
_: 1
|
|
406
405
|
}),
|
|
@@ -411,12 +410,12 @@ const ye = { class: "hidden lg:inline" }, _e = {
|
|
|
411
410
|
}, {
|
|
412
411
|
default: n(() => [
|
|
413
412
|
e[10] || (e[10] = f("i", { class: "fa-solid fa-sync" }, null, -1)),
|
|
414
|
-
L(" " +
|
|
413
|
+
L(" " + G(t(o)("games.upgrade")), 1)
|
|
415
414
|
]),
|
|
416
415
|
_: 1
|
|
417
416
|
})
|
|
418
417
|
]),
|
|
419
|
-
f("div",
|
|
418
|
+
f("div", be, [
|
|
420
419
|
l(t(me), null, {
|
|
421
420
|
default: n(() => [
|
|
422
421
|
l(t(ue), null, {
|
|
@@ -439,13 +438,13 @@ const ye = { class: "hidden lg:inline" }, _e = {
|
|
|
439
438
|
ref: "tableRef",
|
|
440
439
|
bordered: !1,
|
|
441
440
|
"single-line": !0,
|
|
442
|
-
columns:
|
|
443
|
-
data:
|
|
444
|
-
loading: t(
|
|
445
|
-
pagination:
|
|
441
|
+
columns: I.value,
|
|
442
|
+
data: A.value,
|
|
443
|
+
loading: t($),
|
|
444
|
+
pagination: z
|
|
446
445
|
}, {
|
|
447
446
|
loading: n(() => [
|
|
448
|
-
l(t(
|
|
447
|
+
l(t(le))
|
|
449
448
|
]),
|
|
450
449
|
empty: n(() => [
|
|
451
450
|
l(t(pe), {
|
|
@@ -454,9 +453,9 @@ const ye = { class: "hidden lg:inline" }, _e = {
|
|
|
454
453
|
]),
|
|
455
454
|
_: 1
|
|
456
455
|
}, 8, ["columns", "data", "loading"]),
|
|
457
|
-
l(t(
|
|
458
|
-
show:
|
|
459
|
-
"onUpdate:show": e[5] || (e[5] = (s) =>
|
|
456
|
+
l(t(E), {
|
|
457
|
+
show: R.value,
|
|
458
|
+
"onUpdate:show": e[5] || (e[5] = (s) => R.value = s),
|
|
460
459
|
class: "custom-card",
|
|
461
460
|
preset: "card",
|
|
462
461
|
title: t(o)("games.title_add"),
|
|
@@ -473,7 +472,7 @@ const ye = { class: "hidden lg:inline" }, _e = {
|
|
|
473
472
|
]),
|
|
474
473
|
_: 1
|
|
475
474
|
}, 8, ["show", "title"]),
|
|
476
|
-
l(t(
|
|
475
|
+
l(t(E), {
|
|
477
476
|
show: k.value,
|
|
478
477
|
"onUpdate:show": e[7] || (e[7] = (s) => k.value = s),
|
|
479
478
|
class: "custom-card",
|
|
@@ -496,5 +495,5 @@ const ye = { class: "hidden lg:inline" }, _e = {
|
|
|
496
495
|
}
|
|
497
496
|
};
|
|
498
497
|
export {
|
|
499
|
-
|
|
498
|
+
Le as default
|
|
500
499
|
};
|