@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 I, ref as A, useModel as O, createElementBlock as S, openBlock as _, createVNode as a, unref as e, withCtx as d, createElementVNode as v, renderSlot as j, createBlock as w, createCommentVNode as R, normalizeClass as C, toDisplayString as $, computed as M, onMounted as H, Fragment as J, createTextVNode as K } from "vue";
2
- import { s as G, t, y as Q, z as X, l as h, _ as z, v as Y, k as Z, A as ee, e as V, n as N } from "./index-Fmomw6wi.js";
3
- import { NForm as ae, NCard as k, NFormItem as m, NInput as p, NModal as le } from "naive-ui";
4
- import { u as te } from "./gameList-CJAymSBL.js";
5
- import { _ as oe } from "./CreateModForm-Byq8UvuW.js";
6
- import { useRoute as se, useRouter as ne } from "vue-router";
7
- import { storeToRefs as ie } from "pinia";
8
- const de = { class: "flex flex-wrap mt-2" }, ue = { class: "md:w-1/2 pr-8" }, re = { class: "md:w-1/2" }, me = { class: "hidden lg:inline" }, pe = {
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(c, { emit: U }) {
28
- const x = A({}), l = O(c, "modelValue"), g = {
28
+ setup(v, { emit: U }) {
29
+ const x = A({}), l = j(v, "modelValue"), g = {
29
30
  code: {
30
31
  required: !0,
31
- validator: Q(
32
- G(t("labels.code")),
33
- X(t("labels.code"), 2, 16)
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: G(t("labels.name"))
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, o) => (_(), S("div", null, [
46
- a(e(ae), {
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
- v("div", de, [
56
- v("div", ue, [
57
- a(e(k), {
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
- c.loading ? (_(), w(e(h), { key: 0 })) : R("", !0),
69
- v("div", {
70
- class: C(c.loading ? "hidden" : "")
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": o[0] || (o[0] = (s) => l.value.code = s),
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": o[1] || (o[1] = (s) => l.value.name = s),
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": o[2] || (o[2] = (s) => l.value.engine = s),
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": o[3] || (o[3] = (s) => l.value.engineVersion = s),
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
- j(r.$slots, "mods")
130
+ H(r.$slots, "mods")
130
131
  ]),
131
- v("div", re, [
132
- a(e(k), {
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
- c.loading ? (_(), w(e(h), { key: 0 })) : R("", !0),
144
- v("div", {
145
- class: C(c.loading ? "hidden" : "")
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": o[4] || (o[4] = (s) => l.value.steamAppIdLinux = s),
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": o[5] || (o[5] = (s) => l.value.steamAppIdWindows = s),
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": o[6] || (o[6] = (s) => l.value.steamAppSetConfig = s),
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(k), {
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
- c.loading ? (_(), w(e(h), { key: 0 })) : R("", !0),
202
- v("div", {
203
- class: C(c.loading ? "hidden" : "")
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": o[7] || (o[7] = (s) => l.value.localRepositoryLinux = s),
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": o[8] || (o[8] = (s) => l.value.localRepositoryWindows = s),
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(k), {
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
- c.loading ? (_(), w(e(h), { key: 0 })) : R("", !0),
247
- v("div", {
248
- class: C(c.loading ? "hidden" : "")
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": o[9] || (o[9] = (s) => l.value.remoteRepositoryLinux = s),
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": o[10] || (o[10] = (s) => l.value.remoteRepositoryWindows = s),
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
- o[11] || (o[11] = v("i", { class: "fa-regular fa-floppy-disk mr-0.5" }, null, -1)),
291
- v("span", me, " " + $(e(t)("main.save")), 1)
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
- }, be = {
301
+ }, Re = {
298
302
  __name: "AdminGamesEdit",
299
- setup(c) {
300
- const U = se(), x = ne(), l = Y(), g = te(), W = M(() => [
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: o } = ie(l);
305
- H(() => {
306
- l.setGameCode(U.params.code), i.value.code = b.value, l.fetchGame().then(() => {
307
- i.value.name = r.value.name, i.value.engine = r.value.engine, i.value.engineVersion = r.value.engine_version, i.value.steamAppIdLinux = r.value.steam_app_id_linux, i.value.steamAppIdWindows = r.value.steam_app_id_windows, i.value.steamAppSetConfig = r.value.steam_app_set_config, i.value.localRepositoryLinux = r.value.local_repository_linux, i.value.localRepositoryWindows = r.value.local_repository_windows, i.value.remoteRepositoryLinux = r.value.remote_repository_linux, i.value.remoteRepositoryWindows = r.value.remote_repository_windows;
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 s = M(() => l.loading || g.loading), B = M(() => {
314
+ const o = M(() => l.loading || g.loading), E = M(() => {
311
315
  let u = [];
312
- return o.value.forEach((n) => {
316
+ return s.value.forEach((i) => {
313
317
  u.push({
314
- id: n.id,
315
- name: n.name,
318
+ id: i.id,
319
+ name: i.name,
316
320
  gameCode: b.value
317
321
  });
318
322
  }), u;
319
- }), E = (u) => {
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
- }, L.value = !0;
327
- }).catch((n) => {
328
- V(n);
330
+ }, V.value = !0;
331
+ }).catch((i) => {
332
+ k(i);
329
333
  });
330
- }, i = A({}), L = A(!1), f = A({
334
+ }, n = A({}), V = A(!1), f = A({
331
335
  game: null,
332
336
  name: "",
333
337
  remoteRepositoryLinux: "",
334
338
  remoteRepositoryWindows: ""
335
- }), q = () => {
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: n }) => {
343
- N({
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((n) => {
350
- V(n);
353
+ }).catch((i) => {
354
+ k(i);
351
355
  }).finally(() => {
352
- L.value = !1;
356
+ V.value = !1;
353
357
  });
354
- }, F = (u, n) => {
355
- x.push({ name: "admin.games.mods.edit", params: { code: u, id: n } });
356
- }, T = (u) => {
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
- D(u);
367
+ P(u);
364
368
  },
365
369
  onNegativeClick: () => {
366
370
  }
367
371
  });
368
- }, D = (u) => {
372
+ }, P = (u) => {
369
373
  g.deleteModById(u).then(() => {
370
374
  l.fetchMods();
371
- }).catch((n) => {
372
- V(n);
375
+ }).catch((i) => {
376
+ k(i);
373
377
  });
374
- }, P = () => {
378
+ }, O = () => {
375
379
  const u = {
376
- name: i.value.name,
377
- engine: i.value.engine,
378
- engine_version: i.value.engineVersion,
379
- steam_app_id_linux: i.value.steamAppIdLinux,
380
- steam_app_id_windows: i.value.steamAppIdWindows,
381
- steam_app_set_config: i.value.steamAppSetConfig,
382
- local_repository_linux: i.value.localRepositoryLinux,
383
- local_repository_windows: i.value.localRepositoryWindows,
384
- remote_repository_linux: i.value.remoteRepositoryLinux,
385
- remote_repository_windows: i.value.remoteRepositoryWindows
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
- N({
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((n) => {
395
- V(n);
398
+ }).catch((i) => {
399
+ k(i);
396
400
  });
397
401
  };
398
- return (u, n) => (_(), S(J, null, [
399
- a(e(Z), { items: W.value }, null, 8, ["items"]),
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: n[0] || (n[0] = (y) => E())
407
+ onClick: i[0] || (i[0] = (y) => q())
404
408
  }, {
405
409
  default: d(() => [
406
- n[4] || (n[4] = v("i", { class: "fa-solid fa-cat" }, null, -1)),
407
- K(" " + $(e(t)("games.add_mod")), 1)
410
+ a(e(B), { name: "cat" }),
411
+ Q(" " + $(e(t)("games.add_mod")), 1)
408
412
  ]),
409
413
  _: 1
410
414
  }),
411
- a(pe, {
412
- loading: s.value,
413
- modelValue: i.value,
414
- "onUpdate:modelValue": n[1] || (n[1] = (y) => i.value = y),
415
- onUpdate: P
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(k), {
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
- s.value ? (_(), w(e(h), { key: 0 })) : R("", !0),
430
- v("div", {
431
- class: C(s.value ? "hidden" : "")
433
+ o.value ? (_(), w(e(C), { key: 0 })) : R("", !0),
434
+ c("div", {
435
+ class: h(o.value ? "hidden" : "")
432
436
  }, [
433
- a(e(ee), {
434
- items: B.value,
435
- deleteCallback: T,
436
- clickCallback: F
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(le), {
446
- show: L.value,
447
- "onUpdate:show": n[3] || (n[3] = (y) => L.value = y),
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(oe, {
460
+ a(se, {
457
461
  modelValue: f.value,
458
- "onUpdate:modelValue": n[2] || (n[2] = (y) => f.value = y),
459
- onCreate: q
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
- be as default
472
+ Re as default
469
473
  };