@gameap/frontend 4.1.0-dev8 → 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.
- package/dist/{AdminClientCertificatesView-BQyXmri1.js → AdminClientCertificatesView-rVNAX5Dl.js} +97 -94
- package/dist/AdminDaemonTaskListView-CoUVp9tK.js +316 -0
- package/dist/{AdminDaemonTaskOutputView-DRrZwAwW.js → AdminDaemonTaskOutputView-BJpuWCtc.js} +18 -17
- package/dist/{AdminGamesEdit-CDTCJu52.js → AdminGamesEdit-HKWU2C59.js} +121 -117
- package/dist/AdminGamesList-BwN_RFDY.js +518 -0
- package/dist/{AdminModEdit-P0crpkM3.js → AdminModEdit-CbVGlk5M.js} +123 -119
- package/dist/AdminNodeShowView-C7VsvwQo.js +175 -0
- package/dist/AdminNodesCreateView-BfEHhFn2.js +87 -0
- package/dist/{AdminNodesEditView-DdNciuMa.js → AdminNodesEditView-DE-zhVTd.js} +11 -11
- package/dist/AdminNodesView-QMdy3oJ1.js +167 -0
- package/dist/AdminPluginsView-BBALhxPk.js +984 -0
- package/dist/{AdminServersCreate-zGHHAEkO.js → AdminServersCreate-g_A290kz.js} +122 -124
- package/dist/{AdminServersEdit-BR6sRGlM.js → AdminServersEdit-D0RERbR5.js} +125 -124
- package/dist/{AdminServersList-DhUQ1zrt.js → AdminServersList-_ek_2u8B.js} +35 -31
- package/dist/{AdminUsersEditView-CqRLzCkV.js → AdminUsersEditView-CbZCH6eM.js} +89 -85
- package/dist/{AdminUsersView-TCHghzxY.js → AdminUsersView-D4WoRB5b.js} +145 -141
- package/dist/CreateModForm-CpbIOQNu.js +123 -0
- package/dist/CreateNodeModal-C96UVcAJ.js +99 -0
- package/dist/{DsIpSelector-EnBHsJLE.js → DsIpSelector-D_hc_JYQ.js} +1 -1
- package/dist/EmptyView-qkQQJ_OR.js +9 -0
- package/dist/FileManager-v-1ASSne.js +5931 -0
- package/dist/GameIcon-DaYNlnur.js +87 -0
- package/dist/{GameModSelector-bZsSGC6T.js → GameModSelector-CiI3H5Zq.js} +21 -20
- package/dist/InputManyList-C52f5V6l.js +110 -0
- package/dist/InputTextList-5KeNATa7.js +63 -0
- package/dist/PluginPendingView-CDR44QCG.js +34 -0
- package/dist/ProfileView-CC3KJ2gK.js +295 -0
- package/dist/RconConsole-DkRK7vz3.js +74 -0
- package/dist/{RconPlayers-CXL0bHlU.js → RconPlayers-CDRCp79f.js} +131 -127
- package/dist/ServerConsole-Bj0Zr1BS.js +99 -0
- package/dist/ServerControlButton-C4zWzA-d.js +185 -0
- package/dist/ServerIdView-BJS6wcMH.js +608 -0
- package/dist/{ServerSelector-D7O1thVu.js → ServerSelector-DPM5SjWO.js} +7 -7
- package/dist/{ServerSettings-Lk4lq5hI.js → ServerSettings-BYRSLaJk.js} +26 -26
- package/dist/{ServerStatus-CCFiPWXV.js → ServerStatus-BK8yKehx.js} +1 -1
- package/dist/{ServerTasks-gNFBkyv1.js → ServerTasks-DUC2DDcY.js} +304 -302
- package/dist/ServersView-BbLoOEEz.js +312 -0
- package/dist/SettingsParameters-C-TFWsJF.js +89 -0
- package/dist/SmartPortSelector-DCsuCDpV.js +174 -0
- package/dist/TokensView-B5D45QbV.js +392 -0
- package/dist/{UpdateNodeForm-BQDjp3CR.js → UpdateNodeForm-DmAoHURu.js} +131 -127
- package/dist/UserServerPrivileges-k-30v4ps.js +319 -0
- package/dist/{_createCompounder-NPjOAZm-.js → _createCompounder-DHQYnhTQ.js} +2 -2
- package/dist/{camelCase-BXg45SFI.js → camelCase-CE1GGhvX.js} +2 -2
- package/dist/{capitalize-BSQeiLff.js → capitalize-DnZmwhT4.js} +5 -5
- package/dist/{clientCertificates-Dm0Bh62v.js → clientCertificates-Dd9OqxGQ.js} +1 -1
- package/dist/frontend.css +6 -14
- package/dist/{gameList-CJAymSBL.js → gameList-BLdEusRA.js} +40 -40
- package/dist/gameap.svg +3 -0
- package/dist/gameap_full.svg +9 -0
- package/dist/index-BDKiNPpP.js +3840 -0
- package/dist/index.js +1 -1
- package/dist/isEmpty-lBntcFaB.js +263 -0
- package/dist/join-CmlzL0H9.js +7 -0
- package/dist/{loader-BGOXrNPF.js → loader-C49Def-j.js} +1 -1
- package/dist/{snakeCase-o1mQEFQr.js → snakeCase--wUVfLw4.js} +1 -1
- package/dist/validators-BVXTUmow.js +65 -0
- package/package.json +1 -1
- package/dist/AdminDaemonTaskListView-DTQbTpkt.js +0 -315
- package/dist/AdminGamesList-CU_RB7gu.js +0 -499
- package/dist/AdminNodeShowView-Col-7fyA.js +0 -166
- package/dist/AdminNodesCreateView-CZsMnSCJ.js +0 -84
- package/dist/AdminNodesView-DvuZ9haB.js +0 -160
- package/dist/CreateModForm-Byq8UvuW.js +0 -122
- package/dist/CreateNodeModal-BNV35RnR.js +0 -93
- package/dist/FileManager-X3FkHNzF.js +0 -31882
- package/dist/InputManyList-BFGIEnls.js +0 -110
- package/dist/InputTextList-D280D5fs.js +0 -63
- package/dist/PluginPendingView-Cp6KgA8z.js +0 -31
- package/dist/RconConsole-BxjHKC6E.js +0 -74
- package/dist/ServerConsole-Cr-BZJIC.js +0 -98
- package/dist/ServerIdView-wsnPfVUi.js +0 -576
- package/dist/SettingsParameters-BVpVg868.js +0 -87
- package/dist/SmartPortSelector-bubAEnvR.js +0 -161
- package/dist/UserServerPrivileges-CizE2EYl.js +0 -318
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/index-Fmomw6wi.js +0 -5750
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import { mergeModels as V, useModel as b, ref as T, onMounted as U, watch as i, createElementBlock as M, openBlock as B, createVNode as s, unref as o, withCtx as p, createCommentVNode as D, createElementVNode as j, toDisplayString as G } from "vue";
|
|
2
|
-
import { storeToRefs as g } from "pinia";
|
|
3
|
-
import { h as Q, v as A, u as L, t as P } from "./index-Fmomw6wi.js";
|
|
4
|
-
import { NFormItem as I, NInputNumber as q } from "naive-ui";
|
|
5
|
-
const W = {
|
|
6
|
-
key: 0,
|
|
7
|
-
class: "help-block"
|
|
8
|
-
}, X = {
|
|
9
|
-
__name: "SmartPortSelector",
|
|
10
|
-
props: /* @__PURE__ */ V({
|
|
11
|
-
initialServerIp: String,
|
|
12
|
-
initialServerPort: String,
|
|
13
|
-
initialQueryPort: String,
|
|
14
|
-
initialRconPort: String,
|
|
15
|
-
game: String,
|
|
16
|
-
serverPortPath: { type: String, default: "serverPort" },
|
|
17
|
-
rconPortPath: { type: String, default: "rconPort" },
|
|
18
|
-
queryPortPath: { type: String, default: "queryPort" }
|
|
19
|
-
}, {
|
|
20
|
-
serverPort: {},
|
|
21
|
-
serverPortModifiers: {},
|
|
22
|
-
queryPort: {},
|
|
23
|
-
queryPortModifiers: {},
|
|
24
|
-
rconPort: {},
|
|
25
|
-
rconPortModifiers: {}
|
|
26
|
-
}),
|
|
27
|
-
emits: /* @__PURE__ */ V(["update:serverPort", "update:rconPort", "update:queryPort"], ["update:serverPort", "update:queryPort", "update:rconPort"]),
|
|
28
|
-
setup(u, { emit: O }) {
|
|
29
|
-
const f = {
|
|
30
|
-
arma2: 2302,
|
|
31
|
-
arma2ao: 2302,
|
|
32
|
-
arma3: 2302,
|
|
33
|
-
cod4: 28960,
|
|
34
|
-
mta: 22003,
|
|
35
|
-
samp: 7777,
|
|
36
|
-
hurtworld: 12871,
|
|
37
|
-
justcause: 7777,
|
|
38
|
-
fivem: 30120,
|
|
39
|
-
ark: 7777,
|
|
40
|
-
rust: 28015,
|
|
41
|
-
minecraft: 25565,
|
|
42
|
-
rok: 7350,
|
|
43
|
-
teamspeak3: 9987,
|
|
44
|
-
default: 27015
|
|
45
|
-
}, k = {
|
|
46
|
-
arma2: [0, 0],
|
|
47
|
-
arma2ao: [0, 0],
|
|
48
|
-
arma3: [0, 0],
|
|
49
|
-
cod4: [0, 0],
|
|
50
|
-
mta: [0, 2],
|
|
51
|
-
samp: [0, 0],
|
|
52
|
-
hurtworld: [10, 0],
|
|
53
|
-
justcause: [0, 0],
|
|
54
|
-
fivem: [0, 0],
|
|
55
|
-
ark: [0, 0],
|
|
56
|
-
rust: [0, 1],
|
|
57
|
-
minecraft: [0, 1],
|
|
58
|
-
rok: [0, 0],
|
|
59
|
-
teamspeak3: [24, 35],
|
|
60
|
-
default: [0, 0]
|
|
61
|
-
}, a = u, y = O, S = Q(), R = A(), _ = L(), { nodeId: E, busyPorts: w } = g(S), { gameCode: h } = g(R), { formIp: v } = g(_), t = b(u, "serverPort"), l = b(u, "queryPort"), n = b(u, "rconPort"), d = T("");
|
|
62
|
-
function x() {
|
|
63
|
-
if (a.initialServerIp === v.value) {
|
|
64
|
-
t.value = parseInt(a.initialServerPort) || 27015, l.value = parseInt(a.initialQueryPort) || 27015, n.value = parseInt(a.initialRconPort) || 27015;
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
const e = N();
|
|
68
|
-
let r = -1;
|
|
69
|
-
do
|
|
70
|
-
r++, t.value = f[e] + r;
|
|
71
|
-
while (C(v.value, f[e] + r));
|
|
72
|
-
}
|
|
73
|
-
function F() {
|
|
74
|
-
const e = N();
|
|
75
|
-
l.value = t.value + k[e][0], n.value = t.value + k[e][1];
|
|
76
|
-
}
|
|
77
|
-
function N() {
|
|
78
|
-
return f.hasOwnProperty(h.value) ? h.value : "default";
|
|
79
|
-
}
|
|
80
|
-
function C(e, r) {
|
|
81
|
-
return typeof a.initialServerIp < "u" && typeof a.initialServerPort < "u" && e === a.initialServerIp && r === a.initialServerPort ? !1 : w.value.hasOwnProperty(e) && w.value[e].indexOf(r) !== -1;
|
|
82
|
-
}
|
|
83
|
-
function c() {
|
|
84
|
-
v.value === a.initialServerIp && t.value === a.initialServerPort && (d.value = ""), C(v.value, t.value) ? d.value = P("validation.unique", { attribute: P("labels.server_port") }) : d.value = "";
|
|
85
|
-
}
|
|
86
|
-
return U(() => {
|
|
87
|
-
S.fetchBusyPorts(c);
|
|
88
|
-
}), i(E, () => {
|
|
89
|
-
S.fetchBusyPorts(c);
|
|
90
|
-
}), i(t, (e, r) => {
|
|
91
|
-
t.value = Number(t.value), F(), c(), y("update:serverPort", t.value);
|
|
92
|
-
}), i(n, (e) => {
|
|
93
|
-
y("update:rconPort", n.value);
|
|
94
|
-
}), i(l, (e) => {
|
|
95
|
-
y("update:queryPort", l.value);
|
|
96
|
-
}), i(v, (e, r) => {
|
|
97
|
-
e && x(), c();
|
|
98
|
-
}), i(h, () => {
|
|
99
|
-
x();
|
|
100
|
-
}), (e, r) => (B(), M("div", null, [
|
|
101
|
-
s(o(I), {
|
|
102
|
-
label: o(P)("labels.server_port"),
|
|
103
|
-
path: u.serverPortPath
|
|
104
|
-
}, {
|
|
105
|
-
feedback: p(() => [
|
|
106
|
-
d.value ? (B(), M("span", W, [
|
|
107
|
-
j("strong", null, G(d.value), 1)
|
|
108
|
-
])) : D("", !0)
|
|
109
|
-
]),
|
|
110
|
-
default: p(() => [
|
|
111
|
-
s(o(q), {
|
|
112
|
-
name: "server_port",
|
|
113
|
-
id: "server_port",
|
|
114
|
-
min: 1024,
|
|
115
|
-
max: 65535,
|
|
116
|
-
value: t.value,
|
|
117
|
-
"onUpdate:value": r[0] || (r[0] = (m) => t.value = m)
|
|
118
|
-
}, null, 8, ["value"])
|
|
119
|
-
]),
|
|
120
|
-
_: 1
|
|
121
|
-
}, 8, ["label", "path"]),
|
|
122
|
-
s(o(I), {
|
|
123
|
-
label: o(P)("labels.query_port"),
|
|
124
|
-
path: u.queryPortPath
|
|
125
|
-
}, {
|
|
126
|
-
default: p(() => [
|
|
127
|
-
s(o(q), {
|
|
128
|
-
name: "query_port",
|
|
129
|
-
type: "number",
|
|
130
|
-
id: "server_port",
|
|
131
|
-
min: 1024,
|
|
132
|
-
max: 65535,
|
|
133
|
-
value: l.value,
|
|
134
|
-
"onUpdate:value": r[1] || (r[1] = (m) => l.value = m)
|
|
135
|
-
}, null, 8, ["value"])
|
|
136
|
-
]),
|
|
137
|
-
_: 1
|
|
138
|
-
}, 8, ["label", "path"]),
|
|
139
|
-
s(o(I), {
|
|
140
|
-
label: o(P)("labels.rcon_port"),
|
|
141
|
-
path: u.rconPortPath
|
|
142
|
-
}, {
|
|
143
|
-
default: p(() => [
|
|
144
|
-
s(o(q), {
|
|
145
|
-
name: "rcon_port",
|
|
146
|
-
type: "number",
|
|
147
|
-
id: "server_port",
|
|
148
|
-
min: 1024,
|
|
149
|
-
max: 65535,
|
|
150
|
-
value: n.value,
|
|
151
|
-
"onUpdate:value": r[2] || (r[2] = (m) => n.value = m)
|
|
152
|
-
}, null, 8, ["value"])
|
|
153
|
-
]),
|
|
154
|
-
_: 1
|
|
155
|
-
}, 8, ["label", "path"])
|
|
156
|
-
]));
|
|
157
|
-
}
|
|
158
|
-
};
|
|
159
|
-
export {
|
|
160
|
-
X as default
|
|
161
|
-
};
|
|
@@ -1,318 +0,0 @@
|
|
|
1
|
-
import { mergeModels as X, onMounted as Y, useModel as Z, ref as d, computed as ee, createElementBlock as p, openBlock as g, Fragment as y, createElementVNode as e, createVNode as o, unref as n, withCtx as u, toDisplayString as a, renderList as $, createTextVNode as k, h as C } from "vue";
|
|
2
|
-
import { d as le, f as se, t as r, g as E, _, e as N, n as I, a as te } from "./index-Fmomw6wi.js";
|
|
3
|
-
import { storeToRefs as ne } from "pinia";
|
|
4
|
-
import { NTable as L, NModal as V, NSelect as ae, NSwitch as re } from "naive-ui";
|
|
5
|
-
const oe = { class: "mb-4" }, ie = ["href"], ue = { class: "flex flex-wrap gap-1" }, de = { class: "mt-6 mb-3" }, ve = { class: "flex justify-center mt-2" }, ce = { class: "md:w-full" }, me = { class: "flex justify-center mt-2" }, fe = { class: "grid grid-cols-2 gap-x-20 mb-4" }, pe = { class: "grid grid-cols-4 gap-x-4 mb-6" }, ge = { class: "col-span-3" }, _e = { class: "hidden lg:inline" }, Pe = {
|
|
6
|
-
__name: "UserServerPrivileges",
|
|
7
|
-
props: /* @__PURE__ */ X({
|
|
8
|
-
userId: Number
|
|
9
|
-
}, {
|
|
10
|
-
modelValue: [],
|
|
11
|
-
modelModifiers: {}
|
|
12
|
-
}),
|
|
13
|
-
emits: ["update:modelValue"],
|
|
14
|
-
setup(z) {
|
|
15
|
-
const j = window.gameapLang || "en", h = le(), F = se(), { getServerPermissions: B } = ne(h);
|
|
16
|
-
Y(() => {
|
|
17
|
-
M("");
|
|
18
|
-
});
|
|
19
|
-
const b = Z(z, "modelValue", []), v = d(null), m = d([]), f = d([]), S = d(!1);
|
|
20
|
-
function T(t) {
|
|
21
|
-
for (let l of b.value)
|
|
22
|
-
if (l.id === t)
|
|
23
|
-
return !0;
|
|
24
|
-
}
|
|
25
|
-
function R(t) {
|
|
26
|
-
for (let l of m.value)
|
|
27
|
-
if (l.id === t)
|
|
28
|
-
return l;
|
|
29
|
-
}
|
|
30
|
-
function W(t) {
|
|
31
|
-
m.value = m.value.filter(function(l) {
|
|
32
|
-
return l.id !== t;
|
|
33
|
-
}), f.value = f.value.filter(function(l) {
|
|
34
|
-
return l.value !== t;
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
function q(t) {
|
|
38
|
-
b.value.splice(t, 1);
|
|
39
|
-
}
|
|
40
|
-
function A() {
|
|
41
|
-
if (!v.value) {
|
|
42
|
-
I(r("servers.select_server"));
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
if (w.value = !1, T(v.value)) {
|
|
46
|
-
I(r("servers.server_already_added"));
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
const t = R(v.value);
|
|
50
|
-
t && (b.value.push(t), W(t.id), v.value = null);
|
|
51
|
-
}
|
|
52
|
-
let U;
|
|
53
|
-
function D(t) {
|
|
54
|
-
clearTimeout(U), U = setTimeout(() => {
|
|
55
|
-
t();
|
|
56
|
-
}, 500);
|
|
57
|
-
}
|
|
58
|
-
function M(t) {
|
|
59
|
-
S.value = !0, D(() => {
|
|
60
|
-
te.get(`/api/servers/search?q=${encodeURI(t)}`).then(function(l) {
|
|
61
|
-
m.value = [], f.value = [];
|
|
62
|
-
for (let s of l.data)
|
|
63
|
-
T(s.id) || (m.value.push({
|
|
64
|
-
id: s.id,
|
|
65
|
-
name: s.name,
|
|
66
|
-
game: s.game,
|
|
67
|
-
server_ip: s.server_ip,
|
|
68
|
-
server_port: s.server_port
|
|
69
|
-
}), f.value.push({
|
|
70
|
-
name: s.name,
|
|
71
|
-
label: s.name + " (" + s.game.name + ") - " + s.server_ip + ":" + s.server_port,
|
|
72
|
-
address: `${s.server_ip}:${s.server_port}`,
|
|
73
|
-
game: s.game,
|
|
74
|
-
value: s.id
|
|
75
|
-
}));
|
|
76
|
-
S.value = !1;
|
|
77
|
-
}).catch(function(l) {
|
|
78
|
-
S.value = !1, N(l);
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
const K = (t) => {
|
|
83
|
-
if (t.startsWith("plugins.")) {
|
|
84
|
-
const l = t.split("."), s = l[1], c = l.slice(2).join("."), P = s ? F.getPluginTranslations(s) : null;
|
|
85
|
-
return (P?.[j] || P?.en || {})[c] ?? r(c);
|
|
86
|
-
}
|
|
87
|
-
return r(t);
|
|
88
|
-
}, O = (t) => C(
|
|
89
|
-
"div",
|
|
90
|
-
{ class: "flex" },
|
|
91
|
-
[
|
|
92
|
-
C("div", { class: "w-64" }, t.name),
|
|
93
|
-
C("div", { class: "w-56" }, t.game.name),
|
|
94
|
-
C("div", { class: "w-40" }, t.address)
|
|
95
|
-
]
|
|
96
|
-
), w = d(!1), G = () => {
|
|
97
|
-
w.value = !0;
|
|
98
|
-
}, x = d(!1), H = (t) => {
|
|
99
|
-
h.fetchPermissionsForServer(t.id).then(() => {
|
|
100
|
-
i.value = t, x.value = !0;
|
|
101
|
-
}).catch((l) => {
|
|
102
|
-
N(l);
|
|
103
|
-
});
|
|
104
|
-
}, i = d({}), J = ee({
|
|
105
|
-
get: () => i.value.id ? B.value(i.value.id) : [],
|
|
106
|
-
set: (t) => {
|
|
107
|
-
h.setServerPermissions(i.value.id, t);
|
|
108
|
-
}
|
|
109
|
-
}), Q = () => {
|
|
110
|
-
h.savePermissionsForServer(i.value.id).then(() => {
|
|
111
|
-
I({
|
|
112
|
-
content: r("users.privileges_saved_success_msg"),
|
|
113
|
-
type: "success"
|
|
114
|
-
}, () => {
|
|
115
|
-
x.value = !1;
|
|
116
|
-
});
|
|
117
|
-
}).catch((t) => {
|
|
118
|
-
N(t);
|
|
119
|
-
});
|
|
120
|
-
};
|
|
121
|
-
return (t, l) => (g(), p(y, null, [
|
|
122
|
-
e("div", null, [
|
|
123
|
-
e("div", oe, [
|
|
124
|
-
o(n(L), {
|
|
125
|
-
bordered: !1,
|
|
126
|
-
"single-line": !0
|
|
127
|
-
}, {
|
|
128
|
-
default: u(() => [
|
|
129
|
-
e("thead", null, [
|
|
130
|
-
e("tr", null, [
|
|
131
|
-
e("th", null, a(n(r)("servers.name")), 1),
|
|
132
|
-
e("th", null, a(n(r)("servers.game")), 1),
|
|
133
|
-
e("th", null, a(n(r)("servers.ip_port")), 1),
|
|
134
|
-
e("th", null, a(n(r)("main.actions")), 1)
|
|
135
|
-
])
|
|
136
|
-
]),
|
|
137
|
-
e("tbody", null, [
|
|
138
|
-
(g(!0), p(y, null, $(b.value, (s, c) => (g(), p("tr", null, [
|
|
139
|
-
e("td", null, [
|
|
140
|
-
e("a", {
|
|
141
|
-
href: "/admin/servers/" + s.id + "/edit"
|
|
142
|
-
}, a(s.name), 9, ie)
|
|
143
|
-
]),
|
|
144
|
-
e("td", null, [
|
|
145
|
-
o(E, {
|
|
146
|
-
game: s.game.code
|
|
147
|
-
}, null, 8, ["game"]),
|
|
148
|
-
k(" " + a(s.game.name), 1)
|
|
149
|
-
]),
|
|
150
|
-
e("td", null, a(s.server_ip) + ":" + a(s.server_port), 1),
|
|
151
|
-
e("td", ue, [
|
|
152
|
-
o(_, {
|
|
153
|
-
color: "blue",
|
|
154
|
-
size: "small",
|
|
155
|
-
onClick: (P) => H(s)
|
|
156
|
-
}, {
|
|
157
|
-
default: u(() => [...l[3] || (l[3] = [
|
|
158
|
-
e("i", { class: "fas fa-lock" }, null, -1)
|
|
159
|
-
])]),
|
|
160
|
-
_: 1
|
|
161
|
-
}, 8, ["onClick"]),
|
|
162
|
-
o(_, {
|
|
163
|
-
color: "red",
|
|
164
|
-
size: "small",
|
|
165
|
-
onClick: (P) => q(c)
|
|
166
|
-
}, {
|
|
167
|
-
default: u(() => [...l[4] || (l[4] = [
|
|
168
|
-
e("i", { class: "fa fa-times" }, null, -1)
|
|
169
|
-
])]),
|
|
170
|
-
_: 1
|
|
171
|
-
}, 8, ["onClick"])
|
|
172
|
-
])
|
|
173
|
-
]))), 256))
|
|
174
|
-
])
|
|
175
|
-
]),
|
|
176
|
-
_: 1
|
|
177
|
-
})
|
|
178
|
-
]),
|
|
179
|
-
e("div", de, [
|
|
180
|
-
e("div", ve, [
|
|
181
|
-
o(_, {
|
|
182
|
-
color: "green",
|
|
183
|
-
size: "small",
|
|
184
|
-
onClick: G
|
|
185
|
-
}, {
|
|
186
|
-
default: u(() => [
|
|
187
|
-
l[5] || (l[5] = e("span", { class: "fa-solid fa-plus" }, null, -1)),
|
|
188
|
-
k(" " + a(n(r)("main.add")), 1)
|
|
189
|
-
]),
|
|
190
|
-
_: 1
|
|
191
|
-
})
|
|
192
|
-
])
|
|
193
|
-
])
|
|
194
|
-
]),
|
|
195
|
-
o(n(V), {
|
|
196
|
-
show: w.value,
|
|
197
|
-
"onUpdate:show": l[1] || (l[1] = (s) => w.value = s),
|
|
198
|
-
class: "custom-card",
|
|
199
|
-
preset: "card",
|
|
200
|
-
title: n(r)("servers.add_server"),
|
|
201
|
-
bordered: !1,
|
|
202
|
-
style: { width: "800px" },
|
|
203
|
-
segmented: { content: "soft", footer: "soft" }
|
|
204
|
-
}, {
|
|
205
|
-
default: u(() => [
|
|
206
|
-
e("div", ce, [
|
|
207
|
-
o(n(ae), {
|
|
208
|
-
value: v.value,
|
|
209
|
-
"onUpdate:value": l[0] || (l[0] = (s) => v.value = s),
|
|
210
|
-
filterable: "",
|
|
211
|
-
placeholder: n(r)("users.servers_privileges_placeholder"),
|
|
212
|
-
options: f.value,
|
|
213
|
-
"render-label": O,
|
|
214
|
-
loading: S.value,
|
|
215
|
-
clearable: "",
|
|
216
|
-
remote: "",
|
|
217
|
-
onSearch: M
|
|
218
|
-
}, {
|
|
219
|
-
action: u(() => [...l[6] || (l[6] = [
|
|
220
|
-
e("div", null, [
|
|
221
|
-
e("div", { class: "m-2" }, [
|
|
222
|
-
e("span", null, "...")
|
|
223
|
-
])
|
|
224
|
-
], -1)
|
|
225
|
-
])]),
|
|
226
|
-
_: 1
|
|
227
|
-
}, 8, ["value", "placeholder", "options", "loading"])
|
|
228
|
-
]),
|
|
229
|
-
e("div", me, [
|
|
230
|
-
o(_, {
|
|
231
|
-
color: "green",
|
|
232
|
-
onClick: A
|
|
233
|
-
}, {
|
|
234
|
-
default: u(() => [
|
|
235
|
-
l[7] || (l[7] = e("span", { class: "fa-solid fa-plus" }, null, -1)),
|
|
236
|
-
k(" " + a(n(r)("main.add")), 1)
|
|
237
|
-
]),
|
|
238
|
-
_: 1
|
|
239
|
-
})
|
|
240
|
-
])
|
|
241
|
-
]),
|
|
242
|
-
_: 1
|
|
243
|
-
}, 8, ["show", "title"]),
|
|
244
|
-
o(n(V), {
|
|
245
|
-
show: x.value,
|
|
246
|
-
"onUpdate:show": l[2] || (l[2] = (s) => x.value = s),
|
|
247
|
-
class: "custom-card",
|
|
248
|
-
preset: "card",
|
|
249
|
-
title: n(r)("users.server_permission_edit"),
|
|
250
|
-
bordered: !1,
|
|
251
|
-
style: { width: "800px" },
|
|
252
|
-
segmented: { content: "soft", footer: "soft" }
|
|
253
|
-
}, {
|
|
254
|
-
default: u(() => [
|
|
255
|
-
o(n(L), {
|
|
256
|
-
bordered: !1,
|
|
257
|
-
"single-line": !0,
|
|
258
|
-
size: "small",
|
|
259
|
-
class: "mb-8"
|
|
260
|
-
}, {
|
|
261
|
-
default: u(() => [
|
|
262
|
-
e("tbody", null, [
|
|
263
|
-
e("tr", null, [
|
|
264
|
-
e("td", null, [
|
|
265
|
-
e("strong", null, a(n(r)("servers.name")) + ":", 1)
|
|
266
|
-
]),
|
|
267
|
-
e("td", null, a(i.value.name), 1)
|
|
268
|
-
]),
|
|
269
|
-
e("tr", null, [
|
|
270
|
-
e("td", null, [
|
|
271
|
-
e("strong", null, a(n(r)("servers.ip_port")) + ":", 1)
|
|
272
|
-
]),
|
|
273
|
-
e("td", null, a(i.value.server_ip) + ":" + a(i.value.server_port), 1)
|
|
274
|
-
]),
|
|
275
|
-
e("tr", null, [
|
|
276
|
-
e("td", null, [
|
|
277
|
-
e("strong", null, a(n(r)("servers.game")) + ":", 1)
|
|
278
|
-
]),
|
|
279
|
-
e("td", null, [
|
|
280
|
-
o(E, {
|
|
281
|
-
game: i.value.game.code,
|
|
282
|
-
class: "mr-2"
|
|
283
|
-
}, null, 8, ["game"]),
|
|
284
|
-
k(" " + a(i.value.game.name), 1)
|
|
285
|
-
])
|
|
286
|
-
])
|
|
287
|
-
])
|
|
288
|
-
]),
|
|
289
|
-
_: 1
|
|
290
|
-
}),
|
|
291
|
-
e("div", fe, [
|
|
292
|
-
(g(!0), p(y, null, $(J.value, (s) => (g(), p("div", pe, [
|
|
293
|
-
e("div", ge, a(K(s.name)), 1),
|
|
294
|
-
o(n(re), {
|
|
295
|
-
value: s.value,
|
|
296
|
-
"onUpdate:value": (c) => s.value = c
|
|
297
|
-
}, null, 8, ["value", "onUpdate:value"])
|
|
298
|
-
]))), 256))
|
|
299
|
-
]),
|
|
300
|
-
o(_, {
|
|
301
|
-
color: "green",
|
|
302
|
-
onClick: Q
|
|
303
|
-
}, {
|
|
304
|
-
default: u(() => [
|
|
305
|
-
l[8] || (l[8] = e("i", { class: "fa-solid fa-floppy-disk" }, null, -1)),
|
|
306
|
-
e("span", _e, " " + a(n(r)("main.save")), 1)
|
|
307
|
-
]),
|
|
308
|
-
_: 1
|
|
309
|
-
})
|
|
310
|
-
]),
|
|
311
|
-
_: 1
|
|
312
|
-
}, 8, ["show", "title"])
|
|
313
|
-
], 64));
|
|
314
|
-
}
|
|
315
|
-
};
|
|
316
|
-
export {
|
|
317
|
-
Pe as default
|
|
318
|
-
};
|