@devtable/settings-form 10.38.0 → 10.39.0
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/{package-2360dfd8.mjs → package-576d8b62.mjs} +1 -1
- package/dist/settings-form/src/shared/api-client/default-api-client.d.ts +4 -1
- package/dist/settings-form/src/shared/api-client/facade-api-client.d.ts +4 -1
- package/dist/settings-form/src/shared/api-client/types.d.ts +6 -1
- package/dist/settings-form.es.js +333 -315
- package/dist/settings-form.umd.js +9 -9
- package/dist/stats.html +1 -1
- package/package.json +1 -1
package/dist/settings-form.es.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import K, { useEffect as yt, forwardRef as Je, useState as
|
|
2
|
-
import { Box as se, TextInput as ue, Divider as et, Group as Q, NumberInput as Tr, PasswordInput as tt, Button as V, Modal as Ae, Stack as je, Alert as Rr, SegmentedControl as
|
|
1
|
+
import K, { useEffect as yt, forwardRef as Je, useState as Ht, Component as kr } from "react";
|
|
2
|
+
import { Box as se, TextInput as ue, Divider as et, Group as Q, NumberInput as Tr, PasswordInput as tt, Button as V, Modal as Ae, Stack as je, Alert as Rr, SegmentedControl as xr, Tooltip as Ke, Text as Re, ActionIcon as vt, LoadingOverlay as rt, Table as nt, Select as Or, Switch as Cr, createStyles as qt, rem as Me, useComponentDefaultProps as Ir, useMantineTheme as Dr, ScrollArea as Yt, Tabs as at, HoverCard as gt } from "@mantine/core";
|
|
3
3
|
import { showNotification as be, updateNotification as J } from "@mantine/notifications";
|
|
4
4
|
import { Recycle as Lr, AlertCircle as Fr, PlaylistAdd as it, Trash as ot, Edit as Nr } from "tabler-icons-react";
|
|
5
5
|
import * as $r from "crypto-js";
|
|
6
|
-
import
|
|
7
|
-
import { useForm as Ee, Controller as
|
|
8
|
-
import { useBoolean as
|
|
6
|
+
import zr from "axios";
|
|
7
|
+
import { useForm as Ee, Controller as q } from "react-hook-form";
|
|
8
|
+
import { useBoolean as Pr, useRequest as xe } from "ahooks";
|
|
9
9
|
import Vt, { loader as ft } from "@monaco-editor/react";
|
|
10
|
-
import { useModals as
|
|
11
|
-
import { IconLock as Wt, IconEdit as ht, IconNetwork as Br, IconBrandMysql as jr, IconDatabase as
|
|
12
|
-
import { useClipboard as
|
|
13
|
-
var
|
|
10
|
+
import { useModals as Ge, closeAllModals as Mr } from "@mantine/modals";
|
|
11
|
+
import { IconLock as Wt, IconEdit as ht, IconNetwork as Br, IconBrandMysql as jr, IconDatabase as Gr, IconEye as Ur } from "@tabler/icons-react";
|
|
12
|
+
import { useClipboard as Hr } from "@mantine/hooks";
|
|
13
|
+
var qr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Be = {}, Yr = {
|
|
14
14
|
get exports() {
|
|
15
15
|
return Be;
|
|
16
16
|
},
|
|
@@ -75,10 +75,10 @@ function Wr() {
|
|
|
75
75
|
}
|
|
76
76
|
function $(i, v, T) {
|
|
77
77
|
{
|
|
78
|
-
var D = A.ReactDebugCurrentFrame,
|
|
79
|
-
|
|
80
|
-
var W = T.map(function(
|
|
81
|
-
return String(
|
|
78
|
+
var D = A.ReactDebugCurrentFrame, U = D.getStackAddendum();
|
|
79
|
+
U !== "" && (v += "%s", T = T.concat([U]));
|
|
80
|
+
var W = T.map(function(P) {
|
|
81
|
+
return String(P);
|
|
82
82
|
});
|
|
83
83
|
W.unshift("Warning: " + v), Function.prototype.apply.call(console[i], console, W);
|
|
84
84
|
}
|
|
@@ -96,8 +96,8 @@ function Wr() {
|
|
|
96
96
|
var D = i.displayName;
|
|
97
97
|
if (D)
|
|
98
98
|
return D;
|
|
99
|
-
var
|
|
100
|
-
return
|
|
99
|
+
var U = v.displayName || v.name || "";
|
|
100
|
+
return U !== "" ? T + "(" + U + ")" : T;
|
|
101
101
|
}
|
|
102
102
|
function ee(i) {
|
|
103
103
|
return i.displayName || "Context";
|
|
@@ -137,9 +137,9 @@ function Wr() {
|
|
|
137
137
|
var D = i.displayName || null;
|
|
138
138
|
return D !== null ? D : R(i.type) || "Memo";
|
|
139
139
|
case c: {
|
|
140
|
-
var
|
|
140
|
+
var U = i, W = U._payload, P = U._init;
|
|
141
141
|
try {
|
|
142
|
-
return R(
|
|
142
|
+
return R(P(W));
|
|
143
143
|
} catch {
|
|
144
144
|
return null;
|
|
145
145
|
}
|
|
@@ -147,18 +147,18 @@ function Wr() {
|
|
|
147
147
|
}
|
|
148
148
|
return null;
|
|
149
149
|
}
|
|
150
|
-
var E = Object.assign, S = 0,
|
|
151
|
-
function
|
|
150
|
+
var E = Object.assign, S = 0, x, w, O, I, N, H, j;
|
|
151
|
+
function G() {
|
|
152
152
|
}
|
|
153
|
-
|
|
153
|
+
G.__reactDisabledLog = !0;
|
|
154
154
|
function le() {
|
|
155
155
|
{
|
|
156
156
|
if (S === 0) {
|
|
157
|
-
|
|
157
|
+
x = console.log, w = console.info, O = console.warn, I = console.error, N = console.group, H = console.groupCollapsed, j = console.groupEnd;
|
|
158
158
|
var i = {
|
|
159
159
|
configurable: !0,
|
|
160
160
|
enumerable: !0,
|
|
161
|
-
value:
|
|
161
|
+
value: G,
|
|
162
162
|
writable: !0
|
|
163
163
|
};
|
|
164
164
|
Object.defineProperties(console, {
|
|
@@ -184,13 +184,13 @@ function Wr() {
|
|
|
184
184
|
};
|
|
185
185
|
Object.defineProperties(console, {
|
|
186
186
|
log: E({}, i, {
|
|
187
|
-
value:
|
|
187
|
+
value: x
|
|
188
188
|
}),
|
|
189
189
|
info: E({}, i, {
|
|
190
190
|
value: w
|
|
191
191
|
}),
|
|
192
192
|
warn: E({}, i, {
|
|
193
|
-
value:
|
|
193
|
+
value: O
|
|
194
194
|
}),
|
|
195
195
|
error: E({}, i, {
|
|
196
196
|
value: I
|
|
@@ -199,7 +199,7 @@ function Wr() {
|
|
|
199
199
|
value: N
|
|
200
200
|
}),
|
|
201
201
|
groupCollapsed: E({}, i, {
|
|
202
|
-
value:
|
|
202
|
+
value: H
|
|
203
203
|
}),
|
|
204
204
|
groupEnd: E({}, i, {
|
|
205
205
|
value: j
|
|
@@ -215,8 +215,8 @@ function Wr() {
|
|
|
215
215
|
if (ye === void 0)
|
|
216
216
|
try {
|
|
217
217
|
throw Error();
|
|
218
|
-
} catch (
|
|
219
|
-
var D =
|
|
218
|
+
} catch (U) {
|
|
219
|
+
var D = U.stack.trim().match(/\n( *(at )?)/);
|
|
220
220
|
ye = D && D[1] || "";
|
|
221
221
|
}
|
|
222
222
|
return `
|
|
@@ -238,33 +238,33 @@ function Wr() {
|
|
|
238
238
|
}
|
|
239
239
|
var D;
|
|
240
240
|
re = !0;
|
|
241
|
-
var
|
|
241
|
+
var U = Error.prepareStackTrace;
|
|
242
242
|
Error.prepareStackTrace = void 0;
|
|
243
243
|
var W;
|
|
244
244
|
W = pe.current, pe.current = null, le();
|
|
245
245
|
try {
|
|
246
246
|
if (v) {
|
|
247
|
-
var
|
|
247
|
+
var P = function() {
|
|
248
248
|
throw Error();
|
|
249
249
|
};
|
|
250
|
-
if (Object.defineProperty(
|
|
250
|
+
if (Object.defineProperty(P.prototype, "props", {
|
|
251
251
|
set: function() {
|
|
252
252
|
throw Error();
|
|
253
253
|
}
|
|
254
254
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
255
255
|
try {
|
|
256
|
-
Reflect.construct(
|
|
256
|
+
Reflect.construct(P, []);
|
|
257
257
|
} catch (we) {
|
|
258
258
|
D = we;
|
|
259
259
|
}
|
|
260
|
-
Reflect.construct(i, [],
|
|
260
|
+
Reflect.construct(i, [], P);
|
|
261
261
|
} else {
|
|
262
262
|
try {
|
|
263
|
-
|
|
263
|
+
P.call();
|
|
264
264
|
} catch (we) {
|
|
265
265
|
D = we;
|
|
266
266
|
}
|
|
267
|
-
i.call(
|
|
267
|
+
i.call(P.prototype);
|
|
268
268
|
}
|
|
269
269
|
} else {
|
|
270
270
|
try {
|
|
@@ -276,17 +276,17 @@ function Wr() {
|
|
|
276
276
|
}
|
|
277
277
|
} catch (we) {
|
|
278
278
|
if (we && D && typeof we.stack == "string") {
|
|
279
|
-
for (var
|
|
279
|
+
for (var z = we.stack.split(`
|
|
280
280
|
`), ge = D.stack.split(`
|
|
281
|
-
`), ne =
|
|
281
|
+
`), ne = z.length - 1, ie = ge.length - 1; ne >= 1 && ie >= 0 && z[ne] !== ge[ie]; )
|
|
282
282
|
ie--;
|
|
283
283
|
for (; ne >= 1 && ie >= 0; ne--, ie--)
|
|
284
|
-
if (
|
|
284
|
+
if (z[ne] !== ge[ie]) {
|
|
285
285
|
if (ne !== 1 || ie !== 1)
|
|
286
286
|
do
|
|
287
|
-
if (ne--, ie--, ie < 0 ||
|
|
287
|
+
if (ne--, ie--, ie < 0 || z[ne] !== ge[ie]) {
|
|
288
288
|
var me = `
|
|
289
|
-
` +
|
|
289
|
+
` + z[ne].replace(" at new ", " at ");
|
|
290
290
|
return i.displayName && me.includes("<anonymous>") && (me = me.replace("<anonymous>", i.displayName)), typeof i == "function" && de.set(i, me), me;
|
|
291
291
|
}
|
|
292
292
|
while (ne >= 1 && ie >= 0);
|
|
@@ -294,7 +294,7 @@ function Wr() {
|
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
} finally {
|
|
297
|
-
re = !1, pe.current = W, ce(), Error.prepareStackTrace =
|
|
297
|
+
re = !1, pe.current = W, ce(), Error.prepareStackTrace = U;
|
|
298
298
|
}
|
|
299
299
|
var Ce = i ? i.displayName || i.name : "", Ft = Ce ? fe(Ce) : "";
|
|
300
300
|
return typeof i == "function" && de.set(i, Ft), Ft;
|
|
@@ -306,7 +306,7 @@ function Wr() {
|
|
|
306
306
|
var v = i.prototype;
|
|
307
307
|
return !!(v && v.isReactComponent);
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
function qe(i, v, T) {
|
|
310
310
|
if (i == null)
|
|
311
311
|
return "";
|
|
312
312
|
if (typeof i == "function")
|
|
@@ -324,11 +324,11 @@ function Wr() {
|
|
|
324
324
|
case d:
|
|
325
325
|
return nr(i.render);
|
|
326
326
|
case u:
|
|
327
|
-
return
|
|
327
|
+
return qe(i.type, v, T);
|
|
328
328
|
case c: {
|
|
329
|
-
var D = i,
|
|
329
|
+
var D = i, U = D._payload, W = D._init;
|
|
330
330
|
try {
|
|
331
|
-
return
|
|
331
|
+
return qe(W(U), v, T);
|
|
332
332
|
} catch {
|
|
333
333
|
}
|
|
334
334
|
}
|
|
@@ -338,27 +338,27 @@ function Wr() {
|
|
|
338
338
|
var Ye = Object.prototype.hasOwnProperty, Et = {}, _t = A.ReactDebugCurrentFrame;
|
|
339
339
|
function Ve(i) {
|
|
340
340
|
if (i) {
|
|
341
|
-
var v = i._owner, T =
|
|
341
|
+
var v = i._owner, T = qe(i.type, i._source, v ? v.type : null);
|
|
342
342
|
_t.setExtraStackFrame(T);
|
|
343
343
|
} else
|
|
344
344
|
_t.setExtraStackFrame(null);
|
|
345
345
|
}
|
|
346
|
-
function ir(i, v, T, D,
|
|
346
|
+
function ir(i, v, T, D, U) {
|
|
347
347
|
{
|
|
348
348
|
var W = Function.call.bind(Ye);
|
|
349
|
-
for (var
|
|
350
|
-
if (W(i,
|
|
351
|
-
var
|
|
349
|
+
for (var P in i)
|
|
350
|
+
if (W(i, P)) {
|
|
351
|
+
var z = void 0;
|
|
352
352
|
try {
|
|
353
|
-
if (typeof i[
|
|
354
|
-
var ge = Error((D || "React class") + ": " + T + " type `" +
|
|
353
|
+
if (typeof i[P] != "function") {
|
|
354
|
+
var ge = Error((D || "React class") + ": " + T + " type `" + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[P] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
355
355
|
throw ge.name = "Invariant Violation", ge;
|
|
356
356
|
}
|
|
357
|
-
|
|
357
|
+
z = i[P](v, P, D, T, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
358
358
|
} catch (ne) {
|
|
359
|
-
|
|
359
|
+
z = ne;
|
|
360
360
|
}
|
|
361
|
-
|
|
361
|
+
z && !(z instanceof Error) && (Ve(U), k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", D || "React class", T, P, typeof z), Ve(null)), z instanceof Error && !(z.message in Et) && (Et[z.message] = !0, Ve(U), k("Failed %s type: %s", T, z.message), Ve(null));
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
364
|
}
|
|
@@ -437,67 +437,67 @@ function Wr() {
|
|
|
437
437
|
});
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
var hr = function(i, v, T, D,
|
|
441
|
-
var
|
|
440
|
+
var hr = function(i, v, T, D, U, W, P) {
|
|
441
|
+
var z = {
|
|
442
442
|
// This tag allows us to uniquely identify this as a React Element
|
|
443
443
|
$$typeof: t,
|
|
444
444
|
// Built-in properties that belong on the element
|
|
445
445
|
type: i,
|
|
446
446
|
key: v,
|
|
447
447
|
ref: T,
|
|
448
|
-
props:
|
|
448
|
+
props: P,
|
|
449
449
|
// Record the component responsible for creating this element.
|
|
450
450
|
_owner: W
|
|
451
451
|
};
|
|
452
|
-
return
|
|
452
|
+
return z._store = {}, Object.defineProperty(z._store, "validated", {
|
|
453
453
|
configurable: !1,
|
|
454
454
|
enumerable: !1,
|
|
455
455
|
writable: !0,
|
|
456
456
|
value: !1
|
|
457
|
-
}), Object.defineProperty(
|
|
457
|
+
}), Object.defineProperty(z, "_self", {
|
|
458
458
|
configurable: !1,
|
|
459
459
|
enumerable: !1,
|
|
460
460
|
writable: !1,
|
|
461
461
|
value: D
|
|
462
|
-
}), Object.defineProperty(
|
|
462
|
+
}), Object.defineProperty(z, "_source", {
|
|
463
463
|
configurable: !1,
|
|
464
464
|
enumerable: !1,
|
|
465
465
|
writable: !1,
|
|
466
|
-
value:
|
|
467
|
-
}), Object.freeze && (Object.freeze(
|
|
466
|
+
value: U
|
|
467
|
+
}), Object.freeze && (Object.freeze(z.props), Object.freeze(z)), z;
|
|
468
468
|
};
|
|
469
|
-
function mr(i, v, T, D,
|
|
469
|
+
function mr(i, v, T, D, U) {
|
|
470
470
|
{
|
|
471
|
-
var W,
|
|
472
|
-
T !== void 0 && (kt(T),
|
|
471
|
+
var W, P = {}, z = null, ge = null;
|
|
472
|
+
T !== void 0 && (kt(T), z = "" + T), dr(v) && (kt(v.key), z = "" + v.key), cr(v) && (ge = v.ref, pr(v, U));
|
|
473
473
|
for (W in v)
|
|
474
|
-
Ye.call(v, W) && !ur.hasOwnProperty(W) && (
|
|
474
|
+
Ye.call(v, W) && !ur.hasOwnProperty(W) && (P[W] = v[W]);
|
|
475
475
|
if (i && i.defaultProps) {
|
|
476
476
|
var ne = i.defaultProps;
|
|
477
477
|
for (W in ne)
|
|
478
|
-
|
|
478
|
+
P[W] === void 0 && (P[W] = ne[W]);
|
|
479
479
|
}
|
|
480
|
-
if (
|
|
480
|
+
if (z || ge) {
|
|
481
481
|
var ie = typeof i == "function" ? i.displayName || i.name || "Unknown" : i;
|
|
482
|
-
|
|
482
|
+
z && gr(P, ie), ge && fr(P, ie);
|
|
483
483
|
}
|
|
484
|
-
return hr(i,
|
|
484
|
+
return hr(i, z, ge, U, D, Le.current, P);
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
|
-
var ct = A.ReactCurrentOwner,
|
|
488
|
-
function
|
|
487
|
+
var ct = A.ReactCurrentOwner, xt = A.ReactDebugCurrentFrame;
|
|
488
|
+
function Oe(i) {
|
|
489
489
|
if (i) {
|
|
490
|
-
var v = i._owner, T =
|
|
491
|
-
|
|
490
|
+
var v = i._owner, T = qe(i.type, i._source, v ? v.type : null);
|
|
491
|
+
xt.setExtraStackFrame(T);
|
|
492
492
|
} else
|
|
493
|
-
|
|
493
|
+
xt.setExtraStackFrame(null);
|
|
494
494
|
}
|
|
495
495
|
var dt;
|
|
496
496
|
dt = !1;
|
|
497
497
|
function pt(i) {
|
|
498
498
|
return typeof i == "object" && i !== null && i.$$typeof === t;
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function Ot() {
|
|
501
501
|
{
|
|
502
502
|
if (ct.current) {
|
|
503
503
|
var i = R(ct.current.type);
|
|
@@ -523,7 +523,7 @@ Check your code at ` + v + ":" + T + ".";
|
|
|
523
523
|
var Ct = {};
|
|
524
524
|
function yr(i) {
|
|
525
525
|
{
|
|
526
|
-
var v =
|
|
526
|
+
var v = Ot();
|
|
527
527
|
if (!v) {
|
|
528
528
|
var T = typeof i == "string" ? i : i.displayName || i.name;
|
|
529
529
|
T && (v = `
|
|
@@ -543,7 +543,7 @@ Check the top-level render call using <` + T + ">.");
|
|
|
543
543
|
return;
|
|
544
544
|
Ct[T] = !0;
|
|
545
545
|
var D = "";
|
|
546
|
-
i && i._owner && i._owner !== ct.current && (D = " It was passed a child from " + R(i._owner.type) + "."),
|
|
546
|
+
i && i._owner && i._owner !== ct.current && (D = " It was passed a child from " + R(i._owner.type) + "."), Oe(i), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', T, D), Oe(null);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
549
|
function Dt(i, v) {
|
|
@@ -558,10 +558,10 @@ Check the top-level render call using <` + T + ">.");
|
|
|
558
558
|
else if (pt(i))
|
|
559
559
|
i._store && (i._store.validated = !0);
|
|
560
560
|
else if (i) {
|
|
561
|
-
var
|
|
562
|
-
if (typeof
|
|
563
|
-
for (var W =
|
|
564
|
-
pt(
|
|
561
|
+
var U = _(i);
|
|
562
|
+
if (typeof U == "function" && U !== i.entries)
|
|
563
|
+
for (var W = U.call(i), P; !(P = W.next()).done; )
|
|
564
|
+
pt(P.value) && It(P.value, v);
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
567
|
}
|
|
@@ -584,8 +584,8 @@ Check the top-level render call using <` + T + ">.");
|
|
|
584
584
|
ir(T, i.props, "prop", D, i);
|
|
585
585
|
} else if (v.PropTypes !== void 0 && !dt) {
|
|
586
586
|
dt = !0;
|
|
587
|
-
var
|
|
588
|
-
k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
587
|
+
var U = R(v);
|
|
588
|
+
k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", U || "Unknown");
|
|
589
589
|
}
|
|
590
590
|
typeof v.getDefaultProps == "function" && !v.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
591
591
|
}
|
|
@@ -595,28 +595,28 @@ Check the top-level render call using <` + T + ">.");
|
|
|
595
595
|
for (var v = Object.keys(i.props), T = 0; T < v.length; T++) {
|
|
596
596
|
var D = v[T];
|
|
597
597
|
if (D !== "children" && D !== "key") {
|
|
598
|
-
|
|
598
|
+
Oe(i), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", D), Oe(null);
|
|
599
599
|
break;
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
|
-
i.ref !== null && (
|
|
602
|
+
i.ref !== null && (Oe(i), k("Invalid attribute `ref` supplied to `React.Fragment`."), Oe(null));
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
|
-
function Lt(i, v, T, D,
|
|
605
|
+
function Lt(i, v, T, D, U, W) {
|
|
606
606
|
{
|
|
607
|
-
var
|
|
608
|
-
if (!
|
|
609
|
-
var
|
|
610
|
-
(i === void 0 || typeof i == "object" && i !== null && Object.keys(i).length === 0) && (
|
|
611
|
-
var ge = br(
|
|
612
|
-
ge ?
|
|
607
|
+
var P = L(i);
|
|
608
|
+
if (!P) {
|
|
609
|
+
var z = "";
|
|
610
|
+
(i === void 0 || typeof i == "object" && i !== null && Object.keys(i).length === 0) && (z += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
611
|
+
var ge = br(U);
|
|
612
|
+
ge ? z += ge : z += Ot();
|
|
613
613
|
var ne;
|
|
614
|
-
i === null ? ne = "null" : lt(i) ? ne = "array" : i !== void 0 && i.$$typeof === t ? (ne = "<" + (R(i.type) || "Unknown") + " />",
|
|
614
|
+
i === null ? ne = "null" : lt(i) ? ne = "array" : i !== void 0 && i.$$typeof === t ? (ne = "<" + (R(i.type) || "Unknown") + " />", z = " Did you accidentally export a JSX literal instead of a component?") : ne = typeof i, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ne, z);
|
|
615
615
|
}
|
|
616
|
-
var ie = mr(i, v, T,
|
|
616
|
+
var ie = mr(i, v, T, U, W);
|
|
617
617
|
if (ie == null)
|
|
618
618
|
return ie;
|
|
619
|
-
if (
|
|
619
|
+
if (P) {
|
|
620
620
|
var me = v.children;
|
|
621
621
|
if (me !== void 0)
|
|
622
622
|
if (D)
|
|
@@ -691,11 +691,20 @@ class Xr {
|
|
|
691
691
|
};
|
|
692
692
|
}
|
|
693
693
|
getRequest(t, r) {
|
|
694
|
-
return (n, s, o
|
|
695
|
-
const
|
|
696
|
-
return
|
|
694
|
+
return (n, s, o, l) => {
|
|
695
|
+
const p = this.buildHeader(o), d = this.buildAxiosConfig(t, n, s, o, p, r);
|
|
696
|
+
return zr(d).then((f) => l ? f : f.data).catch((f) => Promise.reject(f));
|
|
697
697
|
};
|
|
698
698
|
}
|
|
699
|
+
get(t) {
|
|
700
|
+
return this.getRequest("GET", t);
|
|
701
|
+
}
|
|
702
|
+
post(t) {
|
|
703
|
+
return this.getRequest("POST", t);
|
|
704
|
+
}
|
|
705
|
+
put(t) {
|
|
706
|
+
return this.getRequest("PUT", t);
|
|
707
|
+
}
|
|
699
708
|
buildAxiosConfig(t, r, n, s, o, l) {
|
|
700
709
|
const p = {
|
|
701
710
|
baseURL: this.baseURL,
|
|
@@ -724,10 +733,19 @@ class Qr {
|
|
|
724
733
|
getRequest(t, r) {
|
|
725
734
|
return this.implementation.getRequest(t, r);
|
|
726
735
|
}
|
|
736
|
+
get(t) {
|
|
737
|
+
return this.getRequest("GET", t);
|
|
738
|
+
}
|
|
739
|
+
post(t) {
|
|
740
|
+
return this.getRequest("POST", t);
|
|
741
|
+
}
|
|
742
|
+
put(t) {
|
|
743
|
+
return this.getRequest("PUT", t);
|
|
744
|
+
}
|
|
727
745
|
}
|
|
728
|
-
const
|
|
729
|
-
function
|
|
730
|
-
|
|
746
|
+
const Pe = new Xr(), Jr = new Qr(Pe), ae = Jr;
|
|
747
|
+
function Ue(e) {
|
|
748
|
+
Pe.baseURL !== e.apiBaseURL && (Pe.baseURL = e.apiBaseURL), e.app_id && (Pe.app_id = e.app_id), e.app_secret && (Pe.app_secret = e.app_secret);
|
|
731
749
|
}
|
|
732
750
|
const en = {
|
|
733
751
|
login: async (e, t) => {
|
|
@@ -735,9 +753,9 @@ const en = {
|
|
|
735
753
|
name: e,
|
|
736
754
|
password: t
|
|
737
755
|
};
|
|
738
|
-
return await ae.
|
|
756
|
+
return await ae.post()("/account/login", r, {});
|
|
739
757
|
},
|
|
740
|
-
list: async () => await ae.
|
|
758
|
+
list: async () => await ae.post()("/account/list", {
|
|
741
759
|
filter: {},
|
|
742
760
|
sort: [{
|
|
743
761
|
field: "name",
|
|
@@ -747,11 +765,11 @@ const en = {
|
|
|
747
765
|
page: 1,
|
|
748
766
|
pagesize: 100
|
|
749
767
|
}
|
|
750
|
-
}),
|
|
768
|
+
}, {}),
|
|
751
769
|
/**
|
|
752
770
|
* get current account
|
|
753
771
|
*/
|
|
754
|
-
get: async () => await ae.
|
|
772
|
+
get: async () => await ae.get()("/account/get", {}, {}),
|
|
755
773
|
/**
|
|
756
774
|
* update current account
|
|
757
775
|
*/
|
|
@@ -760,7 +778,7 @@ const en = {
|
|
|
760
778
|
name: e.trim(),
|
|
761
779
|
email: t.trim()
|
|
762
780
|
};
|
|
763
|
-
return await ae.
|
|
781
|
+
return await ae.put()("/account/update", r, {});
|
|
764
782
|
},
|
|
765
783
|
/**
|
|
766
784
|
* change current account's password
|
|
@@ -770,23 +788,23 @@ const en = {
|
|
|
770
788
|
old_password: e.trim(),
|
|
771
789
|
new_password: t.trim()
|
|
772
790
|
};
|
|
773
|
-
return await ae.
|
|
791
|
+
return await ae.post()("/account/changepassword", r, {});
|
|
774
792
|
},
|
|
775
|
-
create: async (e, t, r, n) => await ae.
|
|
793
|
+
create: async (e, t, r, n) => await ae.post()("/account/create", {
|
|
776
794
|
name: e.trim(),
|
|
777
795
|
email: t.trim(),
|
|
778
796
|
password: r.trim(),
|
|
779
797
|
role_id: n
|
|
780
|
-
}),
|
|
781
|
-
edit: async (e) => (e.reset_password || (e.new_password = void 0), await ae.
|
|
798
|
+
}, {}),
|
|
799
|
+
edit: async (e) => (e.reset_password || (e.new_password = void 0), await ae.put()("/account/edit", e, {})),
|
|
782
800
|
delete: async (e) => {
|
|
783
801
|
if (e)
|
|
784
|
-
return ae.
|
|
802
|
+
return ae.post()("/account/delete", {
|
|
785
803
|
id: e
|
|
786
|
-
});
|
|
804
|
+
}, {});
|
|
787
805
|
}
|
|
788
806
|
}, tn = {
|
|
789
|
-
list: async () => await ae.
|
|
807
|
+
list: async () => await ae.post()("/api/key/list", {
|
|
790
808
|
filter: {
|
|
791
809
|
search: ""
|
|
792
810
|
},
|
|
@@ -798,19 +816,19 @@ const en = {
|
|
|
798
816
|
page: 1,
|
|
799
817
|
pagesize: 100
|
|
800
818
|
}
|
|
801
|
-
}),
|
|
802
|
-
create: async (e, t) => ae.
|
|
819
|
+
}, {}),
|
|
820
|
+
create: async (e, t) => ae.post()("/api/key/create", {
|
|
803
821
|
name: e,
|
|
804
822
|
role_id: t
|
|
805
|
-
}),
|
|
823
|
+
}, {}),
|
|
806
824
|
delete: async (e) => {
|
|
807
825
|
if (e)
|
|
808
|
-
return ae.
|
|
826
|
+
return ae.post()("/api/key/delete", {
|
|
809
827
|
id: e
|
|
810
|
-
});
|
|
828
|
+
}, {});
|
|
811
829
|
}
|
|
812
830
|
}, rn = {
|
|
813
|
-
list: async () => await ae.
|
|
831
|
+
list: async () => await ae.post()("/datasource/list", {
|
|
814
832
|
filter: {},
|
|
815
833
|
sort: [{
|
|
816
834
|
field: "create_time",
|
|
@@ -820,23 +838,23 @@ const en = {
|
|
|
820
838
|
page: 1,
|
|
821
839
|
pagesize: 100
|
|
822
840
|
}
|
|
823
|
-
}),
|
|
824
|
-
create: async (e, t, r) => await ae.
|
|
841
|
+
}, {}),
|
|
842
|
+
create: async (e, t, r) => await ae.post()("/datasource/create", {
|
|
825
843
|
type: e,
|
|
826
844
|
key: t,
|
|
827
845
|
config: r
|
|
828
|
-
}),
|
|
829
|
-
update: async (e, t) => await ae.
|
|
846
|
+
}, {}),
|
|
847
|
+
update: async (e, t) => await ae.put()("/datasource/update", {
|
|
830
848
|
id: e,
|
|
831
849
|
config: t
|
|
832
|
-
}),
|
|
850
|
+
}, {}),
|
|
833
851
|
delete: async (e) => {
|
|
834
|
-
await ae.
|
|
852
|
+
await ae.post()("/datasource/delete", {
|
|
835
853
|
id: e
|
|
836
|
-
});
|
|
854
|
+
}, {});
|
|
837
855
|
}
|
|
838
856
|
}, nn = {
|
|
839
|
-
list: async () => await ae.
|
|
857
|
+
list: async () => await ae.get()("/role/list", {}, {})
|
|
840
858
|
};
|
|
841
859
|
var mt = {}, an = {
|
|
842
860
|
get exports() {
|
|
@@ -849,21 +867,21 @@ var mt = {}, an = {
|
|
|
849
867
|
(function(e, t) {
|
|
850
868
|
(function(r, n) {
|
|
851
869
|
e.exports = n();
|
|
852
|
-
})(
|
|
870
|
+
})(qr, function() {
|
|
853
871
|
var r = 1e3, n = 6e4, s = 36e5, o = "millisecond", l = "second", p = "minute", d = "hour", f = "day", b = "week", u = "month", c = "quarter", g = "year", y = "date", h = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, A = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, k = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(R) {
|
|
854
872
|
var E = ["th", "st", "nd", "rd"], S = R % 100;
|
|
855
873
|
return "[" + R + (E[(S - 20) % 10] || E[S] || E[0]) + "]";
|
|
856
874
|
} }, $ = function(R, E, S) {
|
|
857
|
-
var
|
|
858
|
-
return !
|
|
875
|
+
var x = String(R);
|
|
876
|
+
return !x || x.length >= E ? R : "" + Array(E + 1 - x.length).join(S) + R;
|
|
859
877
|
}, M = { s: $, z: function(R) {
|
|
860
|
-
var E = -R.utcOffset(), S = Math.abs(E),
|
|
861
|
-
return (E <= 0 ? "+" : "-") + $(
|
|
878
|
+
var E = -R.utcOffset(), S = Math.abs(E), x = Math.floor(S / 60), w = S % 60;
|
|
879
|
+
return (E <= 0 ? "+" : "-") + $(x, 2, "0") + ":" + $(w, 2, "0");
|
|
862
880
|
}, m: function R(E, S) {
|
|
863
881
|
if (E.date() < S.date())
|
|
864
882
|
return -R(S, E);
|
|
865
|
-
var
|
|
866
|
-
return +(-(
|
|
883
|
+
var x = 12 * (S.year() - E.year()) + (S.month() - E.month()), w = E.clone().add(x, u), O = S - w < 0, I = E.clone().add(x + (O ? -1 : 1), u);
|
|
884
|
+
return +(-(x + (S - w) / (O ? w - I : I - w)) || 0);
|
|
867
885
|
}, a: function(R) {
|
|
868
886
|
return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
|
|
869
887
|
}, p: function(R) {
|
|
@@ -874,13 +892,13 @@ var mt = {}, an = {
|
|
|
874
892
|
X[te] = k;
|
|
875
893
|
var Y = function(R) {
|
|
876
894
|
return R instanceof B;
|
|
877
|
-
}, Z = function R(E, S,
|
|
895
|
+
}, Z = function R(E, S, x) {
|
|
878
896
|
var w;
|
|
879
897
|
if (!E)
|
|
880
898
|
return te;
|
|
881
899
|
if (typeof E == "string") {
|
|
882
|
-
var
|
|
883
|
-
X[
|
|
900
|
+
var O = E.toLowerCase();
|
|
901
|
+
X[O] && (w = O), S && (X[O] = S, w = O);
|
|
884
902
|
var I = E.split("-");
|
|
885
903
|
if (!w && I.length > 1)
|
|
886
904
|
return R(I[0]);
|
|
@@ -888,7 +906,7 @@ var mt = {}, an = {
|
|
|
888
906
|
var N = E.name;
|
|
889
907
|
X[N] = E, w = N;
|
|
890
908
|
}
|
|
891
|
-
return !
|
|
909
|
+
return !x && w && (te = w), w || !x && te;
|
|
892
910
|
}, F = function(R, E) {
|
|
893
911
|
if (Y(R))
|
|
894
912
|
return R.clone();
|
|
@@ -904,8 +922,8 @@ var mt = {}, an = {
|
|
|
904
922
|
}
|
|
905
923
|
var E = R.prototype;
|
|
906
924
|
return E.parse = function(S) {
|
|
907
|
-
this.$d = function(
|
|
908
|
-
var w =
|
|
925
|
+
this.$d = function(x) {
|
|
926
|
+
var w = x.date, O = x.utc;
|
|
909
927
|
if (w === null)
|
|
910
928
|
return /* @__PURE__ */ new Date(NaN);
|
|
911
929
|
if (L.u(w))
|
|
@@ -915,8 +933,8 @@ var mt = {}, an = {
|
|
|
915
933
|
if (typeof w == "string" && !/Z$/i.test(w)) {
|
|
916
934
|
var I = w.match(_);
|
|
917
935
|
if (I) {
|
|
918
|
-
var N = I[2] - 1 || 0,
|
|
919
|
-
return
|
|
936
|
+
var N = I[2] - 1 || 0, H = (I[7] || "0").substring(0, 3);
|
|
937
|
+
return O ? new Date(Date.UTC(I[1], N, I[3] || 1, I[4] || 0, I[5] || 0, I[6] || 0, H)) : new Date(I[1], N, I[3] || 1, I[4] || 0, I[5] || 0, I[6] || 0, H);
|
|
920
938
|
}
|
|
921
939
|
}
|
|
922
940
|
return new Date(w);
|
|
@@ -928,66 +946,66 @@ var mt = {}, an = {
|
|
|
928
946
|
return L;
|
|
929
947
|
}, E.isValid = function() {
|
|
930
948
|
return this.$d.toString() !== h;
|
|
931
|
-
}, E.isSame = function(S,
|
|
949
|
+
}, E.isSame = function(S, x) {
|
|
932
950
|
var w = F(S);
|
|
933
|
-
return this.startOf(
|
|
934
|
-
}, E.isAfter = function(S,
|
|
935
|
-
return F(S) < this.startOf(
|
|
936
|
-
}, E.isBefore = function(S,
|
|
937
|
-
return this.endOf(
|
|
938
|
-
}, E.$g = function(S,
|
|
939
|
-
return L.u(S) ? this[
|
|
951
|
+
return this.startOf(x) <= w && w <= this.endOf(x);
|
|
952
|
+
}, E.isAfter = function(S, x) {
|
|
953
|
+
return F(S) < this.startOf(x);
|
|
954
|
+
}, E.isBefore = function(S, x) {
|
|
955
|
+
return this.endOf(x) < F(S);
|
|
956
|
+
}, E.$g = function(S, x, w) {
|
|
957
|
+
return L.u(S) ? this[x] : this.set(w, S);
|
|
940
958
|
}, E.unix = function() {
|
|
941
959
|
return Math.floor(this.valueOf() / 1e3);
|
|
942
960
|
}, E.valueOf = function() {
|
|
943
961
|
return this.$d.getTime();
|
|
944
|
-
}, E.startOf = function(S,
|
|
945
|
-
var w = this,
|
|
962
|
+
}, E.startOf = function(S, x) {
|
|
963
|
+
var w = this, O = !!L.u(x) || x, I = L.p(S), N = function(fe, re) {
|
|
946
964
|
var de = L.w(w.$u ? Date.UTC(w.$y, re, fe) : new Date(w.$y, re, fe), w);
|
|
947
|
-
return
|
|
948
|
-
},
|
|
949
|
-
return L.w(w.toDate()[fe].apply(w.toDate("s"), (
|
|
950
|
-
}, j = this.$W,
|
|
965
|
+
return O ? de : de.endOf(f);
|
|
966
|
+
}, H = function(fe, re) {
|
|
967
|
+
return L.w(w.toDate()[fe].apply(w.toDate("s"), (O ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(re)), w);
|
|
968
|
+
}, j = this.$W, G = this.$M, le = this.$D, ce = "set" + (this.$u ? "UTC" : "");
|
|
951
969
|
switch (I) {
|
|
952
970
|
case g:
|
|
953
|
-
return
|
|
971
|
+
return O ? N(1, 0) : N(31, 11);
|
|
954
972
|
case u:
|
|
955
|
-
return
|
|
973
|
+
return O ? N(1, G) : N(0, G + 1);
|
|
956
974
|
case b:
|
|
957
975
|
var pe = this.$locale().weekStart || 0, ye = (j < pe ? j + 7 : j) - pe;
|
|
958
|
-
return N(
|
|
976
|
+
return N(O ? le - ye : le + (6 - ye), G);
|
|
959
977
|
case f:
|
|
960
978
|
case y:
|
|
961
|
-
return
|
|
979
|
+
return H(ce + "Hours", 0);
|
|
962
980
|
case d:
|
|
963
|
-
return
|
|
981
|
+
return H(ce + "Minutes", 1);
|
|
964
982
|
case p:
|
|
965
|
-
return
|
|
983
|
+
return H(ce + "Seconds", 2);
|
|
966
984
|
case l:
|
|
967
|
-
return
|
|
985
|
+
return H(ce + "Milliseconds", 3);
|
|
968
986
|
default:
|
|
969
987
|
return this.clone();
|
|
970
988
|
}
|
|
971
989
|
}, E.endOf = function(S) {
|
|
972
990
|
return this.startOf(S, !1);
|
|
973
|
-
}, E.$set = function(S,
|
|
974
|
-
var w,
|
|
975
|
-
if (
|
|
991
|
+
}, E.$set = function(S, x) {
|
|
992
|
+
var w, O = L.p(S), I = "set" + (this.$u ? "UTC" : ""), N = (w = {}, w[f] = I + "Date", w[y] = I + "Date", w[u] = I + "Month", w[g] = I + "FullYear", w[d] = I + "Hours", w[p] = I + "Minutes", w[l] = I + "Seconds", w[o] = I + "Milliseconds", w)[O], H = O === f ? this.$D + (x - this.$W) : x;
|
|
993
|
+
if (O === u || O === g) {
|
|
976
994
|
var j = this.clone().set(y, 1);
|
|
977
|
-
j.$d[N](
|
|
995
|
+
j.$d[N](H), j.init(), this.$d = j.set(y, Math.min(this.$D, j.daysInMonth())).$d;
|
|
978
996
|
} else
|
|
979
|
-
N && this.$d[N](
|
|
997
|
+
N && this.$d[N](H);
|
|
980
998
|
return this.init(), this;
|
|
981
|
-
}, E.set = function(S,
|
|
982
|
-
return this.clone().$set(S,
|
|
999
|
+
}, E.set = function(S, x) {
|
|
1000
|
+
return this.clone().$set(S, x);
|
|
983
1001
|
}, E.get = function(S) {
|
|
984
1002
|
return this[L.p(S)]();
|
|
985
|
-
}, E.add = function(S,
|
|
986
|
-
var w,
|
|
1003
|
+
}, E.add = function(S, x) {
|
|
1004
|
+
var w, O = this;
|
|
987
1005
|
S = Number(S);
|
|
988
|
-
var I = L.p(
|
|
989
|
-
var le = F(
|
|
990
|
-
return L.w(le.date(le.date() + Math.round(
|
|
1006
|
+
var I = L.p(x), N = function(G) {
|
|
1007
|
+
var le = F(O);
|
|
1008
|
+
return L.w(le.date(le.date() + Math.round(G * S)), O);
|
|
991
1009
|
};
|
|
992
1010
|
if (I === u)
|
|
993
1011
|
return this.set(u, this.$M + S);
|
|
@@ -997,39 +1015,39 @@ var mt = {}, an = {
|
|
|
997
1015
|
return N(1);
|
|
998
1016
|
if (I === b)
|
|
999
1017
|
return N(7);
|
|
1000
|
-
var
|
|
1018
|
+
var H = (w = {}, w[p] = n, w[d] = s, w[l] = r, w)[I] || 1, j = this.$d.getTime() + S * H;
|
|
1001
1019
|
return L.w(j, this);
|
|
1002
|
-
}, E.subtract = function(S,
|
|
1003
|
-
return this.add(-1 * S,
|
|
1020
|
+
}, E.subtract = function(S, x) {
|
|
1021
|
+
return this.add(-1 * S, x);
|
|
1004
1022
|
}, E.format = function(S) {
|
|
1005
|
-
var
|
|
1023
|
+
var x = this, w = this.$locale();
|
|
1006
1024
|
if (!this.isValid())
|
|
1007
1025
|
return w.invalidDate || h;
|
|
1008
|
-
var
|
|
1009
|
-
return re && (re[de] || re(
|
|
1026
|
+
var O = S || "YYYY-MM-DDTHH:mm:ssZ", I = L.z(this), N = this.$H, H = this.$m, j = this.$M, G = w.weekdays, le = w.months, ce = function(re, de, ve, Te) {
|
|
1027
|
+
return re && (re[de] || re(x, O)) || ve[de].slice(0, Te);
|
|
1010
1028
|
}, pe = function(re) {
|
|
1011
1029
|
return L.s(N % 12 || 12, re, "0");
|
|
1012
1030
|
}, ye = w.meridiem || function(re, de, ve) {
|
|
1013
1031
|
var Te = re < 12 ? "AM" : "PM";
|
|
1014
1032
|
return ve ? Te.toLowerCase() : Te;
|
|
1015
|
-
}, fe = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: j + 1, MM: L.s(j + 1, 2, "0"), MMM: ce(w.monthsShort, j, le, 3), MMMM: ce(le, j), D: this.$D, DD: L.s(this.$D, 2, "0"), d: String(this.$W), dd: ce(w.weekdaysMin, this.$W,
|
|
1016
|
-
return
|
|
1033
|
+
}, fe = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: j + 1, MM: L.s(j + 1, 2, "0"), MMM: ce(w.monthsShort, j, le, 3), MMMM: ce(le, j), D: this.$D, DD: L.s(this.$D, 2, "0"), d: String(this.$W), dd: ce(w.weekdaysMin, this.$W, G, 2), ddd: ce(w.weekdaysShort, this.$W, G, 3), dddd: G[this.$W], H: String(N), HH: L.s(N, 2, "0"), h: pe(1), hh: pe(2), a: ye(N, H, !0), A: ye(N, H, !1), m: String(H), mm: L.s(H, 2, "0"), s: String(this.$s), ss: L.s(this.$s, 2, "0"), SSS: L.s(this.$ms, 3, "0"), Z: I };
|
|
1034
|
+
return O.replace(A, function(re, de) {
|
|
1017
1035
|
return de || fe[re] || I.replace(":", "");
|
|
1018
1036
|
});
|
|
1019
1037
|
}, E.utcOffset = function() {
|
|
1020
1038
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1021
|
-
}, E.diff = function(S,
|
|
1022
|
-
var
|
|
1023
|
-
return
|
|
1039
|
+
}, E.diff = function(S, x, w) {
|
|
1040
|
+
var O, I = L.p(x), N = F(S), H = (N.utcOffset() - this.utcOffset()) * n, j = this - N, G = L.m(this, N);
|
|
1041
|
+
return G = (O = {}, O[g] = G / 12, O[u] = G, O[c] = G / 3, O[b] = (j - H) / 6048e5, O[f] = (j - H) / 864e5, O[d] = j / s, O[p] = j / n, O[l] = j / r, O)[I] || j, w ? G : L.a(G);
|
|
1024
1042
|
}, E.daysInMonth = function() {
|
|
1025
1043
|
return this.endOf(u).$D;
|
|
1026
1044
|
}, E.$locale = function() {
|
|
1027
1045
|
return X[this.$L];
|
|
1028
|
-
}, E.locale = function(S,
|
|
1046
|
+
}, E.locale = function(S, x) {
|
|
1029
1047
|
if (!S)
|
|
1030
1048
|
return this.$L;
|
|
1031
|
-
var w = this.clone(),
|
|
1032
|
-
return
|
|
1049
|
+
var w = this.clone(), O = Z(S, x, !0);
|
|
1050
|
+
return O && (w.$L = O), w;
|
|
1033
1051
|
}, E.clone = function() {
|
|
1034
1052
|
return L.w(this.$d, this);
|
|
1035
1053
|
}, E.toDate = function() {
|
|
@@ -1053,29 +1071,29 @@ var mt = {}, an = {
|
|
|
1053
1071
|
}, F.en = X[te], F.Ls = X, F.p = {}, F;
|
|
1054
1072
|
});
|
|
1055
1073
|
})(an);
|
|
1056
|
-
const
|
|
1074
|
+
const zt = mt, on = {
|
|
1057
1075
|
list: async ({
|
|
1058
1076
|
pagination: e
|
|
1059
1077
|
}, t) => {
|
|
1060
|
-
const r = await ae.
|
|
1078
|
+
const r = await ae.post(t)("/sql_snippet/list", {
|
|
1061
1079
|
sort: [{
|
|
1062
1080
|
field: "update_time",
|
|
1063
1081
|
order: "DESC"
|
|
1064
1082
|
}],
|
|
1065
1083
|
pagination: e
|
|
1066
|
-
});
|
|
1084
|
+
}, {});
|
|
1067
1085
|
return r.data.forEach((n) => {
|
|
1068
|
-
n.create_time =
|
|
1086
|
+
n.create_time = zt(n.create_time).format("YYYY-MM-DD HH:mm:ss"), n.update_time = zt(n.update_time).format("YYYY-MM-DD HH:mm:ss");
|
|
1069
1087
|
}), r;
|
|
1070
1088
|
},
|
|
1071
|
-
get: async (e, t) => await ae.
|
|
1089
|
+
get: async (e, t) => await ae.post(t)("/sql_snippet/get", {
|
|
1072
1090
|
id: e
|
|
1073
|
-
}),
|
|
1074
|
-
create: async (e, t) => await ae.
|
|
1075
|
-
update: async (e, t) => await ae.
|
|
1076
|
-
delete: async (e, t) => ae.
|
|
1091
|
+
}, {}),
|
|
1092
|
+
create: async (e, t) => await ae.post(t)("/sql_snippet/create", e, {}),
|
|
1093
|
+
update: async (e, t) => await ae.put(t)("/sql_snippet/update", e, {}),
|
|
1094
|
+
delete: async (e, t) => ae.post(t)("/sql_snippet/delete", {
|
|
1077
1095
|
id: e
|
|
1078
|
-
})
|
|
1096
|
+
}, {})
|
|
1079
1097
|
}, oe = {
|
|
1080
1098
|
datasource: rn,
|
|
1081
1099
|
account: en,
|
|
@@ -1114,17 +1132,17 @@ function sn({
|
|
|
1114
1132
|
return yt(() => {
|
|
1115
1133
|
s("type", r);
|
|
1116
1134
|
}, [s, r]), /* @__PURE__ */ a(se, { mx: "auto", children: /* @__PURE__ */ C("form", { onSubmit: o(e), children: [
|
|
1117
|
-
/* @__PURE__ */ a(
|
|
1135
|
+
/* @__PURE__ */ a(q, { name: "key", control: n, render: ({
|
|
1118
1136
|
field: l
|
|
1119
1137
|
}) => /* @__PURE__ */ a(ue, { mb: t.spacing, size: t.size, required: !0, label: "Name", placeholder: "A unique name", ...l }) }),
|
|
1120
1138
|
/* @__PURE__ */ a(et, { label: "Connection Info", labelPosition: "center" }),
|
|
1121
1139
|
/* @__PURE__ */ C(Q, { grow: !0, children: [
|
|
1122
|
-
/* @__PURE__ */ a(
|
|
1140
|
+
/* @__PURE__ */ a(q, { name: "config.host", control: n, render: ({
|
|
1123
1141
|
field: l
|
|
1124
1142
|
}) => /* @__PURE__ */ a(ue, { mb: t.spacing, size: t.size, required: !0, label: "Host", sx: {
|
|
1125
1143
|
flexGrow: 1
|
|
1126
1144
|
}, ...l }) }),
|
|
1127
|
-
/* @__PURE__ */ a(
|
|
1145
|
+
/* @__PURE__ */ a(q, { name: "config.port", control: n, render: ({
|
|
1128
1146
|
field: l
|
|
1129
1147
|
}) => (
|
|
1130
1148
|
// @ts-expect-error type of onChange
|
|
@@ -1133,13 +1151,13 @@ function sn({
|
|
|
1133
1151
|
}, ...l })
|
|
1134
1152
|
) })
|
|
1135
1153
|
] }),
|
|
1136
|
-
/* @__PURE__ */ a(
|
|
1154
|
+
/* @__PURE__ */ a(q, { name: "config.username", control: n, render: ({
|
|
1137
1155
|
field: l
|
|
1138
1156
|
}) => /* @__PURE__ */ a(ue, { mb: t.spacing, size: t.size, required: !0, label: "Username", ...l }) }),
|
|
1139
|
-
/* @__PURE__ */ a(
|
|
1157
|
+
/* @__PURE__ */ a(q, { name: "config.password", control: n, render: ({
|
|
1140
1158
|
field: l
|
|
1141
1159
|
}) => /* @__PURE__ */ a(tt, { mb: t.spacing, size: t.size, required: !0, label: "Password", ...l }) }),
|
|
1142
|
-
/* @__PURE__ */ a(
|
|
1160
|
+
/* @__PURE__ */ a(q, { name: "config.database", control: n, render: ({
|
|
1143
1161
|
field: l
|
|
1144
1162
|
}) => /* @__PURE__ */ a(ue, { mb: t.spacing, size: t.size, required: !0, label: "Database", ...l }) }),
|
|
1145
1163
|
/* @__PURE__ */ a(Q, { position: "right", mt: t.spacing, children: /* @__PURE__ */ a(V, { type: "submit", size: t.button.size, children: "Save" }) })
|
|
@@ -1167,7 +1185,7 @@ const ln = ({
|
|
|
1167
1185
|
const [p, {
|
|
1168
1186
|
setTrue: d,
|
|
1169
1187
|
setFalse: f
|
|
1170
|
-
}] =
|
|
1188
|
+
}] = Pr(), [b, u] = Ht(e), c = () => {
|
|
1171
1189
|
f(), t(b);
|
|
1172
1190
|
}, g = () => {
|
|
1173
1191
|
f(), u(e);
|
|
@@ -1219,20 +1237,20 @@ function un({
|
|
|
1219
1237
|
}
|
|
1220
1238
|
});
|
|
1221
1239
|
return /* @__PURE__ */ a(se, { mx: "auto", children: /* @__PURE__ */ C("form", { onSubmit: s(e), children: [
|
|
1222
|
-
/* @__PURE__ */ a(
|
|
1240
|
+
/* @__PURE__ */ a(q, { name: "key", control: r, render: ({
|
|
1223
1241
|
field: o
|
|
1224
1242
|
}) => /* @__PURE__ */ a(ue, { mb: t.spacing, size: t.size, required: !0, label: "Name", placeholder: "A unique name", ...o }) }),
|
|
1225
1243
|
/* @__PURE__ */ a(et, { label: "Connection Info", labelPosition: "center" }),
|
|
1226
|
-
/* @__PURE__ */ a(
|
|
1244
|
+
/* @__PURE__ */ a(q, { name: "config.host", control: r, render: ({
|
|
1227
1245
|
field: o
|
|
1228
|
-
}) => /* @__PURE__ */ a(ue, { mb: t.spacing, size: t.size,
|
|
1246
|
+
}) => /* @__PURE__ */ a(ue, { mb: t.spacing, size: t.size, label: "Base URL", sx: {
|
|
1229
1247
|
flexGrow: 1
|
|
1230
1248
|
}, ...o }) }),
|
|
1231
1249
|
/* @__PURE__ */ C(Q, { grow: !0, children: [
|
|
1232
|
-
/* @__PURE__ */ a(
|
|
1250
|
+
/* @__PURE__ */ a(q, { name: "config.processing.pre", control: r, render: ({
|
|
1233
1251
|
field: o
|
|
1234
1252
|
}) => /* @__PURE__ */ a(Ze, { label: "Pre Processing", modalTitle: "This function will run before sending the request (for scenarios like encryption)", defaultValue: We.pre, ...o, styles: t }) }),
|
|
1235
|
-
/* @__PURE__ */ a(
|
|
1253
|
+
/* @__PURE__ */ a(q, { name: "config.processing.post", control: r, render: ({
|
|
1236
1254
|
field: o
|
|
1237
1255
|
}) => /* @__PURE__ */ a(Ze, { label: "Post Processing", modalTitle: "This function will run after sending the request (for scenarios like decryption)", defaultValue: We.post, ...o, styles: t }) })
|
|
1238
1256
|
] }),
|
|
@@ -1252,7 +1270,7 @@ function dn({
|
|
|
1252
1270
|
postSubmit: e,
|
|
1253
1271
|
styles: t = Se
|
|
1254
1272
|
}) {
|
|
1255
|
-
const [r, n] =
|
|
1273
|
+
const [r, n] = Ht("postgresql"), s = async ({
|
|
1256
1274
|
type: p,
|
|
1257
1275
|
key: d,
|
|
1258
1276
|
config: f
|
|
@@ -1284,7 +1302,7 @@ function dn({
|
|
|
1284
1302
|
}
|
|
1285
1303
|
}, o = r === "postgresql" || r === "mysql", l = r === "http";
|
|
1286
1304
|
return /* @__PURE__ */ C(se, { mx: "auto", children: [
|
|
1287
|
-
/* @__PURE__ */ a(
|
|
1305
|
+
/* @__PURE__ */ a(xr, { fullWidth: !0, mb: t.spacing, size: t.size, data: [{
|
|
1288
1306
|
label: "PostgreSQL",
|
|
1289
1307
|
value: "postgresql"
|
|
1290
1308
|
}, {
|
|
@@ -1334,7 +1352,7 @@ function hn({
|
|
|
1334
1352
|
onSuccess: n,
|
|
1335
1353
|
styles: s = Se
|
|
1336
1354
|
}) {
|
|
1337
|
-
const o =
|
|
1355
|
+
const o = Ge(), l = async () => {
|
|
1338
1356
|
e && (be({
|
|
1339
1357
|
id: "for-deleting",
|
|
1340
1358
|
title: "Pending",
|
|
@@ -1364,7 +1382,7 @@ function hn({
|
|
|
1364
1382
|
transform: "none !important"
|
|
1365
1383
|
}, children: "Delete" }) }) : /* @__PURE__ */ a(V, { size: s.button.size, color: "red", onClick: p, leftIcon: /* @__PURE__ */ a(ot, { size: 16 }), children: "Delete" });
|
|
1366
1384
|
}
|
|
1367
|
-
const
|
|
1385
|
+
const Pt = {
|
|
1368
1386
|
pre: ["function pre_process({ method, url, params, headers, data }, utils) {", " // your code goes here", " return { method, url, params, headers, data }", "}"].join(`
|
|
1369
1387
|
`),
|
|
1370
1388
|
post: ["function post_process(res, utils) {", " // your code goes here", " return data", "}"].join(`
|
|
@@ -1387,18 +1405,18 @@ function mn({
|
|
|
1387
1405
|
return /* @__PURE__ */ a(se, { mx: "auto", children: /* @__PURE__ */ C("form", { onSubmit: o(r), children: [
|
|
1388
1406
|
/* @__PURE__ */ a(ue, { mb: n.spacing, size: n.size, required: !0, label: "Name", value: e, readOnly: !0 }),
|
|
1389
1407
|
/* @__PURE__ */ a(et, { label: "Connection Info", labelPosition: "center" }),
|
|
1390
|
-
/* @__PURE__ */ a(
|
|
1408
|
+
/* @__PURE__ */ a(q, { name: "config.host", control: s, render: ({
|
|
1391
1409
|
field: l
|
|
1392
1410
|
}) => /* @__PURE__ */ a(ue, { mb: n.spacing, size: n.size, label: "Base URL", sx: {
|
|
1393
1411
|
flexGrow: 1
|
|
1394
1412
|
}, ...l }) }),
|
|
1395
1413
|
/* @__PURE__ */ C(Q, { grow: !0, children: [
|
|
1396
|
-
/* @__PURE__ */ a(
|
|
1414
|
+
/* @__PURE__ */ a(q, { name: "config.processing.pre", control: s, render: ({
|
|
1397
1415
|
field: l
|
|
1398
|
-
}) => /* @__PURE__ */ a(Ze, { label: "Pre Processing", modalTitle: "This function will run before sending the request (for scenarios like encryption)", defaultValue:
|
|
1399
|
-
/* @__PURE__ */ a(
|
|
1416
|
+
}) => /* @__PURE__ */ a(Ze, { label: "Pre Processing", modalTitle: "This function will run before sending the request (for scenarios like encryption)", defaultValue: Pt.pre, ...l, styles: n }) }),
|
|
1417
|
+
/* @__PURE__ */ a(q, { name: "config.processing.post", control: s, render: ({
|
|
1400
1418
|
field: l
|
|
1401
|
-
}) => /* @__PURE__ */ a(Ze, { label: "Post Processing", modalTitle: "This function will run after sending the request (for scenarios like decryption)", defaultValue:
|
|
1419
|
+
}) => /* @__PURE__ */ a(Ze, { label: "Post Processing", modalTitle: "This function will run after sending the request (for scenarios like decryption)", defaultValue: Pt.post, ...l, styles: n }) })
|
|
1402
1420
|
] }),
|
|
1403
1421
|
/* @__PURE__ */ a(Q, { position: "right", mt: n.spacing, children: /* @__PURE__ */ a(V, { type: "submit", size: n.button.size, children: "Save" }) })
|
|
1404
1422
|
] }) });
|
|
@@ -1471,7 +1489,7 @@ const vn = {
|
|
|
1471
1489
|
}, Sn = {
|
|
1472
1490
|
http: /* @__PURE__ */ a(Br, {}),
|
|
1473
1491
|
mysql: /* @__PURE__ */ a(jr, {}),
|
|
1474
|
-
postgresql: /* @__PURE__ */ a(
|
|
1492
|
+
postgresql: /* @__PURE__ */ a(Gr, {})
|
|
1475
1493
|
};
|
|
1476
1494
|
function wn({
|
|
1477
1495
|
type: e
|
|
@@ -1490,12 +1508,12 @@ function Ea({
|
|
|
1490
1508
|
styles: e = Se,
|
|
1491
1509
|
config: t
|
|
1492
1510
|
}) {
|
|
1493
|
-
fn(t.monacoPath),
|
|
1511
|
+
fn(t.monacoPath), Ue(t);
|
|
1494
1512
|
const {
|
|
1495
1513
|
data: r = [],
|
|
1496
1514
|
loading: n,
|
|
1497
1515
|
refresh: s
|
|
1498
|
-
} =
|
|
1516
|
+
} = xe(async () => {
|
|
1499
1517
|
const {
|
|
1500
1518
|
data: o
|
|
1501
1519
|
} = await oe.datasource.list();
|
|
@@ -1551,7 +1569,7 @@ const En = Je(({
|
|
|
1551
1569
|
const {
|
|
1552
1570
|
data: s = [],
|
|
1553
1571
|
loading: o
|
|
1554
|
-
} =
|
|
1572
|
+
} = xe(async () => (await oe.role.list()).map((p) => ({
|
|
1555
1573
|
label: p.id,
|
|
1556
1574
|
value: p.id,
|
|
1557
1575
|
description: p.description,
|
|
@@ -1559,7 +1577,7 @@ const En = Je(({
|
|
|
1559
1577
|
})), {
|
|
1560
1578
|
refreshDeps: []
|
|
1561
1579
|
});
|
|
1562
|
-
return /* @__PURE__ */ a(
|
|
1580
|
+
return /* @__PURE__ */ a(Or, { ref: n, mb: e.spacing, size: e.size, required: !0, label: "Role", itemComponent: En, data: s, disabled: o, styles: () => ({
|
|
1563
1581
|
item: {
|
|
1564
1582
|
"&[data-selected]": {
|
|
1565
1583
|
"&, &:hover": {
|
|
@@ -1620,16 +1638,16 @@ function _n({
|
|
|
1620
1638
|
});
|
|
1621
1639
|
}
|
|
1622
1640
|
}), children: [
|
|
1623
|
-
/* @__PURE__ */ a(
|
|
1641
|
+
/* @__PURE__ */ a(q, { name: "name", control: n, render: ({
|
|
1624
1642
|
field: l
|
|
1625
1643
|
}) => /* @__PURE__ */ a(ue, { mb: t.spacing, size: t.size, required: !0, label: "Username", ...l }) }),
|
|
1626
|
-
/* @__PURE__ */ a(
|
|
1644
|
+
/* @__PURE__ */ a(q, { name: "email", control: n, render: ({
|
|
1627
1645
|
field: l
|
|
1628
1646
|
}) => /* @__PURE__ */ a(ue, { mb: t.spacing, size: t.size, required: !0, label: "Email", ...l }) }),
|
|
1629
|
-
/* @__PURE__ */ a(
|
|
1647
|
+
/* @__PURE__ */ a(q, { name: "password", control: n, render: ({
|
|
1630
1648
|
field: l
|
|
1631
1649
|
}) => /* @__PURE__ */ a(tt, { mb: t.spacing, size: t.size, required: !0, label: "Password", description: "Password must be at least 8 characters long", ...l }) }),
|
|
1632
|
-
/* @__PURE__ */ a(
|
|
1650
|
+
/* @__PURE__ */ a(q, { name: "role_id", control: n, render: ({
|
|
1633
1651
|
field: l
|
|
1634
1652
|
}) => /* @__PURE__ */ a(St, { styles: t, ...l }) }),
|
|
1635
1653
|
/* @__PURE__ */ a(Q, { position: "right", mt: t.spacing, children: /* @__PURE__ */ a(V, { type: "submit", size: t.button.size, children: "Save" }) })
|
|
@@ -1656,7 +1674,7 @@ function kn({
|
|
|
1656
1674
|
onSuccess: r,
|
|
1657
1675
|
styles: n = ke
|
|
1658
1676
|
}) {
|
|
1659
|
-
const s =
|
|
1677
|
+
const s = Ge(), o = async () => {
|
|
1660
1678
|
if (e) {
|
|
1661
1679
|
be({
|
|
1662
1680
|
id: "for-deleting",
|
|
@@ -1747,17 +1765,17 @@ function Tn({
|
|
|
1747
1765
|
}
|
|
1748
1766
|
}, [b, u] = d(["reset_password", "new_password"]);
|
|
1749
1767
|
return /* @__PURE__ */ a(se, { mx: "auto", mb: 10, children: /* @__PURE__ */ C("form", { onSubmit: p(f), children: [
|
|
1750
|
-
/* @__PURE__ */ a(
|
|
1768
|
+
/* @__PURE__ */ a(q, { name: "name", control: l, render: ({
|
|
1751
1769
|
field: c
|
|
1752
1770
|
}) => /* @__PURE__ */ a(ue, { mb: o.spacing, size: o.size, required: !0, label: "Username", ...c }) }),
|
|
1753
|
-
/* @__PURE__ */ a(
|
|
1771
|
+
/* @__PURE__ */ a(q, { name: "email", control: l, render: ({
|
|
1754
1772
|
field: c
|
|
1755
1773
|
}) => /* @__PURE__ */ a(ue, { mb: o.spacing, size: o.size, required: !0, label: "Email", ...c }) }),
|
|
1756
|
-
/* @__PURE__ */ a(
|
|
1774
|
+
/* @__PURE__ */ a(q, { name: "role_id", control: l, render: ({
|
|
1757
1775
|
field: c
|
|
1758
1776
|
}) => /* @__PURE__ */ a(St, { styles: o, ...c }) }),
|
|
1759
1777
|
/* @__PURE__ */ a(et, { my: 20, variant: "dashed", label: "", labelPosition: "center" }),
|
|
1760
|
-
/* @__PURE__ */ a(
|
|
1778
|
+
/* @__PURE__ */ a(q, { name: "reset_password", control: l, render: ({
|
|
1761
1779
|
field: c
|
|
1762
1780
|
}) => /* @__PURE__ */ a(Cr, { mb: o.spacing, size: o.size, label: "Reset password", checked: c.value, onChange: (g) => c.onChange(g.currentTarget.checked), styles: {
|
|
1763
1781
|
label: {
|
|
@@ -1765,7 +1783,7 @@ function Tn({
|
|
|
1765
1783
|
}
|
|
1766
1784
|
} }) }),
|
|
1767
1785
|
b && /* @__PURE__ */ a(
|
|
1768
|
-
|
|
1786
|
+
q,
|
|
1769
1787
|
{
|
|
1770
1788
|
name: "new_password",
|
|
1771
1789
|
control: l,
|
|
@@ -1797,12 +1815,12 @@ function _a({
|
|
|
1797
1815
|
config: t
|
|
1798
1816
|
}) {
|
|
1799
1817
|
var p;
|
|
1800
|
-
|
|
1818
|
+
Ue(t);
|
|
1801
1819
|
const {
|
|
1802
1820
|
data: r = [],
|
|
1803
1821
|
loading: n,
|
|
1804
1822
|
refresh: s
|
|
1805
|
-
} =
|
|
1823
|
+
} = xe(async () => {
|
|
1806
1824
|
const {
|
|
1807
1825
|
data: d
|
|
1808
1826
|
} = await oe.account.list();
|
|
@@ -1812,7 +1830,7 @@ function _a({
|
|
|
1812
1830
|
}), {
|
|
1813
1831
|
data: o = [],
|
|
1814
1832
|
loading: l
|
|
1815
|
-
} =
|
|
1833
|
+
} = xe(async () => (await oe.role.list()).map((f) => ({
|
|
1816
1834
|
label: f.id,
|
|
1817
1835
|
value: f.id,
|
|
1818
1836
|
description: f.description,
|
|
@@ -1854,7 +1872,7 @@ function _a({
|
|
|
1854
1872
|
] })
|
|
1855
1873
|
] });
|
|
1856
1874
|
}
|
|
1857
|
-
function
|
|
1875
|
+
function xn({
|
|
1858
1876
|
postSubmit: e,
|
|
1859
1877
|
styles: t = ke
|
|
1860
1878
|
}) {
|
|
@@ -1894,10 +1912,10 @@ function On({
|
|
|
1894
1912
|
});
|
|
1895
1913
|
}
|
|
1896
1914
|
}), children: [
|
|
1897
|
-
/* @__PURE__ */ a(
|
|
1915
|
+
/* @__PURE__ */ a(q, { name: "name", control: r, render: ({
|
|
1898
1916
|
field: o
|
|
1899
1917
|
}) => /* @__PURE__ */ a(ue, { mb: t.spacing, size: t.size, required: !0, label: "Username", ...o }) }),
|
|
1900
|
-
/* @__PURE__ */ a(
|
|
1918
|
+
/* @__PURE__ */ a(q, { name: "password", control: r, render: ({
|
|
1901
1919
|
field: o
|
|
1902
1920
|
}) => /* @__PURE__ */ a(tt, { mb: t.spacing, size: t.size, required: !0, label: "Password", ...o }) }),
|
|
1903
1921
|
/* @__PURE__ */ a(Q, { position: "right", mt: t.spacing, children: /* @__PURE__ */ a(V, { type: "submit", size: t.button.size, children: "Submit" }) })
|
|
@@ -1908,9 +1926,9 @@ function Aa({
|
|
|
1908
1926
|
config: t,
|
|
1909
1927
|
onSuccess: r
|
|
1910
1928
|
}) {
|
|
1911
|
-
return
|
|
1929
|
+
return Ue(t), /* @__PURE__ */ a(he, { children: /* @__PURE__ */ a(se, { mt: e.spacing, sx: {
|
|
1912
1930
|
position: "relative"
|
|
1913
|
-
}, children: /* @__PURE__ */ a(
|
|
1931
|
+
}, children: /* @__PURE__ */ a(xn, { styles: e, postSubmit: r }) }) });
|
|
1914
1932
|
}
|
|
1915
1933
|
const st = {
|
|
1916
1934
|
size: "sm",
|
|
@@ -1919,7 +1937,7 @@ const st = {
|
|
|
1919
1937
|
size: "xs"
|
|
1920
1938
|
}
|
|
1921
1939
|
};
|
|
1922
|
-
function
|
|
1940
|
+
function On({
|
|
1923
1941
|
postSubmit: e,
|
|
1924
1942
|
styles: t = st,
|
|
1925
1943
|
initialRoleID: r
|
|
@@ -1963,10 +1981,10 @@ function xn({
|
|
|
1963
1981
|
});
|
|
1964
1982
|
}
|
|
1965
1983
|
}), children: [
|
|
1966
|
-
/* @__PURE__ */ a(
|
|
1984
|
+
/* @__PURE__ */ a(q, { name: "name", control: n, render: ({
|
|
1967
1985
|
field: l
|
|
1968
1986
|
}) => /* @__PURE__ */ a(ue, { mb: t.spacing, size: t.size, required: !0, label: "Name", ...l }) }),
|
|
1969
|
-
/* @__PURE__ */ a(
|
|
1987
|
+
/* @__PURE__ */ a(q, { name: "role_id", control: n, render: ({
|
|
1970
1988
|
field: l
|
|
1971
1989
|
}) => /* @__PURE__ */ a(St, { styles: t, ...l }) }),
|
|
1972
1990
|
/* @__PURE__ */ a(Q, { position: "right", mt: t.spacing, children: /* @__PURE__ */ a(V, { type: "submit", size: t.button.size, children: "Save" }) })
|
|
@@ -1977,11 +1995,11 @@ function Cn({
|
|
|
1977
1995
|
styles: t = st,
|
|
1978
1996
|
initialRoleID: r
|
|
1979
1997
|
}) {
|
|
1980
|
-
const n =
|
|
1998
|
+
const n = Ge(), [s, o] = K.useState(!1), l = () => o(!0), p = () => o(!1);
|
|
1981
1999
|
return /* @__PURE__ */ C(he, { children: [
|
|
1982
2000
|
/* @__PURE__ */ a(Ae, { opened: s, onClose: () => o(!1), title: "Add an API Key", trapFocus: !0, onDragStart: (f) => {
|
|
1983
2001
|
f.stopPropagation();
|
|
1984
|
-
}, children: /* @__PURE__ */ a(
|
|
2002
|
+
}, children: /* @__PURE__ */ a(On, { postSubmit: (f, b) => {
|
|
1985
2003
|
p(), n.openModal({
|
|
1986
2004
|
title: "API Key is generated",
|
|
1987
2005
|
children: /* @__PURE__ */ C(je, { children: [
|
|
@@ -2014,7 +2032,7 @@ function In({
|
|
|
2014
2032
|
onSuccess: r,
|
|
2015
2033
|
styles: n = st
|
|
2016
2034
|
}) {
|
|
2017
|
-
const s =
|
|
2035
|
+
const s = Ge(), o = async () => {
|
|
2018
2036
|
if (e) {
|
|
2019
2037
|
be({
|
|
2020
2038
|
id: "for-deleting",
|
|
@@ -2054,12 +2072,12 @@ function ka({
|
|
|
2054
2072
|
config: t
|
|
2055
2073
|
}) {
|
|
2056
2074
|
var p;
|
|
2057
|
-
|
|
2075
|
+
Ue(t);
|
|
2058
2076
|
const {
|
|
2059
2077
|
data: r = [],
|
|
2060
2078
|
loading: n,
|
|
2061
2079
|
refresh: s
|
|
2062
|
-
} =
|
|
2080
|
+
} = xe(async () => {
|
|
2063
2081
|
const {
|
|
2064
2082
|
data: d
|
|
2065
2083
|
} = await oe.api_key.list();
|
|
@@ -2069,7 +2087,7 @@ function ka({
|
|
|
2069
2087
|
}), {
|
|
2070
2088
|
data: o = [],
|
|
2071
2089
|
loading: l
|
|
2072
|
-
} =
|
|
2090
|
+
} = xe(async () => (await oe.role.list()).map((f) => ({
|
|
2073
2091
|
label: f.id,
|
|
2074
2092
|
value: f.id,
|
|
2075
2093
|
description: f.description,
|
|
@@ -2170,10 +2188,10 @@ function Dn({
|
|
|
2170
2188
|
});
|
|
2171
2189
|
}
|
|
2172
2190
|
}), children: [
|
|
2173
|
-
/* @__PURE__ */ a(
|
|
2191
|
+
/* @__PURE__ */ a(q, { name: "id", control: r, render: ({
|
|
2174
2192
|
field: o
|
|
2175
2193
|
}) => /* @__PURE__ */ a(ue, { mb: t.spacing, size: t.size, required: !0, label: "Name", ...o }) }),
|
|
2176
|
-
/* @__PURE__ */ a(
|
|
2194
|
+
/* @__PURE__ */ a(q, { name: "content", control: r, render: ({
|
|
2177
2195
|
field: o
|
|
2178
2196
|
}) => /* @__PURE__ */ C(je, { spacing: 4, children: [
|
|
2179
2197
|
/* @__PURE__ */ a(Re, { size: 14, fw: 500, color: "#212529", sx: {
|
|
@@ -2235,10 +2253,10 @@ function Fn({
|
|
|
2235
2253
|
});
|
|
2236
2254
|
}
|
|
2237
2255
|
}), children: [
|
|
2238
|
-
/* @__PURE__ */ a(
|
|
2256
|
+
/* @__PURE__ */ a(q, { name: "id", control: s, render: ({
|
|
2239
2257
|
field: p
|
|
2240
2258
|
}) => /* @__PURE__ */ a(ue, { mb: t.spacing, size: t.size, required: !0, label: "Name", ...p }) }),
|
|
2241
|
-
/* @__PURE__ */ a(
|
|
2259
|
+
/* @__PURE__ */ a(q, { name: "content", control: s, render: ({
|
|
2242
2260
|
field: p
|
|
2243
2261
|
}) => /* @__PURE__ */ C(je, { spacing: 4, children: [
|
|
2244
2262
|
/* @__PURE__ */ a(Re, { size: 14, fw: 500, color: "#212529", sx: {
|
|
@@ -2722,25 +2740,25 @@ var bt = function() {
|
|
|
2722
2740
|
if (Y) {
|
|
2723
2741
|
if (S = o(L, ee, u, X), !S || S.index >= u.length)
|
|
2724
2742
|
break;
|
|
2725
|
-
var I = S.index,
|
|
2743
|
+
var I = S.index, x = S.index + S[0].length, w = ee;
|
|
2726
2744
|
for (w += B.value.length; I >= w; )
|
|
2727
2745
|
B = B.next, w += B.value.length;
|
|
2728
2746
|
if (w -= B.value.length, ee = w, B.value instanceof s)
|
|
2729
2747
|
continue;
|
|
2730
|
-
for (var
|
|
2731
|
-
E++, w +=
|
|
2748
|
+
for (var O = B; O !== c.tail && (w < x || typeof O.value == "string"); O = O.next)
|
|
2749
|
+
E++, w += O.value.length;
|
|
2732
2750
|
E--, R = u.slice(ee, w), S.index -= ee;
|
|
2733
2751
|
} else if (S = o(L, 0, R, X), !S)
|
|
2734
2752
|
continue;
|
|
2735
|
-
var I = S.index, N = S[0],
|
|
2736
|
-
_ &&
|
|
2753
|
+
var I = S.index, N = S[0], H = R.slice(0, I), j = R.slice(I + N.length), G = ee + R.length;
|
|
2754
|
+
_ && G > _.reach && (_.reach = G);
|
|
2737
2755
|
var le = B.prev;
|
|
2738
|
-
|
|
2756
|
+
H && (le = d(c, le, H), ee += H.length), f(c, le, E);
|
|
2739
2757
|
var ce = new s(A, te ? n.tokenize(N, te) : N, Z, N);
|
|
2740
2758
|
if (B = d(c, le, ce), j && d(c, B, j), E > 1) {
|
|
2741
2759
|
var pe = {
|
|
2742
2760
|
cause: A + "," + $,
|
|
2743
|
-
reach:
|
|
2761
|
+
reach: G
|
|
2744
2762
|
};
|
|
2745
2763
|
l(u, c, g, B.prev, ee, pe), _ && pe.reach > _.reach && (_.reach = pe.reach);
|
|
2746
2764
|
}
|
|
@@ -4240,16 +4258,16 @@ m.languages.sql = {
|
|
|
4240
4258
|
), ee = B.indexOf(L);
|
|
4241
4259
|
if (ee !== -1) {
|
|
4242
4260
|
++A;
|
|
4243
|
-
var R = B.substring(0, ee), E = f(k[L]), S = B.substring(ee + L.length),
|
|
4244
|
-
if (R &&
|
|
4261
|
+
var R = B.substring(0, ee), E = f(k[L]), S = B.substring(ee + L.length), x = [];
|
|
4262
|
+
if (R && x.push(R), x.push(E), S) {
|
|
4245
4263
|
var w = [S];
|
|
4246
|
-
X(w),
|
|
4264
|
+
X(w), x.push.apply(x, w);
|
|
4247
4265
|
}
|
|
4248
|
-
typeof F == "string" ? (Y.splice.apply(Y, [Z, 1].concat(
|
|
4266
|
+
typeof F == "string" ? (Y.splice.apply(Y, [Z, 1].concat(x)), Z += x.length - 1) : F.content = x;
|
|
4249
4267
|
}
|
|
4250
4268
|
} else {
|
|
4251
|
-
var
|
|
4252
|
-
Array.isArray(
|
|
4269
|
+
var O = F.content;
|
|
4270
|
+
Array.isArray(O) ? X(O) : X([O]);
|
|
4253
4271
|
}
|
|
4254
4272
|
}
|
|
4255
4273
|
}
|
|
@@ -5238,7 +5256,7 @@ m.languages.wasm = {
|
|
|
5238
5256
|
punctuation: /[()]/
|
|
5239
5257
|
};
|
|
5240
5258
|
const $n = m;
|
|
5241
|
-
var
|
|
5259
|
+
var zn = {
|
|
5242
5260
|
plain: {
|
|
5243
5261
|
backgroundColor: "#2a2734",
|
|
5244
5262
|
color: "#9a86fd"
|
|
@@ -5305,11 +5323,11 @@ var Pn = {
|
|
|
5305
5323
|
}
|
|
5306
5324
|
}]
|
|
5307
5325
|
};
|
|
5308
|
-
const
|
|
5326
|
+
const Pn = zn;
|
|
5309
5327
|
var Mn = {
|
|
5310
5328
|
// $FlowFixMe
|
|
5311
5329
|
Prism: $n,
|
|
5312
|
-
theme:
|
|
5330
|
+
theme: Pn
|
|
5313
5331
|
};
|
|
5314
5332
|
function $e(e, t, r) {
|
|
5315
5333
|
return t in e ? Object.defineProperty(e, t, {
|
|
@@ -5362,7 +5380,7 @@ var Bn = /\r\n|\r|\n/, Mt = function(e) {
|
|
|
5362
5380
|
l--, t.pop(), r.pop(), n.pop(), s.pop();
|
|
5363
5381
|
}
|
|
5364
5382
|
return Mt(p), d;
|
|
5365
|
-
},
|
|
5383
|
+
}, Gn = function(e, t) {
|
|
5366
5384
|
var r = e.plain, n = /* @__PURE__ */ Object.create(null), s = e.styles.reduce(function(o, l) {
|
|
5367
5385
|
var p = l.languages, d = l.style;
|
|
5368
5386
|
return p && !p.includes(t) || l.types.forEach(function(f) {
|
|
@@ -5380,7 +5398,7 @@ function jt(e, t) {
|
|
|
5380
5398
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) === -1 && (r[n] = e[n]);
|
|
5381
5399
|
return r;
|
|
5382
5400
|
}
|
|
5383
|
-
var
|
|
5401
|
+
var Un = /* @__PURE__ */ function(e) {
|
|
5384
5402
|
function t() {
|
|
5385
5403
|
for (var r = this, n = [], s = arguments.length; s--; )
|
|
5386
5404
|
n[s] = arguments[s];
|
|
@@ -5388,7 +5406,7 @@ var Gn = /* @__PURE__ */ function(e) {
|
|
|
5388
5406
|
if (r.themeDict !== void 0 && o.theme === r.prevTheme && o.language === r.prevLanguage)
|
|
5389
5407
|
return r.themeDict;
|
|
5390
5408
|
r.prevTheme = o.theme, r.prevLanguage = o.language;
|
|
5391
|
-
var l = o.theme ?
|
|
5409
|
+
var l = o.theme ? Gn(o.theme, o.language) : void 0;
|
|
5392
5410
|
return r.themeDict = l;
|
|
5393
5411
|
}), $e(this, "getLineProps", function(o) {
|
|
5394
5412
|
var l = o.key, p = o.className, d = o.style, f = jt(o, ["key", "className", "style", "line"]), b = f, u = _e({}, b, {
|
|
@@ -5446,7 +5464,7 @@ var Gn = /* @__PURE__ */ function(e) {
|
|
|
5446
5464
|
});
|
|
5447
5465
|
}, t;
|
|
5448
5466
|
}(kr);
|
|
5449
|
-
const
|
|
5467
|
+
const Hn = Un;
|
|
5450
5468
|
function Zt({ copied: e }) {
|
|
5451
5469
|
return /* @__PURE__ */ K.createElement("svg", {
|
|
5452
5470
|
viewBox: "0 0 15 15",
|
|
@@ -5466,7 +5484,7 @@ function Zt({ copied: e }) {
|
|
|
5466
5484
|
}));
|
|
5467
5485
|
}
|
|
5468
5486
|
Zt.displayName = "@mantine/prism/CopyIcon";
|
|
5469
|
-
const
|
|
5487
|
+
const qn = (e) => ({
|
|
5470
5488
|
plain: {
|
|
5471
5489
|
color: e.colors.gray[4],
|
|
5472
5490
|
backgroundColor: e.colors.dark[8]
|
|
@@ -5642,8 +5660,8 @@ const Hn = (e) => ({
|
|
|
5642
5660
|
}
|
|
5643
5661
|
}
|
|
5644
5662
|
]
|
|
5645
|
-
}), Vn = (e, t) => t === "dark" ?
|
|
5646
|
-
var Wn =
|
|
5663
|
+
}), Vn = (e, t) => t === "dark" ? qn(e) : Yn(e);
|
|
5664
|
+
var Wn = qt((e, { colorScheme: t, native: r, maxLineSize: n, radius: s }) => ({
|
|
5647
5665
|
scrollArea: {},
|
|
5648
5666
|
root: {
|
|
5649
5667
|
position: "relative"
|
|
@@ -5690,14 +5708,14 @@ var Wn = Ht((e, { colorScheme: t, native: r, maxLineSize: n, radius: s }) => ({
|
|
|
5690
5708
|
}
|
|
5691
5709
|
}));
|
|
5692
5710
|
const Kn = Wn;
|
|
5693
|
-
var Zn = Object.defineProperty, Xn = Object.defineProperties, Qn = Object.getOwnPropertyDescriptors, Xe = Object.getOwnPropertySymbols, Xt = Object.prototype.hasOwnProperty, Qt = Object.prototype.propertyIsEnumerable,
|
|
5711
|
+
var Zn = Object.defineProperty, Xn = Object.defineProperties, Qn = Object.getOwnPropertyDescriptors, Xe = Object.getOwnPropertySymbols, Xt = Object.prototype.hasOwnProperty, Qt = Object.prototype.propertyIsEnumerable, Gt = (e, t, r) => t in e ? Zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ie = (e, t) => {
|
|
5694
5712
|
for (var r in t || (t = {}))
|
|
5695
|
-
Xt.call(t, r) &&
|
|
5713
|
+
Xt.call(t, r) && Gt(e, r, t[r]);
|
|
5696
5714
|
if (Xe)
|
|
5697
5715
|
for (var r of Xe(t))
|
|
5698
|
-
Qt.call(t, r) &&
|
|
5716
|
+
Qt.call(t, r) && Gt(e, r, t[r]);
|
|
5699
5717
|
return e;
|
|
5700
|
-
},
|
|
5718
|
+
}, ze = (e, t) => Xn(e, Qn(t)), Jn = (e, t) => {
|
|
5701
5719
|
var r = {};
|
|
5702
5720
|
for (var n in e)
|
|
5703
5721
|
Xt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -5753,13 +5771,13 @@ const ea = {
|
|
|
5753
5771
|
"getPrismTheme",
|
|
5754
5772
|
"variant"
|
|
5755
5773
|
]), te = h && typeof s == "string" ? s.trim() : s, X = te.split(`
|
|
5756
|
-
`).length.toString().length, Y = Dr(), Z =
|
|
5774
|
+
`).length.toString().length, Y = Dr(), Z = Hr(), F = y || Y.colorScheme, { classes: L, cx: B } = Kn({
|
|
5757
5775
|
colorScheme: F,
|
|
5758
5776
|
native: g !== Yt,
|
|
5759
5777
|
maxLineSize: X,
|
|
5760
5778
|
radius: A
|
|
5761
5779
|
}, { name: "Prism", classNames: p, styles: d, unstyled: _, variant: $ });
|
|
5762
|
-
return /* @__PURE__ */ K.createElement(se,
|
|
5780
|
+
return /* @__PURE__ */ K.createElement(se, ze(Ie({
|
|
5763
5781
|
className: B(L.root, n),
|
|
5764
5782
|
ref: t
|
|
5765
5783
|
}, M), {
|
|
@@ -5779,7 +5797,7 @@ const ea = {
|
|
|
5779
5797
|
unstyled: _
|
|
5780
5798
|
}, /* @__PURE__ */ K.createElement(Zt, {
|
|
5781
5799
|
copied: Z.copied
|
|
5782
|
-
}))), /* @__PURE__ */ K.createElement(
|
|
5800
|
+
}))), /* @__PURE__ */ K.createElement(Hn, ze(Ie({}, Mn), {
|
|
5783
5801
|
theme: k(Y, F),
|
|
5784
5802
|
code: te,
|
|
5785
5803
|
language: o
|
|
@@ -5788,7 +5806,7 @@ const ea = {
|
|
|
5788
5806
|
style: R,
|
|
5789
5807
|
tokens: E,
|
|
5790
5808
|
getLineProps: S,
|
|
5791
|
-
getTokenProps:
|
|
5809
|
+
getTokenProps: x
|
|
5792
5810
|
}) => /* @__PURE__ */ K.createElement(g, {
|
|
5793
5811
|
className: L.scrollArea,
|
|
5794
5812
|
dir: "ltr"
|
|
@@ -5796,35 +5814,35 @@ const ea = {
|
|
|
5796
5814
|
className: B(L.code, ee),
|
|
5797
5815
|
style: R,
|
|
5798
5816
|
dir: "ltr"
|
|
5799
|
-
}, E.map((w,
|
|
5800
|
-
var I, N,
|
|
5801
|
-
if (
|
|
5817
|
+
}, E.map((w, O) => {
|
|
5818
|
+
var I, N, H, j;
|
|
5819
|
+
if (O === E.length - 1 && w.length === 1 && w[0].content === `
|
|
5802
5820
|
`)
|
|
5803
5821
|
return null;
|
|
5804
|
-
const
|
|
5805
|
-
return /* @__PURE__ */ K.createElement("div",
|
|
5822
|
+
const G = O + 1, le = S({ line: w, key: O }), ce = G in c, pe = F === "dark" ? Y.fn.rgba(Y.fn.themeColor((I = c[G]) == null ? void 0 : I.color, 9), 0.25) : Y.fn.themeColor((N = c[G]) == null ? void 0 : N.color, 0);
|
|
5823
|
+
return /* @__PURE__ */ K.createElement("div", ze(Ie({}, le), {
|
|
5806
5824
|
className: B(L.line, le.className),
|
|
5807
5825
|
style: Ie({}, ce ? { backgroundColor: pe } : null)
|
|
5808
5826
|
}), u && /* @__PURE__ */ K.createElement("div", {
|
|
5809
5827
|
className: L.lineNumber,
|
|
5810
5828
|
style: {
|
|
5811
|
-
color: ce ? Y.fn.themeColor((
|
|
5829
|
+
color: ce ? Y.fn.themeColor((H = c[G]) == null ? void 0 : H.color, F === "dark" ? 5 : 8) : void 0
|
|
5812
5830
|
}
|
|
5813
|
-
}, ((j = c[
|
|
5831
|
+
}, ((j = c[G]) == null ? void 0 : j.label) || G), /* @__PURE__ */ K.createElement("div", {
|
|
5814
5832
|
className: L.lineContent
|
|
5815
5833
|
}, w.map((ye, fe) => {
|
|
5816
5834
|
var re, de;
|
|
5817
|
-
const ve =
|
|
5818
|
-
return /* @__PURE__ */ K.createElement("span",
|
|
5819
|
-
style:
|
|
5820
|
-
color: ce ? Y.fn.themeColor((re = c[
|
|
5835
|
+
const ve = x({ token: ye, key: fe });
|
|
5836
|
+
return /* @__PURE__ */ K.createElement("span", ze(Ie({}, ve), {
|
|
5837
|
+
style: ze(Ie({}, ve.style), {
|
|
5838
|
+
color: ce ? Y.fn.themeColor((re = c[G]) == null ? void 0 : re.color, F === "dark" ? 5 : 8) : (de = ve == null ? void 0 : ve.style) == null ? void 0 : de.color
|
|
5821
5839
|
})
|
|
5822
5840
|
}));
|
|
5823
5841
|
})));
|
|
5824
5842
|
}).filter(Boolean)))));
|
|
5825
5843
|
});
|
|
5826
5844
|
wt.displayName = "@mantine/prism/Prism";
|
|
5827
|
-
var ta =
|
|
5845
|
+
var ta = qt((e, { radius: t }) => ({
|
|
5828
5846
|
tab: {
|
|
5829
5847
|
paddingLeft: e.spacing.sm,
|
|
5830
5848
|
paddingRight: e.spacing.sm,
|
|
@@ -5870,12 +5888,12 @@ var ta = Ht((e, { radius: t }) => ({
|
|
|
5870
5888
|
}
|
|
5871
5889
|
}));
|
|
5872
5890
|
const Jt = ta;
|
|
5873
|
-
var ra = Object.defineProperty, na = Object.defineProperties, aa = Object.getOwnPropertyDescriptors, Qe = Object.getOwnPropertySymbols, er = Object.prototype.hasOwnProperty, tr = Object.prototype.propertyIsEnumerable,
|
|
5891
|
+
var ra = Object.defineProperty, na = Object.defineProperties, aa = Object.getOwnPropertyDescriptors, Qe = Object.getOwnPropertySymbols, er = Object.prototype.hasOwnProperty, tr = Object.prototype.propertyIsEnumerable, Ut = (e, t, r) => t in e ? ra(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rr = (e, t) => {
|
|
5874
5892
|
for (var r in t || (t = {}))
|
|
5875
|
-
er.call(t, r) &&
|
|
5893
|
+
er.call(t, r) && Ut(e, r, t[r]);
|
|
5876
5894
|
if (Qe)
|
|
5877
5895
|
for (var r of Qe(t))
|
|
5878
|
-
tr.call(t, r) &&
|
|
5896
|
+
tr.call(t, r) && Ut(e, r, t[r]);
|
|
5879
5897
|
return e;
|
|
5880
5898
|
}, ia = (e, t) => na(e, aa(t)), oa = (e, t) => {
|
|
5881
5899
|
var r = {};
|
|
@@ -5941,17 +5959,17 @@ function la(e) {
|
|
|
5941
5959
|
variant: y
|
|
5942
5960
|
}, n));
|
|
5943
5961
|
}
|
|
5944
|
-
const
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5962
|
+
const He = wt;
|
|
5963
|
+
He.Tabs = sa;
|
|
5964
|
+
He.Tab = at.Tab;
|
|
5965
|
+
He.TabsList = at.List;
|
|
5966
|
+
He.Panel = la;
|
|
5949
5967
|
function ua({
|
|
5950
5968
|
id: e,
|
|
5951
5969
|
onSuccess: t,
|
|
5952
5970
|
styles: r = De
|
|
5953
5971
|
}) {
|
|
5954
|
-
const n =
|
|
5972
|
+
const n = Ge(), s = async () => {
|
|
5955
5973
|
if (e) {
|
|
5956
5974
|
be({
|
|
5957
5975
|
id: "for-deleting",
|
|
@@ -5993,20 +6011,20 @@ function ca({
|
|
|
5993
6011
|
content: e
|
|
5994
6012
|
}) {
|
|
5995
6013
|
return /* @__PURE__ */ C(gt, { width: "60vw", shadow: "md", children: [
|
|
5996
|
-
/* @__PURE__ */ a(gt.Target, { children: /* @__PURE__ */ a(vt, { size: 16, children: /* @__PURE__ */ a(
|
|
5997
|
-
/* @__PURE__ */ a(gt.Dropdown, { children: /* @__PURE__ */ a(
|
|
6014
|
+
/* @__PURE__ */ a(gt.Target, { children: /* @__PURE__ */ a(vt, { size: 16, children: /* @__PURE__ */ a(Ur, {}) }) }),
|
|
6015
|
+
/* @__PURE__ */ a(gt.Dropdown, { children: /* @__PURE__ */ a(He, { language: "sql", noCopy: !0, withLineNumbers: !0, children: e }) })
|
|
5998
6016
|
] });
|
|
5999
6017
|
}
|
|
6000
6018
|
function Ta({
|
|
6001
6019
|
styles: e = De,
|
|
6002
6020
|
config: t
|
|
6003
6021
|
}) {
|
|
6004
|
-
|
|
6022
|
+
Ue(t);
|
|
6005
6023
|
const {
|
|
6006
6024
|
data: r = [],
|
|
6007
6025
|
loading: n,
|
|
6008
6026
|
refresh: s
|
|
6009
|
-
} =
|
|
6027
|
+
} = xe(async () => {
|
|
6010
6028
|
const {
|
|
6011
6029
|
data: o
|
|
6012
6030
|
} = await oe.sql_snippet.list({
|
|
@@ -6055,7 +6073,7 @@ function Ta({
|
|
|
6055
6073
|
] })
|
|
6056
6074
|
] });
|
|
6057
6075
|
}
|
|
6058
|
-
const Ra = () => import("./package-
|
|
6076
|
+
const Ra = () => import("./package-576d8b62.mjs").then(({
|
|
6059
6077
|
version: e
|
|
6060
6078
|
}) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
|
|
6061
6079
|
export {
|
|
@@ -6076,7 +6094,7 @@ export {
|
|
|
6076
6094
|
Aa as Login,
|
|
6077
6095
|
Ta as SQLSnippetList,
|
|
6078
6096
|
Nn as UpdateSQLSnippet,
|
|
6079
|
-
|
|
6097
|
+
Ue as configureAPIClient,
|
|
6080
6098
|
Jr as facadeApiClient,
|
|
6081
6099
|
Ra as getVersion
|
|
6082
6100
|
};
|