@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,12 +1,11 @@
|
|
|
1
|
-
import { mergeModels as N, ref as T, useModel as W, resolveComponent as z, createElementBlock as H, openBlock as L, normalizeClass as I, createVNode as a, unref as e, withCtx as o, createElementVNode as
|
|
2
|
-
import {
|
|
3
|
-
import { o as O, t, _ as q, a as R, q as $, e as k, n as A } from "./index-60qEjGuU.js";
|
|
1
|
+
import { mergeModels as N, ref as T, useModel as W, resolveComponent as z, createElementBlock as H, openBlock as L, normalizeClass as I, createVNode as a, unref as e, withCtx as o, createElementVNode as d, createTextVNode as h, toDisplayString as g, computed as U, onMounted as j, Fragment as S, createBlock as E, createCommentVNode as G } from "vue";
|
|
2
|
+
import { s as $, t as l, _ as F, a as R, v as O, e as k, k as B, l as q, n as A } from "./index-Fmomw6wi.js";
|
|
4
3
|
import { NForm as P, NTabs as D, NTabPane as w, NCard as x, NFormItem as m, NInput as u } from "naive-ui";
|
|
5
4
|
import { defineStore as J, storeToRefs as V } from "pinia";
|
|
6
5
|
import { useRoute as K, useRouter as Q } from "vue-router";
|
|
7
|
-
import { c as X } from "./camelCase-
|
|
8
|
-
import { s as Y } from "./snakeCase-
|
|
9
|
-
const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1/2" }, ae = { class: "flex flex-wrap mt-2" },
|
|
6
|
+
import { c as X } from "./camelCase-BXg45SFI.js";
|
|
7
|
+
import { s as Y } from "./snakeCase-o1mQEFQr.js";
|
|
8
|
+
const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1/2" }, ae = { class: "flex flex-wrap mt-2" }, le = { class: "md:w-1/2 pr-8" }, te = { class: "md:w-1/2" }, se = { class: "flex flex-wrap mt-2" }, oe = { class: "md:w-full" }, ne = { class: "flex flex-wrap mt-2" }, de = { class: "md:w-full" }, me = { class: "flex grid grid-cols-2 gap-x-5 gap-y-4" }, ue = ["innerHTML"], re = ["innerHTML"], ie = ["innerHTML"], pe = ["innerHTML"], ce = ["innerHTML"], ve = ["innerHTML"], fe = { class: "hidden lg:inline" }, _e = {
|
|
10
9
|
__name: "UpdateModForm",
|
|
11
10
|
props: {
|
|
12
11
|
modelValue: {},
|
|
@@ -14,10 +13,10 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
|
|
|
14
13
|
},
|
|
15
14
|
emits: /* @__PURE__ */ N(["update"], ["update:modelValue"]),
|
|
16
15
|
setup(i, { emit: f }) {
|
|
17
|
-
const y = T({}),
|
|
16
|
+
const y = T({}), t = W(i, "modelValue"), c = {
|
|
18
17
|
name: {
|
|
19
18
|
required: !0,
|
|
20
|
-
validator:
|
|
19
|
+
validator: $(l("labels.name"))
|
|
21
20
|
}
|
|
22
21
|
}, C = f, _ = () => {
|
|
23
22
|
y.value.validate().then(() => {
|
|
@@ -34,7 +33,7 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
|
|
|
34
33
|
"label-width": "auto",
|
|
35
34
|
ref_key: "formRef",
|
|
36
35
|
ref: y,
|
|
37
|
-
model:
|
|
36
|
+
model: t.value,
|
|
38
37
|
rules: c
|
|
39
38
|
}, {
|
|
40
39
|
default: o(() => [
|
|
@@ -46,13 +45,13 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
|
|
|
46
45
|
default: o(() => [
|
|
47
46
|
a(e(w), { name: "main" }, {
|
|
48
47
|
tab: o(() => [
|
|
49
|
-
h(g(e(
|
|
48
|
+
h(g(e(l)("games.main")), 1)
|
|
50
49
|
]),
|
|
51
50
|
default: o(() => [
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
d("div", Z, [
|
|
52
|
+
d("div", ee, [
|
|
54
53
|
a(e(x), {
|
|
55
|
-
title: e(
|
|
54
|
+
title: e(l)("games.basic_info"),
|
|
56
55
|
size: "small",
|
|
57
56
|
class: "mb-3",
|
|
58
57
|
"header-class": "g-card-header",
|
|
@@ -63,13 +62,13 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
|
|
|
63
62
|
}, {
|
|
64
63
|
default: o(() => [
|
|
65
64
|
a(e(m), {
|
|
66
|
-
label: e(
|
|
65
|
+
label: e(l)("labels.name"),
|
|
67
66
|
path: "name"
|
|
68
67
|
}, {
|
|
69
68
|
default: o(() => [
|
|
70
69
|
a(e(u), {
|
|
71
|
-
value:
|
|
72
|
-
"onUpdate:value": s[0] || (s[0] = (
|
|
70
|
+
value: t.value.name,
|
|
71
|
+
"onUpdate:value": s[0] || (s[0] = (n) => t.value.name = n),
|
|
73
72
|
type: "text"
|
|
74
73
|
}, null, 8, ["value"])
|
|
75
74
|
]),
|
|
@@ -80,10 +79,10 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
|
|
|
80
79
|
}, 8, ["title"])
|
|
81
80
|
])
|
|
82
81
|
]),
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
d("div", ae, [
|
|
83
|
+
d("div", le, [
|
|
85
84
|
a(e(x), {
|
|
86
|
-
title: e(
|
|
85
|
+
title: e(l)("games.repositories_local"),
|
|
87
86
|
size: "small",
|
|
88
87
|
class: "mb-3",
|
|
89
88
|
"header-class": "g-card-header",
|
|
@@ -94,26 +93,26 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
|
|
|
94
93
|
}, {
|
|
95
94
|
default: o(() => [
|
|
96
95
|
a(e(m), {
|
|
97
|
-
label: e(
|
|
96
|
+
label: e(l)("labels.local_repository_linux"),
|
|
98
97
|
path: "localRepositoryLinux"
|
|
99
98
|
}, {
|
|
100
99
|
default: o(() => [
|
|
101
100
|
a(e(u), {
|
|
102
|
-
value:
|
|
103
|
-
"onUpdate:value": s[1] || (s[1] = (
|
|
101
|
+
value: t.value.localRepositoryLinux,
|
|
102
|
+
"onUpdate:value": s[1] || (s[1] = (n) => t.value.localRepositoryLinux = n),
|
|
104
103
|
type: "text"
|
|
105
104
|
}, null, 8, ["value"])
|
|
106
105
|
]),
|
|
107
106
|
_: 1
|
|
108
107
|
}, 8, ["label"]),
|
|
109
108
|
a(e(m), {
|
|
110
|
-
label: e(
|
|
109
|
+
label: e(l)("labels.local_repository_windows"),
|
|
111
110
|
path: "localRepositoryWindows"
|
|
112
111
|
}, {
|
|
113
112
|
default: o(() => [
|
|
114
113
|
a(e(u), {
|
|
115
|
-
value:
|
|
116
|
-
"onUpdate:value": s[2] || (s[2] = (
|
|
114
|
+
value: t.value.localRepositoryWindows,
|
|
115
|
+
"onUpdate:value": s[2] || (s[2] = (n) => t.value.localRepositoryWindows = n),
|
|
117
116
|
type: "text"
|
|
118
117
|
}, null, 8, ["value"])
|
|
119
118
|
]),
|
|
@@ -123,9 +122,9 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
|
|
|
123
122
|
_: 1
|
|
124
123
|
}, 8, ["title"])
|
|
125
124
|
]),
|
|
126
|
-
|
|
125
|
+
d("div", te, [
|
|
127
126
|
a(e(x), {
|
|
128
|
-
title: e(
|
|
127
|
+
title: e(l)("games.repositories_remote"),
|
|
129
128
|
size: "small",
|
|
130
129
|
class: "mb-3",
|
|
131
130
|
"header-class": "g-card-header",
|
|
@@ -136,26 +135,26 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
|
|
|
136
135
|
}, {
|
|
137
136
|
default: o(() => [
|
|
138
137
|
a(e(m), {
|
|
139
|
-
label: e(
|
|
138
|
+
label: e(l)("labels.remote_repository_linux"),
|
|
140
139
|
path: "remoteRepositoryLinux"
|
|
141
140
|
}, {
|
|
142
141
|
default: o(() => [
|
|
143
142
|
a(e(u), {
|
|
144
|
-
value:
|
|
145
|
-
"onUpdate:value": s[3] || (s[3] = (
|
|
143
|
+
value: t.value.remoteRepositoryLinux,
|
|
144
|
+
"onUpdate:value": s[3] || (s[3] = (n) => t.value.remoteRepositoryLinux = n),
|
|
146
145
|
type: "text"
|
|
147
146
|
}, null, 8, ["value"])
|
|
148
147
|
]),
|
|
149
148
|
_: 1
|
|
150
149
|
}, 8, ["label"]),
|
|
151
150
|
a(e(m), {
|
|
152
|
-
label: e(
|
|
151
|
+
label: e(l)("labels.remote_repository_windows"),
|
|
153
152
|
path: "remoteRepositoryWindows"
|
|
154
153
|
}, {
|
|
155
154
|
default: o(() => [
|
|
156
155
|
a(e(u), {
|
|
157
|
-
value:
|
|
158
|
-
"onUpdate:value": s[4] || (s[4] = (
|
|
156
|
+
value: t.value.remoteRepositoryWindows,
|
|
157
|
+
"onUpdate:value": s[4] || (s[4] = (n) => t.value.remoteRepositoryWindows = n),
|
|
159
158
|
type: "text"
|
|
160
159
|
}, null, 8, ["value"])
|
|
161
160
|
]),
|
|
@@ -166,10 +165,10 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
|
|
|
166
165
|
}, 8, ["title"])
|
|
167
166
|
])
|
|
168
167
|
]),
|
|
169
|
-
|
|
170
|
-
|
|
168
|
+
d("div", se, [
|
|
169
|
+
d("div", oe, [
|
|
171
170
|
a(e(x), {
|
|
172
|
-
title: e(
|
|
171
|
+
title: e(l)("games.run_commands"),
|
|
173
172
|
size: "small",
|
|
174
173
|
class: "mb-3",
|
|
175
174
|
"header-class": "g-card-header",
|
|
@@ -180,13 +179,13 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
|
|
|
180
179
|
}, {
|
|
181
180
|
default: o(() => [
|
|
182
181
|
a(e(m), {
|
|
183
|
-
label: e(
|
|
182
|
+
label: e(l)("labels.start_cmd_linux"),
|
|
184
183
|
path: "startCmdLinux"
|
|
185
184
|
}, {
|
|
186
185
|
default: o(() => [
|
|
187
186
|
a(e(u), {
|
|
188
|
-
value:
|
|
189
|
-
"onUpdate:value": s[5] || (s[5] = (
|
|
187
|
+
value: t.value.startCmdLinux,
|
|
188
|
+
"onUpdate:value": s[5] || (s[5] = (n) => t.value.startCmdLinux = n),
|
|
190
189
|
type: "textarea",
|
|
191
190
|
autosize: { minRows: 4 }
|
|
192
191
|
}, null, 8, ["value"])
|
|
@@ -194,13 +193,13 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
|
|
|
194
193
|
_: 1
|
|
195
194
|
}, 8, ["label"]),
|
|
196
195
|
a(e(m), {
|
|
197
|
-
label: e(
|
|
196
|
+
label: e(l)("labels.start_cmd_windows"),
|
|
198
197
|
path: "startCmdWindows"
|
|
199
198
|
}, {
|
|
200
199
|
default: o(() => [
|
|
201
200
|
a(e(u), {
|
|
202
|
-
value:
|
|
203
|
-
"onUpdate:value": s[6] || (s[6] = (
|
|
201
|
+
value: t.value.startCmdWindows,
|
|
202
|
+
"onUpdate:value": s[6] || (s[6] = (n) => t.value.startCmdWindows = n),
|
|
204
203
|
type: "textarea",
|
|
205
204
|
autosize: { minRows: 4 }
|
|
206
205
|
}, null, 8, ["value"])
|
|
@@ -217,13 +216,13 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
|
|
|
217
216
|
}),
|
|
218
217
|
a(e(w), { name: "commands" }, {
|
|
219
218
|
tab: o(() => [
|
|
220
|
-
h(g(e(
|
|
219
|
+
h(g(e(l)("games.servers_commands")), 1)
|
|
221
220
|
]),
|
|
222
221
|
default: o(() => [
|
|
223
|
-
|
|
224
|
-
|
|
222
|
+
d("div", ne, [
|
|
223
|
+
d("div", de, [
|
|
225
224
|
a(e(x), {
|
|
226
|
-
title: e(
|
|
225
|
+
title: e(l)("games.servers_commands"),
|
|
227
226
|
size: "small",
|
|
228
227
|
class: "mb-3",
|
|
229
228
|
"header-class": "g-card-header",
|
|
@@ -233,123 +232,123 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
|
|
|
233
232
|
}
|
|
234
233
|
}, {
|
|
235
234
|
default: o(() => [
|
|
236
|
-
|
|
235
|
+
d("div", me, [
|
|
237
236
|
a(e(m), {
|
|
238
|
-
label: e(
|
|
237
|
+
label: e(l)("labels.kick_cmd"),
|
|
239
238
|
path: "kickCmd"
|
|
240
239
|
}, {
|
|
241
240
|
feedback: o(() => [
|
|
242
|
-
|
|
243
|
-
innerHTML: e(
|
|
241
|
+
d("small", {
|
|
242
|
+
innerHTML: e(l)("games.d_kick_cmd")
|
|
244
243
|
}, null, 8, ue)
|
|
245
244
|
]),
|
|
246
245
|
default: o(() => [
|
|
247
246
|
a(e(u), {
|
|
248
|
-
value:
|
|
249
|
-
"onUpdate:value": s[7] || (s[7] = (
|
|
247
|
+
value: t.value.kickCmd,
|
|
248
|
+
"onUpdate:value": s[7] || (s[7] = (n) => t.value.kickCmd = n),
|
|
250
249
|
type: "text"
|
|
251
250
|
}, null, 8, ["value"])
|
|
252
251
|
]),
|
|
253
252
|
_: 1
|
|
254
253
|
}, 8, ["label"]),
|
|
255
254
|
a(e(m), {
|
|
256
|
-
label: e(
|
|
255
|
+
label: e(l)("labels.ban_cmd"),
|
|
257
256
|
path: "banCmd"
|
|
258
257
|
}, {
|
|
259
258
|
feedback: o(() => [
|
|
260
|
-
|
|
261
|
-
innerHTML: e(
|
|
259
|
+
d("small", {
|
|
260
|
+
innerHTML: e(l)("games.d_ban_cmd")
|
|
262
261
|
}, null, 8, re)
|
|
263
262
|
]),
|
|
264
263
|
default: o(() => [
|
|
265
264
|
a(e(u), {
|
|
266
|
-
value:
|
|
267
|
-
"onUpdate:value": s[8] || (s[8] = (
|
|
265
|
+
value: t.value.banCmd,
|
|
266
|
+
"onUpdate:value": s[8] || (s[8] = (n) => t.value.banCmd = n),
|
|
268
267
|
type: "text"
|
|
269
268
|
}, null, 8, ["value"])
|
|
270
269
|
]),
|
|
271
270
|
_: 1
|
|
272
271
|
}, 8, ["label"]),
|
|
273
272
|
a(e(m), {
|
|
274
|
-
label: e(
|
|
273
|
+
label: e(l)("labels.chname_cmd"),
|
|
275
274
|
path: "chnameCmd"
|
|
276
275
|
}, {
|
|
277
276
|
feedback: o(() => [
|
|
278
|
-
|
|
279
|
-
innerHTML: e(
|
|
277
|
+
d("small", {
|
|
278
|
+
innerHTML: e(l)("games.d_chname_cmd")
|
|
280
279
|
}, null, 8, ie)
|
|
281
280
|
]),
|
|
282
281
|
default: o(() => [
|
|
283
282
|
a(e(u), {
|
|
284
|
-
value:
|
|
285
|
-
"onUpdate:value": s[9] || (s[9] = (
|
|
283
|
+
value: t.value.chnameCmd,
|
|
284
|
+
"onUpdate:value": s[9] || (s[9] = (n) => t.value.chnameCmd = n),
|
|
286
285
|
type: "text"
|
|
287
286
|
}, null, 8, ["value"])
|
|
288
287
|
]),
|
|
289
288
|
_: 1
|
|
290
289
|
}, 8, ["label"]),
|
|
291
290
|
a(e(m), {
|
|
292
|
-
label: e(
|
|
291
|
+
label: e(l)("labels.srestart_cmd"),
|
|
293
292
|
path: "srestartCmd"
|
|
294
293
|
}, {
|
|
295
294
|
default: o(() => [
|
|
296
295
|
a(e(u), {
|
|
297
|
-
value:
|
|
298
|
-
"onUpdate:value": s[10] || (s[10] = (
|
|
296
|
+
value: t.value.srestartCmd,
|
|
297
|
+
"onUpdate:value": s[10] || (s[10] = (n) => t.value.srestartCmd = n),
|
|
299
298
|
type: "text"
|
|
300
299
|
}, null, 8, ["value"])
|
|
301
300
|
]),
|
|
302
301
|
_: 1
|
|
303
302
|
}, 8, ["label"]),
|
|
304
303
|
a(e(m), {
|
|
305
|
-
label: e(
|
|
304
|
+
label: e(l)("labels.chmap_cmd"),
|
|
306
305
|
path: "chmapCmd"
|
|
307
306
|
}, {
|
|
308
307
|
feedback: o(() => [
|
|
309
|
-
|
|
310
|
-
innerHTML: e(
|
|
308
|
+
d("small", {
|
|
309
|
+
innerHTML: e(l)("games.d_chmap_cmd")
|
|
311
310
|
}, null, 8, pe)
|
|
312
311
|
]),
|
|
313
312
|
default: o(() => [
|
|
314
313
|
a(e(u), {
|
|
315
|
-
value:
|
|
316
|
-
"onUpdate:value": s[11] || (s[11] = (
|
|
314
|
+
value: t.value.chmapCmd,
|
|
315
|
+
"onUpdate:value": s[11] || (s[11] = (n) => t.value.chmapCmd = n),
|
|
317
316
|
type: "text"
|
|
318
317
|
}, null, 8, ["value"])
|
|
319
318
|
]),
|
|
320
319
|
_: 1
|
|
321
320
|
}, 8, ["label"]),
|
|
322
321
|
a(e(m), {
|
|
323
|
-
label: e(
|
|
322
|
+
label: e(l)("labels.sendmsg_cmd"),
|
|
324
323
|
path: "sendmsgCmd"
|
|
325
324
|
}, {
|
|
326
325
|
feedback: o(() => [
|
|
327
|
-
|
|
328
|
-
innerHTML: e(
|
|
326
|
+
d("small", {
|
|
327
|
+
innerHTML: e(l)("games.d_sendmsg_cmd")
|
|
329
328
|
}, null, 8, ce)
|
|
330
329
|
]),
|
|
331
330
|
default: o(() => [
|
|
332
331
|
a(e(u), {
|
|
333
|
-
value:
|
|
334
|
-
"onUpdate:value": s[12] || (s[12] = (
|
|
332
|
+
value: t.value.sendmsgCmd,
|
|
333
|
+
"onUpdate:value": s[12] || (s[12] = (n) => t.value.sendmsgCmd = n),
|
|
335
334
|
type: "text"
|
|
336
335
|
}, null, 8, ["value"])
|
|
337
336
|
]),
|
|
338
337
|
_: 1
|
|
339
338
|
}, 8, ["label"]),
|
|
340
339
|
a(e(m), {
|
|
341
|
-
label: e(
|
|
340
|
+
label: e(l)("labels.passwd_cmd"),
|
|
342
341
|
path: "passwdCmd"
|
|
343
342
|
}, {
|
|
344
343
|
feedback: o(() => [
|
|
345
|
-
|
|
346
|
-
innerHTML: e(
|
|
344
|
+
d("small", {
|
|
345
|
+
innerHTML: e(l)("games.d_passwd_cmd")
|
|
347
346
|
}, null, 8, ve)
|
|
348
347
|
]),
|
|
349
348
|
default: o(() => [
|
|
350
349
|
a(e(u), {
|
|
351
|
-
value:
|
|
352
|
-
"onUpdate:value": s[13] || (s[13] = (
|
|
350
|
+
value: t.value.passwdCmd,
|
|
351
|
+
"onUpdate:value": s[13] || (s[13] = (n) => t.value.passwdCmd = n),
|
|
353
352
|
type: "text"
|
|
354
353
|
}, null, 8, ["value"])
|
|
355
354
|
]),
|
|
@@ -366,19 +365,19 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
|
|
|
366
365
|
}),
|
|
367
366
|
a(e(w), { name: "vars" }, {
|
|
368
367
|
tab: o(() => [
|
|
369
|
-
h(g(e(
|
|
368
|
+
h(g(e(l)("games.vars")), 1)
|
|
370
369
|
]),
|
|
371
370
|
default: o(() => [
|
|
372
371
|
a(v, {
|
|
373
372
|
name: "vars",
|
|
374
|
-
modelValue:
|
|
375
|
-
"onUpdate:modelValue": s[14] || (s[14] = (
|
|
373
|
+
modelValue: t.value.vars,
|
|
374
|
+
"onUpdate:modelValue": s[14] || (s[14] = (n) => t.value.vars = n),
|
|
376
375
|
class: "mb-4",
|
|
377
376
|
labels: [
|
|
378
|
-
e(
|
|
379
|
-
e(
|
|
380
|
-
e(
|
|
381
|
-
e(
|
|
377
|
+
e(l)("games.var"),
|
|
378
|
+
e(l)("games.default"),
|
|
379
|
+
e(l)("games.info"),
|
|
380
|
+
e(l)("games.admin_var")
|
|
382
381
|
],
|
|
383
382
|
keys: ["var", "default", "info", "admin_var"],
|
|
384
383
|
"input-types": ["text", "text", "text", "checkbox"]
|
|
@@ -388,17 +387,17 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
|
|
|
388
387
|
}),
|
|
389
388
|
a(e(w), { name: "rcon" }, {
|
|
390
389
|
tab: o(() => [
|
|
391
|
-
h(g(e(
|
|
390
|
+
h(g(e(l)("games.fast_rcon_commands")), 1)
|
|
392
391
|
]),
|
|
393
392
|
default: o(() => [
|
|
394
393
|
a(v, {
|
|
395
394
|
name: "vars",
|
|
396
|
-
modelValue:
|
|
397
|
-
"onUpdate:modelValue": s[15] || (s[15] = (
|
|
395
|
+
modelValue: t.value.fastRcon,
|
|
396
|
+
"onUpdate:modelValue": s[15] || (s[15] = (n) => t.value.fastRcon = n),
|
|
398
397
|
class: "mb-4",
|
|
399
398
|
labels: [
|
|
400
|
-
e(
|
|
401
|
-
e(
|
|
399
|
+
e(l)("games.description"),
|
|
400
|
+
e(l)("games.rcon_command")
|
|
402
401
|
],
|
|
403
402
|
keys: ["info", "command"],
|
|
404
403
|
"input-types": ["text", "text"]
|
|
@@ -412,13 +411,13 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
|
|
|
412
411
|
]),
|
|
413
412
|
_: 1
|
|
414
413
|
}, 8, ["model"]),
|
|
415
|
-
a(
|
|
414
|
+
a(F, {
|
|
416
415
|
color: "green",
|
|
417
416
|
onClick: _
|
|
418
417
|
}, {
|
|
419
418
|
default: o(() => [
|
|
420
|
-
s[16] || (s[16] =
|
|
421
|
-
|
|
419
|
+
s[16] || (s[16] = d("i", { class: "fa-regular fa-floppy-disk mr-0.5" }, null, -1)),
|
|
420
|
+
d("span", fe, " " + g(e(l)("main.save")), 1)
|
|
422
421
|
]),
|
|
423
422
|
_: 1
|
|
424
423
|
})
|
|
@@ -457,13 +456,13 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
|
|
|
457
456
|
}
|
|
458
457
|
}
|
|
459
458
|
}
|
|
460
|
-
}),
|
|
459
|
+
}), ke = {
|
|
461
460
|
__name: "AdminModEdit",
|
|
462
461
|
setup(i) {
|
|
463
|
-
const f = K(), y = Q(),
|
|
462
|
+
const f = K(), y = Q(), t = O(), c = be(), C = U(() => {
|
|
464
463
|
let r = [
|
|
465
464
|
{ route: "/", text: "GameAP", icon: "gicon gicon-gameap" },
|
|
466
|
-
{ route: { name: "admin.games.index" }, text:
|
|
465
|
+
{ route: { name: "admin.games.index" }, text: l("games.games") }
|
|
467
466
|
];
|
|
468
467
|
return _.value.name && r.push(
|
|
469
468
|
{
|
|
@@ -476,9 +475,9 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
|
|
|
476
475
|
text: b.value.name
|
|
477
476
|
}
|
|
478
477
|
), r;
|
|
479
|
-
}), { game: _ } = V(
|
|
478
|
+
}), { game: _ } = V(t), { mod: b } = V(c), s = U(() => t.loading || c.loading);
|
|
480
479
|
j(() => {
|
|
481
|
-
|
|
480
|
+
t.setGameCode(f.params.code), t.fetchGame().then(() => {
|
|
482
481
|
c.setModId(f.params.id), c.fetchMod().then(() => {
|
|
483
482
|
v.value = Object.fromEntries(
|
|
484
483
|
Object.entries(b.value).map(([r, p]) => [X(r), p])
|
|
@@ -490,13 +489,13 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
|
|
|
490
489
|
k(r);
|
|
491
490
|
});
|
|
492
491
|
});
|
|
493
|
-
const v = T({}),
|
|
492
|
+
const v = T({}), n = () => {
|
|
494
493
|
const r = Object.fromEntries(
|
|
495
494
|
Object.entries(v.value).map(([p, M]) => [Y(p), M])
|
|
496
495
|
);
|
|
497
496
|
c.saveMod(r).then(() => {
|
|
498
497
|
A({
|
|
499
|
-
content:
|
|
498
|
+
content: l("games.mod_update_success_msg"),
|
|
500
499
|
type: "success"
|
|
501
500
|
}, () => {
|
|
502
501
|
y.push({ name: "admin.games.index" });
|
|
@@ -505,16 +504,16 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
|
|
|
505
504
|
k(p);
|
|
506
505
|
});
|
|
507
506
|
};
|
|
508
|
-
return (r, p) => (L(), H(
|
|
507
|
+
return (r, p) => (L(), H(S, null, [
|
|
509
508
|
a(e(B), { items: C.value }, null, 8, ["items"]),
|
|
510
|
-
s.value ? (L(),
|
|
511
|
-
|
|
509
|
+
s.value ? (L(), E(e(q), { key: 0 })) : G("", !0),
|
|
510
|
+
d("div", {
|
|
512
511
|
class: I(s.value ? "hidden" : "")
|
|
513
512
|
}, [
|
|
514
513
|
a(_e, {
|
|
515
514
|
modelValue: v.value,
|
|
516
515
|
"onUpdate:modelValue": p[0] || (p[0] = (M) => v.value = M),
|
|
517
|
-
onUpdate:
|
|
516
|
+
onUpdate: n,
|
|
518
517
|
loading: s.value
|
|
519
518
|
}, null, 8, ["modelValue", "loading"])
|
|
520
519
|
], 2)
|
|
@@ -522,5 +521,5 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
|
|
|
522
521
|
}
|
|
523
522
|
};
|
|
524
523
|
export {
|
|
525
|
-
|
|
524
|
+
ke as default
|
|
526
525
|
};
|