@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,110 +0,0 @@
|
|
|
1
|
-
import { mergeModels as h, useModel as b, reactive as g, computed as x, h as a, createElementBlock as V, openBlock as _, normalizeClass as N, createElementVNode as n, createVNode as u, withCtx as f, unref as y, createTextVNode as w, toDisplayString as C } from "vue";
|
|
2
|
-
import { t as r, _ as c } from "./index-Fmomw6wi.js";
|
|
3
|
-
import { NSwitch as I, NInput as z, NDataTable as M } from "naive-ui";
|
|
4
|
-
const T = { class: "mb-3" }, A = { class: "flex justify-center mt-2" }, D = {
|
|
5
|
-
__name: "InputManyList",
|
|
6
|
-
props: /* @__PURE__ */ h({
|
|
7
|
-
labels: Array,
|
|
8
|
-
keys: Array,
|
|
9
|
-
inputTypes: Array,
|
|
10
|
-
name: String
|
|
11
|
-
}, {
|
|
12
|
-
modelValue: {},
|
|
13
|
-
modelModifiers: {}
|
|
14
|
-
}),
|
|
15
|
-
emits: ["update:modelValue"],
|
|
16
|
-
setup(m) {
|
|
17
|
-
const t = m, s = b(m, "modelValue");
|
|
18
|
-
g({
|
|
19
|
-
text: "form-control",
|
|
20
|
-
checkbox: ""
|
|
21
|
-
});
|
|
22
|
-
const k = (l) => {
|
|
23
|
-
s.value.splice(l, 1);
|
|
24
|
-
}, d = () => {
|
|
25
|
-
let l = {};
|
|
26
|
-
t.keys.forEach((e) => {
|
|
27
|
-
l[e] = "";
|
|
28
|
-
}), s.value.push(l);
|
|
29
|
-
}, v = x(() => {
|
|
30
|
-
let l = [];
|
|
31
|
-
for (let e = 0; e < t.labels.length; e++)
|
|
32
|
-
l.push({
|
|
33
|
-
title: t.labels[e],
|
|
34
|
-
key: t.keys[e],
|
|
35
|
-
render(o, p) {
|
|
36
|
-
switch (t.inputTypes[e]) {
|
|
37
|
-
case "text":
|
|
38
|
-
return a(z, {
|
|
39
|
-
value: o[t.keys[e]],
|
|
40
|
-
onUpdateValue(i) {
|
|
41
|
-
s.value[p][t.keys[e]] = i;
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
case "checkbox":
|
|
45
|
-
return a(I, {
|
|
46
|
-
value: o[t.keys[e]],
|
|
47
|
-
onUpdateValue(i) {
|
|
48
|
-
s.value[p][t.keys[e]] = i;
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
return l.push({
|
|
55
|
-
title: r("main.actions"),
|
|
56
|
-
render(e, o) {
|
|
57
|
-
return [
|
|
58
|
-
a(c, {
|
|
59
|
-
color: "red",
|
|
60
|
-
size: "small",
|
|
61
|
-
text: r("main.delete"),
|
|
62
|
-
onClick: () => {
|
|
63
|
-
k(o);
|
|
64
|
-
}
|
|
65
|
-
}, [
|
|
66
|
-
a("i", { class: "fa-solid fa-times mr-0.5" }),
|
|
67
|
-
a("span", { class: "hidden lg:inline" }, r("main.delete"))
|
|
68
|
-
])
|
|
69
|
-
];
|
|
70
|
-
}
|
|
71
|
-
}), l;
|
|
72
|
-
});
|
|
73
|
-
return (l, e) => (_(), V("div", {
|
|
74
|
-
class: N(["block w-full overflow-auto scrolling-touch", l.$attrs.class])
|
|
75
|
-
}, [
|
|
76
|
-
n("div", T, [
|
|
77
|
-
u(c, {
|
|
78
|
-
color: "green",
|
|
79
|
-
size: "small",
|
|
80
|
-
onClick: d
|
|
81
|
-
}, {
|
|
82
|
-
default: f(() => [...e[0] || (e[0] = [
|
|
83
|
-
n("span", { class: "fa-solid fa-plus" }, null, -1)
|
|
84
|
-
])]),
|
|
85
|
-
_: 1
|
|
86
|
-
})
|
|
87
|
-
]),
|
|
88
|
-
u(y(M), {
|
|
89
|
-
columns: v.value,
|
|
90
|
-
data: s.value
|
|
91
|
-
}, null, 8, ["columns", "data"]),
|
|
92
|
-
n("div", A, [
|
|
93
|
-
u(c, {
|
|
94
|
-
color: "green",
|
|
95
|
-
size: "small",
|
|
96
|
-
onClick: d
|
|
97
|
-
}, {
|
|
98
|
-
default: f(() => [
|
|
99
|
-
e[1] || (e[1] = n("span", { class: "fa-solid fa-plus" }, null, -1)),
|
|
100
|
-
w(" " + C(y(r)("main.add")), 1)
|
|
101
|
-
]),
|
|
102
|
-
_: 1
|
|
103
|
-
})
|
|
104
|
-
])
|
|
105
|
-
], 2));
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
export {
|
|
109
|
-
D as default
|
|
110
|
-
};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { mergeModels as p, useModel as v, createElementBlock as a, openBlock as o, createElementVNode as l, Fragment as _, renderList as k, createVNode as u, unref as x, withCtx as i } from "vue";
|
|
2
|
-
import { _ as m } from "./index-Fmomw6wi.js";
|
|
3
|
-
import { NInput as g } from "naive-ui";
|
|
4
|
-
const V = { class: "flex flex-wrap" }, w = { class: "md:w-full pr-4 pl-4 relative flex items-stretch w-full" }, C = { class: "flex justify-center mt-2" }, M = {
|
|
5
|
-
__name: "InputTextList",
|
|
6
|
-
props: /* @__PURE__ */ p({
|
|
7
|
-
label: String,
|
|
8
|
-
name: String
|
|
9
|
-
}, {
|
|
10
|
-
modelValue: {},
|
|
11
|
-
modelModifiers: {}
|
|
12
|
-
}),
|
|
13
|
-
emits: ["update:modelValue"],
|
|
14
|
-
setup(d) {
|
|
15
|
-
const e = v(d, "modelValue"), c = (n) => {
|
|
16
|
-
e.value.splice(n, 1);
|
|
17
|
-
}, f = () => {
|
|
18
|
-
e.value ? e.value.push("") : e.value = [""];
|
|
19
|
-
};
|
|
20
|
-
return (n, t) => (o(), a("div", null, [
|
|
21
|
-
(o(!0), a(_, null, k(e.value, (I, s) => (o(), a("div", {
|
|
22
|
-
class: "mb-3 deletable",
|
|
23
|
-
key: s
|
|
24
|
-
}, [
|
|
25
|
-
l("div", V, [
|
|
26
|
-
l("div", w, [
|
|
27
|
-
u(x(g), {
|
|
28
|
-
type: "text",
|
|
29
|
-
value: e.value[s],
|
|
30
|
-
"onUpdate:value": (r) => e.value[s] = r
|
|
31
|
-
}, null, 8, ["value", "onUpdate:value"]),
|
|
32
|
-
u(m, {
|
|
33
|
-
color: "red",
|
|
34
|
-
size: "small",
|
|
35
|
-
class: "ml-1",
|
|
36
|
-
onClick: (r) => c(s)
|
|
37
|
-
}, {
|
|
38
|
-
default: i(() => [...t[0] || (t[0] = [
|
|
39
|
-
l("span", { class: "fa-solid fa-times" }, null, -1)
|
|
40
|
-
])]),
|
|
41
|
-
_: 1
|
|
42
|
-
}, 8, ["onClick"])
|
|
43
|
-
])
|
|
44
|
-
])
|
|
45
|
-
]))), 128)),
|
|
46
|
-
l("div", C, [
|
|
47
|
-
u(m, {
|
|
48
|
-
color: "green",
|
|
49
|
-
size: "small",
|
|
50
|
-
onClick: f
|
|
51
|
-
}, {
|
|
52
|
-
default: i(() => [...t[1] || (t[1] = [
|
|
53
|
-
l("span", { class: "fa-solid fa-plus" }, null, -1)
|
|
54
|
-
])]),
|
|
55
|
-
_: 1
|
|
56
|
-
})
|
|
57
|
-
])
|
|
58
|
-
]));
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
export {
|
|
62
|
-
M as default
|
|
63
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ref as c, watch as p, onMounted as f, createElementBlock as d, createBlock as g, openBlock as r, createElementVNode as s } from "vue";
|
|
2
|
-
import { useRoute as m, useRouter as _ } from "vue-router";
|
|
3
|
-
import { f as x, I as P } from "./index-Fmomw6wi.js";
|
|
4
|
-
const R = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "flex items-center justify-center h-64"
|
|
7
|
-
}, z = {
|
|
8
|
-
__name: "PluginPendingView",
|
|
9
|
-
setup(h) {
|
|
10
|
-
const i = m(), o = _(), e = x(), a = c(!e.initialized);
|
|
11
|
-
function l() {
|
|
12
|
-
const t = i.params.pluginId;
|
|
13
|
-
e.registeredRoutes.some(
|
|
14
|
-
(u) => u.startsWith(`plugin.${t}.`)
|
|
15
|
-
) ? (o.removeRoute("plugin.pending"), o.replace(i.fullPath)) : a.value = !1;
|
|
16
|
-
}
|
|
17
|
-
return p(() => e.initialized, (t) => {
|
|
18
|
-
t && l();
|
|
19
|
-
}), f(() => {
|
|
20
|
-
e.initialized && l();
|
|
21
|
-
}), (t, n) => a.value ? (r(), d("div", R, [...n[0] || (n[0] = [
|
|
22
|
-
s("div", { class: "text-center" }, [
|
|
23
|
-
s("i", { class: "fas fa-spinner fa-spin text-4xl text-stone-400" }),
|
|
24
|
-
s("p", { class: "mt-4 text-stone-600 dark:text-stone-400" }, "Loading plugin...")
|
|
25
|
-
], -1)
|
|
26
|
-
])])) : (r(), g(P, { key: 1 }));
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
export {
|
|
30
|
-
z as default
|
|
31
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
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
|
-
import { NInput as C } from "naive-ui";
|
|
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 = {
|
|
7
|
-
ref: "consoleRef",
|
|
8
|
-
class: "whitespace-pre-wrap mt-4 flex h-[40vh] overflow-y-scroll overscroll-contain"
|
|
9
|
-
}, I = {
|
|
10
|
-
key: 0,
|
|
11
|
-
class: "flex w-full items-center justify-center"
|
|
12
|
-
}, K = { key: 1 }, j = {
|
|
13
|
-
key: 0,
|
|
14
|
-
class: "gap-x-2 mt-2"
|
|
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 = {
|
|
16
|
-
__name: "RconConsole",
|
|
17
|
-
props: {
|
|
18
|
-
serverId: null
|
|
19
|
-
},
|
|
20
|
-
setup(M) {
|
|
21
|
-
const r = $(), { output: f, fastRcon: u } = V(r), n = v(""), p = g(() => r.loading), d = () => {
|
|
22
|
-
r.sendCommand(n.value).then(() => {
|
|
23
|
-
n.value = "";
|
|
24
|
-
}).catch((s) => {
|
|
25
|
-
S(s);
|
|
26
|
-
});
|
|
27
|
-
}, _ = (s) => {
|
|
28
|
-
n.value = s, d();
|
|
29
|
-
};
|
|
30
|
-
return h(() => {
|
|
31
|
-
r.fetchFastRcon();
|
|
32
|
-
}), (s, a) => (o(), e("div", B, [
|
|
33
|
-
t("div", E, [
|
|
34
|
-
t("div", F, [
|
|
35
|
-
p.value ? (o(), e("div", I, [
|
|
36
|
-
c(l(R))
|
|
37
|
-
])) : (o(), e("div", K, m(l(f)), 1))
|
|
38
|
-
], 512)
|
|
39
|
-
]),
|
|
40
|
-
l(u) ? (o(), e("div", j, [
|
|
41
|
-
(o(!0), e(k, null, b(l(u), (i) => (o(), e("span", {
|
|
42
|
-
onClick: (T) => _(i.command),
|
|
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"
|
|
44
|
-
}, m(i.info), 9, z))), 256))
|
|
45
|
-
])) : x("", !0),
|
|
46
|
-
t("div", A, [
|
|
47
|
-
t("div", D, [
|
|
48
|
-
c(l(C), {
|
|
49
|
-
value: n.value,
|
|
50
|
-
"onUpdate:value": a[0] || (a[0] = (i) => n.value = i),
|
|
51
|
-
onKeyup: y(d, ["enter"]),
|
|
52
|
-
disabled: p.value,
|
|
53
|
-
type: "text",
|
|
54
|
-
placeholder: ""
|
|
55
|
-
}, null, 8, ["value", "disabled"])
|
|
56
|
-
]),
|
|
57
|
-
c(N, {
|
|
58
|
-
color: "black",
|
|
59
|
-
size: "small",
|
|
60
|
-
onClick: d
|
|
61
|
-
}, {
|
|
62
|
-
default: w(() => [
|
|
63
|
-
a[1] || (a[1] = t("i", { class: "fa-solid fa-terminal" }, null, -1)),
|
|
64
|
-
t("span", L, " " + m(s.trans("main.send")), 1)
|
|
65
|
-
]),
|
|
66
|
-
_: 1
|
|
67
|
-
})
|
|
68
|
-
])
|
|
69
|
-
]));
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
export {
|
|
73
|
-
O as default
|
|
74
|
-
};
|
|
@@ -1,98 +0,0 @@
|
|
|
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-Fmomw6wi.js";
|
|
3
|
-
import { NDivider as H } from "naive-ui";
|
|
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
|
-
key: 0,
|
|
6
|
-
class: "bg-red-500 text-white dark:bg-red-800 dark:text-stone-200 font-bold rounded px-4 py-2 mt-6 mb-3"
|
|
7
|
-
}, M = {
|
|
8
|
-
key: 1,
|
|
9
|
-
class: "mt-4"
|
|
10
|
-
}, U = { class: "relative flex items-stretch w-full" }, L = { class: "w-full" }, j = { class: "inline" }, q = {
|
|
11
|
-
key: 0,
|
|
12
|
-
class: "fa-solid fa-gear fa-spin"
|
|
13
|
-
}, z = ["placeholder"], F = { key: 0 }, G = { key: 1 }, Q = {
|
|
14
|
-
__name: "ServerConsole",
|
|
15
|
-
props: {
|
|
16
|
-
serverId: Number,
|
|
17
|
-
consoleHostname: String,
|
|
18
|
-
serverActive: Boolean,
|
|
19
|
-
sendCommandAvailable: Boolean
|
|
20
|
-
},
|
|
21
|
-
setup(a) {
|
|
22
|
-
const h = a, r = l(), f = l(), g = l(null), i = l(null), d = l(!1), m = l(!1), u = l(!0), c = l(!0);
|
|
23
|
-
function x() {
|
|
24
|
-
c.value && r.value && r.value.scrollTo({ top: r.value.scrollHeight, behavior: "smooth" });
|
|
25
|
-
}
|
|
26
|
-
function p() {
|
|
27
|
-
u.value && _.get(`/api/servers/${h.serverId}/console`).then((e) => {
|
|
28
|
-
g.value = S(e.data.console, /(\r\n|\n|\r)/gm, `
|
|
29
|
-
`), setTimeout(x, 1e3);
|
|
30
|
-
}).catch((e) => {
|
|
31
|
-
console.log(e), u.value = !1;
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
function y() {
|
|
35
|
-
d.value || (d.value = !0, m.value = !0, _.post(`/api/servers/${h.serverId}/console`, { command: i.value }).then((e) => {
|
|
36
|
-
i.value = "", d.value = !1, u.value = !0, setTimeout(p, 1e3);
|
|
37
|
-
}).catch((e) => {
|
|
38
|
-
d.value = !1, console.log(e), D(e);
|
|
39
|
-
}).finally(() => {
|
|
40
|
-
m.value = !1, setTimeout(() => {
|
|
41
|
-
f.value && f.value.select();
|
|
42
|
-
}, 200);
|
|
43
|
-
}));
|
|
44
|
-
}
|
|
45
|
-
let w;
|
|
46
|
-
return C(() => {
|
|
47
|
-
p(), w = setInterval(p, 1e4);
|
|
48
|
-
}), N(() => {
|
|
49
|
-
u.value = !1, clearInterval(w);
|
|
50
|
-
}), (e, n) => (s(), t("div", null, [
|
|
51
|
-
o("div", $, [
|
|
52
|
-
o("div", E, [
|
|
53
|
-
n[2] || (n[2] = o("div", { class: "top mb-2 flex" }, [
|
|
54
|
-
o("div", { class: "h-3 w-3 bg-red-500 rounded-full" }),
|
|
55
|
-
o("div", { class: "ml-2 h-3 w-3 bg-orange-300 rounded-full" }),
|
|
56
|
-
o("div", { class: "ml-2 h-3 w-3 bg-green-500 rounded-full" })
|
|
57
|
-
], -1)),
|
|
58
|
-
a.serverActive ? k("", !0) : (s(), t("div", K, v(e.trans("servers.offline_console_msg")), 1)),
|
|
59
|
-
o("div", {
|
|
60
|
-
ref_key: "consoleRef",
|
|
61
|
-
ref: r,
|
|
62
|
-
class: "break-all whitespace-pre-wrap mt-4 flex h-[60vh] overflow-y-scroll overscroll-contain"
|
|
63
|
-
}, v(g.value), 513),
|
|
64
|
-
a.serverActive && a.sendCommandAvailable ? (s(), t("div", M, [
|
|
65
|
-
o("div", U, [
|
|
66
|
-
o("div", L, [
|
|
67
|
-
o("div", j, v(a.consoleHostname) + ":> ", 1),
|
|
68
|
-
m.value ? (s(), t("i", q)) : I((s(), t("input", {
|
|
69
|
-
key: 1,
|
|
70
|
-
onKeyup: A(y, ["enter"]),
|
|
71
|
-
"onUpdate:modelValue": n[0] || (n[0] = (b) => i.value = b),
|
|
72
|
-
type: "text",
|
|
73
|
-
ref_key: "inputRef",
|
|
74
|
-
ref: f,
|
|
75
|
-
class: "terminal-input inline md:w-[40vw] lg:w-[50vw]",
|
|
76
|
-
placeholder: e.trans("servers.enter_command") + " ..."
|
|
77
|
-
}, null, 40, z)), [
|
|
78
|
-
[V, i.value]
|
|
79
|
-
])
|
|
80
|
-
])
|
|
81
|
-
])
|
|
82
|
-
])) : k("", !0),
|
|
83
|
-
T(B(H), { dashed: "" }),
|
|
84
|
-
o("div", {
|
|
85
|
-
class: "p-1 cursor-pointer inline",
|
|
86
|
-
onClick: n[1] || (n[1] = (b) => c.value = !c.value)
|
|
87
|
-
}, [
|
|
88
|
-
c.value ? (s(), t("span", F, "[x]")) : (s(), t("span", G, "[ ]")),
|
|
89
|
-
R(" " + v(e.trans("main.autoscroll")), 1)
|
|
90
|
-
])
|
|
91
|
-
])
|
|
92
|
-
])
|
|
93
|
-
]));
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
export {
|
|
97
|
-
Q as default
|
|
98
|
-
};
|