@gameap/frontend 4.1.0-dev7 → 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,84 +0,0 @@
|
|
|
1
|
-
import { computed as u, onMounted as x, ref as N, resolveComponent as b, createElementBlock as V, openBlock as M, Fragment as w, createVNode as a, unref as n, withCtx as f, createElementVNode as p, toDisplayString as y } from "vue";
|
|
2
|
-
import { q as A, t as r, e as d, k as D, _ as E, n as F } from "./index-Fmomw6wi.js";
|
|
3
|
-
import { u as O } from "./clientCertificates-Dm0Bh62v.js";
|
|
4
|
-
import { useRoute as R, useRouter as $ } from "vue-router";
|
|
5
|
-
import { storeToRefs as _ } from "pinia";
|
|
6
|
-
import { _ as j } from "./UpdateNodeForm-BQDjp3CR.js";
|
|
7
|
-
import { s as q } from "./snakeCase-o1mQEFQr.js";
|
|
8
|
-
const B = { class: "hidden lg:inline" }, J = {
|
|
9
|
-
__name: "AdminNodesCreateView",
|
|
10
|
-
setup(L) {
|
|
11
|
-
R();
|
|
12
|
-
const v = $(), s = A(), i = O(), C = u(() => [
|
|
13
|
-
{ route: "/", text: "GameAP", icon: "gicon gicon-gameap" },
|
|
14
|
-
{ route: { name: "admin.nodes.index" }, text: r("dedicated_servers.dedicated_servers") },
|
|
15
|
-
{ text: r("dedicated_servers.create") }
|
|
16
|
-
]);
|
|
17
|
-
x(() => {
|
|
18
|
-
i.fetchClientCertificates().catch((e) => {
|
|
19
|
-
d(e);
|
|
20
|
-
}), s.fetchAutoSetupData().catch((e) => {
|
|
21
|
-
d(e);
|
|
22
|
-
});
|
|
23
|
-
});
|
|
24
|
-
const { certificates: g } = _(i), { autoSetupData: c } = _(s), k = u(() => i.loading.value), h = u(() => g.value.map((e) => ({
|
|
25
|
-
label: e.fingerprint,
|
|
26
|
-
value: e.id
|
|
27
|
-
}))), o = N({
|
|
28
|
-
name: "",
|
|
29
|
-
description: "",
|
|
30
|
-
location: ""
|
|
31
|
-
}), m = async () => {
|
|
32
|
-
o.value.serverCertificateFile ? o.value.gdaemonServerCert = await o.value.serverCertificateFile.text() : o.value.gdaemonServerCert = "";
|
|
33
|
-
const e = Object.fromEntries(
|
|
34
|
-
Object.entries(o.value).map(([t, l]) => [q(t), l])
|
|
35
|
-
);
|
|
36
|
-
s.createNode(e).then(() => {
|
|
37
|
-
F({
|
|
38
|
-
content: r("dedicated_servers.create_success_msg"),
|
|
39
|
-
type: "success"
|
|
40
|
-
}, () => {
|
|
41
|
-
v.push({ name: "admin.nodes.index" });
|
|
42
|
-
});
|
|
43
|
-
}).catch((t) => {
|
|
44
|
-
d(t);
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
return (e, t) => {
|
|
48
|
-
const l = b("CreateNodeModal");
|
|
49
|
-
return M(), V(w, null, [
|
|
50
|
-
a(n(D), { items: C.value }, null, 8, ["items"]),
|
|
51
|
-
a(j, {
|
|
52
|
-
loading: k.value,
|
|
53
|
-
modelValue: o.value,
|
|
54
|
-
"onUpdate:modelValue": t[0] || (t[0] = (S) => o.value = S),
|
|
55
|
-
onSend: m,
|
|
56
|
-
"client-certificate-options": h.value
|
|
57
|
-
}, {
|
|
58
|
-
button: f(() => [
|
|
59
|
-
a(E, {
|
|
60
|
-
class: "mt-2",
|
|
61
|
-
color: "green",
|
|
62
|
-
onClick: m
|
|
63
|
-
}, {
|
|
64
|
-
default: f(() => [
|
|
65
|
-
t[1] || (t[1] = p("i", { class: "fa-regular fa-plus-square mr-0.5" }, null, -1)),
|
|
66
|
-
p("span", B, " " + y(n(r)("main.create")), 1)
|
|
67
|
-
]),
|
|
68
|
-
_: 1
|
|
69
|
-
})
|
|
70
|
-
]),
|
|
71
|
-
_: 1
|
|
72
|
-
}, 8, ["loading", "modelValue", "client-certificate-options"]),
|
|
73
|
-
a(l, {
|
|
74
|
-
link: n(c).link,
|
|
75
|
-
token: n(c).token,
|
|
76
|
-
host: n(c).host
|
|
77
|
-
}, null, 8, ["link", "token", "host"])
|
|
78
|
-
], 64);
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
export {
|
|
83
|
-
J as default
|
|
84
|
-
};
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import { computed as m, ref as x, onMounted as h, createElementBlock as z, openBlock as C, Fragment as w, createVNode as n, unref as s, withCtx as o, createElementVNode as l, toDisplayString as u, h as t } from "vue";
|
|
2
|
-
import { q as D, t as e, e as p, k as S, _ as r, l as T, w as $, n as q } from "./index-Fmomw6wi.js";
|
|
3
|
-
import { storeToRefs as B } from "pinia";
|
|
4
|
-
import { NDataTable as E, NEmpty as V } from "naive-ui";
|
|
5
|
-
const j = {
|
|
6
|
-
__name: "AdminNodesView",
|
|
7
|
-
setup(A) {
|
|
8
|
-
const d = D(), f = m(() => [
|
|
9
|
-
{ route: "/", text: "GameAP", icon: "gicon gicon-gameap" },
|
|
10
|
-
{ route: { name: "admin.nodes.index" }, text: e("sidebar.dedicated_servers") }
|
|
11
|
-
]), _ = () => [
|
|
12
|
-
{
|
|
13
|
-
title: e("dedicated_servers.name"),
|
|
14
|
-
key: "name"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
title: e("dedicated_servers.location"),
|
|
18
|
-
key: "location"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
title: e("dedicated_servers.provider"),
|
|
22
|
-
key: "provider"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
title: e("dedicated_servers.ip"),
|
|
26
|
-
key: "ip",
|
|
27
|
-
render(i) {
|
|
28
|
-
return $(i.ip, ", ");
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
title: e("dedicated_servers.os"),
|
|
33
|
-
key: "os"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
title: e("main.actions"),
|
|
37
|
-
render(i) {
|
|
38
|
-
return [
|
|
39
|
-
t(r, {
|
|
40
|
-
color: "green",
|
|
41
|
-
size: "small",
|
|
42
|
-
class: "mr-0.5",
|
|
43
|
-
route: { name: "admin.nodes.view", params: { id: i.id } }
|
|
44
|
-
}, [
|
|
45
|
-
t("i", { class: "fa-solid fa-eye" }),
|
|
46
|
-
t("span", { class: "hidden lg:inline" }, e("main.view"))
|
|
47
|
-
]),
|
|
48
|
-
t(r, {
|
|
49
|
-
color: "blue",
|
|
50
|
-
size: "small",
|
|
51
|
-
class: "mr-0.5",
|
|
52
|
-
route: { name: "admin.nodes.edit", params: { id: i.id } }
|
|
53
|
-
}, [
|
|
54
|
-
t("i", { class: "fa-solid fa-pen-to-square" }),
|
|
55
|
-
t("span", { class: "hidden lg:inline" }, e("main.edit"))
|
|
56
|
-
]),
|
|
57
|
-
t(r, {
|
|
58
|
-
color: "red",
|
|
59
|
-
size: "small",
|
|
60
|
-
text: e("main.delete"),
|
|
61
|
-
onClick: () => {
|
|
62
|
-
b(i.id);
|
|
63
|
-
}
|
|
64
|
-
}, [
|
|
65
|
-
t("i", { class: "fa-solid fa-trash" }),
|
|
66
|
-
t("span", { class: "hidden lg:inline" }, e("main.delete"))
|
|
67
|
-
])
|
|
68
|
-
];
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
], { loading: g, nodes: v } = B(d), y = x(_()), k = {
|
|
72
|
-
pageSize: 20
|
|
73
|
-
};
|
|
74
|
-
h(() => {
|
|
75
|
-
c();
|
|
76
|
-
});
|
|
77
|
-
const c = () => {
|
|
78
|
-
d.fetchNodesByFilter([]).catch((i) => {
|
|
79
|
-
p(i);
|
|
80
|
-
});
|
|
81
|
-
}, N = m(() => v.value.map((i) => ({
|
|
82
|
-
id: i.id,
|
|
83
|
-
name: i.name,
|
|
84
|
-
location: i.location,
|
|
85
|
-
provider: i.provider,
|
|
86
|
-
ip: i.ip,
|
|
87
|
-
os: i.os
|
|
88
|
-
}))), b = (i) => {
|
|
89
|
-
window.$dialog.success({
|
|
90
|
-
title: e("dedicated_servers.delete_confirm_msg"),
|
|
91
|
-
positiveText: e("main.yes"),
|
|
92
|
-
negativeText: e("main.no"),
|
|
93
|
-
closable: !1,
|
|
94
|
-
onPositiveClick: () => {
|
|
95
|
-
d.deleteNode(i).then(() => {
|
|
96
|
-
q({
|
|
97
|
-
content: e("dedicated_servers.delete_success_msg"),
|
|
98
|
-
type: "success"
|
|
99
|
-
}, () => {
|
|
100
|
-
c();
|
|
101
|
-
});
|
|
102
|
-
}).catch((a) => {
|
|
103
|
-
p(a);
|
|
104
|
-
});
|
|
105
|
-
},
|
|
106
|
-
onNegativeClick: () => {
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
};
|
|
110
|
-
return (i, a) => (C(), z(w, null, [
|
|
111
|
-
n(s(S), { items: f.value }, null, 8, ["items"]),
|
|
112
|
-
n(r, {
|
|
113
|
-
color: "green",
|
|
114
|
-
size: "middle",
|
|
115
|
-
class: "mb-5 mr-1",
|
|
116
|
-
route: { name: "admin.nodes.create" }
|
|
117
|
-
}, {
|
|
118
|
-
default: o(() => [
|
|
119
|
-
a[0] || (a[0] = l("i", { class: "fa fa-plus-square mr-0.5" }, null, -1)),
|
|
120
|
-
l("span", null, u(s(e)("dedicated_servers.create")), 1)
|
|
121
|
-
]),
|
|
122
|
-
_: 1
|
|
123
|
-
}),
|
|
124
|
-
n(r, {
|
|
125
|
-
color: "orange",
|
|
126
|
-
size: "middle",
|
|
127
|
-
class: "mb-5",
|
|
128
|
-
route: { name: "admin.client_certificates.index" }
|
|
129
|
-
}, {
|
|
130
|
-
default: o(() => [
|
|
131
|
-
a[1] || (a[1] = l("i", { class: "fa-solid fa-certificate mr-0.5" }, null, -1)),
|
|
132
|
-
l("span", null, u(s(e)("client_certificates.client_certificates")), 1)
|
|
133
|
-
]),
|
|
134
|
-
_: 1
|
|
135
|
-
}),
|
|
136
|
-
n(s(E), {
|
|
137
|
-
ref: "tableRef",
|
|
138
|
-
bordered: !1,
|
|
139
|
-
"single-line": !0,
|
|
140
|
-
columns: y.value,
|
|
141
|
-
data: N.value,
|
|
142
|
-
loading: s(g),
|
|
143
|
-
pagination: k
|
|
144
|
-
}, {
|
|
145
|
-
loading: o(() => [
|
|
146
|
-
n(s(T))
|
|
147
|
-
]),
|
|
148
|
-
empty: o(() => [
|
|
149
|
-
n(s(V), {
|
|
150
|
-
description: s(e)("servers.empty_list")
|
|
151
|
-
}, null, 8, ["description"])
|
|
152
|
-
]),
|
|
153
|
-
_: 1
|
|
154
|
-
}, 8, ["columns", "data", "loading"])
|
|
155
|
-
], 64));
|
|
156
|
-
}
|
|
157
|
-
};
|
|
158
|
-
export {
|
|
159
|
-
j as default
|
|
160
|
-
};
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { mergeModels as R, ref as w, useModel as C, computed as F, createElementBlock as N, openBlock as V, createVNode as t, unref as e, withCtx as s, createElementVNode as d, toDisplayString as k } from "vue";
|
|
2
|
-
import { s as p, t as r, _ as L } from "./index-Fmomw6wi.js";
|
|
3
|
-
import { NForm as M, NFormItem as u, NSelect as S, NInput as n } from "naive-ui";
|
|
4
|
-
import { storeToRefs as q } from "pinia";
|
|
5
|
-
import { u as U } from "./gameList-CJAymSBL.js";
|
|
6
|
-
const W = { class: "hidden lg:inline" }, G = {
|
|
7
|
-
__name: "CreateModForm",
|
|
8
|
-
props: {
|
|
9
|
-
modelValue: {
|
|
10
|
-
game: "",
|
|
11
|
-
name: "",
|
|
12
|
-
remoteRepositoryLinux: "",
|
|
13
|
-
remoteRepositoryWindows: ""
|
|
14
|
-
},
|
|
15
|
-
modelModifiers: {}
|
|
16
|
-
},
|
|
17
|
-
emits: /* @__PURE__ */ R(["create"], ["update:modelValue"]),
|
|
18
|
-
setup(v, { emit: f }) {
|
|
19
|
-
const b = U(), i = w({}), o = C(v, "modelValue"), { games: y } = q(b), _ = {
|
|
20
|
-
game: {
|
|
21
|
-
required: !0,
|
|
22
|
-
validator: p(r("labels.game_id"))
|
|
23
|
-
},
|
|
24
|
-
name: {
|
|
25
|
-
required: !0,
|
|
26
|
-
validator: p(r("labels.name"))
|
|
27
|
-
}
|
|
28
|
-
}, g = f, c = () => {
|
|
29
|
-
i.value.validate().then(() => {
|
|
30
|
-
g("create");
|
|
31
|
-
});
|
|
32
|
-
}, x = F(() => {
|
|
33
|
-
let m = [];
|
|
34
|
-
return y.value.forEach((l) => {
|
|
35
|
-
m.push({
|
|
36
|
-
label: l.name,
|
|
37
|
-
value: l.code
|
|
38
|
-
});
|
|
39
|
-
}), m;
|
|
40
|
-
});
|
|
41
|
-
return (m, l) => (V(), N("div", null, [
|
|
42
|
-
t(e(M), {
|
|
43
|
-
"label-placement": "top",
|
|
44
|
-
"label-width": "auto",
|
|
45
|
-
ref_key: "modCreateFormRef",
|
|
46
|
-
ref: i,
|
|
47
|
-
model: o.value,
|
|
48
|
-
rules: _
|
|
49
|
-
}, {
|
|
50
|
-
default: s(() => [
|
|
51
|
-
t(e(u), {
|
|
52
|
-
label: e(r)("labels.game_id"),
|
|
53
|
-
path: "game"
|
|
54
|
-
}, {
|
|
55
|
-
default: s(() => [
|
|
56
|
-
t(e(S), {
|
|
57
|
-
filterable: "",
|
|
58
|
-
value: o.value.game,
|
|
59
|
-
"onUpdate:value": l[0] || (l[0] = (a) => o.value.game = a),
|
|
60
|
-
options: x.value
|
|
61
|
-
}, null, 8, ["value", "options"])
|
|
62
|
-
]),
|
|
63
|
-
_: 1
|
|
64
|
-
}, 8, ["label"]),
|
|
65
|
-
t(e(u), {
|
|
66
|
-
label: e(r)("labels.name"),
|
|
67
|
-
path: "name"
|
|
68
|
-
}, {
|
|
69
|
-
default: s(() => [
|
|
70
|
-
t(e(n), {
|
|
71
|
-
value: o.value.name,
|
|
72
|
-
"onUpdate:value": l[1] || (l[1] = (a) => o.value.name = a),
|
|
73
|
-
type: "text"
|
|
74
|
-
}, null, 8, ["value"])
|
|
75
|
-
]),
|
|
76
|
-
_: 1
|
|
77
|
-
}, 8, ["label"]),
|
|
78
|
-
t(e(u), {
|
|
79
|
-
label: e(r)("labels.remote_repository_linux"),
|
|
80
|
-
path: "remoteRepositoryLinux"
|
|
81
|
-
}, {
|
|
82
|
-
default: s(() => [
|
|
83
|
-
t(e(n), {
|
|
84
|
-
value: o.value.remoteRepositoryLinux,
|
|
85
|
-
"onUpdate:value": l[2] || (l[2] = (a) => o.value.remoteRepositoryLinux = a),
|
|
86
|
-
type: "text"
|
|
87
|
-
}, null, 8, ["value"])
|
|
88
|
-
]),
|
|
89
|
-
_: 1
|
|
90
|
-
}, 8, ["label"]),
|
|
91
|
-
t(e(u), {
|
|
92
|
-
label: e(r)("labels.remote_repository_windows"),
|
|
93
|
-
path: "remoteRepositoryWindows"
|
|
94
|
-
}, {
|
|
95
|
-
default: s(() => [
|
|
96
|
-
t(e(n), {
|
|
97
|
-
value: o.value.remoteRepositoryWindows,
|
|
98
|
-
"onUpdate:value": l[3] || (l[3] = (a) => o.value.remoteRepositoryWindows = a),
|
|
99
|
-
type: "text"
|
|
100
|
-
}, null, 8, ["value"])
|
|
101
|
-
]),
|
|
102
|
-
_: 1
|
|
103
|
-
}, 8, ["label"])
|
|
104
|
-
]),
|
|
105
|
-
_: 1
|
|
106
|
-
}, 8, ["model"]),
|
|
107
|
-
t(L, {
|
|
108
|
-
color: "green",
|
|
109
|
-
onClick: c
|
|
110
|
-
}, {
|
|
111
|
-
default: s(() => [
|
|
112
|
-
l[4] || (l[4] = d("i", { class: "fa-regular fa-square-plus" }, null, -1)),
|
|
113
|
-
d("span", W, " " + k(e(r)("main.create")), 1)
|
|
114
|
-
]),
|
|
115
|
-
_: 1
|
|
116
|
-
})
|
|
117
|
-
]));
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
export {
|
|
121
|
-
G as _
|
|
122
|
-
};
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { ref as f, onMounted as x, resolveComponent as d, createBlock as w, openBlock as b, withCtx as t, createVNode as r, unref as a, createElementVNode as n, createTextVNode as m } from "vue";
|
|
2
|
-
import { t as l } from "./index-Fmomw6wi.js";
|
|
3
|
-
const k = ["innerHTML"], v = ["innerHTML"], C = {
|
|
4
|
-
__name: "CreateNodeModal",
|
|
5
|
-
props: {
|
|
6
|
-
link: "",
|
|
7
|
-
host: "",
|
|
8
|
-
token: ""
|
|
9
|
-
},
|
|
10
|
-
setup(s) {
|
|
11
|
-
const o = f(!1);
|
|
12
|
-
return x(() => {
|
|
13
|
-
o.value = !0;
|
|
14
|
-
}), (h, e) => {
|
|
15
|
-
const i = d("n-tab-pane"), c = d("n-tabs"), p = d("n-card"), _ = d("n-modal");
|
|
16
|
-
return b(), w(_, {
|
|
17
|
-
class: "create-node-modal",
|
|
18
|
-
show: o.value,
|
|
19
|
-
"onUpdate:show": e[1] || (e[1] = (u) => o.value = u)
|
|
20
|
-
}, {
|
|
21
|
-
"header-extra": t(() => [
|
|
22
|
-
n("button", {
|
|
23
|
-
type: "button",
|
|
24
|
-
class: "btn-close",
|
|
25
|
-
"aria-label": "Close",
|
|
26
|
-
onClick: e[0] || (e[0] = (u) => o.value = !1)
|
|
27
|
-
}, [...e[2] || (e[2] = [
|
|
28
|
-
n("i", { class: "fa-solid fa-xmark" }, null, -1)
|
|
29
|
-
])])
|
|
30
|
-
]),
|
|
31
|
-
default: t(() => [
|
|
32
|
-
r(p, {
|
|
33
|
-
title: a(l)("dedicated_servers.autosetup_title"),
|
|
34
|
-
style: { "max-width": "800px", "min-height": "500px" },
|
|
35
|
-
bordered: !1,
|
|
36
|
-
size: "huge",
|
|
37
|
-
role: "dialog",
|
|
38
|
-
"aria-modal": "true"
|
|
39
|
-
}, {
|
|
40
|
-
default: t(() => [
|
|
41
|
-
r(c, {
|
|
42
|
-
type: "line",
|
|
43
|
-
class: "flex justify-between",
|
|
44
|
-
animated: ""
|
|
45
|
-
}, {
|
|
46
|
-
default: t(() => [
|
|
47
|
-
r(i, { name: "linux" }, {
|
|
48
|
-
tab: t(() => [...e[3] || (e[3] = [
|
|
49
|
-
n("i", { class: "fa-brands fa-linux mr-1" }, null, -1),
|
|
50
|
-
m("Linux ", -1)
|
|
51
|
-
])]),
|
|
52
|
-
default: t(() => [
|
|
53
|
-
n("div", {
|
|
54
|
-
class: "md:w-full pr-4 pl-4 m-6",
|
|
55
|
-
innerHTML: a(l)("dedicated_servers.autosetup_description_linux", {
|
|
56
|
-
host: s.host,
|
|
57
|
-
token: s.token
|
|
58
|
-
}) + "<code class='curl-link'>curl " + s.link + " | bash --</code><p class='text-center'><small>" + a(l)("dedicated_servers.autosetup_expire_msg") + "</small></p>"
|
|
59
|
-
}, null, 8, k)
|
|
60
|
-
]),
|
|
61
|
-
_: 1
|
|
62
|
-
}),
|
|
63
|
-
r(i, { name: "windows" }, {
|
|
64
|
-
tab: t(() => [...e[4] || (e[4] = [
|
|
65
|
-
n("i", { class: "fa-brands fa-windows mr-1" }, null, -1),
|
|
66
|
-
m("Windows ", -1)
|
|
67
|
-
])]),
|
|
68
|
-
default: t(() => [
|
|
69
|
-
n("div", {
|
|
70
|
-
class: "md:w-full pr-4 pl-4 m-6",
|
|
71
|
-
innerHTML: a(l)("dedicated_servers.autosetup_description_windows", {
|
|
72
|
-
host: s.host,
|
|
73
|
-
token: s.token
|
|
74
|
-
}) + "<p class='text-center'><small>" + a(l)("dedicated_servers.autosetup_expire_token_msg") + "</small></p>"
|
|
75
|
-
}, null, 8, v)
|
|
76
|
-
]),
|
|
77
|
-
_: 1
|
|
78
|
-
})
|
|
79
|
-
]),
|
|
80
|
-
_: 1
|
|
81
|
-
})
|
|
82
|
-
]),
|
|
83
|
-
_: 1
|
|
84
|
-
}, 8, ["title"])
|
|
85
|
-
]),
|
|
86
|
-
_: 1
|
|
87
|
-
}, 8, ["show"]);
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
export {
|
|
92
|
-
C as default
|
|
93
|
-
};
|