@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.
Files changed (63) hide show
  1. package/dist/{AdminClientCertificatesView-Bg8X_Ouc.js → AdminClientCertificatesView-Cdat-6ub.js} +56 -66
  2. package/dist/{AdminDaemonTaskListView-DbJp0aqQ.js → AdminDaemonTaskListView-C0Jy1oat.js} +28 -29
  3. package/dist/{AdminDaemonTaskOutputView-DNCHQfxx.js → AdminDaemonTaskOutputView-BdstVc5K.js} +23 -25
  4. package/dist/{AdminGamesEdit-jco7cBfk.js → AdminGamesEdit-BOxBjeqI.js} +28 -31
  5. package/dist/{AdminGamesList-CMjsgEpx.js → AdminGamesList-C6nSWKdx.js} +136 -143
  6. package/dist/{AdminModEdit-BlRu_09M.js → AdminModEdit-diCpKnO2.js} +8 -8
  7. package/dist/{AdminNodeShowView-BHxJkjYJ.js → AdminNodeShowView-BIUiXpmk.js} +51 -61
  8. package/dist/{AdminNodesCreateView-DihmM46W.js → AdminNodesCreateView-Brzzh4HN.js} +13 -12
  9. package/dist/{AdminNodesEditView-CVACSido.js → AdminNodesEditView-Dwr2kt82.js} +16 -15
  10. package/dist/{AdminNodesView-CHtiU6dZ.js → AdminNodesView-DyiGZ1lZ.js} +25 -25
  11. package/dist/{AdminPluginsView-CRjF3BPs.js → AdminPluginsView-CUe4i8kM.js} +96 -105
  12. package/dist/{AdminServersCreate-5f8x6eZO.js → AdminServersCreate-iNMqnGK9.js} +26 -25
  13. package/dist/{AdminServersEdit-CA7711nJ.js → AdminServersEdit-DVI74EZc.js} +24 -23
  14. package/dist/{AdminServersList-De5ZMEGZ.js → AdminServersList-CkjyJfPK.js} +28 -28
  15. package/dist/{AdminUsersEditView-DeYo98vi.js → AdminUsersEditView-BTscuJ86.js} +2 -2
  16. package/dist/{AdminUsersView-C8fKEhpr.js → AdminUsersView-D-fJfjLH.js} +95 -105
  17. package/dist/{CreateModForm-CqkvVLfN.js → CreateModForm-CDqlkWYW.js} +3 -3
  18. package/dist/{CreateNodeModal-DOXVtVLQ.js → CreateNodeModal-CcpGS94Z.js} +1 -1
  19. package/dist/{DsIpSelector-C676Y19X.js → DsIpSelector-B_sWnbEP.js} +1 -1
  20. package/dist/{EmptyView-Bf6zmQQt.js → EmptyView-CopbPCy6.js} +1 -1
  21. package/dist/{FileManager-DSa9v4Ex.js → FileManager-JXa457rg.js} +691 -690
  22. package/dist/GCard-BmZwrZ1e.js +50 -0
  23. package/dist/GDataTable-DC0a2vJJ.js +60 -0
  24. package/dist/GDivider-tYaNzeM5.js +16 -0
  25. package/dist/GEmpty-Bkw6u0WR.js +35 -0
  26. package/dist/GModal-C4shXjCa.js +53 -0
  27. package/dist/GSwitch-1wlrRoUA.js +42 -0
  28. package/dist/GTable-DRH5VONX.js +38 -0
  29. package/dist/{GameModSelector-CQBT8ZLu.js → GameModSelector-BzBYr5Bl.js} +2 -2
  30. package/dist/{InputManyList-DUOtepb8.js → InputManyList-B65AFbLu.js} +21 -20
  31. package/dist/{InputTextList-lPhVIV04.js → InputTextList-DUpEA_--.js} +1 -1
  32. package/dist/PluginPendingView-CaK51oA9.js +35 -0
  33. package/dist/{ProfileView-Dw2T3X8m.js → ProfileView-BTXGnm4R.js} +74 -83
  34. package/dist/{RconConsole-CvxNBv0B.js → RconConsole-BSienrhk.js} +2 -2
  35. package/dist/{RconPlayers-odUKa0Ps.js → RconPlayers-jIqnphJ1.js} +111 -118
  36. package/dist/{ServerConsole-B9v2PcWb.js → ServerConsole-BdF95Ef6.js} +1 -1
  37. package/dist/{ServerControlButton-D_zJbxr6.js → ServerControlButton-7Un9i8tt.js} +6 -6
  38. package/dist/{ServerIdView-_vGQRk7y.js → ServerIdView-1X_6i-s6.js} +69 -67
  39. package/dist/{ServerSelector-6fCqL3e9.js → ServerSelector-Y4fSKiM2.js} +1 -1
  40. package/dist/{ServerSettings-C6-tkLTH.js → ServerSettings-DsIlowVa.js} +23 -21
  41. package/dist/{ServerStatus-CcqB0h1r.js → ServerStatus-BblAtet5.js} +1 -1
  42. package/dist/{ServerTasks-BcaZzvz7.js → ServerTasks-2jQBkpL9.js} +1 -1
  43. package/dist/{ServersView-S_G_kuGj.js → ServersView-CmDavKT_.js} +76 -76
  44. package/dist/{SettingsParameters-u3Awy4Vf.js → SettingsParameters-jT8ffL4p.js} +4 -3
  45. package/dist/{SmartPortSelector-BRSQFVqT.js → SmartPortSelector-BuREMnLx.js} +1 -1
  46. package/dist/{TokensView-C1RFJSB5.js → TokensView-Cw5j1Ivk.js} +60 -64
  47. package/dist/{UpdateNodeForm-BAhzQLt-.js → UpdateNodeForm-BnIqe7rC.js} +11 -10
  48. package/dist/{UserServerPrivileges-Q2wQMyHi.js → UserServerPrivileges-CvGlXrzS.js} +82 -92
  49. package/dist/{_createCompounder-CXjx5-CF.js → _createCompounder-vPBqoT5p.js} +3 -3
  50. package/dist/{camelCase-CSrB2MWj.js → camelCase-BSEkxKhA.js} +2 -2
  51. package/dist/{capitalize-BZSBvd6d.js → capitalize-BVfQSCbg.js} +5 -5
  52. package/dist/{clientCertificates-C0FlDwsb.js → clientCertificates-DHDjG6a2.js} +1 -1
  53. package/dist/frontend.css +1 -1
  54. package/dist/{gameList-kucszmx0.js → gameList-BuPam-HN.js} +1 -1
  55. package/dist/{index-9fvX7FD-.js → index-CiR3a1Cv.js} +180 -179
  56. package/dist/index.js +1 -1
  57. package/dist/{isEmpty-D0Z8Rneq.js → isEmpty-CLFmjU_j.js} +11 -11
  58. package/dist/{loader-qtG-Lf6M.js → loader-DStCgv0r.js} +1 -1
  59. package/dist/mockServiceWorker.js +1 -1
  60. package/dist/{snakeCase-nnM4dAra.js → snakeCase-lCSKsq6x.js} +1 -1
  61. package/dist/{validators-ChBGsKft.js → validators-r6Rit4O6.js} +2 -2
  62. package/package.json +2 -2
  63. package/dist/PluginPendingView-DaDaN30Q.js +0 -34
@@ -1,50 +1,52 @@
1
- import { ref as k, computed as B, onMounted as I, createElementBlock as y, openBlock as _, Fragment as L, createVNode as s, createCommentVNode as D, unref as e, withCtx as i, createElementVNode as n, toDisplayString as o, createBlock as h } from "vue";
2
- import { i as S, t as a, e as N, m as U, _ as v, a as b, B as V, l as A, b as P } from "./index-9fvX7FD-.js";
3
- import { NCard as T, NTable as j } from "naive-ui";
4
- import { storeToRefs as F } from "pinia";
5
- import { useRoute as M } from "vue-router";
6
- const O = {
1
+ import { ref as k, computed as I, onMounted as L, createElementBlock as y, openBlock as u, Fragment as B, createVNode as s, createCommentVNode as D, unref as e, withCtx as i, createElementVNode as n, toDisplayString as t, createBlock as h } from "vue";
2
+ import { i as S, t as a, e as x, m as U, _ as v, a as b, C as V, l as A, b as P } from "./index-CiR3a1Cv.js";
3
+ import "naive-ui";
4
+ import { _ as j } from "./GCard-BmZwrZ1e.js";
5
+ import { _ as F } from "./GTable-DRH5VONX.js";
6
+ import { storeToRefs as M } from "pinia";
7
+ import { useRoute as O } from "vue-router";
8
+ const T = {
7
9
  key: 0,
8
10
  class: "mb-5"
9
- }, Q = {
11
+ }, X = {
10
12
  __name: "AdminNodeShowView",
11
13
  setup(E) {
12
- const m = M(), f = S(), { daemonInfo: t, loading: x } = F(f), r = k(!1), c = k(0);
13
- async function w(d, u) {
14
+ const m = O(), f = S(), { daemonInfo: o, loading: C } = M(f), r = k(!1), c = k(0);
15
+ async function w(d, _) {
14
16
  r.value = !0, c.value = 0;
15
17
  try {
16
- const g = await P.get(d, {
18
+ const p = await P.get(d, {
17
19
  responseType: "blob",
18
- onDownloadProgress: (p) => {
19
- p.total && (c.value = Math.round(p.loaded * 100 / p.total));
20
+ onDownloadProgress: (g) => {
21
+ g.total && (c.value = Math.round(g.loaded * 100 / g.total));
20
22
  }
21
- }), $ = new Blob([g.data]), l = document.createElement("a");
22
- l.href = window.URL.createObjectURL($), l.setAttribute("download", u), document.body.appendChild(l), l.click(), document.body.removeChild(l), window.URL.revokeObjectURL(l.href);
23
- } catch (g) {
24
- N(g);
23
+ }), R = new Blob([p.data]), l = document.createElement("a");
24
+ l.href = window.URL.createObjectURL(R), l.setAttribute("download", _), document.body.appendChild(l), l.click(), document.body.removeChild(l), window.URL.revokeObjectURL(l.href);
25
+ } catch (p) {
26
+ x(p);
25
27
  } finally {
26
28
  r.value = !1, c.value = 0;
27
29
  }
28
30
  }
29
- function z() {
31
+ function $() {
30
32
  w(`/api/dedicated_servers/${m.params.id}/logs.zip`, "logs.zip");
31
33
  }
32
- function C() {
34
+ function z() {
33
35
  w("/api/dedicated_servers/certificates.zip", "certificates.zip");
34
36
  }
35
- const R = B(() => {
37
+ const N = I(() => {
36
38
  let d = [
37
39
  { route: "/", text: "GameAP", icon: "gicon gicon-gameap" },
38
40
  { route: { name: "admin.nodes.index" }, text: a("dedicated_servers.dedicated_servers") }
39
41
  ];
40
- return t.value.name && d.push({ text: t.value.name }), d;
42
+ return o.value.name && d.push({ text: o.value.name }), d;
41
43
  });
42
- return I(() => {
44
+ return L(() => {
43
45
  f.setNodeId(m.params.id), f.fetchDaemonInfo().catch((d) => {
44
- N(d);
46
+ x(d);
45
47
  });
46
- }), (d, u) => (_(), y(L, null, [
47
- s(e(U), { items: R.value }, null, 8, ["items"]),
48
+ }), (d, _) => (u(), y(B, null, [
49
+ s(e(U), { items: N.value }, null, 8, ["items"]),
48
50
  s(v, {
49
51
  color: "blue",
50
52
  size: "middle",
@@ -56,7 +58,7 @@ const O = {
56
58
  name: "edit",
57
59
  class: "mr-0.5"
58
60
  }),
59
- n("span", null, o(e(a)("main.edit")), 1)
61
+ n("span", null, t(e(a)("main.edit")), 1)
60
62
  ]),
61
63
  _: 1
62
64
  }, 8, ["route"]),
@@ -65,14 +67,14 @@ const O = {
65
67
  size: "middle",
66
68
  class: "mb-5 mr-1",
67
69
  disabled: r.value,
68
- onClick: z
70
+ onClick: $
69
71
  }, {
70
72
  default: i(() => [
71
73
  s(e(b), {
72
74
  name: "download",
73
75
  class: "mr-0.5"
74
76
  }),
75
- n("span", null, o(e(a)("dedicated_servers.download_logs")), 1)
77
+ n("span", null, t(e(a)("dedicated_servers.download_logs")), 1)
76
78
  ]),
77
79
  _: 1
78
80
  }, 8, ["disabled"]),
@@ -81,84 +83,72 @@ const O = {
81
83
  size: "middle",
82
84
  class: "mb-5 mr-1",
83
85
  disabled: r.value,
84
- onClick: C
86
+ onClick: z
85
87
  }, {
86
88
  default: i(() => [
87
89
  s(e(b), {
88
90
  name: "download",
89
91
  class: "mr-0.5"
90
92
  }),
91
- n("span", null, o(e(a)("dedicated_servers.download_certificates")), 1)
93
+ n("span", null, t(e(a)("dedicated_servers.download_certificates")), 1)
92
94
  ]),
93
95
  _: 1
94
96
  }, 8, ["disabled"]),
95
- r.value ? (_(), y("div", O, [
97
+ r.value ? (u(), y("div", T, [
96
98
  s(e(V), { progress: c.value }, null, 8, ["progress"])
97
99
  ])) : D("", !0),
98
- s(e(T), {
99
- size: "small",
100
- class: "mb-3",
101
- "header-class": "g-card-header",
102
- segmented: {
103
- content: !0,
104
- footer: "soft"
105
- }
106
- }, {
100
+ s(e(j), { class: "mb-3" }, {
107
101
  default: i(() => [
108
- e(x) ? (_(), h(e(A), { key: 0 })) : (_(), h(e(j), {
109
- key: 1,
110
- bordered: !1,
111
- "single-line": !0
112
- }, {
102
+ e(C) ? (u(), h(e(A), { key: 0 })) : (u(), h(e(F), { key: 1 }, {
113
103
  default: i(() => [
114
104
  n("tbody", null, [
115
105
  n("tr", null, [
116
- u[0] || (u[0] = n("td", null, [
106
+ _[0] || (_[0] = n("td", null, [
117
107
  n("strong", null, "ID:")
118
108
  ], -1)),
119
- n("td", null, o(e(t).id), 1)
109
+ n("td", null, t(e(o).id), 1)
120
110
  ]),
121
111
  n("tr", null, [
122
112
  n("td", null, [
123
- n("strong", null, o(e(a)("dedicated_servers.name")) + ":", 1)
113
+ n("strong", null, t(e(a)("dedicated_servers.name")) + ":", 1)
124
114
  ]),
125
- n("td", null, o(e(t).name), 1)
115
+ n("td", null, t(e(o).name), 1)
126
116
  ]),
127
117
  n("tr", null, [
128
118
  n("td", null, [
129
- n("strong", null, o(e(a)("dedicated_servers.gdaemon_api_key")) + ":", 1)
119
+ n("strong", null, t(e(a)("dedicated_servers.gdaemon_api_key")) + ":", 1)
130
120
  ]),
131
- n("td", null, o(e(t).api_key), 1)
121
+ n("td", null, t(e(o).api_key), 1)
132
122
  ]),
133
123
  n("tr", null, [
134
124
  n("td", null, [
135
- n("strong", null, o(e(a)("dedicated_servers.gdaemon_version")) + ":", 1)
125
+ n("strong", null, t(e(a)("dedicated_servers.gdaemon_version")) + ":", 1)
136
126
  ]),
137
- n("td", null, o(e(t).version && e(t).version.version ? e(t).version.version + " (" + e(t).version.compile_date + ")" : e(a)("dedicated_servers.gdaemon_empty_info")), 1)
127
+ n("td", null, t(e(o).version && e(o).version.version ? e(o).version.version + " (" + e(o).version.compile_date + ")" : e(a)("dedicated_servers.gdaemon_empty_info")), 1)
138
128
  ]),
139
129
  n("tr", null, [
140
130
  n("td", null, [
141
- n("strong", null, o(e(a)("dedicated_servers.gdaemon_uptime")) + ":", 1)
131
+ n("strong", null, t(e(a)("dedicated_servers.gdaemon_uptime")) + ":", 1)
142
132
  ]),
143
- n("td", null, o(e(t).base_info && e(t).base_info.uptime ? e(t).base_info.uptime : e(a)("dedicated_servers.gdaemon_empty_info")), 1)
133
+ n("td", null, t(e(o).base_info && e(o).base_info.uptime ? e(o).base_info.uptime : e(a)("dedicated_servers.gdaemon_empty_info")), 1)
144
134
  ]),
145
135
  n("tr", null, [
146
136
  n("td", null, [
147
- n("strong", null, o(e(a)("dedicated_servers.gdaemon_online_servers_count")) + ":", 1)
137
+ n("strong", null, t(e(a)("dedicated_servers.gdaemon_online_servers_count")) + ":", 1)
148
138
  ]),
149
- n("td", null, o(e(t).base_info && e(t).base_info.online_servers_count ? e(t).base_info.online_servers_count : e(a)("dedicated_servers.gdaemon_empty_info")), 1)
139
+ n("td", null, t(e(o).base_info && e(o).base_info.online_servers_count ? e(o).base_info.online_servers_count : e(a)("dedicated_servers.gdaemon_empty_info")), 1)
150
140
  ]),
151
141
  n("tr", null, [
152
142
  n("td", null, [
153
- n("strong", null, o(e(a)("dedicated_servers.gdaemon_working_tasks_count")) + ":", 1)
143
+ n("strong", null, t(e(a)("dedicated_servers.gdaemon_working_tasks_count")) + ":", 1)
154
144
  ]),
155
- n("td", null, o(e(t).base_info && e(t).base_info.working_tasks_count ? e(t).base_info.working_tasks_count : e(a)("dedicated_servers.gdaemon_empty_info")), 1)
145
+ n("td", null, t(e(o).base_info && e(o).base_info.working_tasks_count ? e(o).base_info.working_tasks_count : e(a)("dedicated_servers.gdaemon_empty_info")), 1)
156
146
  ]),
157
147
  n("tr", null, [
158
148
  n("td", null, [
159
- n("strong", null, o(e(a)("dedicated_servers.gdaemon_waiting_tasks_count")) + ":", 1)
149
+ n("strong", null, t(e(a)("dedicated_servers.gdaemon_waiting_tasks_count")) + ":", 1)
160
150
  ]),
161
- n("td", null, o(e(t).base_info && e(t).base_info.waiting_tasks_count ? e(t).base_info.waiting_tasks_count : e(a)("dedicated_servers.gdaemon_empty_info")), 1)
151
+ n("td", null, t(e(o).base_info && e(o).base_info.waiting_tasks_count ? e(o).base_info.waiting_tasks_count : e(a)("dedicated_servers.gdaemon_empty_info")), 1)
162
152
  ])
163
153
  ])
164
154
  ]),
@@ -171,5 +161,5 @@ const O = {
171
161
  }
172
162
  };
173
163
  export {
174
- Q as default
164
+ X as default
175
165
  };
@@ -1,20 +1,21 @@
1
- import { computed as d, onMounted as x, ref as S, resolveComponent as N, createElementBlock as b, openBlock as V, Fragment as M, createVNode as n, unref as a, withCtx as f, createElementVNode as $, toDisplayString as w } from "vue";
2
- import { x as y, t as r, e as m, m as A, _ as D, a as E, n as F } from "./index-9fvX7FD-.js";
3
- import { u as O } from "./clientCertificates-C0FlDwsb.js";
1
+ import { computed as d, onMounted as S, ref as x, resolveComponent as N, createElementBlock as b, openBlock as V, Fragment as y, createVNode as n, unref as a, withCtx as f, createElementVNode as M, toDisplayString as $ } from "vue";
2
+ import { y as w, t as r, e as m, m as A, _ as D, a as E, n as F } from "./index-CiR3a1Cv.js";
3
+ import "naive-ui";
4
+ import { u as O } from "./clientCertificates-DHDjG6a2.js";
4
5
  import { useRoute as R, useRouter as j } from "vue-router";
5
6
  import { storeToRefs as p } from "pinia";
6
- import { _ as B } from "./UpdateNodeForm-BAhzQLt-.js";
7
- import { s as L } from "./snakeCase-nnM4dAra.js";
8
- const q = { class: "hidden lg:inline" }, K = {
7
+ import { _ as B } from "./UpdateNodeForm-BnIqe7rC.js";
8
+ import { s as L } from "./snakeCase-lCSKsq6x.js";
9
+ const q = { class: "hidden lg:inline" }, Q = {
9
10
  __name: "AdminNodesCreateView",
10
11
  setup(G) {
11
12
  R();
12
- const _ = j(), s = y(), i = O(), v = d(() => [
13
+ const _ = j(), s = w(), i = O(), v = d(() => [
13
14
  { route: "/", text: "GameAP", icon: "gicon gicon-gameap" },
14
15
  { route: { name: "admin.nodes.index" }, text: r("dedicated_servers.dedicated_servers") },
15
16
  { text: r("dedicated_servers.create") }
16
17
  ]);
17
- x(() => {
18
+ S(() => {
18
19
  i.fetchClientCertificates().catch((e) => {
19
20
  m(e);
20
21
  }), s.fetchAutoSetupData().catch((e) => {
@@ -24,7 +25,7 @@ const q = { class: "hidden lg:inline" }, K = {
24
25
  const { certificates: C } = p(i), { autoSetupData: c } = p(s), g = d(() => i.loading.value), h = d(() => C.value.map((e) => ({
25
26
  label: e.fingerprint,
26
27
  value: e.id
27
- }))), t = S({
28
+ }))), t = x({
28
29
  name: "",
29
30
  description: "",
30
31
  location: ""
@@ -46,7 +47,7 @@ const q = { class: "hidden lg:inline" }, K = {
46
47
  };
47
48
  return (e, o) => {
48
49
  const l = N("CreateNodeModal");
49
- return V(), b(M, null, [
50
+ return V(), b(y, null, [
50
51
  n(a(A), { items: v.value }, null, 8, ["items"]),
51
52
  n(B, {
52
53
  loading: g.value,
@@ -66,7 +67,7 @@ const q = { class: "hidden lg:inline" }, K = {
66
67
  name: "add-square",
67
68
  class: "mr-0.5"
68
69
  }),
69
- $("span", q, " " + w(a(r)("main.create")), 1)
70
+ M("span", q, " " + $(a(r)("main.create")), 1)
70
71
  ]),
71
72
  _: 1
72
73
  })
@@ -83,5 +84,5 @@ const q = { class: "hidden lg:inline" }, K = {
83
84
  }
84
85
  };
85
86
  export {
86
- K as default
87
+ Q as default
87
88
  };
@@ -1,21 +1,22 @@
1
- import { computed as s, onMounted as x, ref as b, createElementBlock as h, openBlock as N, Fragment as S, createVNode as d, unref as O } from "vue";
2
- import { i as V, t as i, e as c, m as j, n as E } from "./index-9fvX7FD-.js";
3
- import { u as k } from "./clientCertificates-C0FlDwsb.js";
1
+ import { computed as i, onMounted as x, ref as b, createElementBlock as h, openBlock as N, Fragment as S, createVNode as d, unref as O } from "vue";
2
+ import { i as V, t as s, e as c, m as j, n as E } from "./index-CiR3a1Cv.js";
3
+ import "naive-ui";
4
+ import { u as k } from "./clientCertificates-DHDjG6a2.js";
4
5
  import { useRoute as F, useRouter as R } from "vue-router";
5
6
  import { storeToRefs as l } from "pinia";
6
- import { _ as U } from "./UpdateNodeForm-BAhzQLt-.js";
7
- import { c as w } from "./camelCase-CSrB2MWj.js";
8
- import { s as y } from "./snakeCase-nnM4dAra.js";
9
- const z = {
7
+ import { _ as U } from "./UpdateNodeForm-BnIqe7rC.js";
8
+ import { c as w } from "./camelCase-BSEkxKhA.js";
9
+ import { s as y } from "./snakeCase-lCSKsq6x.js";
10
+ const D = {
10
11
  __name: "AdminNodesEditView",
11
12
  setup(A) {
12
- const u = F(), m = R(), a = V(), r = k(), f = s(() => [
13
+ const m = F(), u = R(), a = V(), r = k(), f = i(() => [
13
14
  { route: "/", text: "GameAP", icon: "gicon gicon-gameap" },
14
- { route: { name: "admin.nodes.index" }, text: i("dedicated_servers.dedicated_servers") },
15
- { text: i("dedicated_servers.edit") }
15
+ { route: { name: "admin.nodes.index" }, text: s("dedicated_servers.dedicated_servers") },
16
+ { text: s("dedicated_servers.edit") }
16
17
  ]);
17
18
  x(() => {
18
- a.setNodeId(u.params.id), a.fetchNode().then(() => {
19
+ a.setNodeId(m.params.id), a.fetchNode().then(() => {
19
20
  t.value = Object.fromEntries(
20
21
  Object.entries(p.value).map(([e, o]) => [w(e), o])
21
22
  );
@@ -25,7 +26,7 @@ const z = {
25
26
  c(e);
26
27
  });
27
28
  });
28
- const { node: p } = l(a), { certificates: v } = l(r), _ = s(() => a.loading.value || r.loading.value), g = s(() => v.value.map((e) => ({
29
+ const { node: p } = l(a), { certificates: v } = l(r), _ = i(() => a.loading.value || r.loading.value), g = i(() => v.value.map((e) => ({
29
30
  label: e.fingerprint,
30
31
  value: e.id
31
32
  }))), t = b({
@@ -39,10 +40,10 @@ const z = {
39
40
  );
40
41
  a.saveNode(e).then(() => {
41
42
  E({
42
- content: i("dedicated_servers.update_success_msg"),
43
+ content: s("dedicated_servers.update_success_msg"),
43
44
  type: "success"
44
45
  }, () => {
45
- m.push({ name: "admin.nodes.index" });
46
+ u.push({ name: "admin.nodes.index" });
46
47
  });
47
48
  }).catch((o) => {
48
49
  c(o);
@@ -61,5 +62,5 @@ const z = {
61
62
  }
62
63
  };
63
64
  export {
64
- z as default
65
+ D as default
65
66
  };
@@ -1,12 +1,14 @@
1
- import { computed as m, ref as b, onMounted as z, createElementBlock as C, openBlock as w, Fragment as $, createVNode as s, unref as i, withCtx as o, createElementVNode as u, toDisplayString as p, h as a } from "vue";
2
- import { x as D, t as e, e as _, m as S, _ as n, a as r, l as T, n as B } from "./index-9fvX7FD-.js";
3
- import { storeToRefs as E } from "pinia";
4
- import { NDataTable as V, NEmpty as j } from "naive-ui";
5
- import { j as A } from "./join-CmlzL0H9.js";
6
- const M = {
1
+ import { computed as m, ref as b, onMounted as $, createElementBlock as z, openBlock as C, Fragment as w, createVNode as s, unref as i, withCtx as o, createElementVNode as u, toDisplayString as _, h as a } from "vue";
2
+ import { y as S, t as e, e as p, m as B, _ as n, a as r, l as D, n as T } from "./index-CiR3a1Cv.js";
3
+ import { _ as V } from "./GDataTable-DC0a2vJJ.js";
4
+ import "naive-ui";
5
+ import { _ as j } from "./GEmpty-Bkw6u0WR.js";
6
+ import { storeToRefs as A } from "pinia";
7
+ import { j as E } from "./join-CmlzL0H9.js";
8
+ const I = {
7
9
  __name: "AdminNodesView",
8
10
  setup(F) {
9
- const d = D(), f = m(() => [
11
+ const d = S(), f = m(() => [
10
12
  { route: "/", text: "GameAP", icon: "gicon gicon-gameap" },
11
13
  { route: { name: "admin.nodes.index" }, text: e("sidebar.dedicated_servers") }
12
14
  ]), v = () => [
@@ -26,7 +28,7 @@ const M = {
26
28
  title: e("dedicated_servers.ip"),
27
29
  key: "ip",
28
30
  render(t) {
29
- return A(t.ip, ", ");
31
+ return E(t.ip, ", ");
30
32
  }
31
33
  },
32
34
  {
@@ -69,15 +71,15 @@ const M = {
69
71
  ];
70
72
  }
71
73
  }
72
- ], { loading: g, nodes: y } = E(d), h = b(v()), k = {
74
+ ], { loading: g, nodes: y } = A(d), h = b(v()), k = {
73
75
  pageSize: 20
74
76
  };
75
- z(() => {
76
- l();
77
+ $(() => {
78
+ c();
77
79
  });
78
- const l = () => {
80
+ const c = () => {
79
81
  d.fetchNodesByFilter([]).catch((t) => {
80
- _(t);
82
+ p(t);
81
83
  });
82
84
  }, x = m(() => y.value.map((t) => ({
83
85
  id: t.id,
@@ -94,22 +96,22 @@ const M = {
94
96
  closable: !1,
95
97
  onPositiveClick: () => {
96
98
  d.deleteNode(t).then(() => {
97
- B({
99
+ T({
98
100
  content: e("dedicated_servers.delete_success_msg"),
99
101
  type: "success"
100
102
  }, () => {
101
- l();
103
+ c();
102
104
  });
103
- }).catch((c) => {
104
- _(c);
105
+ }).catch((l) => {
106
+ p(l);
105
107
  });
106
108
  },
107
109
  onNegativeClick: () => {
108
110
  }
109
111
  });
110
112
  };
111
- return (t, c) => (w(), C($, null, [
112
- s(i(S), { items: f.value }, null, 8, ["items"]),
113
+ return (t, l) => (C(), z(w, null, [
114
+ s(i(B), { items: f.value }, null, 8, ["items"]),
113
115
  s(n, {
114
116
  color: "green",
115
117
  size: "middle",
@@ -121,7 +123,7 @@ const M = {
121
123
  name: "add-square",
122
124
  class: "mr-0.5"
123
125
  }),
124
- u("span", null, p(i(e)("dedicated_servers.create")), 1)
126
+ u("span", null, _(i(e)("dedicated_servers.create")), 1)
125
127
  ]),
126
128
  _: 1
127
129
  }),
@@ -136,21 +138,19 @@ const M = {
136
138
  name: "certificate",
137
139
  class: "mr-0.5"
138
140
  }),
139
- u("span", null, p(i(e)("client_certificates.client_certificates")), 1)
141
+ u("span", null, _(i(e)("client_certificates.client_certificates")), 1)
140
142
  ]),
141
143
  _: 1
142
144
  }),
143
145
  s(i(V), {
144
146
  ref: "tableRef",
145
- bordered: !1,
146
- "single-line": !0,
147
147
  columns: h.value,
148
148
  data: x.value,
149
149
  loading: i(g),
150
150
  pagination: k
151
151
  }, {
152
152
  loading: o(() => [
153
- s(i(T))
153
+ s(i(D))
154
154
  ]),
155
155
  empty: o(() => [
156
156
  s(i(j), {
@@ -163,5 +163,5 @@ const M = {
163
163
  }
164
164
  };
165
165
  export {
166
- M as default
166
+ I as default
167
167
  };