@gameap/frontend 4.1.0-dev2 → 4.1.0-dev4

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 (45) hide show
  1. package/dist/{AdminClientCertificatesView-DQTMJ6LY.js → AdminClientCertificatesView-BQyXmri1.js} +33 -34
  2. package/dist/{AdminDaemonTaskListView-Bx3e0Miy.js → AdminDaemonTaskListView-DTQbTpkt.js} +49 -50
  3. package/dist/{AdminDaemonTaskOutputView-BJtLdoAq.js → AdminDaemonTaskOutputView-DRrZwAwW.js} +32 -33
  4. package/dist/{AdminGamesEdit-hDe3Pr-7.js → AdminGamesEdit-CDTCJu52.js} +43 -44
  5. package/dist/{AdminGamesList-CM1xADCW.js → AdminGamesList-CU_RB7gu.js} +55 -56
  6. package/dist/{AdminModEdit-DDKd6Vga.js → AdminModEdit-P0crpkM3.js} +106 -107
  7. package/dist/{AdminNodeShowView-DMoEY2Cu.js → AdminNodeShowView-Col-7fyA.js} +34 -35
  8. package/dist/{AdminNodesCreateView-BXZDQIJ1.js → AdminNodesCreateView-CZsMnSCJ.js} +26 -27
  9. package/dist/{AdminNodesEditView-xO7-szjJ.js → AdminNodesEditView-DdNciuMa.js} +23 -24
  10. package/dist/{AdminNodesView-ugTPiC4h.js → AdminNodesView-DvuZ9haB.js} +16 -17
  11. package/dist/{AdminServersCreate-DOygFz_E.js → AdminServersCreate-zGHHAEkO.js} +56 -57
  12. package/dist/{AdminServersEdit-cZX6UGB1.js → AdminServersEdit-BR6sRGlM.js} +31 -32
  13. package/dist/{AdminServersList-CC50WRsv.js → AdminServersList-DhUQ1zrt.js} +21 -22
  14. package/dist/{AdminUsersEditView-CXpMKFfI.js → AdminUsersEditView-CqRLzCkV.js} +44 -45
  15. package/dist/{AdminUsersView-DGuGEHVR.js → AdminUsersView-TCHghzxY.js} +37 -38
  16. package/dist/{CreateModForm-CqhcrNFp.js → CreateModForm-Byq8UvuW.js} +23 -23
  17. package/dist/{CreateNodeModal-BvbJTKhD.js → CreateNodeModal-BNV35RnR.js} +1 -1
  18. package/dist/{DsIpSelector-DN9IyT4L.js → DsIpSelector-EnBHsJLE.js} +1 -1
  19. package/dist/{FileManager-8TWHezyM.js → FileManager-X3FkHNzF.js} +1 -1
  20. package/dist/{GameModSelector-DRIaCbGY.js → GameModSelector-bZsSGC6T.js} +4 -4
  21. package/dist/{InputManyList-By5xECIK.js → InputManyList-BFGIEnls.js} +1 -1
  22. package/dist/{InputTextList-Bm2Ofq5J.js → InputTextList-D280D5fs.js} +1 -1
  23. package/dist/{PluginPendingView-DHd_yijv.js → PluginPendingView-Cp6KgA8z.js} +1 -1
  24. package/dist/{RconConsole-DH9XeOu3.js → RconConsole-BxjHKC6E.js} +24 -25
  25. package/dist/{RconPlayers-GrvCMJX3.js → RconPlayers-CXL0bHlU.js} +32 -32
  26. package/dist/{ServerConsole-BHHnpxJy.js → ServerConsole-Cr-BZJIC.js} +1 -1
  27. package/dist/{ServerIdView-BfqrYuar.js → ServerIdView-wsnPfVUi.js} +141 -142
  28. package/dist/{ServerSelector-QMK1qiXa.js → ServerSelector-D7O1thVu.js} +1 -1
  29. package/dist/{ServerSettings-Cz6C8Dlh.js → ServerSettings-Lk4lq5hI.js} +1 -1
  30. package/dist/{ServerStatus-DBJW9C6H.js → ServerStatus-CCFiPWXV.js} +1 -1
  31. package/dist/{ServerTasks-Bs3iGYY3.js → ServerTasks-gNFBkyv1.js} +1 -1
  32. package/dist/{SettingsParameters-DCqhqxHk.js → SettingsParameters-BVpVg868.js} +1 -1
  33. package/dist/{SmartPortSelector-DektJC6p.js → SmartPortSelector-bubAEnvR.js} +8 -8
  34. package/dist/{UpdateNodeForm-CwirLUIK.js → UpdateNodeForm-BQDjp3CR.js} +1 -1
  35. package/dist/{UserServerPrivileges-utyKdh7O.js → UserServerPrivileges-CizE2EYl.js} +1 -1
  36. package/dist/{_createCompounder-DSupx5mD.js → _createCompounder-NPjOAZm-.js} +2 -2
  37. package/dist/{camelCase-WcUYdRB3.js → camelCase-BXg45SFI.js} +2 -2
  38. package/dist/{capitalize-DRKkBaYR.js → capitalize-BSQeiLff.js} +10 -10
  39. package/dist/{clientCertificates-BsJdUHYw.js → clientCertificates-Dm0Bh62v.js} +1 -1
  40. package/dist/{gameList-DpGDCxFE.js → gameList-CJAymSBL.js} +1 -1
  41. package/dist/{index-60qEjGuU.js → index-Fmomw6wi.js} +2333 -1954
  42. package/dist/index.js +1 -1
  43. package/dist/{loader-CrZTMKcy.js → loader-BGOXrNPF.js} +1 -1
  44. package/dist/{snakeCase-CTCA7tap.js → snakeCase-o1mQEFQr.js} +1 -1
  45. package/package.json +2 -1
@@ -1,10 +1,9 @@
1
- import { mergeModels as U, ref as f, useModel as V, createElementBlock as R, openBlock as P, normalizeClass as B, createVNode as n, unref as t, withCtx as o, createBlock as O, createCommentVNode as H, createElementVNode as e, createTextVNode as T, toDisplayString as a, computed as E, onMounted as J, Fragment as Q, h as _ } from "vue";
2
- import { Loading as q, GBreadcrumbs as W } from "@gameap/ui";
3
- import { t as l, _ as k, e as M, n as L } from "./index-60qEjGuU.js";
1
+ import { mergeModels as U, ref as f, useModel as V, createElementBlock as R, openBlock as P, normalizeClass as $, createVNode as n, unref as t, withCtx as o, createBlock as G, createCommentVNode as H, createElementVNode as e, createTextVNode as T, toDisplayString as a, computed as B, onMounted as J, Fragment as Q, h as _ } from "vue";
2
+ import { l as q, t as l, _ as h, e as M, k as W, n as E } from "./index-Fmomw6wi.js";
4
3
  import { storeToRefs as X } from "pinia";
5
- import { u as Y } from "./clientCertificates-BsJdUHYw.js";
6
- import { NForm as Z, NFormItem as z, NUpload as S, NButton as $, NInput as ee, NDataTable as te, NModal as D, NTable as le } from "naive-ui";
7
- import { c as ie } from "./camelCase-WcUYdRB3.js";
4
+ import { u as Y } from "./clientCertificates-Dm0Bh62v.js";
5
+ import { NForm as Z, NFormItem as z, NUpload as S, NButton as D, NInput as ee, NDataTable as te, NModal as L, NTable as le } from "naive-ui";
6
+ import { c as ie } from "./camelCase-BXg45SFI.js";
8
7
  const ae = { class: "hidden lg:inline" }, ne = {
9
8
  __name: "CreateCertificateForm",
10
9
  props: /* @__PURE__ */ U({
@@ -24,30 +23,30 @@ const ae = { class: "hidden lg:inline" }, ne = {
24
23
  }),
25
24
  emits: /* @__PURE__ */ U(["create"], ["update:modelValue", "update:certificateFile", "update:privateKeyFile"]),
26
25
  setup(m, { emit: p }) {
27
- const F = f({}), C = V(m, "modelValue"), h = V(m, "certificateFile"), y = V(m, "privateKeyFile"), x = {}, w = (c) => {
28
- c.fileList.length > 0 ? h.value = c.fileList[0].file : h.value = null;
26
+ const k = f({}), C = V(m, "modelValue"), F = V(m, "certificateFile"), y = V(m, "privateKeyFile"), x = {}, w = (c) => {
27
+ c.fileList.length > 0 ? F.value = c.fileList[0].file : F.value = null;
29
28
  }, b = (c) => {
30
29
  c.fileList.length > 0 ? y.value = c.fileList[0].file : y.value = null;
31
30
  }, K = p, v = () => {
32
- F.value.validate().then(() => {
31
+ k.value.validate().then(() => {
33
32
  K("create");
34
33
  });
35
34
  };
36
35
  return (c, u) => (P(), R("div", {
37
- class: B(c.$attrs.class)
36
+ class: $(c.$attrs.class)
38
37
  }, [
39
38
  n(t(Z), {
40
39
  "label-placement": "top",
41
40
  "label-width": "auto",
42
41
  ref_key: "formRef",
43
- ref: F,
42
+ ref: k,
44
43
  model: C.value,
45
44
  rules: x
46
45
  }, {
47
46
  default: o(() => [
48
- m.loading ? (P(), O(t(q), { key: 0 })) : H("", !0),
47
+ m.loading ? (P(), G(t(q), { key: 0 })) : H("", !0),
49
48
  e("div", {
50
- class: B(["mb-4", m.loading ? "hidden" : ""])
49
+ class: $(["mb-4", m.loading ? "hidden" : ""])
51
50
  }, [
52
51
  n(t(z), {
53
52
  label: t(l)("client_certificates.certificate"),
@@ -61,7 +60,7 @@ const ae = { class: "hidden lg:inline" }, ne = {
61
60
  onChange: w
62
61
  }, {
63
62
  default: o(() => [
64
- n(t($), null, {
63
+ n(t(D), null, {
65
64
  default: o(() => [
66
65
  T(a(t(l)("main.upload_file")), 1)
67
66
  ]),
@@ -85,7 +84,7 @@ const ae = { class: "hidden lg:inline" }, ne = {
85
84
  onChange: b
86
85
  }, {
87
86
  default: o(() => [
88
- n(t($), null, {
87
+ n(t(D), null, {
89
88
  default: o(() => [
90
89
  T(a(t(l)("main.upload_file")), 1)
91
90
  ]),
@@ -116,7 +115,7 @@ const ae = { class: "hidden lg:inline" }, ne = {
116
115
  ]),
117
116
  _: 1
118
117
  }, 8, ["model"]),
119
- n(k, {
118
+ n(h, {
120
119
  color: "green",
121
120
  onClick: v
122
121
  }, {
@@ -128,10 +127,10 @@ const ae = { class: "hidden lg:inline" }, ne = {
128
127
  })
129
128
  ], 2));
130
129
  }
131
- }, me = {
130
+ }, fe = {
132
131
  __name: "AdminClientCertificatesView",
133
132
  setup(m) {
134
- const p = Y(), F = E(() => [
133
+ const p = Y(), k = B(() => [
135
134
  { route: "/", text: "GameAP", icon: "gicon gicon-gameap" },
136
135
  { route: { name: "admin.nodes.index" }, text: l("sidebar.dedicated_servers") },
137
136
  { route: { name: "admin.client_certificates.index" }, text: l("client_certificates.client_certificates") }
@@ -148,23 +147,23 @@ const ae = { class: "hidden lg:inline" }, ne = {
148
147
  title: l("main.actions"),
149
148
  render(s) {
150
149
  return [
151
- _(k, {
150
+ _(h, {
152
151
  color: "green",
153
152
  size: "small",
154
153
  class: "mr-0.5",
155
154
  onClick: () => {
156
- G(s.id);
155
+ I(s.id);
157
156
  }
158
157
  }, [
159
158
  _("i", { class: "fa-solid fa-eye" }),
160
159
  _("span", { class: "hidden lg:inline" }, l("main.view"))
161
160
  ]),
162
- _(k, {
161
+ _(h, {
163
162
  color: "red",
164
163
  size: "small",
165
164
  text: l("main.delete"),
166
165
  onClick: () => {
167
- I(s.id);
166
+ O(s.id);
168
167
  }
169
168
  }, [
170
169
  _("i", { class: "fa-solid fa-trash" }),
@@ -173,7 +172,7 @@ const ae = { class: "hidden lg:inline" }, ne = {
173
172
  ];
174
173
  }
175
174
  }
176
- ], { loading: h, certificates: y } = X(p), x = f(C()), w = {
175
+ ], { loading: F, certificates: y } = X(p), x = f(C()), w = {
177
176
  pageSize: 20
178
177
  };
179
178
  J(() => {
@@ -183,7 +182,7 @@ const ae = { class: "hidden lg:inline" }, ne = {
183
182
  p.fetchClientCertificates().catch((s) => {
184
183
  M(s);
185
184
  });
186
- }, K = E(() => y.value.map(
185
+ }, K = B(() => y.value.map(
187
186
  (s) => ({
188
187
  id: s.id,
189
188
  fingerprint: s.fingerprint,
@@ -201,7 +200,7 @@ const ae = { class: "hidden lg:inline" }, ne = {
201
200
  private_key_pass: c.value.privateKeyPass ?? ""
202
201
  };
203
202
  p.createClientCertificate(s).then(() => {
204
- L({
203
+ E({
205
204
  content: l("client_certificates.upload_success_msg"),
206
205
  type: "success"
207
206
  }, () => {
@@ -210,12 +209,12 @@ const ae = { class: "hidden lg:inline" }, ne = {
210
209
  }).catch((i) => {
211
210
  M(i);
212
211
  });
213
- }, N = f(!1), d = f({}), G = (s) => {
212
+ }, N = f(!1), d = f({}), I = (s) => {
214
213
  N.value = !0, d.value = y.value.find((i) => i.id === s);
215
- }, I = (s) => {
214
+ }, O = (s) => {
216
215
  const i = () => {
217
216
  p.deleteClientCertificate(s).then(() => {
218
- L({
217
+ E({
219
218
  content: l("client_certificates.delete_success_msg"),
220
219
  type: "success"
221
220
  }, () => {
@@ -238,8 +237,8 @@ const ae = { class: "hidden lg:inline" }, ne = {
238
237
  });
239
238
  };
240
239
  return (s, i) => (P(), R(Q, null, [
241
- n(t(W), { items: F.value }, null, 8, ["items"]),
242
- n(k, {
240
+ n(t(W), { items: k.value }, null, 8, ["items"]),
241
+ n(h, {
243
242
  color: "green",
244
243
  size: "middle",
245
244
  class: "mb-5 mr-1",
@@ -257,7 +256,7 @@ const ae = { class: "hidden lg:inline" }, ne = {
257
256
  "single-line": !0,
258
257
  columns: x.value,
259
258
  data: K.value,
260
- loading: t(h),
259
+ loading: t(F),
261
260
  pagination: w
262
261
  }, {
263
262
  loading: o(() => [
@@ -265,7 +264,7 @@ const ae = { class: "hidden lg:inline" }, ne = {
265
264
  ]),
266
265
  _: 1
267
266
  }, 8, ["columns", "data", "loading"]),
268
- n(t(D), {
267
+ n(t(L), {
269
268
  show: v.value,
270
269
  "onUpdate:show": i[4] || (i[4] = (r) => v.value = r),
271
270
  class: "custom-card",
@@ -288,7 +287,7 @@ const ae = { class: "hidden lg:inline" }, ne = {
288
287
  ]),
289
288
  _: 1
290
289
  }, 8, ["show", "title"]),
291
- n(t(D), {
290
+ n(t(L), {
292
291
  show: N.value,
293
292
  "onUpdate:show": i[5] || (i[5] = (r) => N.value = r),
294
293
  class: "custom-card",
@@ -364,5 +363,5 @@ const ae = { class: "hidden lg:inline" }, ne = {
364
363
  }
365
364
  };
366
365
  export {
367
- me as default
366
+ fe as default
368
367
  };
@@ -1,8 +1,7 @@
1
- import { computed as v, ref as B, reactive as H, onMounted as J, createElementBlock as K, openBlock as Q, Fragment as X, createVNode as d, createElementVNode as b, unref as l, withCtx as h, toDisplayString as Y, h as r } from "vue";
2
- import { GBreadcrumbs as Z, Loading as ee, GStatusBadge as S } from "@gameap/ui";
3
- import { NInputGroup as se, NSelect as p, NButton as ae, NDataTable as te } from "naive-ui";
4
- import { s as f, a as re, m as le, i as ne, t as a, e as L, _ as oe } from "./index-60qEjGuU.js";
5
- import { defineStore as ue, storeToRefs as y } from "pinia";
1
+ import { computed as v, ref as F, reactive as H, onMounted as J, createElementBlock as K, openBlock as Q, Fragment as X, createVNode as d, createElementVNode as b, unref as l, withCtx as h, toDisplayString as Y, h as r } from "vue";
2
+ import { w as p, a as Z, q as ee, i as se, t as a, e as S, k as ae, l as te, G as y, _ as re } from "./index-Fmomw6wi.js";
3
+ import { NInputGroup as le, NSelect as _, NButton as ne, NDataTable as oe } from "naive-ui";
4
+ import { defineStore as ue, storeToRefs as L } from "pinia";
6
5
  import { RouterLink as de } from "vue-router";
7
6
  const ie = ue("daemonTaskList", {
8
7
  state: () => ({
@@ -23,8 +22,8 @@ const ie = ue("daemonTaskList", {
23
22
  let o = {
24
23
  sort: "-id"
25
24
  };
26
- n.page && (o["page[number]"] = n.page), n.tasks && (o["filter[task]"] = f(n.tasks, ",")), n.statuses && (o["filter[status]"] = f(n.statuses, ",")), n.nodes && (o["filter[dedicated_server_id]"] = f(n.nodes, ",")), n.servers && (o["filter[server_id]"] = f(n.servers, ","));
27
- const i = await re.get("/api/gdaemon_tasks", {
25
+ n.page && (o["page[number]"] = n.page), n.tasks && (o["filter[task]"] = p(n.tasks, ",")), n.statuses && (o["filter[status]"] = p(n.statuses, ",")), n.nodes && (o["filter[dedicated_server_id]"] = p(n.nodes, ",")), n.servers && (o["filter[server_id]"] = p(n.servers, ","));
26
+ const i = await Z.get("/api/gdaemon_tasks", {
28
27
  params: o
29
28
  });
30
29
  this.daemonTaskList = i.data.data, this.currentPage = i.data.current_page, this.total = i.data.total, this.lastPage = i.data.last_page;
@@ -35,25 +34,25 @@ const ie = ue("daemonTaskList", {
35
34
  }
36
35
  }
37
36
  }
38
- }), ce = { class: "mb-1 w-2/3" }, ve = { class: "hidden lg:inline" }, be = {
37
+ }), ce = { class: "mb-1 w-2/3" }, ve = { class: "hidden lg:inline" }, ke = {
39
38
  __name: "AdminDaemonTaskListView",
40
39
  setup(n) {
41
- const o = ie(), i = le(), _ = ne(), F = v(() => [
40
+ const o = ie(), i = ee(), f = se(), I = v(() => [
42
41
  { route: "/", text: "GameAP", icon: "gicon gicon-gameap" },
43
42
  { route: { name: "admin.gdaemon_tasks.index" }, text: a("gdaemon_tasks.gdaemon_tasks") }
44
- ]), I = () => [
43
+ ]), B = () => [
45
44
  {
46
45
  title: a("gdaemon_tasks.task"),
47
46
  key: "task",
48
47
  render(e) {
49
- return w(e.task, a("gdaemon_tasks." + e.task));
48
+ return P(e.task, a("gdaemon_tasks." + e.task));
50
49
  }
51
50
  },
52
51
  {
53
52
  title: a("gdaemon_tasks.status"),
54
53
  key: "status",
55
54
  render(e) {
56
- return r(S, { status: e.status, text: a("gdaemon_tasks.status_" + e.status) });
55
+ return r(y, { status: e.status, text: a("gdaemon_tasks.status_" + e.status) });
57
56
  }
58
57
  },
59
58
  {
@@ -61,7 +60,7 @@ const ie = ue("daemonTaskList", {
61
60
  render(e) {
62
61
  if (!e.serverId)
63
62
  return "";
64
- let s = P.value.find((u) => u.id === e.serverId);
63
+ let s = w.value.find((u) => u.id === e.serverId);
65
64
  return s ? r(
66
65
  de,
67
66
  {
@@ -91,7 +90,7 @@ const ie = ue("daemonTaskList", {
91
90
  title: a("main.actions"),
92
91
  render(e) {
93
92
  return [
94
- r(oe, {
93
+ r(re, {
95
94
  color: "green",
96
95
  size: "small",
97
96
  class: "mr-0.5",
@@ -103,10 +102,10 @@ const ie = ue("daemonTaskList", {
103
102
  ];
104
103
  }
105
104
  }
106
- ], { daemonTaskList: D, currentPage: c, total: x } = y(o), { nodes: T } = y(i), { servers: P } = y(_), O = B(I()), k = H({
105
+ ], { daemonTaskList: D, currentPage: c, total: x } = L(o), { nodes: T } = L(i), { servers: w } = L(f), O = F(B()), k = H({
107
106
  page: c,
108
107
  pageSize: 30
109
- }), A = v(() => o.loading || i.loading || _.loading);
108
+ }), A = v(() => o.loading || i.loading || f.loading);
110
109
  J(() => {
111
110
  c.value = 1, m(), C(), U();
112
111
  });
@@ -117,17 +116,17 @@ const ie = ue("daemonTaskList", {
117
116
  t.value.tasks && (e.tasks = t.value.tasks), t.value.statuses && (e.statuses = t.value.statuses), t.value.servers && (e.servers = t.value.servers), t.value.nodes && (e.nodes = t.value.nodes), o.fetchTasksByFilter(e).then(() => {
118
117
  k.pageCount = x.lastPage, k.itemCount = x.value;
119
118
  }).catch((s) => {
120
- L(s);
119
+ S(s);
121
120
  });
122
121
  }, C = () => {
123
122
  i.fetchNodesByFilter([]).catch((e) => {
124
- L(e);
123
+ S(e);
125
124
  });
126
125
  }, U = () => {
127
- _.fetchServersByFilter([]).catch((e) => {
128
- L(e);
126
+ f.fetchServersByFilter([]).catch((e) => {
127
+ S(e);
129
128
  });
130
- }, G = v(() => D.value.map((e) => ({
129
+ }, $ = v(() => D.value.map((e) => ({
131
130
  id: e.id,
132
131
  task: e.task,
133
132
  status: e.status,
@@ -135,12 +134,12 @@ const ie = ue("daemonTaskList", {
135
134
  nodeId: e.dedicated_server_id,
136
135
  createdAt: new Date(e.created_at).toLocaleString(),
137
136
  updatedAt: new Date(e.updated_at).toLocaleString()
138
- }))), t = B({
137
+ }))), t = F({
139
138
  tasks: null,
140
139
  statuses: null,
141
140
  servers: null,
142
141
  nodes: null
143
- }), N = [
142
+ }), G = [
144
143
  {
145
144
  label: a("gdaemon_tasks.gsstart"),
146
145
  value: "gsstart"
@@ -173,7 +172,7 @@ const ie = ue("daemonTaskList", {
173
172
  label: a("gdaemon_tasks.cmdexec"),
174
173
  value: "cmdexec"
175
174
  }
176
- ], R = [
175
+ ], N = [
177
176
  {
178
177
  label: a("gdaemon_tasks.status_waiting"),
179
178
  value: "waiting"
@@ -194,7 +193,7 @@ const ie = ue("daemonTaskList", {
194
193
  label: a("gdaemon_tasks.status_canceled"),
195
194
  value: "canceled"
196
195
  }
197
- ], V = (e) => w(e.value, e.label), w = (e, s) => {
196
+ ], R = (e) => P(e.value, e.label), P = (e, s) => {
198
197
  switch (e) {
199
198
  case "gsstart":
200
199
  return [r("i", { class: "fa-solid fa-play mr-2" }), s];
@@ -215,71 +214,71 @@ const ie = ue("daemonTaskList", {
215
214
  default:
216
215
  return s;
217
216
  }
218
- }, z = (e) => r(S, { status: e.value, text: e.label }), E = (e) => r(S, { status: e.option.value, text: e.option.label }), j = v(() => T.value.map((e) => ({
217
+ }, V = (e) => r(y, { status: e.value, text: e.label }), z = (e) => r(y, { status: e.option.value, text: e.option.label }), E = v(() => T.value.map((e) => ({
219
218
  label: e.name,
220
219
  value: e.id
221
- }))), M = v(() => P.value.map((e) => ({
220
+ }))), j = v(() => w.value.map((e) => ({
222
221
  label: e.name,
223
222
  value: e.id
224
- }))), W = (e) => {
223
+ }))), q = (e) => {
225
224
  c.value = e, m();
226
225
  }, g = () => {
227
226
  c.value = 1, m();
228
- }, $ = () => t.value.tasks || t.value.statuses || t.value.servers || t.value.nodes, q = () => {
227
+ }, M = () => t.value.tasks || t.value.statuses || t.value.servers || t.value.nodes, W = () => {
229
228
  t.value.tasks = null, t.value.statuses = null, t.value.servers = null, t.value.nodes = null, c.value = 1, m();
230
229
  };
231
230
  return (e, s) => (Q(), K(X, null, [
232
- d(l(Z), { items: F.value }, null, 8, ["items"]),
231
+ d(l(ae), { items: I.value }, null, 8, ["items"]),
233
232
  b("div", ce, [
234
- d(l(se), null, {
233
+ d(l(le), null, {
235
234
  default: h(() => [
236
- d(l(p), {
235
+ d(l(_), {
237
236
  multiple: "",
238
237
  value: t.value.tasks,
239
238
  "onUpdate:value": [
240
239
  s[0] || (s[0] = (u) => t.value.tasks = u),
241
240
  g
242
241
  ],
243
- options: N,
242
+ options: G,
244
243
  placeholder: l(a)("gdaemon_tasks.task"),
245
- "render-label": V
244
+ "render-label": R
246
245
  }, null, 8, ["value", "placeholder"]),
247
- d(l(p), {
246
+ d(l(_), {
248
247
  multiple: "",
249
248
  value: t.value.statuses,
250
249
  "onUpdate:value": [
251
250
  s[1] || (s[1] = (u) => t.value.statuses = u),
252
251
  g
253
252
  ],
254
- options: R,
253
+ options: N,
255
254
  placeholder: l(a)("gdaemon_tasks.status"),
256
- "render-label": z,
257
- "render-tag": E
255
+ "render-label": V,
256
+ "render-tag": z
258
257
  }, null, 8, ["value", "placeholder"]),
259
- d(l(p), {
258
+ d(l(_), {
260
259
  multiple: "",
261
260
  value: t.value.servers,
262
261
  "onUpdate:value": [
263
262
  s[2] || (s[2] = (u) => t.value.servers = u),
264
263
  g
265
264
  ],
266
- options: M.value,
265
+ options: j.value,
267
266
  placeholder: l(a)("servers.game_servers")
268
267
  }, null, 8, ["value", "options", "placeholder"]),
269
- d(l(p), {
268
+ d(l(_), {
270
269
  multiple: "",
271
270
  value: t.value.nodes,
272
271
  "onUpdate:value": [
273
272
  s[3] || (s[3] = (u) => t.value.nodes = u),
274
273
  g
275
274
  ],
276
- options: j.value,
275
+ options: E.value,
277
276
  placeholder: l(a)("dedicated_servers.dedicated_servers")
278
277
  }, null, 8, ["value", "options", "placeholder"]),
279
- d(l(ae), {
280
- onClick: q,
278
+ d(l(ne), {
279
+ onClick: W,
281
280
  type: "error",
282
- disabled: !$(),
281
+ disabled: !M(),
283
282
  ghost: ""
284
283
  }, {
285
284
  default: h(() => [
@@ -292,19 +291,19 @@ const ie = ue("daemonTaskList", {
292
291
  _: 1
293
292
  })
294
293
  ]),
295
- d(l(te), {
294
+ d(l(oe), {
296
295
  remote: "",
297
296
  ref: "tableRef",
298
297
  bordered: !1,
299
298
  "single-line": !0,
300
299
  columns: O.value,
301
- data: G.value,
300
+ data: $.value,
302
301
  loading: A.value,
303
302
  pagination: k,
304
- "onUpdate:page": W
303
+ "onUpdate:page": q
305
304
  }, {
306
305
  loading: h(() => [
307
- d(l(ee))
306
+ d(l(te))
308
307
  ]),
309
308
  _: 1
310
309
  }, 8, ["columns", "data", "loading", "pagination"])
@@ -312,5 +311,5 @@ const ie = ue("daemonTaskList", {
312
311
  }
313
312
  };
314
313
  export {
315
- be as default
314
+ ke as default
316
315
  };
@@ -1,36 +1,35 @@
1
- import { computed as m, onMounted as _, createElementBlock as f, openBlock as i, Fragment as k, createVNode as r, createBlock as v, createCommentVNode as b, createElementVNode as t, unref as e, normalizeClass as h, withCtx as x, toDisplayString as s } from "vue";
2
- import { GBreadcrumbs as w, Loading as T, GStatusBadge as B } from "@gameap/ui";
3
- import { C as N, t as n, e as C, r as S } from "./index-60qEjGuU.js";
4
- import { NTable as V } from "naive-ui";
5
- import { useRoute as y } from "vue-router";
6
- import { storeToRefs as D } from "pinia";
7
- const G = { class: "w-full mt-3" }, A = { class: "coding inverse-toggle px-5 pt-4 shadow-lg text-stone-100 text-sm font-mono subpixel-antialiased bg-stone-800 dark:bg-stone-900 pb-6 pt-4 rounded-lg leading-normal overflow-hidden" }, E = { class: "whitespace-pre-wrap mt-4 flex" }, P = {
1
+ import { computed as m, onMounted as _, createElementBlock as f, openBlock as i, Fragment as k, createVNode as r, createBlock as v, createCommentVNode as b, createElementVNode as t, unref as e, normalizeClass as h, withCtx as x, toDisplayString as a } from "vue";
2
+ import { H as w, t as n, e as T, r as N, k as V, l as y, G as B } from "./index-Fmomw6wi.js";
3
+ import { NTable as C } from "naive-ui";
4
+ import { useRoute as D } from "vue-router";
5
+ import { storeToRefs as S } from "pinia";
6
+ const $ = { class: "w-full mt-3" }, A = { class: "coding inverse-toggle px-5 pt-4 shadow-lg text-stone-100 text-sm font-mono subpixel-antialiased bg-stone-800 dark:bg-stone-900 pb-6 pt-4 rounded-lg leading-normal overflow-hidden" }, E = { class: "whitespace-pre-wrap mt-4 flex" }, I = {
8
7
  __name: "AdminDaemonTaskOutputView",
9
- setup(O) {
10
- const l = N(), c = y(), g = m(() => {
11
- let o = [
8
+ setup(G) {
9
+ const o = w(), c = D(), g = m(() => {
10
+ let l = [
12
11
  { route: "/", text: "GameAP", icon: "gicon gicon-gameap" },
13
12
  { route: { name: "admin.gdaemon_tasks.index" }, text: n("gdaemon_tasks.gdaemon_tasks") }
14
13
  ];
15
- return a.value.id && o.push({
16
- route: { name: "admin.gdaemon_tasks.output", params: { id: a.value.id } },
17
- text: n("gdaemon_tasks." + a.value.task)
18
- }), o;
19
- }), { loading: u, task: a } = D(l);
14
+ return s.value.id && l.push({
15
+ route: { name: "admin.gdaemon_tasks.output", params: { id: s.value.id } },
16
+ text: n("gdaemon_tasks." + s.value.task)
17
+ }), l;
18
+ }), { loading: u, task: s } = S(o);
20
19
  _(() => {
21
- l.setTaskId(c.params.id), l.fetchTaskOutput().catch((o) => {
22
- C(o);
20
+ o.setTaskId(c.params.id), o.fetchTaskOutput().catch((l) => {
21
+ T(l);
23
22
  });
24
23
  });
25
- const p = m(() => a.value.output ? S(a.value.output, /(\r\n|\n|\r)/gm, `
24
+ const p = m(() => s.value.output ? N(s.value.output, /(\r\n|\n|\r)/gm, `
26
25
  `) : "");
27
- return (o, d) => (i(), f(k, null, [
28
- r(e(w), { items: g.value }, null, 8, ["items"]),
29
- e(u) ? (i(), v(e(T), { key: 0 })) : b("", !0),
26
+ return (l, d) => (i(), f(k, null, [
27
+ r(e(V), { items: g.value }, null, 8, ["items"]),
28
+ e(u) ? (i(), v(e(y), { key: 0 })) : b("", !0),
30
29
  t("div", {
31
30
  class: h(e(u) ? "hidden" : "")
32
31
  }, [
33
- r(e(V), {
32
+ r(e(C), {
34
33
  bordered: !1,
35
34
  "single-line": !0
36
35
  }, {
@@ -38,44 +37,44 @@ const G = { class: "w-full mt-3" }, A = { class: "coding inverse-toggle px-5 pt-
38
37
  t("tbody", null, [
39
38
  t("tr", null, [
40
39
  t("td", null, [
41
- t("strong", null, s(e(n)("gdaemon_tasks.task")) + ":", 1)
40
+ t("strong", null, a(e(n)("gdaemon_tasks.task")) + ":", 1)
42
41
  ]),
43
- t("td", null, s(e(n)("gdaemon_tasks." + e(a).task)), 1)
42
+ t("td", null, a(e(n)("gdaemon_tasks." + e(s).task)), 1)
44
43
  ]),
45
44
  t("tr", null, [
46
45
  t("td", null, [
47
- t("strong", null, s(e(n)("gdaemon_tasks.status")) + ":", 1)
46
+ t("strong", null, a(e(n)("gdaemon_tasks.status")) + ":", 1)
48
47
  ]),
49
48
  t("td", null, [
50
49
  r(e(B), {
51
- status: e(a).status
50
+ status: e(s).status
52
51
  }, null, 8, ["status"])
53
52
  ])
54
53
  ]),
55
54
  t("tr", null, [
56
55
  t("td", null, [
57
- t("strong", null, s(e(n)("gdaemon_tasks.created")) + ":", 1)
56
+ t("strong", null, a(e(n)("gdaemon_tasks.created")) + ":", 1)
58
57
  ]),
59
- t("td", null, s(e(a).created_at), 1)
58
+ t("td", null, a(e(s).created_at), 1)
60
59
  ]),
61
60
  t("tr", null, [
62
61
  t("td", null, [
63
- t("strong", null, s(e(n)("gdaemon_tasks.created")) + ":", 1)
62
+ t("strong", null, a(e(n)("gdaemon_tasks.created")) + ":", 1)
64
63
  ]),
65
- t("td", null, s(e(a).updated_at), 1)
64
+ t("td", null, a(e(s).updated_at), 1)
66
65
  ])
67
66
  ])
68
67
  ]),
69
68
  _: 1
70
69
  }),
71
- t("div", G, [
70
+ t("div", $, [
72
71
  t("div", A, [
73
72
  d[0] || (d[0] = t("div", { class: "top mb-2 flex" }, [
74
73
  t("div", { class: "h-3 w-3 bg-red-500 rounded-full" }),
75
74
  t("div", { class: "ml-2 h-3 w-3 bg-orange-300 rounded-full" }),
76
75
  t("div", { class: "ml-2 h-3 w-3 bg-green-500 rounded-full" })
77
76
  ], -1)),
78
- t("div", E, s(p.value), 1)
77
+ t("div", E, a(p.value), 1)
79
78
  ])
80
79
  ])
81
80
  ], 2)
@@ -83,5 +82,5 @@ const G = { class: "w-full mt-3" }, A = { class: "coding inverse-toggle px-5 pt-
83
82
  }
84
83
  };
85
84
  export {
86
- P as default
85
+ I as default
87
86
  };