@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,576 +0,0 @@
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
- import { useRoute as ie } from "vue-router";
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", () => {
6
- const R = M([]), h = M({
7
- rcon: !1,
8
- playersManage: !1
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) {
11
- b().setServerId(a);
12
- }
13
- async function E() {
14
- const a = b();
15
- c.value++;
16
- try {
17
- const v = await P.get("/api/servers/" + a.serverId + "/rcon/features");
18
- h.value = v.data;
19
- } finally {
20
- c.value--;
21
- }
22
- }
23
- async function G() {
24
- const a = b();
25
- c.value++;
26
- try {
27
- const v = await P.get("/api/servers/" + a.serverId + "/rcon/fast_rcon");
28
- R.value = v.data;
29
- } finally {
30
- c.value--;
31
- }
32
- }
33
- async function B(a) {
34
- const v = b();
35
- c.value++;
36
- try {
37
- const x = await P.post("/api/servers/" + v.serverId + "/rcon", {
38
- command: a
39
- });
40
- y.value = x.data.output;
41
- } finally {
42
- c.value--;
43
- }
44
- }
45
- async function m() {
46
- const a = b();
47
- if (!(a.serverId <= 0)) {
48
- c.value++;
49
- try {
50
- const v = await P.get("/api/servers/" + a.serverId + "/rcon/players");
51
- V.value = v.data;
52
- } finally {
53
- c.value--;
54
- }
55
- }
56
- }
57
- async function d(a, v) {
58
- const x = b();
59
- c.value++;
60
- try {
61
- await P.post("/api/servers/" + x.serverId + "/rcon/players/kick", {
62
- player: a,
63
- reason: v
64
- }), await m();
65
- } finally {
66
- c.value--;
67
- }
68
- }
69
- async function T(a, v, x) {
70
- const N = b();
71
- c.value++;
72
- try {
73
- await P.post("/api/servers/" + N.serverId + "/rcon/players/ban", {
74
- player: a,
75
- reason: v,
76
- time: x
77
- }), await m();
78
- } finally {
79
- c.value--;
80
- }
81
- }
82
- async function u(a, v) {
83
- const x = b();
84
- c.value++;
85
- try {
86
- await P.post("/api/servers/" + x.serverId + "/rcon/players/message", {
87
- player: a,
88
- message: v
89
- });
90
- } finally {
91
- c.value--;
92
- }
93
- }
94
- return {
95
- // State
96
- fastRcon: R,
97
- rconSupportedFeatures: h,
98
- output: y,
99
- apiProcesses: c,
100
- players: V,
101
- // Getters
102
- loading: j,
103
- serverId: D,
104
- canUseRcon: z,
105
- canManageRconPlayers: q,
106
- // Actions
107
- setServerId: l,
108
- fetchRconSupportedFeatures: E,
109
- fetchFastRcon: G,
110
- sendCommand: B,
111
- fetchPlayers: m,
112
- kickPlayer: d,
113
- banPlayer: T,
114
- sendPlayerMessage: u
115
- };
116
- }), ye = {
117
- key: 0,
118
- id: "alert-additional-content-4",
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",
120
- role: "alert"
121
- }, _e = { class: "flex items-center" }, ge = { class: "text-lg font-medium" }, be = {
122
- key: 1,
123
- id: "alert-additional-content-4",
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",
125
- role: "alert"
126
- }, ke = { class: "flex items-center" }, Se = { class: "text-lg font-medium" }, he = {
127
- key: 2,
128
- id: "alert-additional-content-4",
129
- 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",
130
- role: "alert"
131
- }, xe = { class: "flex items-center" }, we = { class: "text-lg font-medium" }, Re = {
132
- key: 3,
133
- id: "alert-additional-content-4",
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",
135
- role: "alert"
136
- }, Ie = { class: "flex items-center" }, $e = { class: "text-lg font-medium" }, Pe = 0, Ce = 2, Me = {
137
- __name: "InactiveServer",
138
- props: {
139
- server: null
140
- },
141
- setup(R) {
142
- return (h, y) => R.server.installed === Pe ? (r(), _("div", ye, [
143
- s("div", _e, [
144
- y[0] || (y[0] = s("i", { class: "fa-solid fa-triangle-exclamation mr-1" }, null, -1)),
145
- s("h3", ge, p(h.trans("servers.not_installed_msg")), 1)
146
- ])
147
- ])) : R.server.installed === Ce ? (r(), _("div", be, [
148
- s("div", ke, [
149
- y[1] || (y[1] = s("i", { class: "fa-solid fa-triangle-exclamation mr-1" }, null, -1)),
150
- s("h3", Se, p(h.trans("servers.installation_process_msg")), 1)
151
- ])
152
- ])) : R.server.blocked ? (r(), _("div", he, [
153
- s("div", xe, [
154
- y[2] || (y[2] = s("i", { class: "fa-solid fa-triangle-exclamation mr-1" }, null, -1)),
155
- s("h3", we, p(h.trans("servers.blocked_msg")), 1)
156
- ])
157
- ])) : R.server.enabled ? t("", !0) : (r(), _("div", Re, [
158
- s("div", Ie, [
159
- y[3] || (y[3] = s("i", { class: "fa-solid fa-triangle-exclamation mr-1" }, null, -1)),
160
- s("h3", $e, p(h.trans("servers.disabled_msg")), 1)
161
- ])
162
- ]));
163
- }
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 = {
165
- key: 1,
166
- id: "serverControl"
167
- }, Le = { class: "md:w-1/2" }, Ve = {
168
- key: 1,
169
- class: "flex flex-col pl-0 mb-0"
170
- }, Be = {
171
- key: 0,
172
- class: "relative block py-3 px-6 -mb-px"
173
- }, Oe = { class: "badge-green" }, Ue = {
174
- key: 1,
175
- class: "relative block py-3 px-6 -mb-px"
176
- }, je = { class: "badge-red" }, De = { class: "relative block py-3 px-6 -mb-px" }, ze = {
177
- key: 0,
178
- class: "md:flex flex-wrap mt-2"
179
- }, qe = { class: "md:w-full" }, Ge = { class: "flex flex-wrap mt-2" }, Xe = { class: "md:w-full" }, He = {
180
- key: 0,
181
- class: "pr-8"
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 = {
183
- __name: "ServerIdView",
184
- setup(R) {
185
- const h = $(
186
- () => import(
187
- "./ServerStatus-CCFiPWXV.js"
188
- /* webpackChunkName: "components/server" */
189
- )
190
- ), y = $(
191
- () => import(
192
- "./ServerTasks-gNFBkyv1.js"
193
- /* webpackChunkName: "components/server" */
194
- )
195
- ), c = $(
196
- () => import(
197
- "./ServerConsole-Cr-BZJIC.js"
198
- /* webpackChunkName: "components/server" */
199
- )
200
- ), V = $(
201
- () => import(
202
- "./ServerSettings-Lk4lq5hI.js"
203
- /* webpackChunkName: "components/server" */
204
- )
205
- ), j = $(
206
- () => import(
207
- "./RconPlayers-CXL0bHlU.js"
208
- /* webpackChunkName: "components/rcon" */
209
- )
210
- ), D = $(
211
- () => import(
212
- "./RconConsole-BxjHKC6E.js"
213
- /* webpackChunkName: "components/rcon" */
214
- )
215
- ), z = $(
216
- () => import("./FileManager-X3FkHNzF.js")
217
- ), q = ie(), l = b(), E = pe(), G = de(), B = ue(), {
218
- serverId: m,
219
- server: d
220
- } = Q(l), {
221
- rconSupportedFeatures: T
222
- } = Q(E), u = k(() => l.loading);
223
- re(() => {
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();
227
- });
228
- const a = M(!0), v = M(null), x = k(() => ({
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 = [
235
- { route: "/", text: "GameAP", icon: "gicon gicon-gameap" },
236
- { route: { name: "servers" }, text: i("servers.game_servers") }
237
- ];
238
- return d.value?.name && F.push({
239
- render: () => [
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)
242
- ]
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
246
- ) : !0));
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, {
252
- key: 0,
253
- server: e(d)
254
- }, null, 8, ["server"])) : (r(), n(se, {
255
- key: 1,
256
- type: "line",
257
- class: U(["flex justify-between", a.value ? "" : "hidden"]),
258
- animated: "",
259
- "display-directive": "show:lazy"
260
- }, te({
261
- default: o(() => [
262
- g(A, { name: "control" }, {
263
- tab: o(() => [
264
- f[0] || (f[0] = s("i", { class: "fas fa-play mr-1" }, null, -1)),
265
- w(" " + p(e(i)("servers.control")), 1)
266
- ]),
267
- default: o(() => [
268
- ae(s("div", Te, [
269
- s("div", Ne, [
270
- g(I, { class: "mb-3" }, {
271
- default: o(() => [
272
- u.value ? (r(), n(e(C), { key: 0 })) : t("", !0),
273
- u.value ? t("", !0) : (r(), n(e(h), {
274
- key: 1,
275
- ref_key: "serverStatusRef",
276
- ref: v,
277
- "server-id": e(m)
278
- }, null, 8, ["server-id"]))
279
- ]),
280
- _: 1
281
- })
282
- ])
283
- ], 512), [
284
- [ne, W.value]
285
- ]),
286
- s("div", Ae, [
287
- s("div", Ee, [
288
- g(I, {
289
- title: e(i)("servers.commands"),
290
- class: "mb-3",
291
- "header-class": "g-card-header",
292
- segmented: {
293
- content: !0,
294
- footer: "soft"
295
- }
296
- }, {
297
- default: o(() => [
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, {
301
- key: 0,
302
- command: "start",
303
- "server-id": e(m),
304
- button: "m-1",
305
- "button-color": "green",
306
- icon: "fas fa-play",
307
- text: e(i)("servers.start")
308
- }, null, 8, ["server-id", "text"])) : t("", !0),
309
- e(l).canStop && N.value ? (r(), n(L, {
310
- key: 1,
311
- command: "stop",
312
- "server-id": e(m),
313
- button: "m-1",
314
- "button-color": "red",
315
- icon: "fas fa-stop",
316
- text: e(i)("servers.stop")
317
- }, null, 8, ["server-id", "text"])) : t("", !0),
318
- e(l).canRestart ? (r(), n(L, {
319
- key: 2,
320
- command: "restart",
321
- "server-id": e(m),
322
- button: "m-1",
323
- "button-color": "orange",
324
- icon: "fas fa-redo",
325
- text: e(i)("servers.restart")
326
- }, null, 8, ["server-id", "text"])) : t("", !0),
327
- e(l).canUpdate ? (r(), n(L, {
328
- key: 3,
329
- command: "update",
330
- "server-id": e(m),
331
- button: "m-1",
332
- "button-color": "black",
333
- icon: "fas fa-sync",
334
- text: e(i)("servers.update")
335
- }, null, 8, ["server-id", "text"])) : t("", !0),
336
- e(l).canUpdate ? (r(), n(L, {
337
- key: 4,
338
- command: "reinstall",
339
- "server-id": e(m),
340
- button: "m-1",
341
- "button-color": "black",
342
- icon: "fas fa-reply-all",
343
- text: e(i)("servers.reinstall")
344
- }, null, 8, ["server-id", "text"])) : t("", !0)
345
- ]))
346
- ]),
347
- _: 1
348
- }, 8, ["title"])
349
- ]),
350
- s("div", Le, [
351
- g(I, {
352
- title: e(i)("servers.process_status"),
353
- class: "mb-3",
354
- "header-class": "g-card-header",
355
- segmented: {
356
- content: !0,
357
- footer: "soft"
358
- }
359
- }, {
360
- default: o(() => [
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, [
364
- w(p(e(i)("servers.status")) + ": ", 1),
365
- s("span", Oe, p(e(i)("servers.active")), 1)
366
- ])) : (r(), _("li", Ue, [
367
- w(p(e(i)("servers.status")) + ": ", 1),
368
- s("span", je, p(e(i)("servers.inactive")), 1)
369
- ])),
370
- s("li", De, p(e(i)("servers.last_check")) + ": " + p(new Date(e(d).last_process_check).toLocaleString()), 1)
371
- ]))
372
- ]),
373
- _: 1
374
- }, 8, ["title"])
375
- ])
376
- ]),
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), {
381
- key: 1,
382
- "console-hostname": e(d)?.name,
383
- "server-id": e(m),
384
- "server-active": e(d)?.online,
385
- "send-command-available": e(l).canSendConsole
386
- }, null, 8, ["console-hostname", "server-id", "server-active", "send-command-available"]))
387
- ])
388
- ])) : t("", !0)
389
- ]),
390
- _: 1
391
- }),
392
- J.value ? (r(), n(A, {
393
- key: 0,
394
- name: "rcon"
395
- }, {
396
- tab: o(() => [...f[1] || (f[1] = [
397
- s("i", { class: "fas fa-user-astronaut mr-1" }, null, -1),
398
- w(" RCON ", -1)
399
- ])]),
400
- default: o(() => [
401
- s("div", Ge, [
402
- s("div", Xe, [
403
- s("div", {
404
- class: U("md:grid " + (e(T).playersManage ? "md:grid-cols-2" : "md:grid-cols-1"))
405
- }, [
406
- e(T).playersManage ? (r(), _("div", He, [
407
- g(I, {
408
- title: e(i)("rcon.players_manage"),
409
- class: "mb-3",
410
- "header-class": "g-card-header",
411
- segmented: {
412
- content: !0,
413
- footer: "soft"
414
- }
415
- }, {
416
- default: o(() => [
417
- u.value ? (r(), n(e(C), { key: 0 })) : t("", !0),
418
- u.value ? t("", !0) : (r(), n(e(j), {
419
- key: 1,
420
- "server-id": e(m)
421
- }, null, 8, ["server-id"]))
422
- ]),
423
- _: 1
424
- }, 8, ["title"])
425
- ])) : t("", !0),
426
- s("div", null, [
427
- g(I, {
428
- title: e(i)("rcon.console"),
429
- class: "mb-3",
430
- "header-class": "g-card-header",
431
- segmented: {
432
- content: !0,
433
- footer: "soft"
434
- }
435
- }, {
436
- default: o(() => [
437
- u.value ? (r(), n(e(C), { key: 0 })) : t("", !0),
438
- u.value ? t("", !0) : (r(), n(e(D), {
439
- key: 1,
440
- "server-id": e(m)
441
- }, null, 8, ["server-id"]))
442
- ]),
443
- _: 1
444
- }, 8, ["title"])
445
- ])
446
- ], 2)
447
- ])
448
- ])
449
- ]),
450
- _: 1
451
- })) : t("", !0),
452
- e(l).canManageFiles ? (r(), n(A, {
453
- key: 1,
454
- name: "files"
455
- }, {
456
- tab: o(() => [
457
- f[2] || (f[2] = s("i", { class: "fa fa-folder-open mr-1" }, null, -1)),
458
- w(" " + p(e(i)("servers.files")), 1)
459
- ]),
460
- default: o(() => [
461
- s("div", Qe, [
462
- s("div", We, [
463
- s("div", Je, [
464
- g(e(z), {
465
- settings: {
466
- lang: e(fe)(),
467
- baseUrl: "/api/file-manager/" + F.$route.params.id,
468
- headers: {
469
- "X-Requested-With": "XMLHttpRequest"
470
- }
471
- }
472
- }, null, 8, ["settings"])
473
- ])
474
- ])
475
- ])
476
- ]),
477
- _: 1
478
- })) : t("", !0),
479
- e(l).canManageTasks ? (r(), n(A, {
480
- key: 2,
481
- name: "schedules"
482
- }, {
483
- tab: o(() => [
484
- f[3] || (f[3] = s("i", { class: "far fa-calendar-alt mr-1" }, null, -1)),
485
- w(" " + p(e(i)("servers.task_scheduler")), 1)
486
- ]),
487
- default: o(() => [
488
- g(e(y), {
489
- "server-id": e(m),
490
- privileges: x.value
491
- }, null, 8, ["server-id", "privileges"])
492
- ]),
493
- _: 1
494
- })) : t("", !0),
495
- (r(!0), _(H, null, le(Z.value, (S) => (r(), n(A, {
496
- key: "plugin-" + S.pluginId + "-" + (S.name || "tab"),
497
- name: "plugin-" + S.pluginId + "-" + (S.name || "tab")
498
- }, {
499
- tab: o(() => [
500
- S.icon ? (r(), _("i", {
501
- key: 0,
502
- class: U([S.icon, "mr-1"])
503
- }, null, 2)) : t("", !0),
504
- w(" " + p(e(B).resolvePluginText(S.pluginId, S.label)), 1)
505
- ]),
506
- default: o(() => [
507
- (r(), n(oe(S.component), {
508
- "server-id": e(m),
509
- server: e(d),
510
- "plugin-id": S.pluginId
511
- }, null, 8, ["server-id", "server", "plugin-id"]))
512
- ]),
513
- _: 2
514
- }, 1032, ["name"]))), 128)),
515
- e(l).canManageSettings ? (r(), n(A, {
516
- key: 3,
517
- name: "settings"
518
- }, {
519
- tab: o(() => [
520
- f[4] || (f[4] = s("i", { class: "fa fa-cogs mr-1" }, null, -1)),
521
- w(" " + p(e(i)("servers.settings")), 1)
522
- ]),
523
- default: o(() => [
524
- s("div", Ke, [
525
- s("div", Ye, [
526
- g(I, { class: "mb-3" }, {
527
- default: o(() => [
528
- s("div", null, [
529
- u.value ? (r(), n(e(C), {
530
- key: 0,
531
- class: "absolute inset-0 flex justify-center items-center z-10"
532
- })) : t("", !0),
533
- g(e(V), {
534
- class: U(u.value ? "opacity-20" : "")
535
- }, null, 8, ["class"])
536
- ])
537
- ]),
538
- _: 1
539
- })
540
- ])
541
- ])
542
- ]),
543
- _: 1
544
- })) : t("", !0)
545
- ]),
546
- _: 2
547
- }, [
548
- Y.value ? {
549
- name: "suffix",
550
- fn: o(() => [
551
- s("div", Ze, [
552
- g(ee, {
553
- to: { name: "admin.servers.edit", params: { id: e(m) } }
554
- }, {
555
- default: o(() => [
556
- f[5] || (f[5] = s("i", { class: "fa fa-hammer mr-1" }, null, -1)),
557
- w(" " + p(e(i)("servers.admin")), 1)
558
- ]),
559
- _: 1
560
- }, 8, ["to"])
561
- ])
562
- ]),
563
- key: "0"
564
- } : void 0
565
- ]), 1032, ["class"]))
566
- ], 64);
567
- };
568
- }
569
- }, ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
570
- __proto__: null,
571
- default: es
572
- }, Symbol.toStringTag, { value: "Module" }));
573
- export {
574
- ns as S,
575
- pe as u
576
- };
@@ -1,87 +0,0 @@
1
- import { createElementBlock as d, openBlock as m, createElementVNode as e, Fragment as f, renderList as h, withDirectives as u, toDisplayString as r, vModelText as c, withModifiers as b, createTextVNode as p } from "vue";
2
- import { b as v } from "./index-Fmomw6wi.js";
3
- const g = {
4
- name: "SettingsParameters",
5
- props: {
6
- initialItems: Array,
7
- inputName: String
8
- },
9
- data: function() {
10
- return {
11
- items: this.initialItems || []
12
- };
13
- },
14
- methods: {
15
- addItem: function() {
16
- this.items.push({
17
- name: "",
18
- value: ""
19
- });
20
- },
21
- removeItem: function(n) {
22
- this.items.splice(n, 1);
23
- }
24
- }
25
- }, w = { class: "flex flex-col min-w-0 rounded break-words border bg-white border-1 border-stone-300 mb-2" }, _ = { class: "flex-auto p-6" }, x = { class: "mb-3" }, k = ["for"], N = ["name", "id", "onUpdate:modelValue"], y = { class: "mb-3" }, V = ["for"], S = ["name", "id", "onUpdate:modelValue", "rows"], U = ["onClick"], C = { class: "mt-2 text-center" };
26
- function E(n, t, o, B, D, i) {
27
- return m(), d("div", null, [
28
- e("div", w, [
29
- e("div", _, [
30
- (m(!0), d(f, null, h(n.items, (l, a) => (m(), d("div", null, [
31
- e("div", x, [
32
- e("label", {
33
- for: o.inputName + "[" + a + "][name]",
34
- class: "control-label"
35
- }, r(n.trans("labels.name")), 9, k),
36
- u(e("input", {
37
- name: o.inputName + "[" + a + "][name]",
38
- id: o.inputName + "[" + a + "][name]",
39
- "onUpdate:modelValue": (s) => l.name = s,
40
- type: "text",
41
- class: "block appearance-none w-full py-1 px-2 mb-1 leading-normal bg-white text-stone-800 border border-stone-200 rounded"
42
- }, null, 8, N), [
43
- [c, l.name]
44
- ])
45
- ]),
46
- e("div", y, [
47
- e("label", {
48
- for: o.inputName + "[" + a + "][value]",
49
- class: "control-label"
50
- }, r(n.trans("labels.the_value")), 9, V),
51
- u(e("textarea", {
52
- name: o.inputName + "[" + a + "][value]",
53
- id: o.inputName + "[" + a + "][value]",
54
- "onUpdate:modelValue": (s) => l.value = s,
55
- class: "block appearance-none w-full py-1 px-2 mb-1 leading-normal bg-white text-stone-800 border border-stone-200 rounded",
56
- rows: (l.value.match(new RegExp(`
57
- `, "g")) || []).length + 2
58
- }, " ", 8, S), [
59
- [c, l.value]
60
- ])
61
- ]),
62
- e("button", {
63
- class: "inline-block align-middle text-center select-none border font-normal whitespace-no-wrap rounded no-underline py-1.5 px-2 leading-tight text-xs bg-red-600 text-white hover:bg-red-700",
64
- onClick: b((s) => i.removeItem(a), ["prevent"])
65
- }, [
66
- t[1] || (t[1] = e("i", { class: "fa fa-times" }, null, -1)),
67
- p(" " + r(n.trans("main.delete")), 1)
68
- ], 8, U),
69
- t[2] || (t[2] = e("hr", null, null, -1))
70
- ]))), 256)),
71
- e("div", C, [
72
- e("button", {
73
- class: "inline-block align-middle text-center select-none border font-normal whitespace-no-wrap rounded no-underline py-1.5 px-2 leading-tight text-xs bg-lime-500 text-white hover:bg-lime-600",
74
- onClick: t[0] || (t[0] = b((...l) => i.addItem && i.addItem(...l), ["prevent"]))
75
- }, [
76
- t[3] || (t[3] = e("i", { class: "fa fa-plus" }, null, -1)),
77
- p(" " + r(n.trans("main.add")), 1)
78
- ])
79
- ])
80
- ])
81
- ])
82
- ]);
83
- }
84
- const T = /* @__PURE__ */ v(g, [["render", E]]);
85
- export {
86
- T as default
87
- };