@gameap/frontend 4.1.0-dev14 → 4.1.0-dev16
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
|
@@ -2,10 +2,10 @@ import { NTabs as re, NTabPane as te, NCard as ae } from "naive-ui";
|
|
|
2
2
|
import { ref as C, computed as g, createElementBlock as f, createCommentVNode as t, openBlock as s, createElementVNode as r, createVNode as l, unref as e, toDisplayString as _, defineAsyncComponent as I, onMounted as ne, h as X, resolveComponent as oe, Fragment as H, createBlock as n, normalizeClass as U, createSlots as le, withCtx as c, withDirectives as ce, vShow as ie, createTextVNode as w, renderList as de, resolveDynamicComponent as ue } from "vue";
|
|
3
3
|
import { useRoute as ve } from "vue-router";
|
|
4
4
|
import { defineStore as me, storeToRefs as Q } from "pinia";
|
|
5
|
-
import { _ as V } from "./ServerControlButton-
|
|
6
|
-
import { u as y, b as $, a as h, k as pe, g as _e, t as i, m as
|
|
7
|
-
import { _ as
|
|
8
|
-
const
|
|
5
|
+
import { _ as V } from "./ServerControlButton-7Un9i8tt.js";
|
|
6
|
+
import { u as y, b as $, a as h, k as pe, g as _e, v as fe, t as i, m as ye, l as P, w as ge } from "./index-CiR3a1Cv.js";
|
|
7
|
+
import { _ as be } from "./GameIcon-DaYNlnur.js";
|
|
8
|
+
const he = me("serverRcon", () => {
|
|
9
9
|
const x = C([]), k = C({
|
|
10
10
|
rcon: !1,
|
|
11
11
|
playersManage: !1
|
|
@@ -116,120 +116,122 @@ const be = me("serverRcon", () => {
|
|
|
116
116
|
banPlayer: T,
|
|
117
117
|
sendPlayerMessage: v
|
|
118
118
|
};
|
|
119
|
-
}),
|
|
119
|
+
}), ke = {
|
|
120
120
|
key: 0,
|
|
121
121
|
id: "alert-additional-content-4",
|
|
122
122
|
class: "p-4 mb-4 text-yellow-800 border border-yellow-300 rounded-lg bg-yellow-50 dark:bg-stone-800 dark:text-yellow-300 dark:border-yellow-800",
|
|
123
123
|
role: "alert"
|
|
124
|
-
},
|
|
124
|
+
}, Se = { class: "flex items-center" }, we = { class: "text-lg font-medium" }, xe = {
|
|
125
125
|
key: 1,
|
|
126
126
|
id: "alert-additional-content-4",
|
|
127
127
|
class: "p-4 mb-4 text-yellow-800 border border-yellow-300 rounded-lg bg-yellow-50 dark:bg-stone-800 dark:text-yellow-300 dark:border-yellow-800",
|
|
128
128
|
role: "alert"
|
|
129
|
-
},
|
|
129
|
+
}, Re = { class: "flex items-center" }, Ie = { class: "text-lg font-medium" }, $e = {
|
|
130
130
|
key: 2,
|
|
131
131
|
id: "alert-additional-content-4",
|
|
132
132
|
class: "p-4 mb-4 text-yellow-800 border border-yellow-300 rounded-lg bg-yellow-50 dark:bg-stone-800 dark:text-yellow-300 dark:border-yellow-800",
|
|
133
133
|
role: "alert"
|
|
134
|
-
},
|
|
134
|
+
}, Pe = { class: "flex items-center" }, Ce = { class: "text-lg font-medium" }, Te = {
|
|
135
135
|
key: 3,
|
|
136
136
|
id: "alert-additional-content-4",
|
|
137
137
|
class: "p-4 mb-4 text-yellow-800 border border-yellow-300 rounded-lg bg-yellow-50 dark:bg-stone-800 dark:text-yellow-300 dark:border-yellow-800",
|
|
138
138
|
role: "alert"
|
|
139
|
-
},
|
|
139
|
+
}, Me = { class: "flex items-center" }, Ne = { class: "text-lg font-medium" }, Ae = 0, Ee = 2, Fe = {
|
|
140
140
|
__name: "InactiveServer",
|
|
141
141
|
props: {
|
|
142
142
|
server: null
|
|
143
143
|
},
|
|
144
144
|
setup(x) {
|
|
145
|
-
return (k, E) => x.server.installed ===
|
|
146
|
-
r("div",
|
|
145
|
+
return (k, E) => x.server.installed === Ae ? (s(), f("div", ke, [
|
|
146
|
+
r("div", Se, [
|
|
147
147
|
l(e(h), {
|
|
148
148
|
name: "warning",
|
|
149
149
|
class: "mr-1"
|
|
150
150
|
}),
|
|
151
|
-
r("h3",
|
|
151
|
+
r("h3", we, _(k.trans("servers.not_installed_msg")), 1)
|
|
152
152
|
])
|
|
153
|
-
])) : x.server.installed ===
|
|
154
|
-
r("div",
|
|
153
|
+
])) : x.server.installed === Ee ? (s(), f("div", xe, [
|
|
154
|
+
r("div", Re, [
|
|
155
155
|
l(e(h), {
|
|
156
156
|
name: "warning",
|
|
157
157
|
class: "mr-1"
|
|
158
158
|
}),
|
|
159
|
-
r("h3",
|
|
159
|
+
r("h3", Ie, _(k.trans("servers.installation_process_msg")), 1)
|
|
160
160
|
])
|
|
161
|
-
])) : x.server.blocked ? (s(), f("div",
|
|
162
|
-
r("div",
|
|
161
|
+
])) : x.server.blocked ? (s(), f("div", $e, [
|
|
162
|
+
r("div", Pe, [
|
|
163
163
|
l(e(h), {
|
|
164
164
|
name: "warning",
|
|
165
165
|
class: "mr-1"
|
|
166
166
|
}),
|
|
167
|
-
r("h3",
|
|
167
|
+
r("h3", Ce, _(k.trans("servers.blocked_msg")), 1)
|
|
168
168
|
])
|
|
169
|
-
])) : x.server.enabled ? t("", !0) : (s(), f("div",
|
|
170
|
-
r("div",
|
|
169
|
+
])) : x.server.enabled ? t("", !0) : (s(), f("div", Te, [
|
|
170
|
+
r("div", Me, [
|
|
171
171
|
l(e(h), {
|
|
172
172
|
name: "warning",
|
|
173
173
|
class: "mr-1"
|
|
174
174
|
}),
|
|
175
|
-
r("h3",
|
|
175
|
+
r("h3", Ne, _(k.trans("servers.disabled_msg")), 1)
|
|
176
176
|
])
|
|
177
177
|
]));
|
|
178
178
|
}
|
|
179
|
-
},
|
|
179
|
+
}, Le = { class: "md:flex md:flex-wrap mt-2" }, Ve = { class: "md:w-full" }, Be = { class: "md:flex mt-2" }, Oe = { class: "md:w-1/2 md:pr-8" }, Ue = {
|
|
180
180
|
key: 1,
|
|
181
181
|
id: "serverControl"
|
|
182
|
-
},
|
|
182
|
+
}, De = { class: "md:w-1/2" }, je = {
|
|
183
183
|
key: 1,
|
|
184
184
|
class: "flex flex-col pl-0 mb-0"
|
|
185
|
-
},
|
|
185
|
+
}, ze = {
|
|
186
186
|
key: 0,
|
|
187
187
|
class: "relative block py-3 px-6 -mb-px"
|
|
188
|
-
},
|
|
188
|
+
}, qe = { class: "badge-green" }, Ge = {
|
|
189
189
|
key: 1,
|
|
190
190
|
class: "relative block py-3 px-6 -mb-px"
|
|
191
|
-
},
|
|
191
|
+
}, Xe = { class: "badge-red" }, He = { class: "relative block py-3 px-6 -mb-px" }, Qe = {
|
|
192
192
|
key: 0,
|
|
193
193
|
class: "md:flex flex-wrap mt-2"
|
|
194
|
-
},
|
|
194
|
+
}, We = { class: "md:w-full" }, Je = { class: "flex flex-wrap mt-2" }, Ke = { class: "md:w-full" }, Ye = {
|
|
195
195
|
key: 0,
|
|
196
196
|
class: "pr-8"
|
|
197
|
-
},
|
|
197
|
+
}, Ze = { class: "flex flex-wrap mt-2 h-[calc(100vh-14rem)]" }, es = { class: "md:w-full h-full" }, ss = { class: "flex flex-col min-w-0 rounded break-words border bg-white dark:bg-stone-800 border-1 border-stone-300 dark:border-stone-700 h-full" }, rs = { class: "md:flex md:flex-wrap mt-2" }, ts = { class: "md:w-full" }, as = { class: "order-last ml-auto text-red-500 hover:text-red-600" }, ns = {
|
|
198
198
|
__name: "ServerIdView",
|
|
199
199
|
setup(x) {
|
|
200
200
|
const k = I(
|
|
201
201
|
() => import(
|
|
202
|
-
"./ServerStatus-
|
|
202
|
+
"./ServerStatus-BblAtet5.js"
|
|
203
203
|
/* webpackChunkName: "components/server" */
|
|
204
204
|
)
|
|
205
205
|
), E = I(
|
|
206
206
|
() => import(
|
|
207
|
-
"./ServerTasks-
|
|
207
|
+
"./ServerTasks-2jQBkpL9.js"
|
|
208
208
|
/* webpackChunkName: "components/server" */
|
|
209
209
|
)
|
|
210
210
|
), d = I(
|
|
211
211
|
() => import(
|
|
212
|
-
"./ServerConsole-
|
|
212
|
+
"./ServerConsole-BdF95Ef6.js"
|
|
213
213
|
/* webpackChunkName: "components/server" */
|
|
214
214
|
)
|
|
215
215
|
), B = I(
|
|
216
216
|
() => import(
|
|
217
|
-
"./ServerSettings-
|
|
217
|
+
"./ServerSettings-DsIlowVa.js"
|
|
218
218
|
/* webpackChunkName: "components/server" */
|
|
219
219
|
)
|
|
220
220
|
), D = I(
|
|
221
221
|
() => import(
|
|
222
|
-
"./RconPlayers-
|
|
222
|
+
"./RconPlayers-jIqnphJ1.js"
|
|
223
223
|
/* webpackChunkName: "components/rcon" */
|
|
224
224
|
)
|
|
225
225
|
), j = I(
|
|
226
226
|
() => import(
|
|
227
|
-
"./RconConsole-
|
|
227
|
+
"./RconConsole-BSienrhk.js"
|
|
228
228
|
/* webpackChunkName: "components/rcon" */
|
|
229
229
|
)
|
|
230
230
|
), z = I(
|
|
231
|
-
() => import("./FileManager-
|
|
232
|
-
), q = ve(), o = y(), F =
|
|
231
|
+
() => import("./FileManager-JXa457rg.js")
|
|
232
|
+
), q = ve(), o = y(), F = he(), G = pe(), O = _e();
|
|
233
|
+
fe();
|
|
234
|
+
const {
|
|
233
235
|
serverId: p,
|
|
234
236
|
server: u
|
|
235
237
|
} = Q(o), {
|
|
@@ -252,7 +254,7 @@ const be = me("serverRcon", () => {
|
|
|
252
254
|
];
|
|
253
255
|
return u.value?.name && L.push({
|
|
254
256
|
render: () => [
|
|
255
|
-
X(
|
|
257
|
+
X(be, { game: u.value.game?.code ?? "", class: "mr-2 align-middle" }),
|
|
256
258
|
X("span", { game: u.value.game?.code ?? "", class: "align-middle" }, u.value.name)
|
|
257
259
|
]
|
|
258
260
|
}), L;
|
|
@@ -262,8 +264,8 @@ const be = me("serverRcon", () => {
|
|
|
262
264
|
return (L, N) => {
|
|
263
265
|
const R = ae, A = te, ee = oe("router-link"), se = re;
|
|
264
266
|
return s(), f(H, null, [
|
|
265
|
-
l(e(
|
|
266
|
-
!v.value && !a.value ? (s(), n(
|
|
267
|
+
l(e(ye), { items: K.value }, null, 8, ["items"]),
|
|
268
|
+
!v.value && !a.value ? (s(), n(Fe, {
|
|
267
269
|
key: 0,
|
|
268
270
|
server: e(u)
|
|
269
271
|
}, null, 8, ["server"])) : (s(), n(se, {
|
|
@@ -283,8 +285,8 @@ const be = me("serverRcon", () => {
|
|
|
283
285
|
w(" " + _(e(i)("servers.control")), 1)
|
|
284
286
|
]),
|
|
285
287
|
default: c(() => [
|
|
286
|
-
ce(r("div",
|
|
287
|
-
r("div",
|
|
288
|
+
ce(r("div", Le, [
|
|
289
|
+
r("div", Ve, [
|
|
288
290
|
l(R, { class: "mb-3" }, {
|
|
289
291
|
default: c(() => [
|
|
290
292
|
v.value ? (s(), n(e(P), { key: 0 })) : t("", !0),
|
|
@@ -301,8 +303,8 @@ const be = me("serverRcon", () => {
|
|
|
301
303
|
], 512), [
|
|
302
304
|
[ie, W.value]
|
|
303
305
|
]),
|
|
304
|
-
r("div",
|
|
305
|
-
r("div",
|
|
306
|
+
r("div", Be, [
|
|
307
|
+
r("div", Oe, [
|
|
306
308
|
l(R, {
|
|
307
309
|
title: e(i)("servers.commands"),
|
|
308
310
|
class: "mb-3",
|
|
@@ -314,7 +316,7 @@ const be = me("serverRcon", () => {
|
|
|
314
316
|
}, {
|
|
315
317
|
default: c(() => [
|
|
316
318
|
v.value ? (s(), n(e(P), { key: 0 })) : t("", !0),
|
|
317
|
-
v.value ? t("", !0) : (s(), f("div",
|
|
319
|
+
v.value ? t("", !0) : (s(), f("div", Ue, [
|
|
318
320
|
e(o).canStart && !M.value ? (s(), n(V, {
|
|
319
321
|
key: 0,
|
|
320
322
|
command: "start",
|
|
@@ -365,7 +367,7 @@ const be = me("serverRcon", () => {
|
|
|
365
367
|
_: 1
|
|
366
368
|
}, 8, ["title"])
|
|
367
369
|
]),
|
|
368
|
-
r("div",
|
|
370
|
+
r("div", De, [
|
|
369
371
|
l(R, {
|
|
370
372
|
title: e(i)("servers.process_status"),
|
|
371
373
|
class: "mb-3",
|
|
@@ -377,23 +379,23 @@ const be = me("serverRcon", () => {
|
|
|
377
379
|
}, {
|
|
378
380
|
default: c(() => [
|
|
379
381
|
v.value ? (s(), n(e(P), { key: 0 })) : t("", !0),
|
|
380
|
-
v.value ? t("", !0) : (s(), f("ul",
|
|
381
|
-
M.value ? (s(), f("li",
|
|
382
|
+
v.value ? t("", !0) : (s(), f("ul", je, [
|
|
383
|
+
M.value ? (s(), f("li", ze, [
|
|
382
384
|
w(_(e(i)("servers.status")) + ": ", 1),
|
|
383
|
-
r("span",
|
|
384
|
-
])) : (s(), f("li",
|
|
385
|
+
r("span", qe, _(e(i)("servers.active")), 1)
|
|
386
|
+
])) : (s(), f("li", Ge, [
|
|
385
387
|
w(_(e(i)("servers.status")) + ": ", 1),
|
|
386
|
-
r("span",
|
|
388
|
+
r("span", Xe, _(e(i)("servers.inactive")), 1)
|
|
387
389
|
])),
|
|
388
|
-
r("li",
|
|
390
|
+
r("li", He, _(e(i)("servers.last_check")) + ": " + _(new Date(e(u).last_process_check).toLocaleString()), 1)
|
|
389
391
|
]))
|
|
390
392
|
]),
|
|
391
393
|
_: 1
|
|
392
394
|
}, 8, ["title"])
|
|
393
395
|
])
|
|
394
396
|
]),
|
|
395
|
-
e(o).canReadConsole ? (s(), f("div",
|
|
396
|
-
r("div",
|
|
397
|
+
e(o).canReadConsole ? (s(), f("div", Qe, [
|
|
398
|
+
r("div", We, [
|
|
397
399
|
v.value ? (s(), n(e(P), { key: 0 })) : t("", !0),
|
|
398
400
|
v.value ? t("", !0) : (s(), n(e(d), {
|
|
399
401
|
key: 1,
|
|
@@ -419,12 +421,12 @@ const be = me("serverRcon", () => {
|
|
|
419
421
|
N[0] || (N[0] = w(" RCON ", -1))
|
|
420
422
|
]),
|
|
421
423
|
default: c(() => [
|
|
422
|
-
r("div",
|
|
423
|
-
r("div",
|
|
424
|
+
r("div", Je, [
|
|
425
|
+
r("div", Ke, [
|
|
424
426
|
r("div", {
|
|
425
427
|
class: U("md:grid " + (e(T).playersManage ? "md:grid-cols-2" : "md:grid-cols-1"))
|
|
426
428
|
}, [
|
|
427
|
-
e(T).playersManage ? (s(), f("div",
|
|
429
|
+
e(T).playersManage ? (s(), f("div", Ye, [
|
|
428
430
|
l(R, {
|
|
429
431
|
title: e(i)("rcon.players_manage"),
|
|
430
432
|
class: "mb-3",
|
|
@@ -482,12 +484,12 @@ const be = me("serverRcon", () => {
|
|
|
482
484
|
w(" " + _(e(i)("servers.files")), 1)
|
|
483
485
|
]),
|
|
484
486
|
default: c(() => [
|
|
485
|
-
r("div",
|
|
486
|
-
r("div",
|
|
487
|
-
r("div",
|
|
487
|
+
r("div", Ze, [
|
|
488
|
+
r("div", es, [
|
|
489
|
+
r("div", ss, [
|
|
488
490
|
l(e(z), {
|
|
489
491
|
settings: {
|
|
490
|
-
lang: e(
|
|
492
|
+
lang: e(ge)(),
|
|
491
493
|
baseUrl: "/api/file-manager/" + L.$route.params.id,
|
|
492
494
|
headers: {
|
|
493
495
|
"X-Requested-With": "XMLHttpRequest"
|
|
@@ -551,8 +553,8 @@ const be = me("serverRcon", () => {
|
|
|
551
553
|
w(" " + _(e(i)("servers.settings")), 1)
|
|
552
554
|
]),
|
|
553
555
|
default: c(() => [
|
|
554
|
-
r("div",
|
|
555
|
-
r("div",
|
|
556
|
+
r("div", rs, [
|
|
557
|
+
r("div", ts, [
|
|
556
558
|
l(R, { class: "mb-3" }, {
|
|
557
559
|
default: c(() => [
|
|
558
560
|
r("div", null, [
|
|
@@ -578,7 +580,7 @@ const be = me("serverRcon", () => {
|
|
|
578
580
|
Y.value ? {
|
|
579
581
|
name: "suffix",
|
|
580
582
|
fn: c(() => [
|
|
581
|
-
r("div",
|
|
583
|
+
r("div", as, [
|
|
582
584
|
l(ee, {
|
|
583
585
|
to: { name: "admin.servers.edit", params: { id: e(p) } }
|
|
584
586
|
}, {
|
|
@@ -599,11 +601,11 @@ const be = me("serverRcon", () => {
|
|
|
599
601
|
], 64);
|
|
600
602
|
};
|
|
601
603
|
}
|
|
602
|
-
},
|
|
604
|
+
}, ms = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
603
605
|
__proto__: null,
|
|
604
|
-
default:
|
|
606
|
+
default: ns
|
|
605
607
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
606
608
|
export {
|
|
607
|
-
|
|
608
|
-
|
|
609
|
+
ms as S,
|
|
610
|
+
he as u
|
|
609
611
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed as p, onMounted as f, watch as I, createElementBlock as s, openBlock as o, createElementVNode as l, withDirectives as g, toDisplayString as t, unref as v, Fragment as h, renderList as N, vModelSelect as b } from "vue";
|
|
2
2
|
import { storeToRefs as u } from "pinia";
|
|
3
|
-
import { i as F, u as L, j as y, t as B } from "./index-
|
|
3
|
+
import { i as F, u as L, j as y, t as B } from "./index-CiR3a1Cv.js";
|
|
4
4
|
const k = {
|
|
5
5
|
id: "serverForm",
|
|
6
6
|
class: "mb-3"
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { u as
|
|
3
|
-
import { storeToRefs as
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { ref as v, onMounted as y, createBlock as s, unref as a, openBlock as o, withCtx as i, createElementBlock as S, createVNode as f, Fragment as k, renderList as b, createCommentVNode as p, createElementVNode as N, toDisplayString as U } from "vue";
|
|
2
|
+
import { u as $, e as m, _ as x, a as F, t as _, n as R } from "./index-CiR3a1Cv.js";
|
|
3
|
+
import { storeToRefs as B } from "pinia";
|
|
4
|
+
import { NForm as C, NFormItem as E, NInput as O } from "naive-ui";
|
|
5
|
+
import { _ as T } from "./GEmpty-Bkw6u0WR.js";
|
|
6
|
+
import { _ as V } from "./GSwitch-1wlrRoUA.js";
|
|
7
|
+
const w = { class: "hidden lg:inline" }, A = {
|
|
6
8
|
__name: "ServerSettings",
|
|
7
9
|
setup(I) {
|
|
8
|
-
const r =
|
|
10
|
+
const r = $(), d = v({}), n = v({}), { settings: u } = B(r);
|
|
9
11
|
y(() => {
|
|
10
12
|
r.fetchSettings().catch((e) => {
|
|
11
|
-
|
|
13
|
+
m(e);
|
|
12
14
|
}).then(() => {
|
|
13
15
|
for (const e of u.value)
|
|
14
16
|
e.type === "bool" ? n.value[e.name] = e.value === !0 || e.value === 1 || e.value === "1" || e.value === "true" || e.value === "True" || e.value === "TRUE" || e.value === "on" || e.value === "On" || e.value === "ON" : n.value[e.name] = e.value;
|
|
@@ -23,39 +25,39 @@ const $ = { class: "hidden lg:inline" }, q = {
|
|
|
23
25
|
});
|
|
24
26
|
r.saveSettings(e).then(() => {
|
|
25
27
|
R({
|
|
26
|
-
content:
|
|
28
|
+
content: _("servers.settings_update_success_msg"),
|
|
27
29
|
type: "success"
|
|
28
30
|
}, () => {
|
|
29
31
|
h();
|
|
30
32
|
});
|
|
31
33
|
}).catch((l) => {
|
|
32
|
-
|
|
34
|
+
m(l);
|
|
33
35
|
});
|
|
34
36
|
}
|
|
35
37
|
function h() {
|
|
36
38
|
r.fetchSettings().catch((e) => {
|
|
37
|
-
|
|
39
|
+
m(e);
|
|
38
40
|
});
|
|
39
41
|
}
|
|
40
|
-
return (e, l) => !a(u) || a(u).length === 0 ? (o(), s(a(
|
|
42
|
+
return (e, l) => !a(u) || a(u).length === 0 ? (o(), s(a(T), { key: 0 })) : (o(), s(a(C), {
|
|
41
43
|
key: 1,
|
|
42
44
|
"label-placement": "left",
|
|
43
45
|
"label-width": "auto",
|
|
44
46
|
ref_key: "settingsRef",
|
|
45
|
-
ref:
|
|
47
|
+
ref: d,
|
|
46
48
|
model: n.value
|
|
47
49
|
}, {
|
|
48
|
-
default:
|
|
49
|
-
(o(!0), S(k, null,
|
|
50
|
+
default: i(() => [
|
|
51
|
+
(o(!0), S(k, null, b(a(u), (t) => (o(), s(a(E), {
|
|
50
52
|
label: t.label
|
|
51
53
|
}, {
|
|
52
|
-
default:
|
|
53
|
-
t.type === "bool" ? (o(), s(a(
|
|
54
|
+
default: i(() => [
|
|
55
|
+
t.type === "bool" ? (o(), s(a(V), {
|
|
54
56
|
key: 0,
|
|
55
57
|
value: n.value[t.name],
|
|
56
58
|
"onUpdate:value": (c) => n.value[t.name] = c
|
|
57
59
|
}, null, 8, ["value", "onUpdate:value"])) : p("", !0),
|
|
58
|
-
t.type === "string" ? (o(), s(a(
|
|
60
|
+
t.type === "string" ? (o(), s(a(O), {
|
|
59
61
|
key: 1,
|
|
60
62
|
value: n.value[t.name],
|
|
61
63
|
"onUpdate:value": (c) => n.value[t.name] = c,
|
|
@@ -64,13 +66,13 @@ const $ = { class: "hidden lg:inline" }, q = {
|
|
|
64
66
|
]),
|
|
65
67
|
_: 2
|
|
66
68
|
}, 1032, ["label"]))), 256)),
|
|
67
|
-
f(
|
|
69
|
+
f(x, {
|
|
68
70
|
color: "green",
|
|
69
71
|
onClick: l[0] || (l[0] = (t) => g())
|
|
70
72
|
}, {
|
|
71
|
-
default:
|
|
73
|
+
default: i(() => [
|
|
72
74
|
f(a(F), { name: "save" }),
|
|
73
|
-
|
|
75
|
+
N("span", w, " " + U(a(_)("main.save")), 1)
|
|
74
76
|
]),
|
|
75
77
|
_: 1
|
|
76
78
|
})
|
|
@@ -80,5 +82,5 @@ const $ = { class: "hidden lg:inline" }, q = {
|
|
|
80
82
|
}
|
|
81
83
|
};
|
|
82
84
|
export {
|
|
83
|
-
|
|
85
|
+
A as default
|
|
84
86
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as f, computed as l, onMounted as y, createElementBlock as s, openBlock as n, createElementVNode as a, createCommentVNode as i, toDisplayString as t } from "vue";
|
|
2
|
-
import { b as k } from "./index-
|
|
2
|
+
import { b as k } from "./index-CiR3a1Cv.js";
|
|
3
3
|
const w = { id: "server-status-component" }, g = { class: "flex flex-wrap" }, b = { class: "md:w-1/6 pr-4 pl-4" }, q = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "inline"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NModal as $e, NSelect as ye, NDatePicker as ge, NRadio as Re, NInputNumber as be } from "naive-ui";
|
|
2
2
|
import { ref as P, computed as De, resolveComponent as pe, createElementBlock as z, openBlock as V, createElementVNode as h, createVNode as b, withCtx as q, createTextVNode as de, toDisplayString as $, Fragment as Me, renderList as Te, createCommentVNode as ne } from "vue";
|
|
3
3
|
import { defineStore as Se, storeToRefs as we } from "pinia";
|
|
4
|
-
import { u as te, b as ie, c as Ie, t as J, a as Ce, _ as Oe, p as Q, d as Ue, e as me } from "./index-
|
|
4
|
+
import { u as te, b as ie, c as Ie, t as J, a as Ce, _ as Oe, p as Q, d as Ue, e as me } from "./index-CiR3a1Cv.js";
|
|
5
5
|
function _e(e) {
|
|
6
6
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7
7
|
}
|