@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,42 +1,43 @@
1
- import { mergeModels as B, ref as y, useModel as O, createElementBlock as A, openBlock as E, normalizeClass as I, createVNode as a, unref as e, withCtx as d, createBlock as W, createCommentVNode as H, createElementVNode as s, toDisplayString as f, computed as P, onMounted as J, Fragment as K, h as p } from "vue";
2
- import { a as M, C as Q, t as l, y as X, D as Y, E as Z, s as k, l as D, _ as U, d as ee, j as le, e as b, k as se, n as $ } from "./index-Fmomw6wi.js";
3
- import { defineStore as ae, storeToRefs as te } from "pinia";
4
- import { NForm as oe, NFormItem as w, NInput as h, NSelect as re, NDataTable as ne, NModal as z, NTable as ie } from "naive-ui";
5
- const ue = ae("userList", {
1
+ import { mergeModels as E, ref as y, useModel as W, createElementBlock as T, openBlock as B, normalizeClass as I, createVNode as s, unref as e, withCtx as d, createBlock as H, createCommentVNode as J, createElementVNode as a, toDisplayString as f, computed as M, onMounted as K, Fragment as Q, h as p } from "vue";
2
+ import { b as $, t as l, l as D, _ as U, a as _, f as X, k as Y, e as b, m as Z, n as z } from "./index-BDKiNPpP.js";
3
+ import { defineStore as ee, storeToRefs as le } from "pinia";
4
+ import { NForm as se, NFormItem as w, NInput as h, NSelect as ae, NDataTable as te, NModal as A, NTable as oe } from "naive-ui";
5
+ import { d as re, a as ne, s as ie, b as ue, r as k } from "./validators-BVXTUmow.js";
6
+ const de = ee("userList", {
6
7
  state: () => ({
7
8
  users: [],
8
9
  // This is a counter to keep track of how many API processes are running
9
10
  apiProcesses: 0
10
11
  }),
11
12
  getters: {
12
- loading: (u) => u.apiProcesses > 0
13
+ loading: (i) => i.apiProcesses > 0
13
14
  },
14
15
  actions: {
15
16
  async fetchUsers() {
16
17
  this.apiProcesses++;
17
18
  try {
18
- const u = await M.get("/api/users/");
19
- this.users = u.data;
20
- } catch (u) {
21
- throw u;
19
+ const i = await $.get("/api/users/");
20
+ this.users = i.data;
21
+ } catch (i) {
22
+ throw i;
22
23
  } finally {
23
24
  this.apiProcesses--;
24
25
  }
25
26
  },
26
- async createUser(u) {
27
+ async createUser(i) {
27
28
  this.apiProcesses++;
28
29
  try {
29
- await M.post("/api/users", u);
30
+ await $.post("/api/users", i);
30
31
  } catch (m) {
31
32
  throw m;
32
33
  } finally {
33
34
  this.apiProcesses--;
34
35
  }
35
36
  },
36
- async deleteUserById(u) {
37
+ async deleteUserById(i) {
37
38
  this.apiProcesses++;
38
39
  try {
39
- await M.delete("/api/users/" + u);
40
+ await $.delete("/api/users/" + i);
40
41
  } catch (m) {
41
42
  throw m;
42
43
  } finally {
@@ -44,9 +45,9 @@ const ue = ae("userList", {
44
45
  }
45
46
  }
46
47
  }
47
- }), de = { class: "flex grid-cols-2 gap-x-4 w-full" }, me = { class: "hidden lg:inline" }, ce = {
48
+ }), me = { class: "flex grid-cols-2 gap-x-4 w-full" }, ce = { class: "hidden lg:inline" }, pe = {
48
49
  __name: "CreateUserForm",
49
- props: /* @__PURE__ */ B({
50
+ props: /* @__PURE__ */ E({
50
51
  loading: {
51
52
  type: Boolean,
52
53
  required: !1
@@ -59,9 +60,9 @@ const ue = ae("userList", {
59
60
  },
60
61
  modelModifiers: {}
61
62
  }),
62
- emits: /* @__PURE__ */ B(["create"], ["update:modelValue"]),
63
- setup(u, { emit: m }) {
64
- const c = y({}), r = O(u, "modelValue"), _ = {
63
+ emits: /* @__PURE__ */ E(["create"], ["update:modelValue"]),
64
+ setup(i, { emit: m }) {
65
+ const c = y({}), o = W(i, "modelValue"), x = {
65
66
  login: {
66
67
  required: !0,
67
68
  validator: k(l("labels.login"))
@@ -76,21 +77,21 @@ const ue = ae("userList", {
76
77
  },
77
78
  password: {
78
79
  required: !0,
79
- validator: X(
80
+ validator: ne(
80
81
  k(l("labels.password")),
81
- Z(l("labels.password"), 8),
82
- Y(
82
+ ue(l("labels.password"), 8),
83
+ ie(
83
84
  l("labels.password"),
84
85
  l("labels.password_confirmation"),
85
- () => r.value.passwordConfirmation
86
+ () => o.value.passwordConfirmation
86
87
  )
87
88
  )
88
89
  },
89
90
  roles: {
90
91
  required: !0,
91
- validator: Q(l("labels.roles"))
92
+ validator: re(l("labels.roles"))
92
93
  }
93
- }, x = [
94
+ }, V = [
94
95
  {
95
96
  label: "Administrator",
96
97
  value: "admin"
@@ -99,96 +100,96 @@ const ue = ae("userList", {
99
100
  label: "User",
100
101
  value: "user"
101
102
  }
102
- ], V = m, N = () => {
103
+ ], N = m, S = () => {
103
104
  c.value.validate().then(() => {
104
- V("create");
105
+ N("create");
105
106
  });
106
107
  };
107
- return (S, n) => (E(), A("div", {
108
- class: I(S.$attrs.class)
108
+ return (P, u) => (B(), T("div", {
109
+ class: I(P.$attrs.class)
109
110
  }, [
110
- a(e(oe), {
111
+ s(e(se), {
111
112
  "label-placement": "top",
112
113
  "label-width": "auto",
113
114
  ref_key: "formRef",
114
115
  ref: c,
115
- model: r.value,
116
- rules: _
116
+ model: o.value,
117
+ rules: x
117
118
  }, {
118
119
  default: d(() => [
119
- u.loading ? (E(), W(e(D), { key: 0 })) : H("", !0),
120
- s("div", {
121
- class: I(["mb-4", u.loading ? "hidden" : ""])
120
+ i.loading ? (B(), H(e(D), { key: 0 })) : J("", !0),
121
+ a("div", {
122
+ class: I(["mb-4", i.loading ? "hidden" : ""])
122
123
  }, [
123
- a(e(w), {
124
+ s(e(w), {
124
125
  label: e(l)("labels.login"),
125
126
  path: "login"
126
127
  }, {
127
128
  default: d(() => [
128
- a(e(h), {
129
- value: r.value.login,
130
- "onUpdate:value": n[0] || (n[0] = (i) => r.value.login = i),
129
+ s(e(h), {
130
+ value: o.value.login,
131
+ "onUpdate:value": u[0] || (u[0] = (n) => o.value.login = n),
131
132
  type: "text"
132
133
  }, null, 8, ["value"])
133
134
  ]),
134
135
  _: 1
135
136
  }, 8, ["label"]),
136
- a(e(w), {
137
+ s(e(w), {
137
138
  label: e(l)("labels.email"),
138
139
  path: "email"
139
140
  }, {
140
141
  default: d(() => [
141
- a(e(h), {
142
- value: r.value.email,
143
- "onUpdate:value": n[1] || (n[1] = (i) => r.value.email = i),
142
+ s(e(h), {
143
+ value: o.value.email,
144
+ "onUpdate:value": u[1] || (u[1] = (n) => o.value.email = n),
144
145
  type: "text"
145
146
  }, null, 8, ["value"])
146
147
  ]),
147
148
  _: 1
148
149
  }, 8, ["label"]),
149
- a(e(w), {
150
+ s(e(w), {
150
151
  label: e(l)("labels.name"),
151
152
  path: "name"
152
153
  }, {
153
154
  default: d(() => [
154
- a(e(h), {
155
- value: r.value.name,
156
- "onUpdate:value": n[2] || (n[2] = (i) => r.value.name = i),
155
+ s(e(h), {
156
+ value: o.value.name,
157
+ "onUpdate:value": u[2] || (u[2] = (n) => o.value.name = n),
157
158
  type: "text"
158
159
  }, null, 8, ["value"])
159
160
  ]),
160
161
  _: 1
161
162
  }, 8, ["label"]),
162
- a(e(w), {
163
+ s(e(w), {
163
164
  label: e(l)("labels.roles"),
164
165
  path: "roles"
165
166
  }, {
166
167
  default: d(() => [
167
- a(e(re), {
168
- value: r.value.roles,
169
- "onUpdate:value": n[3] || (n[3] = (i) => r.value.roles = i),
168
+ s(e(ae), {
169
+ value: o.value.roles,
170
+ "onUpdate:value": u[3] || (u[3] = (n) => o.value.roles = n),
170
171
  multiple: "",
171
- options: x
172
+ options: V
172
173
  }, null, 8, ["value"])
173
174
  ]),
174
175
  _: 1
175
176
  }, 8, ["label"]),
176
- a(e(w), {
177
+ s(e(w), {
177
178
  label: e(l)("labels.password"),
178
179
  path: "password"
179
180
  }, {
180
181
  default: d(() => [
181
- s("div", de, [
182
- a(e(h), {
183
- value: r.value.password,
184
- "onUpdate:value": n[4] || (n[4] = (i) => r.value.password = i),
182
+ a("div", me, [
183
+ s(e(h), {
184
+ value: o.value.password,
185
+ "onUpdate:value": u[4] || (u[4] = (n) => o.value.password = n),
185
186
  type: "password",
186
187
  "show-password-on": "click",
187
188
  "input-props": { autocomplete: "one-time-code" }
188
189
  }, null, 8, ["value"]),
189
- a(e(h), {
190
- value: r.value.passwordConfirmation,
191
- "onUpdate:value": n[5] || (n[5] = (i) => r.value.passwordConfirmation = i),
190
+ s(e(h), {
191
+ value: o.value.passwordConfirmation,
192
+ "onUpdate:value": u[5] || (u[5] = (n) => o.value.passwordConfirmation = n),
192
193
  type: "password",
193
194
  "show-password-on": "click",
194
195
  "input-props": { autocomplete: "one-time-code" },
@@ -202,25 +203,25 @@ const ue = ae("userList", {
202
203
  ]),
203
204
  _: 1
204
205
  }, 8, ["model"]),
205
- a(U, {
206
+ s(U, {
206
207
  color: "green",
207
- onClick: N
208
+ onClick: S
208
209
  }, {
209
210
  default: d(() => [
210
- n[6] || (n[6] = s("i", { class: "fa-regular fa-square-plus" }, null, -1)),
211
- s("span", me, " " + f(e(l)("main.create")), 1)
211
+ s(e(_), { name: "add-square" }),
212
+ a("span", ce, " " + f(e(l)("main.create")), 1)
212
213
  ]),
213
214
  _: 1
214
215
  })
215
216
  ], 2));
216
217
  }
217
- }, be = {
218
+ }, he = {
218
219
  __name: "AdminUsersView",
219
- setup(u) {
220
- const m = ue(), c = ee(), r = le(), _ = P(() => [
220
+ setup(i) {
221
+ const m = de(), c = X(), o = Y(), x = M(() => [
221
222
  { route: "/", text: "GameAP", icon: "gicon gicon-gameap" },
222
223
  { route: { name: "admin.users.index" }, text: l("users.users") }
223
- ]), x = () => [
224
+ ]), V = () => [
224
225
  {
225
226
  title: l("users.name"),
226
227
  key: "name"
@@ -238,89 +239,89 @@ const ue = ae("userList", {
238
239
  size: "small",
239
240
  class: "mr-0.5",
240
241
  onClick: () => {
241
- R(t.id);
242
+ j(t.id);
242
243
  }
243
- }, [
244
- p("i", { class: "fa-solid fa-eye" }),
244
+ }, { default: () => [
245
+ p(_, { name: "view" }),
245
246
  p("span", { class: "hidden lg:inline" }, l("main.view"))
246
- ]),
247
+ ] }),
247
248
  p(U, {
248
249
  color: "blue",
249
250
  size: "small",
250
251
  class: "mr-0.5",
251
252
  route: { name: "admin.users.edit", params: { id: t.id } }
252
- }, [
253
- p("i", { class: "fa-solid fa-pen-to-square" }),
253
+ }, { default: () => [
254
+ p(_, { name: "edit" }),
254
255
  p("span", { class: "hidden lg:inline" }, l("main.edit"))
255
- ]),
256
+ ] }),
256
257
  p(U, {
257
258
  color: "red",
258
259
  size: "small",
259
- disabled: r.user?.id === t.id,
260
+ disabled: o.user?.id === t.id,
260
261
  text: l("main.delete"),
261
262
  onClick: () => {
262
- F(t.id);
263
+ L(t.id);
263
264
  }
264
- }, [
265
- p("i", { class: "fa-solid fa-trash" }),
265
+ }, { default: () => [
266
+ p(_, { name: "delete" }),
266
267
  p("span", { class: "hidden lg:inline" }, l("main.delete"))
267
- ])
268
+ ] })
268
269
  ];
269
270
  }
270
271
  }
271
- ], { users: V } = te(m), N = y(x()), S = {
272
+ ], { users: N } = le(m), S = y(V()), P = {
272
273
  pageSize: 20
273
- }, n = P(() => m.loading || c.loading);
274
- J(() => {
275
- i();
274
+ }, u = M(() => m.loading || c.loading);
275
+ K(() => {
276
+ n();
276
277
  });
277
- const i = () => {
278
+ const n = () => {
278
279
  m.fetchUsers().catch((t) => {
279
280
  b(t);
280
281
  });
281
- }, T = P(() => V.value.map((t) => ({
282
+ }, F = M(() => N.value.map((t) => ({
282
283
  id: t.id,
283
284
  name: t.name,
284
285
  email: t.email
285
- }))), F = (t) => {
286
+ }))), L = (t) => {
286
287
  window.$dialog.success({
287
288
  title: l("users.delete_confirm_msg"),
288
289
  positiveText: l("main.yes"),
289
290
  negativeText: l("main.no"),
290
291
  closable: !1,
291
292
  onPositiveClick: () => {
292
- L(t);
293
+ R(t);
293
294
  },
294
295
  onNegativeClick: () => {
295
296
  }
296
297
  });
297
- }, L = (t) => {
298
- if (r.user?.id === t) {
298
+ }, R = (t) => {
299
+ if (o.user?.id === t) {
299
300
  b(l("users.delete_self_error_msg"));
300
301
  return;
301
302
  }
302
303
  m.deleteUserById(t).then(() => {
303
- $({
304
+ z({
304
305
  content: l("users.delete_success_msg"),
305
306
  type: "success"
306
307
  }, () => {
307
- i();
308
+ n();
308
309
  });
309
- }).catch((o) => {
310
- b(o);
310
+ }).catch((r) => {
311
+ b(r);
311
312
  });
312
- }, q = y(!1), R = (t) => {
313
+ }, q = y(!1), j = (t) => {
313
314
  c.setUserId(t), c.fetchUser().then(() => {
314
315
  q.value = !0;
315
- }).catch((o) => {
316
- b(o);
316
+ }).catch((r) => {
317
+ b(r);
317
318
  });
318
319
  }, C = y(!1), v = y({
319
320
  name: "",
320
321
  email: ""
321
- }), j = () => {
322
+ }), G = () => {
322
323
  v.value = {}, C.value = !0;
323
- }, G = () => {
324
+ }, O = () => {
324
325
  const t = {
325
326
  login: v.value.login,
326
327
  email: v.value.email,
@@ -329,47 +330,50 @@ const ue = ae("userList", {
329
330
  roles: v.value.roles
330
331
  };
331
332
  m.createUser(t).then(() => {
332
- $({
333
+ z({
333
334
  content: l("users.create_success_msg"),
334
335
  type: "success"
335
336
  }, () => {
336
- C.value = !1, i();
337
+ C.value = !1, n();
337
338
  });
338
- }).catch((o) => {
339
- b(o);
339
+ }).catch((r) => {
340
+ b(r);
340
341
  });
341
342
  };
342
- return (t, o) => (E(), A(K, null, [
343
- a(e(se), { items: _.value }, null, 8, ["items"]),
344
- a(U, {
343
+ return (t, r) => (B(), T(Q, null, [
344
+ s(e(Z), { items: x.value }, null, 8, ["items"]),
345
+ s(U, {
345
346
  color: "green",
346
347
  size: "middle",
347
348
  class: "mb-5",
348
- onClick: o[0] || (o[0] = (g) => j())
349
+ onClick: r[0] || (r[0] = (g) => G())
349
350
  }, {
350
351
  default: d(() => [
351
- o[4] || (o[4] = s("i", { class: "fa fa-plus-square mr-0.5" }, null, -1)),
352
- s("span", null, f(e(l)("users.create")), 1)
352
+ s(e(_), {
353
+ name: "add-square",
354
+ class: "mr-0.5"
355
+ }),
356
+ a("span", null, f(e(l)("users.create")), 1)
353
357
  ]),
354
358
  _: 1
355
359
  }),
356
- a(e(ne), {
360
+ s(e(te), {
357
361
  ref: "tableRef",
358
362
  bordered: !1,
359
363
  "single-line": !0,
360
- columns: N.value,
361
- data: T.value,
362
- loading: n.value,
363
- pagination: S
364
+ columns: S.value,
365
+ data: F.value,
366
+ loading: u.value,
367
+ pagination: P
364
368
  }, {
365
369
  loading: d(() => [
366
- a(e(D))
370
+ s(e(D))
367
371
  ]),
368
372
  _: 1
369
373
  }, 8, ["columns", "data", "loading"]),
370
- a(e(z), {
374
+ s(e(A), {
371
375
  show: q.value,
372
- "onUpdate:show": o[1] || (o[1] = (g) => q.value = g),
376
+ "onUpdate:show": r[1] || (r[1] = (g) => q.value = g),
373
377
  class: "custom-card",
374
378
  preset: "card",
375
379
  title: e(l)("users.user"),
@@ -378,35 +382,35 @@ const ue = ae("userList", {
378
382
  segmented: { content: "soft", footer: "soft" }
379
383
  }, {
380
384
  default: d(() => [
381
- a(e(ie), {
385
+ s(e(oe), {
382
386
  bordered: !1,
383
387
  "single-line": !0
384
388
  }, {
385
389
  default: d(() => [
386
- s("tbody", null, [
387
- s("tr", null, [
388
- s("td", null, [
389
- s("strong", null, f(e(l)("users.login")) + ":", 1)
390
+ a("tbody", null, [
391
+ a("tr", null, [
392
+ a("td", null, [
393
+ a("strong", null, f(e(l)("users.login")) + ":", 1)
390
394
  ]),
391
- s("td", null, f(e(c).user.login), 1)
395
+ a("td", null, f(e(c).user.login), 1)
392
396
  ]),
393
- s("tr", null, [
394
- o[5] || (o[5] = s("td", null, [
395
- s("strong", null, "Email:")
397
+ a("tr", null, [
398
+ r[4] || (r[4] = a("td", null, [
399
+ a("strong", null, "Email:")
396
400
  ], -1)),
397
- s("td", null, f(e(c).user.email), 1)
401
+ a("td", null, f(e(c).user.email), 1)
398
402
  ]),
399
- s("tr", null, [
400
- s("td", null, [
401
- s("strong", null, f(e(l)("users.name")) + ":", 1)
403
+ a("tr", null, [
404
+ a("td", null, [
405
+ a("strong", null, f(e(l)("users.name")) + ":", 1)
402
406
  ]),
403
- s("td", null, f(e(c).user.name), 1)
407
+ a("td", null, f(e(c).user.name), 1)
404
408
  ]),
405
- s("tr", null, [
406
- s("td", null, [
407
- s("strong", null, f(e(l)("users.roles")) + ":", 1)
409
+ a("tr", null, [
410
+ a("td", null, [
411
+ a("strong", null, f(e(l)("users.roles")) + ":", 1)
408
412
  ]),
409
- s("td", null, f(e(c).user.roles.join(", ")), 1)
413
+ a("td", null, f(e(c).user.roles.join(", ")), 1)
410
414
  ])
411
415
  ])
412
416
  ]),
@@ -415,9 +419,9 @@ const ue = ae("userList", {
415
419
  ]),
416
420
  _: 1
417
421
  }, 8, ["show", "title"]),
418
- a(e(z), {
422
+ s(e(A), {
419
423
  show: C.value,
420
- "onUpdate:show": o[3] || (o[3] = (g) => C.value = g),
424
+ "onUpdate:show": r[3] || (r[3] = (g) => C.value = g),
421
425
  class: "custom-card",
422
426
  preset: "card",
423
427
  title: e(l)("users.create"),
@@ -426,10 +430,10 @@ const ue = ae("userList", {
426
430
  segmented: { content: "soft", footer: "soft" }
427
431
  }, {
428
432
  default: d(() => [
429
- a(ce, {
433
+ s(pe, {
430
434
  modelValue: v.value,
431
- "onUpdate:modelValue": o[2] || (o[2] = (g) => v.value = g),
432
- onCreate: G
435
+ "onUpdate:modelValue": r[2] || (r[2] = (g) => v.value = g),
436
+ onCreate: O
433
437
  }, null, 8, ["modelValue"])
434
438
  ]),
435
439
  _: 1
@@ -438,5 +442,5 @@ const ue = ae("userList", {
438
442
  }
439
443
  };
440
444
  export {
441
- be as default
445
+ he as default
442
446
  };
@@ -0,0 +1,123 @@
1
+ import { mergeModels as x, ref as R, useModel as w, computed as C, createElementBlock as F, openBlock as N, createVNode as t, unref as e, withCtx as m, createElementVNode as V, toDisplayString as k } from "vue";
2
+ import { t as r, _ as L, a as M } from "./index-BDKiNPpP.js";
3
+ import { NForm as S, NFormItem as n, NSelect as h, NInput as u } from "naive-ui";
4
+ import { storeToRefs as q } from "pinia";
5
+ import { r as d } from "./validators-BVXTUmow.js";
6
+ import { u as U } from "./gameList-BLdEusRA.js";
7
+ const W = { class: "hidden lg:inline" }, O = {
8
+ __name: "CreateModForm",
9
+ props: {
10
+ modelValue: {
11
+ game: "",
12
+ name: "",
13
+ remoteRepositoryLinux: "",
14
+ remoteRepositoryWindows: ""
15
+ },
16
+ modelModifiers: {}
17
+ },
18
+ emits: /* @__PURE__ */ x(["create"], ["update:modelValue"]),
19
+ setup(p, { emit: v }) {
20
+ const f = U(), i = R({}), a = w(p, "modelValue"), { games: _ } = q(f), b = {
21
+ game: {
22
+ required: !0,
23
+ validator: d(r("labels.game_id"))
24
+ },
25
+ name: {
26
+ required: !0,
27
+ validator: d(r("labels.name"))
28
+ }
29
+ }, c = v, y = () => {
30
+ i.value.validate().then(() => {
31
+ c("create");
32
+ });
33
+ }, g = C(() => {
34
+ let s = [];
35
+ return _.value.forEach((o) => {
36
+ s.push({
37
+ label: o.name,
38
+ value: o.code
39
+ });
40
+ }), s;
41
+ });
42
+ return (s, o) => (N(), F("div", null, [
43
+ t(e(S), {
44
+ "label-placement": "top",
45
+ "label-width": "auto",
46
+ ref_key: "modCreateFormRef",
47
+ ref: i,
48
+ model: a.value,
49
+ rules: b
50
+ }, {
51
+ default: m(() => [
52
+ t(e(n), {
53
+ label: e(r)("labels.game_id"),
54
+ path: "game"
55
+ }, {
56
+ default: m(() => [
57
+ t(e(h), {
58
+ filterable: "",
59
+ value: a.value.game,
60
+ "onUpdate:value": o[0] || (o[0] = (l) => a.value.game = l),
61
+ options: g.value
62
+ }, null, 8, ["value", "options"])
63
+ ]),
64
+ _: 1
65
+ }, 8, ["label"]),
66
+ t(e(n), {
67
+ label: e(r)("labels.name"),
68
+ path: "name"
69
+ }, {
70
+ default: m(() => [
71
+ t(e(u), {
72
+ value: a.value.name,
73
+ "onUpdate:value": o[1] || (o[1] = (l) => a.value.name = l),
74
+ type: "text"
75
+ }, null, 8, ["value"])
76
+ ]),
77
+ _: 1
78
+ }, 8, ["label"]),
79
+ t(e(n), {
80
+ label: e(r)("labels.remote_repository_linux"),
81
+ path: "remoteRepositoryLinux"
82
+ }, {
83
+ default: m(() => [
84
+ t(e(u), {
85
+ value: a.value.remoteRepositoryLinux,
86
+ "onUpdate:value": o[2] || (o[2] = (l) => a.value.remoteRepositoryLinux = l),
87
+ type: "text"
88
+ }, null, 8, ["value"])
89
+ ]),
90
+ _: 1
91
+ }, 8, ["label"]),
92
+ t(e(n), {
93
+ label: e(r)("labels.remote_repository_windows"),
94
+ path: "remoteRepositoryWindows"
95
+ }, {
96
+ default: m(() => [
97
+ t(e(u), {
98
+ value: a.value.remoteRepositoryWindows,
99
+ "onUpdate:value": o[3] || (o[3] = (l) => a.value.remoteRepositoryWindows = l),
100
+ type: "text"
101
+ }, null, 8, ["value"])
102
+ ]),
103
+ _: 1
104
+ }, 8, ["label"])
105
+ ]),
106
+ _: 1
107
+ }, 8, ["model"]),
108
+ t(L, {
109
+ color: "green",
110
+ onClick: y
111
+ }, {
112
+ default: m(() => [
113
+ t(e(M), { name: "add-square" }),
114
+ V("span", W, " " + k(e(r)("main.create")), 1)
115
+ ]),
116
+ _: 1
117
+ })
118
+ ]));
119
+ }
120
+ };
121
+ export {
122
+ O as _
123
+ };