@gameap/frontend 4.1.0-dev8 → 4.1.0-dev9
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-BQyXmri1.js → AdminClientCertificatesView-rVNAX5Dl.js} +97 -94
- package/dist/AdminDaemonTaskListView-CoUVp9tK.js +316 -0
- package/dist/{AdminDaemonTaskOutputView-DRrZwAwW.js → AdminDaemonTaskOutputView-BJpuWCtc.js} +18 -17
- package/dist/{AdminGamesEdit-CDTCJu52.js → AdminGamesEdit-HKWU2C59.js} +121 -117
- package/dist/AdminGamesList-BwN_RFDY.js +518 -0
- package/dist/{AdminModEdit-P0crpkM3.js → AdminModEdit-CbVGlk5M.js} +123 -119
- package/dist/AdminNodeShowView-C7VsvwQo.js +175 -0
- package/dist/AdminNodesCreateView-BfEHhFn2.js +87 -0
- package/dist/{AdminNodesEditView-DdNciuMa.js → AdminNodesEditView-DE-zhVTd.js} +11 -11
- package/dist/AdminNodesView-QMdy3oJ1.js +167 -0
- package/dist/AdminPluginsView-BBALhxPk.js +984 -0
- package/dist/{AdminServersCreate-zGHHAEkO.js → AdminServersCreate-g_A290kz.js} +122 -124
- package/dist/{AdminServersEdit-BR6sRGlM.js → AdminServersEdit-D0RERbR5.js} +125 -124
- package/dist/{AdminServersList-DhUQ1zrt.js → AdminServersList-_ek_2u8B.js} +35 -31
- package/dist/{AdminUsersEditView-CqRLzCkV.js → AdminUsersEditView-CbZCH6eM.js} +89 -85
- package/dist/{AdminUsersView-TCHghzxY.js → AdminUsersView-D4WoRB5b.js} +145 -141
- package/dist/CreateModForm-CpbIOQNu.js +123 -0
- package/dist/CreateNodeModal-C96UVcAJ.js +99 -0
- package/dist/{DsIpSelector-EnBHsJLE.js → DsIpSelector-D_hc_JYQ.js} +1 -1
- package/dist/EmptyView-qkQQJ_OR.js +9 -0
- package/dist/FileManager-v-1ASSne.js +5931 -0
- package/dist/GameIcon-DaYNlnur.js +87 -0
- package/dist/{GameModSelector-bZsSGC6T.js → GameModSelector-CiI3H5Zq.js} +21 -20
- package/dist/InputManyList-C52f5V6l.js +110 -0
- package/dist/InputTextList-5KeNATa7.js +63 -0
- package/dist/PluginPendingView-CDR44QCG.js +34 -0
- package/dist/ProfileView-CC3KJ2gK.js +295 -0
- package/dist/RconConsole-DkRK7vz3.js +74 -0
- package/dist/{RconPlayers-CXL0bHlU.js → RconPlayers-CDRCp79f.js} +131 -127
- package/dist/ServerConsole-Bj0Zr1BS.js +99 -0
- package/dist/ServerControlButton-C4zWzA-d.js +185 -0
- package/dist/ServerIdView-BJS6wcMH.js +608 -0
- package/dist/{ServerSelector-D7O1thVu.js → ServerSelector-DPM5SjWO.js} +7 -7
- package/dist/{ServerSettings-Lk4lq5hI.js → ServerSettings-BYRSLaJk.js} +26 -26
- package/dist/{ServerStatus-CCFiPWXV.js → ServerStatus-BK8yKehx.js} +1 -1
- package/dist/{ServerTasks-gNFBkyv1.js → ServerTasks-DUC2DDcY.js} +304 -302
- package/dist/ServersView-BbLoOEEz.js +312 -0
- package/dist/SettingsParameters-C-TFWsJF.js +89 -0
- package/dist/SmartPortSelector-DCsuCDpV.js +174 -0
- package/dist/TokensView-B5D45QbV.js +392 -0
- package/dist/{UpdateNodeForm-BQDjp3CR.js → UpdateNodeForm-DmAoHURu.js} +131 -127
- package/dist/UserServerPrivileges-k-30v4ps.js +319 -0
- package/dist/{_createCompounder-NPjOAZm-.js → _createCompounder-DHQYnhTQ.js} +2 -2
- package/dist/{camelCase-BXg45SFI.js → camelCase-CE1GGhvX.js} +2 -2
- package/dist/{capitalize-BSQeiLff.js → capitalize-DnZmwhT4.js} +5 -5
- package/dist/{clientCertificates-Dm0Bh62v.js → clientCertificates-Dd9OqxGQ.js} +1 -1
- package/dist/frontend.css +6 -14
- package/dist/{gameList-CJAymSBL.js → gameList-BLdEusRA.js} +40 -40
- package/dist/gameap.svg +3 -0
- package/dist/gameap_full.svg +9 -0
- package/dist/index-BDKiNPpP.js +3840 -0
- package/dist/index.js +1 -1
- package/dist/isEmpty-lBntcFaB.js +263 -0
- package/dist/join-CmlzL0H9.js +7 -0
- package/dist/{loader-BGOXrNPF.js → loader-C49Def-j.js} +1 -1
- package/dist/{snakeCase-o1mQEFQr.js → snakeCase--wUVfLw4.js} +1 -1
- package/dist/validators-BVXTUmow.js +65 -0
- package/package.json +1 -1
- package/dist/AdminDaemonTaskListView-DTQbTpkt.js +0 -315
- package/dist/AdminGamesList-CU_RB7gu.js +0 -499
- package/dist/AdminNodeShowView-Col-7fyA.js +0 -166
- package/dist/AdminNodesCreateView-CZsMnSCJ.js +0 -84
- package/dist/AdminNodesView-DvuZ9haB.js +0 -160
- package/dist/CreateModForm-Byq8UvuW.js +0 -122
- package/dist/CreateNodeModal-BNV35RnR.js +0 -93
- package/dist/FileManager-X3FkHNzF.js +0 -31882
- package/dist/InputManyList-BFGIEnls.js +0 -110
- package/dist/InputTextList-D280D5fs.js +0 -63
- package/dist/PluginPendingView-Cp6KgA8z.js +0 -31
- package/dist/RconConsole-BxjHKC6E.js +0 -74
- package/dist/ServerConsole-Cr-BZJIC.js +0 -98
- package/dist/ServerIdView-wsnPfVUi.js +0 -576
- package/dist/SettingsParameters-BVpVg868.js +0 -87
- package/dist/SmartPortSelector-bubAEnvR.js +0 -161
- package/dist/UserServerPrivileges-CizE2EYl.js +0 -318
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/index-Fmomw6wi.js +0 -5750
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { mergeModels as I, ref as A, useModel as
|
|
2
|
-
import {
|
|
3
|
-
import { NForm as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
1
|
+
import { mergeModels as I, ref as A, useModel as j, createElementBlock as S, openBlock as _, createVNode as a, unref as e, withCtx as d, createElementVNode as c, renderSlot as H, createBlock as w, createCommentVNode as R, normalizeClass as h, toDisplayString as $, computed as M, onMounted as J, Fragment as K, createTextVNode as Q } from "vue";
|
|
2
|
+
import { t, l as C, _ as z, a as B, h as X, m as Y, A as Z, e as k, n as G } from "./index-BDKiNPpP.js";
|
|
3
|
+
import { NForm as ee, NCard as L, NFormItem as m, NInput as p, NModal as ae } from "naive-ui";
|
|
4
|
+
import { r as N, a as le, c as te } from "./validators-BVXTUmow.js";
|
|
5
|
+
import { u as oe } from "./gameList-BLdEusRA.js";
|
|
6
|
+
import { _ as se } from "./CreateModForm-CpbIOQNu.js";
|
|
7
|
+
import { useRoute as ne, useRouter as ie } from "vue-router";
|
|
8
|
+
import { storeToRefs as de } from "pinia";
|
|
9
|
+
const ue = { class: "flex flex-wrap mt-2" }, re = { class: "md:w-1/2 pr-8" }, me = { class: "md:w-1/2" }, pe = { class: "hidden lg:inline" }, ve = {
|
|
9
10
|
__name: "UpdateGameForm",
|
|
10
11
|
props: /* @__PURE__ */ I({
|
|
11
12
|
loading: {
|
|
@@ -24,26 +25,26 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
24
25
|
modelModifiers: {}
|
|
25
26
|
}),
|
|
26
27
|
emits: /* @__PURE__ */ I(["update"], ["update:modelValue"]),
|
|
27
|
-
setup(
|
|
28
|
-
const x = A({}), l =
|
|
28
|
+
setup(v, { emit: U }) {
|
|
29
|
+
const x = A({}), l = j(v, "modelValue"), g = {
|
|
29
30
|
code: {
|
|
30
31
|
required: !0,
|
|
31
|
-
validator:
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
validator: le(
|
|
33
|
+
N(t("labels.code")),
|
|
34
|
+
te(t("labels.code"), 2, 16)
|
|
34
35
|
)
|
|
35
36
|
},
|
|
36
37
|
name: {
|
|
37
38
|
required: !0,
|
|
38
|
-
validator:
|
|
39
|
+
validator: N(t("labels.name"))
|
|
39
40
|
}
|
|
40
41
|
}, W = U, b = () => {
|
|
41
42
|
x.value.validate().then(() => {
|
|
42
43
|
W("update");
|
|
43
44
|
});
|
|
44
45
|
};
|
|
45
|
-
return (r,
|
|
46
|
-
a(e(
|
|
46
|
+
return (r, s) => (_(), S("div", null, [
|
|
47
|
+
a(e(ee), {
|
|
47
48
|
"label-placement": "top",
|
|
48
49
|
"label-width": "auto",
|
|
49
50
|
ref_key: "formRef",
|
|
@@ -52,9 +53,9 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
52
53
|
rules: g
|
|
53
54
|
}, {
|
|
54
55
|
default: d(() => [
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
a(e(
|
|
56
|
+
c("div", ue, [
|
|
57
|
+
c("div", re, [
|
|
58
|
+
a(e(L), {
|
|
58
59
|
title: e(t)("games.basic_info"),
|
|
59
60
|
size: "small",
|
|
60
61
|
class: "mb-3",
|
|
@@ -65,9 +66,9 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
65
66
|
}
|
|
66
67
|
}, {
|
|
67
68
|
default: d(() => [
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
class:
|
|
69
|
+
v.loading ? (_(), w(e(C), { key: 0 })) : R("", !0),
|
|
70
|
+
c("div", {
|
|
71
|
+
class: h(v.loading ? "hidden" : "")
|
|
71
72
|
}, [
|
|
72
73
|
a(e(m), {
|
|
73
74
|
label: e(t)("labels.code"),
|
|
@@ -77,7 +78,7 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
77
78
|
a(e(p), {
|
|
78
79
|
disabled: "",
|
|
79
80
|
value: l.value.code,
|
|
80
|
-
"onUpdate:value":
|
|
81
|
+
"onUpdate:value": s[0] || (s[0] = (o) => l.value.code = o),
|
|
81
82
|
type: "text"
|
|
82
83
|
}, null, 8, ["value"])
|
|
83
84
|
]),
|
|
@@ -90,7 +91,7 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
90
91
|
default: d(() => [
|
|
91
92
|
a(e(p), {
|
|
92
93
|
value: l.value.name,
|
|
93
|
-
"onUpdate:value":
|
|
94
|
+
"onUpdate:value": s[1] || (s[1] = (o) => l.value.name = o),
|
|
94
95
|
type: "text"
|
|
95
96
|
}, null, 8, ["value"])
|
|
96
97
|
]),
|
|
@@ -103,7 +104,7 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
103
104
|
default: d(() => [
|
|
104
105
|
a(e(p), {
|
|
105
106
|
value: l.value.engine,
|
|
106
|
-
"onUpdate:value":
|
|
107
|
+
"onUpdate:value": s[2] || (s[2] = (o) => l.value.engine = o),
|
|
107
108
|
type: "text"
|
|
108
109
|
}, null, 8, ["value"])
|
|
109
110
|
]),
|
|
@@ -116,7 +117,7 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
116
117
|
default: d(() => [
|
|
117
118
|
a(e(p), {
|
|
118
119
|
value: l.value.engineVersion,
|
|
119
|
-
"onUpdate:value":
|
|
120
|
+
"onUpdate:value": s[3] || (s[3] = (o) => l.value.engineVersion = o),
|
|
120
121
|
type: "text"
|
|
121
122
|
}, null, 8, ["value"])
|
|
122
123
|
]),
|
|
@@ -126,10 +127,10 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
126
127
|
]),
|
|
127
128
|
_: 1
|
|
128
129
|
}, 8, ["title"]),
|
|
129
|
-
|
|
130
|
+
H(r.$slots, "mods")
|
|
130
131
|
]),
|
|
131
|
-
|
|
132
|
-
a(e(
|
|
132
|
+
c("div", me, [
|
|
133
|
+
a(e(L), {
|
|
133
134
|
title: e(t)("games.steam_info"),
|
|
134
135
|
size: "small",
|
|
135
136
|
class: "mb-3",
|
|
@@ -140,9 +141,9 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
140
141
|
}
|
|
141
142
|
}, {
|
|
142
143
|
default: d(() => [
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
class:
|
|
144
|
+
v.loading ? (_(), w(e(C), { key: 0 })) : R("", !0),
|
|
145
|
+
c("div", {
|
|
146
|
+
class: h(v.loading ? "hidden" : "")
|
|
146
147
|
}, [
|
|
147
148
|
a(e(m), {
|
|
148
149
|
label: e(t)("labels.steam_app_id_linux"),
|
|
@@ -151,7 +152,7 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
151
152
|
default: d(() => [
|
|
152
153
|
a(e(p), {
|
|
153
154
|
value: l.value.steamAppIdLinux,
|
|
154
|
-
"onUpdate:value":
|
|
155
|
+
"onUpdate:value": s[4] || (s[4] = (o) => l.value.steamAppIdLinux = o),
|
|
155
156
|
type: "text"
|
|
156
157
|
}, null, 8, ["value"])
|
|
157
158
|
]),
|
|
@@ -164,7 +165,7 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
164
165
|
default: d(() => [
|
|
165
166
|
a(e(p), {
|
|
166
167
|
value: l.value.steamAppIdWindows,
|
|
167
|
-
"onUpdate:value":
|
|
168
|
+
"onUpdate:value": s[5] || (s[5] = (o) => l.value.steamAppIdWindows = o),
|
|
168
169
|
type: "text"
|
|
169
170
|
}, null, 8, ["value"])
|
|
170
171
|
]),
|
|
@@ -177,7 +178,7 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
177
178
|
default: d(() => [
|
|
178
179
|
a(e(p), {
|
|
179
180
|
value: l.value.steamAppSetConfig,
|
|
180
|
-
"onUpdate:value":
|
|
181
|
+
"onUpdate:value": s[6] || (s[6] = (o) => l.value.steamAppSetConfig = o),
|
|
181
182
|
type: "text"
|
|
182
183
|
}, null, 8, ["value"])
|
|
183
184
|
]),
|
|
@@ -187,7 +188,7 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
187
188
|
]),
|
|
188
189
|
_: 1
|
|
189
190
|
}, 8, ["title"]),
|
|
190
|
-
a(e(
|
|
191
|
+
a(e(L), {
|
|
191
192
|
title: e(t)("games.repositories_local"),
|
|
192
193
|
size: "small",
|
|
193
194
|
class: "mb-3",
|
|
@@ -198,9 +199,9 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
198
199
|
}
|
|
199
200
|
}, {
|
|
200
201
|
default: d(() => [
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
class:
|
|
202
|
+
v.loading ? (_(), w(e(C), { key: 0 })) : R("", !0),
|
|
203
|
+
c("div", {
|
|
204
|
+
class: h(v.loading ? "hidden" : "")
|
|
204
205
|
}, [
|
|
205
206
|
a(e(m), {
|
|
206
207
|
label: e(t)("labels.local_repository_linux"),
|
|
@@ -209,7 +210,7 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
209
210
|
default: d(() => [
|
|
210
211
|
a(e(p), {
|
|
211
212
|
value: l.value.localRepositoryLinux,
|
|
212
|
-
"onUpdate:value":
|
|
213
|
+
"onUpdate:value": s[7] || (s[7] = (o) => l.value.localRepositoryLinux = o),
|
|
213
214
|
type: "text"
|
|
214
215
|
}, null, 8, ["value"])
|
|
215
216
|
]),
|
|
@@ -222,7 +223,7 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
222
223
|
default: d(() => [
|
|
223
224
|
a(e(p), {
|
|
224
225
|
value: l.value.localRepositoryWindows,
|
|
225
|
-
"onUpdate:value":
|
|
226
|
+
"onUpdate:value": s[8] || (s[8] = (o) => l.value.localRepositoryWindows = o),
|
|
226
227
|
type: "text"
|
|
227
228
|
}, null, 8, ["value"])
|
|
228
229
|
]),
|
|
@@ -232,7 +233,7 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
232
233
|
]),
|
|
233
234
|
_: 1
|
|
234
235
|
}, 8, ["title"]),
|
|
235
|
-
a(e(
|
|
236
|
+
a(e(L), {
|
|
236
237
|
title: e(t)("games.repositories_remote"),
|
|
237
238
|
size: "small",
|
|
238
239
|
class: "mb-3",
|
|
@@ -243,9 +244,9 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
243
244
|
}
|
|
244
245
|
}, {
|
|
245
246
|
default: d(() => [
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
class:
|
|
247
|
+
v.loading ? (_(), w(e(C), { key: 0 })) : R("", !0),
|
|
248
|
+
c("div", {
|
|
249
|
+
class: h(v.loading ? "hidden" : "")
|
|
249
250
|
}, [
|
|
250
251
|
a(e(m), {
|
|
251
252
|
label: e(t)("labels.remote_repository_linux"),
|
|
@@ -254,7 +255,7 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
254
255
|
default: d(() => [
|
|
255
256
|
a(e(p), {
|
|
256
257
|
value: l.value.remoteRepositoryLinux,
|
|
257
|
-
"onUpdate:value":
|
|
258
|
+
"onUpdate:value": s[9] || (s[9] = (o) => l.value.remoteRepositoryLinux = o),
|
|
258
259
|
type: "text"
|
|
259
260
|
}, null, 8, ["value"])
|
|
260
261
|
]),
|
|
@@ -267,7 +268,7 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
267
268
|
default: d(() => [
|
|
268
269
|
a(e(p), {
|
|
269
270
|
value: l.value.remoteRepositoryWindows,
|
|
270
|
-
"onUpdate:value":
|
|
271
|
+
"onUpdate:value": s[10] || (s[10] = (o) => l.value.remoteRepositoryWindows = o),
|
|
271
272
|
type: "text"
|
|
272
273
|
}, null, 8, ["value"])
|
|
273
274
|
]),
|
|
@@ -287,135 +288,138 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
287
288
|
onClick: b
|
|
288
289
|
}, {
|
|
289
290
|
default: d(() => [
|
|
290
|
-
|
|
291
|
-
|
|
291
|
+
a(e(B), {
|
|
292
|
+
name: "save",
|
|
293
|
+
class: "mr-0.5"
|
|
294
|
+
}),
|
|
295
|
+
c("span", pe, " " + $(e(t)("main.save")), 1)
|
|
292
296
|
]),
|
|
293
297
|
_: 1
|
|
294
298
|
})
|
|
295
299
|
]));
|
|
296
300
|
}
|
|
297
|
-
},
|
|
301
|
+
}, Re = {
|
|
298
302
|
__name: "AdminGamesEdit",
|
|
299
|
-
setup(
|
|
300
|
-
const U =
|
|
303
|
+
setup(v) {
|
|
304
|
+
const U = ne(), x = ie(), l = X(), g = oe(), W = M(() => [
|
|
301
305
|
{ route: "/", text: "GameAP", icon: "gicon gicon-gameap" },
|
|
302
306
|
{ route: { name: "admin.games.index" }, text: t("games.games") },
|
|
303
307
|
{ text: t("games.title_edit") }
|
|
304
|
-
]), { gameCode: b, game: r, mods:
|
|
305
|
-
|
|
306
|
-
l.setGameCode(U.params.code),
|
|
307
|
-
|
|
308
|
+
]), { gameCode: b, game: r, mods: s } = de(l);
|
|
309
|
+
J(() => {
|
|
310
|
+
l.setGameCode(U.params.code), n.value.code = b.value, l.fetchGame().then(() => {
|
|
311
|
+
n.value.name = r.value.name, n.value.engine = r.value.engine, n.value.engineVersion = r.value.engine_version, n.value.steamAppIdLinux = r.value.steam_app_id_linux, n.value.steamAppIdWindows = r.value.steam_app_id_windows, n.value.steamAppSetConfig = r.value.steam_app_set_config, n.value.localRepositoryLinux = r.value.local_repository_linux, n.value.localRepositoryWindows = r.value.local_repository_windows, n.value.remoteRepositoryLinux = r.value.remote_repository_linux, n.value.remoteRepositoryWindows = r.value.remote_repository_windows;
|
|
308
312
|
}), l.fetchMods();
|
|
309
313
|
});
|
|
310
|
-
const
|
|
314
|
+
const o = M(() => l.loading || g.loading), E = M(() => {
|
|
311
315
|
let u = [];
|
|
312
|
-
return
|
|
316
|
+
return s.value.forEach((i) => {
|
|
313
317
|
u.push({
|
|
314
|
-
id:
|
|
315
|
-
name:
|
|
318
|
+
id: i.id,
|
|
319
|
+
name: i.name,
|
|
316
320
|
gameCode: b.value
|
|
317
321
|
});
|
|
318
322
|
}), u;
|
|
319
|
-
}),
|
|
323
|
+
}), q = (u) => {
|
|
320
324
|
g.fetchGames().then(() => {
|
|
321
325
|
f.value = {
|
|
322
326
|
game: b.value,
|
|
323
327
|
name: "",
|
|
324
328
|
remoteRepositoryLinux: "",
|
|
325
329
|
remoteRepositoryWindows: ""
|
|
326
|
-
},
|
|
327
|
-
}).catch((
|
|
328
|
-
|
|
330
|
+
}, V.value = !0;
|
|
331
|
+
}).catch((i) => {
|
|
332
|
+
k(i);
|
|
329
333
|
});
|
|
330
|
-
},
|
|
334
|
+
}, n = A({}), V = A(!1), f = A({
|
|
331
335
|
game: null,
|
|
332
336
|
name: "",
|
|
333
337
|
remoteRepositoryLinux: "",
|
|
334
338
|
remoteRepositoryWindows: ""
|
|
335
|
-
}),
|
|
339
|
+
}), F = () => {
|
|
336
340
|
const u = {
|
|
337
341
|
name: f.value.name,
|
|
338
342
|
game_code: f.value.game,
|
|
339
343
|
remote_repository_linux: f.value.remoteRepositoryLinux,
|
|
340
344
|
remote_repository_windows: f.value.remoteRepositoryWindows
|
|
341
345
|
};
|
|
342
|
-
g.createGameMod(u).then(({ id:
|
|
343
|
-
|
|
346
|
+
g.createGameMod(u).then(({ id: i }) => {
|
|
347
|
+
G({
|
|
344
348
|
content: t("games.mod_create_success_msg"),
|
|
345
349
|
type: "success"
|
|
346
350
|
}, () => {
|
|
347
351
|
g.fetchAllGameMods();
|
|
348
352
|
});
|
|
349
|
-
}).catch((
|
|
350
|
-
|
|
353
|
+
}).catch((i) => {
|
|
354
|
+
k(i);
|
|
351
355
|
}).finally(() => {
|
|
352
|
-
|
|
356
|
+
V.value = !1;
|
|
353
357
|
});
|
|
354
|
-
},
|
|
355
|
-
x.push({ name: "admin.games.mods.edit", params: { code: u, id:
|
|
356
|
-
},
|
|
358
|
+
}, T = (u, i) => {
|
|
359
|
+
x.push({ name: "admin.games.mods.edit", params: { code: u, id: i } });
|
|
360
|
+
}, D = (u) => {
|
|
357
361
|
window.$dialog.success({
|
|
358
362
|
title: t("games.delete_mod_confirm_msg"),
|
|
359
363
|
positiveText: t("main.yes"),
|
|
360
364
|
negativeText: t("main.no"),
|
|
361
365
|
closable: !1,
|
|
362
366
|
onPositiveClick: () => {
|
|
363
|
-
|
|
367
|
+
P(u);
|
|
364
368
|
},
|
|
365
369
|
onNegativeClick: () => {
|
|
366
370
|
}
|
|
367
371
|
});
|
|
368
|
-
},
|
|
372
|
+
}, P = (u) => {
|
|
369
373
|
g.deleteModById(u).then(() => {
|
|
370
374
|
l.fetchMods();
|
|
371
|
-
}).catch((
|
|
372
|
-
|
|
375
|
+
}).catch((i) => {
|
|
376
|
+
k(i);
|
|
373
377
|
});
|
|
374
|
-
},
|
|
378
|
+
}, O = () => {
|
|
375
379
|
const u = {
|
|
376
|
-
name:
|
|
377
|
-
engine:
|
|
378
|
-
engine_version:
|
|
379
|
-
steam_app_id_linux:
|
|
380
|
-
steam_app_id_windows:
|
|
381
|
-
steam_app_set_config:
|
|
382
|
-
local_repository_linux:
|
|
383
|
-
local_repository_windows:
|
|
384
|
-
remote_repository_linux:
|
|
385
|
-
remote_repository_windows:
|
|
380
|
+
name: n.value.name,
|
|
381
|
+
engine: n.value.engine,
|
|
382
|
+
engine_version: n.value.engineVersion,
|
|
383
|
+
steam_app_id_linux: n.value.steamAppIdLinux,
|
|
384
|
+
steam_app_id_windows: n.value.steamAppIdWindows,
|
|
385
|
+
steam_app_set_config: n.value.steamAppSetConfig,
|
|
386
|
+
local_repository_linux: n.value.localRepositoryLinux,
|
|
387
|
+
local_repository_windows: n.value.localRepositoryWindows,
|
|
388
|
+
remote_repository_linux: n.value.remoteRepositoryLinux,
|
|
389
|
+
remote_repository_windows: n.value.remoteRepositoryWindows
|
|
386
390
|
};
|
|
387
391
|
l.saveGame(u).then(() => {
|
|
388
|
-
|
|
392
|
+
G({
|
|
389
393
|
content: t("games.update_success_msg"),
|
|
390
394
|
type: "success"
|
|
391
395
|
}, () => {
|
|
392
396
|
x.push({ name: "admin.games.index" });
|
|
393
397
|
});
|
|
394
|
-
}).catch((
|
|
395
|
-
|
|
398
|
+
}).catch((i) => {
|
|
399
|
+
k(i);
|
|
396
400
|
});
|
|
397
401
|
};
|
|
398
|
-
return (u,
|
|
399
|
-
a(e(
|
|
402
|
+
return (u, i) => (_(), S(K, null, [
|
|
403
|
+
a(e(Y), { items: W.value }, null, 8, ["items"]),
|
|
400
404
|
a(z, {
|
|
401
405
|
class: "mr-1",
|
|
402
406
|
color: "orange",
|
|
403
|
-
onClick:
|
|
407
|
+
onClick: i[0] || (i[0] = (y) => q())
|
|
404
408
|
}, {
|
|
405
409
|
default: d(() => [
|
|
406
|
-
|
|
407
|
-
|
|
410
|
+
a(e(B), { name: "cat" }),
|
|
411
|
+
Q(" " + $(e(t)("games.add_mod")), 1)
|
|
408
412
|
]),
|
|
409
413
|
_: 1
|
|
410
414
|
}),
|
|
411
|
-
a(
|
|
412
|
-
loading:
|
|
413
|
-
modelValue:
|
|
414
|
-
"onUpdate:modelValue":
|
|
415
|
-
onUpdate:
|
|
415
|
+
a(ve, {
|
|
416
|
+
loading: o.value,
|
|
417
|
+
modelValue: n.value,
|
|
418
|
+
"onUpdate:modelValue": i[1] || (i[1] = (y) => n.value = y),
|
|
419
|
+
onUpdate: O
|
|
416
420
|
}, {
|
|
417
421
|
mods: d(() => [
|
|
418
|
-
a(e(
|
|
422
|
+
a(e(L), {
|
|
419
423
|
title: e(t)("games.mods"),
|
|
420
424
|
size: "small",
|
|
421
425
|
class: "mb-3",
|
|
@@ -426,14 +430,14 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
426
430
|
}
|
|
427
431
|
}, {
|
|
428
432
|
default: d(() => [
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
class:
|
|
433
|
+
o.value ? (_(), w(e(C), { key: 0 })) : R("", !0),
|
|
434
|
+
c("div", {
|
|
435
|
+
class: h(o.value ? "hidden" : "")
|
|
432
436
|
}, [
|
|
433
|
-
a(e(
|
|
434
|
-
items:
|
|
435
|
-
deleteCallback:
|
|
436
|
-
clickCallback:
|
|
437
|
+
a(e(Z), {
|
|
438
|
+
items: E.value,
|
|
439
|
+
deleteCallback: D,
|
|
440
|
+
clickCallback: T
|
|
437
441
|
}, null, 8, ["items"])
|
|
438
442
|
], 2)
|
|
439
443
|
]),
|
|
@@ -442,9 +446,9 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
442
446
|
]),
|
|
443
447
|
_: 1
|
|
444
448
|
}, 8, ["loading", "modelValue"]),
|
|
445
|
-
a(e(
|
|
446
|
-
show:
|
|
447
|
-
"onUpdate:show":
|
|
449
|
+
a(e(ae), {
|
|
450
|
+
show: V.value,
|
|
451
|
+
"onUpdate:show": i[3] || (i[3] = (y) => V.value = y),
|
|
448
452
|
class: "custom-card",
|
|
449
453
|
preset: "card",
|
|
450
454
|
title: e(t)("games.title_add_mod"),
|
|
@@ -453,10 +457,10 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
453
457
|
segmented: { content: "soft", footer: "soft" }
|
|
454
458
|
}, {
|
|
455
459
|
default: d(() => [
|
|
456
|
-
a(
|
|
460
|
+
a(se, {
|
|
457
461
|
modelValue: f.value,
|
|
458
|
-
"onUpdate:modelValue":
|
|
459
|
-
onCreate:
|
|
462
|
+
"onUpdate:modelValue": i[2] || (i[2] = (y) => f.value = y),
|
|
463
|
+
onCreate: F
|
|
460
464
|
}, null, 8, ["modelValue"])
|
|
461
465
|
]),
|
|
462
466
|
_: 1
|
|
@@ -465,5 +469,5 @@ const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re
|
|
|
465
469
|
}
|
|
466
470
|
};
|
|
467
471
|
export {
|
|
468
|
-
|
|
472
|
+
Re as default
|
|
469
473
|
};
|