@gameap/frontend 4.1.0-dev1 → 4.1.0-dev10

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 (72) hide show
  1. package/dist/AdminClientCertificatesView-Bg8X_Ouc.js +370 -0
  2. package/dist/AdminDaemonTaskListView-DbJp0aqQ.js +316 -0
  3. package/dist/AdminDaemonTaskOutputView-DNCHQfxx.js +87 -0
  4. package/dist/AdminGamesEdit-jco7cBfk.js +473 -0
  5. package/dist/AdminGamesList-CMjsgEpx.js +518 -0
  6. package/dist/AdminModEdit-BlRu_09M.js +529 -0
  7. package/dist/AdminNodeShowView-BHxJkjYJ.js +175 -0
  8. package/dist/AdminNodesCreateView-DihmM46W.js +87 -0
  9. package/dist/AdminNodesEditView-CVACSido.js +65 -0
  10. package/dist/AdminNodesView-CHtiU6dZ.js +167 -0
  11. package/dist/AdminPluginsView-CRjF3BPs.js +984 -0
  12. package/dist/AdminServersCreate-5f8x6eZO.js +342 -0
  13. package/dist/AdminServersEdit-CA7711nJ.js +400 -0
  14. package/dist/AdminServersList-De5ZMEGZ.js +168 -0
  15. package/dist/AdminUsersEditView-DeYo98vi.js +308 -0
  16. package/dist/AdminUsersView-C8fKEhpr.js +446 -0
  17. package/dist/CreateModForm-CqkvVLfN.js +123 -0
  18. package/dist/CreateNodeModal-DOXVtVLQ.js +100 -0
  19. package/dist/DsIpSelector-C676Y19X.js +90 -0
  20. package/dist/EmptyView-Bf6zmQQt.js +9 -0
  21. package/dist/FileManager-DSa9v4Ex.js +5932 -0
  22. package/dist/GameIcon-DaYNlnur.js +87 -0
  23. package/dist/GameModSelector-CQBT8ZLu.js +95 -0
  24. package/dist/InputManyList-DUOtepb8.js +110 -0
  25. package/dist/InputTextList-lPhVIV04.js +63 -0
  26. package/dist/PluginPendingView-DaDaN30Q.js +34 -0
  27. package/dist/ProfileView-Dw2T3X8m.js +295 -0
  28. package/dist/RconConsole-CvxNBv0B.js +74 -0
  29. package/dist/RconPlayers-odUKa0Ps.js +424 -0
  30. package/dist/ServerConsole-B9v2PcWb.js +99 -0
  31. package/dist/ServerControlButton-D_zJbxr6.js +186 -0
  32. package/dist/ServerIdView-_vGQRk7y.js +609 -0
  33. package/dist/ServerSelector-6fCqL3e9.js +52 -0
  34. package/dist/ServerSettings-C6-tkLTH.js +84 -0
  35. package/dist/ServerStatus-CcqB0h1r.js +63 -0
  36. package/dist/ServerTasks-BcaZzvz7.js +857 -0
  37. package/dist/ServersView-S_G_kuGj.js +313 -0
  38. package/dist/SettingsParameters-u3Awy4Vf.js +89 -0
  39. package/dist/SmartPortSelector-BRSQFVqT.js +174 -0
  40. package/dist/TokensView-C1RFJSB5.js +392 -0
  41. package/dist/UpdateNodeForm-BAhzQLt-.js +652 -0
  42. package/dist/UserServerPrivileges-Q2wQMyHi.js +319 -0
  43. package/dist/_createCompounder-CXjx5-CF.js +241 -0
  44. package/dist/camelCase-CSrB2MWj.js +8 -0
  45. package/dist/capitalize-BZSBvd6d.js +40 -0
  46. package/dist/clientCertificates-C0FlDwsb.js +53 -0
  47. package/dist/favicon-32x32.png +0 -0
  48. package/dist/favicon-96x96.png +0 -0
  49. package/dist/favicon.ico +0 -0
  50. package/dist/fonts/gicon.eot +0 -0
  51. package/dist/fonts/gicon.svg +33 -0
  52. package/dist/fonts/gicon.ttf +0 -0
  53. package/dist/fonts/gicon.woff +0 -0
  54. package/dist/fonts/gicon.woff2 +0 -0
  55. package/dist/frontend.css +6 -0
  56. package/dist/gameList-kucszmx0.js +115 -0
  57. package/dist/gameap.svg +3 -0
  58. package/dist/gameap_full.svg +9 -0
  59. package/dist/images/gap_logo_white.png +0 -0
  60. package/dist/images/gap_logo_white_mini.png +0 -0
  61. package/dist/images/gicon.svg +18 -0
  62. package/dist/images/icons/save-white.svg +1 -0
  63. package/dist/images/icons/save.svg +1 -0
  64. package/dist/index-9fvX7FD-.js +3840 -0
  65. package/dist/index.js +1 -0
  66. package/dist/isEmpty-D0Z8Rneq.js +263 -0
  67. package/dist/join-CmlzL0H9.js +7 -0
  68. package/dist/loader-qtG-Lf6M.js +131 -0
  69. package/dist/mockServiceWorker.js +349 -0
  70. package/dist/snakeCase-nnM4dAra.js +7 -0
  71. package/dist/validators-ChBGsKft.js +65 -0
  72. package/package.json +6 -4
@@ -0,0 +1,84 @@
1
+ import { ref as m, onMounted as y, createBlock as s, unref as a, openBlock as o, withCtx as v, createElementBlock as S, createVNode as f, Fragment as k, renderList as N, createCommentVNode as p, createElementVNode as b, toDisplayString as U } from "vue";
2
+ import { u as x, e as i, _ as E, a as F, t as d, n as R } from "./index-9fvX7FD-.js";
3
+ import { storeToRefs as w } from "pinia";
4
+ import { NEmpty as B, NForm as C, NFormItem as O, NSwitch as T, NInput as V } from "naive-ui";
5
+ const $ = { class: "hidden lg:inline" }, q = {
6
+ __name: "ServerSettings",
7
+ setup(I) {
8
+ const r = x(), _ = m({}), n = m({}), { settings: u } = w(r);
9
+ y(() => {
10
+ r.fetchSettings().catch((e) => {
11
+ i(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
+ R({
26
+ content: d("servers.settings_update_success_msg"),
27
+ type: "success"
28
+ }, () => {
29
+ h();
30
+ });
31
+ }).catch((l) => {
32
+ i(l);
33
+ });
34
+ }
35
+ function h() {
36
+ r.fetchSettings().catch((e) => {
37
+ i(e);
38
+ });
39
+ }
40
+ return (e, l) => !a(u) || a(u).length === 0 ? (o(), s(a(B), { key: 0 })) : (o(), s(a(C), {
41
+ key: 1,
42
+ "label-placement": "left",
43
+ "label-width": "auto",
44
+ ref_key: "settingsRef",
45
+ ref: _,
46
+ model: n.value
47
+ }, {
48
+ default: v(() => [
49
+ (o(!0), S(k, null, N(a(u), (t) => (o(), s(a(O), {
50
+ label: t.label
51
+ }, {
52
+ default: v(() => [
53
+ t.type === "bool" ? (o(), s(a(T), {
54
+ key: 0,
55
+ value: n.value[t.name],
56
+ "onUpdate:value": (c) => n.value[t.name] = c
57
+ }, null, 8, ["value", "onUpdate:value"])) : p("", !0),
58
+ t.type === "string" ? (o(), s(a(V), {
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"])) : p("", !0)
64
+ ]),
65
+ _: 2
66
+ }, 1032, ["label"]))), 256)),
67
+ f(E, {
68
+ color: "green",
69
+ onClick: l[0] || (l[0] = (t) => g())
70
+ }, {
71
+ default: v(() => [
72
+ f(a(F), { name: "save" }),
73
+ b("span", $, " " + U(a(d)("main.save")), 1)
74
+ ]),
75
+ _: 1
76
+ })
77
+ ]),
78
+ _: 1
79
+ }, 8, ["model"]));
80
+ }
81
+ };
82
+ export {
83
+ q 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 { b as k } from "./index-9fvX7FD-.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
+ };