@gameap/frontend 4.1.0-dev3 → 4.1.0-dev5
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 +6 -4
|
@@ -1,51 +1,50 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as v, computed as g, onMounted as h, createElementBlock as e, openBlock as o, createElementVNode as t, createCommentVNode as x, createVNode as c, unref as l, toDisplayString as m, Fragment as k, renderList as b, withKeys as y, withCtx as w } from "vue";
|
|
2
2
|
import { NInput as C } from "naive-ui";
|
|
3
|
-
import {
|
|
4
|
-
import { storeToRefs as
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
const E = { id: "rcon-console-component" }, F = { class: "coding inverse-toggle px-5 pt-4 shadow-lg text-stone-100 text-sm font-mono subpixel-antialiased bg-stone-800 dark:bg-stone-900 pb-6 pt-4 rounded-lg leading-normal overflow-hidden" }, I = {
|
|
3
|
+
import { l as R, _ as N, e as S } from "./index-Fmomw6wi.js";
|
|
4
|
+
import { storeToRefs as V } from "pinia";
|
|
5
|
+
import { u as $ } from "./ServerIdView-wsnPfVUi.js";
|
|
6
|
+
const B = { id: "rcon-console-component" }, E = { class: "coding inverse-toggle px-5 pt-4 shadow-lg text-stone-100 text-sm font-mono subpixel-antialiased bg-stone-800 dark:bg-stone-900 pb-6 pt-4 rounded-lg leading-normal overflow-hidden" }, F = {
|
|
8
7
|
ref: "consoleRef",
|
|
9
8
|
class: "whitespace-pre-wrap mt-4 flex h-[40vh] overflow-y-scroll overscroll-contain"
|
|
10
|
-
},
|
|
9
|
+
}, I = {
|
|
11
10
|
key: 0,
|
|
12
11
|
class: "flex w-full items-center justify-center"
|
|
13
|
-
},
|
|
12
|
+
}, K = { key: 1 }, j = {
|
|
14
13
|
key: 0,
|
|
15
14
|
class: "gap-x-2 mt-2"
|
|
16
|
-
},
|
|
15
|
+
}, z = ["onClick"], A = { class: "grid grid-cols-8 gap-x-2 mt-2" }, D = { class: "col-span-7 w-full" }, L = { class: "hidden lg:inline" }, O = {
|
|
17
16
|
__name: "RconConsole",
|
|
18
17
|
props: {
|
|
19
18
|
serverId: null
|
|
20
19
|
},
|
|
21
20
|
setup(M) {
|
|
22
|
-
const r =
|
|
21
|
+
const r = $(), { output: f, fastRcon: u } = V(r), n = v(""), p = g(() => r.loading), d = () => {
|
|
23
22
|
r.sendCommand(n.value).then(() => {
|
|
24
23
|
n.value = "";
|
|
25
24
|
}).catch((s) => {
|
|
26
|
-
|
|
25
|
+
S(s);
|
|
27
26
|
});
|
|
28
|
-
},
|
|
27
|
+
}, _ = (s) => {
|
|
29
28
|
n.value = s, d();
|
|
30
29
|
};
|
|
31
30
|
return h(() => {
|
|
32
31
|
r.fetchFastRcon();
|
|
33
|
-
}), (s, a) => (o(), e("div",
|
|
34
|
-
t("div",
|
|
35
|
-
t("div",
|
|
36
|
-
p.value ? (o(), e("div",
|
|
32
|
+
}), (s, a) => (o(), e("div", B, [
|
|
33
|
+
t("div", E, [
|
|
34
|
+
t("div", F, [
|
|
35
|
+
p.value ? (o(), e("div", I, [
|
|
37
36
|
c(l(R))
|
|
38
|
-
])) : (o(), e("div",
|
|
37
|
+
])) : (o(), e("div", K, m(l(f)), 1))
|
|
39
38
|
], 512)
|
|
40
39
|
]),
|
|
41
|
-
l(u) ? (o(), e("div",
|
|
40
|
+
l(u) ? (o(), e("div", j, [
|
|
42
41
|
(o(!0), e(k, null, b(l(u), (i) => (o(), e("span", {
|
|
43
|
-
onClick: (T) =>
|
|
42
|
+
onClick: (T) => _(i.command),
|
|
44
43
|
class: "bg-stone-100 hover:bg-stone-200 text-stone-800 text-xs font-medium me-2 px-2.5 py-1 rounded dark:bg-stone-700 dark:text-stone-300 cursor-pointer"
|
|
45
|
-
}, m(i.info), 9,
|
|
44
|
+
}, m(i.info), 9, z))), 256))
|
|
46
45
|
])) : x("", !0),
|
|
47
|
-
t("div",
|
|
48
|
-
t("div",
|
|
46
|
+
t("div", A, [
|
|
47
|
+
t("div", D, [
|
|
49
48
|
c(l(C), {
|
|
50
49
|
value: n.value,
|
|
51
50
|
"onUpdate:value": a[0] || (a[0] = (i) => n.value = i),
|
|
@@ -55,14 +54,14 @@ const E = { id: "rcon-console-component" }, F = { class: "coding inverse-toggle
|
|
|
55
54
|
placeholder: ""
|
|
56
55
|
}, null, 8, ["value", "disabled"])
|
|
57
56
|
]),
|
|
58
|
-
c(
|
|
57
|
+
c(N, {
|
|
59
58
|
color: "black",
|
|
60
59
|
size: "small",
|
|
61
60
|
onClick: d
|
|
62
61
|
}, {
|
|
63
62
|
default: w(() => [
|
|
64
63
|
a[1] || (a[1] = t("i", { class: "fa-solid fa-terminal" }, null, -1)),
|
|
65
|
-
t("span",
|
|
64
|
+
t("span", L, " " + m(s.trans("main.send")), 1)
|
|
66
65
|
]),
|
|
67
66
|
_: 1
|
|
68
67
|
})
|
|
@@ -71,5 +70,5 @@ const E = { id: "rcon-console-component" }, F = { class: "coding inverse-toggle
|
|
|
71
70
|
}
|
|
72
71
|
};
|
|
73
72
|
export {
|
|
74
|
-
|
|
73
|
+
O as default
|
|
75
74
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { resolveComponent as k, createElementBlock as u, openBlock as m, createVNode as f, withCtx as h, createElementVNode as s, createCommentVNode as c, toDisplayString as o, Fragment as O, renderList as D, withDirectives as _, vModelText as w, ref as
|
|
2
|
-
import { storeToRefs as
|
|
3
|
-
import { S as B,
|
|
4
|
-
import { u as $ } from "./ServerIdView-
|
|
1
|
+
import { resolveComponent as k, createElementBlock as u, openBlock as m, createVNode as f, withCtx as h, createElementVNode as s, createCommentVNode as c, toDisplayString as o, Fragment as O, renderList as D, withDirectives as _, vModelText as w, ref as L } from "vue";
|
|
2
|
+
import { storeToRefs as G } from "pinia";
|
|
3
|
+
import { S as B, J as S, K as T, L as C, M as U, N as M, O as z, P as K, Q as R, R as V, T as I, U as q, V as H, W as J, X as Q, Y as W, Z as X, b as Y, _ as Z, n as P, e as v, u as x, $ as A } from "./index-Fmomw6wi.js";
|
|
4
|
+
import { u as $ } from "./ServerIdView-wsnPfVUi.js";
|
|
5
5
|
import "naive-ui";
|
|
6
6
|
var j = 1, ee = 2;
|
|
7
7
|
function re(e, r, n, i) {
|
|
@@ -27,24 +27,24 @@ function re(e, r, n, i) {
|
|
|
27
27
|
}
|
|
28
28
|
return !0;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function N(e) {
|
|
31
31
|
return e === e && !T(e);
|
|
32
32
|
}
|
|
33
33
|
function ne(e) {
|
|
34
34
|
for (var r = C(e), n = r.length; n--; ) {
|
|
35
35
|
var i = r[n], a = e[i];
|
|
36
|
-
r[n] = [i, a,
|
|
36
|
+
r[n] = [i, a, N(a)];
|
|
37
37
|
}
|
|
38
38
|
return r;
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function F(e, r) {
|
|
41
41
|
return function(n) {
|
|
42
42
|
return n == null ? !1 : n[e] === r && (r !== void 0 || e in Object(n));
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
function se(e) {
|
|
46
46
|
var r = ne(e);
|
|
47
|
-
return r.length == 1 && r[0][2] ?
|
|
47
|
+
return r.length == 1 && r[0][2] ? F(r[0][0], r[0][1]) : function(n) {
|
|
48
48
|
return n === e || re(n, e, r);
|
|
49
49
|
};
|
|
50
50
|
}
|
|
@@ -66,8 +66,8 @@ function ie(e, r) {
|
|
|
66
66
|
}
|
|
67
67
|
var ae = 1, le = 2;
|
|
68
68
|
function de(e, r) {
|
|
69
|
-
return I(e) &&
|
|
70
|
-
var i =
|
|
69
|
+
return I(e) && N(r) ? F(M(e), r) : function(n) {
|
|
70
|
+
var i = q(n, e);
|
|
71
71
|
return i === void 0 && i === r ? ie(n, e) : S(r, i, ae | le);
|
|
72
72
|
};
|
|
73
73
|
}
|
|
@@ -78,7 +78,7 @@ function ue(e) {
|
|
|
78
78
|
}
|
|
79
79
|
function me(e) {
|
|
80
80
|
return function(r) {
|
|
81
|
-
return
|
|
81
|
+
return H(r, e);
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
function ce(e) {
|
|
@@ -98,7 +98,7 @@ function be(e, r) {
|
|
|
98
98
|
return n = r(i, a, t), !n;
|
|
99
99
|
}), !!n;
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function E(e, r, n) {
|
|
102
102
|
var i = R(e) ? X : be;
|
|
103
103
|
return i(e, he(r));
|
|
104
104
|
}
|
|
@@ -109,7 +109,7 @@ const ye = {
|
|
|
109
109
|
serverId: Number
|
|
110
110
|
},
|
|
111
111
|
setup() {
|
|
112
|
-
const e = x(), r = $(), { players: n } =
|
|
112
|
+
const e = x(), r = $(), { players: n } = G(r);
|
|
113
113
|
return {
|
|
114
114
|
serverStore: e,
|
|
115
115
|
rconStore: r,
|
|
@@ -133,7 +133,7 @@ const ye = {
|
|
|
133
133
|
time: null,
|
|
134
134
|
message: null
|
|
135
135
|
},
|
|
136
|
-
modalEnabled:
|
|
136
|
+
modalEnabled: L(!1),
|
|
137
137
|
segmented: {
|
|
138
138
|
content: "soft",
|
|
139
139
|
footer: "soft"
|
|
@@ -190,21 +190,21 @@ const ye = {
|
|
|
190
190
|
this.rconStore.banPlayer(this.form.player, this.form.reason, this.form.time).then(() => {
|
|
191
191
|
this.hideModal(), P(this.trans("rcon.ban_msg_success"));
|
|
192
192
|
}).catch((e) => {
|
|
193
|
-
this.hideModal(),
|
|
193
|
+
this.hideModal(), v(e);
|
|
194
194
|
});
|
|
195
195
|
},
|
|
196
196
|
kick() {
|
|
197
197
|
this.rconStore.kickPlayer(this.form.player, this.form.reason).then(() => {
|
|
198
198
|
this.hideModal(), P(this.trans("rcon.kick_msg_success"));
|
|
199
199
|
}).catch((e) => {
|
|
200
|
-
this.hideModal(),
|
|
200
|
+
this.hideModal(), v(e);
|
|
201
201
|
});
|
|
202
202
|
},
|
|
203
203
|
sendMessage() {
|
|
204
204
|
this.rconStore.sendPlayerMessage(this.form.playerId, this.form.message).then(() => {
|
|
205
205
|
this.hideModal(), P(this.trans("rcon.message_msg_success"));
|
|
206
206
|
}).catch((e) => {
|
|
207
|
-
this.hideModal(),
|
|
207
|
+
this.hideModal(), v(e);
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
210
|
},
|
|
@@ -220,37 +220,37 @@ const ye = {
|
|
|
220
220
|
}
|
|
221
221
|
},
|
|
222
222
|
ipRow() {
|
|
223
|
-
return
|
|
223
|
+
return E(this.players, (e) => !A(e.ip));
|
|
224
224
|
},
|
|
225
225
|
pingRow() {
|
|
226
|
-
return
|
|
226
|
+
return E(this.players, (e) => !A(e.ping));
|
|
227
227
|
},
|
|
228
228
|
scoreRow() {
|
|
229
|
-
return
|
|
229
|
+
return E(this.players, (e) => !A(e.score));
|
|
230
230
|
}
|
|
231
231
|
},
|
|
232
232
|
mounted() {
|
|
233
233
|
this.serverStore.setServerId(this.serverId), this.rconStore.fetchPlayers();
|
|
234
234
|
}
|
|
235
|
-
}, ke = { id: "rcon-players-component" }, _e = { key: 0 }, we = { key: 1 }, Pe = { key: 2 },
|
|
235
|
+
}, ke = { id: "rcon-players-component" }, _e = { key: 0 }, we = { key: 1 }, Pe = { key: 2 }, ve = { key: 0 }, Ae = { key: 1 }, Ee = { key: 2 }, Me = { class: "grid grid-cols-2 gap-x-4" }, Re = { class: "hidden lg:inline" }, Se = { class: "hidden lg:inline" }, Ce = {
|
|
236
236
|
key: 0,
|
|
237
237
|
class: "mb-3"
|
|
238
238
|
}, Ie = {
|
|
239
239
|
for: "input-reason",
|
|
240
240
|
class: "control-label"
|
|
241
|
-
},
|
|
241
|
+
}, Ne = {
|
|
242
242
|
key: 0,
|
|
243
243
|
class: "help-block"
|
|
244
|
-
},
|
|
244
|
+
}, Fe = { class: "text-red-600" }, Oe = {
|
|
245
245
|
key: 1,
|
|
246
246
|
class: "mb-3"
|
|
247
247
|
}, De = {
|
|
248
248
|
for: "input-time",
|
|
249
249
|
class: "control-label"
|
|
250
|
-
},
|
|
250
|
+
}, Le = {
|
|
251
251
|
key: 0,
|
|
252
252
|
class: "help-block"
|
|
253
|
-
},
|
|
253
|
+
}, Ge = { class: "text-red-600" }, Be = {
|
|
254
254
|
key: 2,
|
|
255
255
|
class: "mb-3"
|
|
256
256
|
}, Te = {
|
|
@@ -291,9 +291,9 @@ function Ke(e, r, n, i, a, t) {
|
|
|
291
291
|
(m(!0), u(O, null, D(i.players, (l, b) => (m(), u("tbody", null, [
|
|
292
292
|
s("tr", null, [
|
|
293
293
|
s("td", null, o(l.name), 1),
|
|
294
|
-
t.scoreRow ? (m(), u("td",
|
|
295
|
-
t.pingRow ? (m(), u("td",
|
|
296
|
-
t.ipRow ? (m(), u("td",
|
|
294
|
+
t.scoreRow ? (m(), u("td", ve, o(l.score), 1)) : c("", !0),
|
|
295
|
+
t.pingRow ? (m(), u("td", Ae, o(l.ping), 1)) : c("", !0),
|
|
296
|
+
t.ipRow ? (m(), u("td", Ee, o(l.ip), 1)) : c("", !0),
|
|
297
297
|
s("td", Me, [
|
|
298
298
|
f(d, {
|
|
299
299
|
color: "black",
|
|
@@ -365,8 +365,8 @@ function Ke(e, r, n, i, a, t) {
|
|
|
365
365
|
{ number: !0 }
|
|
366
366
|
]
|
|
367
367
|
]),
|
|
368
|
-
e.errors.reason ? (m(), u("span",
|
|
369
|
-
s("strong",
|
|
368
|
+
e.errors.reason ? (m(), u("span", Ne, [
|
|
369
|
+
s("strong", Fe, o(e.errors.reason), 1)
|
|
370
370
|
])) : c("", !0)
|
|
371
371
|
])) : c("", !0),
|
|
372
372
|
e.dialogAction === "ban" ? (m(), u("div", Oe, [
|
|
@@ -384,8 +384,8 @@ function Ke(e, r, n, i, a, t) {
|
|
|
384
384
|
{ number: !0 }
|
|
385
385
|
]
|
|
386
386
|
]),
|
|
387
|
-
e.errors.time ? (m(), u("span",
|
|
388
|
-
s("strong",
|
|
387
|
+
e.errors.time ? (m(), u("span", Le, [
|
|
388
|
+
s("strong", Ge, o(e.errors.time), 1)
|
|
389
389
|
])) : c("", !0)
|
|
390
390
|
])) : c("", !0),
|
|
391
391
|
e.dialogAction === "message" ? (m(), u("div", Be, [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as l, onMounted as C, onUnmounted as N, createElementBlock as t, openBlock as s, createElementVNode as o, createCommentVNode as k, createVNode as T, toDisplayString as v, withDirectives as I, withKeys as A, vModelText as V, unref as B, createTextVNode as R } from "vue";
|
|
2
|
-
import { a as _, r as S, e as D } from "./index-
|
|
2
|
+
import { a as _, r as S, e as D } from "./index-Fmomw6wi.js";
|
|
3
3
|
import { NDivider as H } from "naive-ui";
|
|
4
4
|
const $ = { class: "w-full" }, E = { class: "coding inverse-toggle px-5 pt-4 shadow-lg text-stone-100 text-sm font-mono subpixel-antialiased bg-stone-800 dark:bg-stone-900 pb-6 pt-4 rounded-lg leading-normal overflow-hidden" }, K = {
|
|
5
5
|
key: 0,
|