@gameap/frontend 4.1.0-dev14 → 4.1.0-dev16

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,7 +1,11 @@
1
- import { mergeModels as E, ref as U, useModel as M, createElementBlock as k, openBlock as x, normalizeClass as $, createVNode as s, unref as e, withCtx as d, createTextVNode as F, toDisplayString as r, createElementVNode as l, computed as N, Fragment as q } from "vue";
2
- import { t as a, _ as y, a as L, k as z, o as I, q as v, m as A, s as B, n as P, e as D } from "./index-9fvX7FD-.js";
3
- import { NForm as O, NFormItem as w, NInput as _, NSelect as R, NDivider as T, NCard as j, NTable as G, NModal as W } from "naive-ui";
4
- import { i as H, a as J, s as K, b as Q, r as X } from "./validators-ChBGsKft.js";
1
+ import { mergeModels as S, ref as P, useModel as E, createElementBlock as y, openBlock as C, normalizeClass as M, createVNode as s, unref as e, withCtx as i, createTextVNode as F, toDisplayString as r, createElementVNode as l, computed as U, Fragment as q } from "vue";
2
+ import { t as a, _ as $, a as L, k as I, o as z, q as v, m as A, s as B, n as x, e as O } from "./index-CiR3a1Cv.js";
3
+ import { NForm as R, NFormItem as w, NInput as _, NSelect as j } from "naive-ui";
4
+ import { _ as D } from "./GModal-C4shXjCa.js";
5
+ import { _ as G } from "./GCard-BmZwrZ1e.js";
6
+ import { _ as T } from "./GTable-DRH5VONX.js";
7
+ import { _ as W } from "./GDivider-tYaNzeM5.js";
8
+ import { i as H, a as J, s as K, b as Q, r as X } from "./validators-r6Rit4O6.js";
5
9
  const Y = { class: "flex w-full" }, Z = { class: "grid grid-cols-1 w-full" }, ee = { class: "flex w-full" }, le = { class: "grid grid-cols-2 gap-x-4 w-full" }, ae = { class: "hidden lg:inline" }, se = {
6
10
  __name: "UpdateProfileForm",
7
11
  props: {
@@ -14,9 +18,9 @@ const Y = { class: "flex w-full" }, Z = { class: "grid grid-cols-1 w-full" }, ee
14
18
  },
15
19
  modelModifiers: {}
16
20
  },
17
- emits: /* @__PURE__ */ E(["update"], ["update:modelValue"]),
18
- setup(C, { emit: c }) {
19
- const g = U({}), o = M(C, "modelValue"), b = [
21
+ emits: /* @__PURE__ */ S(["update"], ["update:modelValue"]),
22
+ setup(k, { emit: c }) {
23
+ const g = P({}), t = E(k, "modelValue"), b = [
20
24
  {
21
25
  label: "English",
22
26
  value: "en"
@@ -37,36 +41,36 @@ const Y = { class: "flex w-full" }, Z = { class: "grid grid-cols-1 w-full" }, ee
37
41
  K(
38
42
  a("labels.password"),
39
43
  a("labels.password_confirmation"),
40
- () => o.value.passwordConfirmation
44
+ () => t.value.passwordConfirmation
41
45
  )
42
46
  )
43
47
  )
44
48
  }
45
- }, i = c, V = () => {
49
+ }, d = c, V = () => {
46
50
  g.value.validate().then(() => {
47
- i("update");
51
+ d("update");
48
52
  });
49
53
  };
50
- return (m, t) => (x(), k("div", {
51
- class: $(m.$attrs.class)
54
+ return (m, o) => (C(), y("div", {
55
+ class: M(m.$attrs.class)
52
56
  }, [
53
- s(e(O), {
57
+ s(e(R), {
54
58
  "label-placement": "top",
55
59
  "label-width": "auto",
56
60
  ref_key: "formRef",
57
61
  ref: g,
58
- model: o.value,
62
+ model: t.value,
59
63
  rules: h
60
64
  }, {
61
- default: d(() => [
65
+ default: i(() => [
62
66
  s(e(w), {
63
67
  label: e(a)("labels.name"),
64
68
  path: "name"
65
69
  }, {
66
- default: d(() => [
70
+ default: i(() => [
67
71
  s(e(_), {
68
- value: o.value.name,
69
- "onUpdate:value": t[0] || (t[0] = (u) => o.value.name = u),
72
+ value: t.value.name,
73
+ "onUpdate:value": o[0] || (o[0] = (u) => t.value.name = u),
70
74
  type: "text"
71
75
  }, null, 8, ["value"])
72
76
  ]),
@@ -76,17 +80,17 @@ const Y = { class: "flex w-full" }, Z = { class: "grid grid-cols-1 w-full" }, ee
76
80
  label: e(a)("profile.language"),
77
81
  path: "language"
78
82
  }, {
79
- default: d(() => [
80
- s(e(R), {
81
- value: o.value.language,
82
- "onUpdate:value": t[1] || (t[1] = (u) => o.value.language = u),
83
+ default: i(() => [
84
+ s(e(j), {
85
+ value: t.value.language,
86
+ "onUpdate:value": o[1] || (o[1] = (u) => t.value.language = u),
83
87
  options: b
84
88
  }, null, 8, ["value"])
85
89
  ]),
86
90
  _: 1
87
91
  }, 8, ["label"]),
88
- s(e(T), null, {
89
- default: d(() => [
92
+ s(e(W), null, {
93
+ default: i(() => [
90
94
  F(r(e(a)("profile.change_password")), 1)
91
95
  ]),
92
96
  _: 1
@@ -95,12 +99,12 @@ const Y = { class: "flex w-full" }, Z = { class: "grid grid-cols-1 w-full" }, ee
95
99
  label: e(a)("labels.current_password"),
96
100
  path: "currentPassword"
97
101
  }, {
98
- default: d(() => [
102
+ default: i(() => [
99
103
  l("div", Y, [
100
104
  l("div", Z, [
101
105
  s(e(_), {
102
- value: o.value.currentPassword,
103
- "onUpdate:value": t[2] || (t[2] = (u) => o.value.currentPassword = u),
106
+ value: t.value.currentPassword,
107
+ "onUpdate:value": o[2] || (o[2] = (u) => t.value.currentPassword = u),
104
108
  type: "password",
105
109
  "show-password-on": "click",
106
110
  placeholder: e(a)("labels.current_password"),
@@ -115,20 +119,20 @@ const Y = { class: "flex w-full" }, Z = { class: "grid grid-cols-1 w-full" }, ee
115
119
  label: e(a)("labels.password"),
116
120
  path: "password"
117
121
  }, {
118
- default: d(() => [
122
+ default: i(() => [
119
123
  l("div", ee, [
120
124
  l("div", le, [
121
125
  s(e(_), {
122
- value: o.value.password,
123
- "onUpdate:value": t[3] || (t[3] = (u) => o.value.password = u),
126
+ value: t.value.password,
127
+ "onUpdate:value": o[3] || (o[3] = (u) => t.value.password = u),
124
128
  type: "password",
125
129
  "show-password-on": "click",
126
130
  placeholder: e(a)("labels.new_password"),
127
131
  "input-props": { autocomplete: "one-time-code" }
128
132
  }, null, 8, ["value", "placeholder"]),
129
133
  s(e(_), {
130
- value: o.value.passwordConfirmation,
131
- "onUpdate:value": t[4] || (t[4] = (u) => o.value.passwordConfirmation = u),
134
+ value: t.value.passwordConfirmation,
135
+ "onUpdate:value": o[4] || (o[4] = (u) => t.value.passwordConfirmation = u),
132
136
  type: "password",
133
137
  "show-password-on": "click",
134
138
  "input-props": { autocomplete: "one-time-code" },
@@ -142,12 +146,12 @@ const Y = { class: "flex w-full" }, Z = { class: "grid grid-cols-1 w-full" }, ee
142
146
  ]),
143
147
  _: 1
144
148
  }, 8, ["model"]),
145
- s(y, {
149
+ s($, {
146
150
  color: "green",
147
151
  onClick: V,
148
152
  class: "mt-4"
149
153
  }, {
150
- default: d(() => [
154
+ default: i(() => [
151
155
  s(e(L), {
152
156
  name: "save",
153
157
  class: "mr-0.5"
@@ -158,54 +162,54 @@ const Y = { class: "flex w-full" }, Z = { class: "grid grid-cols-1 w-full" }, ee
158
162
  })
159
163
  ], 2));
160
164
  }
161
- }, ue = {
165
+ }, me = {
162
166
  __name: "ProfileView",
163
- setup(C) {
164
- const c = z(), g = I(), o = {
167
+ setup(k) {
168
+ const c = I(), g = z(), t = {
165
169
  en: "English",
166
170
  ru: "Русский"
167
- }, b = N(() => {
171
+ }, b = U(() => {
168
172
  const f = v();
169
- return o[f] || f;
170
- }), h = N(() => [
173
+ return t[f] || f;
174
+ }), h = U(() => [
171
175
  { route: "/", text: "GameAP", icon: "gicon gicon-gameap" },
172
176
  { route: { name: "profile" }, text: a("profile.profile") }
173
- ]), i = N(() => c.user), V = () => {
174
- t.value = {
175
- name: i.value.name,
177
+ ]), d = U(() => c.user), V = () => {
178
+ o.value = {
179
+ name: d.value.name,
176
180
  language: v()
177
181
  }, m.value = !0;
178
- }, m = U(!1), t = U({
179
- name: i.value.name,
182
+ }, m = P(!1), o = P({
183
+ name: d.value.name,
180
184
  language: v()
181
185
  }), u = () => {
182
- const f = v(), n = t.value.language;
186
+ const f = v(), n = o.value.language;
183
187
  let p = {
184
- name: t.value.name
188
+ name: o.value.name
185
189
  };
186
- t.value.password && (p.current_password = t.value.currentPassword, p.password = t.value.password), c.saveProfile(p).then(() => {
187
- n && n !== f ? (g.setLanguage(n), B(n), P({
190
+ o.value.password && (p.current_password = o.value.currentPassword, p.password = o.value.password), c.saveProfile(p).then(() => {
191
+ n && n !== f ? (g.setLanguage(n), B(n), x({
188
192
  content: a("profile.update_with_lang_success_msg"),
189
193
  type: "success"
190
194
  }, () => {
191
195
  window.location.reload();
192
- })) : P({
196
+ })) : x({
193
197
  content: a("profile.update_success_msg"),
194
198
  type: "success"
195
199
  }), c.fetchProfile(), m.value = !1;
196
- }).catch((S) => {
197
- D(S), m.value = !1;
200
+ }).catch((N) => {
201
+ O(N), m.value = !1;
198
202
  });
199
203
  };
200
- return (f, n) => (x(), k(q, null, [
204
+ return (f, n) => (C(), y(q, null, [
201
205
  s(e(A), { items: h.value }, null, 8, ["items"]),
202
- s(y, {
206
+ s($, {
203
207
  color: "green",
204
208
  size: "middle",
205
209
  class: "mb-5",
206
210
  onClick: n[0] || (n[0] = (p) => V())
207
211
  }, {
208
- default: d(() => [
212
+ default: i(() => [
209
213
  s(e(L), {
210
214
  name: "edit",
211
215
  class: "mr-1"
@@ -214,46 +218,37 @@ const Y = { class: "flex w-full" }, Z = { class: "grid grid-cols-1 w-full" }, ee
214
218
  ]),
215
219
  _: 1
216
220
  }),
217
- s(e(j), {
221
+ s(e(G), {
218
222
  title: e(a)("profile.profile"),
219
- size: "small",
220
- class: "mb-3",
221
- "header-class": "g-card-header",
222
- segmented: {
223
- content: !0,
224
- footer: "soft"
225
- }
223
+ class: "mb-3"
226
224
  }, {
227
- default: d(() => [
228
- s(e(G), {
229
- bordered: !1,
230
- "single-line": !0
231
- }, {
232
- default: d(() => [
225
+ default: i(() => [
226
+ s(e(T), null, {
227
+ default: i(() => [
233
228
  l("tbody", null, [
234
229
  l("tr", null, [
235
230
  l("td", null, [
236
231
  l("strong", null, r(e(a)("users.login")) + ":", 1)
237
232
  ]),
238
- l("td", null, r(i.value.login), 1)
233
+ l("td", null, r(d.value.login), 1)
239
234
  ]),
240
235
  l("tr", null, [
241
236
  n[3] || (n[3] = l("td", null, [
242
237
  l("strong", null, "Email:")
243
238
  ], -1)),
244
- l("td", null, r(i.value.email), 1)
239
+ l("td", null, r(d.value.email), 1)
245
240
  ]),
246
241
  l("tr", null, [
247
242
  l("td", null, [
248
243
  l("strong", null, r(e(a)("users.name")) + ":", 1)
249
244
  ]),
250
- l("td", null, r(i.value.name), 1)
245
+ l("td", null, r(d.value.name), 1)
251
246
  ]),
252
247
  l("tr", null, [
253
248
  l("td", null, [
254
249
  l("strong", null, r(e(a)("users.roles")) + ":", 1)
255
250
  ]),
256
- l("td", null, r(i.value.roles.join(", ")), 1)
251
+ l("td", null, r(d.value.roles.join(", ")), 1)
257
252
  ]),
258
253
  l("tr", null, [
259
254
  l("td", null, [
@@ -268,20 +263,16 @@ const Y = { class: "flex w-full" }, Z = { class: "grid grid-cols-1 w-full" }, ee
268
263
  ]),
269
264
  _: 1
270
265
  }, 8, ["title"]),
271
- s(e(W), {
266
+ s(e(D), {
272
267
  show: m.value,
273
268
  "onUpdate:show": n[2] || (n[2] = (p) => m.value = p),
274
- class: "custom-card",
275
- preset: "card",
276
269
  title: e(a)("profile.edit"),
277
- bordered: !1,
278
- style: { width: "600px" },
279
- segmented: { content: "soft", footer: "soft" }
270
+ style: { width: "600px" }
280
271
  }, {
281
- default: d(() => [
272
+ default: i(() => [
282
273
  s(se, {
283
- modelValue: t.value,
284
- "onUpdate:modelValue": n[1] || (n[1] = (p) => t.value = p),
274
+ modelValue: o.value,
275
+ "onUpdate:modelValue": n[1] || (n[1] = (p) => o.value = p),
285
276
  onUpdate: u
286
277
  }, null, 8, ["modelValue"])
287
278
  ]),
@@ -291,5 +282,5 @@ const Y = { class: "flex w-full" }, Z = { class: "grid grid-cols-1 w-full" }, ee
291
282
  }
292
283
  };
293
284
  export {
294
- ue as default
285
+ me as default
295
286
  };
@@ -1,8 +1,8 @@
1
1
  import { ref as v, computed as h, onMounted as g, createElementBlock as e, openBlock as o, createElementVNode as a, createCommentVNode as x, createVNode as c, unref as t, toDisplayString as d, Fragment as k, renderList as b, withKeys as y, withCtx as w } from "vue";
2
2
  import { NInput as C } from "naive-ui";
3
- import { l as R, _ as N, a as S, e as $ } from "./index-9fvX7FD-.js";
3
+ import { l as R, _ as N, a as S, e as $ } from "./index-CiR3a1Cv.js";
4
4
  import { storeToRefs as V } from "pinia";
5
- import { u as B } from "./ServerIdView-_vGQRk7y.js";
5
+ import { u as B } from "./ServerIdView-1X_6i-s6.js";
6
6
  const E = { id: "rcon-console-component" }, F = { class: "coding inverse-toggle px-5 pt-4 shadow-lg text-stone-100 text-sm font-mono subpixel-antialiased bg-stone-800 dark:bg-stone-900 pb-6 pt-4 rounded-lg leading-normal overflow-hidden" }, I = {
7
7
  ref: "consoleRef",
8
8
  class: "whitespace-pre-wrap mt-4 flex h-[40vh] overflow-y-scroll overscroll-contain"