@gameap/frontend 4.1.0-dev1 → 4.1.0-dev3
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-DQTMJ6LY.js +368 -0
- package/dist/AdminDaemonTaskListView-Bx3e0Miy.js +316 -0
- package/dist/AdminDaemonTaskOutputView-BJtLdoAq.js +87 -0
- package/dist/AdminGamesEdit-hDe3Pr-7.js +470 -0
- package/dist/AdminGamesList-CM1xADCW.js +500 -0
- package/dist/AdminModEdit-DDKd6Vga.js +526 -0
- package/dist/AdminNodeShowView-DMoEY2Cu.js +167 -0
- package/dist/AdminNodesCreateView-BXZDQIJ1.js +85 -0
- package/dist/AdminNodesEditView-xO7-szjJ.js +66 -0
- package/dist/AdminNodesView-ugTPiC4h.js +161 -0
- package/dist/AdminServersCreate-DOygFz_E.js +345 -0
- package/dist/AdminServersEdit-cZX6UGB1.js +400 -0
- package/dist/AdminServersList-CC50WRsv.js +165 -0
- package/dist/AdminUsersEditView-CXpMKFfI.js +305 -0
- package/dist/AdminUsersView-DGuGEHVR.js +443 -0
- package/dist/CreateModForm-CqhcrNFp.js +122 -0
- package/dist/CreateNodeModal-BvbJTKhD.js +93 -0
- package/dist/DsIpSelector-DN9IyT4L.js +90 -0
- package/dist/FileManager-8TWHezyM.js +31882 -0
- package/dist/GameModSelector-DRIaCbGY.js +94 -0
- package/dist/InputManyList-By5xECIK.js +110 -0
- package/dist/InputTextList-Bm2Ofq5J.js +63 -0
- package/dist/PluginPendingView-DHd_yijv.js +31 -0
- package/dist/RconConsole-DH9XeOu3.js +75 -0
- package/dist/RconPlayers-GrvCMJX3.js +420 -0
- package/dist/ServerConsole-BHHnpxJy.js +98 -0
- package/dist/ServerIdView-BfqrYuar.js +577 -0
- package/dist/ServerSelector-QMK1qiXa.js +52 -0
- package/dist/ServerSettings-Cz6C8Dlh.js +84 -0
- package/dist/ServerStatus-DBJW9C6H.js +63 -0
- package/dist/ServerTasks-Bs3iGYY3.js +854 -0
- package/dist/SettingsParameters-DCqhqxHk.js +87 -0
- package/dist/SmartPortSelector-DektJC6p.js +161 -0
- package/dist/UpdateNodeForm-CwirLUIK.js +648 -0
- package/dist/UserServerPrivileges-utyKdh7O.js +318 -0
- package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/_createCompounder-DSupx5mD.js +241 -0
- package/dist/camelCase-WcUYdRB3.js +8 -0
- package/dist/capitalize-DRKkBaYR.js +40 -0
- package/dist/clientCertificates-BsJdUHYw.js +53 -0
- package/dist/favicon-32x32.png +0 -0
- package/dist/favicon-96x96.png +0 -0
- package/dist/favicon.ico +0 -0
- package/dist/fonts/gicon.eot +0 -0
- package/dist/fonts/gicon.svg +33 -0
- package/dist/fonts/gicon.ttf +0 -0
- package/dist/fonts/gicon.woff +0 -0
- package/dist/fonts/gicon.woff2 +0 -0
- package/dist/frontend.css +14 -0
- package/dist/gameList-DpGDCxFE.js +115 -0
- package/dist/images/gap_logo_white.png +0 -0
- package/dist/images/gap_logo_white_mini.png +0 -0
- package/dist/images/gicon.svg +18 -0
- package/dist/images/icons/save-white.svg +1 -0
- package/dist/images/icons/save.svg +1 -0
- package/dist/index-60qEjGuU.js +5371 -0
- package/dist/index.js +1 -0
- package/dist/loader-CrZTMKcy.js +131 -0
- package/dist/mockServiceWorker.js +349 -0
- package/dist/snakeCase-CTCA7tap.js +7 -0
- package/package.json +2 -2
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
import { mergeModels as X, onMounted as Y, useModel as Z, ref as d, computed as ee, createElementBlock as p, openBlock as g, Fragment as y, createElementVNode as e, createVNode as o, unref as n, withCtx as u, toDisplayString as a, renderList as $, createTextVNode as k, h as C } from "vue";
|
|
2
|
+
import { d as le, f as se, t as r, g as E, _, e as N, n as I, a as te } from "./index-60qEjGuU.js";
|
|
3
|
+
import { storeToRefs as ne } from "pinia";
|
|
4
|
+
import { NTable as L, NModal as V, NSelect as ae, NSwitch as re } from "naive-ui";
|
|
5
|
+
const oe = { class: "mb-4" }, ie = ["href"], ue = { class: "flex flex-wrap gap-1" }, de = { class: "mt-6 mb-3" }, ve = { class: "flex justify-center mt-2" }, ce = { class: "md:w-full" }, me = { class: "flex justify-center mt-2" }, fe = { class: "grid grid-cols-2 gap-x-20 mb-4" }, pe = { class: "grid grid-cols-4 gap-x-4 mb-6" }, ge = { class: "col-span-3" }, _e = { class: "hidden lg:inline" }, Pe = {
|
|
6
|
+
__name: "UserServerPrivileges",
|
|
7
|
+
props: /* @__PURE__ */ X({
|
|
8
|
+
userId: Number
|
|
9
|
+
}, {
|
|
10
|
+
modelValue: [],
|
|
11
|
+
modelModifiers: {}
|
|
12
|
+
}),
|
|
13
|
+
emits: ["update:modelValue"],
|
|
14
|
+
setup(z) {
|
|
15
|
+
const j = window.gameapLang || "en", h = le(), F = se(), { getServerPermissions: B } = ne(h);
|
|
16
|
+
Y(() => {
|
|
17
|
+
M("");
|
|
18
|
+
});
|
|
19
|
+
const b = Z(z, "modelValue", []), v = d(null), m = d([]), f = d([]), S = d(!1);
|
|
20
|
+
function T(t) {
|
|
21
|
+
for (let l of b.value)
|
|
22
|
+
if (l.id === t)
|
|
23
|
+
return !0;
|
|
24
|
+
}
|
|
25
|
+
function R(t) {
|
|
26
|
+
for (let l of m.value)
|
|
27
|
+
if (l.id === t)
|
|
28
|
+
return l;
|
|
29
|
+
}
|
|
30
|
+
function W(t) {
|
|
31
|
+
m.value = m.value.filter(function(l) {
|
|
32
|
+
return l.id !== t;
|
|
33
|
+
}), f.value = f.value.filter(function(l) {
|
|
34
|
+
return l.value !== t;
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
function q(t) {
|
|
38
|
+
b.value.splice(t, 1);
|
|
39
|
+
}
|
|
40
|
+
function A() {
|
|
41
|
+
if (!v.value) {
|
|
42
|
+
I(r("servers.select_server"));
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
if (w.value = !1, T(v.value)) {
|
|
46
|
+
I(r("servers.server_already_added"));
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const t = R(v.value);
|
|
50
|
+
t && (b.value.push(t), W(t.id), v.value = null);
|
|
51
|
+
}
|
|
52
|
+
let U;
|
|
53
|
+
function D(t) {
|
|
54
|
+
clearTimeout(U), U = setTimeout(() => {
|
|
55
|
+
t();
|
|
56
|
+
}, 500);
|
|
57
|
+
}
|
|
58
|
+
function M(t) {
|
|
59
|
+
S.value = !0, D(() => {
|
|
60
|
+
te.get(`/api/servers/search?q=${encodeURI(t)}`).then(function(l) {
|
|
61
|
+
m.value = [], f.value = [];
|
|
62
|
+
for (let s of l.data)
|
|
63
|
+
T(s.id) || (m.value.push({
|
|
64
|
+
id: s.id,
|
|
65
|
+
name: s.name,
|
|
66
|
+
game: s.game,
|
|
67
|
+
server_ip: s.server_ip,
|
|
68
|
+
server_port: s.server_port
|
|
69
|
+
}), f.value.push({
|
|
70
|
+
name: s.name,
|
|
71
|
+
label: s.name + " (" + s.game.name + ") - " + s.server_ip + ":" + s.server_port,
|
|
72
|
+
address: `${s.server_ip}:${s.server_port}`,
|
|
73
|
+
game: s.game,
|
|
74
|
+
value: s.id
|
|
75
|
+
}));
|
|
76
|
+
S.value = !1;
|
|
77
|
+
}).catch(function(l) {
|
|
78
|
+
S.value = !1, N(l);
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
const K = (t) => {
|
|
83
|
+
if (t.startsWith("plugins.")) {
|
|
84
|
+
const l = t.split("."), s = l[1], c = l.slice(2).join("."), P = s ? F.getPluginTranslations(s) : null;
|
|
85
|
+
return (P?.[j] || P?.en || {})[c] ?? r(c);
|
|
86
|
+
}
|
|
87
|
+
return r(t);
|
|
88
|
+
}, O = (t) => C(
|
|
89
|
+
"div",
|
|
90
|
+
{ class: "flex" },
|
|
91
|
+
[
|
|
92
|
+
C("div", { class: "w-64" }, t.name),
|
|
93
|
+
C("div", { class: "w-56" }, t.game.name),
|
|
94
|
+
C("div", { class: "w-40" }, t.address)
|
|
95
|
+
]
|
|
96
|
+
), w = d(!1), G = () => {
|
|
97
|
+
w.value = !0;
|
|
98
|
+
}, x = d(!1), H = (t) => {
|
|
99
|
+
h.fetchPermissionsForServer(t.id).then(() => {
|
|
100
|
+
i.value = t, x.value = !0;
|
|
101
|
+
}).catch((l) => {
|
|
102
|
+
N(l);
|
|
103
|
+
});
|
|
104
|
+
}, i = d({}), J = ee({
|
|
105
|
+
get: () => i.value.id ? B.value(i.value.id) : [],
|
|
106
|
+
set: (t) => {
|
|
107
|
+
h.setServerPermissions(i.value.id, t);
|
|
108
|
+
}
|
|
109
|
+
}), Q = () => {
|
|
110
|
+
h.savePermissionsForServer(i.value.id).then(() => {
|
|
111
|
+
I({
|
|
112
|
+
content: r("users.privileges_saved_success_msg"),
|
|
113
|
+
type: "success"
|
|
114
|
+
}, () => {
|
|
115
|
+
x.value = !1;
|
|
116
|
+
});
|
|
117
|
+
}).catch((t) => {
|
|
118
|
+
N(t);
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
return (t, l) => (g(), p(y, null, [
|
|
122
|
+
e("div", null, [
|
|
123
|
+
e("div", oe, [
|
|
124
|
+
o(n(L), {
|
|
125
|
+
bordered: !1,
|
|
126
|
+
"single-line": !0
|
|
127
|
+
}, {
|
|
128
|
+
default: u(() => [
|
|
129
|
+
e("thead", null, [
|
|
130
|
+
e("tr", null, [
|
|
131
|
+
e("th", null, a(n(r)("servers.name")), 1),
|
|
132
|
+
e("th", null, a(n(r)("servers.game")), 1),
|
|
133
|
+
e("th", null, a(n(r)("servers.ip_port")), 1),
|
|
134
|
+
e("th", null, a(n(r)("main.actions")), 1)
|
|
135
|
+
])
|
|
136
|
+
]),
|
|
137
|
+
e("tbody", null, [
|
|
138
|
+
(g(!0), p(y, null, $(b.value, (s, c) => (g(), p("tr", null, [
|
|
139
|
+
e("td", null, [
|
|
140
|
+
e("a", {
|
|
141
|
+
href: "/admin/servers/" + s.id + "/edit"
|
|
142
|
+
}, a(s.name), 9, ie)
|
|
143
|
+
]),
|
|
144
|
+
e("td", null, [
|
|
145
|
+
o(E, {
|
|
146
|
+
game: s.game.code
|
|
147
|
+
}, null, 8, ["game"]),
|
|
148
|
+
k(" " + a(s.game.name), 1)
|
|
149
|
+
]),
|
|
150
|
+
e("td", null, a(s.server_ip) + ":" + a(s.server_port), 1),
|
|
151
|
+
e("td", ue, [
|
|
152
|
+
o(_, {
|
|
153
|
+
color: "blue",
|
|
154
|
+
size: "small",
|
|
155
|
+
onClick: (P) => H(s)
|
|
156
|
+
}, {
|
|
157
|
+
default: u(() => [...l[3] || (l[3] = [
|
|
158
|
+
e("i", { class: "fas fa-lock" }, null, -1)
|
|
159
|
+
])]),
|
|
160
|
+
_: 1
|
|
161
|
+
}, 8, ["onClick"]),
|
|
162
|
+
o(_, {
|
|
163
|
+
color: "red",
|
|
164
|
+
size: "small",
|
|
165
|
+
onClick: (P) => q(c)
|
|
166
|
+
}, {
|
|
167
|
+
default: u(() => [...l[4] || (l[4] = [
|
|
168
|
+
e("i", { class: "fa fa-times" }, null, -1)
|
|
169
|
+
])]),
|
|
170
|
+
_: 1
|
|
171
|
+
}, 8, ["onClick"])
|
|
172
|
+
])
|
|
173
|
+
]))), 256))
|
|
174
|
+
])
|
|
175
|
+
]),
|
|
176
|
+
_: 1
|
|
177
|
+
})
|
|
178
|
+
]),
|
|
179
|
+
e("div", de, [
|
|
180
|
+
e("div", ve, [
|
|
181
|
+
o(_, {
|
|
182
|
+
color: "green",
|
|
183
|
+
size: "small",
|
|
184
|
+
onClick: G
|
|
185
|
+
}, {
|
|
186
|
+
default: u(() => [
|
|
187
|
+
l[5] || (l[5] = e("span", { class: "fa-solid fa-plus" }, null, -1)),
|
|
188
|
+
k(" " + a(n(r)("main.add")), 1)
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
})
|
|
192
|
+
])
|
|
193
|
+
])
|
|
194
|
+
]),
|
|
195
|
+
o(n(V), {
|
|
196
|
+
show: w.value,
|
|
197
|
+
"onUpdate:show": l[1] || (l[1] = (s) => w.value = s),
|
|
198
|
+
class: "custom-card",
|
|
199
|
+
preset: "card",
|
|
200
|
+
title: n(r)("servers.add_server"),
|
|
201
|
+
bordered: !1,
|
|
202
|
+
style: { width: "800px" },
|
|
203
|
+
segmented: { content: "soft", footer: "soft" }
|
|
204
|
+
}, {
|
|
205
|
+
default: u(() => [
|
|
206
|
+
e("div", ce, [
|
|
207
|
+
o(n(ae), {
|
|
208
|
+
value: v.value,
|
|
209
|
+
"onUpdate:value": l[0] || (l[0] = (s) => v.value = s),
|
|
210
|
+
filterable: "",
|
|
211
|
+
placeholder: n(r)("users.servers_privileges_placeholder"),
|
|
212
|
+
options: f.value,
|
|
213
|
+
"render-label": O,
|
|
214
|
+
loading: S.value,
|
|
215
|
+
clearable: "",
|
|
216
|
+
remote: "",
|
|
217
|
+
onSearch: M
|
|
218
|
+
}, {
|
|
219
|
+
action: u(() => [...l[6] || (l[6] = [
|
|
220
|
+
e("div", null, [
|
|
221
|
+
e("div", { class: "m-2" }, [
|
|
222
|
+
e("span", null, "...")
|
|
223
|
+
])
|
|
224
|
+
], -1)
|
|
225
|
+
])]),
|
|
226
|
+
_: 1
|
|
227
|
+
}, 8, ["value", "placeholder", "options", "loading"])
|
|
228
|
+
]),
|
|
229
|
+
e("div", me, [
|
|
230
|
+
o(_, {
|
|
231
|
+
color: "green",
|
|
232
|
+
onClick: A
|
|
233
|
+
}, {
|
|
234
|
+
default: u(() => [
|
|
235
|
+
l[7] || (l[7] = e("span", { class: "fa-solid fa-plus" }, null, -1)),
|
|
236
|
+
k(" " + a(n(r)("main.add")), 1)
|
|
237
|
+
]),
|
|
238
|
+
_: 1
|
|
239
|
+
})
|
|
240
|
+
])
|
|
241
|
+
]),
|
|
242
|
+
_: 1
|
|
243
|
+
}, 8, ["show", "title"]),
|
|
244
|
+
o(n(V), {
|
|
245
|
+
show: x.value,
|
|
246
|
+
"onUpdate:show": l[2] || (l[2] = (s) => x.value = s),
|
|
247
|
+
class: "custom-card",
|
|
248
|
+
preset: "card",
|
|
249
|
+
title: n(r)("users.server_permission_edit"),
|
|
250
|
+
bordered: !1,
|
|
251
|
+
style: { width: "800px" },
|
|
252
|
+
segmented: { content: "soft", footer: "soft" }
|
|
253
|
+
}, {
|
|
254
|
+
default: u(() => [
|
|
255
|
+
o(n(L), {
|
|
256
|
+
bordered: !1,
|
|
257
|
+
"single-line": !0,
|
|
258
|
+
size: "small",
|
|
259
|
+
class: "mb-8"
|
|
260
|
+
}, {
|
|
261
|
+
default: u(() => [
|
|
262
|
+
e("tbody", null, [
|
|
263
|
+
e("tr", null, [
|
|
264
|
+
e("td", null, [
|
|
265
|
+
e("strong", null, a(n(r)("servers.name")) + ":", 1)
|
|
266
|
+
]),
|
|
267
|
+
e("td", null, a(i.value.name), 1)
|
|
268
|
+
]),
|
|
269
|
+
e("tr", null, [
|
|
270
|
+
e("td", null, [
|
|
271
|
+
e("strong", null, a(n(r)("servers.ip_port")) + ":", 1)
|
|
272
|
+
]),
|
|
273
|
+
e("td", null, a(i.value.server_ip) + ":" + a(i.value.server_port), 1)
|
|
274
|
+
]),
|
|
275
|
+
e("tr", null, [
|
|
276
|
+
e("td", null, [
|
|
277
|
+
e("strong", null, a(n(r)("servers.game")) + ":", 1)
|
|
278
|
+
]),
|
|
279
|
+
e("td", null, [
|
|
280
|
+
o(E, {
|
|
281
|
+
game: i.value.game.code,
|
|
282
|
+
class: "mr-2"
|
|
283
|
+
}, null, 8, ["game"]),
|
|
284
|
+
k(" " + a(i.value.game.name), 1)
|
|
285
|
+
])
|
|
286
|
+
])
|
|
287
|
+
])
|
|
288
|
+
]),
|
|
289
|
+
_: 1
|
|
290
|
+
}),
|
|
291
|
+
e("div", fe, [
|
|
292
|
+
(g(!0), p(y, null, $(J.value, (s) => (g(), p("div", pe, [
|
|
293
|
+
e("div", ge, a(K(s.name)), 1),
|
|
294
|
+
o(n(re), {
|
|
295
|
+
value: s.value,
|
|
296
|
+
"onUpdate:value": (c) => s.value = c
|
|
297
|
+
}, null, 8, ["value", "onUpdate:value"])
|
|
298
|
+
]))), 256))
|
|
299
|
+
]),
|
|
300
|
+
o(_, {
|
|
301
|
+
color: "green",
|
|
302
|
+
onClick: Q
|
|
303
|
+
}, {
|
|
304
|
+
default: u(() => [
|
|
305
|
+
l[8] || (l[8] = e("i", { class: "fa-solid fa-floppy-disk" }, null, -1)),
|
|
306
|
+
e("span", _e, " " + a(n(r)("main.save")), 1)
|
|
307
|
+
]),
|
|
308
|
+
_: 1
|
|
309
|
+
})
|
|
310
|
+
]),
|
|
311
|
+
_: 1
|
|
312
|
+
}, 8, ["show", "title"])
|
|
313
|
+
], 64));
|
|
314
|
+
}
|
|
315
|
+
};
|
|
316
|
+
export {
|
|
317
|
+
Pe as default
|
|
318
|
+
};
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import { x as s } from "./index-60qEjGuU.js";
|
|
2
|
+
function E(u, e, x, t0) {
|
|
3
|
+
for (var f = -1, v = u == null ? 0 : u.length; ++f < v; )
|
|
4
|
+
x = e(x, u[f], f, u);
|
|
5
|
+
return x;
|
|
6
|
+
}
|
|
7
|
+
function L(u) {
|
|
8
|
+
return function(e) {
|
|
9
|
+
return u?.[e];
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
var h = {
|
|
13
|
+
// Latin-1 Supplement block.
|
|
14
|
+
À: "A",
|
|
15
|
+
Á: "A",
|
|
16
|
+
Â: "A",
|
|
17
|
+
Ã: "A",
|
|
18
|
+
Ä: "A",
|
|
19
|
+
Å: "A",
|
|
20
|
+
à: "a",
|
|
21
|
+
á: "a",
|
|
22
|
+
â: "a",
|
|
23
|
+
ã: "a",
|
|
24
|
+
ä: "a",
|
|
25
|
+
å: "a",
|
|
26
|
+
Ç: "C",
|
|
27
|
+
ç: "c",
|
|
28
|
+
Ð: "D",
|
|
29
|
+
ð: "d",
|
|
30
|
+
È: "E",
|
|
31
|
+
É: "E",
|
|
32
|
+
Ê: "E",
|
|
33
|
+
Ë: "E",
|
|
34
|
+
è: "e",
|
|
35
|
+
é: "e",
|
|
36
|
+
ê: "e",
|
|
37
|
+
ë: "e",
|
|
38
|
+
Ì: "I",
|
|
39
|
+
Í: "I",
|
|
40
|
+
Î: "I",
|
|
41
|
+
Ï: "I",
|
|
42
|
+
ì: "i",
|
|
43
|
+
í: "i",
|
|
44
|
+
î: "i",
|
|
45
|
+
ï: "i",
|
|
46
|
+
Ñ: "N",
|
|
47
|
+
ñ: "n",
|
|
48
|
+
Ò: "O",
|
|
49
|
+
Ó: "O",
|
|
50
|
+
Ô: "O",
|
|
51
|
+
Õ: "O",
|
|
52
|
+
Ö: "O",
|
|
53
|
+
Ø: "O",
|
|
54
|
+
ò: "o",
|
|
55
|
+
ó: "o",
|
|
56
|
+
ô: "o",
|
|
57
|
+
õ: "o",
|
|
58
|
+
ö: "o",
|
|
59
|
+
ø: "o",
|
|
60
|
+
Ù: "U",
|
|
61
|
+
Ú: "U",
|
|
62
|
+
Û: "U",
|
|
63
|
+
Ü: "U",
|
|
64
|
+
ù: "u",
|
|
65
|
+
ú: "u",
|
|
66
|
+
û: "u",
|
|
67
|
+
ü: "u",
|
|
68
|
+
Ý: "Y",
|
|
69
|
+
ý: "y",
|
|
70
|
+
ÿ: "y",
|
|
71
|
+
Æ: "Ae",
|
|
72
|
+
æ: "ae",
|
|
73
|
+
Þ: "Th",
|
|
74
|
+
þ: "th",
|
|
75
|
+
ß: "ss",
|
|
76
|
+
// Latin Extended-A block.
|
|
77
|
+
Ā: "A",
|
|
78
|
+
Ă: "A",
|
|
79
|
+
Ą: "A",
|
|
80
|
+
ā: "a",
|
|
81
|
+
ă: "a",
|
|
82
|
+
ą: "a",
|
|
83
|
+
Ć: "C",
|
|
84
|
+
Ĉ: "C",
|
|
85
|
+
Ċ: "C",
|
|
86
|
+
Č: "C",
|
|
87
|
+
ć: "c",
|
|
88
|
+
ĉ: "c",
|
|
89
|
+
ċ: "c",
|
|
90
|
+
č: "c",
|
|
91
|
+
Ď: "D",
|
|
92
|
+
Đ: "D",
|
|
93
|
+
ď: "d",
|
|
94
|
+
đ: "d",
|
|
95
|
+
Ē: "E",
|
|
96
|
+
Ĕ: "E",
|
|
97
|
+
Ė: "E",
|
|
98
|
+
Ę: "E",
|
|
99
|
+
Ě: "E",
|
|
100
|
+
ē: "e",
|
|
101
|
+
ĕ: "e",
|
|
102
|
+
ė: "e",
|
|
103
|
+
ę: "e",
|
|
104
|
+
ě: "e",
|
|
105
|
+
Ĝ: "G",
|
|
106
|
+
Ğ: "G",
|
|
107
|
+
Ġ: "G",
|
|
108
|
+
Ģ: "G",
|
|
109
|
+
ĝ: "g",
|
|
110
|
+
ğ: "g",
|
|
111
|
+
ġ: "g",
|
|
112
|
+
ģ: "g",
|
|
113
|
+
Ĥ: "H",
|
|
114
|
+
Ħ: "H",
|
|
115
|
+
ĥ: "h",
|
|
116
|
+
ħ: "h",
|
|
117
|
+
Ĩ: "I",
|
|
118
|
+
Ī: "I",
|
|
119
|
+
Ĭ: "I",
|
|
120
|
+
Į: "I",
|
|
121
|
+
İ: "I",
|
|
122
|
+
ĩ: "i",
|
|
123
|
+
ī: "i",
|
|
124
|
+
ĭ: "i",
|
|
125
|
+
į: "i",
|
|
126
|
+
ı: "i",
|
|
127
|
+
Ĵ: "J",
|
|
128
|
+
ĵ: "j",
|
|
129
|
+
Ķ: "K",
|
|
130
|
+
ķ: "k",
|
|
131
|
+
ĸ: "k",
|
|
132
|
+
Ĺ: "L",
|
|
133
|
+
Ļ: "L",
|
|
134
|
+
Ľ: "L",
|
|
135
|
+
Ŀ: "L",
|
|
136
|
+
Ł: "L",
|
|
137
|
+
ĺ: "l",
|
|
138
|
+
ļ: "l",
|
|
139
|
+
ľ: "l",
|
|
140
|
+
ŀ: "l",
|
|
141
|
+
ł: "l",
|
|
142
|
+
Ń: "N",
|
|
143
|
+
Ņ: "N",
|
|
144
|
+
Ň: "N",
|
|
145
|
+
Ŋ: "N",
|
|
146
|
+
ń: "n",
|
|
147
|
+
ņ: "n",
|
|
148
|
+
ň: "n",
|
|
149
|
+
ŋ: "n",
|
|
150
|
+
Ō: "O",
|
|
151
|
+
Ŏ: "O",
|
|
152
|
+
Ő: "O",
|
|
153
|
+
ō: "o",
|
|
154
|
+
ŏ: "o",
|
|
155
|
+
ő: "o",
|
|
156
|
+
Ŕ: "R",
|
|
157
|
+
Ŗ: "R",
|
|
158
|
+
Ř: "R",
|
|
159
|
+
ŕ: "r",
|
|
160
|
+
ŗ: "r",
|
|
161
|
+
ř: "r",
|
|
162
|
+
Ś: "S",
|
|
163
|
+
Ŝ: "S",
|
|
164
|
+
Ş: "S",
|
|
165
|
+
Š: "S",
|
|
166
|
+
ś: "s",
|
|
167
|
+
ŝ: "s",
|
|
168
|
+
ş: "s",
|
|
169
|
+
š: "s",
|
|
170
|
+
Ţ: "T",
|
|
171
|
+
Ť: "T",
|
|
172
|
+
Ŧ: "T",
|
|
173
|
+
ţ: "t",
|
|
174
|
+
ť: "t",
|
|
175
|
+
ŧ: "t",
|
|
176
|
+
Ũ: "U",
|
|
177
|
+
Ū: "U",
|
|
178
|
+
Ŭ: "U",
|
|
179
|
+
Ů: "U",
|
|
180
|
+
Ű: "U",
|
|
181
|
+
Ų: "U",
|
|
182
|
+
ũ: "u",
|
|
183
|
+
ū: "u",
|
|
184
|
+
ŭ: "u",
|
|
185
|
+
ů: "u",
|
|
186
|
+
ű: "u",
|
|
187
|
+
ų: "u",
|
|
188
|
+
Ŵ: "W",
|
|
189
|
+
ŵ: "w",
|
|
190
|
+
Ŷ: "Y",
|
|
191
|
+
ŷ: "y",
|
|
192
|
+
Ÿ: "Y",
|
|
193
|
+
Ź: "Z",
|
|
194
|
+
Ż: "Z",
|
|
195
|
+
Ž: "Z",
|
|
196
|
+
ź: "z",
|
|
197
|
+
ż: "z",
|
|
198
|
+
ž: "z",
|
|
199
|
+
IJ: "IJ",
|
|
200
|
+
ij: "ij",
|
|
201
|
+
Œ: "Oe",
|
|
202
|
+
œ: "oe",
|
|
203
|
+
ʼn: "'n",
|
|
204
|
+
ſ: "s"
|
|
205
|
+
}, M = L(h), S = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, z = "\\u0300-\\u036f", Z = "\\ufe20-\\ufe2f", I = "\\u20d0-\\u20ff", k = z + Z + I, D = "[" + k + "]", w = RegExp(D, "g");
|
|
206
|
+
function N(u) {
|
|
207
|
+
return u = s(u), u && u.replace(S, M).replace(w, "");
|
|
208
|
+
}
|
|
209
|
+
var W = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
210
|
+
function $(u) {
|
|
211
|
+
return u.match(W) || [];
|
|
212
|
+
}
|
|
213
|
+
var j = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
|
214
|
+
function T(u) {
|
|
215
|
+
return j.test(u);
|
|
216
|
+
}
|
|
217
|
+
var c = "\\ud800-\\udfff", H = "\\u0300-\\u036f", y = "\\ufe20-\\ufe2f", G = "\\u20d0-\\u20ff", J = H + y + G, i = "\\u2700-\\u27bf", t = "a-z\\xdf-\\xf6\\xf8-\\xff", P = "\\xac\\xb1\\xd7\\xf7", V = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Y = "\\u2000-\\u206f", B = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", b = "A-Z\\xc0-\\xd6\\xd8-\\xde", _ = "\\ufe0e\\ufe0f", g = P + V + Y + B, R = "['’]", a = "[" + g + "]", q = "[" + J + "]", p = "\\d+", F = "[" + i + "]", A = "[" + t + "]", l = "[^" + c + g + p + i + t + b + "]", K = "\\ud83c[\\udffb-\\udfff]", Q = "(?:" + q + "|" + K + ")", X = "[^" + c + "]", m = "(?:\\ud83c[\\udde6-\\uddff]){2}", C = "[\\ud800-\\udbff][\\udc00-\\udfff]", r = "[" + b + "]", u0 = "\\u200d", d = "(?:" + A + "|" + l + ")", e0 = "(?:" + r + "|" + l + ")", o = "(?:" + R + "(?:d|ll|m|re|s|t|ve))?", n = "(?:" + R + "(?:D|LL|M|RE|S|T|VE))?", O = Q + "?", U = "[" + _ + "]?", r0 = "(?:" + u0 + "(?:" + [X, m, C].join("|") + ")" + U + O + ")*", x0 = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", f0 = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", a0 = U + O + r0, d0 = "(?:" + [F, m, C].join("|") + ")" + a0, o0 = RegExp([
|
|
218
|
+
r + "?" + A + "+" + o + "(?=" + [a, r, "$"].join("|") + ")",
|
|
219
|
+
e0 + "+" + n + "(?=" + [a, r + d, "$"].join("|") + ")",
|
|
220
|
+
r + "?" + d + "+" + o,
|
|
221
|
+
r + "+" + n,
|
|
222
|
+
f0,
|
|
223
|
+
x0,
|
|
224
|
+
p,
|
|
225
|
+
d0
|
|
226
|
+
].join("|"), "g");
|
|
227
|
+
function n0(u) {
|
|
228
|
+
return u.match(o0) || [];
|
|
229
|
+
}
|
|
230
|
+
function s0(u, e, x) {
|
|
231
|
+
return u = s(u), e = e, e === void 0 ? T(u) ? n0(u) : $(u) : u.match(e) || [];
|
|
232
|
+
}
|
|
233
|
+
var c0 = "['’]", i0 = RegExp(c0, "g");
|
|
234
|
+
function g0(u) {
|
|
235
|
+
return function(e) {
|
|
236
|
+
return E(s0(N(e).replace(i0, "")), u, "");
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
export {
|
|
240
|
+
g0 as c
|
|
241
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { x as i } from "./index-60qEjGuU.js";
|
|
2
|
+
function R(r, e, u) {
|
|
3
|
+
var o = -1, f = r.length;
|
|
4
|
+
e < 0 && (e = -e > f ? 0 : f + e), u = u > f ? f : u, u < 0 && (u += f), f = e > u ? 0 : u - e >>> 0, e >>>= 0;
|
|
5
|
+
for (var s = Array(f); ++o < f; )
|
|
6
|
+
s[o] = r[o + e];
|
|
7
|
+
return s;
|
|
8
|
+
}
|
|
9
|
+
function v(r, e, u) {
|
|
10
|
+
var o = r.length;
|
|
11
|
+
return u = u === void 0 ? o : u, !e && u >= o ? r : R(r, e, u);
|
|
12
|
+
}
|
|
13
|
+
var p = "\\ud800-\\udfff", C = "\\u0300-\\u036f", h = "\\ufe20-\\ufe2f", A = "\\u20d0-\\u20ff", S = C + h + A, $ = "\\ufe0e\\ufe0f", M = "\\u200d", x = RegExp("[" + M + p + S + $ + "]");
|
|
14
|
+
function c(r) {
|
|
15
|
+
return x.test(r);
|
|
16
|
+
}
|
|
17
|
+
function y(r) {
|
|
18
|
+
return r.split("");
|
|
19
|
+
}
|
|
20
|
+
var t = "\\ud800-\\udfff", k = "\\u0300-\\u036f", U = "\\ufe20-\\ufe2f", j = "\\u20d0-\\u20ff", F = k + U + j, H = "\\ufe0e\\ufe0f", J = "[" + t + "]", a = "[" + F + "]", n = "\\ud83c[\\udffb-\\udfff]", O = "(?:" + a + "|" + n + ")", l = "[^" + t + "]", d = "(?:\\ud83c[\\udde6-\\uddff]){2}", b = "[\\ud800-\\udbff][\\udc00-\\udfff]", T = "\\u200d", g = O + "?", m = "[" + H + "]?", V = "(?:" + T + "(?:" + [l, d, b].join("|") + ")" + m + g + ")*", w = m + g + V, z = "(?:" + [l + a + "?", a, d, b, J].join("|") + ")", E = RegExp(n + "(?=" + n + ")|" + z + w, "g");
|
|
21
|
+
function W(r) {
|
|
22
|
+
return r.match(E) || [];
|
|
23
|
+
}
|
|
24
|
+
function Z(r) {
|
|
25
|
+
return c(r) ? W(r) : y(r);
|
|
26
|
+
}
|
|
27
|
+
function q(r) {
|
|
28
|
+
return function(e) {
|
|
29
|
+
e = i(e);
|
|
30
|
+
var u = c(e) ? Z(e) : void 0, o = u ? u[0] : e.charAt(0), f = u ? v(u, 1).join("") : e.slice(1);
|
|
31
|
+
return o[r]() + f;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
var L = q("toUpperCase");
|
|
35
|
+
function P(r) {
|
|
36
|
+
return L(i(r).toLowerCase());
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
P as c
|
|
40
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { defineStore as s } from "pinia";
|
|
2
|
+
import { a } from "./index-60qEjGuU.js";
|
|
3
|
+
const o = s("clientCertificates", {
|
|
4
|
+
state: () => ({
|
|
5
|
+
certificates: [],
|
|
6
|
+
apiProcesses: 0
|
|
7
|
+
}),
|
|
8
|
+
getters: {
|
|
9
|
+
loading: (e) => e.apiProcesses > 0
|
|
10
|
+
},
|
|
11
|
+
actions: {
|
|
12
|
+
async fetchClientCertificates() {
|
|
13
|
+
this.apiProcesses++;
|
|
14
|
+
try {
|
|
15
|
+
const e = await a.get("/api/client_certificates");
|
|
16
|
+
this.certificates = e.data;
|
|
17
|
+
} catch (e) {
|
|
18
|
+
throw e;
|
|
19
|
+
} finally {
|
|
20
|
+
this.apiProcesses--;
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
async createClientCertificate(e) {
|
|
24
|
+
this.apiProcesses++;
|
|
25
|
+
var t = new FormData();
|
|
26
|
+
t.append("certificate", e.certificate), t.append("private_key", e.private_key), t.append("private_key_pass", e.private_key_pass);
|
|
27
|
+
try {
|
|
28
|
+
await a.post("/api/client_certificates", t, {
|
|
29
|
+
headers: {
|
|
30
|
+
"Content-Type": "multipart/form-data"
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
} catch (i) {
|
|
34
|
+
throw i;
|
|
35
|
+
} finally {
|
|
36
|
+
this.apiProcesses--;
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
async deleteClientCertificate(e) {
|
|
40
|
+
this.apiProcesses++;
|
|
41
|
+
try {
|
|
42
|
+
await a.delete("/api/client_certificates/" + e);
|
|
43
|
+
} catch (t) {
|
|
44
|
+
throw t;
|
|
45
|
+
} finally {
|
|
46
|
+
this.apiProcesses--;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
export {
|
|
52
|
+
o as u
|
|
53
|
+
};
|
|
Binary file
|
|
Binary file
|
package/dist/favicon.ico
ADDED
|
Binary file
|
|
Binary file
|