@gameap/frontend 4.1.0-dev13 → 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,38 +1,40 @@
1
- import { ref as y, computed as d, onMounted as K, createElementBlock as I, openBlock as k, Fragment as L, createElementVNode as _, createVNode as n, withCtx as g, unref as c, toDisplayString as Q, h as r } from "vue";
2
- import { k as W, j as X, e as Y, t as s, a as A, l as Z, _ as w, m as ee } from "./index-9fvX7FD-.js";
3
- import { NCollapse as te, NCollapseItem as se, NSelect as re, NButton as le, NDataTable as ne, NEmpty as ae } from "naive-ui";
4
- import { defineStore as oe, storeToRefs as ie } from "pinia";
5
- import { _ as F } from "./GameIcon-DaYNlnur.js";
6
- import { _ as b } from "./ServerControlButton-D_zJbxr6.js";
7
- const ce = oe("serverFilters", {
1
+ import { ref as x, computed as d, onMounted as H, createElementBlock as N, openBlock as k, Fragment as L, createElementVNode as f, createVNode as n, withCtx as g, unref as o, toDisplayString as J, h as r } from "vue";
2
+ import { k as K, j as Q, e as W, t as s, a as F, l as X, _ as Y, m as Z } from "./index-CiR3a1Cv.js";
3
+ import { NCollapse as w, NCollapseItem as ee, NSelect as te, NButton as se } from "naive-ui";
4
+ import { _ as re } from "./GDataTable-DC0a2vJJ.js";
5
+ import { _ as le } from "./GEmpty-Bkw6u0WR.js";
6
+ import { defineStore as ne, storeToRefs as ae } from "pinia";
7
+ import { _ as I } from "./GameIcon-DaYNlnur.js";
8
+ import { _ as b } from "./ServerControlButton-7Un9i8tt.js";
9
+ const oe = ne("serverFilters", {
8
10
  state: () => ({
9
11
  selectedGame: null,
10
12
  selectedIP: null
11
13
  }),
12
14
  getters: {
13
- hasFilters: (i) => i.selectedGame !== null || i.selectedIP !== null
15
+ hasFilters: (c) => c.selectedGame !== null || c.selectedIP !== null
14
16
  },
15
17
  actions: {
16
- setGameFilter(i) {
17
- this.selectedGame = i;
18
+ setGameFilter(c) {
19
+ this.selectedGame = c;
18
20
  },
19
- setIPFilter(i) {
20
- this.selectedIP = i;
21
+ setIPFilter(c) {
22
+ this.selectedIP = c;
21
23
  },
22
24
  clearFilters() {
23
25
  this.selectedGame = null, this.selectedIP = null;
24
26
  }
25
27
  }
26
- }), ue = { class: "flex flex-wrap mb-4" }, de = { class: "flex flex-wrap" }, me = { class: "md:w-1/4 pr-4 pl-4" }, pe = { class: "md:w-1/4 pr-4 pl-4" }, ve = { class: "md:w-1/4 pr-4 pl-4" }, _e = { class: "hidden lg:inline" }, fe = 0, ge = 1, be = 2, he = {
28
+ }), ie = { class: "flex flex-wrap mb-4" }, ce = { class: "flex flex-wrap" }, ue = { class: "md:w-1/4 pr-4 pl-4" }, de = { class: "md:w-1/4 pr-4 pl-4" }, me = { class: "md:w-1/4 pr-4 pl-4" }, pe = { class: "hidden lg:inline" }, ve = 0, fe = 1, _e = 2, ge = {
27
29
  __name: "ServerMainList",
28
- setup(i) {
29
- const o = W(), u = ce(), h = X(), { servers: m } = ie(h), P = y([
30
+ setup(c) {
31
+ const i = K(), u = oe(), h = Q(), { servers: m } = ae(h), P = x([
30
32
  {
31
33
  title: s("servers.name"),
32
34
  key: "name",
33
35
  render(e) {
34
36
  return r("div", { class: "flex items-center" }, [
35
- r(F, { game: e.game.code, class: "mr-2" }),
37
+ r(I, { game: e.game.code, class: "mr-2" }),
36
38
  r("span", { class: "" }, e.name)
37
39
  ]);
38
40
  }
@@ -47,7 +49,7 @@ const ce = oe("serverFilters", {
47
49
  title: s("servers.status"),
48
50
  key: "status",
49
51
  render(e) {
50
- return e.blocked ? r("span", { class: "badge-stone" }, s("servers.blocked")) : e.enabled ? e.installed ? e.installed === be ? r("span", { class: "badge-orange" }, s("servers.installation")) : e.online ? r(
52
+ return e.blocked ? r("span", { class: "badge-stone" }, s("servers.blocked")) : e.enabled ? e.installed ? e.installed === _e ? r("span", { class: "badge-orange" }, s("servers.installation")) : e.online ? r(
51
53
  "span",
52
54
  {
53
55
  class: "badge-green"
@@ -67,7 +69,7 @@ const ce = oe("serverFilters", {
67
69
  render(e) {
68
70
  if (!e.enabled || e.blocked)
69
71
  return [];
70
- if (e.installed === fe && j(e.id))
72
+ if (e.installed === ve && j(e.id))
71
73
  return r(
72
74
  b,
73
75
  {
@@ -80,7 +82,7 @@ const ce = oe("serverFilters", {
80
82
  }
81
83
  );
82
84
  let t = [];
83
- return e.installed === ge && (e.online && U(e.id) && t.push(
85
+ return e.installed === fe && (e.online && D(e.id) && t.push(
84
86
  r(
85
87
  b,
86
88
  {
@@ -93,7 +95,7 @@ const ce = oe("serverFilters", {
93
95
  }
94
96
  ),
95
97
  " "
96
- ), !e.online && M(e.id) && t.push(
98
+ ), !e.online && U(e.id) && t.push(
97
99
  r(
98
100
  b,
99
101
  {
@@ -119,9 +121,9 @@ const ce = oe("serverFilters", {
119
121
  }
120
122
  ),
121
123
  " "
122
- )), D(e.id) && t.push(
124
+ )), M(e.id) && t.push(
123
125
  r(
124
- w,
126
+ Y,
125
127
  {
126
128
  color: "black",
127
129
  size: "small",
@@ -130,7 +132,7 @@ const ce = oe("serverFilters", {
130
132
  { default: () => [
131
133
  r("span", { class: "hidden lg:inline" }, s("servers.control")),
132
134
  " ",
133
- r(A, { name: "chevron-double-right" })
135
+ r(F, { name: "chevron-double-right" })
134
136
  ] }
135
137
  )
136
138
  ), t;
@@ -138,27 +140,27 @@ const ce = oe("serverFilters", {
138
140
  }
139
141
  ]), G = {
140
142
  pageSize: 20
141
- }, x = y(!0), C = y(null), p = d({
143
+ }, y = x(!0), $ = x(null), p = d({
142
144
  get: () => u.selectedGame,
143
145
  set: (e) => u.setGameFilter(e)
144
146
  }), v = d({
145
147
  get: () => u.selectedIP,
146
148
  set: (e) => u.setIPFilter(e)
147
149
  });
148
- K(() => {
150
+ H(() => {
149
151
  h.fetchServersByNode().finally(() => {
150
- x.value = !1;
151
- }), o.isAdmin || o.fetchServersAbilities().catch((e) => {
152
- Y(e);
152
+ y.value = !1;
153
+ }), i.isAdmin || i.fetchServersAbilities().catch((e) => {
154
+ W(e);
153
155
  });
154
156
  });
155
- const E = d(() => m.value.filter((e) => {
157
+ const C = d(() => m.value.filter((e) => {
156
158
  let t = !1;
157
159
  return p.value !== null && p.value !== "" && p.value.length > 0 && (t = !p.value.includes(e.game.code)), !t && v.value !== null && v.value !== "" && v.value.length > 0 && (t = !v.value.includes(e.server_ip)), !t;
158
- })), T = (e) => [
159
- r(F, { game: e.value, class: "mr-2" }),
160
+ })), E = (e) => [
161
+ r(I, { game: e.value, class: "mr-2" }),
160
162
  e.label
161
- ], $ = d(() => {
163
+ ], z = d(() => {
162
164
  const e = /* @__PURE__ */ new Map();
163
165
  for (const l in m.value)
164
166
  e.set(
@@ -166,9 +168,9 @@ const ce = oe("serverFilters", {
166
168
  m.value[l].game.name
167
169
  );
168
170
  let t = [];
169
- e.forEach((l, f) => {
170
- t.push([f, l]);
171
- }), t.sort((l, f) => l[1].localeCompare(f[1]));
171
+ e.forEach((l, _) => {
172
+ t.push([_, l]);
173
+ }), t.sort((l, _) => l[1].localeCompare(_[1]));
172
174
  let a = [];
173
175
  return t.forEach((l) => {
174
176
  a.push({
@@ -176,9 +178,9 @@ const ce = oe("serverFilters", {
176
178
  label: l[1]
177
179
  });
178
180
  }), a;
179
- }), z = d(() => {
181
+ }), T = d(() => {
180
182
  var e = [];
181
- for (const t of $.value)
183
+ for (const t of z.value)
182
184
  e.push({ label: t.label, value: t.value });
183
185
  return e;
184
186
  }), O = d(() => {
@@ -190,7 +192,7 @@ const ce = oe("serverFilters", {
190
192
  t.push({ label: a, value: a });
191
193
  return t;
192
194
  });
193
- function N() {
195
+ function A() {
194
196
  }
195
197
  function R() {
196
198
  u.clearFilters();
@@ -198,59 +200,59 @@ const ce = oe("serverFilters", {
198
200
  function B() {
199
201
  return u.hasFilters;
200
202
  }
201
- function D(e) {
202
- return o.canServerAbility(e, "game-server-common");
203
- }
204
203
  function M(e) {
205
- return o.canServerAbility(e, "game-server-start");
204
+ return i.canServerAbility(e, "game-server-common");
206
205
  }
207
206
  function U(e) {
208
- return o.canServerAbility(e, "game-server-stop");
207
+ return i.canServerAbility(e, "game-server-start");
208
+ }
209
+ function D(e) {
210
+ return i.canServerAbility(e, "game-server-stop");
209
211
  }
210
212
  function V(e) {
211
- return o.canServerAbility(e, "game-server-restart");
213
+ return i.canServerAbility(e, "game-server-restart");
212
214
  }
213
215
  function j(e) {
214
- return o.canServerAbility(e, "game-server-update");
216
+ return i.canServerAbility(e, "game-server-update");
215
217
  }
216
218
  return (e, t) => {
217
- const a = re, l = le, f = se, q = te, H = ae, J = ne;
218
- return k(), I(L, null, [
219
- _("div", ue, [
219
+ const a = te, l = se, _ = ee, q = w;
220
+ return k(), N(L, null, [
221
+ f("div", ie, [
220
222
  n(q, null, {
221
223
  default: g(() => [
222
- n(f, {
223
- title: c(s)("servers.filters"),
224
+ n(_, {
225
+ title: o(s)("servers.filters"),
224
226
  name: "filters"
225
227
  }, {
226
228
  default: g(() => [
227
- _("div", de, [
228
- _("div", me, [
229
+ f("div", ce, [
230
+ f("div", ue, [
229
231
  n(a, {
230
232
  value: p.value,
231
233
  "onUpdate:value": [
232
234
  t[0] || (t[0] = (S) => p.value = S),
233
- N
235
+ A
234
236
  ],
235
- options: z.value,
236
- "render-label": T,
237
+ options: T.value,
238
+ "render-label": E,
237
239
  multiple: "",
238
- placeholder: c(s)("servers.select_game_filter_placeholder")
240
+ placeholder: o(s)("servers.select_game_filter_placeholder")
239
241
  }, null, 8, ["value", "options", "placeholder"])
240
242
  ]),
241
- _("div", pe, [
243
+ f("div", de, [
242
244
  n(a, {
243
245
  value: v.value,
244
246
  "onUpdate:value": [
245
247
  t[1] || (t[1] = (S) => v.value = S),
246
- N
248
+ A
247
249
  ],
248
250
  options: O.value,
249
251
  multiple: "",
250
- placeholder: c(s)("servers.select_ip_filter_placeholder")
252
+ placeholder: o(s)("servers.select_ip_filter_placeholder")
251
253
  }, null, 8, ["value", "options", "placeholder"])
252
254
  ]),
253
- _("div", ve, [
255
+ f("div", me, [
254
256
  n(l, {
255
257
  onClick: R,
256
258
  type: "error",
@@ -258,8 +260,8 @@ const ce = oe("serverFilters", {
258
260
  ghost: ""
259
261
  }, {
260
262
  default: g(() => [
261
- n(c(A), { name: "eraser" }),
262
- _("span", _e, " " + Q(c(s)("main.clear")), 1)
263
+ n(o(F), { name: "eraser" }),
264
+ f("span", pe, " " + J(o(s)("main.clear")), 1)
263
265
  ]),
264
266
  _: 1
265
267
  }, 8, ["disabled"])
@@ -272,22 +274,20 @@ const ce = oe("serverFilters", {
272
274
  _: 1
273
275
  })
274
276
  ]),
275
- n(J, {
277
+ n(o(re), {
276
278
  ref_key: "tableRef",
277
- ref: C,
278
- bordered: !1,
279
- "single-line": !0,
279
+ ref: $,
280
280
  columns: P.value,
281
- data: E.value,
282
- loading: x.value,
281
+ data: C.value,
282
+ loading: y.value,
283
283
  pagination: G
284
284
  }, {
285
285
  loading: g(() => [
286
- n(c(Z))
286
+ n(o(X))
287
287
  ]),
288
288
  empty: g(() => [
289
- n(H, {
290
- description: c(s)("servers.empty_list")
289
+ n(o(le), {
290
+ description: o(s)("servers.empty_list")
291
291
  }, null, 8, ["description"])
292
292
  ]),
293
293
  _: 1
@@ -297,14 +297,14 @@ const ce = oe("serverFilters", {
297
297
  }
298
298
  }, ke = {
299
299
  __name: "ServersView",
300
- setup(i) {
301
- const o = d(() => [
300
+ setup(c) {
301
+ const i = d(() => [
302
302
  { route: "/", text: "GameAP", icon: "gicon gicon-gameap" },
303
303
  { route: { name: "servers" }, text: s("servers.game_servers") }
304
304
  ]);
305
- return (u, h) => (k(), I(L, null, [
306
- n(c(ee), { items: o.value }, null, 8, ["items"]),
307
- n(he)
305
+ return (u, h) => (k(), N(L, null, [
306
+ n(o(Z), { items: i.value }, null, 8, ["items"]),
307
+ n(ge)
308
308
  ], 64));
309
309
  }
310
310
  };
@@ -1,5 +1,6 @@
1
1
  import { resolveComponent as _, createElementBlock as d, openBlock as m, createElementVNode as e, Fragment as f, renderList as g, withDirectives as u, toDisplayString as s, vModelText as p, withModifiers as b, createVNode as h, createTextVNode as v } from "vue";
2
- import { c as w, a as x } from "./index-9fvX7FD-.js";
2
+ import { c as w, a as x } from "./index-CiR3a1Cv.js";
3
+ import "naive-ui";
3
4
  const k = {
4
5
  name: "SettingsParameters",
5
6
  components: { GIcon: x },
@@ -83,7 +84,7 @@ function D(t, l, a, M, P, i) {
83
84
  ])
84
85
  ]);
85
86
  }
86
- const F = /* @__PURE__ */ w(k, [["render", D]]);
87
+ const L = /* @__PURE__ */ w(k, [["render", D]]);
87
88
  export {
88
- F as default
89
+ L as default
89
90
  };
@@ -1,6 +1,6 @@
1
1
  import { mergeModels as C, useModel as q, ref as T, onMounted as U, watch as s, createElementBlock as D, openBlock as M, createVNode as v, unref as o, withCtx as f, createCommentVNode as j, createElementVNode as G, toDisplayString as Q } from "vue";
2
2
  import { storeToRefs as h } from "pinia";
3
- import { i as A, h as L, u as W, t as P } from "./index-9fvX7FD-.js";
3
+ import { i as A, h as L, u as W, t as P } from "./index-CiR3a1Cv.js";
4
4
  import { NFormItem as k, NInputNumber as g } from "naive-ui";
5
5
  const z = {
6
6
  key: 0,