@gameap/frontend 4.1.0-dev14 → 4.1.0-dev16
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-Bg8X_Ouc.js → AdminClientCertificatesView-Cdat-6ub.js} +56 -66
- package/dist/{AdminDaemonTaskListView-DbJp0aqQ.js → AdminDaemonTaskListView-C0Jy1oat.js} +28 -29
- package/dist/{AdminDaemonTaskOutputView-DNCHQfxx.js → AdminDaemonTaskOutputView-BdstVc5K.js} +23 -25
- package/dist/{AdminGamesEdit-jco7cBfk.js → AdminGamesEdit-BOxBjeqI.js} +28 -31
- package/dist/{AdminGamesList-CMjsgEpx.js → AdminGamesList-C6nSWKdx.js} +136 -143
- package/dist/{AdminModEdit-BlRu_09M.js → AdminModEdit-diCpKnO2.js} +8 -8
- package/dist/{AdminNodeShowView-BHxJkjYJ.js → AdminNodeShowView-BIUiXpmk.js} +51 -61
- package/dist/{AdminNodesCreateView-DihmM46W.js → AdminNodesCreateView-Brzzh4HN.js} +13 -12
- package/dist/{AdminNodesEditView-CVACSido.js → AdminNodesEditView-Dwr2kt82.js} +16 -15
- package/dist/{AdminNodesView-CHtiU6dZ.js → AdminNodesView-DyiGZ1lZ.js} +25 -25
- package/dist/{AdminPluginsView-CRjF3BPs.js → AdminPluginsView-CUe4i8kM.js} +96 -105
- package/dist/{AdminServersCreate-5f8x6eZO.js → AdminServersCreate-iNMqnGK9.js} +26 -25
- package/dist/{AdminServersEdit-CA7711nJ.js → AdminServersEdit-DVI74EZc.js} +24 -23
- package/dist/{AdminServersList-De5ZMEGZ.js → AdminServersList-CkjyJfPK.js} +28 -28
- package/dist/{AdminUsersEditView-DeYo98vi.js → AdminUsersEditView-BTscuJ86.js} +2 -2
- package/dist/{AdminUsersView-C8fKEhpr.js → AdminUsersView-D-fJfjLH.js} +95 -105
- package/dist/{CreateModForm-CqkvVLfN.js → CreateModForm-CDqlkWYW.js} +3 -3
- package/dist/{CreateNodeModal-DOXVtVLQ.js → CreateNodeModal-CcpGS94Z.js} +1 -1
- package/dist/{DsIpSelector-C676Y19X.js → DsIpSelector-B_sWnbEP.js} +1 -1
- package/dist/{EmptyView-Bf6zmQQt.js → EmptyView-CopbPCy6.js} +1 -1
- package/dist/{FileManager-DSa9v4Ex.js → FileManager-JXa457rg.js} +691 -690
- package/dist/GCard-BmZwrZ1e.js +50 -0
- package/dist/GDataTable-DC0a2vJJ.js +60 -0
- package/dist/GDivider-tYaNzeM5.js +16 -0
- package/dist/GEmpty-Bkw6u0WR.js +35 -0
- package/dist/GModal-C4shXjCa.js +53 -0
- package/dist/GSwitch-1wlrRoUA.js +42 -0
- package/dist/GTable-DRH5VONX.js +38 -0
- package/dist/{GameModSelector-CQBT8ZLu.js → GameModSelector-BzBYr5Bl.js} +2 -2
- package/dist/{InputManyList-DUOtepb8.js → InputManyList-B65AFbLu.js} +21 -20
- package/dist/{InputTextList-lPhVIV04.js → InputTextList-DUpEA_--.js} +1 -1
- package/dist/PluginPendingView-CaK51oA9.js +35 -0
- package/dist/{ProfileView-Dw2T3X8m.js → ProfileView-BTXGnm4R.js} +74 -83
- package/dist/{RconConsole-CvxNBv0B.js → RconConsole-BSienrhk.js} +2 -2
- package/dist/{RconPlayers-odUKa0Ps.js → RconPlayers-jIqnphJ1.js} +111 -118
- package/dist/{ServerConsole-B9v2PcWb.js → ServerConsole-BdF95Ef6.js} +1 -1
- package/dist/{ServerControlButton-D_zJbxr6.js → ServerControlButton-7Un9i8tt.js} +6 -6
- package/dist/{ServerIdView-_vGQRk7y.js → ServerIdView-1X_6i-s6.js} +69 -67
- package/dist/{ServerSelector-6fCqL3e9.js → ServerSelector-Y4fSKiM2.js} +1 -1
- package/dist/{ServerSettings-C6-tkLTH.js → ServerSettings-DsIlowVa.js} +23 -21
- package/dist/{ServerStatus-CcqB0h1r.js → ServerStatus-BblAtet5.js} +1 -1
- package/dist/{ServerTasks-BcaZzvz7.js → ServerTasks-2jQBkpL9.js} +1 -1
- package/dist/{ServersView-S_G_kuGj.js → ServersView-CmDavKT_.js} +76 -76
- package/dist/{SettingsParameters-u3Awy4Vf.js → SettingsParameters-jT8ffL4p.js} +4 -3
- package/dist/{SmartPortSelector-BRSQFVqT.js → SmartPortSelector-BuREMnLx.js} +1 -1
- package/dist/{TokensView-C1RFJSB5.js → TokensView-Cw5j1Ivk.js} +60 -64
- package/dist/{UpdateNodeForm-BAhzQLt-.js → UpdateNodeForm-BnIqe7rC.js} +11 -10
- package/dist/{UserServerPrivileges-Q2wQMyHi.js → UserServerPrivileges-CvGlXrzS.js} +82 -92
- package/dist/{_createCompounder-CXjx5-CF.js → _createCompounder-vPBqoT5p.js} +3 -3
- package/dist/{camelCase-CSrB2MWj.js → camelCase-BSEkxKhA.js} +2 -2
- package/dist/{capitalize-BZSBvd6d.js → capitalize-BVfQSCbg.js} +5 -5
- package/dist/{clientCertificates-C0FlDwsb.js → clientCertificates-DHDjG6a2.js} +1 -1
- package/dist/frontend.css +1 -1
- package/dist/{gameList-kucszmx0.js → gameList-BuPam-HN.js} +1 -1
- package/dist/{index-9fvX7FD-.js → index-CiR3a1Cv.js} +180 -179
- package/dist/index.js +1 -1
- package/dist/{isEmpty-D0Z8Rneq.js → isEmpty-CLFmjU_j.js} +11 -11
- package/dist/{loader-qtG-Lf6M.js → loader-DStCgv0r.js} +1 -1
- package/dist/mockServiceWorker.js +1 -1
- package/dist/{snakeCase-nnM4dAra.js → snakeCase-lCSKsq6x.js} +1 -1
- package/dist/{validators-ChBGsKft.js → validators-r6Rit4O6.js} +2 -2
- package/package.json +2 -2
- package/dist/PluginPendingView-DaDaN30Q.js +0 -34
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import { S as
|
|
7
|
-
var
|
|
8
|
-
function
|
|
1
|
+
import { resolveComponent as y, createElementBlock as u, openBlock as c, createVNode as h, withCtx as p, createElementVNode as t, createCommentVNode as m, toDisplayString as o, Fragment as O, renderList as D, withDirectives as _, vModelText as w, ref as T } from "vue";
|
|
2
|
+
import { storeToRefs as L } from "pinia";
|
|
3
|
+
import { X as B, I as S, Y as U, Z as M, $ as z, a0 as H, H as R, T as K, a1 as I, a2 as V, a3 as q, a4 as X, a5 as Y, a6 as Z, c as J, a as Q, _ as W, n as P, e as v, u as x } from "./index-CiR3a1Cv.js";
|
|
4
|
+
import { u as $ } from "./ServerIdView-1X_6i-s6.js";
|
|
5
|
+
import "naive-ui";
|
|
6
|
+
import { S as j, b as C, a as ee, i as A } from "./isEmpty-CLFmjU_j.js";
|
|
7
|
+
var re = 1, ne = 2;
|
|
8
|
+
function se(e, r, n, a) {
|
|
9
9
|
var i = n.length, s = i;
|
|
10
10
|
if (e == null)
|
|
11
11
|
return !s;
|
|
@@ -16,25 +16,25 @@ function oe(e, r, n, a) {
|
|
|
16
16
|
}
|
|
17
17
|
for (; ++i < s; ) {
|
|
18
18
|
d = n[i];
|
|
19
|
-
var f = d[0], b = e[f],
|
|
19
|
+
var f = d[0], b = e[f], k = d[1];
|
|
20
20
|
if (d[2]) {
|
|
21
21
|
if (b === void 0 && !(f in e))
|
|
22
22
|
return !1;
|
|
23
23
|
} else {
|
|
24
|
-
var l = new
|
|
25
|
-
if (!(g === void 0 ?
|
|
24
|
+
var l = new j(), g;
|
|
25
|
+
if (!(g === void 0 ? C(k, b, re | ne, a, l) : g))
|
|
26
26
|
return !1;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
return !0;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
return e === e && !
|
|
31
|
+
function G(e) {
|
|
32
|
+
return e === e && !B(e);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function te(e) {
|
|
35
35
|
for (var r = S(e), n = r.length; n--; ) {
|
|
36
36
|
var a = r[n], i = e[a];
|
|
37
|
-
r[n] = [a, i,
|
|
37
|
+
r[n] = [a, i, G(i)];
|
|
38
38
|
}
|
|
39
39
|
return r;
|
|
40
40
|
}
|
|
@@ -43,74 +43,74 @@ function F(e, r) {
|
|
|
43
43
|
return n == null ? !1 : n[e] === r && (r !== void 0 || e in Object(n));
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
var r =
|
|
46
|
+
function oe(e) {
|
|
47
|
+
var r = te(e);
|
|
48
48
|
return r.length == 1 && r[0][2] ? F(r[0][0], r[0][1]) : function(n) {
|
|
49
|
-
return n === e ||
|
|
49
|
+
return n === e || se(n, e, r);
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function ae(e, r) {
|
|
53
53
|
return e != null && r in Object(e);
|
|
54
54
|
}
|
|
55
|
-
function
|
|
56
|
-
r =
|
|
55
|
+
function ie(e, r, n) {
|
|
56
|
+
r = U(r, e);
|
|
57
57
|
for (var a = -1, i = r.length, s = !1; ++a < i; ) {
|
|
58
|
-
var d =
|
|
58
|
+
var d = M(r[a]);
|
|
59
59
|
if (!(s = e != null && n(e, d)))
|
|
60
60
|
break;
|
|
61
61
|
e = e[d];
|
|
62
62
|
}
|
|
63
|
-
return s || ++a != i ? s : (i = e == null ? 0 : e.length, !!i &&
|
|
63
|
+
return s || ++a != i ? s : (i = e == null ? 0 : e.length, !!i && z(i) && H(d, i) && (R(e) || K(e)));
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
return e != null &&
|
|
65
|
+
function le(e, r) {
|
|
66
|
+
return e != null && ie(e, r, ae);
|
|
67
67
|
}
|
|
68
|
-
var
|
|
69
|
-
function
|
|
70
|
-
return
|
|
71
|
-
var a =
|
|
72
|
-
return a === void 0 && a === r ?
|
|
68
|
+
var de = 1, ue = 2;
|
|
69
|
+
function ce(e, r) {
|
|
70
|
+
return I(e) && G(r) ? F(M(e), r) : function(n) {
|
|
71
|
+
var a = V(n, e);
|
|
72
|
+
return a === void 0 && a === r ? le(n, e) : C(r, a, de | ue);
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function me(e) {
|
|
76
76
|
return function(r) {
|
|
77
77
|
return r?.[e];
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function he(e) {
|
|
81
81
|
return function(r) {
|
|
82
|
-
return
|
|
82
|
+
return q(r, e);
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
return
|
|
85
|
+
function fe(e) {
|
|
86
|
+
return I(e) ? me(M(e)) : he(e);
|
|
87
|
+
}
|
|
88
|
+
function pe(e) {
|
|
89
|
+
return typeof e == "function" ? e : e == null ? X : typeof e == "object" ? R(e) ? ce(e[0], e[1]) : oe(e) : fe(e);
|
|
87
90
|
}
|
|
88
|
-
|
|
89
|
-
|
|
91
|
+
var ge = Y();
|
|
92
|
+
function be(e, r) {
|
|
93
|
+
return e && ge(e, r, S);
|
|
90
94
|
}
|
|
91
|
-
var ye = Z();
|
|
95
|
+
var ye = Z(be);
|
|
92
96
|
function ke(e, r) {
|
|
93
|
-
return e && ye(e, r, S);
|
|
94
|
-
}
|
|
95
|
-
var _e = J(ke);
|
|
96
|
-
function we(e, r) {
|
|
97
97
|
var n;
|
|
98
|
-
return
|
|
98
|
+
return ye(e, function(a, i, s) {
|
|
99
99
|
return n = r(a, i, s), !n;
|
|
100
100
|
}), !!n;
|
|
101
101
|
}
|
|
102
|
-
function
|
|
103
|
-
var a =
|
|
104
|
-
return a(e,
|
|
102
|
+
function E(e, r, n) {
|
|
103
|
+
var a = R(e) ? ee : ke;
|
|
104
|
+
return a(e, pe(r));
|
|
105
105
|
}
|
|
106
|
-
const
|
|
106
|
+
const _e = {
|
|
107
107
|
name: "RconPlayers",
|
|
108
|
-
components: { GButton:
|
|
108
|
+
components: { GButton: W, GIcon: Q },
|
|
109
109
|
props: {
|
|
110
110
|
serverId: Number
|
|
111
111
|
},
|
|
112
112
|
setup() {
|
|
113
|
-
const e =
|
|
113
|
+
const e = x(), r = $(), { players: n } = L(r);
|
|
114
114
|
return {
|
|
115
115
|
serverStore: e,
|
|
116
116
|
rconStore: r,
|
|
@@ -189,23 +189,23 @@ const Pe = {
|
|
|
189
189
|
},
|
|
190
190
|
ban() {
|
|
191
191
|
this.rconStore.banPlayer(this.form.player, this.form.reason, this.form.time).then(() => {
|
|
192
|
-
this.hideModal(),
|
|
192
|
+
this.hideModal(), P(this.trans("rcon.ban_msg_success"));
|
|
193
193
|
}).catch((e) => {
|
|
194
|
-
this.hideModal(),
|
|
194
|
+
this.hideModal(), v(e);
|
|
195
195
|
});
|
|
196
196
|
},
|
|
197
197
|
kick() {
|
|
198
198
|
this.rconStore.kickPlayer(this.form.player, this.form.reason).then(() => {
|
|
199
|
-
this.hideModal(),
|
|
199
|
+
this.hideModal(), P(this.trans("rcon.kick_msg_success"));
|
|
200
200
|
}).catch((e) => {
|
|
201
|
-
this.hideModal(),
|
|
201
|
+
this.hideModal(), v(e);
|
|
202
202
|
});
|
|
203
203
|
},
|
|
204
204
|
sendMessage() {
|
|
205
205
|
this.rconStore.sendPlayerMessage(this.form.playerId, this.form.message).then(() => {
|
|
206
|
-
this.hideModal(),
|
|
206
|
+
this.hideModal(), P(this.trans("rcon.message_msg_success"));
|
|
207
207
|
}).catch((e) => {
|
|
208
|
-
this.hideModal(),
|
|
208
|
+
this.hideModal(), v(e);
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
211
|
},
|
|
@@ -221,49 +221,49 @@ const Pe = {
|
|
|
221
221
|
}
|
|
222
222
|
},
|
|
223
223
|
ipRow() {
|
|
224
|
-
return
|
|
224
|
+
return E(this.players, (e) => !A(e.ip));
|
|
225
225
|
},
|
|
226
226
|
pingRow() {
|
|
227
|
-
return
|
|
227
|
+
return E(this.players, (e) => !A(e.ping));
|
|
228
228
|
},
|
|
229
229
|
scoreRow() {
|
|
230
|
-
return
|
|
230
|
+
return E(this.players, (e) => !A(e.score));
|
|
231
231
|
}
|
|
232
232
|
},
|
|
233
233
|
mounted() {
|
|
234
234
|
this.serverStore.setServerId(this.serverId), this.rconStore.fetchPlayers();
|
|
235
235
|
}
|
|
236
|
-
},
|
|
236
|
+
}, we = { id: "rcon-players-component" }, Pe = { key: 0 }, ve = { key: 1 }, Ae = { key: 2 }, Ee = { key: 0 }, Me = { key: 1 }, Re = { key: 2 }, Se = { class: "grid grid-cols-2 gap-x-4" }, Ie = { class: "hidden lg:inline" }, Ce = { class: "hidden lg:inline" }, Ge = {
|
|
237
237
|
key: 0,
|
|
238
238
|
class: "mb-3"
|
|
239
|
-
},
|
|
239
|
+
}, Fe = {
|
|
240
240
|
for: "input-reason",
|
|
241
241
|
class: "control-label"
|
|
242
|
-
},
|
|
242
|
+
}, Ne = {
|
|
243
243
|
key: 0,
|
|
244
244
|
class: "help-block"
|
|
245
|
-
},
|
|
245
|
+
}, Oe = { class: "text-red-600" }, De = {
|
|
246
246
|
key: 1,
|
|
247
247
|
class: "mb-3"
|
|
248
248
|
}, Te = {
|
|
249
249
|
for: "input-time",
|
|
250
250
|
class: "control-label"
|
|
251
|
-
},
|
|
251
|
+
}, Le = {
|
|
252
252
|
key: 0,
|
|
253
253
|
class: "help-block"
|
|
254
|
-
},
|
|
254
|
+
}, Be = { class: "text-red-600" }, Ue = {
|
|
255
255
|
key: 2,
|
|
256
256
|
class: "mb-3"
|
|
257
|
-
},
|
|
257
|
+
}, ze = {
|
|
258
258
|
for: "input-mesage",
|
|
259
259
|
class: "control-label"
|
|
260
|
-
},
|
|
260
|
+
}, He = {
|
|
261
261
|
key: 0,
|
|
262
262
|
class: "help-block"
|
|
263
|
-
},
|
|
264
|
-
function
|
|
265
|
-
const d =
|
|
266
|
-
return
|
|
263
|
+
}, Ke = { class: "text-red-600" };
|
|
264
|
+
function Ve(e, r, n, a, i, s) {
|
|
265
|
+
const d = y("GIcon"), f = y("GButton"), b = y("GTable"), k = y("GModal");
|
|
266
|
+
return c(), u("div", we, [
|
|
267
267
|
h(f, {
|
|
268
268
|
color: "green",
|
|
269
269
|
size: "small",
|
|
@@ -275,36 +275,33 @@ function We(e, r, n, a, i, s) {
|
|
|
275
275
|
]),
|
|
276
276
|
_: 1
|
|
277
277
|
}, 8, ["onClick"]),
|
|
278
|
-
h(b, {
|
|
279
|
-
size: "small",
|
|
280
|
-
bordered: !1
|
|
281
|
-
}, {
|
|
278
|
+
h(b, { size: "small" }, {
|
|
282
279
|
default: p(() => [
|
|
283
280
|
t("thead", null, [
|
|
284
281
|
t("tr", null, [
|
|
285
282
|
t("th", null, o(e.trans("rcon.player_name")), 1),
|
|
286
|
-
s.scoreRow ? (
|
|
287
|
-
s.pingRow ? (
|
|
288
|
-
s.ipRow ? (
|
|
283
|
+
s.scoreRow ? (c(), u("th", Pe, o(e.trans("rcon.player_score")), 1)) : m("", !0),
|
|
284
|
+
s.pingRow ? (c(), u("th", ve, o(e.trans("rcon.player_ping")), 1)) : m("", !0),
|
|
285
|
+
s.ipRow ? (c(), u("th", Ae, o(e.trans("rcon.player_ip")), 1)) : m("", !0),
|
|
289
286
|
t("th", null, o(e.trans("main.actions")), 1)
|
|
290
287
|
])
|
|
291
288
|
]),
|
|
292
|
-
(
|
|
289
|
+
(c(!0), u(O, null, D(a.players, (l, g) => (c(), u("tbody", null, [
|
|
293
290
|
t("tr", null, [
|
|
294
291
|
t("td", null, o(l.name), 1),
|
|
295
|
-
s.scoreRow ? (
|
|
296
|
-
s.pingRow ? (
|
|
297
|
-
s.ipRow ? (
|
|
298
|
-
t("td",
|
|
292
|
+
s.scoreRow ? (c(), u("td", Ee, o(l.score), 1)) : m("", !0),
|
|
293
|
+
s.pingRow ? (c(), u("td", Me, o(l.ping), 1)) : m("", !0),
|
|
294
|
+
s.ipRow ? (c(), u("td", Re, o(l.ip), 1)) : m("", !0),
|
|
295
|
+
t("td", Se, [
|
|
299
296
|
h(f, {
|
|
300
297
|
color: "black",
|
|
301
298
|
size: "small",
|
|
302
299
|
class: "mb-2",
|
|
303
|
-
onClick: (
|
|
300
|
+
onClick: (N) => s.openDialog("kick", g)
|
|
304
301
|
}, {
|
|
305
302
|
default: p(() => [
|
|
306
303
|
r[6] || (r[6] = t("i", { class: "gicon gicon-kick mr-1" }, null, -1)),
|
|
307
|
-
t("span",
|
|
304
|
+
t("span", Ie, o(e.trans("rcon.kick")), 1)
|
|
308
305
|
]),
|
|
309
306
|
_: 1
|
|
310
307
|
}, 8, ["onClick"]),
|
|
@@ -312,14 +309,14 @@ function We(e, r, n, a, i, s) {
|
|
|
312
309
|
color: "black",
|
|
313
310
|
size: "small",
|
|
314
311
|
class: "mb-2",
|
|
315
|
-
onClick: (
|
|
312
|
+
onClick: (N) => s.openDialog("ban", g)
|
|
316
313
|
}, {
|
|
317
314
|
default: p(() => [
|
|
318
315
|
h(d, {
|
|
319
316
|
name: "ban",
|
|
320
317
|
class: "mr-1"
|
|
321
318
|
}),
|
|
322
|
-
t("span",
|
|
319
|
+
t("span", Ce, o(e.trans("rcon.ban")), 1)
|
|
323
320
|
]),
|
|
324
321
|
_: 1
|
|
325
322
|
}, 8, ["onClick"])
|
|
@@ -329,15 +326,11 @@ function We(e, r, n, a, i, s) {
|
|
|
329
326
|
]),
|
|
330
327
|
_: 1
|
|
331
328
|
}),
|
|
332
|
-
h(
|
|
329
|
+
h(k, {
|
|
333
330
|
show: e.modalEnabled,
|
|
334
331
|
"onUpdate:show": r[5] || (r[5] = (l) => e.modalEnabled = l),
|
|
335
|
-
class: "custom-card",
|
|
336
|
-
preset: "card",
|
|
337
332
|
title: s.dialogTitle,
|
|
338
|
-
|
|
339
|
-
style: { width: "600px" },
|
|
340
|
-
segmented: e.segmented
|
|
333
|
+
style: { width: "600px" }
|
|
341
334
|
}, {
|
|
342
335
|
footer: p(() => [
|
|
343
336
|
t("button", {
|
|
@@ -354,71 +347,71 @@ function We(e, r, n, a, i, s) {
|
|
|
354
347
|
default: p(() => [
|
|
355
348
|
t("div", null, [
|
|
356
349
|
t("form", null, [
|
|
357
|
-
e.dialogAction === "ban" || e.dialogAction === "kick" ? (
|
|
358
|
-
t("label",
|
|
359
|
-
|
|
350
|
+
e.dialogAction === "ban" || e.dialogAction === "kick" ? (c(), u("div", Ge, [
|
|
351
|
+
t("label", Fe, o(e.trans("rcon.reason")), 1),
|
|
352
|
+
_(t("input", {
|
|
360
353
|
"onUpdate:modelValue": r[0] || (r[0] = (l) => e.form.reason = l),
|
|
361
354
|
id: "input-reason",
|
|
362
355
|
type: "text",
|
|
363
356
|
class: "block appearance-none w-full py-1 px-2 mb-1 leading-normal bg-white text-stone-800 border border-stone-200 rounded"
|
|
364
357
|
}, null, 512), [
|
|
365
358
|
[
|
|
366
|
-
|
|
359
|
+
w,
|
|
367
360
|
e.form.reason,
|
|
368
361
|
void 0,
|
|
369
362
|
{ number: !0 }
|
|
370
363
|
]
|
|
371
364
|
]),
|
|
372
|
-
e.errors.reason ? (
|
|
373
|
-
t("strong",
|
|
374
|
-
])) :
|
|
375
|
-
])) :
|
|
376
|
-
e.dialogAction === "ban" ? (
|
|
365
|
+
e.errors.reason ? (c(), u("span", Ne, [
|
|
366
|
+
t("strong", Oe, o(e.errors.reason), 1)
|
|
367
|
+
])) : m("", !0)
|
|
368
|
+
])) : m("", !0),
|
|
369
|
+
e.dialogAction === "ban" ? (c(), u("div", De, [
|
|
377
370
|
t("label", Te, o(e.trans("rcon.time")), 1),
|
|
378
|
-
|
|
371
|
+
_(t("input", {
|
|
379
372
|
"onUpdate:modelValue": r[1] || (r[1] = (l) => e.form.time = l),
|
|
380
373
|
id: "input-time",
|
|
381
374
|
type: "number",
|
|
382
375
|
class: "block appearance-none w-full py-1 px-2 mb-1 leading-normal bg-white text-stone-800 border border-stone-200 rounded"
|
|
383
376
|
}, null, 512), [
|
|
384
377
|
[
|
|
385
|
-
|
|
378
|
+
w,
|
|
386
379
|
e.form.time,
|
|
387
380
|
void 0,
|
|
388
381
|
{ number: !0 }
|
|
389
382
|
]
|
|
390
383
|
]),
|
|
391
|
-
e.errors.time ? (
|
|
392
|
-
t("strong",
|
|
393
|
-
])) :
|
|
394
|
-
])) :
|
|
395
|
-
e.dialogAction === "message" ? (
|
|
396
|
-
t("label",
|
|
397
|
-
|
|
384
|
+
e.errors.time ? (c(), u("span", Le, [
|
|
385
|
+
t("strong", Be, o(e.errors.time), 1)
|
|
386
|
+
])) : m("", !0)
|
|
387
|
+
])) : m("", !0),
|
|
388
|
+
e.dialogAction === "message" ? (c(), u("div", Ue, [
|
|
389
|
+
t("label", ze, o(e.trans("rcon.message")), 1),
|
|
390
|
+
_(t("input", {
|
|
398
391
|
"onUpdate:modelValue": r[2] || (r[2] = (l) => e.form.message = l),
|
|
399
392
|
id: "input-mesage",
|
|
400
393
|
type: "text",
|
|
401
394
|
class: "block appearance-none w-full py-1 px-2 mb-1 leading-normal bg-white text-stone-800 border border-stone-200 rounded"
|
|
402
395
|
}, null, 512), [
|
|
403
396
|
[
|
|
404
|
-
|
|
397
|
+
w,
|
|
405
398
|
e.form.message,
|
|
406
399
|
void 0,
|
|
407
400
|
{ number: !0 }
|
|
408
401
|
]
|
|
409
402
|
]),
|
|
410
|
-
e.errors.message ? (
|
|
411
|
-
t("strong",
|
|
412
|
-
])) :
|
|
413
|
-
])) :
|
|
403
|
+
e.errors.message ? (c(), u("span", He, [
|
|
404
|
+
t("strong", Ke, o(e.errors.message), 1)
|
|
405
|
+
])) : m("", !0)
|
|
406
|
+
])) : m("", !0)
|
|
414
407
|
])
|
|
415
408
|
])
|
|
416
409
|
]),
|
|
417
410
|
_: 1
|
|
418
|
-
}, 8, ["show", "title"
|
|
411
|
+
}, 8, ["show", "title"])
|
|
419
412
|
]);
|
|
420
413
|
}
|
|
421
|
-
const
|
|
414
|
+
const We = /* @__PURE__ */ J(_e, [["render", Ve]]);
|
|
422
415
|
export {
|
|
423
|
-
|
|
416
|
+
We as default
|
|
424
417
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as l, onMounted as N, onUnmounted as T, createElementBlock as n, openBlock as t, createElementVNode as o, createCommentVNode as k, createVNode as I, toDisplayString as v, createBlock as A, withDirectives as B, unref as _, withKeys as V, vModelText as R, createTextVNode as S } from "vue";
|
|
2
|
-
import { a as $, b as x, r as D, e as H } from "./index-
|
|
2
|
+
import { a as $, b as x, r as D, e as H } from "./index-CiR3a1Cv.js";
|
|
3
3
|
import { NDivider as E } from "naive-ui";
|
|
4
4
|
const K = { class: "w-full" }, M = { 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" }, U = {
|
|
5
5
|
key: 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NModal as j, NProgress as F } from "naive-ui";
|
|
2
|
-
import { ref as _, createElementBlock as J, openBlock as Q, Fragment as X, createVNode as g, withCtx as b, createElementVNode as S, toDisplayString as
|
|
3
|
-
import { k as ee, t, _ as se, a as te, d as ae, b as T,
|
|
2
|
+
import { ref as _, createElementBlock as J, openBlock as Q, Fragment as X, createVNode as g, withCtx as b, createElementVNode as S, toDisplayString as x, normalizeClass as Y, unref as Z, h as P } from "vue";
|
|
3
|
+
import { k as ee, t, _ as se, a as te, d as ae, b as T, x as p } from "./index-CiR3a1Cv.js";
|
|
4
4
|
const ne = { class: "progress-info" }, re = { class: "hidden lg:inline" }, oe = 2e3, y = 2e3, ie = 2e4, k = 0, le = 10, ce = 40, ue = 80, O = 100, G = 10, U = 2e3, ge = {
|
|
5
5
|
__name: "ServerControlButton",
|
|
6
6
|
props: [
|
|
@@ -91,8 +91,8 @@ const ne = { class: "progress-info" }, re = { class: "hidden lg:inline" }, oe =
|
|
|
91
91
|
(e === void 0 || e === "") && (e = t("gdaemon_tasks.common_error_msg")), u = !0;
|
|
92
92
|
let s = "";
|
|
93
93
|
C && (s = () => [
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
P("div", [
|
|
95
|
+
P(
|
|
96
96
|
"a",
|
|
97
97
|
{ href: "/admin/gdaemon_tasks/" + n.id },
|
|
98
98
|
t("servers.task_see_log")
|
|
@@ -149,7 +149,7 @@ const ne = { class: "progress-info" }, re = { class: "hidden lg:inline" }, oe =
|
|
|
149
149
|
"on-update:show": $
|
|
150
150
|
}, {
|
|
151
151
|
default: b(() => [
|
|
152
|
-
S("div", ne,
|
|
152
|
+
S("div", ne, x(o.value), 1),
|
|
153
153
|
g(r, {
|
|
154
154
|
type: "line",
|
|
155
155
|
height: 24,
|
|
@@ -173,7 +173,7 @@ const ne = { class: "progress-info" }, re = { class: "hidden lg:inline" }, oe =
|
|
|
173
173
|
}, {
|
|
174
174
|
default: b(() => [
|
|
175
175
|
g(Z(te), { name: i.icon }, null, 8, ["name"]),
|
|
176
|
-
S("span", re, " " +
|
|
176
|
+
S("span", re, " " + x(i.text), 1)
|
|
177
177
|
]),
|
|
178
178
|
_: 1
|
|
179
179
|
}, 8, ["class", "color", "size"])
|