@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.
Files changed (45) hide show
  1. package/dist/{AdminClientCertificatesView-DQTMJ6LY.js → AdminClientCertificatesView-BQyXmri1.js} +33 -34
  2. package/dist/{AdminDaemonTaskListView-Bx3e0Miy.js → AdminDaemonTaskListView-DTQbTpkt.js} +49 -50
  3. package/dist/{AdminDaemonTaskOutputView-BJtLdoAq.js → AdminDaemonTaskOutputView-DRrZwAwW.js} +32 -33
  4. package/dist/{AdminGamesEdit-hDe3Pr-7.js → AdminGamesEdit-CDTCJu52.js} +43 -44
  5. package/dist/{AdminGamesList-CM1xADCW.js → AdminGamesList-CU_RB7gu.js} +55 -56
  6. package/dist/{AdminModEdit-DDKd6Vga.js → AdminModEdit-P0crpkM3.js} +106 -107
  7. package/dist/{AdminNodeShowView-DMoEY2Cu.js → AdminNodeShowView-Col-7fyA.js} +34 -35
  8. package/dist/{AdminNodesCreateView-BXZDQIJ1.js → AdminNodesCreateView-CZsMnSCJ.js} +26 -27
  9. package/dist/{AdminNodesEditView-xO7-szjJ.js → AdminNodesEditView-DdNciuMa.js} +23 -24
  10. package/dist/{AdminNodesView-ugTPiC4h.js → AdminNodesView-DvuZ9haB.js} +16 -17
  11. package/dist/{AdminServersCreate-DOygFz_E.js → AdminServersCreate-zGHHAEkO.js} +56 -57
  12. package/dist/{AdminServersEdit-cZX6UGB1.js → AdminServersEdit-BR6sRGlM.js} +31 -32
  13. package/dist/{AdminServersList-CC50WRsv.js → AdminServersList-DhUQ1zrt.js} +21 -22
  14. package/dist/{AdminUsersEditView-CXpMKFfI.js → AdminUsersEditView-CqRLzCkV.js} +44 -45
  15. package/dist/{AdminUsersView-DGuGEHVR.js → AdminUsersView-TCHghzxY.js} +37 -38
  16. package/dist/{CreateModForm-CqhcrNFp.js → CreateModForm-Byq8UvuW.js} +23 -23
  17. package/dist/{CreateNodeModal-BvbJTKhD.js → CreateNodeModal-BNV35RnR.js} +1 -1
  18. package/dist/{DsIpSelector-DN9IyT4L.js → DsIpSelector-EnBHsJLE.js} +1 -1
  19. package/dist/{FileManager-8TWHezyM.js → FileManager-X3FkHNzF.js} +1 -1
  20. package/dist/{GameModSelector-DRIaCbGY.js → GameModSelector-bZsSGC6T.js} +4 -4
  21. package/dist/{InputManyList-By5xECIK.js → InputManyList-BFGIEnls.js} +1 -1
  22. package/dist/{InputTextList-Bm2Ofq5J.js → InputTextList-D280D5fs.js} +1 -1
  23. package/dist/{PluginPendingView-DHd_yijv.js → PluginPendingView-Cp6KgA8z.js} +1 -1
  24. package/dist/{RconConsole-DH9XeOu3.js → RconConsole-BxjHKC6E.js} +24 -25
  25. package/dist/{RconPlayers-GrvCMJX3.js → RconPlayers-CXL0bHlU.js} +32 -32
  26. package/dist/{ServerConsole-BHHnpxJy.js → ServerConsole-Cr-BZJIC.js} +1 -1
  27. package/dist/{ServerIdView-BfqrYuar.js → ServerIdView-wsnPfVUi.js} +141 -142
  28. package/dist/{ServerSelector-QMK1qiXa.js → ServerSelector-D7O1thVu.js} +1 -1
  29. package/dist/{ServerSettings-Cz6C8Dlh.js → ServerSettings-Lk4lq5hI.js} +1 -1
  30. package/dist/{ServerStatus-DBJW9C6H.js → ServerStatus-CCFiPWXV.js} +1 -1
  31. package/dist/{ServerTasks-Bs3iGYY3.js → ServerTasks-gNFBkyv1.js} +1 -1
  32. package/dist/{SettingsParameters-DCqhqxHk.js → SettingsParameters-BVpVg868.js} +1 -1
  33. package/dist/{SmartPortSelector-DektJC6p.js → SmartPortSelector-bubAEnvR.js} +8 -8
  34. package/dist/{UpdateNodeForm-CwirLUIK.js → UpdateNodeForm-BQDjp3CR.js} +1 -1
  35. package/dist/{UserServerPrivileges-utyKdh7O.js → UserServerPrivileges-CizE2EYl.js} +1 -1
  36. package/dist/{_createCompounder-DSupx5mD.js → _createCompounder-NPjOAZm-.js} +2 -2
  37. package/dist/{camelCase-WcUYdRB3.js → camelCase-BXg45SFI.js} +2 -2
  38. package/dist/{capitalize-DRKkBaYR.js → capitalize-BSQeiLff.js} +10 -10
  39. package/dist/{clientCertificates-BsJdUHYw.js → clientCertificates-Dm0Bh62v.js} +1 -1
  40. package/dist/{gameList-DpGDCxFE.js → gameList-CJAymSBL.js} +1 -1
  41. package/dist/{index-60qEjGuU.js → index-Fmomw6wi.js} +2333 -1954
  42. package/dist/index.js +1 -1
  43. package/dist/{loader-CrZTMKcy.js → loader-BGOXrNPF.js} +1 -1
  44. package/dist/{snakeCase-CTCA7tap.js → snakeCase-o1mQEFQr.js} +1 -1
  45. 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 n, createTextVNode as h, toDisplayString as g, computed as U, onMounted as j, Fragment as G, createBlock as S, createCommentVNode as E } from "vue";
2
- import { GBreadcrumbs as B, Loading as F } from "@gameap/ui";
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-WcUYdRB3.js";
8
- import { s as Y } from "./snakeCase-CTCA7tap.js";
9
- const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1/2" }, ae = { class: "flex flex-wrap mt-2" }, te = { class: "md:w-1/2 pr-8" }, le = { class: "md:w-1/2" }, se = { class: "flex flex-wrap mt-2" }, oe = { class: "md:w-full" }, de = { class: "flex flex-wrap mt-2" }, ne = { 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 = {
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({}), l = W(i, "modelValue"), c = {
16
+ const y = T({}), t = W(i, "modelValue"), c = {
18
17
  name: {
19
18
  required: !0,
20
- validator: O(t("labels.name"))
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: l.value,
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(t)("games.main")), 1)
48
+ h(g(e(l)("games.main")), 1)
50
49
  ]),
51
50
  default: o(() => [
52
- n("div", Z, [
53
- n("div", ee, [
51
+ d("div", Z, [
52
+ d("div", ee, [
54
53
  a(e(x), {
55
- title: e(t)("games.basic_info"),
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(t)("labels.name"),
65
+ label: e(l)("labels.name"),
67
66
  path: "name"
68
67
  }, {
69
68
  default: o(() => [
70
69
  a(e(u), {
71
- value: l.value.name,
72
- "onUpdate:value": s[0] || (s[0] = (d) => l.value.name = d),
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
- n("div", ae, [
84
- n("div", te, [
82
+ d("div", ae, [
83
+ d("div", le, [
85
84
  a(e(x), {
86
- title: e(t)("games.repositories_local"),
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(t)("labels.local_repository_linux"),
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: l.value.localRepositoryLinux,
103
- "onUpdate:value": s[1] || (s[1] = (d) => l.value.localRepositoryLinux = d),
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(t)("labels.local_repository_windows"),
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: l.value.localRepositoryWindows,
116
- "onUpdate:value": s[2] || (s[2] = (d) => l.value.localRepositoryWindows = d),
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
- n("div", le, [
125
+ d("div", te, [
127
126
  a(e(x), {
128
- title: e(t)("games.repositories_remote"),
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(t)("labels.remote_repository_linux"),
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: l.value.remoteRepositoryLinux,
145
- "onUpdate:value": s[3] || (s[3] = (d) => l.value.remoteRepositoryLinux = d),
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(t)("labels.remote_repository_windows"),
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: l.value.remoteRepositoryWindows,
158
- "onUpdate:value": s[4] || (s[4] = (d) => l.value.remoteRepositoryWindows = d),
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
- n("div", se, [
170
- n("div", oe, [
168
+ d("div", se, [
169
+ d("div", oe, [
171
170
  a(e(x), {
172
- title: e(t)("games.run_commands"),
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(t)("labels.start_cmd_linux"),
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: l.value.startCmdLinux,
189
- "onUpdate:value": s[5] || (s[5] = (d) => l.value.startCmdLinux = d),
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(t)("labels.start_cmd_windows"),
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: l.value.startCmdWindows,
203
- "onUpdate:value": s[6] || (s[6] = (d) => l.value.startCmdWindows = d),
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(t)("games.servers_commands")), 1)
219
+ h(g(e(l)("games.servers_commands")), 1)
221
220
  ]),
222
221
  default: o(() => [
223
- n("div", de, [
224
- n("div", ne, [
222
+ d("div", ne, [
223
+ d("div", de, [
225
224
  a(e(x), {
226
- title: e(t)("games.servers_commands"),
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
- n("div", me, [
235
+ d("div", me, [
237
236
  a(e(m), {
238
- label: e(t)("labels.kick_cmd"),
237
+ label: e(l)("labels.kick_cmd"),
239
238
  path: "kickCmd"
240
239
  }, {
241
240
  feedback: o(() => [
242
- n("small", {
243
- innerHTML: e(t)("games.d_kick_cmd")
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: l.value.kickCmd,
249
- "onUpdate:value": s[7] || (s[7] = (d) => l.value.kickCmd = d),
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(t)("labels.ban_cmd"),
255
+ label: e(l)("labels.ban_cmd"),
257
256
  path: "banCmd"
258
257
  }, {
259
258
  feedback: o(() => [
260
- n("small", {
261
- innerHTML: e(t)("games.d_ban_cmd")
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: l.value.banCmd,
267
- "onUpdate:value": s[8] || (s[8] = (d) => l.value.banCmd = d),
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(t)("labels.chname_cmd"),
273
+ label: e(l)("labels.chname_cmd"),
275
274
  path: "chnameCmd"
276
275
  }, {
277
276
  feedback: o(() => [
278
- n("small", {
279
- innerHTML: e(t)("games.d_chname_cmd")
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: l.value.chnameCmd,
285
- "onUpdate:value": s[9] || (s[9] = (d) => l.value.chnameCmd = d),
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(t)("labels.srestart_cmd"),
291
+ label: e(l)("labels.srestart_cmd"),
293
292
  path: "srestartCmd"
294
293
  }, {
295
294
  default: o(() => [
296
295
  a(e(u), {
297
- value: l.value.srestartCmd,
298
- "onUpdate:value": s[10] || (s[10] = (d) => l.value.srestartCmd = d),
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(t)("labels.chmap_cmd"),
304
+ label: e(l)("labels.chmap_cmd"),
306
305
  path: "chmapCmd"
307
306
  }, {
308
307
  feedback: o(() => [
309
- n("small", {
310
- innerHTML: e(t)("games.d_chmap_cmd")
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: l.value.chmapCmd,
316
- "onUpdate:value": s[11] || (s[11] = (d) => l.value.chmapCmd = d),
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(t)("labels.sendmsg_cmd"),
322
+ label: e(l)("labels.sendmsg_cmd"),
324
323
  path: "sendmsgCmd"
325
324
  }, {
326
325
  feedback: o(() => [
327
- n("small", {
328
- innerHTML: e(t)("games.d_sendmsg_cmd")
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: l.value.sendmsgCmd,
334
- "onUpdate:value": s[12] || (s[12] = (d) => l.value.sendmsgCmd = d),
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(t)("labels.passwd_cmd"),
340
+ label: e(l)("labels.passwd_cmd"),
342
341
  path: "passwdCmd"
343
342
  }, {
344
343
  feedback: o(() => [
345
- n("small", {
346
- innerHTML: e(t)("games.d_passwd_cmd")
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: l.value.passwdCmd,
352
- "onUpdate:value": s[13] || (s[13] = (d) => l.value.passwdCmd = d),
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(t)("games.vars")), 1)
368
+ h(g(e(l)("games.vars")), 1)
370
369
  ]),
371
370
  default: o(() => [
372
371
  a(v, {
373
372
  name: "vars",
374
- modelValue: l.value.vars,
375
- "onUpdate:modelValue": s[14] || (s[14] = (d) => l.value.vars = d),
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(t)("games.var"),
379
- e(t)("games.default"),
380
- e(t)("games.info"),
381
- e(t)("games.admin_var")
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(t)("games.fast_rcon_commands")), 1)
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: l.value.fastRcon,
397
- "onUpdate:modelValue": s[15] || (s[15] = (d) => l.value.fastRcon = d),
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(t)("games.description"),
401
- e(t)("games.rcon_command")
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(q, {
414
+ a(F, {
416
415
  color: "green",
417
416
  onClick: _
418
417
  }, {
419
418
  default: o(() => [
420
- s[16] || (s[16] = n("i", { class: "fa-regular fa-floppy-disk mr-0.5" }, null, -1)),
421
- n("span", fe, " " + g(e(t)("main.save")), 1)
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
- }), Le = {
459
+ }), ke = {
461
460
  __name: "AdminModEdit",
462
461
  setup(i) {
463
- const f = K(), y = Q(), l = $(), c = be(), C = U(() => {
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: t("games.games") }
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(l), { mod: b } = V(c), s = U(() => l.loading || c.loading);
478
+ }), { game: _ } = V(t), { mod: b } = V(c), s = U(() => t.loading || c.loading);
480
479
  j(() => {
481
- l.setGameCode(f.params.code), l.fetchGame().then(() => {
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({}), d = () => {
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: t("games.mod_update_success_msg"),
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(G, null, [
507
+ return (r, p) => (L(), H(S, null, [
509
508
  a(e(B), { items: C.value }, null, 8, ["items"]),
510
- s.value ? (L(), S(e(F), { key: 0 })) : E("", !0),
511
- n("div", {
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: d,
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
- Le as default
524
+ ke as default
526
525
  };