@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,53 +1,54 @@
|
|
|
1
|
-
import { ref as G, computed as g, onMounted as Z, resolveComponent as c, createElementBlock as S, openBlock as _, Fragment as L, createVNode as
|
|
2
|
-
import {
|
|
3
|
-
import { NForm as
|
|
4
|
-
import { useRoute as
|
|
1
|
+
import { ref as G, computed as g, onMounted as Z, resolveComponent as c, createElementBlock as S, openBlock as _, Fragment as L, createVNode as s, unref as t, withCtx as d, createElementVNode as u, createBlock as x, createCommentVNode as w, normalizeClass as U, toDisplayString as y, renderList as ee, createTextVNode as ae } from "vue";
|
|
2
|
+
import { x as te, u as re, t as l, e as h, m as le, l as N, _ as oe, a as se, n as R } from "./index-BDKiNPpP.js";
|
|
3
|
+
import { NForm as ne, NFormItem as v, NSwitch as V } from "naive-ui";
|
|
4
|
+
import { useRoute as ue, useRouter as de } from "vue-router";
|
|
5
5
|
import { storeToRefs as C } from "pinia";
|
|
6
|
-
import { u as
|
|
7
|
-
import {
|
|
8
|
-
|
|
6
|
+
import { u as ie } from "./gameList-BLdEusRA.js";
|
|
7
|
+
import { r as m } from "./validators-BVXTUmow.js";
|
|
8
|
+
import { c as M } from "./capitalize-DnZmwhT4.js";
|
|
9
|
+
const ve = { class: "flex flex-wrap mt-2" }, me = { class: "md:w-1/2 pr-8" }, pe = { class: "grid grid-cols-3" }, ce = { class: "pr-8" }, _e = ["innerHTML"], be = { class: "md:w-1/2" }, fe = { class: "md:w-full" }, ge = { class: "md:w-full" }, ye = { class: "stone-table" }, he = { class: "stone-table-header" }, Pe = { class: "px-2 py-2 w-1/4" }, qe = { class: "px-2 py-2" }, ke = { class: "stone-table-row" }, Se = { class: "px-2 py-2 w-1/4" }, xe = { class: "bg-stone-100 dark:bg-stone-600 highlighter-rouge p-1 rounded" }, we = { class: "px-2 py-2" }, Ue = { class: "hidden lg:inline" }, Fe = {
|
|
9
10
|
__name: "AdminServersEdit",
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
11
|
+
setup(Ne) {
|
|
12
|
+
const I = ue(), F = de(), P = ie(), q = te(), b = re(), z = G({}), e = G({
|
|
12
13
|
serverPort: 27015,
|
|
13
14
|
queryPort: 27015,
|
|
14
15
|
rconPort: 27015,
|
|
15
16
|
install: !0,
|
|
16
17
|
user: "gameap"
|
|
17
|
-
}), { games: B } = C(P), { nodes: O } = C(q), { server:
|
|
18
|
+
}), { games: B } = C(P), { nodes: O } = C(q), { server: n } = C(b), T = g(() => [
|
|
18
19
|
{ route: "/", text: "GameAP", icon: "gicon gicon-gameap" },
|
|
19
20
|
{ route: { name: "admin.servers.index" }, text: l("servers.game_servers") },
|
|
20
|
-
{ route: { name: "admin.servers.edit", params: { id:
|
|
21
|
+
{ route: { name: "admin.servers.edit", params: { id: I.params.id } }, text: l("servers.edit") }
|
|
21
22
|
]);
|
|
22
23
|
Z(() => {
|
|
23
|
-
b.setServerId(Number(
|
|
24
|
-
e.value.name =
|
|
25
|
-
e.value.game =
|
|
24
|
+
b.setServerId(Number(I.params.id)), b.fetchServer().then(() => {
|
|
25
|
+
e.value.name = n.value.name, e.value.ip = n.value.server_ip, e.value.serverPort = n.value.server_port, e.value.queryPort = n.value.query_port, e.value.rconPort = n.value.rcon_port, e.value.status = n.value.installed, e.value.enabled = n.value.enabled, e.value.blocked = n.value.blocked, e.value.rcon = n.value.rcon, e.value.dir = n.value.dir, e.value.user = n.value.su_user, e.value.startCommand = n.value.start_command, A().then(() => {
|
|
26
|
+
e.value.game = n.value.game_id, e.value.gameMod = n.value.game_mod_id;
|
|
26
27
|
}), H().then(() => {
|
|
27
|
-
e.value.nodeId =
|
|
28
|
+
e.value.nodeId = n.value.ds_id;
|
|
28
29
|
});
|
|
29
30
|
}).catch((o) => {
|
|
30
31
|
h(o);
|
|
31
32
|
});
|
|
32
33
|
});
|
|
33
|
-
const p = g(() => b.loading || P.loading || q.loading),
|
|
34
|
-
{ value: 0, label:
|
|
35
|
-
{ value: 1, label:
|
|
36
|
-
{ value: 2, label:
|
|
37
|
-
],
|
|
34
|
+
const p = g(() => b.loading || P.loading || q.loading), $ = [
|
|
35
|
+
{ value: 0, label: M(l("servers.not_installed")) },
|
|
36
|
+
{ value: 1, label: M(l("servers.installed")) },
|
|
37
|
+
{ value: 2, label: M(l("servers.installation")) }
|
|
38
|
+
], j = g(() => {
|
|
38
39
|
let o = {};
|
|
39
|
-
for (const [
|
|
40
|
+
for (const [a, i] of Object.entries(B.value))
|
|
40
41
|
o[i.code] = i.name;
|
|
41
42
|
return o;
|
|
42
|
-
}),
|
|
43
|
+
}), D = g(() => {
|
|
43
44
|
let o = {};
|
|
44
|
-
for (const [
|
|
45
|
+
for (const [a, i] of Object.entries(O.value))
|
|
45
46
|
o[i.id] = i.name;
|
|
46
47
|
return o;
|
|
47
|
-
}),
|
|
48
|
+
}), E = g(
|
|
48
49
|
() => {
|
|
49
|
-
let o =
|
|
50
|
-
return o || (o = {}), o.ip = e.value.ip, o.port = e.value.serverPort, o.query_port = e.value.queryPort, o.rcon_port = e.value.rconPort, o.rcon_password = e.value.rcon, o.uuid =
|
|
50
|
+
let o = n.value.aliases;
|
|
51
|
+
return o || (o = {}), o.ip = e.value.ip, o.port = e.value.serverPort, o.query_port = e.value.queryPort, o.rcon_port = e.value.rconPort, o.rcon_password = e.value.rcon, o.uuid = n.value.uuid, o.uuid_short = n.value.uuid_short, Object.entries(o).map(([a, i]) => ({ name: a, value: i }));
|
|
51
52
|
}
|
|
52
53
|
), A = async () => {
|
|
53
54
|
try {
|
|
@@ -62,38 +63,38 @@ const ie = { class: "flex flex-wrap mt-2" }, ve = { class: "md:w-1/2 pr-8" }, me
|
|
|
62
63
|
}, J = {
|
|
63
64
|
name: {
|
|
64
65
|
required: !0,
|
|
65
|
-
validator:
|
|
66
|
+
validator: m(l("labels.name"))
|
|
66
67
|
},
|
|
67
68
|
game: {
|
|
68
69
|
required: !0,
|
|
69
|
-
validator:
|
|
70
|
+
validator: m(l("labels.game_id"))
|
|
70
71
|
},
|
|
71
72
|
gameMod: {
|
|
72
73
|
required: !0,
|
|
73
|
-
validator:
|
|
74
|
+
validator: m(l("labels.game_mod_id"))
|
|
74
75
|
},
|
|
75
76
|
nodeId: {
|
|
76
77
|
required: !0,
|
|
77
|
-
validator:
|
|
78
|
+
validator: m(l("labels.ds_id"))
|
|
78
79
|
},
|
|
79
80
|
ip: {
|
|
80
81
|
required: !0,
|
|
81
|
-
validator:
|
|
82
|
+
validator: m(l("labels.ip"))
|
|
82
83
|
},
|
|
83
84
|
serverPort: {
|
|
84
85
|
required: !0,
|
|
85
|
-
validator:
|
|
86
|
+
validator: m(l("labels.server_port"))
|
|
86
87
|
},
|
|
87
88
|
queryPort: {
|
|
88
89
|
required: !0,
|
|
89
|
-
validator:
|
|
90
|
+
validator: m(l("labels.query_port"))
|
|
90
91
|
},
|
|
91
92
|
rconPort: {
|
|
92
93
|
required: !0,
|
|
93
|
-
validator:
|
|
94
|
+
validator: m(l("labels.rcon_port"))
|
|
94
95
|
}
|
|
95
96
|
}, K = () => {
|
|
96
|
-
z.value?.validate((o, { warnings:
|
|
97
|
+
z.value?.validate((o, { warnings: a }) => {
|
|
97
98
|
o ? (console.log(o), R({
|
|
98
99
|
content: "Please check the form.",
|
|
99
100
|
type: "error"
|
|
@@ -102,13 +103,13 @@ const ie = { class: "flex flex-wrap mt-2" }, ve = { class: "md:w-1/2 pr-8" }, me
|
|
|
102
103
|
}, Q = () => {
|
|
103
104
|
b.save({
|
|
104
105
|
name: e.value.name,
|
|
105
|
-
game_id:
|
|
106
|
-
game_mod_id:
|
|
106
|
+
game_id: e.value.game,
|
|
107
|
+
game_mod_id: e.value.gameMod,
|
|
107
108
|
enabled: e.value.enabled,
|
|
108
109
|
blocked: e.value.blocked,
|
|
109
110
|
installed: e.value.status,
|
|
110
111
|
rcon: e.value.rcon,
|
|
111
|
-
ds_id:
|
|
112
|
+
ds_id: n.value.ds_id,
|
|
112
113
|
server_ip: e.value.ip,
|
|
113
114
|
server_port: e.value.serverPort,
|
|
114
115
|
query_port: e.value.queryPort,
|
|
@@ -127,11 +128,11 @@ const ie = { class: "flex flex-wrap mt-2" }, ve = { class: "md:w-1/2 pr-8" }, me
|
|
|
127
128
|
h(o);
|
|
128
129
|
});
|
|
129
130
|
};
|
|
130
|
-
return (o,
|
|
131
|
+
return (o, a) => {
|
|
131
132
|
const i = c("n-select"), f = c("n-input"), W = c("GameModSelector"), k = c("n-card"), X = c("DsIpSelector"), Y = c("SmartPortSelector");
|
|
132
133
|
return _(), S(L, null, [
|
|
133
|
-
|
|
134
|
-
|
|
134
|
+
s(t(le), { items: T.value }, null, 8, ["items"]),
|
|
135
|
+
s(t(ne), {
|
|
135
136
|
"label-placement": "top",
|
|
136
137
|
"label-width": "auto",
|
|
137
138
|
ref_key: "formRef",
|
|
@@ -140,10 +141,10 @@ const ie = { class: "flex flex-wrap mt-2" }, ve = { class: "md:w-1/2 pr-8" }, me
|
|
|
140
141
|
rules: J
|
|
141
142
|
}, {
|
|
142
143
|
default: d(() => [
|
|
143
|
-
u("div",
|
|
144
|
-
u("div",
|
|
145
|
-
|
|
146
|
-
title:
|
|
144
|
+
u("div", ve, [
|
|
145
|
+
u("div", me, [
|
|
146
|
+
s(k, {
|
|
147
|
+
title: t(l)("servers.basic_info"),
|
|
147
148
|
size: "small",
|
|
148
149
|
class: "mb-3",
|
|
149
150
|
"header-class": "g-card-header",
|
|
@@ -153,82 +154,82 @@ const ie = { class: "flex flex-wrap mt-2" }, ve = { class: "md:w-1/2 pr-8" }, me
|
|
|
153
154
|
}
|
|
154
155
|
}, {
|
|
155
156
|
default: d(() => [
|
|
156
|
-
p.value ? (_(), x(
|
|
157
|
+
p.value ? (_(), x(t(N), { key: 0 })) : w("", !0),
|
|
157
158
|
u("div", {
|
|
158
159
|
class: U(p.value ? "hidden" : "")
|
|
159
160
|
}, [
|
|
160
|
-
u("div",
|
|
161
|
-
u("div",
|
|
162
|
-
|
|
163
|
-
label:
|
|
161
|
+
u("div", pe, [
|
|
162
|
+
u("div", ce, [
|
|
163
|
+
s(t(v), {
|
|
164
|
+
label: t(l)("servers.status")
|
|
164
165
|
}, {
|
|
165
166
|
default: d(() => [
|
|
166
|
-
|
|
167
|
+
s(i, {
|
|
167
168
|
value: e.value.status,
|
|
168
|
-
"onUpdate:value":
|
|
169
|
-
options:
|
|
169
|
+
"onUpdate:value": a[0] || (a[0] = (r) => e.value.status = r),
|
|
170
|
+
options: $
|
|
170
171
|
}, null, 8, ["value"])
|
|
171
172
|
]),
|
|
172
173
|
_: 1
|
|
173
174
|
}, 8, ["label"])
|
|
174
175
|
]),
|
|
175
|
-
|
|
176
|
-
label:
|
|
176
|
+
s(t(v), {
|
|
177
|
+
label: t(l)("labels.enabled"),
|
|
177
178
|
path: "enabled"
|
|
178
179
|
}, {
|
|
179
180
|
default: d(() => [
|
|
180
|
-
|
|
181
|
+
s(t(V), {
|
|
181
182
|
value: e.value.enabled,
|
|
182
|
-
"onUpdate:value":
|
|
183
|
+
"onUpdate:value": a[1] || (a[1] = (r) => e.value.enabled = r)
|
|
183
184
|
}, null, 8, ["value"])
|
|
184
185
|
]),
|
|
185
186
|
_: 1
|
|
186
187
|
}, 8, ["label"]),
|
|
187
|
-
|
|
188
|
-
label:
|
|
188
|
+
s(t(v), {
|
|
189
|
+
label: t(l)("labels.blocked"),
|
|
189
190
|
path: "blocked"
|
|
190
191
|
}, {
|
|
191
192
|
default: d(() => [
|
|
192
|
-
|
|
193
|
+
s(t(V), {
|
|
193
194
|
value: e.value.blocked,
|
|
194
|
-
"onUpdate:value":
|
|
195
|
-
"rail-style": ({ checked:
|
|
195
|
+
"onUpdate:value": a[2] || (a[2] = (r) => e.value.blocked = r),
|
|
196
|
+
"rail-style": ({ checked: r }) => r ? { background: "#b91c1c" } : {}
|
|
196
197
|
}, null, 8, ["value", "rail-style"])
|
|
197
198
|
]),
|
|
198
199
|
_: 1
|
|
199
200
|
}, 8, ["label"])
|
|
200
201
|
]),
|
|
201
|
-
|
|
202
|
-
label:
|
|
202
|
+
s(t(v), {
|
|
203
|
+
label: t(l)("labels.name"),
|
|
203
204
|
path: "name"
|
|
204
205
|
}, {
|
|
205
206
|
default: d(() => [
|
|
206
|
-
|
|
207
|
+
s(f, {
|
|
207
208
|
value: e.value.name,
|
|
208
|
-
"onUpdate:value":
|
|
209
|
+
"onUpdate:value": a[3] || (a[3] = (r) => e.value.name = r),
|
|
209
210
|
type: "text"
|
|
210
211
|
}, null, 8, ["value"])
|
|
211
212
|
]),
|
|
212
213
|
_: 1
|
|
213
214
|
}, 8, ["label"]),
|
|
214
|
-
|
|
215
|
-
games:
|
|
215
|
+
s(W, {
|
|
216
|
+
games: j.value,
|
|
216
217
|
"game-path": "game",
|
|
217
218
|
"game-mod-path": "gameMod",
|
|
218
219
|
"game-select-disabled": !0,
|
|
219
220
|
game: e.value.game,
|
|
220
|
-
"onUpdate:game":
|
|
221
|
+
"onUpdate:game": a[4] || (a[4] = (r) => e.value.game = r),
|
|
221
222
|
"game-mod": e.value.gameMod,
|
|
222
|
-
"onUpdate:gameMod":
|
|
223
|
+
"onUpdate:gameMod": a[5] || (a[5] = (r) => e.value.gameMod = r)
|
|
223
224
|
}, null, 8, ["games", "game", "game-mod"]),
|
|
224
|
-
|
|
225
|
-
label:
|
|
225
|
+
s(t(v), {
|
|
226
|
+
label: t(l)("labels.rcon"),
|
|
226
227
|
path: "rcon"
|
|
227
228
|
}, {
|
|
228
229
|
default: d(() => [
|
|
229
|
-
|
|
230
|
+
s(f, {
|
|
230
231
|
value: e.value.rcon,
|
|
231
|
-
"onUpdate:value":
|
|
232
|
+
"onUpdate:value": a[6] || (a[6] = (r) => e.value.rcon = r),
|
|
232
233
|
type: "password",
|
|
233
234
|
"show-password-on": "click",
|
|
234
235
|
"input-props": { autocomplete: "one-time-code" }
|
|
@@ -236,33 +237,33 @@ const ie = { class: "flex flex-wrap mt-2" }, ve = { class: "md:w-1/2 pr-8" }, me
|
|
|
236
237
|
]),
|
|
237
238
|
_: 1
|
|
238
239
|
}, 8, ["label"]),
|
|
239
|
-
|
|
240
|
-
label:
|
|
240
|
+
s(t(v), {
|
|
241
|
+
label: t(l)("labels.dir"),
|
|
241
242
|
class: "mb-4",
|
|
242
243
|
path: "dir"
|
|
243
244
|
}, {
|
|
244
245
|
feedback: d(() => [
|
|
245
246
|
u("small", {
|
|
246
|
-
innerHTML:
|
|
247
|
-
}, null, 8,
|
|
247
|
+
innerHTML: t(l)("servers.d_dir")
|
|
248
|
+
}, null, 8, _e)
|
|
248
249
|
]),
|
|
249
250
|
default: d(() => [
|
|
250
|
-
|
|
251
|
+
s(f, {
|
|
251
252
|
value: e.value.dir,
|
|
252
|
-
"onUpdate:value":
|
|
253
|
+
"onUpdate:value": a[7] || (a[7] = (r) => e.value.dir = r),
|
|
253
254
|
type: "text"
|
|
254
255
|
}, null, 8, ["value"])
|
|
255
256
|
]),
|
|
256
257
|
_: 1
|
|
257
258
|
}, 8, ["label"]),
|
|
258
|
-
|
|
259
|
-
label:
|
|
259
|
+
s(t(v), {
|
|
260
|
+
label: t(l)("labels.su_user"),
|
|
260
261
|
path: "user"
|
|
261
262
|
}, {
|
|
262
263
|
default: d(() => [
|
|
263
|
-
|
|
264
|
+
s(f, {
|
|
264
265
|
value: e.value.user,
|
|
265
|
-
"onUpdate:value":
|
|
266
|
+
"onUpdate:value": a[8] || (a[8] = (r) => e.value.user = r),
|
|
266
267
|
type: "text"
|
|
267
268
|
}, null, 8, ["value"])
|
|
268
269
|
]),
|
|
@@ -273,9 +274,9 @@ const ie = { class: "flex flex-wrap mt-2" }, ve = { class: "md:w-1/2 pr-8" }, me
|
|
|
273
274
|
_: 1
|
|
274
275
|
}, 8, ["title"])
|
|
275
276
|
]),
|
|
276
|
-
u("div",
|
|
277
|
-
|
|
278
|
-
title:
|
|
277
|
+
u("div", be, [
|
|
278
|
+
s(k, {
|
|
279
|
+
title: t(l)("servers.ds_ip_ports"),
|
|
279
280
|
size: "small",
|
|
280
281
|
class: "mb-3",
|
|
281
282
|
"header-class": "g-card-header",
|
|
@@ -285,31 +286,31 @@ const ie = { class: "flex flex-wrap mt-2" }, ve = { class: "md:w-1/2 pr-8" }, me
|
|
|
285
286
|
}
|
|
286
287
|
}, {
|
|
287
288
|
default: d(() => [
|
|
288
|
-
p.value ? (_(), x(
|
|
289
|
+
p.value ? (_(), x(t(N), { key: 0 })) : w("", !0),
|
|
289
290
|
u("div", {
|
|
290
291
|
class: U(p.value ? "hidden" : "")
|
|
291
292
|
}, [
|
|
292
|
-
|
|
293
|
-
"ds-list":
|
|
293
|
+
s(X, {
|
|
294
|
+
"ds-list": D.value,
|
|
294
295
|
"node-id": e.value.nodeId,
|
|
295
|
-
"onUpdate:nodeId":
|
|
296
|
+
"onUpdate:nodeId": a[9] || (a[9] = (r) => e.value.nodeId = r),
|
|
296
297
|
ip: e.value.ip,
|
|
297
|
-
"onUpdate:ip":
|
|
298
|
+
"onUpdate:ip": a[10] || (a[10] = (r) => e.value.ip = r),
|
|
298
299
|
"node-select-disabled": !0,
|
|
299
300
|
"node-id-path": "nodeId",
|
|
300
301
|
"ip-path": "ip"
|
|
301
302
|
}, null, 8, ["ds-list", "node-id", "ip"]),
|
|
302
|
-
|
|
303
|
+
s(Y, {
|
|
303
304
|
"server-port": e.value.serverPort,
|
|
304
|
-
"onUpdate:serverPort":
|
|
305
|
+
"onUpdate:serverPort": a[11] || (a[11] = (r) => e.value.serverPort = r),
|
|
305
306
|
"rcon-port": e.value.rconPort,
|
|
306
|
-
"onUpdate:rconPort":
|
|
307
|
+
"onUpdate:rconPort": a[12] || (a[12] = (r) => e.value.rconPort = r),
|
|
307
308
|
"query-port": e.value.queryPort,
|
|
308
|
-
"onUpdate:queryPort":
|
|
309
|
-
"initial-server-ip":
|
|
310
|
-
"initial-server-port":
|
|
311
|
-
"initial-query-port":
|
|
312
|
-
"initial-rcon-port":
|
|
309
|
+
"onUpdate:queryPort": a[13] || (a[13] = (r) => e.value.queryPort = r),
|
|
310
|
+
"initial-server-ip": t(n).server_ip,
|
|
311
|
+
"initial-server-port": t(n).server_port,
|
|
312
|
+
"initial-query-port": t(n).query_port,
|
|
313
|
+
"initial-rcon-port": t(n).rcon_port,
|
|
313
314
|
"server-port-path": "serverPort",
|
|
314
315
|
"rcon-port-path": "rconPort",
|
|
315
316
|
"query-port-path": "queryPort"
|
|
@@ -319,9 +320,9 @@ const ie = { class: "flex flex-wrap mt-2" }, ve = { class: "md:w-1/2 pr-8" }, me
|
|
|
319
320
|
_: 1
|
|
320
321
|
}, 8, ["title"])
|
|
321
322
|
]),
|
|
322
|
-
u("div",
|
|
323
|
-
|
|
324
|
-
title:
|
|
323
|
+
u("div", fe, [
|
|
324
|
+
s(k, {
|
|
325
|
+
title: t(l)("servers.start_command"),
|
|
325
326
|
size: "small",
|
|
326
327
|
class: "mb-3",
|
|
327
328
|
"header-class": "g-card-header",
|
|
@@ -331,42 +332,42 @@ const ie = { class: "flex flex-wrap mt-2" }, ve = { class: "md:w-1/2 pr-8" }, me
|
|
|
331
332
|
}
|
|
332
333
|
}, {
|
|
333
334
|
default: d(() => [
|
|
334
|
-
p.value ? (_(), x(
|
|
335
|
+
p.value ? (_(), x(t(N), { key: 0 })) : w("", !0),
|
|
335
336
|
u("div", {
|
|
336
337
|
class: U(p.value ? "hidden" : "")
|
|
337
338
|
}, [
|
|
338
|
-
|
|
339
|
-
label:
|
|
339
|
+
s(t(v), {
|
|
340
|
+
label: t(l)("labels.start_command"),
|
|
340
341
|
path: "startCommand"
|
|
341
342
|
}, {
|
|
342
343
|
default: d(() => [
|
|
343
|
-
|
|
344
|
+
s(f, {
|
|
344
345
|
value: e.value.startCommand,
|
|
345
|
-
"onUpdate:value":
|
|
346
|
+
"onUpdate:value": a[14] || (a[14] = (r) => e.value.startCommand = r),
|
|
346
347
|
type: "textarea",
|
|
347
348
|
autosize: { minRows: 4 }
|
|
348
349
|
}, null, 8, ["value"])
|
|
349
350
|
]),
|
|
350
351
|
_: 1
|
|
351
352
|
}, 8, ["label"]),
|
|
352
|
-
u("div",
|
|
353
|
-
u("table",
|
|
354
|
-
u("thead",
|
|
353
|
+
u("div", ge, [
|
|
354
|
+
u("table", ye, [
|
|
355
|
+
u("thead", he, [
|
|
355
356
|
u("tr", null, [
|
|
356
|
-
u("th",
|
|
357
|
-
u("th",
|
|
357
|
+
u("th", Pe, y(t(l)("labels.name")), 1),
|
|
358
|
+
u("th", qe, y(t(l)("labels.the_value")), 1)
|
|
358
359
|
])
|
|
359
360
|
]),
|
|
360
361
|
u("tbody", null, [
|
|
361
|
-
(_(!0), S(L, null, ee(
|
|
362
|
-
u("td",
|
|
363
|
-
u("span",
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
362
|
+
(_(!0), S(L, null, ee(E.value, (r) => (_(), S("tr", ke, [
|
|
363
|
+
u("td", Se, [
|
|
364
|
+
u("span", xe, [
|
|
365
|
+
a[15] || (a[15] = u("span", null, "{", -1)),
|
|
366
|
+
ae(y(r.name), 1),
|
|
367
|
+
a[16] || (a[16] = u("span", null, "}", -1))
|
|
367
368
|
])
|
|
368
369
|
]),
|
|
369
|
-
u("td",
|
|
370
|
+
u("td", we, y(r.value), 1)
|
|
370
371
|
]))), 256))
|
|
371
372
|
])
|
|
372
373
|
])
|
|
@@ -376,13 +377,13 @@ const ie = { class: "flex flex-wrap mt-2" }, ve = { class: "md:w-1/2 pr-8" }, me
|
|
|
376
377
|
_: 1
|
|
377
378
|
}, 8, ["title"])
|
|
378
379
|
]),
|
|
379
|
-
|
|
380
|
+
s(oe, {
|
|
380
381
|
color: "green",
|
|
381
382
|
onClick: K
|
|
382
383
|
}, {
|
|
383
384
|
default: d(() => [
|
|
384
|
-
|
|
385
|
-
u("span",
|
|
385
|
+
s(t(se), { name: "save" }),
|
|
386
|
+
u("span", Ue, " " + y(t(l)("main.save")), 1)
|
|
386
387
|
]),
|
|
387
388
|
_: 1
|
|
388
389
|
})
|
|
@@ -395,5 +396,5 @@ const ie = { class: "flex flex-wrap mt-2" }, ve = { class: "md:w-1/2 pr-8" }, me
|
|
|
395
396
|
}
|
|
396
397
|
};
|
|
397
398
|
export {
|
|
398
|
-
|
|
399
|
+
Fe as default
|
|
399
400
|
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { computed as d, ref as L, onMounted as
|
|
2
|
-
import {
|
|
1
|
+
import { computed as d, ref as L, onMounted as $, createElementBlock as D, openBlock as z, Fragment as E, createVNode as r, unref as n, withCtx as c, createElementVNode as F, toDisplayString as I, h as a } from "vue";
|
|
2
|
+
import { j as P, x as T, t as s, e as m, m as R, _ as u, a as f, l as w } from "./index-BDKiNPpP.js";
|
|
3
3
|
import { storeToRefs as g } from "pinia";
|
|
4
|
-
import { NDataTable as
|
|
5
|
-
import {
|
|
6
|
-
|
|
4
|
+
import { NDataTable as A, NEmpty as V } from "naive-ui";
|
|
5
|
+
import { _ as j } from "./GameIcon-DaYNlnur.js";
|
|
6
|
+
import { RouterLink as q } from "vue-router";
|
|
7
|
+
const U = {
|
|
7
8
|
__name: "AdminServersList",
|
|
8
9
|
setup(G) {
|
|
9
|
-
const i =
|
|
10
|
+
const i = P(), o = T(), _ = d(() => [
|
|
10
11
|
{ route: "/", text: "GameAP", icon: "gicon gicon-gameap" },
|
|
11
12
|
{ route: { name: "admin.servers.index" }, text: s("servers.game_servers") }
|
|
12
|
-
]),
|
|
13
|
+
]), v = () => [
|
|
13
14
|
{
|
|
14
15
|
title: s("servers.name"),
|
|
15
16
|
key: "name"
|
|
@@ -18,7 +19,7 @@ const O = {
|
|
|
18
19
|
title: s("servers.game"),
|
|
19
20
|
key: "game",
|
|
20
21
|
render: (e) => [
|
|
21
|
-
a(
|
|
22
|
+
a(j, { game: e.gameCode, class: "mr-2" }),
|
|
22
23
|
e.game
|
|
23
24
|
]
|
|
24
25
|
},
|
|
@@ -31,12 +32,12 @@ const O = {
|
|
|
31
32
|
render: (e) => {
|
|
32
33
|
let t = b.value.find((l) => l.id === e.nodeId);
|
|
33
34
|
return a(
|
|
34
|
-
|
|
35
|
+
q,
|
|
35
36
|
{
|
|
36
37
|
to: { name: "admin.nodes.view", params: { id: t.id } },
|
|
37
38
|
class: "text-blue-600 underline dark:text-blue-500 hover:no-underline"
|
|
38
39
|
},
|
|
39
|
-
t.name
|
|
40
|
+
{ default: () => t.name }
|
|
40
41
|
);
|
|
41
42
|
}
|
|
42
43
|
},
|
|
@@ -49,10 +50,10 @@ const O = {
|
|
|
49
50
|
size: "small",
|
|
50
51
|
class: "mr-0.5",
|
|
51
52
|
route: { name: "admin.servers.edit", params: { id: e.id } }
|
|
52
|
-
}, [
|
|
53
|
-
a(
|
|
53
|
+
}, { default: () => [
|
|
54
|
+
a(f, { name: "edit" }),
|
|
54
55
|
a("span", { class: "hidden lg:inline" }, s("main.edit"))
|
|
55
|
-
]),
|
|
56
|
+
] }),
|
|
56
57
|
a(u, {
|
|
57
58
|
color: "red",
|
|
58
59
|
size: "small",
|
|
@@ -60,20 +61,20 @@ const O = {
|
|
|
60
61
|
onClick: () => {
|
|
61
62
|
N(e.id);
|
|
62
63
|
}
|
|
63
|
-
}, [
|
|
64
|
-
a(
|
|
64
|
+
}, { default: () => [
|
|
65
|
+
a(f, { name: "delete" }),
|
|
65
66
|
a("span", { class: "hidden lg:inline" }, s("main.delete"))
|
|
66
|
-
])
|
|
67
|
+
] })
|
|
67
68
|
];
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
|
-
], { servers: h } = g(i), { nodes: b } = g(o),
|
|
71
|
+
], { servers: h } = g(i), { nodes: b } = g(o), x = d(() => i.loading || o.loading), k = L(v()), y = {
|
|
71
72
|
pageSize: 20
|
|
72
73
|
};
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
$(() => {
|
|
75
|
+
p(), S();
|
|
75
76
|
});
|
|
76
|
-
const
|
|
77
|
+
const p = () => {
|
|
77
78
|
i.fetchServersByFilter([]).catch((e) => {
|
|
78
79
|
m(e);
|
|
79
80
|
});
|
|
@@ -120,11 +121,11 @@ const O = {
|
|
|
120
121
|
i.deleteById(e, t).catch((l) => {
|
|
121
122
|
m(l);
|
|
122
123
|
}).finally(() => {
|
|
123
|
-
|
|
124
|
+
p();
|
|
124
125
|
});
|
|
125
126
|
};
|
|
126
|
-
return (e, t) => (z(),
|
|
127
|
-
r(n(
|
|
127
|
+
return (e, t) => (z(), D(E, null, [
|
|
128
|
+
r(n(R), { items: _.value }, null, 8, ["items"]),
|
|
128
129
|
r(u, {
|
|
129
130
|
color: "green",
|
|
130
131
|
size: "middle",
|
|
@@ -132,25 +133,28 @@ const O = {
|
|
|
132
133
|
route: { name: "admin.servers.create" }
|
|
133
134
|
}, {
|
|
134
135
|
default: c(() => [
|
|
135
|
-
|
|
136
|
-
|
|
136
|
+
r(n(f), {
|
|
137
|
+
name: "add-square",
|
|
138
|
+
class: "mr-0.5"
|
|
139
|
+
}),
|
|
140
|
+
F("span", null, I(n(s)("servers.create")), 1)
|
|
137
141
|
]),
|
|
138
142
|
_: 1
|
|
139
143
|
}),
|
|
140
|
-
r(n(
|
|
144
|
+
r(n(A), {
|
|
141
145
|
ref: "tableRef",
|
|
142
146
|
bordered: !1,
|
|
143
147
|
"single-line": !0,
|
|
144
|
-
columns:
|
|
148
|
+
columns: k.value,
|
|
145
149
|
data: C.value,
|
|
146
|
-
loading:
|
|
150
|
+
loading: x.value,
|
|
147
151
|
pagination: y
|
|
148
152
|
}, {
|
|
149
153
|
loading: c(() => [
|
|
150
|
-
r(n(
|
|
154
|
+
r(n(w))
|
|
151
155
|
]),
|
|
152
156
|
empty: c(() => [
|
|
153
|
-
r(n(
|
|
157
|
+
r(n(V), {
|
|
154
158
|
description: n(s)("servers.empty_list")
|
|
155
159
|
}, null, 8, ["description"])
|
|
156
160
|
]),
|
|
@@ -160,5 +164,5 @@ const O = {
|
|
|
160
164
|
}
|
|
161
165
|
};
|
|
162
166
|
export {
|
|
163
|
-
|
|
167
|
+
U as default
|
|
164
168
|
};
|