@gameap/frontend 4.1.0-dev13 → 4.1.0-dev15
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,10 +1,11 @@
|
|
|
1
|
-
import { NForm as H, NCard as V, NFormItem as c, NInputGroup as W, NInput as J, NButton as K,
|
|
2
|
-
import { ref as C, computed as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { NForm as H, NCard as V, NFormItem as c, NInputGroup as W, NInput as J, NButton as K, NCollapse as Q, NCollapseItem as X } from "naive-ui";
|
|
2
|
+
import { ref as C, computed as y, onMounted as Y, watch as M, resolveComponent as P, createElementBlock as Z, openBlock as ee, Fragment as te, createVNode as r, unref as l, withCtx as u, createElementVNode as v, toDisplayString as re } from "vue";
|
|
3
|
+
import { y as ae, j as oe, t as s, e as S, m as le, a as x, _ as se, n as k } from "./index-CiR3a1Cv.js";
|
|
4
|
+
import { _ as ne } from "./GSwitch-1wlrRoUA.js";
|
|
5
|
+
import { u as ue } from "./gameList-BuPam-HN.js";
|
|
5
6
|
import { storeToRefs as L } from "pinia";
|
|
6
7
|
import { useRouter as de } from "vue-router";
|
|
7
|
-
import { r as d } from "./validators-
|
|
8
|
+
import { r as d } from "./validators-r6Rit4O6.js";
|
|
8
9
|
const U = [
|
|
9
10
|
"Alpha",
|
|
10
11
|
"Bravo",
|
|
@@ -21,34 +22,34 @@ function ie(q = "Server") {
|
|
|
21
22
|
const g = U[Math.floor(Math.random() * U.length)], p = Math.floor(Math.random() * 90) + 10;
|
|
22
23
|
return `${q} ${g}-${p}`;
|
|
23
24
|
}
|
|
24
|
-
const me = { class: "flex flex-wrap mt-2" }, ce = { class: "md:w-1/2 pr-8" }, ve = ["innerHTML"], pe = { class: "md:w-1/2" }, fe = { class: "hidden lg:inline" },
|
|
25
|
+
const me = { class: "flex flex-wrap mt-2" }, ce = { class: "md:w-1/2 pr-8" }, ve = ["innerHTML"], pe = { class: "md:w-1/2" }, fe = { class: "hidden lg:inline" }, Ne = {
|
|
25
26
|
__name: "AdminServersCreate",
|
|
26
27
|
setup(q) {
|
|
27
|
-
const g = de(), p = ue(), N =
|
|
28
|
+
const g = de(), p = ue(), N = ae(), G = oe(), { games: O } = L(p), { nodes: $ } = L(N), w = C({}), e = C({
|
|
28
29
|
serverPort: 27015,
|
|
29
30
|
queryPort: 27015,
|
|
30
31
|
rconPort: 27015,
|
|
31
32
|
install: !0,
|
|
32
33
|
user: "gameap"
|
|
33
|
-
}),
|
|
34
|
+
}), F = y(() => [
|
|
34
35
|
{ route: "/", text: "GameAP", icon: "gicon gicon-gameap" },
|
|
35
36
|
{ route: { name: "admin.servers.index" }, text: s("servers.game_servers") },
|
|
36
37
|
{ route: { name: "admin.servers.create" }, text: s("servers.create") }
|
|
37
38
|
]);
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
Y(() => {
|
|
40
|
+
R(), j();
|
|
40
41
|
});
|
|
41
|
-
const b =
|
|
42
|
+
const b = y(() => {
|
|
42
43
|
let o = {};
|
|
43
44
|
for (const [t, n] of Object.entries(O.value))
|
|
44
45
|
o[n.code] = n.name;
|
|
45
46
|
return o;
|
|
46
|
-
}), I =
|
|
47
|
+
}), I = y(() => {
|
|
47
48
|
let o = {};
|
|
48
|
-
for (const [t, n] of Object.entries(
|
|
49
|
+
for (const [t, n] of Object.entries($.value))
|
|
49
50
|
o[n.id] = n.name;
|
|
50
51
|
return o;
|
|
51
|
-
}),
|
|
52
|
+
}), R = async () => {
|
|
52
53
|
try {
|
|
53
54
|
await p.fetchGames();
|
|
54
55
|
} catch {
|
|
@@ -59,10 +60,10 @@ const me = { class: "flex flex-wrap mt-2" }, ce = { class: "md:w-1/2 pr-8" }, ve
|
|
|
59
60
|
S(o);
|
|
60
61
|
});
|
|
61
62
|
};
|
|
62
|
-
|
|
63
|
+
M(I, (o) => {
|
|
63
64
|
const t = Object.keys(o);
|
|
64
65
|
t.length === 1 && !e.value.nodeId && (e.value.nodeId = Number(t[0]));
|
|
65
|
-
}, { immediate: !0 }),
|
|
66
|
+
}, { immediate: !0 }), M(() => e.value.name, (o) => {
|
|
66
67
|
if (!o || e.value.game)
|
|
67
68
|
return;
|
|
68
69
|
const t = o.toLowerCase().split(/\s+/).filter((m) => m.length >= 3);
|
|
@@ -151,9 +152,9 @@ const me = { class: "flex flex-wrap mt-2" }, ce = { class: "md:w-1/2 pr-8" }, ve
|
|
|
151
152
|
});
|
|
152
153
|
};
|
|
153
154
|
return (o, t) => {
|
|
154
|
-
const n = J, m = K, h =
|
|
155
|
-
return
|
|
156
|
-
r(l(
|
|
155
|
+
const n = J, m = K, h = P("GameModSelector"), f = X, _ = Q, i = V, z = P("DsIpSelector"), A = P("SmartPortSelector");
|
|
156
|
+
return ee(), Z(te, null, [
|
|
157
|
+
r(l(le), { items: F.value }, null, 8, ["items"]),
|
|
157
158
|
r(l(H), {
|
|
158
159
|
"label-placement": "top",
|
|
159
160
|
"label-width": "auto",
|
|
@@ -190,7 +191,7 @@ const me = { class: "flex flex-wrap mt-2" }, ce = { class: "md:w-1/2 pr-8" }, ve
|
|
|
190
191
|
}, null, 8, ["value"]),
|
|
191
192
|
r(m, { onClick: B }, {
|
|
192
193
|
default: u(() => [
|
|
193
|
-
r(l(
|
|
194
|
+
r(l(x), { name: "dice" })
|
|
194
195
|
]),
|
|
195
196
|
_: 1
|
|
196
197
|
})
|
|
@@ -214,7 +215,7 @@ const me = { class: "flex flex-wrap mt-2" }, ce = { class: "md:w-1/2 pr-8" }, ve
|
|
|
214
215
|
path: "install"
|
|
215
216
|
}, {
|
|
216
217
|
default: u(() => [
|
|
217
|
-
r(l(
|
|
218
|
+
r(l(ne), {
|
|
218
219
|
value: e.value.install,
|
|
219
220
|
"onUpdate:value": t[3] || (t[3] = (a) => e.value.install = a)
|
|
220
221
|
}, null, 8, ["value"])
|
|
@@ -319,13 +320,13 @@ const me = { class: "flex flex-wrap mt-2" }, ce = { class: "md:w-1/2 pr-8" }, ve
|
|
|
319
320
|
_: 1
|
|
320
321
|
}, 8, ["title"])
|
|
321
322
|
]),
|
|
322
|
-
r(
|
|
323
|
+
r(se, {
|
|
323
324
|
color: "green",
|
|
324
325
|
onClick: E
|
|
325
326
|
}, {
|
|
326
327
|
default: u(() => [
|
|
327
|
-
r(l(
|
|
328
|
-
v("span", fe, " " +
|
|
328
|
+
r(l(x), { name: "add-square" }),
|
|
329
|
+
v("span", fe, " " + re(l(s)("main.create")), 1)
|
|
329
330
|
]),
|
|
330
331
|
_: 1
|
|
331
332
|
})
|
|
@@ -338,5 +339,5 @@ const me = { class: "flex flex-wrap mt-2" }, ce = { class: "md:w-1/2 pr-8" }, ve
|
|
|
338
339
|
}
|
|
339
340
|
};
|
|
340
341
|
export {
|
|
341
|
-
|
|
342
|
+
Ne as default
|
|
342
343
|
};
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { NForm as Z, NCard as ee, NFormItem as v, NSelect as ae,
|
|
2
|
-
import { ref as
|
|
3
|
-
import {
|
|
1
|
+
import { NForm as Z, NCard as ee, NFormItem as v, NSelect as ae, NInput as te } from "naive-ui";
|
|
2
|
+
import { ref as G, computed as f, onMounted as re, resolveComponent as k, createElementBlock as S, openBlock as c, Fragment as L, createVNode as s, unref as t, withCtx as d, createElementVNode as u, createBlock as x, createCommentVNode as w, normalizeClass as N, toDisplayString as g, renderList as le, createTextVNode as oe } from "vue";
|
|
3
|
+
import { y as se, u as ne, t as l, e as y, m as ue, l as U, _ as de, a as ie, n as R } from "./index-CiR3a1Cv.js";
|
|
4
|
+
import { _ as V } from "./GSwitch-1wlrRoUA.js";
|
|
4
5
|
import { useRoute as ve, useRouter as me } from "vue-router";
|
|
5
6
|
import { storeToRefs as C } from "pinia";
|
|
6
|
-
import { u as pe } from "./gameList-
|
|
7
|
-
import { r as m } from "./validators-
|
|
8
|
-
import { c as I } from "./capitalize-
|
|
9
|
-
const ce = { class: "flex flex-wrap mt-2" }, _e = { class: "md:w-1/2 pr-8" }, be = { class: "grid grid-cols-3" }, fe = { class: "pr-8" }, ge = ["innerHTML"], ye = { class: "md:w-1/2" }, he = { class: "md:w-full" }, Pe = { class: "md:w-full" }, qe = { class: "stone-table" },
|
|
7
|
+
import { u as pe } from "./gameList-BuPam-HN.js";
|
|
8
|
+
import { r as m } from "./validators-r6Rit4O6.js";
|
|
9
|
+
import { c as I } from "./capitalize-BVfQSCbg.js";
|
|
10
|
+
const ce = { class: "flex flex-wrap mt-2" }, _e = { class: "md:w-1/2 pr-8" }, be = { class: "grid grid-cols-3" }, fe = { class: "pr-8" }, ge = ["innerHTML"], ye = { class: "md:w-1/2" }, he = { class: "md:w-full" }, Pe = { class: "md:w-full" }, qe = { class: "stone-table" }, ke = { class: "stone-table-header" }, Se = { class: "px-2 py-2 w-1/4" }, xe = { class: "px-2 py-2" }, we = { class: "stone-table-row" }, Ne = { class: "px-2 py-2 w-1/4" }, Ue = { class: "bg-stone-100 dark:bg-stone-600 highlighter-rouge p-1 rounded" }, Ce = { class: "px-2 py-2" }, Ie = { class: "hidden lg:inline" }, Te = {
|
|
10
11
|
__name: "AdminServersEdit",
|
|
11
12
|
setup(Me) {
|
|
12
|
-
const M = ve(), F = me(), h = pe(), P = se(), _ = ne(), z =
|
|
13
|
+
const M = ve(), F = me(), h = pe(), P = se(), _ = ne(), z = G({}), e = G({
|
|
13
14
|
serverPort: 27015,
|
|
14
15
|
queryPort: 27015,
|
|
15
16
|
rconPort: 27015,
|
|
16
17
|
install: !0,
|
|
17
18
|
user: "gameap"
|
|
18
|
-
}), { games:
|
|
19
|
+
}), { games: $ } = C(h), { nodes: B } = C(P), { server: n } = C(_), O = f(() => [
|
|
19
20
|
{ route: "/", text: "GameAP", icon: "gicon gicon-gameap" },
|
|
20
21
|
{ route: { name: "admin.servers.index" }, text: l("servers.game_servers") },
|
|
21
22
|
{ route: { name: "admin.servers.edit", params: { id: M.params.id } }, text: l("servers.edit") }
|
|
@@ -31,18 +32,18 @@ const ce = { class: "flex flex-wrap mt-2" }, _e = { class: "md:w-1/2 pr-8" }, be
|
|
|
31
32
|
y(o);
|
|
32
33
|
});
|
|
33
34
|
});
|
|
34
|
-
const p = f(() => _.loading || h.loading || P.loading),
|
|
35
|
+
const p = f(() => _.loading || h.loading || P.loading), T = [
|
|
35
36
|
{ value: 0, label: I(l("servers.not_installed")) },
|
|
36
37
|
{ value: 1, label: I(l("servers.installed")) },
|
|
37
38
|
{ value: 2, label: I(l("servers.installation")) }
|
|
38
39
|
], j = f(() => {
|
|
39
40
|
let o = {};
|
|
40
|
-
for (const [a, i] of Object.entries(
|
|
41
|
+
for (const [a, i] of Object.entries($.value))
|
|
41
42
|
o[i.code] = i.name;
|
|
42
43
|
return o;
|
|
43
44
|
}), D = f(() => {
|
|
44
45
|
let o = {};
|
|
45
|
-
for (const [a, i] of Object.entries(
|
|
46
|
+
for (const [a, i] of Object.entries(B.value))
|
|
46
47
|
o[i.id] = i.name;
|
|
47
48
|
return o;
|
|
48
49
|
}), E = f(
|
|
@@ -95,7 +96,7 @@ const ce = { class: "flex flex-wrap mt-2" }, _e = { class: "md:w-1/2 pr-8" }, be
|
|
|
95
96
|
}
|
|
96
97
|
}, K = () => {
|
|
97
98
|
z.value?.validate((o, { warnings: a }) => {
|
|
98
|
-
o ? (console.log(o),
|
|
99
|
+
o ? (console.log(o), R({
|
|
99
100
|
content: "Please check the form.",
|
|
100
101
|
type: "error"
|
|
101
102
|
})) : Q();
|
|
@@ -118,7 +119,7 @@ const ce = { class: "flex flex-wrap mt-2" }, _e = { class: "md:w-1/2 pr-8" }, be
|
|
|
118
119
|
su_user: e.value.user,
|
|
119
120
|
start_command: e.value.startCommand
|
|
120
121
|
}).then(() => {
|
|
121
|
-
|
|
122
|
+
R({
|
|
122
123
|
content: l("servers.update_success_msg"),
|
|
123
124
|
type: "success"
|
|
124
125
|
}, () => {
|
|
@@ -129,9 +130,9 @@ const ce = { class: "flex flex-wrap mt-2" }, _e = { class: "md:w-1/2 pr-8" }, be
|
|
|
129
130
|
});
|
|
130
131
|
};
|
|
131
132
|
return (o, a) => {
|
|
132
|
-
const i = ae, b = te, W =
|
|
133
|
-
return c(),
|
|
134
|
-
s(t(ue), { items:
|
|
133
|
+
const i = ae, b = te, W = k("GameModSelector"), q = ee, X = k("DsIpSelector"), Y = k("SmartPortSelector");
|
|
134
|
+
return c(), S(L, null, [
|
|
135
|
+
s(t(ue), { items: O.value }, null, 8, ["items"]),
|
|
135
136
|
s(t(Z), {
|
|
136
137
|
"label-placement": "top",
|
|
137
138
|
"label-width": "auto",
|
|
@@ -167,7 +168,7 @@ const ce = { class: "flex flex-wrap mt-2" }, _e = { class: "md:w-1/2 pr-8" }, be
|
|
|
167
168
|
s(i, {
|
|
168
169
|
value: e.value.status,
|
|
169
170
|
"onUpdate:value": a[0] || (a[0] = (r) => e.value.status = r),
|
|
170
|
-
options:
|
|
171
|
+
options: T
|
|
171
172
|
}, null, 8, ["value"])
|
|
172
173
|
]),
|
|
173
174
|
_: 1
|
|
@@ -178,7 +179,7 @@ const ce = { class: "flex flex-wrap mt-2" }, _e = { class: "md:w-1/2 pr-8" }, be
|
|
|
178
179
|
path: "enabled"
|
|
179
180
|
}, {
|
|
180
181
|
default: d(() => [
|
|
181
|
-
s(t(
|
|
182
|
+
s(t(V), {
|
|
182
183
|
value: e.value.enabled,
|
|
183
184
|
"onUpdate:value": a[1] || (a[1] = (r) => e.value.enabled = r)
|
|
184
185
|
}, null, 8, ["value"])
|
|
@@ -190,7 +191,7 @@ const ce = { class: "flex flex-wrap mt-2" }, _e = { class: "md:w-1/2 pr-8" }, be
|
|
|
190
191
|
path: "blocked"
|
|
191
192
|
}, {
|
|
192
193
|
default: d(() => [
|
|
193
|
-
s(t(
|
|
194
|
+
s(t(V), {
|
|
194
195
|
value: e.value.blocked,
|
|
195
196
|
"onUpdate:value": a[2] || (a[2] = (r) => e.value.blocked = r),
|
|
196
197
|
"rail-style": ({ checked: r }) => r ? { background: "#b91c1c" } : {}
|
|
@@ -352,14 +353,14 @@ const ce = { class: "flex flex-wrap mt-2" }, _e = { class: "md:w-1/2 pr-8" }, be
|
|
|
352
353
|
}, 8, ["label"]),
|
|
353
354
|
u("div", Pe, [
|
|
354
355
|
u("table", qe, [
|
|
355
|
-
u("thead",
|
|
356
|
+
u("thead", ke, [
|
|
356
357
|
u("tr", null, [
|
|
357
|
-
u("th",
|
|
358
|
+
u("th", Se, g(t(l)("labels.name")), 1),
|
|
358
359
|
u("th", xe, g(t(l)("labels.the_value")), 1)
|
|
359
360
|
])
|
|
360
361
|
]),
|
|
361
362
|
u("tbody", null, [
|
|
362
|
-
(c(!0),
|
|
363
|
+
(c(!0), S(L, null, le(E.value, (r) => (c(), S("tr", we, [
|
|
363
364
|
u("td", Ne, [
|
|
364
365
|
u("span", Ue, [
|
|
365
366
|
a[15] || (a[15] = u("span", null, "{", -1)),
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { j as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { computed as m, ref as B, onMounted as L, createElementBlock as z, openBlock as D, Fragment as F, createVNode as r, unref as n, withCtx as d, createElementVNode as I, toDisplayString as P, h as a } from "vue";
|
|
2
|
+
import { j as E, y as R, t as s, e as c, m as T, _ as u, a as f, l as w } from "./index-CiR3a1Cv.js";
|
|
3
|
+
import { _ as A } from "./GDataTable-DC0a2vJJ.js";
|
|
4
|
+
import "naive-ui";
|
|
5
|
+
import { _ as V } from "./GEmpty-Bkw6u0WR.js";
|
|
6
|
+
import { storeToRefs as _ } from "pinia";
|
|
5
7
|
import { _ as j } from "./GameIcon-DaYNlnur.js";
|
|
6
8
|
import { RouterLink as q } from "vue-router";
|
|
7
|
-
const
|
|
9
|
+
const X = {
|
|
8
10
|
__name: "AdminServersList",
|
|
9
11
|
setup(G) {
|
|
10
|
-
const i =
|
|
12
|
+
const i = E(), o = R(), g = m(() => [
|
|
11
13
|
{ route: "/", text: "GameAP", icon: "gicon gicon-gameap" },
|
|
12
14
|
{ route: { name: "admin.servers.index" }, text: s("servers.game_servers") }
|
|
13
15
|
]), v = () => [
|
|
@@ -30,7 +32,7 @@ const U = {
|
|
|
30
32
|
{
|
|
31
33
|
title: s("servers.dedicated_server"),
|
|
32
34
|
render: (e) => {
|
|
33
|
-
let t =
|
|
35
|
+
let t = k.value.find((l) => l.id === e.nodeId);
|
|
34
36
|
return a(
|
|
35
37
|
q,
|
|
36
38
|
{
|
|
@@ -59,7 +61,7 @@ const U = {
|
|
|
59
61
|
size: "small",
|
|
60
62
|
text: s("main.delete"),
|
|
61
63
|
onClick: () => {
|
|
62
|
-
|
|
64
|
+
$(e.id);
|
|
63
65
|
}
|
|
64
66
|
}, { default: () => [
|
|
65
67
|
a(f, { name: "delete" }),
|
|
@@ -68,21 +70,21 @@ const U = {
|
|
|
68
70
|
];
|
|
69
71
|
}
|
|
70
72
|
}
|
|
71
|
-
], { servers: h } =
|
|
73
|
+
], { servers: h } = _(i), { nodes: k } = _(o), x = m(() => i.loading || o.loading), y = B(v()), b = {
|
|
72
74
|
pageSize: 20
|
|
73
75
|
};
|
|
74
|
-
|
|
76
|
+
L(() => {
|
|
75
77
|
p(), S();
|
|
76
78
|
});
|
|
77
79
|
const p = () => {
|
|
78
80
|
i.fetchServersByFilter([]).catch((e) => {
|
|
79
|
-
|
|
81
|
+
c(e);
|
|
80
82
|
});
|
|
81
83
|
}, S = () => {
|
|
82
84
|
o.fetchNodesByFilter([]).catch((e) => {
|
|
83
|
-
|
|
85
|
+
c(e);
|
|
84
86
|
});
|
|
85
|
-
}, C =
|
|
87
|
+
}, C = m(() => {
|
|
86
88
|
let e = [];
|
|
87
89
|
return h.value.forEach((t) => {
|
|
88
90
|
e.push({
|
|
@@ -94,7 +96,7 @@ const U = {
|
|
|
94
96
|
ipPort: t.server_ip + ":" + t.server_port
|
|
95
97
|
});
|
|
96
98
|
}), e;
|
|
97
|
-
}),
|
|
99
|
+
}), $ = (e) => {
|
|
98
100
|
let t = !1;
|
|
99
101
|
window.$dialog.success({
|
|
100
102
|
title: s("servers.delete_confirm_msg"),
|
|
@@ -112,48 +114,46 @@ const U = {
|
|
|
112
114
|
negativeText: s("main.no"),
|
|
113
115
|
closable: !1,
|
|
114
116
|
onPositiveClick: () => {
|
|
115
|
-
|
|
117
|
+
N(e, t);
|
|
116
118
|
},
|
|
117
119
|
onNegativeClick: () => {
|
|
118
120
|
}
|
|
119
121
|
});
|
|
120
|
-
},
|
|
122
|
+
}, N = (e, t) => {
|
|
121
123
|
i.deleteById(e, t).catch((l) => {
|
|
122
|
-
|
|
124
|
+
c(l);
|
|
123
125
|
}).finally(() => {
|
|
124
126
|
p();
|
|
125
127
|
});
|
|
126
128
|
};
|
|
127
|
-
return (e, t) => (
|
|
128
|
-
r(n(
|
|
129
|
+
return (e, t) => (D(), z(F, null, [
|
|
130
|
+
r(n(T), { items: g.value }, null, 8, ["items"]),
|
|
129
131
|
r(u, {
|
|
130
132
|
color: "green",
|
|
131
133
|
size: "middle",
|
|
132
134
|
class: "mb-5",
|
|
133
135
|
route: { name: "admin.servers.create" }
|
|
134
136
|
}, {
|
|
135
|
-
default:
|
|
137
|
+
default: d(() => [
|
|
136
138
|
r(n(f), {
|
|
137
139
|
name: "add-square",
|
|
138
140
|
class: "mr-0.5"
|
|
139
141
|
}),
|
|
140
|
-
|
|
142
|
+
I("span", null, P(n(s)("servers.create")), 1)
|
|
141
143
|
]),
|
|
142
144
|
_: 1
|
|
143
145
|
}),
|
|
144
146
|
r(n(A), {
|
|
145
147
|
ref: "tableRef",
|
|
146
|
-
|
|
147
|
-
"single-line": !0,
|
|
148
|
-
columns: k.value,
|
|
148
|
+
columns: y.value,
|
|
149
149
|
data: C.value,
|
|
150
150
|
loading: x.value,
|
|
151
|
-
pagination:
|
|
151
|
+
pagination: b
|
|
152
152
|
}, {
|
|
153
|
-
loading:
|
|
153
|
+
loading: d(() => [
|
|
154
154
|
r(n(w))
|
|
155
155
|
]),
|
|
156
|
-
empty:
|
|
156
|
+
empty: d(() => [
|
|
157
157
|
r(n(V), {
|
|
158
158
|
description: n(s)("servers.empty_list")
|
|
159
159
|
}, null, 8, ["description"])
|
|
@@ -164,5 +164,5 @@ const U = {
|
|
|
164
164
|
}
|
|
165
165
|
};
|
|
166
166
|
export {
|
|
167
|
-
|
|
167
|
+
X as default
|
|
168
168
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mergeModels as S, ref as q, useModel as E, resolveComponent as R, createElementBlock as M, openBlock as c, normalizeClass as f, createVNode as a, unref as e, withCtx as d, createElementVNode as i, createBlock as U, createCommentVNode as V, toDisplayString as z, computed as A, onMounted as B, Fragment as F } from "vue";
|
|
2
|
-
import { f as $, t as s, l as y, _ as I, a as P, e as x, m as D, n as G } from "./index-
|
|
2
|
+
import { f as $, t as s, l as y, _ as I, a as P, e as x, m as D, n as G } from "./index-CiR3a1Cv.js";
|
|
3
3
|
import { NForm as L, NCard as k, NFormItem as v, NInput as p, NSelect as O } from "naive-ui";
|
|
4
|
-
import { d as T, i as W, a as j, s as H, b as J, r as N } from "./validators-
|
|
4
|
+
import { d as T, i as W, a as j, s as H, b as J, r as N } from "./validators-r6Rit4O6.js";
|
|
5
5
|
import { useRoute as K, useRouter as Q } from "vue-router";
|
|
6
6
|
import { storeToRefs as X } from "pinia";
|
|
7
7
|
const Y = { class: "flex-wrap mt-2 md:grid md:grid-cols-2 gap-8" }, Z = { class: "gap-x-4 w-full" }, ee = { class: "flex-wrap md:grid mt-2" }, le = { class: "md:w-full" }, ae = { class: "hidden lg:inline" }, se = {
|