@gameap/frontend 4.1.0-dev14 → 4.1.0-dev15

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 (63) hide show
  1. package/dist/{AdminClientCertificatesView-Bg8X_Ouc.js → AdminClientCertificatesView-Cdat-6ub.js} +56 -66
  2. package/dist/{AdminDaemonTaskListView-DbJp0aqQ.js → AdminDaemonTaskListView-C0Jy1oat.js} +28 -29
  3. package/dist/{AdminDaemonTaskOutputView-DNCHQfxx.js → AdminDaemonTaskOutputView-BdstVc5K.js} +23 -25
  4. package/dist/{AdminGamesEdit-jco7cBfk.js → AdminGamesEdit-BOxBjeqI.js} +28 -31
  5. package/dist/{AdminGamesList-CMjsgEpx.js → AdminGamesList-C6nSWKdx.js} +136 -143
  6. package/dist/{AdminModEdit-BlRu_09M.js → AdminModEdit-diCpKnO2.js} +8 -8
  7. package/dist/{AdminNodeShowView-BHxJkjYJ.js → AdminNodeShowView-BIUiXpmk.js} +51 -61
  8. package/dist/{AdminNodesCreateView-DihmM46W.js → AdminNodesCreateView-Brzzh4HN.js} +13 -12
  9. package/dist/{AdminNodesEditView-CVACSido.js → AdminNodesEditView-Dwr2kt82.js} +16 -15
  10. package/dist/{AdminNodesView-CHtiU6dZ.js → AdminNodesView-DyiGZ1lZ.js} +25 -25
  11. package/dist/{AdminPluginsView-CRjF3BPs.js → AdminPluginsView-CUe4i8kM.js} +96 -105
  12. package/dist/{AdminServersCreate-5f8x6eZO.js → AdminServersCreate-iNMqnGK9.js} +26 -25
  13. package/dist/{AdminServersEdit-CA7711nJ.js → AdminServersEdit-DVI74EZc.js} +24 -23
  14. package/dist/{AdminServersList-De5ZMEGZ.js → AdminServersList-CkjyJfPK.js} +28 -28
  15. package/dist/{AdminUsersEditView-DeYo98vi.js → AdminUsersEditView-BTscuJ86.js} +2 -2
  16. package/dist/{AdminUsersView-C8fKEhpr.js → AdminUsersView-D-fJfjLH.js} +95 -105
  17. package/dist/{CreateModForm-CqkvVLfN.js → CreateModForm-CDqlkWYW.js} +3 -3
  18. package/dist/{CreateNodeModal-DOXVtVLQ.js → CreateNodeModal-CcpGS94Z.js} +1 -1
  19. package/dist/{DsIpSelector-C676Y19X.js → DsIpSelector-B_sWnbEP.js} +1 -1
  20. package/dist/{EmptyView-Bf6zmQQt.js → EmptyView-CopbPCy6.js} +1 -1
  21. package/dist/{FileManager-DSa9v4Ex.js → FileManager-JXa457rg.js} +691 -690
  22. package/dist/GCard-BmZwrZ1e.js +50 -0
  23. package/dist/GDataTable-DC0a2vJJ.js +60 -0
  24. package/dist/GDivider-tYaNzeM5.js +16 -0
  25. package/dist/GEmpty-Bkw6u0WR.js +35 -0
  26. package/dist/GModal-C4shXjCa.js +53 -0
  27. package/dist/GSwitch-1wlrRoUA.js +42 -0
  28. package/dist/GTable-DRH5VONX.js +38 -0
  29. package/dist/{GameModSelector-CQBT8ZLu.js → GameModSelector-BzBYr5Bl.js} +2 -2
  30. package/dist/{InputManyList-DUOtepb8.js → InputManyList-B65AFbLu.js} +21 -20
  31. package/dist/{InputTextList-lPhVIV04.js → InputTextList-DUpEA_--.js} +1 -1
  32. package/dist/PluginPendingView-CaK51oA9.js +35 -0
  33. package/dist/{ProfileView-Dw2T3X8m.js → ProfileView-BTXGnm4R.js} +74 -83
  34. package/dist/{RconConsole-CvxNBv0B.js → RconConsole-BSienrhk.js} +2 -2
  35. package/dist/{RconPlayers-odUKa0Ps.js → RconPlayers-jIqnphJ1.js} +111 -118
  36. package/dist/{ServerConsole-B9v2PcWb.js → ServerConsole-BdF95Ef6.js} +1 -1
  37. package/dist/{ServerControlButton-D_zJbxr6.js → ServerControlButton-7Un9i8tt.js} +6 -6
  38. package/dist/{ServerIdView-_vGQRk7y.js → ServerIdView-1X_6i-s6.js} +69 -67
  39. package/dist/{ServerSelector-6fCqL3e9.js → ServerSelector-Y4fSKiM2.js} +1 -1
  40. package/dist/{ServerSettings-C6-tkLTH.js → ServerSettings-DsIlowVa.js} +23 -21
  41. package/dist/{ServerStatus-CcqB0h1r.js → ServerStatus-BblAtet5.js} +1 -1
  42. package/dist/{ServerTasks-BcaZzvz7.js → ServerTasks-2jQBkpL9.js} +1 -1
  43. package/dist/{ServersView-S_G_kuGj.js → ServersView-CmDavKT_.js} +76 -76
  44. package/dist/{SettingsParameters-u3Awy4Vf.js → SettingsParameters-jT8ffL4p.js} +4 -3
  45. package/dist/{SmartPortSelector-BRSQFVqT.js → SmartPortSelector-BuREMnLx.js} +1 -1
  46. package/dist/{TokensView-C1RFJSB5.js → TokensView-Cw5j1Ivk.js} +60 -64
  47. package/dist/{UpdateNodeForm-BAhzQLt-.js → UpdateNodeForm-BnIqe7rC.js} +11 -10
  48. package/dist/{UserServerPrivileges-Q2wQMyHi.js → UserServerPrivileges-CvGlXrzS.js} +82 -92
  49. package/dist/{_createCompounder-CXjx5-CF.js → _createCompounder-vPBqoT5p.js} +3 -3
  50. package/dist/{camelCase-CSrB2MWj.js → camelCase-BSEkxKhA.js} +2 -2
  51. package/dist/{capitalize-BZSBvd6d.js → capitalize-BVfQSCbg.js} +5 -5
  52. package/dist/{clientCertificates-C0FlDwsb.js → clientCertificates-DHDjG6a2.js} +1 -1
  53. package/dist/frontend.css +1 -1
  54. package/dist/{gameList-kucszmx0.js → gameList-BuPam-HN.js} +1 -1
  55. package/dist/{index-9fvX7FD-.js → index-CiR3a1Cv.js} +180 -179
  56. package/dist/index.js +1 -1
  57. package/dist/{isEmpty-D0Z8Rneq.js → isEmpty-CLFmjU_j.js} +11 -11
  58. package/dist/{loader-qtG-Lf6M.js → loader-DStCgv0r.js} +1 -1
  59. package/dist/mockServiceWorker.js +1 -1
  60. package/dist/{snakeCase-nnM4dAra.js → snakeCase-lCSKsq6x.js} +1 -1
  61. package/dist/{validators-ChBGsKft.js → validators-r6Rit4O6.js} +2 -2
  62. package/package.json +2 -2
  63. package/dist/PluginPendingView-DaDaN30Q.js +0 -34
@@ -1,12 +1,15 @@
1
- import { mergeModels as ee, ref as _, useModel as ae, createElementBlock as A, openBlock as B, createVNode as l, unref as e, withCtx as n, createElementVNode as $, toDisplayString as R, computed as T, onMounted as te, watch as oe, Fragment as le, createTextVNode as L, h as d } from "vue";
2
- import { t as o, _ as y, a as p, e as f, m as se, l as ne, A as ie, n as M } from "./index-9fvX7FD-.js";
3
- import { _ as re } from "./GameIcon-DaYNlnur.js";
4
- import { u as me } from "./gameList-kucszmx0.js";
5
- import { NForm as de, NFormItem as x, NInput as C, NSpace as ue, NInputGroup as ce, NInputGroupLabel as pe, NButton as ge, NDataTable as ve, NEmpty as fe, NModal as W } from "naive-ui";
1
+ import { mergeModels as ee, ref as _, useModel as ae, createElementBlock as B, openBlock as A, createVNode as l, unref as e, withCtx as s, createElementVNode as N, toDisplayString as R, computed as E, onMounted as oe, watch as te, Fragment as le, createTextVNode as L, h as d } from "vue";
2
+ import { t, _ as y, a as p, e as f, m as ne, l as se, B as ie, n as $ } from "./index-CiR3a1Cv.js";
3
+ import { _ as re } from "./GDataTable-DC0a2vJJ.js";
4
+ import { _ as I } from "./GModal-C4shXjCa.js";
5
+ import { NForm as me, NFormItem as x, NInput as C, NSpace as de, NInputGroup as ue, NInputGroupLabel as ce, NButton as pe } from "naive-ui";
6
+ import { _ as ge } from "./GEmpty-Bkw6u0WR.js";
7
+ import { _ as ve } from "./GameIcon-DaYNlnur.js";
8
+ import { u as fe } from "./gameList-BuPam-HN.js";
6
9
  import { useRouter as _e } from "vue-router";
7
10
  import { storeToRefs as ye } from "pinia";
8
- import { _ as Ce } from "./CreateModForm-CqkvVLfN.js";
9
- import { r as I, a as be, c as xe } from "./validators-ChBGsKft.js";
11
+ import { _ as Ce } from "./CreateModForm-CDqlkWYW.js";
12
+ import { r as T, a as be, c as xe } from "./validators-r6Rit4O6.js";
10
13
  const we = { class: "hidden lg:inline" }, he = {
11
14
  __name: "CreateGameForm",
12
15
  props: {
@@ -26,21 +29,21 @@ const we = { class: "hidden lg:inline" }, he = {
26
29
  code: {
27
30
  required: !0,
28
31
  validator: be(
29
- I(o("labels.code")),
30
- xe(o("labels.code"), 2, 16)
32
+ T(t("labels.code")),
33
+ xe(t("labels.code"), 2, 16)
31
34
  )
32
35
  },
33
36
  name: {
34
37
  required: !0,
35
- validator: I(o("labels.name"))
38
+ validator: T(t("labels.name"))
36
39
  }
37
40
  }, b = G, V = () => {
38
41
  u.value.validate().then(() => {
39
42
  b("create");
40
43
  });
41
44
  };
42
- return (S, r) => (B(), A("div", null, [
43
- l(e(de), {
45
+ return (S, r) => (A(), B("div", null, [
46
+ l(e(me), {
44
47
  "label-placement": "top",
45
48
  "label-width": "auto",
46
49
  ref_key: "formRef",
@@ -48,12 +51,12 @@ const we = { class: "hidden lg:inline" }, he = {
48
51
  model: i.value,
49
52
  rules: w
50
53
  }, {
51
- default: n(() => [
54
+ default: s(() => [
52
55
  l(e(x), {
53
- label: e(o)("labels.code"),
56
+ label: e(t)("labels.code"),
54
57
  path: "code"
55
58
  }, {
56
- default: n(() => [
59
+ default: s(() => [
57
60
  l(e(C), {
58
61
  minlength: "2",
59
62
  maxlength: "16",
@@ -66,10 +69,10 @@ const we = { class: "hidden lg:inline" }, he = {
66
69
  _: 1
67
70
  }, 8, ["label"]),
68
71
  l(e(x), {
69
- label: e(o)("labels.name"),
72
+ label: e(t)("labels.name"),
70
73
  path: "name"
71
74
  }, {
72
- default: n(() => [
75
+ default: s(() => [
73
76
  l(e(C), {
74
77
  value: i.value.name,
75
78
  "onUpdate:value": r[1] || (r[1] = (m) => i.value.name = m),
@@ -78,13 +81,13 @@ const we = { class: "hidden lg:inline" }, he = {
78
81
  ]),
79
82
  _: 1
80
83
  }, 8, ["label"]),
81
- l(e(ue), null, {
82
- default: n(() => [
84
+ l(e(de), null, {
85
+ default: s(() => [
83
86
  l(e(x), {
84
- label: e(o)("labels.engine"),
87
+ label: e(t)("labels.engine"),
85
88
  path: "engine"
86
89
  }, {
87
- default: n(() => [
90
+ default: s(() => [
88
91
  l(e(C), {
89
92
  value: i.value.engine,
90
93
  "onUpdate:value": r[2] || (r[2] = (m) => i.value.engine = m),
@@ -94,10 +97,10 @@ const we = { class: "hidden lg:inline" }, he = {
94
97
  _: 1
95
98
  }, 8, ["label"]),
96
99
  l(e(x), {
97
- label: e(o)("labels.engine_version"),
100
+ label: e(t)("labels.engine_version"),
98
101
  path: "engineVersion"
99
102
  }, {
100
- default: n(() => [
103
+ default: s(() => [
101
104
  l(e(C), {
102
105
  value: i.value.engineVersion,
103
106
  "onUpdate:value": r[3] || (r[3] = (m) => i.value.engineVersion = m),
@@ -110,10 +113,10 @@ const we = { class: "hidden lg:inline" }, he = {
110
113
  _: 1
111
114
  }),
112
115
  l(e(x), {
113
- label: e(o)("labels.remote_repository_linux"),
116
+ label: e(t)("labels.remote_repository_linux"),
114
117
  path: "remoteRepositoryLinux"
115
118
  }, {
116
- default: n(() => [
119
+ default: s(() => [
117
120
  l(e(C), {
118
121
  value: i.value.remoteRepositoryLinux,
119
122
  "onUpdate:value": r[4] || (r[4] = (m) => i.value.remoteRepositoryLinux = m),
@@ -123,10 +126,10 @@ const we = { class: "hidden lg:inline" }, he = {
123
126
  _: 1
124
127
  }, 8, ["label"]),
125
128
  l(e(x), {
126
- label: e(o)("labels.remote_repository_windows"),
129
+ label: e(t)("labels.remote_repository_windows"),
127
130
  path: "remoteRepositoryWindows"
128
131
  }, {
129
- default: n(() => [
132
+ default: s(() => [
130
133
  l(e(C), {
131
134
  value: i.value.remoteRepositoryWindows,
132
135
  "onUpdate:value": r[5] || (r[5] = (m) => i.value.remoteRepositoryWindows = m),
@@ -142,22 +145,22 @@ const we = { class: "hidden lg:inline" }, he = {
142
145
  color: "green",
143
146
  onClick: V
144
147
  }, {
145
- default: n(() => [
148
+ default: s(() => [
146
149
  l(e(p), { name: "add-square" }),
147
- $("span", we, " " + R(e(o)("main.create")), 1)
150
+ N("span", we, " " + R(e(t)("main.create")), 1)
148
151
  ]),
149
152
  _: 1
150
153
  })
151
154
  ]));
152
155
  }
153
- }, ke = { class: "mb-5" }, Re = { class: "w-1/3 mb-1" }, N = "gameap_games_search", Te = {
156
+ }, ke = { class: "mb-5" }, Re = { class: "w-1/3 mb-1" }, M = "gameap_games_search", Be = {
154
157
  __name: "AdminGamesList",
155
158
  setup(U) {
156
- const G = _e(), u = me(), i = T(() => [
159
+ const G = _e(), u = fe(), i = E(() => [
157
160
  { route: "/", text: "GameAP", icon: "gicon gicon-gameap" },
158
- { route: { name: "admin.games.index" }, text: o("games.games") }
161
+ { route: { name: "admin.games.index" }, text: t("games.games") }
159
162
  ]);
160
- te(() => {
163
+ oe(() => {
161
164
  w(), b();
162
165
  });
163
166
  const w = () => {
@@ -170,21 +173,21 @@ const we = { class: "hidden lg:inline" }, he = {
170
173
  });
171
174
  }, V = () => [
172
175
  {
173
- title: o("games.name"),
176
+ title: t("games.name"),
174
177
  key: "name",
175
178
  render(a) {
176
179
  return d("div", { class: "flex items-center" }, [
177
- d(re, { game: a.code, class: "mr-2" }),
180
+ d(ve, { game: a.code, class: "mr-2" }),
178
181
  d("span", { class: "" }, a.name)
179
182
  ]);
180
183
  }
181
184
  },
182
185
  {
183
- title: o("games.code"),
186
+ title: t("games.code"),
184
187
  key: "code"
185
188
  },
186
189
  {
187
- title: o("games.mods"),
190
+ title: t("games.mods"),
188
191
  key: "mods",
189
192
  render(a) {
190
193
  return a.mods.length === 0 ? d(y, {
@@ -192,11 +195,11 @@ const we = { class: "hidden lg:inline" }, he = {
192
195
  size: "small",
193
196
  class: "px-2 py-1",
194
197
  onClick: () => {
195
- E(a.code);
198
+ W(a.code);
196
199
  }
197
200
  }, { default: () => [
198
201
  d(p, { name: "mods", class: "mr-0.5" }),
199
- d("span", { class: "" }, o("games.add_first_mod"))
202
+ d("span", { class: "" }, t("games.add_first_mod"))
200
203
  ] }) : d(
201
204
  ie,
202
205
  {
@@ -209,7 +212,7 @@ const we = { class: "hidden lg:inline" }, he = {
209
212
  }
210
213
  },
211
214
  {
212
- title: o("main.actions"),
215
+ title: t("main.actions"),
213
216
  render(a) {
214
217
  return [
215
218
  d(y, {
@@ -219,18 +222,18 @@ const we = { class: "hidden lg:inline" }, he = {
219
222
  route: { name: "admin.games.edit", params: { code: a.code } }
220
223
  }, { default: () => [
221
224
  d(p, { name: "edit" }),
222
- d("span", { class: "hidden lg:inline" }, o("main.edit"))
225
+ d("span", { class: "hidden lg:inline" }, t("main.edit"))
223
226
  ] }),
224
227
  d(y, {
225
228
  color: "red",
226
229
  size: "small",
227
- text: o("main.delete"),
230
+ text: t("main.delete"),
228
231
  onClick: () => {
229
232
  O(a.code);
230
233
  }
231
234
  }, { default: () => [
232
235
  d(p, { name: "delete" }),
233
- d("span", { class: "hidden lg:inline" }, o("main.delete"))
236
+ d("span", { class: "hidden lg:inline" }, t("main.delete"))
234
237
  ] })
235
238
  ];
236
239
  }
@@ -247,38 +250,38 @@ const we = { class: "hidden lg:inline" }, he = {
247
250
  engineVersion: "",
248
251
  remoteRepositoryLinux: "",
249
252
  remoteRepositoryWindows: ""
250
- }), q = _(V()), D = {
253
+ }), q = _(V()), z = {
251
254
  pageSize: 50
252
- }, v = _(sessionStorage.getItem(N) || "");
253
- oe(v, (a) => {
254
- a ? sessionStorage.setItem(N, a) : sessionStorage.removeItem(N);
255
+ }, v = _(sessionStorage.getItem(M) || "");
256
+ te(v, (a) => {
257
+ a ? sessionStorage.setItem(M, a) : sessionStorage.removeItem(M);
255
258
  });
256
- const z = () => {
259
+ const D = () => {
257
260
  v.value = "";
258
- }, F = T(() => {
261
+ }, F = E(() => {
259
262
  let a = [];
260
- return r.value.forEach((t) => {
261
- v.value && !t.name.toLowerCase().includes(v.value.toLowerCase()) && !t.code.toLowerCase().includes(v.value.toLowerCase()) || a.push({
262
- name: t.name,
263
- code: t.code,
264
- engine: t.engine,
265
- mods: P(t.code)
263
+ return r.value.forEach((o) => {
264
+ v.value && !o.name.toLowerCase().includes(v.value.toLowerCase()) && !o.code.toLowerCase().includes(v.value.toLowerCase()) || a.push({
265
+ name: o.name,
266
+ code: o.code,
267
+ engine: o.engine,
268
+ mods: P(o.code)
266
269
  });
267
- }), a.sort((t, s) => t.name.localeCompare(s.name));
270
+ }), a.sort((o, n) => o.name.localeCompare(n.name));
268
271
  }), P = (a) => {
269
- let t = [];
270
- return m.value.forEach((s) => {
271
- s.game_code === a && t.push({
272
- id: s.id,
273
- name: s.name,
274
- gameCode: s.game_code
272
+ let o = [];
273
+ return m.value.forEach((n) => {
274
+ n.game_code === a && o.push({
275
+ id: n.id,
276
+ name: n.name,
277
+ gameCode: n.game_code
275
278
  });
276
- }), t;
279
+ }), o;
277
280
  }, O = (a) => {
278
281
  window.$dialog.success({
279
- title: o("games.delete_game_confirm_msg"),
280
- positiveText: o("main.yes"),
281
- negativeText: o("main.no"),
282
+ title: t("games.delete_game_confirm_msg"),
283
+ positiveText: t("main.yes"),
284
+ negativeText: t("main.no"),
282
285
  closable: !1,
283
286
  onPositiveClick: () => {
284
287
  H(a);
@@ -289,10 +292,10 @@ const we = { class: "hidden lg:inline" }, he = {
289
292
  }, H = (a) => {
290
293
  u.deleteGameByCode(a).then(() => {
291
294
  w();
292
- }).catch((t) => {
293
- f(t);
295
+ }).catch((o) => {
296
+ f(o);
294
297
  });
295
- }, E = (a) => {
298
+ }, W = (a) => {
296
299
  g.value = {
297
300
  game: null,
298
301
  name: "",
@@ -306,15 +309,15 @@ const we = { class: "hidden lg:inline" }, he = {
306
309
  remote_repository_linux: g.value.remoteRepositoryLinux,
307
310
  remote_repository_windows: g.value.remoteRepositoryWindows
308
311
  };
309
- u.createGameMod(a).then(({ id: t }) => {
310
- M({
311
- content: o("games.mod_create_success_msg"),
312
+ u.createGameMod(a).then(({ id: o }) => {
313
+ $({
314
+ content: t("games.mod_create_success_msg"),
312
315
  type: "success"
313
316
  }, () => {
314
317
  b();
315
318
  });
316
- }).catch((t) => {
317
- f(t);
319
+ }).catch((o) => {
320
+ f(o);
318
321
  }).finally(() => {
319
322
  h.value = !1;
320
323
  });
@@ -334,25 +337,25 @@ const we = { class: "hidden lg:inline" }, he = {
334
337
  remote_repository_linux: c.value.remoteRepositoryLinux,
335
338
  remote_repository_windows: c.value.remoteRepositoryWindows
336
339
  };
337
- a.engine || (a.engine = "unknown"), u.createGame(a).then(({ id: t }) => {
338
- M({
339
- content: o("games.create_success_msg"),
340
+ a.engine || (a.engine = "unknown"), u.createGame(a).then(({ id: o }) => {
341
+ $({
342
+ content: t("games.create_success_msg"),
340
343
  type: "success"
341
344
  }, () => {
342
345
  u.fetchGames();
343
346
  });
344
- }).catch((t) => {
345
- f(t);
347
+ }).catch((o) => {
348
+ f(o);
346
349
  }).finally(() => {
347
350
  k.value = !1;
348
351
  });
349
- }, J = (a, t) => {
350
- G.push({ name: "admin.games.mods.edit", params: { code: a, id: t } });
352
+ }, J = (a, o) => {
353
+ G.push({ name: "admin.games.mods.edit", params: { code: a, id: o } });
351
354
  }, Q = (a) => {
352
355
  window.$dialog.success({
353
- title: o("games.delete_mod_confirm_msg"),
354
- positiveText: o("main.yes"),
355
- negativeText: o("main.no"),
356
+ title: t("games.delete_mod_confirm_msg"),
357
+ positiveText: t("main.yes"),
358
+ negativeText: t("main.no"),
356
359
  closable: !1,
357
360
  onPositiveClick: () => {
358
361
  X(a);
@@ -363,19 +366,19 @@ const we = { class: "hidden lg:inline" }, he = {
363
366
  }, X = (a) => {
364
367
  u.deleteModById(a).then(() => {
365
368
  b();
366
- }).catch((t) => {
367
- f(t);
369
+ }).catch((o) => {
370
+ f(o);
368
371
  });
369
372
  }, Z = () => {
370
373
  window.$dialog.success({
371
- title: o("games.d_upgrade_confirm"),
372
- positiveText: o("main.yes"),
373
- negativeText: o("main.no"),
374
+ title: t("games.d_upgrade_confirm"),
375
+ positiveText: t("main.yes"),
376
+ negativeText: t("main.no"),
374
377
  closable: !1,
375
378
  onPositiveClick: () => {
376
379
  u.upgradeGames().then(() => {
377
- M({
378
- content: o("games.upgrade_success_msg"),
380
+ $({
381
+ content: t("games.upgrade_success_msg"),
379
382
  type: "success"
380
383
  }), w(), b();
381
384
  }).catch((a) => {
@@ -386,65 +389,65 @@ const we = { class: "hidden lg:inline" }, he = {
386
389
  }
387
390
  });
388
391
  };
389
- return (a, t) => (B(), A(le, null, [
390
- l(e(se), { items: i.value }, null, 8, ["items"]),
391
- $("div", ke, [
392
+ return (a, o) => (A(), B(le, null, [
393
+ l(e(ne), { items: i.value }, null, 8, ["items"]),
394
+ N("div", ke, [
392
395
  l(y, {
393
396
  class: "mr-1",
394
397
  color: "green",
395
- onClick: t[0] || (t[0] = (s) => Y())
398
+ onClick: o[0] || (o[0] = (n) => Y())
396
399
  }, {
397
- default: n(() => [
400
+ default: s(() => [
398
401
  l(e(p), { name: "add-square" }),
399
- L(" " + R(e(o)("games.add")), 1)
402
+ L(" " + R(e(t)("games.add")), 1)
400
403
  ]),
401
404
  _: 1
402
405
  }),
403
406
  l(y, {
404
407
  class: "mr-1",
405
408
  color: "orange",
406
- onClick: t[1] || (t[1] = (s) => E())
409
+ onClick: o[1] || (o[1] = (n) => W())
407
410
  }, {
408
- default: n(() => [
411
+ default: s(() => [
409
412
  l(e(p), { name: "mods" }),
410
- L(" " + R(e(o)("games.add_mod")), 1)
413
+ L(" " + R(e(t)("games.add_mod")), 1)
411
414
  ]),
412
415
  _: 1
413
416
  }),
414
417
  l(y, {
415
418
  class: "mr-1",
416
419
  color: "black",
417
- onClick: t[2] || (t[2] = (s) => Z())
420
+ onClick: o[2] || (o[2] = (n) => Z())
418
421
  }, {
419
- default: n(() => [
422
+ default: s(() => [
420
423
  l(e(p), { name: "sync" }),
421
- L(" " + R(e(o)("games.upgrade")), 1)
424
+ L(" " + R(e(t)("games.upgrade")), 1)
422
425
  ]),
423
426
  _: 1
424
427
  })
425
428
  ]),
426
- $("div", Re, [
427
- l(e(ce), null, {
428
- default: n(() => [
429
- l(e(pe), null, {
430
- default: n(() => [
429
+ N("div", Re, [
430
+ l(e(ue), null, {
431
+ default: s(() => [
432
+ l(e(ce), null, {
433
+ default: s(() => [
431
434
  l(e(p), { name: "search" })
432
435
  ]),
433
436
  _: 1
434
437
  }),
435
438
  l(e(C), {
436
439
  value: v.value,
437
- "onUpdate:value": t[3] || (t[3] = (s) => v.value = s),
440
+ "onUpdate:value": o[3] || (o[3] = (n) => v.value = n),
438
441
  type: "text",
439
- placeholder: e(o)("main.search")
442
+ placeholder: e(t)("main.search")
440
443
  }, null, 8, ["value", "placeholder"]),
441
- l(e(ge), {
442
- onClick: z,
444
+ l(e(pe), {
445
+ onClick: D,
443
446
  type: "error",
444
447
  disabled: !v.value,
445
448
  ghost: ""
446
449
  }, {
447
- default: n(() => [
450
+ default: s(() => [
448
451
  l(e(p), { name: "eraser" })
449
452
  ]),
450
453
  _: 1
@@ -453,58 +456,48 @@ const we = { class: "hidden lg:inline" }, he = {
453
456
  _: 1
454
457
  })
455
458
  ]),
456
- l(e(ve), {
459
+ l(e(re), {
457
460
  ref: "tableRef",
458
- bordered: !1,
459
- "single-line": !0,
460
461
  columns: q.value,
461
462
  data: F.value,
462
463
  loading: e(S),
463
- pagination: D
464
+ pagination: z
464
465
  }, {
465
- loading: n(() => [
466
- l(e(ne))
466
+ loading: s(() => [
467
+ l(e(se))
467
468
  ]),
468
- empty: n(() => [
469
- l(e(fe), {
470
- description: e(o)("servers.empty_list")
469
+ empty: s(() => [
470
+ l(e(ge), {
471
+ description: e(t)("servers.empty_list")
471
472
  }, null, 8, ["description"])
472
473
  ]),
473
474
  _: 1
474
475
  }, 8, ["columns", "data", "loading"]),
475
- l(e(W), {
476
+ l(e(I), {
476
477
  show: k.value,
477
- "onUpdate:show": t[5] || (t[5] = (s) => k.value = s),
478
- class: "custom-card",
479
- preset: "card",
480
- title: e(o)("games.title_add"),
481
- bordered: !1,
482
- style: { width: "600px" },
483
- segmented: { content: "soft", footer: "soft" }
478
+ "onUpdate:show": o[5] || (o[5] = (n) => k.value = n),
479
+ title: e(t)("games.title_add"),
480
+ style: { width: "600px" }
484
481
  }, {
485
- default: n(() => [
482
+ default: s(() => [
486
483
  l(he, {
487
484
  modelValue: c.value,
488
- "onUpdate:modelValue": t[4] || (t[4] = (s) => c.value = s),
485
+ "onUpdate:modelValue": o[4] || (o[4] = (n) => c.value = n),
489
486
  onCreate: j
490
487
  }, null, 8, ["modelValue"])
491
488
  ]),
492
489
  _: 1
493
490
  }, 8, ["show", "title"]),
494
- l(e(W), {
491
+ l(e(I), {
495
492
  show: h.value,
496
- "onUpdate:show": t[7] || (t[7] = (s) => h.value = s),
497
- class: "custom-card",
498
- preset: "card",
499
- title: e(o)("games.title_add_mod"),
500
- bordered: !1,
501
- style: { width: "600px" },
502
- segmented: { content: "soft", footer: "soft" }
493
+ "onUpdate:show": o[7] || (o[7] = (n) => h.value = n),
494
+ title: e(t)("games.title_add_mod"),
495
+ style: { width: "600px" }
503
496
  }, {
504
- default: n(() => [
497
+ default: s(() => [
505
498
  l(Ce, {
506
499
  modelValue: g.value,
507
- "onUpdate:modelValue": t[6] || (t[6] = (s) => g.value = s),
500
+ "onUpdate:modelValue": o[6] || (o[6] = (n) => g.value = n),
508
501
  onCreate: K
509
502
  }, null, 8, ["modelValue"])
510
503
  ]),
@@ -514,5 +507,5 @@ const we = { class: "hidden lg:inline" }, he = {
514
507
  }
515
508
  };
516
509
  export {
517
- Te as default
510
+ Be as default
518
511
  };
@@ -1,11 +1,11 @@
1
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-9fvX7FD-.js";
3
- import { r as P } from "./validators-ChBGsKft.js";
4
- import { NForm as D, NTabs as J, NTabPane as w, NCard as x, NFormItem as m, NInput as u } from "naive-ui";
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-CiR3a1Cv.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 { r as J } from "./validators-r6Rit4O6.js";
5
5
  import { defineStore as K, storeToRefs as V } from "pinia";
6
6
  import { useRoute as Q, useRouter as X } from "vue-router";
7
- import { c as Y } from "./camelCase-CSrB2MWj.js";
8
- import { s as Z } from "./snakeCase-nnM4dAra.js";
7
+ import { c as Y } from "./camelCase-BSEkxKhA.js";
8
+ import { s as Z } from "./snakeCase-lCSKsq6x.js";
9
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 = {
10
10
  __name: "UpdateModForm",
11
11
  props: {
@@ -17,7 +17,7 @@ const ee = { class: "flex flex-wrap justify-center mt-2" }, ae = { class: "md:w-
17
17
  const h = T({}), l = W(i, "modelValue"), p = {
18
18
  name: {
19
19
  required: !0,
20
- validator: P(t("labels.name"))
20
+ validator: J(t("labels.name"))
21
21
  }
22
22
  }, C = f, _ = () => {
23
23
  h.value.validate().then(() => {
@@ -29,7 +29,7 @@ const ee = { class: "flex flex-wrap justify-center mt-2" }, ae = { class: "md:w-
29
29
  return L(), H("div", {
30
30
  class: I(b.$attrs.class)
31
31
  }, [
32
- a(e(D), {
32
+ a(e(P), {
33
33
  "label-placement": "top",
34
34
  "label-width": "auto",
35
35
  ref_key: "formRef",
@@ -38,7 +38,7 @@ const ee = { class: "flex flex-wrap justify-center mt-2" }, ae = { class: "md:w-
38
38
  rules: p
39
39
  }, {
40
40
  default: o(() => [
41
- a(e(J), {
41
+ a(e(D), {
42
42
  type: "line",
43
43
  class: "flex justify-between",
44
44
  animated: ""