@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.
- package/dist/{AdminClientCertificatesView-DQTMJ6LY.js → AdminClientCertificatesView-BQyXmri1.js} +33 -34
- package/dist/{AdminDaemonTaskListView-Bx3e0Miy.js → AdminDaemonTaskListView-DTQbTpkt.js} +49 -50
- package/dist/{AdminDaemonTaskOutputView-BJtLdoAq.js → AdminDaemonTaskOutputView-DRrZwAwW.js} +32 -33
- package/dist/{AdminGamesEdit-hDe3Pr-7.js → AdminGamesEdit-CDTCJu52.js} +43 -44
- package/dist/{AdminGamesList-CM1xADCW.js → AdminGamesList-CU_RB7gu.js} +55 -56
- package/dist/{AdminModEdit-DDKd6Vga.js → AdminModEdit-P0crpkM3.js} +106 -107
- package/dist/{AdminNodeShowView-DMoEY2Cu.js → AdminNodeShowView-Col-7fyA.js} +34 -35
- package/dist/{AdminNodesCreateView-BXZDQIJ1.js → AdminNodesCreateView-CZsMnSCJ.js} +26 -27
- package/dist/{AdminNodesEditView-xO7-szjJ.js → AdminNodesEditView-DdNciuMa.js} +23 -24
- package/dist/{AdminNodesView-ugTPiC4h.js → AdminNodesView-DvuZ9haB.js} +16 -17
- package/dist/{AdminServersCreate-DOygFz_E.js → AdminServersCreate-zGHHAEkO.js} +56 -57
- package/dist/{AdminServersEdit-cZX6UGB1.js → AdminServersEdit-BR6sRGlM.js} +31 -32
- package/dist/{AdminServersList-CC50WRsv.js → AdminServersList-DhUQ1zrt.js} +21 -22
- package/dist/{AdminUsersEditView-CXpMKFfI.js → AdminUsersEditView-CqRLzCkV.js} +44 -45
- package/dist/{AdminUsersView-DGuGEHVR.js → AdminUsersView-TCHghzxY.js} +37 -38
- package/dist/{CreateModForm-CqhcrNFp.js → CreateModForm-Byq8UvuW.js} +23 -23
- package/dist/{CreateNodeModal-BvbJTKhD.js → CreateNodeModal-BNV35RnR.js} +1 -1
- package/dist/{DsIpSelector-DN9IyT4L.js → DsIpSelector-EnBHsJLE.js} +1 -1
- package/dist/{FileManager-8TWHezyM.js → FileManager-X3FkHNzF.js} +1 -1
- package/dist/{GameModSelector-DRIaCbGY.js → GameModSelector-bZsSGC6T.js} +4 -4
- package/dist/{InputManyList-By5xECIK.js → InputManyList-BFGIEnls.js} +1 -1
- package/dist/{InputTextList-Bm2Ofq5J.js → InputTextList-D280D5fs.js} +1 -1
- package/dist/{PluginPendingView-DHd_yijv.js → PluginPendingView-Cp6KgA8z.js} +1 -1
- package/dist/{RconConsole-DH9XeOu3.js → RconConsole-BxjHKC6E.js} +24 -25
- package/dist/{RconPlayers-GrvCMJX3.js → RconPlayers-CXL0bHlU.js} +32 -32
- package/dist/{ServerConsole-BHHnpxJy.js → ServerConsole-Cr-BZJIC.js} +1 -1
- package/dist/{ServerIdView-BfqrYuar.js → ServerIdView-wsnPfVUi.js} +141 -142
- package/dist/{ServerSelector-QMK1qiXa.js → ServerSelector-D7O1thVu.js} +1 -1
- package/dist/{ServerSettings-Cz6C8Dlh.js → ServerSettings-Lk4lq5hI.js} +1 -1
- package/dist/{ServerStatus-DBJW9C6H.js → ServerStatus-CCFiPWXV.js} +1 -1
- package/dist/{ServerTasks-Bs3iGYY3.js → ServerTasks-gNFBkyv1.js} +1 -1
- package/dist/{SettingsParameters-DCqhqxHk.js → SettingsParameters-BVpVg868.js} +1 -1
- package/dist/{SmartPortSelector-DektJC6p.js → SmartPortSelector-bubAEnvR.js} +8 -8
- package/dist/{UpdateNodeForm-CwirLUIK.js → UpdateNodeForm-BQDjp3CR.js} +1 -1
- package/dist/{UserServerPrivileges-utyKdh7O.js → UserServerPrivileges-CizE2EYl.js} +1 -1
- package/dist/{_createCompounder-DSupx5mD.js → _createCompounder-NPjOAZm-.js} +2 -2
- package/dist/{camelCase-WcUYdRB3.js → camelCase-BXg45SFI.js} +2 -2
- package/dist/{capitalize-DRKkBaYR.js → capitalize-BSQeiLff.js} +10 -10
- package/dist/{clientCertificates-BsJdUHYw.js → clientCertificates-Dm0Bh62v.js} +1 -1
- package/dist/{gameList-DpGDCxFE.js → gameList-CJAymSBL.js} +1 -1
- package/dist/{index-60qEjGuU.js → index-Fmomw6wi.js} +2333 -1954
- package/dist/index.js +1 -1
- package/dist/{loader-CrZTMKcy.js → loader-BGOXrNPF.js} +1 -1
- package/dist/{snakeCase-CTCA7tap.js → snakeCase-o1mQEFQr.js} +1 -1
- package/package.json +2 -1
|
@@ -1,95 +1,94 @@
|
|
|
1
|
-
import { ref as M, computed as k, createElementBlock as
|
|
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
|
|
4
|
-
import { u as b, a as
|
|
5
|
-
|
|
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(""),
|
|
11
|
-
function
|
|
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
|
|
13
|
+
async function E() {
|
|
15
14
|
const a = b();
|
|
16
|
-
|
|
15
|
+
c.value++;
|
|
17
16
|
try {
|
|
18
|
-
const v = await
|
|
17
|
+
const v = await P.get("/api/servers/" + a.serverId + "/rcon/features");
|
|
19
18
|
h.value = v.data;
|
|
20
19
|
} finally {
|
|
21
|
-
|
|
20
|
+
c.value--;
|
|
22
21
|
}
|
|
23
22
|
}
|
|
24
|
-
async function
|
|
23
|
+
async function G() {
|
|
25
24
|
const a = b();
|
|
26
|
-
|
|
25
|
+
c.value++;
|
|
27
26
|
try {
|
|
28
|
-
const v = await
|
|
27
|
+
const v = await P.get("/api/servers/" + a.serverId + "/rcon/fast_rcon");
|
|
29
28
|
R.value = v.data;
|
|
30
29
|
} finally {
|
|
31
|
-
|
|
30
|
+
c.value--;
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
33
|
async function B(a) {
|
|
35
34
|
const v = b();
|
|
36
|
-
|
|
35
|
+
c.value++;
|
|
37
36
|
try {
|
|
38
|
-
const x = await
|
|
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
|
-
|
|
42
|
+
c.value--;
|
|
44
43
|
}
|
|
45
44
|
}
|
|
46
45
|
async function m() {
|
|
47
46
|
const a = b();
|
|
48
47
|
if (!(a.serverId <= 0)) {
|
|
49
|
-
|
|
48
|
+
c.value++;
|
|
50
49
|
try {
|
|
51
|
-
const v = await
|
|
50
|
+
const v = await P.get("/api/servers/" + a.serverId + "/rcon/players");
|
|
52
51
|
V.value = v.data;
|
|
53
52
|
} finally {
|
|
54
|
-
|
|
53
|
+
c.value--;
|
|
55
54
|
}
|
|
56
55
|
}
|
|
57
56
|
}
|
|
58
|
-
async function
|
|
57
|
+
async function d(a, v) {
|
|
59
58
|
const x = b();
|
|
60
|
-
|
|
59
|
+
c.value++;
|
|
61
60
|
try {
|
|
62
|
-
await
|
|
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
|
-
|
|
66
|
+
c.value--;
|
|
68
67
|
}
|
|
69
68
|
}
|
|
70
69
|
async function T(a, v, x) {
|
|
71
70
|
const N = b();
|
|
72
|
-
|
|
71
|
+
c.value++;
|
|
73
72
|
try {
|
|
74
|
-
await
|
|
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
|
-
|
|
79
|
+
c.value--;
|
|
81
80
|
}
|
|
82
81
|
}
|
|
83
82
|
async function u(a, v) {
|
|
84
83
|
const x = b();
|
|
85
|
-
|
|
84
|
+
c.value++;
|
|
86
85
|
try {
|
|
87
|
-
await
|
|
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
|
-
|
|
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:
|
|
99
|
+
apiProcesses: c,
|
|
101
100
|
players: V,
|
|
102
101
|
// Getters
|
|
103
102
|
loading: j,
|
|
104
103
|
serverId: D,
|
|
105
104
|
canUseRcon: z,
|
|
106
|
-
canManageRconPlayers:
|
|
105
|
+
canManageRconPlayers: q,
|
|
107
106
|
// Actions
|
|
108
|
-
setServerId:
|
|
109
|
-
fetchRconSupportedFeatures:
|
|
110
|
-
fetchFastRcon:
|
|
107
|
+
setServerId: l,
|
|
108
|
+
fetchRconSupportedFeatures: E,
|
|
109
|
+
fetchFastRcon: G,
|
|
111
110
|
sendCommand: B,
|
|
112
111
|
fetchPlayers: m,
|
|
113
|
-
kickPlayer:
|
|
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
|
-
},
|
|
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" },
|
|
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 ===
|
|
144
|
-
s("div",
|
|
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",
|
|
145
|
+
s("h3", ge, p(h.trans("servers.not_installed_msg")), 1)
|
|
147
146
|
])
|
|
148
|
-
])) : R.server.installed === Ce ? (r(),
|
|
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(),
|
|
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(),
|
|
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",
|
|
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" },
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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 =
|
|
185
|
+
const h = $(
|
|
187
186
|
() => import(
|
|
188
|
-
"./ServerStatus-
|
|
187
|
+
"./ServerStatus-CCFiPWXV.js"
|
|
189
188
|
/* webpackChunkName: "components/server" */
|
|
190
189
|
)
|
|
191
|
-
), y =
|
|
190
|
+
), y = $(
|
|
192
191
|
() => import(
|
|
193
|
-
"./ServerTasks-
|
|
192
|
+
"./ServerTasks-gNFBkyv1.js"
|
|
194
193
|
/* webpackChunkName: "components/server" */
|
|
195
194
|
)
|
|
196
|
-
),
|
|
195
|
+
), c = $(
|
|
197
196
|
() => import(
|
|
198
|
-
"./ServerConsole-
|
|
197
|
+
"./ServerConsole-Cr-BZJIC.js"
|
|
199
198
|
/* webpackChunkName: "components/server" */
|
|
200
199
|
)
|
|
201
|
-
), V =
|
|
200
|
+
), V = $(
|
|
202
201
|
() => import(
|
|
203
|
-
"./ServerSettings-
|
|
202
|
+
"./ServerSettings-Lk4lq5hI.js"
|
|
204
203
|
/* webpackChunkName: "components/server" */
|
|
205
204
|
)
|
|
206
|
-
), j =
|
|
205
|
+
), j = $(
|
|
207
206
|
() => import(
|
|
208
|
-
"./RconPlayers-
|
|
207
|
+
"./RconPlayers-CXL0bHlU.js"
|
|
209
208
|
/* webpackChunkName: "components/rcon" */
|
|
210
209
|
)
|
|
211
|
-
), D =
|
|
210
|
+
), D = $(
|
|
212
211
|
() => import(
|
|
213
|
-
"./RconConsole-
|
|
212
|
+
"./RconConsole-BxjHKC6E.js"
|
|
214
213
|
/* webpackChunkName: "components/rcon" */
|
|
215
214
|
)
|
|
216
|
-
), z =
|
|
217
|
-
() => import("./FileManager-
|
|
218
|
-
),
|
|
215
|
+
), z = $(
|
|
216
|
+
() => import("./FileManager-X3FkHNzF.js")
|
|
217
|
+
), q = ie(), l = b(), E = pe(), G = de(), B = ue(), {
|
|
219
218
|
serverId: m,
|
|
220
|
-
server:
|
|
221
|
-
} = Q(
|
|
219
|
+
server: d
|
|
220
|
+
} = Q(l), {
|
|
222
221
|
rconSupportedFeatures: T
|
|
223
|
-
} = Q(
|
|
222
|
+
} = Q(E), u = k(() => l.loading);
|
|
224
223
|
re(() => {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
}),
|
|
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:
|
|
231
|
-
stop:
|
|
232
|
-
restart:
|
|
233
|
-
update:
|
|
234
|
-
})), N = k(() => !!
|
|
235
|
-
const
|
|
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
|
|
238
|
+
return d.value?.name && F.push({
|
|
240
239
|
render: () => [
|
|
241
|
-
X(ve, { game:
|
|
242
|
-
X("span", { game:
|
|
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
|
-
}),
|
|
245
|
-
}), Y = k(() =>
|
|
246
|
-
(I) =>
|
|
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 (
|
|
249
|
-
const I = O("n-card"),
|
|
250
|
-
return r(),
|
|
251
|
-
|
|
252
|
-
!u.value && !a.value ? (r(),
|
|
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(
|
|
255
|
-
}, null, 8, ["server"])) : (r(),
|
|
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
|
-
|
|
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
|
-
|
|
270
|
+
g(I, { class: "mb-3" }, {
|
|
272
271
|
default: o(() => [
|
|
273
|
-
u.value ? (r(),
|
|
274
|
-
u.value ? t("", !0) : (r(),
|
|
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
|
-
[
|
|
284
|
+
[ne, W.value]
|
|
286
285
|
]),
|
|
287
|
-
s("div",
|
|
288
|
-
s("div",
|
|
289
|
-
|
|
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(),
|
|
300
|
-
u.value ? t("", !0) : (r(),
|
|
301
|
-
e(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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",
|
|
352
|
-
|
|
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(),
|
|
363
|
-
u.value ? t("", !0) : (r(),
|
|
364
|
-
N.value ? (r(),
|
|
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(),
|
|
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(
|
|
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(
|
|
379
|
-
s("div",
|
|
380
|
-
u.value ? (r(),
|
|
381
|
-
u.value ? t("", !0) : (r(),
|
|
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(
|
|
382
|
+
"console-hostname": e(d)?.name,
|
|
384
383
|
"server-id": e(m),
|
|
385
|
-
"server-active": e(
|
|
386
|
-
"send-command-available": e(
|
|
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(),
|
|
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",
|
|
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(),
|
|
408
|
-
|
|
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(),
|
|
419
|
-
u.value ? t("", !0) : (r(),
|
|
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
|
-
|
|
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(),
|
|
439
|
-
u.value ? t("", !0) : (r(),
|
|
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(
|
|
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
|
-
|
|
464
|
+
g(e(z), {
|
|
466
465
|
settings: {
|
|
467
|
-
lang: e(
|
|
468
|
-
baseUrl: "/api/file-manager/" +
|
|
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(
|
|
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
|
-
|
|
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),
|
|
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(),
|
|
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(),
|
|
507
|
+
(r(), n(oe(S.component), {
|
|
509
508
|
"server-id": e(m),
|
|
510
|
-
server: e(
|
|
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(
|
|
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
|
-
|
|
526
|
+
g(I, { class: "mb-3" }, {
|
|
528
527
|
default: o(() => [
|
|
529
528
|
s("div", null, [
|
|
530
|
-
u.value ? (r(),
|
|
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
|
-
|
|
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
|
-
|
|
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-
|
|
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-
|
|
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-
|
|
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"
|