@gameap/frontend 4.1.0-dev7 → 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.
Files changed (77) hide show
  1. package/dist/{AdminClientCertificatesView-BQyXmri1.js → AdminClientCertificatesView-rVNAX5Dl.js} +97 -94
  2. package/dist/AdminDaemonTaskListView-CoUVp9tK.js +316 -0
  3. package/dist/{AdminDaemonTaskOutputView-DRrZwAwW.js → AdminDaemonTaskOutputView-BJpuWCtc.js} +18 -17
  4. package/dist/{AdminGamesEdit-CDTCJu52.js → AdminGamesEdit-HKWU2C59.js} +121 -117
  5. package/dist/AdminGamesList-BwN_RFDY.js +518 -0
  6. package/dist/{AdminModEdit-P0crpkM3.js → AdminModEdit-CbVGlk5M.js} +123 -119
  7. package/dist/AdminNodeShowView-C7VsvwQo.js +175 -0
  8. package/dist/AdminNodesCreateView-BfEHhFn2.js +87 -0
  9. package/dist/{AdminNodesEditView-DdNciuMa.js → AdminNodesEditView-DE-zhVTd.js} +11 -11
  10. package/dist/AdminNodesView-QMdy3oJ1.js +167 -0
  11. package/dist/AdminPluginsView-BBALhxPk.js +984 -0
  12. package/dist/{AdminServersCreate-zGHHAEkO.js → AdminServersCreate-g_A290kz.js} +122 -124
  13. package/dist/{AdminServersEdit-BR6sRGlM.js → AdminServersEdit-D0RERbR5.js} +125 -124
  14. package/dist/{AdminServersList-DhUQ1zrt.js → AdminServersList-_ek_2u8B.js} +35 -31
  15. package/dist/{AdminUsersEditView-CqRLzCkV.js → AdminUsersEditView-CbZCH6eM.js} +89 -85
  16. package/dist/{AdminUsersView-TCHghzxY.js → AdminUsersView-D4WoRB5b.js} +145 -141
  17. package/dist/CreateModForm-CpbIOQNu.js +123 -0
  18. package/dist/CreateNodeModal-C96UVcAJ.js +99 -0
  19. package/dist/{DsIpSelector-EnBHsJLE.js → DsIpSelector-D_hc_JYQ.js} +1 -1
  20. package/dist/EmptyView-qkQQJ_OR.js +9 -0
  21. package/dist/FileManager-v-1ASSne.js +5931 -0
  22. package/dist/GameIcon-DaYNlnur.js +87 -0
  23. package/dist/{GameModSelector-bZsSGC6T.js → GameModSelector-CiI3H5Zq.js} +21 -20
  24. package/dist/InputManyList-C52f5V6l.js +110 -0
  25. package/dist/InputTextList-5KeNATa7.js +63 -0
  26. package/dist/PluginPendingView-CDR44QCG.js +34 -0
  27. package/dist/ProfileView-CC3KJ2gK.js +295 -0
  28. package/dist/RconConsole-DkRK7vz3.js +74 -0
  29. package/dist/{RconPlayers-CXL0bHlU.js → RconPlayers-CDRCp79f.js} +131 -127
  30. package/dist/ServerConsole-Bj0Zr1BS.js +99 -0
  31. package/dist/ServerControlButton-C4zWzA-d.js +185 -0
  32. package/dist/ServerIdView-BJS6wcMH.js +608 -0
  33. package/dist/{ServerSelector-D7O1thVu.js → ServerSelector-DPM5SjWO.js} +7 -7
  34. package/dist/{ServerSettings-Lk4lq5hI.js → ServerSettings-BYRSLaJk.js} +26 -26
  35. package/dist/{ServerStatus-CCFiPWXV.js → ServerStatus-BK8yKehx.js} +1 -1
  36. package/dist/{ServerTasks-gNFBkyv1.js → ServerTasks-DUC2DDcY.js} +304 -302
  37. package/dist/ServersView-BbLoOEEz.js +312 -0
  38. package/dist/SettingsParameters-C-TFWsJF.js +89 -0
  39. package/dist/SmartPortSelector-DCsuCDpV.js +174 -0
  40. package/dist/TokensView-B5D45QbV.js +392 -0
  41. package/dist/{UpdateNodeForm-BQDjp3CR.js → UpdateNodeForm-DmAoHURu.js} +131 -127
  42. package/dist/UserServerPrivileges-k-30v4ps.js +319 -0
  43. package/dist/{_createCompounder-NPjOAZm-.js → _createCompounder-DHQYnhTQ.js} +2 -2
  44. package/dist/{camelCase-BXg45SFI.js → camelCase-CE1GGhvX.js} +2 -2
  45. package/dist/{capitalize-BSQeiLff.js → capitalize-DnZmwhT4.js} +5 -5
  46. package/dist/{clientCertificates-Dm0Bh62v.js → clientCertificates-Dd9OqxGQ.js} +1 -1
  47. package/dist/frontend.css +6 -14
  48. package/dist/{gameList-CJAymSBL.js → gameList-BLdEusRA.js} +40 -40
  49. package/dist/gameap.svg +3 -0
  50. package/dist/gameap_full.svg +9 -0
  51. package/dist/index-BDKiNPpP.js +3840 -0
  52. package/dist/index.js +1 -1
  53. package/dist/isEmpty-lBntcFaB.js +263 -0
  54. package/dist/join-CmlzL0H9.js +7 -0
  55. package/dist/{loader-BGOXrNPF.js → loader-C49Def-j.js} +1 -1
  56. package/dist/{snakeCase-o1mQEFQr.js → snakeCase--wUVfLw4.js} +1 -1
  57. package/dist/validators-BVXTUmow.js +65 -0
  58. package/package.json +1 -1
  59. package/dist/AdminDaemonTaskListView-DTQbTpkt.js +0 -315
  60. package/dist/AdminGamesList-CU_RB7gu.js +0 -499
  61. package/dist/AdminNodeShowView-Col-7fyA.js +0 -166
  62. package/dist/AdminNodesCreateView-CZsMnSCJ.js +0 -84
  63. package/dist/AdminNodesView-DvuZ9haB.js +0 -160
  64. package/dist/CreateModForm-Byq8UvuW.js +0 -122
  65. package/dist/CreateNodeModal-BNV35RnR.js +0 -93
  66. package/dist/FileManager-X3FkHNzF.js +0 -31882
  67. package/dist/InputManyList-BFGIEnls.js +0 -110
  68. package/dist/InputTextList-D280D5fs.js +0 -63
  69. package/dist/PluginPendingView-Cp6KgA8z.js +0 -31
  70. package/dist/RconConsole-BxjHKC6E.js +0 -74
  71. package/dist/ServerConsole-Cr-BZJIC.js +0 -98
  72. package/dist/ServerIdView-wsnPfVUi.js +0 -576
  73. package/dist/SettingsParameters-BVpVg868.js +0 -87
  74. package/dist/SmartPortSelector-bubAEnvR.js +0 -161
  75. package/dist/UserServerPrivileges-CizE2EYl.js +0 -318
  76. package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
  77. package/dist/index-Fmomw6wi.js +0 -5750
@@ -1,11 +1,12 @@
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";
3
- import { NForm as P, NTabs as D, NTabPane as w, NCard as x, NFormItem as m, NInput as u } from "naive-ui";
4
- import { defineStore as J, storeToRefs as V } from "pinia";
5
- import { useRoute as K, useRouter as Q } from "vue-router";
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 = {
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 y, toDisplayString as g, computed as U, onMounted as j, Fragment as S, createBlock as $, createCommentVNode as E } from "vue";
2
+ import { t, _ as G, a as F, b as R, h as O, e as k, m as B, l as q, n as A } from "./index-BDKiNPpP.js";
3
+ import { r as P } from "./validators-BVXTUmow.js";
4
+ import { NForm as D, NTabs as J, NTabPane as w, NCard as x, NFormItem as m, NInput as u } from "naive-ui";
5
+ import { defineStore as K, storeToRefs as V } from "pinia";
6
+ import { useRoute as Q, useRouter as X } from "vue-router";
7
+ import { c as Y } from "./camelCase-CE1GGhvX.js";
8
+ import { s as Z } from "./snakeCase--wUVfLw4.js";
9
+ const ee = { class: "flex flex-wrap justify-center mt-2" }, ae = { class: "md:w-1/2" }, te = { class: "flex flex-wrap mt-2" }, le = { class: "md:w-1/2 pr-8" }, se = { class: "md:w-1/2" }, oe = { class: "flex flex-wrap mt-2" }, ne = { class: "md:w-full" }, de = { class: "flex flex-wrap mt-2" }, me = { class: "md:w-full" }, ue = { class: "flex grid grid-cols-2 gap-x-5 gap-y-4" }, re = ["innerHTML"], ie = ["innerHTML"], ce = ["innerHTML"], pe = ["innerHTML"], ve = ["innerHTML"], fe = ["innerHTML"], _e = { class: "hidden lg:inline" }, be = {
9
10
  __name: "UpdateModForm",
10
11
  props: {
11
12
  modelValue: {},
@@ -13,13 +14,13 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
13
14
  },
14
15
  emits: /* @__PURE__ */ N(["update"], ["update:modelValue"]),
15
16
  setup(i, { emit: f }) {
16
- const y = T({}), t = W(i, "modelValue"), c = {
17
+ const h = T({}), l = W(i, "modelValue"), p = {
17
18
  name: {
18
19
  required: !0,
19
- validator: $(l("labels.name"))
20
+ validator: P(t("labels.name"))
20
21
  }
21
22
  }, C = f, _ = () => {
22
- y.value.validate().then(() => {
23
+ h.value.validate().then(() => {
23
24
  C("update");
24
25
  });
25
26
  };
@@ -28,16 +29,16 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
28
29
  return L(), H("div", {
29
30
  class: I(b.$attrs.class)
30
31
  }, [
31
- a(e(P), {
32
+ a(e(D), {
32
33
  "label-placement": "top",
33
34
  "label-width": "auto",
34
35
  ref_key: "formRef",
35
- ref: y,
36
- model: t.value,
37
- rules: c
36
+ ref: h,
37
+ model: l.value,
38
+ rules: p
38
39
  }, {
39
40
  default: o(() => [
40
- a(e(D), {
41
+ a(e(J), {
41
42
  type: "line",
42
43
  class: "flex justify-between",
43
44
  animated: ""
@@ -45,13 +46,13 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
45
46
  default: o(() => [
46
47
  a(e(w), { name: "main" }, {
47
48
  tab: o(() => [
48
- h(g(e(l)("games.main")), 1)
49
+ y(g(e(t)("games.main")), 1)
49
50
  ]),
50
51
  default: o(() => [
51
- d("div", Z, [
52
- d("div", ee, [
52
+ d("div", ee, [
53
+ d("div", ae, [
53
54
  a(e(x), {
54
- title: e(l)("games.basic_info"),
55
+ title: e(t)("games.basic_info"),
55
56
  size: "small",
56
57
  class: "mb-3",
57
58
  "header-class": "g-card-header",
@@ -62,13 +63,13 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
62
63
  }, {
63
64
  default: o(() => [
64
65
  a(e(m), {
65
- label: e(l)("labels.name"),
66
+ label: e(t)("labels.name"),
66
67
  path: "name"
67
68
  }, {
68
69
  default: o(() => [
69
70
  a(e(u), {
70
- value: t.value.name,
71
- "onUpdate:value": s[0] || (s[0] = (n) => t.value.name = n),
71
+ value: l.value.name,
72
+ "onUpdate:value": s[0] || (s[0] = (n) => l.value.name = n),
72
73
  type: "text"
73
74
  }, null, 8, ["value"])
74
75
  ]),
@@ -79,10 +80,10 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
79
80
  }, 8, ["title"])
80
81
  ])
81
82
  ]),
82
- d("div", ae, [
83
+ d("div", te, [
83
84
  d("div", le, [
84
85
  a(e(x), {
85
- title: e(l)("games.repositories_local"),
86
+ title: e(t)("games.repositories_local"),
86
87
  size: "small",
87
88
  class: "mb-3",
88
89
  "header-class": "g-card-header",
@@ -93,26 +94,26 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
93
94
  }, {
94
95
  default: o(() => [
95
96
  a(e(m), {
96
- label: e(l)("labels.local_repository_linux"),
97
+ label: e(t)("labels.local_repository_linux"),
97
98
  path: "localRepositoryLinux"
98
99
  }, {
99
100
  default: o(() => [
100
101
  a(e(u), {
101
- value: t.value.localRepositoryLinux,
102
- "onUpdate:value": s[1] || (s[1] = (n) => t.value.localRepositoryLinux = n),
102
+ value: l.value.localRepositoryLinux,
103
+ "onUpdate:value": s[1] || (s[1] = (n) => l.value.localRepositoryLinux = n),
103
104
  type: "text"
104
105
  }, null, 8, ["value"])
105
106
  ]),
106
107
  _: 1
107
108
  }, 8, ["label"]),
108
109
  a(e(m), {
109
- label: e(l)("labels.local_repository_windows"),
110
+ label: e(t)("labels.local_repository_windows"),
110
111
  path: "localRepositoryWindows"
111
112
  }, {
112
113
  default: o(() => [
113
114
  a(e(u), {
114
- value: t.value.localRepositoryWindows,
115
- "onUpdate:value": s[2] || (s[2] = (n) => t.value.localRepositoryWindows = n),
115
+ value: l.value.localRepositoryWindows,
116
+ "onUpdate:value": s[2] || (s[2] = (n) => l.value.localRepositoryWindows = n),
116
117
  type: "text"
117
118
  }, null, 8, ["value"])
118
119
  ]),
@@ -122,9 +123,9 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
122
123
  _: 1
123
124
  }, 8, ["title"])
124
125
  ]),
125
- d("div", te, [
126
+ d("div", se, [
126
127
  a(e(x), {
127
- title: e(l)("games.repositories_remote"),
128
+ title: e(t)("games.repositories_remote"),
128
129
  size: "small",
129
130
  class: "mb-3",
130
131
  "header-class": "g-card-header",
@@ -135,26 +136,26 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
135
136
  }, {
136
137
  default: o(() => [
137
138
  a(e(m), {
138
- label: e(l)("labels.remote_repository_linux"),
139
+ label: e(t)("labels.remote_repository_linux"),
139
140
  path: "remoteRepositoryLinux"
140
141
  }, {
141
142
  default: o(() => [
142
143
  a(e(u), {
143
- value: t.value.remoteRepositoryLinux,
144
- "onUpdate:value": s[3] || (s[3] = (n) => t.value.remoteRepositoryLinux = n),
144
+ value: l.value.remoteRepositoryLinux,
145
+ "onUpdate:value": s[3] || (s[3] = (n) => l.value.remoteRepositoryLinux = n),
145
146
  type: "text"
146
147
  }, null, 8, ["value"])
147
148
  ]),
148
149
  _: 1
149
150
  }, 8, ["label"]),
150
151
  a(e(m), {
151
- label: e(l)("labels.remote_repository_windows"),
152
+ label: e(t)("labels.remote_repository_windows"),
152
153
  path: "remoteRepositoryWindows"
153
154
  }, {
154
155
  default: o(() => [
155
156
  a(e(u), {
156
- value: t.value.remoteRepositoryWindows,
157
- "onUpdate:value": s[4] || (s[4] = (n) => t.value.remoteRepositoryWindows = n),
157
+ value: l.value.remoteRepositoryWindows,
158
+ "onUpdate:value": s[4] || (s[4] = (n) => l.value.remoteRepositoryWindows = n),
158
159
  type: "text"
159
160
  }, null, 8, ["value"])
160
161
  ]),
@@ -165,10 +166,10 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
165
166
  }, 8, ["title"])
166
167
  ])
167
168
  ]),
168
- d("div", se, [
169
- d("div", oe, [
169
+ d("div", oe, [
170
+ d("div", ne, [
170
171
  a(e(x), {
171
- title: e(l)("games.run_commands"),
172
+ title: e(t)("games.run_commands"),
172
173
  size: "small",
173
174
  class: "mb-3",
174
175
  "header-class": "g-card-header",
@@ -179,13 +180,13 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
179
180
  }, {
180
181
  default: o(() => [
181
182
  a(e(m), {
182
- label: e(l)("labels.start_cmd_linux"),
183
+ label: e(t)("labels.start_cmd_linux"),
183
184
  path: "startCmdLinux"
184
185
  }, {
185
186
  default: o(() => [
186
187
  a(e(u), {
187
- value: t.value.startCmdLinux,
188
- "onUpdate:value": s[5] || (s[5] = (n) => t.value.startCmdLinux = n),
188
+ value: l.value.startCmdLinux,
189
+ "onUpdate:value": s[5] || (s[5] = (n) => l.value.startCmdLinux = n),
189
190
  type: "textarea",
190
191
  autosize: { minRows: 4 }
191
192
  }, null, 8, ["value"])
@@ -193,13 +194,13 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
193
194
  _: 1
194
195
  }, 8, ["label"]),
195
196
  a(e(m), {
196
- label: e(l)("labels.start_cmd_windows"),
197
+ label: e(t)("labels.start_cmd_windows"),
197
198
  path: "startCmdWindows"
198
199
  }, {
199
200
  default: o(() => [
200
201
  a(e(u), {
201
- value: t.value.startCmdWindows,
202
- "onUpdate:value": s[6] || (s[6] = (n) => t.value.startCmdWindows = n),
202
+ value: l.value.startCmdWindows,
203
+ "onUpdate:value": s[6] || (s[6] = (n) => l.value.startCmdWindows = n),
203
204
  type: "textarea",
204
205
  autosize: { minRows: 4 }
205
206
  }, null, 8, ["value"])
@@ -216,13 +217,13 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
216
217
  }),
217
218
  a(e(w), { name: "commands" }, {
218
219
  tab: o(() => [
219
- h(g(e(l)("games.servers_commands")), 1)
220
+ y(g(e(t)("games.servers_commands")), 1)
220
221
  ]),
221
222
  default: o(() => [
222
- d("div", ne, [
223
- d("div", de, [
223
+ d("div", de, [
224
+ d("div", me, [
224
225
  a(e(x), {
225
- title: e(l)("games.servers_commands"),
226
+ title: e(t)("games.servers_commands"),
226
227
  size: "small",
227
228
  class: "mb-3",
228
229
  "header-class": "g-card-header",
@@ -232,123 +233,123 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
232
233
  }
233
234
  }, {
234
235
  default: o(() => [
235
- d("div", me, [
236
+ d("div", ue, [
236
237
  a(e(m), {
237
- label: e(l)("labels.kick_cmd"),
238
+ label: e(t)("labels.kick_cmd"),
238
239
  path: "kickCmd"
239
240
  }, {
240
241
  feedback: o(() => [
241
242
  d("small", {
242
- innerHTML: e(l)("games.d_kick_cmd")
243
- }, null, 8, ue)
243
+ innerHTML: e(t)("games.d_kick_cmd")
244
+ }, null, 8, re)
244
245
  ]),
245
246
  default: o(() => [
246
247
  a(e(u), {
247
- value: t.value.kickCmd,
248
- "onUpdate:value": s[7] || (s[7] = (n) => t.value.kickCmd = n),
248
+ value: l.value.kickCmd,
249
+ "onUpdate:value": s[7] || (s[7] = (n) => l.value.kickCmd = n),
249
250
  type: "text"
250
251
  }, null, 8, ["value"])
251
252
  ]),
252
253
  _: 1
253
254
  }, 8, ["label"]),
254
255
  a(e(m), {
255
- label: e(l)("labels.ban_cmd"),
256
+ label: e(t)("labels.ban_cmd"),
256
257
  path: "banCmd"
257
258
  }, {
258
259
  feedback: o(() => [
259
260
  d("small", {
260
- innerHTML: e(l)("games.d_ban_cmd")
261
- }, null, 8, re)
261
+ innerHTML: e(t)("games.d_ban_cmd")
262
+ }, null, 8, ie)
262
263
  ]),
263
264
  default: o(() => [
264
265
  a(e(u), {
265
- value: t.value.banCmd,
266
- "onUpdate:value": s[8] || (s[8] = (n) => t.value.banCmd = n),
266
+ value: l.value.banCmd,
267
+ "onUpdate:value": s[8] || (s[8] = (n) => l.value.banCmd = n),
267
268
  type: "text"
268
269
  }, null, 8, ["value"])
269
270
  ]),
270
271
  _: 1
271
272
  }, 8, ["label"]),
272
273
  a(e(m), {
273
- label: e(l)("labels.chname_cmd"),
274
+ label: e(t)("labels.chname_cmd"),
274
275
  path: "chnameCmd"
275
276
  }, {
276
277
  feedback: o(() => [
277
278
  d("small", {
278
- innerHTML: e(l)("games.d_chname_cmd")
279
- }, null, 8, ie)
279
+ innerHTML: e(t)("games.d_chname_cmd")
280
+ }, null, 8, ce)
280
281
  ]),
281
282
  default: o(() => [
282
283
  a(e(u), {
283
- value: t.value.chnameCmd,
284
- "onUpdate:value": s[9] || (s[9] = (n) => t.value.chnameCmd = n),
284
+ value: l.value.chnameCmd,
285
+ "onUpdate:value": s[9] || (s[9] = (n) => l.value.chnameCmd = n),
285
286
  type: "text"
286
287
  }, null, 8, ["value"])
287
288
  ]),
288
289
  _: 1
289
290
  }, 8, ["label"]),
290
291
  a(e(m), {
291
- label: e(l)("labels.srestart_cmd"),
292
+ label: e(t)("labels.srestart_cmd"),
292
293
  path: "srestartCmd"
293
294
  }, {
294
295
  default: o(() => [
295
296
  a(e(u), {
296
- value: t.value.srestartCmd,
297
- "onUpdate:value": s[10] || (s[10] = (n) => t.value.srestartCmd = n),
297
+ value: l.value.srestartCmd,
298
+ "onUpdate:value": s[10] || (s[10] = (n) => l.value.srestartCmd = n),
298
299
  type: "text"
299
300
  }, null, 8, ["value"])
300
301
  ]),
301
302
  _: 1
302
303
  }, 8, ["label"]),
303
304
  a(e(m), {
304
- label: e(l)("labels.chmap_cmd"),
305
+ label: e(t)("labels.chmap_cmd"),
305
306
  path: "chmapCmd"
306
307
  }, {
307
308
  feedback: o(() => [
308
309
  d("small", {
309
- innerHTML: e(l)("games.d_chmap_cmd")
310
+ innerHTML: e(t)("games.d_chmap_cmd")
310
311
  }, null, 8, pe)
311
312
  ]),
312
313
  default: o(() => [
313
314
  a(e(u), {
314
- value: t.value.chmapCmd,
315
- "onUpdate:value": s[11] || (s[11] = (n) => t.value.chmapCmd = n),
315
+ value: l.value.chmapCmd,
316
+ "onUpdate:value": s[11] || (s[11] = (n) => l.value.chmapCmd = n),
316
317
  type: "text"
317
318
  }, null, 8, ["value"])
318
319
  ]),
319
320
  _: 1
320
321
  }, 8, ["label"]),
321
322
  a(e(m), {
322
- label: e(l)("labels.sendmsg_cmd"),
323
+ label: e(t)("labels.sendmsg_cmd"),
323
324
  path: "sendmsgCmd"
324
325
  }, {
325
326
  feedback: o(() => [
326
327
  d("small", {
327
- innerHTML: e(l)("games.d_sendmsg_cmd")
328
- }, null, 8, ce)
328
+ innerHTML: e(t)("games.d_sendmsg_cmd")
329
+ }, null, 8, ve)
329
330
  ]),
330
331
  default: o(() => [
331
332
  a(e(u), {
332
- value: t.value.sendmsgCmd,
333
- "onUpdate:value": s[12] || (s[12] = (n) => t.value.sendmsgCmd = n),
333
+ value: l.value.sendmsgCmd,
334
+ "onUpdate:value": s[12] || (s[12] = (n) => l.value.sendmsgCmd = n),
334
335
  type: "text"
335
336
  }, null, 8, ["value"])
336
337
  ]),
337
338
  _: 1
338
339
  }, 8, ["label"]),
339
340
  a(e(m), {
340
- label: e(l)("labels.passwd_cmd"),
341
+ label: e(t)("labels.passwd_cmd"),
341
342
  path: "passwdCmd"
342
343
  }, {
343
344
  feedback: o(() => [
344
345
  d("small", {
345
- innerHTML: e(l)("games.d_passwd_cmd")
346
- }, null, 8, ve)
346
+ innerHTML: e(t)("games.d_passwd_cmd")
347
+ }, null, 8, fe)
347
348
  ]),
348
349
  default: o(() => [
349
350
  a(e(u), {
350
- value: t.value.passwdCmd,
351
- "onUpdate:value": s[13] || (s[13] = (n) => t.value.passwdCmd = n),
351
+ value: l.value.passwdCmd,
352
+ "onUpdate:value": s[13] || (s[13] = (n) => l.value.passwdCmd = n),
352
353
  type: "text"
353
354
  }, null, 8, ["value"])
354
355
  ]),
@@ -365,19 +366,19 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
365
366
  }),
366
367
  a(e(w), { name: "vars" }, {
367
368
  tab: o(() => [
368
- h(g(e(l)("games.vars")), 1)
369
+ y(g(e(t)("games.vars")), 1)
369
370
  ]),
370
371
  default: o(() => [
371
372
  a(v, {
372
373
  name: "vars",
373
- modelValue: t.value.vars,
374
- "onUpdate:modelValue": s[14] || (s[14] = (n) => t.value.vars = n),
374
+ modelValue: l.value.vars,
375
+ "onUpdate:modelValue": s[14] || (s[14] = (n) => l.value.vars = n),
375
376
  class: "mb-4",
376
377
  labels: [
377
- e(l)("games.var"),
378
- e(l)("games.default"),
379
- e(l)("games.info"),
380
- e(l)("games.admin_var")
378
+ e(t)("games.var"),
379
+ e(t)("games.default"),
380
+ e(t)("games.info"),
381
+ e(t)("games.admin_var")
381
382
  ],
382
383
  keys: ["var", "default", "info", "admin_var"],
383
384
  "input-types": ["text", "text", "text", "checkbox"]
@@ -387,17 +388,17 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
387
388
  }),
388
389
  a(e(w), { name: "rcon" }, {
389
390
  tab: o(() => [
390
- h(g(e(l)("games.fast_rcon_commands")), 1)
391
+ y(g(e(t)("games.fast_rcon_commands")), 1)
391
392
  ]),
392
393
  default: o(() => [
393
394
  a(v, {
394
395
  name: "vars",
395
- modelValue: t.value.fastRcon,
396
- "onUpdate:modelValue": s[15] || (s[15] = (n) => t.value.fastRcon = n),
396
+ modelValue: l.value.fastRcon,
397
+ "onUpdate:modelValue": s[15] || (s[15] = (n) => l.value.fastRcon = n),
397
398
  class: "mb-4",
398
399
  labels: [
399
- e(l)("games.description"),
400
- e(l)("games.rcon_command")
400
+ e(t)("games.description"),
401
+ e(t)("games.rcon_command")
401
402
  ],
402
403
  keys: ["info", "command"],
403
404
  "input-types": ["text", "text"]
@@ -411,20 +412,23 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
411
412
  ]),
412
413
  _: 1
413
414
  }, 8, ["model"]),
414
- a(F, {
415
+ a(G, {
415
416
  color: "green",
416
417
  onClick: _
417
418
  }, {
418
419
  default: o(() => [
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)
420
+ a(e(F), {
421
+ name: "save",
422
+ class: "mr-0.5"
423
+ }),
424
+ d("span", _e, " " + g(e(t)("main.save")), 1)
421
425
  ]),
422
426
  _: 1
423
427
  })
424
428
  ], 2);
425
429
  };
426
430
  }
427
- }, be = J("gameMod", {
431
+ }, ge = K("gameMod", {
428
432
  state: () => ({
429
433
  loading: !1,
430
434
  modId: "",
@@ -456,13 +460,13 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
456
460
  }
457
461
  }
458
462
  }
459
- }), ke = {
463
+ }), Ue = {
460
464
  __name: "AdminModEdit",
461
465
  setup(i) {
462
- const f = K(), y = Q(), t = O(), c = be(), C = U(() => {
466
+ const f = Q(), h = X(), l = O(), p = ge(), C = U(() => {
463
467
  let r = [
464
468
  { route: "/", text: "GameAP", icon: "gicon gicon-gameap" },
465
- { route: { name: "admin.games.index" }, text: l("games.games") }
469
+ { route: { name: "admin.games.index" }, text: t("games.games") }
466
470
  ];
467
471
  return _.value.name && r.push(
468
472
  {
@@ -475,12 +479,12 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
475
479
  text: b.value.name
476
480
  }
477
481
  ), r;
478
- }), { game: _ } = V(t), { mod: b } = V(c), s = U(() => t.loading || c.loading);
482
+ }), { game: _ } = V(l), { mod: b } = V(p), s = U(() => l.loading || p.loading);
479
483
  j(() => {
480
- t.setGameCode(f.params.code), t.fetchGame().then(() => {
481
- c.setModId(f.params.id), c.fetchMod().then(() => {
484
+ l.setGameCode(f.params.code), l.fetchGame().then(() => {
485
+ p.setModId(f.params.id), p.fetchMod().then(() => {
482
486
  v.value = Object.fromEntries(
483
- Object.entries(b.value).map(([r, p]) => [X(r), p])
487
+ Object.entries(b.value).map(([r, c]) => [Y(r), c])
484
488
  );
485
489
  }).catch((r) => {
486
490
  k(r);
@@ -491,28 +495,28 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
491
495
  });
492
496
  const v = T({}), n = () => {
493
497
  const r = Object.fromEntries(
494
- Object.entries(v.value).map(([p, M]) => [Y(p), M])
498
+ Object.entries(v.value).map(([c, M]) => [Z(c), M])
495
499
  );
496
- c.saveMod(r).then(() => {
500
+ p.saveMod(r).then(() => {
497
501
  A({
498
- content: l("games.mod_update_success_msg"),
502
+ content: t("games.mod_update_success_msg"),
499
503
  type: "success"
500
504
  }, () => {
501
- y.push({ name: "admin.games.index" });
505
+ h.push({ name: "admin.games.index" });
502
506
  });
503
- }).catch((p) => {
504
- k(p);
507
+ }).catch((c) => {
508
+ k(c);
505
509
  });
506
510
  };
507
- return (r, p) => (L(), H(S, null, [
511
+ return (r, c) => (L(), H(S, null, [
508
512
  a(e(B), { items: C.value }, null, 8, ["items"]),
509
- s.value ? (L(), E(e(q), { key: 0 })) : G("", !0),
513
+ s.value ? (L(), $(e(q), { key: 0 })) : E("", !0),
510
514
  d("div", {
511
515
  class: I(s.value ? "hidden" : "")
512
516
  }, [
513
- a(_e, {
517
+ a(be, {
514
518
  modelValue: v.value,
515
- "onUpdate:modelValue": p[0] || (p[0] = (M) => v.value = M),
519
+ "onUpdate:modelValue": c[0] || (c[0] = (M) => v.value = M),
516
520
  onUpdate: n,
517
521
  loading: s.value
518
522
  }, null, 8, ["modelValue", "loading"])
@@ -521,5 +525,5 @@ const Z = { class: "flex flex-wrap justify-center mt-2" }, ee = { class: "md:w-1
521
525
  }
522
526
  };
523
527
  export {
524
- ke as default
528
+ Ue as default
525
529
  };