@gameap/frontend 4.1.0-dev2 → 4.1.0-dev4

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 (45) hide show
  1. package/dist/{AdminClientCertificatesView-DQTMJ6LY.js → AdminClientCertificatesView-BQyXmri1.js} +33 -34
  2. package/dist/{AdminDaemonTaskListView-Bx3e0Miy.js → AdminDaemonTaskListView-DTQbTpkt.js} +49 -50
  3. package/dist/{AdminDaemonTaskOutputView-BJtLdoAq.js → AdminDaemonTaskOutputView-DRrZwAwW.js} +32 -33
  4. package/dist/{AdminGamesEdit-hDe3Pr-7.js → AdminGamesEdit-CDTCJu52.js} +43 -44
  5. package/dist/{AdminGamesList-CM1xADCW.js → AdminGamesList-CU_RB7gu.js} +55 -56
  6. package/dist/{AdminModEdit-DDKd6Vga.js → AdminModEdit-P0crpkM3.js} +106 -107
  7. package/dist/{AdminNodeShowView-DMoEY2Cu.js → AdminNodeShowView-Col-7fyA.js} +34 -35
  8. package/dist/{AdminNodesCreateView-BXZDQIJ1.js → AdminNodesCreateView-CZsMnSCJ.js} +26 -27
  9. package/dist/{AdminNodesEditView-xO7-szjJ.js → AdminNodesEditView-DdNciuMa.js} +23 -24
  10. package/dist/{AdminNodesView-ugTPiC4h.js → AdminNodesView-DvuZ9haB.js} +16 -17
  11. package/dist/{AdminServersCreate-DOygFz_E.js → AdminServersCreate-zGHHAEkO.js} +56 -57
  12. package/dist/{AdminServersEdit-cZX6UGB1.js → AdminServersEdit-BR6sRGlM.js} +31 -32
  13. package/dist/{AdminServersList-CC50WRsv.js → AdminServersList-DhUQ1zrt.js} +21 -22
  14. package/dist/{AdminUsersEditView-CXpMKFfI.js → AdminUsersEditView-CqRLzCkV.js} +44 -45
  15. package/dist/{AdminUsersView-DGuGEHVR.js → AdminUsersView-TCHghzxY.js} +37 -38
  16. package/dist/{CreateModForm-CqhcrNFp.js → CreateModForm-Byq8UvuW.js} +23 -23
  17. package/dist/{CreateNodeModal-BvbJTKhD.js → CreateNodeModal-BNV35RnR.js} +1 -1
  18. package/dist/{DsIpSelector-DN9IyT4L.js → DsIpSelector-EnBHsJLE.js} +1 -1
  19. package/dist/{FileManager-8TWHezyM.js → FileManager-X3FkHNzF.js} +1 -1
  20. package/dist/{GameModSelector-DRIaCbGY.js → GameModSelector-bZsSGC6T.js} +4 -4
  21. package/dist/{InputManyList-By5xECIK.js → InputManyList-BFGIEnls.js} +1 -1
  22. package/dist/{InputTextList-Bm2Ofq5J.js → InputTextList-D280D5fs.js} +1 -1
  23. package/dist/{PluginPendingView-DHd_yijv.js → PluginPendingView-Cp6KgA8z.js} +1 -1
  24. package/dist/{RconConsole-DH9XeOu3.js → RconConsole-BxjHKC6E.js} +24 -25
  25. package/dist/{RconPlayers-GrvCMJX3.js → RconPlayers-CXL0bHlU.js} +32 -32
  26. package/dist/{ServerConsole-BHHnpxJy.js → ServerConsole-Cr-BZJIC.js} +1 -1
  27. package/dist/{ServerIdView-BfqrYuar.js → ServerIdView-wsnPfVUi.js} +141 -142
  28. package/dist/{ServerSelector-QMK1qiXa.js → ServerSelector-D7O1thVu.js} +1 -1
  29. package/dist/{ServerSettings-Cz6C8Dlh.js → ServerSettings-Lk4lq5hI.js} +1 -1
  30. package/dist/{ServerStatus-DBJW9C6H.js → ServerStatus-CCFiPWXV.js} +1 -1
  31. package/dist/{ServerTasks-Bs3iGYY3.js → ServerTasks-gNFBkyv1.js} +1 -1
  32. package/dist/{SettingsParameters-DCqhqxHk.js → SettingsParameters-BVpVg868.js} +1 -1
  33. package/dist/{SmartPortSelector-DektJC6p.js → SmartPortSelector-bubAEnvR.js} +8 -8
  34. package/dist/{UpdateNodeForm-CwirLUIK.js → UpdateNodeForm-BQDjp3CR.js} +1 -1
  35. package/dist/{UserServerPrivileges-utyKdh7O.js → UserServerPrivileges-CizE2EYl.js} +1 -1
  36. package/dist/{_createCompounder-DSupx5mD.js → _createCompounder-NPjOAZm-.js} +2 -2
  37. package/dist/{camelCase-WcUYdRB3.js → camelCase-BXg45SFI.js} +2 -2
  38. package/dist/{capitalize-DRKkBaYR.js → capitalize-BSQeiLff.js} +10 -10
  39. package/dist/{clientCertificates-BsJdUHYw.js → clientCertificates-Dm0Bh62v.js} +1 -1
  40. package/dist/{gameList-DpGDCxFE.js → gameList-CJAymSBL.js} +1 -1
  41. package/dist/{index-60qEjGuU.js → index-Fmomw6wi.js} +2333 -1954
  42. package/dist/index.js +1 -1
  43. package/dist/{loader-CrZTMKcy.js → loader-BGOXrNPF.js} +1 -1
  44. package/dist/{snakeCase-CTCA7tap.js → snakeCase-o1mQEFQr.js} +1 -1
  45. package/package.json +2 -1
@@ -1,95 +1,94 @@
1
- import { ref as M, computed as k, createElementBlock as g, createCommentVNode as t, openBlock as r, createElementVNode as s, toDisplayString as p, defineAsyncComponent as P, onMounted as re, h as X, resolveComponent as O, Fragment as H, createVNode as _, createBlock as l, unref as e, normalizeClass as U, createSlots as te, withCtx as o, withDirectives as ae, vShow as le, createTextVNode as w, renderList as ne, resolveDynamicComponent as oe } from "vue";
1
+ import { ref as M, computed as k, createElementBlock as _, createCommentVNode as t, openBlock as r, createElementVNode as s, toDisplayString as p, defineAsyncComponent as $, onMounted as re, h as X, resolveComponent as O, Fragment as H, createVNode as g, createBlock as n, unref as e, normalizeClass as U, createSlots as te, withCtx as o, withDirectives as ae, vShow as ne, createTextVNode as w, renderList as le, resolveDynamicComponent as oe } from "vue";
2
2
  import { useRoute as ie } from "vue-router";
3
- import { defineStore as de, storeToRefs as Q } from "pinia";
4
- import { u as b, a as $, j as ce, f as ue, t as i, g as ve, k as F, l as me } from "./index-60qEjGuU.js";
5
- import { GBreadcrumbs as fe, Loading as C } from "@gameap/ui";
6
- const pe = de("serverRcon", () => {
3
+ import { defineStore as ce, storeToRefs as Q } from "pinia";
4
+ import { u as b, a as P, j as de, f as ue, t as i, g as ve, k as me, l as C, m as L, o as fe } from "./index-Fmomw6wi.js";
5
+ const pe = ce("serverRcon", () => {
7
6
  const R = M([]), h = M({
8
7
  rcon: !1,
9
8
  playersManage: !1
10
- }), y = M(""), d = M(0), V = M([]), j = k(() => d.value > 0), D = k(() => b().serverId), z = k(() => !!b().abilities["game-server-rcon-console"]), G = k(() => !!b().abilities["game-server-rcon-players"]);
11
- function n(a) {
9
+ }), y = M(""), c = M(0), V = M([]), j = k(() => c.value > 0), D = k(() => b().serverId), z = k(() => !!b().abilities["game-server-rcon-console"]), q = k(() => !!b().abilities["game-server-rcon-players"]);
10
+ function l(a) {
12
11
  b().setServerId(a);
13
12
  }
14
- async function A() {
13
+ async function E() {
15
14
  const a = b();
16
- d.value++;
15
+ c.value++;
17
16
  try {
18
- const v = await $.get("/api/servers/" + a.serverId + "/rcon/features");
17
+ const v = await P.get("/api/servers/" + a.serverId + "/rcon/features");
19
18
  h.value = v.data;
20
19
  } finally {
21
- d.value--;
20
+ c.value--;
22
21
  }
23
22
  }
24
- async function q() {
23
+ async function G() {
25
24
  const a = b();
26
- d.value++;
25
+ c.value++;
27
26
  try {
28
- const v = await $.get("/api/servers/" + a.serverId + "/rcon/fast_rcon");
27
+ const v = await P.get("/api/servers/" + a.serverId + "/rcon/fast_rcon");
29
28
  R.value = v.data;
30
29
  } finally {
31
- d.value--;
30
+ c.value--;
32
31
  }
33
32
  }
34
33
  async function B(a) {
35
34
  const v = b();
36
- d.value++;
35
+ c.value++;
37
36
  try {
38
- const x = await $.post("/api/servers/" + v.serverId + "/rcon", {
37
+ const x = await P.post("/api/servers/" + v.serverId + "/rcon", {
39
38
  command: a
40
39
  });
41
40
  y.value = x.data.output;
42
41
  } finally {
43
- d.value--;
42
+ c.value--;
44
43
  }
45
44
  }
46
45
  async function m() {
47
46
  const a = b();
48
47
  if (!(a.serverId <= 0)) {
49
- d.value++;
48
+ c.value++;
50
49
  try {
51
- const v = await $.get("/api/servers/" + a.serverId + "/rcon/players");
50
+ const v = await P.get("/api/servers/" + a.serverId + "/rcon/players");
52
51
  V.value = v.data;
53
52
  } finally {
54
- d.value--;
53
+ c.value--;
55
54
  }
56
55
  }
57
56
  }
58
- async function c(a, v) {
57
+ async function d(a, v) {
59
58
  const x = b();
60
- d.value++;
59
+ c.value++;
61
60
  try {
62
- await $.post("/api/servers/" + x.serverId + "/rcon/players/kick", {
61
+ await P.post("/api/servers/" + x.serverId + "/rcon/players/kick", {
63
62
  player: a,
64
63
  reason: v
65
64
  }), await m();
66
65
  } finally {
67
- d.value--;
66
+ c.value--;
68
67
  }
69
68
  }
70
69
  async function T(a, v, x) {
71
70
  const N = b();
72
- d.value++;
71
+ c.value++;
73
72
  try {
74
- await $.post("/api/servers/" + N.serverId + "/rcon/players/ban", {
73
+ await P.post("/api/servers/" + N.serverId + "/rcon/players/ban", {
75
74
  player: a,
76
75
  reason: v,
77
76
  time: x
78
77
  }), await m();
79
78
  } finally {
80
- d.value--;
79
+ c.value--;
81
80
  }
82
81
  }
83
82
  async function u(a, v) {
84
83
  const x = b();
85
- d.value++;
84
+ c.value++;
86
85
  try {
87
- await $.post("/api/servers/" + x.serverId + "/rcon/players/message", {
86
+ await P.post("/api/servers/" + x.serverId + "/rcon/players/message", {
88
87
  player: a,
89
88
  message: v
90
89
  });
91
90
  } finally {
92
- d.value--;
91
+ c.value--;
93
92
  }
94
93
  }
95
94
  return {
@@ -97,20 +96,20 @@ const pe = de("serverRcon", () => {
97
96
  fastRcon: R,
98
97
  rconSupportedFeatures: h,
99
98
  output: y,
100
- apiProcesses: d,
99
+ apiProcesses: c,
101
100
  players: V,
102
101
  // Getters
103
102
  loading: j,
104
103
  serverId: D,
105
104
  canUseRcon: z,
106
- canManageRconPlayers: G,
105
+ canManageRconPlayers: q,
107
106
  // Actions
108
- setServerId: n,
109
- fetchRconSupportedFeatures: A,
110
- fetchFastRcon: q,
107
+ setServerId: l,
108
+ fetchRconSupportedFeatures: E,
109
+ fetchFastRcon: G,
111
110
  sendCommand: B,
112
111
  fetchPlayers: m,
113
- kickPlayer: c,
112
+ kickPlayer: d,
114
113
  banPlayer: T,
115
114
  sendPlayerMessage: u
116
115
  };
@@ -119,7 +118,7 @@ const pe = de("serverRcon", () => {
119
118
  id: "alert-additional-content-4",
120
119
  class: "p-4 mb-4 text-yellow-800 border border-yellow-300 rounded-lg bg-yellow-50 dark:bg-stone-800 dark:text-yellow-300 dark:border-yellow-800",
121
120
  role: "alert"
122
- }, ge = { class: "flex items-center" }, _e = { class: "text-lg font-medium" }, be = {
121
+ }, _e = { class: "flex items-center" }, ge = { class: "text-lg font-medium" }, be = {
123
122
  key: 1,
124
123
  id: "alert-additional-content-4",
125
124
  class: "p-4 mb-4 text-yellow-800 border border-yellow-300 rounded-lg bg-yellow-50 dark:bg-stone-800 dark:text-yellow-300 dark:border-yellow-800",
@@ -134,38 +133,38 @@ const pe = de("serverRcon", () => {
134
133
  id: "alert-additional-content-4",
135
134
  class: "p-4 mb-4 text-yellow-800 border border-yellow-300 rounded-lg bg-yellow-50 dark:bg-stone-800 dark:text-yellow-300 dark:border-yellow-800",
136
135
  role: "alert"
137
- }, Ie = { class: "flex items-center" }, Pe = { class: "text-lg font-medium" }, $e = 0, Ce = 2, Me = {
136
+ }, Ie = { class: "flex items-center" }, $e = { class: "text-lg font-medium" }, Pe = 0, Ce = 2, Me = {
138
137
  __name: "InactiveServer",
139
138
  props: {
140
139
  server: null
141
140
  },
142
141
  setup(R) {
143
- return (h, y) => R.server.installed === $e ? (r(), g("div", ye, [
144
- s("div", ge, [
142
+ return (h, y) => R.server.installed === Pe ? (r(), _("div", ye, [
143
+ s("div", _e, [
145
144
  y[0] || (y[0] = s("i", { class: "fa-solid fa-triangle-exclamation mr-1" }, null, -1)),
146
- s("h3", _e, p(h.trans("servers.not_installed_msg")), 1)
145
+ s("h3", ge, p(h.trans("servers.not_installed_msg")), 1)
147
146
  ])
148
- ])) : R.server.installed === Ce ? (r(), g("div", be, [
147
+ ])) : R.server.installed === Ce ? (r(), _("div", be, [
149
148
  s("div", ke, [
150
149
  y[1] || (y[1] = s("i", { class: "fa-solid fa-triangle-exclamation mr-1" }, null, -1)),
151
150
  s("h3", Se, p(h.trans("servers.installation_process_msg")), 1)
152
151
  ])
153
- ])) : R.server.blocked ? (r(), g("div", he, [
152
+ ])) : R.server.blocked ? (r(), _("div", he, [
154
153
  s("div", xe, [
155
154
  y[2] || (y[2] = s("i", { class: "fa-solid fa-triangle-exclamation mr-1" }, null, -1)),
156
155
  s("h3", we, p(h.trans("servers.blocked_msg")), 1)
157
156
  ])
158
- ])) : R.server.enabled ? t("", !0) : (r(), g("div", Re, [
157
+ ])) : R.server.enabled ? t("", !0) : (r(), _("div", Re, [
159
158
  s("div", Ie, [
160
159
  y[3] || (y[3] = s("i", { class: "fa-solid fa-triangle-exclamation mr-1" }, null, -1)),
161
- s("h3", Pe, p(h.trans("servers.disabled_msg")), 1)
160
+ s("h3", $e, p(h.trans("servers.disabled_msg")), 1)
162
161
  ])
163
162
  ]));
164
163
  }
165
- }, Te = { class: "md:flex md:flex-wrap mt-2" }, Ne = { class: "md:w-full" }, Le = { class: "md:flex mt-2" }, Ae = { class: "md:w-1/2 md:pr-8" }, Ee = {
164
+ }, Te = { class: "md:flex md:flex-wrap mt-2" }, Ne = { class: "md:w-full" }, Ae = { class: "md:flex mt-2" }, Ee = { class: "md:w-1/2 md:pr-8" }, Fe = {
166
165
  key: 1,
167
166
  id: "serverControl"
168
- }, Fe = { class: "md:w-1/2" }, Ve = {
167
+ }, Le = { class: "md:w-1/2" }, Ve = {
169
168
  key: 1,
170
169
  class: "flex flex-col pl-0 mb-0"
171
170
  }, Be = {
@@ -177,82 +176,82 @@ const pe = de("serverRcon", () => {
177
176
  }, je = { class: "badge-red" }, De = { class: "relative block py-3 px-6 -mb-px" }, ze = {
178
177
  key: 0,
179
178
  class: "md:flex flex-wrap mt-2"
180
- }, Ge = { class: "md:w-full" }, qe = { class: "flex flex-wrap mt-2" }, Xe = { class: "md:w-full" }, He = {
179
+ }, qe = { class: "md:w-full" }, Ge = { class: "flex flex-wrap mt-2" }, Xe = { class: "md:w-full" }, He = {
181
180
  key: 0,
182
181
  class: "pr-8"
183
182
  }, Qe = { class: "flex flex-wrap mt-2 h-[calc(100vh-14rem)]" }, We = { class: "md:w-full h-full" }, Je = { class: "flex flex-col min-w-0 rounded break-words border bg-white dark:bg-stone-800 border-1 border-stone-300 dark:border-stone-700 h-full" }, Ke = { class: "md:flex md:flex-wrap mt-2" }, Ye = { class: "md:w-full" }, Ze = { class: "order-last ml-auto text-red-500 hover:text-red-600" }, es = {
184
183
  __name: "ServerIdView",
185
184
  setup(R) {
186
- const h = P(
185
+ const h = $(
187
186
  () => import(
188
- "./ServerStatus-DBJW9C6H.js"
187
+ "./ServerStatus-CCFiPWXV.js"
189
188
  /* webpackChunkName: "components/server" */
190
189
  )
191
- ), y = P(
190
+ ), y = $(
192
191
  () => import(
193
- "./ServerTasks-Bs3iGYY3.js"
192
+ "./ServerTasks-gNFBkyv1.js"
194
193
  /* webpackChunkName: "components/server" */
195
194
  )
196
- ), d = P(
195
+ ), c = $(
197
196
  () => import(
198
- "./ServerConsole-BHHnpxJy.js"
197
+ "./ServerConsole-Cr-BZJIC.js"
199
198
  /* webpackChunkName: "components/server" */
200
199
  )
201
- ), V = P(
200
+ ), V = $(
202
201
  () => import(
203
- "./ServerSettings-Cz6C8Dlh.js"
202
+ "./ServerSettings-Lk4lq5hI.js"
204
203
  /* webpackChunkName: "components/server" */
205
204
  )
206
- ), j = P(
205
+ ), j = $(
207
206
  () => import(
208
- "./RconPlayers-GrvCMJX3.js"
207
+ "./RconPlayers-CXL0bHlU.js"
209
208
  /* webpackChunkName: "components/rcon" */
210
209
  )
211
- ), D = P(
210
+ ), D = $(
212
211
  () => import(
213
- "./RconConsole-DH9XeOu3.js"
212
+ "./RconConsole-BxjHKC6E.js"
214
213
  /* webpackChunkName: "components/rcon" */
215
214
  )
216
- ), z = P(
217
- () => import("./FileManager-8TWHezyM.js")
218
- ), G = ie(), n = b(), A = pe(), q = ce(), B = ue(), {
215
+ ), z = $(
216
+ () => import("./FileManager-X3FkHNzF.js")
217
+ ), q = ie(), l = b(), E = pe(), G = de(), B = ue(), {
219
218
  serverId: m,
220
- server: c
221
- } = Q(n), {
219
+ server: d
220
+ } = Q(l), {
222
221
  rconSupportedFeatures: T
223
- } = Q(A), u = k(() => n.loading);
222
+ } = Q(E), u = k(() => l.loading);
224
223
  re(() => {
225
- n.setServerId(Number(G.params.id)), n.fetchServer().then(() => {
226
- c.value && (document.title = c.value.name), a.value = c.value?.enabled && !c.value?.blocked && c.value?.installed === 1, a.value && A.fetchRconSupportedFeatures();
227
- }), n.fetchAbilities();
224
+ l.setServerId(Number(q.params.id)), l.fetchServer().then(() => {
225
+ d.value && (document.title = d.value.name), a.value = d.value?.enabled && !d.value?.blocked && d.value?.installed === 1, a.value && E.fetchRconSupportedFeatures();
226
+ }), l.fetchAbilities();
228
227
  });
229
228
  const a = M(!0), v = M(null), x = k(() => ({
230
- start: n.canStart,
231
- stop: n.canStop,
232
- restart: n.canRestart,
233
- update: n.canUpdate
234
- })), N = k(() => !!c.value?.online), W = k(() => v.value?.status === "online"), J = k(() => (T.value.rcon || T.value.playersManage) && A.canUseRcon && N.value), K = k(() => {
235
- const E = [
229
+ start: l.canStart,
230
+ stop: l.canStop,
231
+ restart: l.canRestart,
232
+ update: l.canUpdate
233
+ })), N = k(() => !!d.value?.online), W = k(() => v.value?.status === "online"), J = k(() => (T.value.rcon || T.value.playersManage) && E.canUseRcon && N.value), K = k(() => {
234
+ const F = [
236
235
  { route: "/", text: "GameAP", icon: "gicon gicon-gameap" },
237
236
  { route: { name: "servers" }, text: i("servers.game_servers") }
238
237
  ];
239
- return c.value?.name && E.push({
238
+ return d.value?.name && F.push({
240
239
  render: () => [
241
- X(ve, { game: c.value.game?.code ?? "", class: "mr-2 align-middle" }),
242
- X("span", { game: c.value.game?.code ?? "", class: "align-middle" }, c.value.name)
240
+ X(ve, { game: d.value.game?.code ?? "", class: "mr-2 align-middle" }),
241
+ X("span", { game: d.value.game?.code ?? "", class: "align-middle" }, d.value.name)
243
242
  ]
244
- }), E;
245
- }), Y = k(() => q.isAdmin), Z = k(() => B.getSlotComponents("server-tabs").filter((f) => f.checkPermission && f.checkPermission.type === "hasServerPermissions" ? f.checkPermission.permissions.every(
246
- (I) => n.abilities[I] === !0
243
+ }), F;
244
+ }), Y = k(() => G.isAdmin), Z = k(() => B.getSlotComponents("server-tabs").filter((f) => f.checkPermission && f.checkPermission.type === "hasServerPermissions" ? f.checkPermission.permissions.every(
245
+ (I) => l.abilities[I] === !0
247
246
  ) : !0));
248
- return (E, f) => {
249
- const I = O("n-card"), L = O("n-tab-pane"), ee = O("router-link"), se = O("n-tabs");
250
- return r(), g(H, null, [
251
- _(e(fe), { items: K.value }, null, 8, ["items"]),
252
- !u.value && !a.value ? (r(), l(Me, {
247
+ return (F, f) => {
248
+ const I = O("n-card"), A = O("n-tab-pane"), ee = O("router-link"), se = O("n-tabs");
249
+ return r(), _(H, null, [
250
+ g(e(me), { items: K.value }, null, 8, ["items"]),
251
+ !u.value && !a.value ? (r(), n(Me, {
253
252
  key: 0,
254
- server: e(c)
255
- }, null, 8, ["server"])) : (r(), l(se, {
253
+ server: e(d)
254
+ }, null, 8, ["server"])) : (r(), n(se, {
256
255
  key: 1,
257
256
  type: "line",
258
257
  class: U(["flex justify-between", a.value ? "" : "hidden"]),
@@ -260,7 +259,7 @@ const pe = de("serverRcon", () => {
260
259
  "display-directive": "show:lazy"
261
260
  }, te({
262
261
  default: o(() => [
263
- _(L, { name: "control" }, {
262
+ g(A, { name: "control" }, {
264
263
  tab: o(() => [
265
264
  f[0] || (f[0] = s("i", { class: "fas fa-play mr-1" }, null, -1)),
266
265
  w(" " + p(e(i)("servers.control")), 1)
@@ -268,10 +267,10 @@ const pe = de("serverRcon", () => {
268
267
  default: o(() => [
269
268
  ae(s("div", Te, [
270
269
  s("div", Ne, [
271
- _(I, { class: "mb-3" }, {
270
+ g(I, { class: "mb-3" }, {
272
271
  default: o(() => [
273
- u.value ? (r(), l(e(C), { key: 0 })) : t("", !0),
274
- u.value ? t("", !0) : (r(), l(e(h), {
272
+ u.value ? (r(), n(e(C), { key: 0 })) : t("", !0),
273
+ u.value ? t("", !0) : (r(), n(e(h), {
275
274
  key: 1,
276
275
  ref_key: "serverStatusRef",
277
276
  ref: v,
@@ -282,11 +281,11 @@ const pe = de("serverRcon", () => {
282
281
  })
283
282
  ])
284
283
  ], 512), [
285
- [le, W.value]
284
+ [ne, W.value]
286
285
  ]),
287
- s("div", Le, [
288
- s("div", Ae, [
289
- _(I, {
286
+ s("div", Ae, [
287
+ s("div", Ee, [
288
+ g(I, {
290
289
  title: e(i)("servers.commands"),
291
290
  class: "mb-3",
292
291
  "header-class": "g-card-header",
@@ -296,9 +295,9 @@ const pe = de("serverRcon", () => {
296
295
  }
297
296
  }, {
298
297
  default: o(() => [
299
- u.value ? (r(), l(e(C), { key: 0 })) : t("", !0),
300
- u.value ? t("", !0) : (r(), g("div", Ee, [
301
- e(n).canStart && !N.value ? (r(), l(F, {
298
+ u.value ? (r(), n(e(C), { key: 0 })) : t("", !0),
299
+ u.value ? t("", !0) : (r(), _("div", Fe, [
300
+ e(l).canStart && !N.value ? (r(), n(L, {
302
301
  key: 0,
303
302
  command: "start",
304
303
  "server-id": e(m),
@@ -307,7 +306,7 @@ const pe = de("serverRcon", () => {
307
306
  icon: "fas fa-play",
308
307
  text: e(i)("servers.start")
309
308
  }, null, 8, ["server-id", "text"])) : t("", !0),
310
- e(n).canStop && N.value ? (r(), l(F, {
309
+ e(l).canStop && N.value ? (r(), n(L, {
311
310
  key: 1,
312
311
  command: "stop",
313
312
  "server-id": e(m),
@@ -316,7 +315,7 @@ const pe = de("serverRcon", () => {
316
315
  icon: "fas fa-stop",
317
316
  text: e(i)("servers.stop")
318
317
  }, null, 8, ["server-id", "text"])) : t("", !0),
319
- e(n).canRestart ? (r(), l(F, {
318
+ e(l).canRestart ? (r(), n(L, {
320
319
  key: 2,
321
320
  command: "restart",
322
321
  "server-id": e(m),
@@ -325,7 +324,7 @@ const pe = de("serverRcon", () => {
325
324
  icon: "fas fa-redo",
326
325
  text: e(i)("servers.restart")
327
326
  }, null, 8, ["server-id", "text"])) : t("", !0),
328
- e(n).canUpdate ? (r(), l(F, {
327
+ e(l).canUpdate ? (r(), n(L, {
329
328
  key: 3,
330
329
  command: "update",
331
330
  "server-id": e(m),
@@ -334,7 +333,7 @@ const pe = de("serverRcon", () => {
334
333
  icon: "fas fa-sync",
335
334
  text: e(i)("servers.update")
336
335
  }, null, 8, ["server-id", "text"])) : t("", !0),
337
- e(n).canUpdate ? (r(), l(F, {
336
+ e(l).canUpdate ? (r(), n(L, {
338
337
  key: 4,
339
338
  command: "reinstall",
340
339
  "server-id": e(m),
@@ -348,8 +347,8 @@ const pe = de("serverRcon", () => {
348
347
  _: 1
349
348
  }, 8, ["title"])
350
349
  ]),
351
- s("div", Fe, [
352
- _(I, {
350
+ s("div", Le, [
351
+ g(I, {
353
352
  title: e(i)("servers.process_status"),
354
353
  class: "mb-3",
355
354
  "header-class": "g-card-header",
@@ -359,38 +358,38 @@ const pe = de("serverRcon", () => {
359
358
  }
360
359
  }, {
361
360
  default: o(() => [
362
- u.value ? (r(), l(e(C), { key: 0 })) : t("", !0),
363
- u.value ? t("", !0) : (r(), g("ul", Ve, [
364
- N.value ? (r(), g("li", Be, [
361
+ u.value ? (r(), n(e(C), { key: 0 })) : t("", !0),
362
+ u.value ? t("", !0) : (r(), _("ul", Ve, [
363
+ N.value ? (r(), _("li", Be, [
365
364
  w(p(e(i)("servers.status")) + ": ", 1),
366
365
  s("span", Oe, p(e(i)("servers.active")), 1)
367
- ])) : (r(), g("li", Ue, [
366
+ ])) : (r(), _("li", Ue, [
368
367
  w(p(e(i)("servers.status")) + ": ", 1),
369
368
  s("span", je, p(e(i)("servers.inactive")), 1)
370
369
  ])),
371
- s("li", De, p(e(i)("servers.last_check")) + ": " + p(new Date(e(c).last_process_check).toLocaleString()), 1)
370
+ s("li", De, p(e(i)("servers.last_check")) + ": " + p(new Date(e(d).last_process_check).toLocaleString()), 1)
372
371
  ]))
373
372
  ]),
374
373
  _: 1
375
374
  }, 8, ["title"])
376
375
  ])
377
376
  ]),
378
- e(n).canReadConsole ? (r(), g("div", ze, [
379
- s("div", Ge, [
380
- u.value ? (r(), l(e(C), { key: 0 })) : t("", !0),
381
- u.value ? t("", !0) : (r(), l(e(d), {
377
+ e(l).canReadConsole ? (r(), _("div", ze, [
378
+ s("div", qe, [
379
+ u.value ? (r(), n(e(C), { key: 0 })) : t("", !0),
380
+ u.value ? t("", !0) : (r(), n(e(c), {
382
381
  key: 1,
383
- "console-hostname": e(c)?.name,
382
+ "console-hostname": e(d)?.name,
384
383
  "server-id": e(m),
385
- "server-active": e(c)?.online,
386
- "send-command-available": e(n).canSendConsole
384
+ "server-active": e(d)?.online,
385
+ "send-command-available": e(l).canSendConsole
387
386
  }, null, 8, ["console-hostname", "server-id", "server-active", "send-command-available"]))
388
387
  ])
389
388
  ])) : t("", !0)
390
389
  ]),
391
390
  _: 1
392
391
  }),
393
- J.value ? (r(), l(L, {
392
+ J.value ? (r(), n(A, {
394
393
  key: 0,
395
394
  name: "rcon"
396
395
  }, {
@@ -399,13 +398,13 @@ const pe = de("serverRcon", () => {
399
398
  w(" RCON ", -1)
400
399
  ])]),
401
400
  default: o(() => [
402
- s("div", qe, [
401
+ s("div", Ge, [
403
402
  s("div", Xe, [
404
403
  s("div", {
405
404
  class: U("md:grid " + (e(T).playersManage ? "md:grid-cols-2" : "md:grid-cols-1"))
406
405
  }, [
407
- e(T).playersManage ? (r(), g("div", He, [
408
- _(I, {
406
+ e(T).playersManage ? (r(), _("div", He, [
407
+ g(I, {
409
408
  title: e(i)("rcon.players_manage"),
410
409
  class: "mb-3",
411
410
  "header-class": "g-card-header",
@@ -415,8 +414,8 @@ const pe = de("serverRcon", () => {
415
414
  }
416
415
  }, {
417
416
  default: o(() => [
418
- u.value ? (r(), l(e(C), { key: 0 })) : t("", !0),
419
- u.value ? t("", !0) : (r(), l(e(j), {
417
+ u.value ? (r(), n(e(C), { key: 0 })) : t("", !0),
418
+ u.value ? t("", !0) : (r(), n(e(j), {
420
419
  key: 1,
421
420
  "server-id": e(m)
422
421
  }, null, 8, ["server-id"]))
@@ -425,7 +424,7 @@ const pe = de("serverRcon", () => {
425
424
  }, 8, ["title"])
426
425
  ])) : t("", !0),
427
426
  s("div", null, [
428
- _(I, {
427
+ g(I, {
429
428
  title: e(i)("rcon.console"),
430
429
  class: "mb-3",
431
430
  "header-class": "g-card-header",
@@ -435,8 +434,8 @@ const pe = de("serverRcon", () => {
435
434
  }
436
435
  }, {
437
436
  default: o(() => [
438
- u.value ? (r(), l(e(C), { key: 0 })) : t("", !0),
439
- u.value ? t("", !0) : (r(), l(e(D), {
437
+ u.value ? (r(), n(e(C), { key: 0 })) : t("", !0),
438
+ u.value ? t("", !0) : (r(), n(e(D), {
440
439
  key: 1,
441
440
  "server-id": e(m)
442
441
  }, null, 8, ["server-id"]))
@@ -450,7 +449,7 @@ const pe = de("serverRcon", () => {
450
449
  ]),
451
450
  _: 1
452
451
  })) : t("", !0),
453
- e(n).canManageFiles ? (r(), l(L, {
452
+ e(l).canManageFiles ? (r(), n(A, {
454
453
  key: 1,
455
454
  name: "files"
456
455
  }, {
@@ -462,10 +461,10 @@ const pe = de("serverRcon", () => {
462
461
  s("div", Qe, [
463
462
  s("div", We, [
464
463
  s("div", Je, [
465
- _(e(z), {
464
+ g(e(z), {
466
465
  settings: {
467
- lang: e(me)(),
468
- baseUrl: "/api/file-manager/" + E.$route.params.id,
466
+ lang: e(fe)(),
467
+ baseUrl: "/api/file-manager/" + F.$route.params.id,
469
468
  headers: {
470
469
  "X-Requested-With": "XMLHttpRequest"
471
470
  }
@@ -477,7 +476,7 @@ const pe = de("serverRcon", () => {
477
476
  ]),
478
477
  _: 1
479
478
  })) : t("", !0),
480
- e(n).canManageTasks ? (r(), l(L, {
479
+ e(l).canManageTasks ? (r(), n(A, {
481
480
  key: 2,
482
481
  name: "schedules"
483
482
  }, {
@@ -486,34 +485,34 @@ const pe = de("serverRcon", () => {
486
485
  w(" " + p(e(i)("servers.task_scheduler")), 1)
487
486
  ]),
488
487
  default: o(() => [
489
- _(e(y), {
488
+ g(e(y), {
490
489
  "server-id": e(m),
491
490
  privileges: x.value
492
491
  }, null, 8, ["server-id", "privileges"])
493
492
  ]),
494
493
  _: 1
495
494
  })) : t("", !0),
496
- (r(!0), g(H, null, ne(Z.value, (S) => (r(), l(L, {
495
+ (r(!0), _(H, null, le(Z.value, (S) => (r(), n(A, {
497
496
  key: "plugin-" + S.pluginId + "-" + (S.name || "tab"),
498
497
  name: "plugin-" + S.pluginId + "-" + (S.name || "tab")
499
498
  }, {
500
499
  tab: o(() => [
501
- S.icon ? (r(), g("i", {
500
+ S.icon ? (r(), _("i", {
502
501
  key: 0,
503
502
  class: U([S.icon, "mr-1"])
504
503
  }, null, 2)) : t("", !0),
505
504
  w(" " + p(e(B).resolvePluginText(S.pluginId, S.label)), 1)
506
505
  ]),
507
506
  default: o(() => [
508
- (r(), l(oe(S.component), {
507
+ (r(), n(oe(S.component), {
509
508
  "server-id": e(m),
510
- server: e(c),
509
+ server: e(d),
511
510
  "plugin-id": S.pluginId
512
511
  }, null, 8, ["server-id", "server", "plugin-id"]))
513
512
  ]),
514
513
  _: 2
515
514
  }, 1032, ["name"]))), 128)),
516
- e(n).canManageSettings ? (r(), l(L, {
515
+ e(l).canManageSettings ? (r(), n(A, {
517
516
  key: 3,
518
517
  name: "settings"
519
518
  }, {
@@ -524,14 +523,14 @@ const pe = de("serverRcon", () => {
524
523
  default: o(() => [
525
524
  s("div", Ke, [
526
525
  s("div", Ye, [
527
- _(I, { class: "mb-3" }, {
526
+ g(I, { class: "mb-3" }, {
528
527
  default: o(() => [
529
528
  s("div", null, [
530
- u.value ? (r(), l(e(C), {
529
+ u.value ? (r(), n(e(C), {
531
530
  key: 0,
532
531
  class: "absolute inset-0 flex justify-center items-center z-10"
533
532
  })) : t("", !0),
534
- _(e(V), {
533
+ g(e(V), {
535
534
  class: U(u.value ? "opacity-20" : "")
536
535
  }, null, 8, ["class"])
537
536
  ])
@@ -550,7 +549,7 @@ const pe = de("serverRcon", () => {
550
549
  name: "suffix",
551
550
  fn: o(() => [
552
551
  s("div", Ze, [
553
- _(ee, {
552
+ g(ee, {
554
553
  to: { name: "admin.servers.edit", params: { id: e(m) } }
555
554
  }, {
556
555
  default: o(() => [
@@ -1,6 +1,6 @@
1
1
  import { computed as p, onMounted as f, watch as h, createElementBlock as s, openBlock as o, createElementVNode as l, withDirectives as I, toDisplayString as t, unref as v, Fragment as g, renderList as N, vModelSelect as b } from "vue";
2
2
  import { storeToRefs as u } from "pinia";
3
- import { h as F, u as L, i as y, t as B } from "./index-60qEjGuU.js";
3
+ import { h as F, u as L, i as y, t as B } from "./index-Fmomw6wi.js";
4
4
  const k = {
5
5
  id: "serverForm",
6
6
  class: "mb-3"
@@ -1,5 +1,5 @@
1
1
  import { ref as m, onMounted as h, createBlock as s, unref as a, openBlock as o, withCtx as i, createElementBlock as S, createVNode as k, Fragment as N, renderList as b, createCommentVNode as f, createElementVNode as p, toDisplayString as U } from "vue";
2
- import { u as x, e as v, _ as E, t as d, n as F } from "./index-60qEjGuU.js";
2
+ import { u as x, e as v, _ as E, t as d, n as F } from "./index-Fmomw6wi.js";
3
3
  import { storeToRefs as R } from "pinia";
4
4
  import { NEmpty as w, NForm as B, NFormItem as C, NSwitch as O, NInput as T } from "naive-ui";
5
5
  const V = { class: "hidden lg:inline" }, M = {
@@ -1,5 +1,5 @@
1
1
  import { ref as f, computed as l, onMounted as y, createElementBlock as s, openBlock as n, createElementVNode as a, createCommentVNode as i, toDisplayString as t } from "vue";
2
- import { a as k } from "./index-60qEjGuU.js";
2
+ import { a as k } from "./index-Fmomw6wi.js";
3
3
  const w = { id: "server-status-component" }, g = { class: "flex flex-wrap" }, b = { class: "md:w-1/6 pr-4 pl-4" }, q = {
4
4
  key: 0,
5
5
  class: "inline"