@gameap/frontend 4.1.0-dev1 → 4.1.0-dev2

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.
Files changed (61) hide show
  1. package/dist/AdminClientCertificatesView-DQTMJ6LY.js +368 -0
  2. package/dist/AdminDaemonTaskListView-Bx3e0Miy.js +316 -0
  3. package/dist/AdminDaemonTaskOutputView-BJtLdoAq.js +87 -0
  4. package/dist/AdminGamesEdit-hDe3Pr-7.js +470 -0
  5. package/dist/AdminGamesList-CM1xADCW.js +500 -0
  6. package/dist/AdminModEdit-DDKd6Vga.js +526 -0
  7. package/dist/AdminNodeShowView-DMoEY2Cu.js +167 -0
  8. package/dist/AdminNodesCreateView-BXZDQIJ1.js +85 -0
  9. package/dist/AdminNodesEditView-xO7-szjJ.js +66 -0
  10. package/dist/AdminNodesView-ugTPiC4h.js +161 -0
  11. package/dist/AdminServersCreate-DOygFz_E.js +345 -0
  12. package/dist/AdminServersEdit-cZX6UGB1.js +400 -0
  13. package/dist/AdminServersList-CC50WRsv.js +165 -0
  14. package/dist/AdminUsersEditView-CXpMKFfI.js +305 -0
  15. package/dist/AdminUsersView-DGuGEHVR.js +443 -0
  16. package/dist/CreateModForm-CqhcrNFp.js +122 -0
  17. package/dist/CreateNodeModal-BvbJTKhD.js +93 -0
  18. package/dist/DsIpSelector-DN9IyT4L.js +90 -0
  19. package/dist/FileManager-8TWHezyM.js +31882 -0
  20. package/dist/GameModSelector-DRIaCbGY.js +94 -0
  21. package/dist/InputManyList-By5xECIK.js +110 -0
  22. package/dist/InputTextList-Bm2Ofq5J.js +63 -0
  23. package/dist/PluginPendingView-DHd_yijv.js +31 -0
  24. package/dist/RconConsole-DH9XeOu3.js +75 -0
  25. package/dist/RconPlayers-GrvCMJX3.js +420 -0
  26. package/dist/ServerConsole-BHHnpxJy.js +98 -0
  27. package/dist/ServerIdView-BfqrYuar.js +577 -0
  28. package/dist/ServerSelector-QMK1qiXa.js +52 -0
  29. package/dist/ServerSettings-Cz6C8Dlh.js +84 -0
  30. package/dist/ServerStatus-DBJW9C6H.js +63 -0
  31. package/dist/ServerTasks-Bs3iGYY3.js +854 -0
  32. package/dist/SettingsParameters-DCqhqxHk.js +87 -0
  33. package/dist/SmartPortSelector-DektJC6p.js +161 -0
  34. package/dist/UpdateNodeForm-CwirLUIK.js +648 -0
  35. package/dist/UserServerPrivileges-utyKdh7O.js +318 -0
  36. package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
  37. package/dist/_createCompounder-DSupx5mD.js +241 -0
  38. package/dist/camelCase-WcUYdRB3.js +8 -0
  39. package/dist/capitalize-DRKkBaYR.js +40 -0
  40. package/dist/clientCertificates-BsJdUHYw.js +53 -0
  41. package/dist/favicon-32x32.png +0 -0
  42. package/dist/favicon-96x96.png +0 -0
  43. package/dist/favicon.ico +0 -0
  44. package/dist/fonts/gicon.eot +0 -0
  45. package/dist/fonts/gicon.svg +33 -0
  46. package/dist/fonts/gicon.ttf +0 -0
  47. package/dist/fonts/gicon.woff +0 -0
  48. package/dist/fonts/gicon.woff2 +0 -0
  49. package/dist/frontend.css +14 -0
  50. package/dist/gameList-DpGDCxFE.js +115 -0
  51. package/dist/images/gap_logo_white.png +0 -0
  52. package/dist/images/gap_logo_white_mini.png +0 -0
  53. package/dist/images/gicon.svg +18 -0
  54. package/dist/images/icons/save-white.svg +1 -0
  55. package/dist/images/icons/save.svg +1 -0
  56. package/dist/index-60qEjGuU.js +5371 -0
  57. package/dist/index.js +1 -0
  58. package/dist/loader-CrZTMKcy.js +131 -0
  59. package/dist/mockServiceWorker.js +349 -0
  60. package/dist/snakeCase-CTCA7tap.js +7 -0
  61. package/package.json +1 -2
@@ -0,0 +1,84 @@
1
+ import { ref as m, onMounted as h, createBlock as s, unref as a, openBlock as o, withCtx as i, createElementBlock as S, createVNode as k, Fragment as N, renderList as b, createCommentVNode as f, createElementVNode as p, toDisplayString as U } from "vue";
2
+ import { u as x, e as v, _ as E, t as d, n as F } from "./index-60qEjGuU.js";
3
+ import { storeToRefs as R } from "pinia";
4
+ import { NEmpty as w, NForm as B, NFormItem as C, NSwitch as O, NInput as T } from "naive-ui";
5
+ const V = { class: "hidden lg:inline" }, M = {
6
+ __name: "ServerSettings",
7
+ setup(I) {
8
+ const r = x(), _ = m({}), n = m({}), { settings: u } = R(r);
9
+ h(() => {
10
+ r.fetchSettings().catch((e) => {
11
+ v(e);
12
+ }).then(() => {
13
+ for (const e of u.value)
14
+ 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;
15
+ });
16
+ });
17
+ function g() {
18
+ let e = [];
19
+ for (const [l, t] of Object.entries(n.value))
20
+ e.push({
21
+ name: l,
22
+ value: t
23
+ });
24
+ r.saveSettings(e).then(() => {
25
+ F({
26
+ content: d("servers.settings_update_success_msg"),
27
+ type: "success"
28
+ }, () => {
29
+ y();
30
+ });
31
+ }).catch((l) => {
32
+ v(l);
33
+ });
34
+ }
35
+ function y() {
36
+ r.fetchSettings().catch((e) => {
37
+ v(e);
38
+ });
39
+ }
40
+ return (e, l) => !a(u) || a(u).length === 0 ? (o(), s(a(w), { key: 0 })) : (o(), s(a(B), {
41
+ key: 1,
42
+ "label-placement": "left",
43
+ "label-width": "auto",
44
+ ref_key: "settingsRef",
45
+ ref: _,
46
+ model: n.value
47
+ }, {
48
+ default: i(() => [
49
+ (o(!0), S(N, null, b(a(u), (t) => (o(), s(a(C), {
50
+ label: t.label
51
+ }, {
52
+ default: i(() => [
53
+ t.type === "bool" ? (o(), s(a(O), {
54
+ key: 0,
55
+ value: n.value[t.name],
56
+ "onUpdate:value": (c) => n.value[t.name] = c
57
+ }, null, 8, ["value", "onUpdate:value"])) : f("", !0),
58
+ t.type === "string" ? (o(), s(a(T), {
59
+ key: 1,
60
+ value: n.value[t.name],
61
+ "onUpdate:value": (c) => n.value[t.name] = c,
62
+ type: "text"
63
+ }, null, 8, ["value", "onUpdate:value"])) : f("", !0)
64
+ ]),
65
+ _: 2
66
+ }, 1032, ["label"]))), 256)),
67
+ k(E, {
68
+ color: "green",
69
+ onClick: l[0] || (l[0] = (t) => g())
70
+ }, {
71
+ default: i(() => [
72
+ l[1] || (l[1] = p("i", { class: "fas fa-edit" }, null, -1)),
73
+ p("span", V, " " + U(a(d)("main.save")), 1)
74
+ ]),
75
+ _: 1
76
+ })
77
+ ]),
78
+ _: 1
79
+ }, 8, ["model"]));
80
+ }
81
+ };
82
+ export {
83
+ M as default
84
+ };
@@ -0,0 +1,63 @@
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 { a as k } from "./index-60qEjGuU.js";
3
+ const w = { id: "server-status-component" }, g = { class: "flex flex-wrap" }, b = { class: "md:w-1/6 pr-4 pl-4" }, q = {
4
+ key: 0,
5
+ class: "inline"
6
+ }, I = { class: "badge-green" }, N = {
7
+ key: 1,
8
+ class: "inline"
9
+ }, j = { class: "badge-red" }, S = {
10
+ key: 2,
11
+ class: "inline"
12
+ }, x = {
13
+ key: 0,
14
+ class: "md:w-1/3 pr-4 pl-4"
15
+ }, B = {
16
+ key: 0,
17
+ class: "inline"
18
+ }, E = ["href"], M = { key: 1 }, V = {
19
+ key: 1,
20
+ class: "md:w-1/4 pr-4 pl-4"
21
+ }, C = {
22
+ key: 2,
23
+ class: "md:w-1/4 pr-4 pl-4"
24
+ }, J = {
25
+ __name: "ServerStatus",
26
+ props: {
27
+ serverId: Number
28
+ },
29
+ setup(d, { expose: v }) {
30
+ const c = d, e = f(null), r = l(() => e.value?.status ? e.value.status === "online" ? "online" : "offline" : "unknown"), p = l(() => "hostname" in (e.value ?? {})), _ = l(() => "players" in (e.value ?? {})), m = l(() => "map" in (e.value ?? {})), h = l(
31
+ () => e.value?.joinlink && e.value.joinlink.length > 0
32
+ );
33
+ return y(() => {
34
+ k.get("/api/servers/" + c.serverId + "/query").then((o) => e.value = o.data);
35
+ }), v({
36
+ status: r
37
+ }), (o, u) => (n(), s("div", w, [
38
+ a("div", g, [
39
+ a("div", b, [
40
+ r.value === "online" ? (n(), s("div", q, [
41
+ a("span", I, t(o.trans("servers.online")), 1)
42
+ ])) : r.value === "offline" ? (n(), s("div", N, [
43
+ a("span", j, t(o.trans("servers.offline")), 1)
44
+ ])) : (n(), s("div", S, [...u[0] || (u[0] = [
45
+ a("span", { class: "badge-orange" }, "-", -1)
46
+ ])]))
47
+ ]),
48
+ p.value ? (n(), s("div", x, [
49
+ h.value ? (n(), s("div", B, [
50
+ a("a", {
51
+ href: e.value.joinlink
52
+ }, t(e.value.hostname), 9, E)
53
+ ])) : (n(), s("div", M, t(e.value.hostname), 1))
54
+ ])) : i("", !0),
55
+ _.value ? (n(), s("div", V, t(o.trans("servers.query_players")) + ": " + t(e.value.players), 1)) : i("", !0),
56
+ m.value ? (n(), s("div", C, t(o.trans("servers.query_map")) + ": " + t(e.value.map), 1)) : i("", !0)
57
+ ])
58
+ ]));
59
+ }
60
+ };
61
+ export {
62
+ J as default
63
+ };