@devtable/settings-form 10.37.3 → 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/index.d.ts +1 -17
- package/dist/{package-798d9388.mjs → package-576d8b62.mjs} +1 -1
- package/dist/{account → settings-form/src/account}/index.d.ts +1 -0
- package/dist/settings-form/src/api-caller/request.d.ts +9 -0
- package/dist/settings-form/src/index.d.ts +19 -0
- package/dist/settings-form/src/shared/api-client/default-api-client.d.ts +20 -0
- package/dist/settings-form/src/shared/api-client/facade-api-client.d.ts +10 -0
- package/dist/settings-form/src/shared/api-client/index.d.ts +4 -0
- package/dist/settings-form/src/shared/api-client/types.d.ts +16 -0
- package/dist/settings-form/src/shared/api-client/utils.d.ts +3 -0
- package/dist/settings-form/src/shared/index.d.ts +1 -0
- package/dist/settings-form.es.js +766 -722
- package/dist/settings-form.umd.js +16 -16
- package/dist/stats.html +1 -1
- package/package.json +1 -1
- package/dist/api-caller/request.d.ts +0 -13
- /package/dist/{account → settings-form/src/account}/account-list.d.ts +0 -0
- /package/dist/{account → settings-form/src/account}/add-account.d.ts +0 -0
- /package/dist/{account → settings-form/src/account}/delete-account.d.ts +0 -0
- /package/dist/{account → settings-form/src/account}/edit-account.d.ts +0 -0
- /package/dist/{account → settings-form/src/account}/login/form.d.ts +0 -0
- /package/dist/{account → settings-form/src/account}/login/index.d.ts +0 -0
- /package/dist/{account → settings-form/src/account}/role-selector.d.ts +0 -0
- /package/dist/{account → settings-form/src/account}/styles.d.ts +0 -0
- /package/dist/{api-caller → settings-form/src/api-caller}/account.d.ts +0 -0
- /package/dist/{api-caller → settings-form/src/api-caller}/account.typed.d.ts +0 -0
- /package/dist/{api-caller → settings-form/src/api-caller}/api-key.d.ts +0 -0
- /package/dist/{api-caller → settings-form/src/api-caller}/api-key.typed.d.ts +0 -0
- /package/dist/{api-caller → settings-form/src/api-caller}/datasource.d.ts +0 -0
- /package/dist/{api-caller → settings-form/src/api-caller}/datasource.typed.d.ts +0 -0
- /package/dist/{api-caller → settings-form/src/api-caller}/index.d.ts +0 -0
- /package/dist/{api-caller → settings-form/src/api-caller}/role.d.ts +0 -0
- /package/dist/{api-caller → settings-form/src/api-caller}/role.typed.d.ts +0 -0
- /package/dist/{api-caller → settings-form/src/api-caller}/sql_snippet.d.ts +0 -0
- /package/dist/{api-caller → settings-form/src/api-caller}/sql_snippet.typed.d.ts +0 -0
- /package/dist/{api-caller → settings-form/src/api-caller}/types.d.ts +0 -0
- /package/dist/{api-key → settings-form/src/api-key}/add-api-key.d.ts +0 -0
- /package/dist/{api-key → settings-form/src/api-key}/api-key-list.d.ts +0 -0
- /package/dist/{api-key → settings-form/src/api-key}/delete-api-key.d.ts +0 -0
- /package/dist/{api-key → settings-form/src/api-key}/index.d.ts +0 -0
- /package/dist/{api-key → settings-form/src/api-key}/styles.d.ts +0 -0
- /package/dist/{components → settings-form/src/components}/minimal-mocaco-editor.d.ts +0 -0
- /package/dist/{datasource → settings-form/src/datasource}/add-data-source/db-permission-tips.d.ts +0 -0
- /package/dist/{datasource → settings-form/src/datasource}/add-data-source/forms/database.d.ts +0 -0
- /package/dist/{datasource → settings-form/src/datasource}/add-data-source/forms/http.d.ts +0 -0
- /package/dist/{datasource → settings-form/src/datasource}/add-data-source/index.d.ts +0 -0
- /package/dist/{datasource → settings-form/src/datasource}/add-data-source/types.d.ts +0 -0
- /package/dist/{datasource → settings-form/src/datasource}/components/data-source-icon.d.ts +0 -0
- /package/dist/{datasource → settings-form/src/datasource}/components/function-string-field/function-string-editor.d.ts +0 -0
- /package/dist/{datasource → settings-form/src/datasource}/components/function-string-field/index.d.ts +0 -0
- /package/dist/{datasource → settings-form/src/datasource}/data-source-list.d.ts +0 -0
- /package/dist/{datasource → settings-form/src/datasource}/delete-data-source.d.ts +0 -0
- /package/dist/{datasource → settings-form/src/datasource}/edit-data-source/forms/http.d.ts +0 -0
- /package/dist/{datasource → settings-form/src/datasource}/edit-data-source/index.d.ts +0 -0
- /package/dist/{datasource → settings-form/src/datasource}/edit-data-source/types.d.ts +0 -0
- /package/dist/{datasource → settings-form/src/datasource}/index.d.ts +0 -0
- /package/dist/{datasource → settings-form/src/datasource}/styles.d.ts +0 -0
- /package/dist/{global.d.ts → settings-form/src/global.d.ts} +0 -0
- /package/dist/{sql_snippet → settings-form/src/sql_snippet}/add-sql_snippet.d.ts +0 -0
- /package/dist/{sql_snippet → settings-form/src/sql_snippet}/delete-sql_snippet.d.ts +0 -0
- /package/dist/{sql_snippet → settings-form/src/sql_snippet}/index.d.ts +0 -0
- /package/dist/{sql_snippet → settings-form/src/sql_snippet}/sql_snippet-list.d.ts +0 -0
- /package/dist/{sql_snippet → settings-form/src/sql_snippet}/styles.d.ts +0 -0
- /package/dist/{sql_snippet → settings-form/src/sql_snippet}/update-sql_snippet.d.ts +0 -0
- /package/dist/{utils → settings-form/src/utils}/load-monaco-editor.d.ts +0 -0
- /package/dist/{vite-env.d.ts → settings-form/src/vite-env.d.ts} +0 -0
package/dist/settings-form.es.js
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import K, { useEffect as
|
|
2
|
-
import { Box as se, TextInput as ue, Divider as
|
|
3
|
-
import { showNotification as be, updateNotification as
|
|
4
|
-
import { Recycle as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
var Hr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Me = {}, Yr = {
|
|
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
|
+
import { showNotification as be, updateNotification as J } from "@mantine/notifications";
|
|
4
|
+
import { Recycle as Lr, AlertCircle as Fr, PlaylistAdd as it, Trash as ot, Edit as Nr } from "tabler-icons-react";
|
|
5
|
+
import * as $r from "crypto-js";
|
|
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
|
+
import Vt, { loader as ft } from "@monaco-editor/react";
|
|
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 = {
|
|
15
14
|
get exports() {
|
|
16
|
-
return
|
|
15
|
+
return Be;
|
|
17
16
|
},
|
|
18
17
|
set exports(e) {
|
|
19
|
-
|
|
18
|
+
Be = e;
|
|
20
19
|
}
|
|
21
20
|
}, Fe = {};
|
|
22
21
|
/**
|
|
@@ -28,11 +27,11 @@ var Hr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
28
27
|
* This source code is licensed under the MIT license found in the
|
|
29
28
|
* LICENSE file in the root directory of this source tree.
|
|
30
29
|
*/
|
|
31
|
-
var
|
|
30
|
+
var Nt;
|
|
32
31
|
function Vr() {
|
|
33
|
-
if (
|
|
32
|
+
if (Nt)
|
|
34
33
|
return Fe;
|
|
35
|
-
|
|
34
|
+
Nt = 1;
|
|
36
35
|
var e = K, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
37
36
|
function l(p, d, f) {
|
|
38
37
|
var b, u = {}, c = null, g = null;
|
|
@@ -56,9 +55,9 @@ var Ne = {};
|
|
|
56
55
|
* This source code is licensed under the MIT license found in the
|
|
57
56
|
* LICENSE file in the root directory of this source tree.
|
|
58
57
|
*/
|
|
59
|
-
var
|
|
58
|
+
var $t;
|
|
60
59
|
function Wr() {
|
|
61
|
-
return
|
|
60
|
+
return $t || ($t = 1, process.env.NODE_ENV !== "production" && function() {
|
|
62
61
|
var e = K, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), p = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), c = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), y = Symbol.iterator, h = "@@iterator";
|
|
63
62
|
function _(i) {
|
|
64
63
|
if (i === null || typeof i != "object")
|
|
@@ -76,18 +75,18 @@ function Wr() {
|
|
|
76
75
|
}
|
|
77
76
|
function $(i, v, T) {
|
|
78
77
|
{
|
|
79
|
-
var D = A.ReactDebugCurrentFrame,
|
|
80
|
-
|
|
81
|
-
var W = T.map(function(
|
|
82
|
-
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);
|
|
83
82
|
});
|
|
84
83
|
W.unshift("Warning: " + v), Function.prototype.apply.call(console[i], console, W);
|
|
85
84
|
}
|
|
86
85
|
}
|
|
87
|
-
var M = !1,
|
|
86
|
+
var M = !1, te = !1, X = !1, Y = !1, Z = !1, F;
|
|
88
87
|
F = Symbol.for("react.module.reference");
|
|
89
88
|
function L(i) {
|
|
90
|
-
return !!(typeof i == "string" || typeof i == "function" || i === n || i === o || Z || i === s || i === f || i === b || Y || i === g || M ||
|
|
89
|
+
return !!(typeof i == "string" || typeof i == "function" || i === n || i === o || Z || i === s || i === f || i === b || Y || i === g || M || te || X || typeof i == "object" && i !== null && (i.$$typeof === c || i.$$typeof === u || i.$$typeof === l || i.$$typeof === p || i.$$typeof === d || // This needs to include all possible module reference object
|
|
91
90
|
// types supported by any Flight configuration anywhere since
|
|
92
91
|
// we don't know which Flight build this will end up being used
|
|
93
92
|
// with.
|
|
@@ -97,10 +96,10 @@ function Wr() {
|
|
|
97
96
|
var D = i.displayName;
|
|
98
97
|
if (D)
|
|
99
98
|
return D;
|
|
100
|
-
var
|
|
101
|
-
return
|
|
99
|
+
var U = v.displayName || v.name || "";
|
|
100
|
+
return U !== "" ? T + "(" + U + ")" : T;
|
|
102
101
|
}
|
|
103
|
-
function
|
|
102
|
+
function ee(i) {
|
|
104
103
|
return i.displayName || "Context";
|
|
105
104
|
}
|
|
106
105
|
function R(i) {
|
|
@@ -128,19 +127,19 @@ function Wr() {
|
|
|
128
127
|
switch (i.$$typeof) {
|
|
129
128
|
case p:
|
|
130
129
|
var v = i;
|
|
131
|
-
return
|
|
130
|
+
return ee(v) + ".Consumer";
|
|
132
131
|
case l:
|
|
133
132
|
var T = i;
|
|
134
|
-
return
|
|
133
|
+
return ee(T._context) + ".Provider";
|
|
135
134
|
case d:
|
|
136
135
|
return B(i, i.render, "ForwardRef");
|
|
137
136
|
case u:
|
|
138
137
|
var D = i.displayName || null;
|
|
139
138
|
return D !== null ? D : R(i.type) || "Memo";
|
|
140
139
|
case c: {
|
|
141
|
-
var
|
|
140
|
+
var U = i, W = U._payload, P = U._init;
|
|
142
141
|
try {
|
|
143
|
-
return R(
|
|
142
|
+
return R(P(W));
|
|
144
143
|
} catch {
|
|
145
144
|
return null;
|
|
146
145
|
}
|
|
@@ -148,18 +147,18 @@ function Wr() {
|
|
|
148
147
|
}
|
|
149
148
|
return null;
|
|
150
149
|
}
|
|
151
|
-
var E = Object.assign, S = 0,
|
|
152
|
-
function
|
|
150
|
+
var E = Object.assign, S = 0, x, w, O, I, N, H, j;
|
|
151
|
+
function G() {
|
|
153
152
|
}
|
|
154
|
-
|
|
153
|
+
G.__reactDisabledLog = !0;
|
|
155
154
|
function le() {
|
|
156
155
|
{
|
|
157
156
|
if (S === 0) {
|
|
158
|
-
|
|
157
|
+
x = console.log, w = console.info, O = console.warn, I = console.error, N = console.group, H = console.groupCollapsed, j = console.groupEnd;
|
|
159
158
|
var i = {
|
|
160
159
|
configurable: !0,
|
|
161
160
|
enumerable: !0,
|
|
162
|
-
value:
|
|
161
|
+
value: G,
|
|
163
162
|
writable: !0
|
|
164
163
|
};
|
|
165
164
|
Object.defineProperties(console, {
|
|
@@ -185,13 +184,13 @@ function Wr() {
|
|
|
185
184
|
};
|
|
186
185
|
Object.defineProperties(console, {
|
|
187
186
|
log: E({}, i, {
|
|
188
|
-
value:
|
|
187
|
+
value: x
|
|
189
188
|
}),
|
|
190
189
|
info: E({}, i, {
|
|
191
190
|
value: w
|
|
192
191
|
}),
|
|
193
192
|
warn: E({}, i, {
|
|
194
|
-
value:
|
|
193
|
+
value: O
|
|
195
194
|
}),
|
|
196
195
|
error: E({}, i, {
|
|
197
196
|
value: I
|
|
@@ -200,7 +199,7 @@ function Wr() {
|
|
|
200
199
|
value: N
|
|
201
200
|
}),
|
|
202
201
|
groupCollapsed: E({}, i, {
|
|
203
|
-
value:
|
|
202
|
+
value: H
|
|
204
203
|
}),
|
|
205
204
|
groupEnd: E({}, i, {
|
|
206
205
|
value: j
|
|
@@ -216,21 +215,21 @@ function Wr() {
|
|
|
216
215
|
if (ye === void 0)
|
|
217
216
|
try {
|
|
218
217
|
throw Error();
|
|
219
|
-
} catch (
|
|
220
|
-
var D =
|
|
218
|
+
} catch (U) {
|
|
219
|
+
var D = U.stack.trim().match(/\n( *(at )?)/);
|
|
221
220
|
ye = D && D[1] || "";
|
|
222
221
|
}
|
|
223
222
|
return `
|
|
224
223
|
` + ye + i;
|
|
225
224
|
}
|
|
226
225
|
}
|
|
227
|
-
var
|
|
226
|
+
var re = !1, de;
|
|
228
227
|
{
|
|
229
228
|
var ve = typeof WeakMap == "function" ? WeakMap : Map;
|
|
230
229
|
de = new ve();
|
|
231
230
|
}
|
|
232
231
|
function Te(i, v) {
|
|
233
|
-
if (!i ||
|
|
232
|
+
if (!i || re)
|
|
234
233
|
return "";
|
|
235
234
|
{
|
|
236
235
|
var T = de.get(i);
|
|
@@ -238,34 +237,34 @@ function Wr() {
|
|
|
238
237
|
return T;
|
|
239
238
|
}
|
|
240
239
|
var D;
|
|
241
|
-
|
|
242
|
-
var
|
|
240
|
+
re = !0;
|
|
241
|
+
var U = Error.prepareStackTrace;
|
|
243
242
|
Error.prepareStackTrace = void 0;
|
|
244
243
|
var W;
|
|
245
244
|
W = pe.current, pe.current = null, le();
|
|
246
245
|
try {
|
|
247
246
|
if (v) {
|
|
248
|
-
var
|
|
247
|
+
var P = function() {
|
|
249
248
|
throw Error();
|
|
250
249
|
};
|
|
251
|
-
if (Object.defineProperty(
|
|
250
|
+
if (Object.defineProperty(P.prototype, "props", {
|
|
252
251
|
set: function() {
|
|
253
252
|
throw Error();
|
|
254
253
|
}
|
|
255
254
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
256
255
|
try {
|
|
257
|
-
Reflect.construct(
|
|
256
|
+
Reflect.construct(P, []);
|
|
258
257
|
} catch (we) {
|
|
259
258
|
D = we;
|
|
260
259
|
}
|
|
261
|
-
Reflect.construct(i, [],
|
|
260
|
+
Reflect.construct(i, [], P);
|
|
262
261
|
} else {
|
|
263
262
|
try {
|
|
264
|
-
|
|
263
|
+
P.call();
|
|
265
264
|
} catch (we) {
|
|
266
265
|
D = we;
|
|
267
266
|
}
|
|
268
|
-
i.call(
|
|
267
|
+
i.call(P.prototype);
|
|
269
268
|
}
|
|
270
269
|
} else {
|
|
271
270
|
try {
|
|
@@ -277,33 +276,33 @@ function Wr() {
|
|
|
277
276
|
}
|
|
278
277
|
} catch (we) {
|
|
279
278
|
if (we && D && typeof we.stack == "string") {
|
|
280
|
-
for (var
|
|
279
|
+
for (var z = we.stack.split(`
|
|
281
280
|
`), ge = D.stack.split(`
|
|
282
|
-
`),
|
|
281
|
+
`), ne = z.length - 1, ie = ge.length - 1; ne >= 1 && ie >= 0 && z[ne] !== ge[ie]; )
|
|
283
282
|
ie--;
|
|
284
|
-
for (;
|
|
285
|
-
if (
|
|
286
|
-
if (
|
|
283
|
+
for (; ne >= 1 && ie >= 0; ne--, ie--)
|
|
284
|
+
if (z[ne] !== ge[ie]) {
|
|
285
|
+
if (ne !== 1 || ie !== 1)
|
|
287
286
|
do
|
|
288
|
-
if (
|
|
287
|
+
if (ne--, ie--, ie < 0 || z[ne] !== ge[ie]) {
|
|
289
288
|
var me = `
|
|
290
|
-
` +
|
|
289
|
+
` + z[ne].replace(" at new ", " at ");
|
|
291
290
|
return i.displayName && me.includes("<anonymous>") && (me = me.replace("<anonymous>", i.displayName)), typeof i == "function" && de.set(i, me), me;
|
|
292
291
|
}
|
|
293
|
-
while (
|
|
292
|
+
while (ne >= 1 && ie >= 0);
|
|
294
293
|
break;
|
|
295
294
|
}
|
|
296
295
|
}
|
|
297
296
|
} finally {
|
|
298
|
-
|
|
297
|
+
re = !1, pe.current = W, ce(), Error.prepareStackTrace = U;
|
|
299
298
|
}
|
|
300
|
-
var Ce = i ? i.displayName || i.name : "",
|
|
301
|
-
return typeof i == "function" && de.set(i,
|
|
299
|
+
var Ce = i ? i.displayName || i.name : "", Ft = Ce ? fe(Ce) : "";
|
|
300
|
+
return typeof i == "function" && de.set(i, Ft), Ft;
|
|
302
301
|
}
|
|
303
|
-
function
|
|
302
|
+
function nr(i, v, T) {
|
|
304
303
|
return Te(i, !1);
|
|
305
304
|
}
|
|
306
|
-
function
|
|
305
|
+
function ar(i) {
|
|
307
306
|
var v = i.prototype;
|
|
308
307
|
return !!(v && v.isReactComponent);
|
|
309
308
|
}
|
|
@@ -311,7 +310,7 @@ function Wr() {
|
|
|
311
310
|
if (i == null)
|
|
312
311
|
return "";
|
|
313
312
|
if (typeof i == "function")
|
|
314
|
-
return Te(i,
|
|
313
|
+
return Te(i, ar(i));
|
|
315
314
|
if (typeof i == "string")
|
|
316
315
|
return fe(i);
|
|
317
316
|
switch (i) {
|
|
@@ -323,103 +322,103 @@ function Wr() {
|
|
|
323
322
|
if (typeof i == "object")
|
|
324
323
|
switch (i.$$typeof) {
|
|
325
324
|
case d:
|
|
326
|
-
return
|
|
325
|
+
return nr(i.render);
|
|
327
326
|
case u:
|
|
328
327
|
return qe(i.type, v, T);
|
|
329
328
|
case c: {
|
|
330
|
-
var D = i,
|
|
329
|
+
var D = i, U = D._payload, W = D._init;
|
|
331
330
|
try {
|
|
332
|
-
return qe(W(
|
|
331
|
+
return qe(W(U), v, T);
|
|
333
332
|
} catch {
|
|
334
333
|
}
|
|
335
334
|
}
|
|
336
335
|
}
|
|
337
336
|
return "";
|
|
338
337
|
}
|
|
339
|
-
var
|
|
340
|
-
function
|
|
338
|
+
var Ye = Object.prototype.hasOwnProperty, Et = {}, _t = A.ReactDebugCurrentFrame;
|
|
339
|
+
function Ve(i) {
|
|
341
340
|
if (i) {
|
|
342
341
|
var v = i._owner, T = qe(i.type, i._source, v ? v.type : null);
|
|
343
|
-
|
|
342
|
+
_t.setExtraStackFrame(T);
|
|
344
343
|
} else
|
|
345
|
-
|
|
344
|
+
_t.setExtraStackFrame(null);
|
|
346
345
|
}
|
|
347
|
-
function
|
|
346
|
+
function ir(i, v, T, D, U) {
|
|
348
347
|
{
|
|
349
|
-
var W = Function.call.bind(
|
|
350
|
-
for (var
|
|
351
|
-
if (W(i,
|
|
352
|
-
var
|
|
348
|
+
var W = Function.call.bind(Ye);
|
|
349
|
+
for (var P in i)
|
|
350
|
+
if (W(i, P)) {
|
|
351
|
+
var z = void 0;
|
|
353
352
|
try {
|
|
354
|
-
if (typeof i[
|
|
355
|
-
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`.");
|
|
356
355
|
throw ge.name = "Invariant Violation", ge;
|
|
357
356
|
}
|
|
358
|
-
|
|
359
|
-
} catch (
|
|
360
|
-
|
|
357
|
+
z = i[P](v, P, D, T, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
358
|
+
} catch (ne) {
|
|
359
|
+
z = ne;
|
|
361
360
|
}
|
|
362
|
-
|
|
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));
|
|
363
362
|
}
|
|
364
363
|
}
|
|
365
364
|
}
|
|
366
|
-
var
|
|
367
|
-
function
|
|
368
|
-
return
|
|
365
|
+
var or = Array.isArray;
|
|
366
|
+
function lt(i) {
|
|
367
|
+
return or(i);
|
|
369
368
|
}
|
|
370
|
-
function
|
|
369
|
+
function sr(i) {
|
|
371
370
|
{
|
|
372
371
|
var v = typeof Symbol == "function" && Symbol.toStringTag, T = v && i[Symbol.toStringTag] || i.constructor.name || "Object";
|
|
373
372
|
return T;
|
|
374
373
|
}
|
|
375
374
|
}
|
|
376
|
-
function
|
|
375
|
+
function lr(i) {
|
|
377
376
|
try {
|
|
378
|
-
return
|
|
377
|
+
return At(i), !1;
|
|
379
378
|
} catch {
|
|
380
379
|
return !0;
|
|
381
380
|
}
|
|
382
381
|
}
|
|
383
|
-
function
|
|
382
|
+
function At(i) {
|
|
384
383
|
return "" + i;
|
|
385
384
|
}
|
|
386
|
-
function
|
|
387
|
-
if (
|
|
388
|
-
return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
385
|
+
function kt(i) {
|
|
386
|
+
if (lr(i))
|
|
387
|
+
return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", sr(i)), At(i);
|
|
389
388
|
}
|
|
390
|
-
var Le = A.ReactCurrentOwner,
|
|
389
|
+
var Le = A.ReactCurrentOwner, ur = {
|
|
391
390
|
key: !0,
|
|
392
391
|
ref: !0,
|
|
393
392
|
__self: !0,
|
|
394
393
|
__source: !0
|
|
395
|
-
},
|
|
396
|
-
|
|
397
|
-
function
|
|
398
|
-
if (
|
|
394
|
+
}, Tt, Rt, ut;
|
|
395
|
+
ut = {};
|
|
396
|
+
function cr(i) {
|
|
397
|
+
if (Ye.call(i, "ref")) {
|
|
399
398
|
var v = Object.getOwnPropertyDescriptor(i, "ref").get;
|
|
400
399
|
if (v && v.isReactWarning)
|
|
401
400
|
return !1;
|
|
402
401
|
}
|
|
403
402
|
return i.ref !== void 0;
|
|
404
403
|
}
|
|
405
|
-
function
|
|
406
|
-
if (
|
|
404
|
+
function dr(i) {
|
|
405
|
+
if (Ye.call(i, "key")) {
|
|
407
406
|
var v = Object.getOwnPropertyDescriptor(i, "key").get;
|
|
408
407
|
if (v && v.isReactWarning)
|
|
409
408
|
return !1;
|
|
410
409
|
}
|
|
411
410
|
return i.key !== void 0;
|
|
412
411
|
}
|
|
413
|
-
function
|
|
412
|
+
function pr(i, v) {
|
|
414
413
|
if (typeof i.ref == "string" && Le.current && v && Le.current.stateNode !== v) {
|
|
415
414
|
var T = R(Le.current.type);
|
|
416
|
-
|
|
415
|
+
ut[T] || (k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', R(Le.current.type), i.ref), ut[T] = !0);
|
|
417
416
|
}
|
|
418
417
|
}
|
|
419
|
-
function
|
|
418
|
+
function gr(i, v) {
|
|
420
419
|
{
|
|
421
420
|
var T = function() {
|
|
422
|
-
|
|
421
|
+
Tt || (Tt = !0, k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
|
|
423
422
|
};
|
|
424
423
|
T.isReactWarning = !0, Object.defineProperty(i, "key", {
|
|
425
424
|
get: T,
|
|
@@ -427,10 +426,10 @@ function Wr() {
|
|
|
427
426
|
});
|
|
428
427
|
}
|
|
429
428
|
}
|
|
430
|
-
function
|
|
429
|
+
function fr(i, v) {
|
|
431
430
|
{
|
|
432
431
|
var T = function() {
|
|
433
|
-
|
|
432
|
+
Rt || (Rt = !0, k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
|
|
434
433
|
};
|
|
435
434
|
T.isReactWarning = !0, Object.defineProperty(i, "ref", {
|
|
436
435
|
get: T,
|
|
@@ -438,70 +437,70 @@ function Wr() {
|
|
|
438
437
|
});
|
|
439
438
|
}
|
|
440
439
|
}
|
|
441
|
-
var
|
|
442
|
-
var
|
|
440
|
+
var hr = function(i, v, T, D, U, W, P) {
|
|
441
|
+
var z = {
|
|
443
442
|
// This tag allows us to uniquely identify this as a React Element
|
|
444
443
|
$$typeof: t,
|
|
445
444
|
// Built-in properties that belong on the element
|
|
446
445
|
type: i,
|
|
447
446
|
key: v,
|
|
448
447
|
ref: T,
|
|
449
|
-
props:
|
|
448
|
+
props: P,
|
|
450
449
|
// Record the component responsible for creating this element.
|
|
451
450
|
_owner: W
|
|
452
451
|
};
|
|
453
|
-
return
|
|
452
|
+
return z._store = {}, Object.defineProperty(z._store, "validated", {
|
|
454
453
|
configurable: !1,
|
|
455
454
|
enumerable: !1,
|
|
456
455
|
writable: !0,
|
|
457
456
|
value: !1
|
|
458
|
-
}), Object.defineProperty(
|
|
457
|
+
}), Object.defineProperty(z, "_self", {
|
|
459
458
|
configurable: !1,
|
|
460
459
|
enumerable: !1,
|
|
461
460
|
writable: !1,
|
|
462
461
|
value: D
|
|
463
|
-
}), Object.defineProperty(
|
|
462
|
+
}), Object.defineProperty(z, "_source", {
|
|
464
463
|
configurable: !1,
|
|
465
464
|
enumerable: !1,
|
|
466
465
|
writable: !1,
|
|
467
|
-
value:
|
|
468
|
-
}), Object.freeze && (Object.freeze(
|
|
466
|
+
value: U
|
|
467
|
+
}), Object.freeze && (Object.freeze(z.props), Object.freeze(z)), z;
|
|
469
468
|
};
|
|
470
|
-
function
|
|
469
|
+
function mr(i, v, T, D, U) {
|
|
471
470
|
{
|
|
472
|
-
var W,
|
|
473
|
-
T !== void 0 && (
|
|
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));
|
|
474
473
|
for (W in v)
|
|
475
|
-
|
|
474
|
+
Ye.call(v, W) && !ur.hasOwnProperty(W) && (P[W] = v[W]);
|
|
476
475
|
if (i && i.defaultProps) {
|
|
477
|
-
var
|
|
478
|
-
for (W in
|
|
479
|
-
|
|
476
|
+
var ne = i.defaultProps;
|
|
477
|
+
for (W in ne)
|
|
478
|
+
P[W] === void 0 && (P[W] = ne[W]);
|
|
480
479
|
}
|
|
481
|
-
if (
|
|
480
|
+
if (z || ge) {
|
|
482
481
|
var ie = typeof i == "function" ? i.displayName || i.name || "Unknown" : i;
|
|
483
|
-
|
|
482
|
+
z && gr(P, ie), ge && fr(P, ie);
|
|
484
483
|
}
|
|
485
|
-
return
|
|
484
|
+
return hr(i, z, ge, U, D, Le.current, P);
|
|
486
485
|
}
|
|
487
486
|
}
|
|
488
|
-
var
|
|
489
|
-
function
|
|
487
|
+
var ct = A.ReactCurrentOwner, xt = A.ReactDebugCurrentFrame;
|
|
488
|
+
function Oe(i) {
|
|
490
489
|
if (i) {
|
|
491
490
|
var v = i._owner, T = qe(i.type, i._source, v ? v.type : null);
|
|
492
|
-
|
|
491
|
+
xt.setExtraStackFrame(T);
|
|
493
492
|
} else
|
|
494
|
-
|
|
493
|
+
xt.setExtraStackFrame(null);
|
|
495
494
|
}
|
|
496
|
-
var
|
|
497
|
-
|
|
498
|
-
function
|
|
495
|
+
var dt;
|
|
496
|
+
dt = !1;
|
|
497
|
+
function pt(i) {
|
|
499
498
|
return typeof i == "object" && i !== null && i.$$typeof === t;
|
|
500
499
|
}
|
|
501
500
|
function Ot() {
|
|
502
501
|
{
|
|
503
|
-
if (
|
|
504
|
-
var i = R(
|
|
502
|
+
if (ct.current) {
|
|
503
|
+
var i = R(ct.current.type);
|
|
505
504
|
if (i)
|
|
506
505
|
return `
|
|
507
506
|
|
|
@@ -510,7 +509,7 @@ Check the render method of \`` + i + "`.";
|
|
|
510
509
|
return "";
|
|
511
510
|
}
|
|
512
511
|
}
|
|
513
|
-
function
|
|
512
|
+
function br(i) {
|
|
514
513
|
{
|
|
515
514
|
if (i !== void 0) {
|
|
516
515
|
var v = i.fileName.replace(/^.*[\\\/]/, ""), T = i.lineNumber;
|
|
@@ -521,8 +520,8 @@ Check your code at ` + v + ":" + T + ".";
|
|
|
521
520
|
return "";
|
|
522
521
|
}
|
|
523
522
|
}
|
|
524
|
-
var
|
|
525
|
-
function
|
|
523
|
+
var Ct = {};
|
|
524
|
+
function yr(i) {
|
|
526
525
|
{
|
|
527
526
|
var v = Ot();
|
|
528
527
|
if (!v) {
|
|
@@ -534,39 +533,39 @@ Check the top-level render call using <` + T + ">.");
|
|
|
534
533
|
return v;
|
|
535
534
|
}
|
|
536
535
|
}
|
|
537
|
-
function
|
|
536
|
+
function It(i, v) {
|
|
538
537
|
{
|
|
539
538
|
if (!i._store || i._store.validated || i.key != null)
|
|
540
539
|
return;
|
|
541
540
|
i._store.validated = !0;
|
|
542
|
-
var T =
|
|
543
|
-
if (
|
|
541
|
+
var T = yr(v);
|
|
542
|
+
if (Ct[T])
|
|
544
543
|
return;
|
|
545
|
-
|
|
544
|
+
Ct[T] = !0;
|
|
546
545
|
var D = "";
|
|
547
|
-
i && i._owner && i._owner !==
|
|
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);
|
|
548
547
|
}
|
|
549
548
|
}
|
|
550
|
-
function
|
|
549
|
+
function Dt(i, v) {
|
|
551
550
|
{
|
|
552
551
|
if (typeof i != "object")
|
|
553
552
|
return;
|
|
554
|
-
if (
|
|
553
|
+
if (lt(i))
|
|
555
554
|
for (var T = 0; T < i.length; T++) {
|
|
556
555
|
var D = i[T];
|
|
557
|
-
|
|
556
|
+
pt(D) && It(D, v);
|
|
558
557
|
}
|
|
559
|
-
else if (
|
|
558
|
+
else if (pt(i))
|
|
560
559
|
i._store && (i._store.validated = !0);
|
|
561
560
|
else if (i) {
|
|
562
|
-
var
|
|
563
|
-
if (typeof
|
|
564
|
-
for (var W =
|
|
565
|
-
|
|
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);
|
|
566
565
|
}
|
|
567
566
|
}
|
|
568
567
|
}
|
|
569
|
-
function
|
|
568
|
+
function vr(i) {
|
|
570
569
|
{
|
|
571
570
|
var v = i.type;
|
|
572
571
|
if (v == null || typeof v == "string")
|
|
@@ -582,71 +581,71 @@ Check the top-level render call using <` + T + ">.");
|
|
|
582
581
|
return;
|
|
583
582
|
if (T) {
|
|
584
583
|
var D = R(v);
|
|
585
|
-
|
|
586
|
-
} else if (v.PropTypes !== void 0 && !
|
|
587
|
-
|
|
588
|
-
var
|
|
589
|
-
k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
584
|
+
ir(T, i.props, "prop", D, i);
|
|
585
|
+
} else if (v.PropTypes !== void 0 && !dt) {
|
|
586
|
+
dt = !0;
|
|
587
|
+
var U = R(v);
|
|
588
|
+
k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", U || "Unknown");
|
|
590
589
|
}
|
|
591
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.");
|
|
592
591
|
}
|
|
593
592
|
}
|
|
594
|
-
function
|
|
593
|
+
function Sr(i) {
|
|
595
594
|
{
|
|
596
595
|
for (var v = Object.keys(i.props), T = 0; T < v.length; T++) {
|
|
597
596
|
var D = v[T];
|
|
598
597
|
if (D !== "children" && D !== "key") {
|
|
599
|
-
|
|
598
|
+
Oe(i), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", D), Oe(null);
|
|
600
599
|
break;
|
|
601
600
|
}
|
|
602
601
|
}
|
|
603
|
-
i.ref !== null && (
|
|
602
|
+
i.ref !== null && (Oe(i), k("Invalid attribute `ref` supplied to `React.Fragment`."), Oe(null));
|
|
604
603
|
}
|
|
605
604
|
}
|
|
606
|
-
function
|
|
605
|
+
function Lt(i, v, T, D, U, W) {
|
|
607
606
|
{
|
|
608
|
-
var
|
|
609
|
-
if (!
|
|
610
|
-
var
|
|
611
|
-
(i === void 0 || typeof i == "object" && i !== null && Object.keys(i).length === 0) && (
|
|
612
|
-
var ge =
|
|
613
|
-
ge ?
|
|
614
|
-
var
|
|
615
|
-
i === null ?
|
|
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
|
+
var ne;
|
|
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);
|
|
616
615
|
}
|
|
617
|
-
var ie =
|
|
616
|
+
var ie = mr(i, v, T, U, W);
|
|
618
617
|
if (ie == null)
|
|
619
618
|
return ie;
|
|
620
|
-
if (
|
|
619
|
+
if (P) {
|
|
621
620
|
var me = v.children;
|
|
622
621
|
if (me !== void 0)
|
|
623
622
|
if (D)
|
|
624
|
-
if (
|
|
623
|
+
if (lt(me)) {
|
|
625
624
|
for (var Ce = 0; Ce < me.length; Ce++)
|
|
626
|
-
|
|
625
|
+
Dt(me[Ce], i);
|
|
627
626
|
Object.freeze && Object.freeze(me);
|
|
628
627
|
} else
|
|
629
628
|
k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
630
629
|
else
|
|
631
|
-
|
|
630
|
+
Dt(me, i);
|
|
632
631
|
}
|
|
633
|
-
return i === n ?
|
|
632
|
+
return i === n ? Sr(ie) : vr(ie), ie;
|
|
634
633
|
}
|
|
635
634
|
}
|
|
636
|
-
function Sr(i, v, T) {
|
|
637
|
-
return Dt(i, v, T, !0);
|
|
638
|
-
}
|
|
639
635
|
function wr(i, v, T) {
|
|
640
|
-
return
|
|
636
|
+
return Lt(i, v, T, !0);
|
|
641
637
|
}
|
|
642
|
-
|
|
643
|
-
|
|
638
|
+
function Er(i, v, T) {
|
|
639
|
+
return Lt(i, v, T, !1);
|
|
640
|
+
}
|
|
641
|
+
var _r = Er, Ar = wr;
|
|
642
|
+
Ne.Fragment = n, Ne.jsx = _r, Ne.jsxs = Ar;
|
|
644
643
|
}()), Ne;
|
|
645
644
|
}
|
|
646
645
|
(function(e) {
|
|
647
646
|
process.env.NODE_ENV === "production" ? e.exports = Vr() : e.exports = Wr();
|
|
648
647
|
})(Yr);
|
|
649
|
-
const he =
|
|
648
|
+
const he = Be.Fragment, a = Be.jsx, C = Be.jsxs;
|
|
650
649
|
function Kr(e) {
|
|
651
650
|
e = e || {};
|
|
652
651
|
const t = Object.keys(e).sort(), r = [];
|
|
@@ -658,7 +657,9 @@ function Kr(e) {
|
|
|
658
657
|
const o = Object.keys(e[s]).sort();
|
|
659
658
|
for (let l = 0; l < o.length; l++) {
|
|
660
659
|
const p = o[l];
|
|
661
|
-
p != "sign" && e[s][p] && r.push(
|
|
660
|
+
p != "sign" && e[s][p] && r.push(
|
|
661
|
+
o[l] + "=" + (typeof e[s][p] == "object" ? JSON.stringify(e[s][p]) : e[s][p])
|
|
662
|
+
);
|
|
662
663
|
}
|
|
663
664
|
}
|
|
664
665
|
}
|
|
@@ -668,55 +669,93 @@ function Zr(e, t) {
|
|
|
668
669
|
let r = Kr(e);
|
|
669
670
|
return r += "&key=" + t, $r.MD5(r).toString().toUpperCase();
|
|
670
671
|
}
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
getAuthentication(
|
|
672
|
+
class Xr {
|
|
673
|
+
constructor() {
|
|
674
|
+
this.type = "default_api_client", this.baseURL = "http://localhost:31200", this.app_id = "", this.app_secret = "";
|
|
675
|
+
}
|
|
676
|
+
getAuthentication(t) {
|
|
676
677
|
if (!this.app_id || !this.app_secret)
|
|
677
678
|
return;
|
|
678
|
-
const
|
|
679
|
+
const r = (/* @__PURE__ */ new Date()).getTime().toString();
|
|
679
680
|
return {
|
|
680
681
|
app_id: this.app_id,
|
|
681
|
-
nonce_str:
|
|
682
|
-
sign: Zr(
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
682
|
+
nonce_str: r,
|
|
683
|
+
sign: Zr(
|
|
684
|
+
{
|
|
685
|
+
app_id: this.app_id,
|
|
686
|
+
nonce_str: r,
|
|
687
|
+
...t
|
|
688
|
+
},
|
|
689
|
+
this.app_secret
|
|
690
|
+
)
|
|
687
691
|
};
|
|
688
|
-
}
|
|
689
|
-
getRequest(
|
|
690
|
-
return (
|
|
691
|
-
const
|
|
692
|
-
|
|
693
|
-
"Content-Type": s.string ? "application/x-www-form-urlencoded" : "application/json",
|
|
694
|
-
authorization: o ? `bearer ${o}` : "",
|
|
695
|
-
...s.headers
|
|
696
|
-
}, p = {
|
|
697
|
-
baseURL: this.baseURL,
|
|
698
|
-
method: e,
|
|
699
|
-
url: r,
|
|
700
|
-
params: e === "GET" ? n : s.params,
|
|
701
|
-
headers: l,
|
|
702
|
-
signal: t
|
|
703
|
-
};
|
|
704
|
-
return ["POST", "PUT"].includes(e) && (p.data = s.string ? JSON.stringify(n) : n, p.data.authentication = this.getAuthentication(p.data)), Nr(p).then((d) => d.data).catch((d) => Pr.has(d, "response.data.detail.message") ? Promise.reject(new Error(d.response.data.detail.message)) : Promise.reject(d));
|
|
692
|
+
}
|
|
693
|
+
getRequest(t, r) {
|
|
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));
|
|
705
697
|
};
|
|
706
698
|
}
|
|
707
|
-
|
|
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
|
+
}
|
|
708
|
+
buildAxiosConfig(t, r, n, s, o, l) {
|
|
709
|
+
const p = {
|
|
710
|
+
baseURL: this.baseURL,
|
|
711
|
+
method: t,
|
|
712
|
+
url: r,
|
|
713
|
+
params: t === "GET" ? n : s.params,
|
|
714
|
+
headers: o,
|
|
715
|
+
signal: l
|
|
716
|
+
};
|
|
717
|
+
return ["POST", "PUT"].includes(t) && (p.data = s.string ? JSON.stringify(n) : n, p.data.authentication = this.getAuthentication(p.data)), p;
|
|
718
|
+
}
|
|
719
|
+
buildHeader(t) {
|
|
720
|
+
const r = window.localStorage.getItem("token");
|
|
721
|
+
return {
|
|
722
|
+
"X-Requested-With": "XMLHttpRequest",
|
|
723
|
+
"Content-Type": t.string ? "application/x-www-form-urlencoded" : "application/json",
|
|
724
|
+
authorization: r ? `bearer ${r}` : "",
|
|
725
|
+
...t.headers
|
|
726
|
+
};
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
class Qr {
|
|
730
|
+
constructor(t) {
|
|
731
|
+
this.implementation = t;
|
|
732
|
+
}
|
|
733
|
+
getRequest(t, r) {
|
|
734
|
+
return this.implementation.getRequest(t, r);
|
|
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
|
+
}
|
|
745
|
+
}
|
|
746
|
+
const Pe = new Xr(), Jr = new Qr(Pe), ae = Jr;
|
|
708
747
|
function Ue(e) {
|
|
709
|
-
|
|
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);
|
|
710
749
|
}
|
|
711
|
-
const
|
|
750
|
+
const en = {
|
|
712
751
|
login: async (e, t) => {
|
|
713
752
|
const r = {
|
|
714
753
|
name: e,
|
|
715
754
|
password: t
|
|
716
755
|
};
|
|
717
|
-
return await
|
|
756
|
+
return await ae.post()("/account/login", r, {});
|
|
718
757
|
},
|
|
719
|
-
list: async () => await
|
|
758
|
+
list: async () => await ae.post()("/account/list", {
|
|
720
759
|
filter: {},
|
|
721
760
|
sort: [{
|
|
722
761
|
field: "name",
|
|
@@ -726,11 +765,11 @@ const Xr = {
|
|
|
726
765
|
page: 1,
|
|
727
766
|
pagesize: 100
|
|
728
767
|
}
|
|
729
|
-
}),
|
|
768
|
+
}, {}),
|
|
730
769
|
/**
|
|
731
770
|
* get current account
|
|
732
771
|
*/
|
|
733
|
-
get: async () => await
|
|
772
|
+
get: async () => await ae.get()("/account/get", {}, {}),
|
|
734
773
|
/**
|
|
735
774
|
* update current account
|
|
736
775
|
*/
|
|
@@ -739,7 +778,7 @@ const Xr = {
|
|
|
739
778
|
name: e.trim(),
|
|
740
779
|
email: t.trim()
|
|
741
780
|
};
|
|
742
|
-
return await
|
|
781
|
+
return await ae.put()("/account/update", r, {});
|
|
743
782
|
},
|
|
744
783
|
/**
|
|
745
784
|
* change current account's password
|
|
@@ -749,23 +788,23 @@ const Xr = {
|
|
|
749
788
|
old_password: e.trim(),
|
|
750
789
|
new_password: t.trim()
|
|
751
790
|
};
|
|
752
|
-
return await
|
|
791
|
+
return await ae.post()("/account/changepassword", r, {});
|
|
753
792
|
},
|
|
754
|
-
create: async (e, t, r, n) => await
|
|
793
|
+
create: async (e, t, r, n) => await ae.post()("/account/create", {
|
|
755
794
|
name: e.trim(),
|
|
756
795
|
email: t.trim(),
|
|
757
796
|
password: r.trim(),
|
|
758
797
|
role_id: n
|
|
759
|
-
}),
|
|
760
|
-
edit: async (e) => (e.reset_password || (e.new_password = void 0), await
|
|
798
|
+
}, {}),
|
|
799
|
+
edit: async (e) => (e.reset_password || (e.new_password = void 0), await ae.put()("/account/edit", e, {})),
|
|
761
800
|
delete: async (e) => {
|
|
762
801
|
if (e)
|
|
763
|
-
return
|
|
802
|
+
return ae.post()("/account/delete", {
|
|
764
803
|
id: e
|
|
765
|
-
});
|
|
804
|
+
}, {});
|
|
766
805
|
}
|
|
767
|
-
},
|
|
768
|
-
list: async () => await
|
|
806
|
+
}, tn = {
|
|
807
|
+
list: async () => await ae.post()("/api/key/list", {
|
|
769
808
|
filter: {
|
|
770
809
|
search: ""
|
|
771
810
|
},
|
|
@@ -777,19 +816,19 @@ const Xr = {
|
|
|
777
816
|
page: 1,
|
|
778
817
|
pagesize: 100
|
|
779
818
|
}
|
|
780
|
-
}),
|
|
781
|
-
create: async (e, t) =>
|
|
819
|
+
}, {}),
|
|
820
|
+
create: async (e, t) => ae.post()("/api/key/create", {
|
|
782
821
|
name: e,
|
|
783
822
|
role_id: t
|
|
784
|
-
}),
|
|
823
|
+
}, {}),
|
|
785
824
|
delete: async (e) => {
|
|
786
825
|
if (e)
|
|
787
|
-
return
|
|
826
|
+
return ae.post()("/api/key/delete", {
|
|
788
827
|
id: e
|
|
789
|
-
});
|
|
828
|
+
}, {});
|
|
790
829
|
}
|
|
791
|
-
},
|
|
792
|
-
list: async () => await
|
|
830
|
+
}, rn = {
|
|
831
|
+
list: async () => await ae.post()("/datasource/list", {
|
|
793
832
|
filter: {},
|
|
794
833
|
sort: [{
|
|
795
834
|
field: "create_time",
|
|
@@ -799,75 +838,75 @@ const Xr = {
|
|
|
799
838
|
page: 1,
|
|
800
839
|
pagesize: 100
|
|
801
840
|
}
|
|
802
|
-
}),
|
|
803
|
-
create: async (e, t, r) => await
|
|
841
|
+
}, {}),
|
|
842
|
+
create: async (e, t, r) => await ae.post()("/datasource/create", {
|
|
804
843
|
type: e,
|
|
805
844
|
key: t,
|
|
806
845
|
config: r
|
|
807
|
-
}),
|
|
808
|
-
update: async (e, t) => await
|
|
846
|
+
}, {}),
|
|
847
|
+
update: async (e, t) => await ae.put()("/datasource/update", {
|
|
809
848
|
id: e,
|
|
810
849
|
config: t
|
|
811
|
-
}),
|
|
850
|
+
}, {}),
|
|
812
851
|
delete: async (e) => {
|
|
813
|
-
await
|
|
852
|
+
await ae.post()("/datasource/delete", {
|
|
814
853
|
id: e
|
|
815
|
-
});
|
|
854
|
+
}, {});
|
|
816
855
|
}
|
|
817
|
-
},
|
|
818
|
-
list: async () => await
|
|
856
|
+
}, nn = {
|
|
857
|
+
list: async () => await ae.get()("/role/list", {}, {})
|
|
819
858
|
};
|
|
820
|
-
var
|
|
859
|
+
var mt = {}, an = {
|
|
821
860
|
get exports() {
|
|
822
|
-
return
|
|
861
|
+
return mt;
|
|
823
862
|
},
|
|
824
863
|
set exports(e) {
|
|
825
|
-
|
|
864
|
+
mt = e;
|
|
826
865
|
}
|
|
827
866
|
};
|
|
828
867
|
(function(e, t) {
|
|
829
868
|
(function(r, n) {
|
|
830
869
|
e.exports = n();
|
|
831
|
-
})(
|
|
870
|
+
})(qr, function() {
|
|
832
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) {
|
|
833
872
|
var E = ["th", "st", "nd", "rd"], S = R % 100;
|
|
834
873
|
return "[" + R + (E[(S - 20) % 10] || E[S] || E[0]) + "]";
|
|
835
874
|
} }, $ = function(R, E, S) {
|
|
836
|
-
var
|
|
837
|
-
return !
|
|
875
|
+
var x = String(R);
|
|
876
|
+
return !x || x.length >= E ? R : "" + Array(E + 1 - x.length).join(S) + R;
|
|
838
877
|
}, M = { s: $, z: function(R) {
|
|
839
|
-
var E = -R.utcOffset(), S = Math.abs(E),
|
|
840
|
-
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");
|
|
841
880
|
}, m: function R(E, S) {
|
|
842
881
|
if (E.date() < S.date())
|
|
843
882
|
return -R(S, E);
|
|
844
|
-
var
|
|
845
|
-
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);
|
|
846
885
|
}, a: function(R) {
|
|
847
886
|
return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
|
|
848
887
|
}, p: function(R) {
|
|
849
888
|
return { M: u, y: g, w: b, d: f, D: y, h: d, m: p, s: l, ms: o, Q: c }[R] || String(R || "").toLowerCase().replace(/s$/, "");
|
|
850
889
|
}, u: function(R) {
|
|
851
890
|
return R === void 0;
|
|
852
|
-
} },
|
|
853
|
-
|
|
891
|
+
} }, te = "en", X = {};
|
|
892
|
+
X[te] = k;
|
|
854
893
|
var Y = function(R) {
|
|
855
894
|
return R instanceof B;
|
|
856
|
-
}, Z = function R(E, S,
|
|
895
|
+
}, Z = function R(E, S, x) {
|
|
857
896
|
var w;
|
|
858
897
|
if (!E)
|
|
859
|
-
return
|
|
898
|
+
return te;
|
|
860
899
|
if (typeof E == "string") {
|
|
861
|
-
var
|
|
862
|
-
|
|
900
|
+
var O = E.toLowerCase();
|
|
901
|
+
X[O] && (w = O), S && (X[O] = S, w = O);
|
|
863
902
|
var I = E.split("-");
|
|
864
903
|
if (!w && I.length > 1)
|
|
865
904
|
return R(I[0]);
|
|
866
905
|
} else {
|
|
867
906
|
var N = E.name;
|
|
868
|
-
|
|
907
|
+
X[N] = E, w = N;
|
|
869
908
|
}
|
|
870
|
-
return !
|
|
909
|
+
return !x && w && (te = w), w || !x && te;
|
|
871
910
|
}, F = function(R, E) {
|
|
872
911
|
if (Y(R))
|
|
873
912
|
return R.clone();
|
|
@@ -883,8 +922,8 @@ var ht = {}, tn = {
|
|
|
883
922
|
}
|
|
884
923
|
var E = R.prototype;
|
|
885
924
|
return E.parse = function(S) {
|
|
886
|
-
this.$d = function(
|
|
887
|
-
var w =
|
|
925
|
+
this.$d = function(x) {
|
|
926
|
+
var w = x.date, O = x.utc;
|
|
888
927
|
if (w === null)
|
|
889
928
|
return /* @__PURE__ */ new Date(NaN);
|
|
890
929
|
if (L.u(w))
|
|
@@ -894,8 +933,8 @@ var ht = {}, tn = {
|
|
|
894
933
|
if (typeof w == "string" && !/Z$/i.test(w)) {
|
|
895
934
|
var I = w.match(_);
|
|
896
935
|
if (I) {
|
|
897
|
-
var N = I[2] - 1 || 0,
|
|
898
|
-
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);
|
|
899
938
|
}
|
|
900
939
|
}
|
|
901
940
|
return new Date(w);
|
|
@@ -907,66 +946,66 @@ var ht = {}, tn = {
|
|
|
907
946
|
return L;
|
|
908
947
|
}, E.isValid = function() {
|
|
909
948
|
return this.$d.toString() !== h;
|
|
910
|
-
}, E.isSame = function(S,
|
|
949
|
+
}, E.isSame = function(S, x) {
|
|
911
950
|
var w = F(S);
|
|
912
|
-
return this.startOf(
|
|
913
|
-
}, E.isAfter = function(S,
|
|
914
|
-
return F(S) < this.startOf(
|
|
915
|
-
}, E.isBefore = function(S,
|
|
916
|
-
return this.endOf(
|
|
917
|
-
}, E.$g = function(S,
|
|
918
|
-
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);
|
|
919
958
|
}, E.unix = function() {
|
|
920
959
|
return Math.floor(this.valueOf() / 1e3);
|
|
921
960
|
}, E.valueOf = function() {
|
|
922
961
|
return this.$d.getTime();
|
|
923
|
-
}, E.startOf = function(S,
|
|
924
|
-
var w = this,
|
|
925
|
-
var de = L.w(w.$u ? Date.UTC(w.$y,
|
|
926
|
-
return
|
|
927
|
-
},
|
|
928
|
-
return L.w(w.toDate()[fe].apply(w.toDate("s"), (
|
|
929
|
-
}, j = this.$W,
|
|
962
|
+
}, E.startOf = function(S, x) {
|
|
963
|
+
var w = this, O = !!L.u(x) || x, I = L.p(S), N = function(fe, re) {
|
|
964
|
+
var de = L.w(w.$u ? Date.UTC(w.$y, re, fe) : new Date(w.$y, re, fe), 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" : "");
|
|
930
969
|
switch (I) {
|
|
931
970
|
case g:
|
|
932
|
-
return
|
|
971
|
+
return O ? N(1, 0) : N(31, 11);
|
|
933
972
|
case u:
|
|
934
|
-
return
|
|
973
|
+
return O ? N(1, G) : N(0, G + 1);
|
|
935
974
|
case b:
|
|
936
975
|
var pe = this.$locale().weekStart || 0, ye = (j < pe ? j + 7 : j) - pe;
|
|
937
|
-
return N(
|
|
976
|
+
return N(O ? le - ye : le + (6 - ye), G);
|
|
938
977
|
case f:
|
|
939
978
|
case y:
|
|
940
|
-
return
|
|
979
|
+
return H(ce + "Hours", 0);
|
|
941
980
|
case d:
|
|
942
|
-
return
|
|
981
|
+
return H(ce + "Minutes", 1);
|
|
943
982
|
case p:
|
|
944
|
-
return
|
|
983
|
+
return H(ce + "Seconds", 2);
|
|
945
984
|
case l:
|
|
946
|
-
return
|
|
985
|
+
return H(ce + "Milliseconds", 3);
|
|
947
986
|
default:
|
|
948
987
|
return this.clone();
|
|
949
988
|
}
|
|
950
989
|
}, E.endOf = function(S) {
|
|
951
990
|
return this.startOf(S, !1);
|
|
952
|
-
}, E.$set = function(S,
|
|
953
|
-
var w,
|
|
954
|
-
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) {
|
|
955
994
|
var j = this.clone().set(y, 1);
|
|
956
|
-
j.$d[N](
|
|
995
|
+
j.$d[N](H), j.init(), this.$d = j.set(y, Math.min(this.$D, j.daysInMonth())).$d;
|
|
957
996
|
} else
|
|
958
|
-
N && this.$d[N](
|
|
997
|
+
N && this.$d[N](H);
|
|
959
998
|
return this.init(), this;
|
|
960
|
-
}, E.set = function(S,
|
|
961
|
-
return this.clone().$set(S,
|
|
999
|
+
}, E.set = function(S, x) {
|
|
1000
|
+
return this.clone().$set(S, x);
|
|
962
1001
|
}, E.get = function(S) {
|
|
963
1002
|
return this[L.p(S)]();
|
|
964
|
-
}, E.add = function(S,
|
|
965
|
-
var w,
|
|
1003
|
+
}, E.add = function(S, x) {
|
|
1004
|
+
var w, O = this;
|
|
966
1005
|
S = Number(S);
|
|
967
|
-
var I = L.p(
|
|
968
|
-
var le = F(
|
|
969
|
-
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);
|
|
970
1009
|
};
|
|
971
1010
|
if (I === u)
|
|
972
1011
|
return this.set(u, this.$M + S);
|
|
@@ -976,39 +1015,39 @@ var ht = {}, tn = {
|
|
|
976
1015
|
return N(1);
|
|
977
1016
|
if (I === b)
|
|
978
1017
|
return N(7);
|
|
979
|
-
var
|
|
1018
|
+
var H = (w = {}, w[p] = n, w[d] = s, w[l] = r, w)[I] || 1, j = this.$d.getTime() + S * H;
|
|
980
1019
|
return L.w(j, this);
|
|
981
|
-
}, E.subtract = function(S,
|
|
982
|
-
return this.add(-1 * S,
|
|
1020
|
+
}, E.subtract = function(S, x) {
|
|
1021
|
+
return this.add(-1 * S, x);
|
|
983
1022
|
}, E.format = function(S) {
|
|
984
|
-
var
|
|
1023
|
+
var x = this, w = this.$locale();
|
|
985
1024
|
if (!this.isValid())
|
|
986
1025
|
return w.invalidDate || h;
|
|
987
|
-
var
|
|
988
|
-
return
|
|
989
|
-
}, pe = function(
|
|
990
|
-
return L.s(N % 12 || 12,
|
|
991
|
-
}, ye = w.meridiem || function(
|
|
992
|
-
var Te =
|
|
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);
|
|
1028
|
+
}, pe = function(re) {
|
|
1029
|
+
return L.s(N % 12 || 12, re, "0");
|
|
1030
|
+
}, ye = w.meridiem || function(re, de, ve) {
|
|
1031
|
+
var Te = re < 12 ? "AM" : "PM";
|
|
993
1032
|
return ve ? Te.toLowerCase() : Te;
|
|
994
|
-
}, 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,
|
|
995
|
-
return
|
|
996
|
-
return de || fe[
|
|
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) {
|
|
1035
|
+
return de || fe[re] || I.replace(":", "");
|
|
997
1036
|
});
|
|
998
1037
|
}, E.utcOffset = function() {
|
|
999
1038
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1000
|
-
}, E.diff = function(S,
|
|
1001
|
-
var
|
|
1002
|
-
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);
|
|
1003
1042
|
}, E.daysInMonth = function() {
|
|
1004
1043
|
return this.endOf(u).$D;
|
|
1005
1044
|
}, E.$locale = function() {
|
|
1006
|
-
return
|
|
1007
|
-
}, E.locale = function(S,
|
|
1045
|
+
return X[this.$L];
|
|
1046
|
+
}, E.locale = function(S, x) {
|
|
1008
1047
|
if (!S)
|
|
1009
1048
|
return this.$L;
|
|
1010
|
-
var w = this.clone(),
|
|
1011
|
-
return
|
|
1049
|
+
var w = this.clone(), O = Z(S, x, !0);
|
|
1050
|
+
return O && (w.$L = O), w;
|
|
1012
1051
|
}, E.clone = function() {
|
|
1013
1052
|
return L.w(this.$d, this);
|
|
1014
1053
|
}, E.toDate = function() {
|
|
@@ -1020,47 +1059,47 @@ var ht = {}, tn = {
|
|
|
1020
1059
|
}, E.toString = function() {
|
|
1021
1060
|
return this.$d.toUTCString();
|
|
1022
1061
|
}, R;
|
|
1023
|
-
}(),
|
|
1024
|
-
return F.prototype =
|
|
1025
|
-
|
|
1062
|
+
}(), ee = B.prototype;
|
|
1063
|
+
return F.prototype = ee, [["$ms", o], ["$s", l], ["$m", p], ["$H", d], ["$W", f], ["$M", u], ["$y", g], ["$D", y]].forEach(function(R) {
|
|
1064
|
+
ee[R[1]] = function(E) {
|
|
1026
1065
|
return this.$g(E, R[0], R[1]);
|
|
1027
1066
|
};
|
|
1028
1067
|
}), F.extend = function(R, E) {
|
|
1029
1068
|
return R.$i || (R(E, B, F), R.$i = !0), F;
|
|
1030
1069
|
}, F.locale = Z, F.isDayjs = Y, F.unix = function(R) {
|
|
1031
1070
|
return F(1e3 * R);
|
|
1032
|
-
}, F.en =
|
|
1071
|
+
}, F.en = X[te], F.Ls = X, F.p = {}, F;
|
|
1033
1072
|
});
|
|
1034
|
-
})(
|
|
1035
|
-
const
|
|
1073
|
+
})(an);
|
|
1074
|
+
const zt = mt, on = {
|
|
1036
1075
|
list: async ({
|
|
1037
1076
|
pagination: e
|
|
1038
1077
|
}, t) => {
|
|
1039
|
-
const r = await
|
|
1078
|
+
const r = await ae.post(t)("/sql_snippet/list", {
|
|
1040
1079
|
sort: [{
|
|
1041
1080
|
field: "update_time",
|
|
1042
1081
|
order: "DESC"
|
|
1043
1082
|
}],
|
|
1044
1083
|
pagination: e
|
|
1045
|
-
});
|
|
1084
|
+
}, {});
|
|
1046
1085
|
return r.data.forEach((n) => {
|
|
1047
|
-
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");
|
|
1048
1087
|
}), r;
|
|
1049
1088
|
},
|
|
1050
|
-
get: async (e, t) => await
|
|
1089
|
+
get: async (e, t) => await ae.post(t)("/sql_snippet/get", {
|
|
1051
1090
|
id: e
|
|
1052
|
-
}),
|
|
1053
|
-
create: async (e, t) => await
|
|
1054
|
-
update: async (e, t) => await
|
|
1055
|
-
delete: async (e, t) =>
|
|
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", {
|
|
1056
1095
|
id: e
|
|
1057
|
-
})
|
|
1096
|
+
}, {})
|
|
1058
1097
|
}, oe = {
|
|
1059
|
-
datasource:
|
|
1060
|
-
account:
|
|
1061
|
-
role:
|
|
1062
|
-
api_key:
|
|
1063
|
-
sql_snippet:
|
|
1098
|
+
datasource: rn,
|
|
1099
|
+
account: en,
|
|
1100
|
+
role: nn,
|
|
1101
|
+
api_key: tn,
|
|
1102
|
+
sql_snippet: on
|
|
1064
1103
|
}, Se = {
|
|
1065
1104
|
size: "sm",
|
|
1066
1105
|
spacing: "md",
|
|
@@ -1068,7 +1107,7 @@ const $t = ht, rn = {
|
|
|
1068
1107
|
size: "xs"
|
|
1069
1108
|
}
|
|
1070
1109
|
};
|
|
1071
|
-
function
|
|
1110
|
+
function sn({
|
|
1072
1111
|
submit: e,
|
|
1073
1112
|
styles: t = Se,
|
|
1074
1113
|
type: r
|
|
@@ -1090,52 +1129,52 @@ function nn({
|
|
|
1090
1129
|
}
|
|
1091
1130
|
}
|
|
1092
1131
|
});
|
|
1093
|
-
return
|
|
1132
|
+
return yt(() => {
|
|
1094
1133
|
s("type", r);
|
|
1095
1134
|
}, [s, r]), /* @__PURE__ */ a(se, { mx: "auto", children: /* @__PURE__ */ C("form", { onSubmit: o(e), children: [
|
|
1096
|
-
/* @__PURE__ */ a(
|
|
1135
|
+
/* @__PURE__ */ a(q, { name: "key", control: n, render: ({
|
|
1097
1136
|
field: l
|
|
1098
1137
|
}) => /* @__PURE__ */ a(ue, { mb: t.spacing, size: t.size, required: !0, label: "Name", placeholder: "A unique name", ...l }) }),
|
|
1099
|
-
/* @__PURE__ */ a(
|
|
1100
|
-
/* @__PURE__ */ C(
|
|
1101
|
-
/* @__PURE__ */ a(
|
|
1138
|
+
/* @__PURE__ */ a(et, { label: "Connection Info", labelPosition: "center" }),
|
|
1139
|
+
/* @__PURE__ */ C(Q, { grow: !0, children: [
|
|
1140
|
+
/* @__PURE__ */ a(q, { name: "config.host", control: n, render: ({
|
|
1102
1141
|
field: l
|
|
1103
1142
|
}) => /* @__PURE__ */ a(ue, { mb: t.spacing, size: t.size, required: !0, label: "Host", sx: {
|
|
1104
1143
|
flexGrow: 1
|
|
1105
1144
|
}, ...l }) }),
|
|
1106
|
-
/* @__PURE__ */ a(
|
|
1145
|
+
/* @__PURE__ */ a(q, { name: "config.port", control: n, render: ({
|
|
1107
1146
|
field: l
|
|
1108
1147
|
}) => (
|
|
1109
1148
|
// @ts-expect-error type of onChange
|
|
1110
|
-
/* @__PURE__ */ a(
|
|
1149
|
+
/* @__PURE__ */ a(Tr, { mb: t.spacing, size: t.size, required: !0, label: "Port", hideControls: !0, sx: {
|
|
1111
1150
|
width: "8em"
|
|
1112
1151
|
}, ...l })
|
|
1113
1152
|
) })
|
|
1114
1153
|
] }),
|
|
1115
|
-
/* @__PURE__ */ a(
|
|
1154
|
+
/* @__PURE__ */ a(q, { name: "config.username", control: n, render: ({
|
|
1116
1155
|
field: l
|
|
1117
1156
|
}) => /* @__PURE__ */ a(ue, { mb: t.spacing, size: t.size, required: !0, label: "Username", ...l }) }),
|
|
1118
|
-
/* @__PURE__ */ a(
|
|
1157
|
+
/* @__PURE__ */ a(q, { name: "config.password", control: n, render: ({
|
|
1119
1158
|
field: l
|
|
1120
|
-
}) => /* @__PURE__ */ a(
|
|
1121
|
-
/* @__PURE__ */ a(
|
|
1159
|
+
}) => /* @__PURE__ */ a(tt, { mb: t.spacing, size: t.size, required: !0, label: "Password", ...l }) }),
|
|
1160
|
+
/* @__PURE__ */ a(q, { name: "config.database", control: n, render: ({
|
|
1122
1161
|
field: l
|
|
1123
1162
|
}) => /* @__PURE__ */ a(ue, { mb: t.spacing, size: t.size, required: !0, label: "Database", ...l }) }),
|
|
1124
|
-
/* @__PURE__ */ a(
|
|
1163
|
+
/* @__PURE__ */ a(Q, { position: "right", mt: t.spacing, children: /* @__PURE__ */ a(V, { type: "submit", size: t.button.size, children: "Save" }) })
|
|
1125
1164
|
] }) });
|
|
1126
1165
|
}
|
|
1127
|
-
const
|
|
1166
|
+
const ln = ({
|
|
1128
1167
|
value: e,
|
|
1129
1168
|
onChange: t
|
|
1130
1169
|
}) => /* @__PURE__ */ a(se, { sx: {
|
|
1131
1170
|
position: "relative"
|
|
1132
|
-
}, children: /* @__PURE__ */ a(
|
|
1171
|
+
}, children: /* @__PURE__ */ a(Vt, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (n) => {
|
|
1133
1172
|
n && t(n);
|
|
1134
1173
|
}, theme: "vs-dark", options: {
|
|
1135
1174
|
minimap: {
|
|
1136
1175
|
enabled: !1
|
|
1137
1176
|
}
|
|
1138
|
-
} }) }),
|
|
1177
|
+
} }) }), Ze = Je(({
|
|
1139
1178
|
value: e,
|
|
1140
1179
|
onChange: t,
|
|
1141
1180
|
label: r,
|
|
@@ -1146,37 +1185,37 @@ const an = ({
|
|
|
1146
1185
|
const [p, {
|
|
1147
1186
|
setTrue: d,
|
|
1148
1187
|
setFalse: f
|
|
1149
|
-
}] =
|
|
1188
|
+
}] = Pr(), [b, u] = Ht(e), c = () => {
|
|
1150
1189
|
f(), t(b);
|
|
1151
1190
|
}, g = () => {
|
|
1152
1191
|
f(), u(e);
|
|
1153
1192
|
}, y = () => {
|
|
1154
1193
|
u(s);
|
|
1155
1194
|
};
|
|
1156
|
-
return
|
|
1195
|
+
return yt(() => {
|
|
1157
1196
|
u(e);
|
|
1158
1197
|
}, [e]), /* @__PURE__ */ C(he, { children: [
|
|
1159
1198
|
/* @__PURE__ */ a(V, { variant: "filled", size: o.button.size, onClick: d, sx: {
|
|
1160
1199
|
flexGrow: 1
|
|
1161
1200
|
}, children: r }),
|
|
1162
|
-
/* @__PURE__ */ a(Ae, { size: 800, title: n, opened: p, onClose: f, closeOnClickOutside: !1, withCloseButton: !1, children: p && /* @__PURE__ */ C(
|
|
1163
|
-
/* @__PURE__ */ a(
|
|
1164
|
-
/* @__PURE__ */ C(
|
|
1165
|
-
/* @__PURE__ */ a(V, { onClick: y, color: "red", leftIcon: /* @__PURE__ */ a(
|
|
1166
|
-
/* @__PURE__ */ C(
|
|
1201
|
+
/* @__PURE__ */ a(Ae, { size: 800, title: n, opened: p, onClose: f, closeOnClickOutside: !1, withCloseButton: !1, children: p && /* @__PURE__ */ C(je, { children: [
|
|
1202
|
+
/* @__PURE__ */ a(ln, { value: b, onChange: u }),
|
|
1203
|
+
/* @__PURE__ */ C(Q, { position: "apart", children: [
|
|
1204
|
+
/* @__PURE__ */ a(V, { onClick: y, color: "red", leftIcon: /* @__PURE__ */ a(Lr, { size: 20 }), children: "Reset" }),
|
|
1205
|
+
/* @__PURE__ */ C(Q, { position: "right", children: [
|
|
1167
1206
|
/* @__PURE__ */ a(V, { onClick: g, variant: "subtle", children: "Cancel" }),
|
|
1168
1207
|
/* @__PURE__ */ a(V, { onClick: c, children: "OK" })
|
|
1169
1208
|
] })
|
|
1170
1209
|
] })
|
|
1171
1210
|
] }) })
|
|
1172
1211
|
] });
|
|
1173
|
-
}),
|
|
1212
|
+
}), We = {
|
|
1174
1213
|
pre: ["function pre_process({ method, url, params, headers, data }, utils) {", " // your code goes here", " return { method, url, params, headers, data }", "}"].join(`
|
|
1175
1214
|
`),
|
|
1176
1215
|
post: ["function post_process(res, utils) {", " // your code goes here", " return data", "}"].join(`
|
|
1177
1216
|
`)
|
|
1178
1217
|
};
|
|
1179
|
-
function
|
|
1218
|
+
function un({
|
|
1180
1219
|
submit: e,
|
|
1181
1220
|
styles: t = Se
|
|
1182
1221
|
}) {
|
|
@@ -1191,47 +1230,47 @@ function on({
|
|
|
1191
1230
|
config: {
|
|
1192
1231
|
host: "",
|
|
1193
1232
|
processing: {
|
|
1194
|
-
pre:
|
|
1195
|
-
post:
|
|
1233
|
+
pre: We.pre,
|
|
1234
|
+
post: We.post
|
|
1196
1235
|
}
|
|
1197
1236
|
}
|
|
1198
1237
|
}
|
|
1199
1238
|
});
|
|
1200
1239
|
return /* @__PURE__ */ a(se, { mx: "auto", children: /* @__PURE__ */ C("form", { onSubmit: s(e), children: [
|
|
1201
|
-
/* @__PURE__ */ a(
|
|
1240
|
+
/* @__PURE__ */ a(q, { name: "key", control: r, render: ({
|
|
1202
1241
|
field: o
|
|
1203
1242
|
}) => /* @__PURE__ */ a(ue, { mb: t.spacing, size: t.size, required: !0, label: "Name", placeholder: "A unique name", ...o }) }),
|
|
1204
|
-
/* @__PURE__ */ a(
|
|
1205
|
-
/* @__PURE__ */ a(
|
|
1243
|
+
/* @__PURE__ */ a(et, { label: "Connection Info", labelPosition: "center" }),
|
|
1244
|
+
/* @__PURE__ */ a(q, { name: "config.host", control: r, render: ({
|
|
1206
1245
|
field: o
|
|
1207
|
-
}) => /* @__PURE__ */ a(ue, { mb: t.spacing, size: t.size,
|
|
1246
|
+
}) => /* @__PURE__ */ a(ue, { mb: t.spacing, size: t.size, label: "Base URL", sx: {
|
|
1208
1247
|
flexGrow: 1
|
|
1209
1248
|
}, ...o }) }),
|
|
1210
|
-
/* @__PURE__ */ C(
|
|
1211
|
-
/* @__PURE__ */ a(
|
|
1249
|
+
/* @__PURE__ */ C(Q, { grow: !0, children: [
|
|
1250
|
+
/* @__PURE__ */ a(q, { name: "config.processing.pre", control: r, render: ({
|
|
1212
1251
|
field: o
|
|
1213
|
-
}) => /* @__PURE__ */ a(
|
|
1214
|
-
/* @__PURE__ */ a(
|
|
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 }) }),
|
|
1253
|
+
/* @__PURE__ */ a(q, { name: "config.processing.post", control: r, render: ({
|
|
1215
1254
|
field: o
|
|
1216
|
-
}) => /* @__PURE__ */ a(
|
|
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 }) })
|
|
1217
1256
|
] }),
|
|
1218
|
-
/* @__PURE__ */ a(
|
|
1257
|
+
/* @__PURE__ */ a(Q, { position: "right", mt: t.spacing, children: /* @__PURE__ */ a(V, { type: "submit", size: t.button.size, children: "Save" }) })
|
|
1219
1258
|
] }) });
|
|
1220
1259
|
}
|
|
1221
|
-
function
|
|
1260
|
+
function cn({
|
|
1222
1261
|
styles: e = Se
|
|
1223
1262
|
}) {
|
|
1224
|
-
return /* @__PURE__ */ a(se, { mx: "auto", children: /* @__PURE__ */ C(
|
|
1263
|
+
return /* @__PURE__ */ a(se, { mx: "auto", children: /* @__PURE__ */ C(Rr, { mt: e.spacing, icon: /* @__PURE__ */ a(Fr, { size: 16 }), children: [
|
|
1225
1264
|
"Only ",
|
|
1226
1265
|
/* @__PURE__ */ a("b", { children: "SELECT" }),
|
|
1227
1266
|
" privilege is needed."
|
|
1228
1267
|
] }) });
|
|
1229
1268
|
}
|
|
1230
|
-
function
|
|
1269
|
+
function dn({
|
|
1231
1270
|
postSubmit: e,
|
|
1232
1271
|
styles: t = Se
|
|
1233
1272
|
}) {
|
|
1234
|
-
const [r, n] =
|
|
1273
|
+
const [r, n] = Ht("postgresql"), s = async ({
|
|
1235
1274
|
type: p,
|
|
1236
1275
|
key: d,
|
|
1237
1276
|
config: f
|
|
@@ -1247,14 +1286,14 @@ function ln({
|
|
|
1247
1286
|
type: p,
|
|
1248
1287
|
key: d,
|
|
1249
1288
|
config: f
|
|
1250
|
-
}), await oe.datasource.create(p, d, f),
|
|
1289
|
+
}), await oe.datasource.create(p, d, f), J({
|
|
1251
1290
|
id: "for-creating",
|
|
1252
1291
|
title: "Successful",
|
|
1253
1292
|
message: "Data source is added",
|
|
1254
1293
|
color: "green"
|
|
1255
1294
|
}), e();
|
|
1256
1295
|
} catch (b) {
|
|
1257
|
-
|
|
1296
|
+
J({
|
|
1258
1297
|
id: "for-creating",
|
|
1259
1298
|
title: "Failed",
|
|
1260
1299
|
message: b.message,
|
|
@@ -1263,7 +1302,7 @@ function ln({
|
|
|
1263
1302
|
}
|
|
1264
1303
|
}, o = r === "postgresql" || r === "mysql", l = r === "http";
|
|
1265
1304
|
return /* @__PURE__ */ C(se, { mx: "auto", children: [
|
|
1266
|
-
/* @__PURE__ */ a(
|
|
1305
|
+
/* @__PURE__ */ a(xr, { fullWidth: !0, mb: t.spacing, size: t.size, data: [{
|
|
1267
1306
|
label: "PostgreSQL",
|
|
1268
1307
|
value: "postgresql"
|
|
1269
1308
|
}, {
|
|
@@ -1273,12 +1312,12 @@ function ln({
|
|
|
1273
1312
|
label: "HTTP",
|
|
1274
1313
|
value: "http"
|
|
1275
1314
|
}], value: r, onChange: (p) => n(p) }),
|
|
1276
|
-
o && /* @__PURE__ */ a(
|
|
1277
|
-
o && /* @__PURE__ */ a(
|
|
1278
|
-
l && /* @__PURE__ */ a(
|
|
1315
|
+
o && /* @__PURE__ */ a(cn, { styles: t }),
|
|
1316
|
+
o && /* @__PURE__ */ a(sn, { submit: s, styles: t, type: r }),
|
|
1317
|
+
l && /* @__PURE__ */ a(un, { submit: s, styles: t })
|
|
1279
1318
|
] });
|
|
1280
1319
|
}
|
|
1281
|
-
function
|
|
1320
|
+
function pn({
|
|
1282
1321
|
onSuccess: e,
|
|
1283
1322
|
styles: t = Se
|
|
1284
1323
|
}) {
|
|
@@ -1286,40 +1325,40 @@ function un({
|
|
|
1286
1325
|
return /* @__PURE__ */ C(he, { children: [
|
|
1287
1326
|
/* @__PURE__ */ a(Ae, { opened: r, onClose: () => n(!1), title: "Add a data source", trapFocus: !0, onDragStart: (p) => {
|
|
1288
1327
|
p.stopPropagation();
|
|
1289
|
-
}, children: /* @__PURE__ */ a(
|
|
1328
|
+
}, children: /* @__PURE__ */ a(dn, { postSubmit: () => {
|
|
1290
1329
|
e(), o();
|
|
1291
1330
|
}, styles: t }) }),
|
|
1292
|
-
/* @__PURE__ */ a(V, { size: t.button.size, onClick: s, leftIcon: /* @__PURE__ */ a(
|
|
1331
|
+
/* @__PURE__ */ a(V, { size: t.button.size, onClick: s, leftIcon: /* @__PURE__ */ a(it, { size: 20 }), children: "Add a Data Source" })
|
|
1293
1332
|
] });
|
|
1294
1333
|
}
|
|
1295
|
-
const
|
|
1296
|
-
function
|
|
1297
|
-
|
|
1298
|
-
if (
|
|
1334
|
+
const gn = (e) => e.replace(/([^:])(\/\/+)/g, "$1/");
|
|
1335
|
+
function fn(e) {
|
|
1336
|
+
yt(() => {
|
|
1337
|
+
if (ft.__getMonacoInstance())
|
|
1299
1338
|
return;
|
|
1300
1339
|
console.log("loading monaco for @devtable/settings-form");
|
|
1301
|
-
const r =
|
|
1302
|
-
|
|
1340
|
+
const r = gn(e);
|
|
1341
|
+
ft.config({
|
|
1303
1342
|
paths: {
|
|
1304
1343
|
vs: r
|
|
1305
1344
|
}
|
|
1306
|
-
}),
|
|
1345
|
+
}), ft.init().then((n) => console.log("monaco instance:", n));
|
|
1307
1346
|
}, []);
|
|
1308
1347
|
}
|
|
1309
|
-
function
|
|
1348
|
+
function hn({
|
|
1310
1349
|
id: e,
|
|
1311
1350
|
name: t,
|
|
1312
1351
|
isProtected: r,
|
|
1313
1352
|
onSuccess: n,
|
|
1314
1353
|
styles: s = Se
|
|
1315
1354
|
}) {
|
|
1316
|
-
const o =
|
|
1355
|
+
const o = Ge(), l = async () => {
|
|
1317
1356
|
e && (be({
|
|
1318
1357
|
id: "for-deleting",
|
|
1319
1358
|
title: "Pending",
|
|
1320
1359
|
message: "Deleting data source...",
|
|
1321
1360
|
loading: !0
|
|
1322
|
-
}), await oe.datasource.delete(e),
|
|
1361
|
+
}), await oe.datasource.delete(e), J({
|
|
1323
1362
|
id: "for-deleting",
|
|
1324
1363
|
title: "Successful",
|
|
1325
1364
|
message: `Data source [${t}] is deleted`,
|
|
@@ -1335,13 +1374,13 @@ function pn({
|
|
|
1335
1374
|
onCancel: () => console.log("Cancel"),
|
|
1336
1375
|
onConfirm: l
|
|
1337
1376
|
});
|
|
1338
|
-
return r ? /* @__PURE__ */ a(
|
|
1377
|
+
return r ? /* @__PURE__ */ a(Ke, { withArrow: !0, events: {
|
|
1339
1378
|
hover: !0,
|
|
1340
1379
|
touch: !1,
|
|
1341
1380
|
focus: !1
|
|
1342
|
-
}, label: "This is a preset datasource, it can not be deleted", children: /* @__PURE__ */ a(V, { size: s.button.size, color: "gray", variant: "light", leftIcon: /* @__PURE__ */ a(
|
|
1381
|
+
}, label: "This is a preset datasource, it can not be deleted", children: /* @__PURE__ */ a(V, { size: s.button.size, color: "gray", variant: "light", leftIcon: /* @__PURE__ */ a(Wt, { size: 16 }), sx: {
|
|
1343
1382
|
transform: "none !important"
|
|
1344
|
-
}, children: "Delete" }) }) : /* @__PURE__ */ a(V, { size: s.button.size, color: "red", onClick: p, leftIcon: /* @__PURE__ */ a(
|
|
1383
|
+
}, children: "Delete" }) }) : /* @__PURE__ */ a(V, { size: s.button.size, color: "red", onClick: p, leftIcon: /* @__PURE__ */ a(ot, { size: 16 }), children: "Delete" });
|
|
1345
1384
|
}
|
|
1346
1385
|
const Pt = {
|
|
1347
1386
|
pre: ["function pre_process({ method, url, params, headers, data }, utils) {", " // your code goes here", " return { method, url, params, headers, data }", "}"].join(`
|
|
@@ -1349,7 +1388,7 @@ const Pt = {
|
|
|
1349
1388
|
post: ["function post_process(res, utils) {", " // your code goes here", " return data", "}"].join(`
|
|
1350
1389
|
`)
|
|
1351
1390
|
};
|
|
1352
|
-
function
|
|
1391
|
+
function mn({
|
|
1353
1392
|
name: e,
|
|
1354
1393
|
config: t,
|
|
1355
1394
|
submit: r,
|
|
@@ -1365,24 +1404,24 @@ function gn({
|
|
|
1365
1404
|
});
|
|
1366
1405
|
return /* @__PURE__ */ a(se, { mx: "auto", children: /* @__PURE__ */ C("form", { onSubmit: o(r), children: [
|
|
1367
1406
|
/* @__PURE__ */ a(ue, { mb: n.spacing, size: n.size, required: !0, label: "Name", value: e, readOnly: !0 }),
|
|
1368
|
-
/* @__PURE__ */ a(
|
|
1369
|
-
/* @__PURE__ */ a(
|
|
1407
|
+
/* @__PURE__ */ a(et, { label: "Connection Info", labelPosition: "center" }),
|
|
1408
|
+
/* @__PURE__ */ a(q, { name: "config.host", control: s, render: ({
|
|
1370
1409
|
field: l
|
|
1371
1410
|
}) => /* @__PURE__ */ a(ue, { mb: n.spacing, size: n.size, label: "Base URL", sx: {
|
|
1372
1411
|
flexGrow: 1
|
|
1373
1412
|
}, ...l }) }),
|
|
1374
|
-
/* @__PURE__ */ C(
|
|
1375
|
-
/* @__PURE__ */ a(
|
|
1413
|
+
/* @__PURE__ */ C(Q, { grow: !0, children: [
|
|
1414
|
+
/* @__PURE__ */ a(q, { name: "config.processing.pre", control: s, render: ({
|
|
1376
1415
|
field: l
|
|
1377
|
-
}) => /* @__PURE__ */ a(
|
|
1378
|
-
/* @__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: ({
|
|
1379
1418
|
field: l
|
|
1380
|
-
}) => /* @__PURE__ */ a(
|
|
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 }) })
|
|
1381
1420
|
] }),
|
|
1382
|
-
/* @__PURE__ */ a(
|
|
1421
|
+
/* @__PURE__ */ a(Q, { position: "right", mt: n.spacing, children: /* @__PURE__ */ a(V, { type: "submit", size: n.button.size, children: "Save" }) })
|
|
1383
1422
|
] }) });
|
|
1384
1423
|
}
|
|
1385
|
-
function
|
|
1424
|
+
function bn({
|
|
1386
1425
|
dataSource: e,
|
|
1387
1426
|
postSubmit: t,
|
|
1388
1427
|
styles: r = Se
|
|
@@ -1399,14 +1438,14 @@ function fn({
|
|
|
1399
1438
|
try {
|
|
1400
1439
|
console.log({
|
|
1401
1440
|
config: s
|
|
1402
|
-
}), await oe.datasource.update(e.id, s),
|
|
1441
|
+
}), await oe.datasource.update(e.id, s), J({
|
|
1403
1442
|
id: "for-updating",
|
|
1404
1443
|
title: "Successful",
|
|
1405
1444
|
message: "Data source is updated",
|
|
1406
1445
|
color: "green"
|
|
1407
1446
|
}), t();
|
|
1408
1447
|
} catch (o) {
|
|
1409
|
-
|
|
1448
|
+
J({
|
|
1410
1449
|
id: "for-updating",
|
|
1411
1450
|
title: "Failed",
|
|
1412
1451
|
message: o.message,
|
|
@@ -1414,9 +1453,9 @@ function fn({
|
|
|
1414
1453
|
});
|
|
1415
1454
|
}
|
|
1416
1455
|
};
|
|
1417
|
-
return e.config ? /* @__PURE__ */ a(se, { mx: "auto", children: /* @__PURE__ */ a(
|
|
1456
|
+
return e.config ? /* @__PURE__ */ a(se, { mx: "auto", children: /* @__PURE__ */ a(mn, { name: e.key, config: e.config, submit: n, styles: r }) }) : (console.error(new Error("unexpected empty config of a http datasource")), null);
|
|
1418
1457
|
}
|
|
1419
|
-
function
|
|
1458
|
+
function yn({
|
|
1420
1459
|
dataSource: e,
|
|
1421
1460
|
onSuccess: t,
|
|
1422
1461
|
styles: r = Se
|
|
@@ -1424,57 +1463,57 @@ function hn({
|
|
|
1424
1463
|
const [n, s] = K.useState(!1), o = () => s(!0), l = () => s(!1), p = () => {
|
|
1425
1464
|
t(), l();
|
|
1426
1465
|
};
|
|
1427
|
-
return e.is_preset ? /* @__PURE__ */ a(
|
|
1466
|
+
return e.is_preset ? /* @__PURE__ */ a(Ke, { withArrow: !0, events: {
|
|
1428
1467
|
hover: !0,
|
|
1429
1468
|
touch: !1,
|
|
1430
1469
|
focus: !1
|
|
1431
|
-
}, label: "This is a preset datasource, it can not be changed", children: /* @__PURE__ */ a(V, { size: r.button.size, color: "gray", variant: "light", leftIcon: /* @__PURE__ */ a(
|
|
1470
|
+
}, label: "This is a preset datasource, it can not be changed", children: /* @__PURE__ */ a(V, { size: r.button.size, color: "gray", variant: "light", leftIcon: /* @__PURE__ */ a(Wt, { size: 16 }), sx: {
|
|
1432
1471
|
transform: "none !important"
|
|
1433
|
-
}, children: "Edit" }) }) : e.type !== "http" ? /* @__PURE__ */ a(
|
|
1472
|
+
}, children: "Edit" }) }) : e.type !== "http" ? /* @__PURE__ */ a(Ke, { withArrow: !0, events: {
|
|
1434
1473
|
hover: !0,
|
|
1435
1474
|
touch: !1,
|
|
1436
1475
|
focus: !1
|
|
1437
|
-
}, label: "Only HTTP datasources can be edited", children: /* @__PURE__ */ a(V, { size: r.button.size, color: "gray", variant: "light", leftIcon: /* @__PURE__ */ a(
|
|
1476
|
+
}, label: "Only HTTP datasources can be edited", children: /* @__PURE__ */ a(V, { size: r.button.size, color: "gray", variant: "light", leftIcon: /* @__PURE__ */ a(ht, { size: 16 }), sx: {
|
|
1438
1477
|
transform: "none !important"
|
|
1439
1478
|
}, children: "Edit" }) }) : /* @__PURE__ */ C(he, { children: [
|
|
1440
1479
|
/* @__PURE__ */ a(Ae, { opened: n, onClose: () => s(!1), title: "Add a data source", trapFocus: !0, onDragStart: (d) => {
|
|
1441
1480
|
d.stopPropagation();
|
|
1442
|
-
}, children: /* @__PURE__ */ a(
|
|
1443
|
-
/* @__PURE__ */ a(V, { size: r.button.size, color: "blue", onClick: o, leftIcon: /* @__PURE__ */ a(
|
|
1481
|
+
}, children: /* @__PURE__ */ a(bn, { dataSource: e, postSubmit: p, styles: r }) }),
|
|
1482
|
+
/* @__PURE__ */ a(V, { size: r.button.size, color: "blue", onClick: o, leftIcon: /* @__PURE__ */ a(ht, { size: 16 }), children: "Edit" })
|
|
1444
1483
|
] });
|
|
1445
1484
|
}
|
|
1446
|
-
const
|
|
1485
|
+
const vn = {
|
|
1447
1486
|
http: "HTTP",
|
|
1448
1487
|
mysql: "MySQL",
|
|
1449
1488
|
postgresql: "PostgreSQL"
|
|
1450
|
-
},
|
|
1489
|
+
}, Sn = {
|
|
1451
1490
|
http: /* @__PURE__ */ a(Br, {}),
|
|
1452
1491
|
mysql: /* @__PURE__ */ a(jr, {}),
|
|
1453
|
-
postgresql: /* @__PURE__ */ a(
|
|
1492
|
+
postgresql: /* @__PURE__ */ a(Gr, {})
|
|
1454
1493
|
};
|
|
1455
|
-
function
|
|
1494
|
+
function wn({
|
|
1456
1495
|
type: e
|
|
1457
1496
|
}) {
|
|
1458
|
-
return /* @__PURE__ */ C(
|
|
1459
|
-
/* @__PURE__ */ a(
|
|
1497
|
+
return /* @__PURE__ */ C(Q, { children: [
|
|
1498
|
+
/* @__PURE__ */ a(vt, { size: "xs", sx: {
|
|
1460
1499
|
transform: "none !important"
|
|
1461
|
-
}, children:
|
|
1500
|
+
}, children: Sn[e] }),
|
|
1462
1501
|
/* @__PURE__ */ a(Re, { sx: {
|
|
1463
1502
|
cusor: "default",
|
|
1464
1503
|
userSelect: "none"
|
|
1465
|
-
}, children:
|
|
1504
|
+
}, children: vn[e] })
|
|
1466
1505
|
] });
|
|
1467
1506
|
}
|
|
1468
|
-
function
|
|
1507
|
+
function Ea({
|
|
1469
1508
|
styles: e = Se,
|
|
1470
1509
|
config: t
|
|
1471
1510
|
}) {
|
|
1472
|
-
|
|
1511
|
+
fn(t.monacoPath), Ue(t);
|
|
1473
1512
|
const {
|
|
1474
1513
|
data: r = [],
|
|
1475
1514
|
loading: n,
|
|
1476
1515
|
refresh: s
|
|
1477
|
-
} =
|
|
1516
|
+
} = xe(async () => {
|
|
1478
1517
|
const {
|
|
1479
1518
|
data: o
|
|
1480
1519
|
} = await oe.datasource.list();
|
|
@@ -1483,12 +1522,12 @@ function wa({
|
|
|
1483
1522
|
refreshDeps: []
|
|
1484
1523
|
});
|
|
1485
1524
|
return /* @__PURE__ */ C(he, { children: [
|
|
1486
|
-
/* @__PURE__ */ a(
|
|
1525
|
+
/* @__PURE__ */ a(Q, { pt: e.spacing, position: "right", children: /* @__PURE__ */ a(pn, { onSuccess: s }) }),
|
|
1487
1526
|
/* @__PURE__ */ C(se, { mt: e.spacing, sx: {
|
|
1488
1527
|
position: "relative"
|
|
1489
1528
|
}, children: [
|
|
1490
|
-
/* @__PURE__ */ a(
|
|
1491
|
-
/* @__PURE__ */ C(
|
|
1529
|
+
/* @__PURE__ */ a(rt, { visible: n }),
|
|
1530
|
+
/* @__PURE__ */ C(nt, { horizontalSpacing: e.spacing, verticalSpacing: e.spacing, fontSize: e.size, highlightOnHover: !0, children: [
|
|
1492
1531
|
/* @__PURE__ */ a("thead", { children: /* @__PURE__ */ C("tr", { children: [
|
|
1493
1532
|
/* @__PURE__ */ a("th", { children: "Type" }),
|
|
1494
1533
|
/* @__PURE__ */ a("th", { children: "Name" }),
|
|
@@ -1502,11 +1541,11 @@ function wa({
|
|
|
1502
1541
|
is_preset: f
|
|
1503
1542
|
} = o;
|
|
1504
1543
|
return /* @__PURE__ */ C("tr", { children: [
|
|
1505
|
-
/* @__PURE__ */ a("td", { width: 200, children: /* @__PURE__ */ a(
|
|
1544
|
+
/* @__PURE__ */ a("td", { width: 200, children: /* @__PURE__ */ a(wn, { type: d }) }),
|
|
1506
1545
|
/* @__PURE__ */ a("td", { children: p }),
|
|
1507
|
-
/* @__PURE__ */ a("td", { width: 400, children: /* @__PURE__ */ C(
|
|
1508
|
-
/* @__PURE__ */ a(
|
|
1509
|
-
/* @__PURE__ */ a(
|
|
1546
|
+
/* @__PURE__ */ a("td", { width: 400, children: /* @__PURE__ */ C(Q, { position: "left", children: [
|
|
1547
|
+
/* @__PURE__ */ a(yn, { dataSource: o, onSuccess: s, styles: e }),
|
|
1548
|
+
/* @__PURE__ */ a(hn, { isProtected: f, id: l, name: p, onSuccess: s, styles: e })
|
|
1510
1549
|
] }) })
|
|
1511
1550
|
] }, p);
|
|
1512
1551
|
}) })
|
|
@@ -1514,15 +1553,15 @@ function wa({
|
|
|
1514
1553
|
] })
|
|
1515
1554
|
] });
|
|
1516
1555
|
}
|
|
1517
|
-
const
|
|
1556
|
+
const En = Je(({
|
|
1518
1557
|
label: e,
|
|
1519
1558
|
value: t,
|
|
1520
1559
|
description: r,
|
|
1521
1560
|
...n
|
|
1522
|
-
}, s) => /* @__PURE__ */ C(
|
|
1561
|
+
}, s) => /* @__PURE__ */ C(je, { spacing: 2, ref: s, ...n, children: [
|
|
1523
1562
|
/* @__PURE__ */ a(Re, { size: "sm", children: e }),
|
|
1524
1563
|
/* @__PURE__ */ a(Re, { size: "xs", color: "dimmed", className: "role-description", children: r })
|
|
1525
|
-
] })),
|
|
1564
|
+
] })), St = Je(({
|
|
1526
1565
|
styles: e,
|
|
1527
1566
|
value: t,
|
|
1528
1567
|
onChange: r
|
|
@@ -1530,7 +1569,7 @@ const vn = Qe(({
|
|
|
1530
1569
|
const {
|
|
1531
1570
|
data: s = [],
|
|
1532
1571
|
loading: o
|
|
1533
|
-
} =
|
|
1572
|
+
} = xe(async () => (await oe.role.list()).map((p) => ({
|
|
1534
1573
|
label: p.id,
|
|
1535
1574
|
value: p.id,
|
|
1536
1575
|
description: p.description,
|
|
@@ -1538,7 +1577,7 @@ const vn = Qe(({
|
|
|
1538
1577
|
})), {
|
|
1539
1578
|
refreshDeps: []
|
|
1540
1579
|
});
|
|
1541
|
-
return /* @__PURE__ */ a(Or, { ref: n, mb: e.spacing, size: e.size, required: !0, label: "Role", itemComponent:
|
|
1580
|
+
return /* @__PURE__ */ a(Or, { ref: n, mb: e.spacing, size: e.size, required: !0, label: "Role", itemComponent: En, data: s, disabled: o, styles: () => ({
|
|
1542
1581
|
item: {
|
|
1543
1582
|
"&[data-selected]": {
|
|
1544
1583
|
"&, &:hover": {
|
|
@@ -1556,7 +1595,7 @@ const vn = Qe(({
|
|
|
1556
1595
|
size: "xs"
|
|
1557
1596
|
}
|
|
1558
1597
|
};
|
|
1559
|
-
function
|
|
1598
|
+
function _n({
|
|
1560
1599
|
postSubmit: e,
|
|
1561
1600
|
styles: t = ke,
|
|
1562
1601
|
initialRoleID: r
|
|
@@ -1584,14 +1623,14 @@ function Sn({
|
|
|
1584
1623
|
title: "Pending",
|
|
1585
1624
|
message: "Adding account...",
|
|
1586
1625
|
loading: !0
|
|
1587
|
-
}), await oe.account.create(l, p, d, f),
|
|
1626
|
+
}), await oe.account.create(l, p, d, f), J({
|
|
1588
1627
|
id: "for-creating",
|
|
1589
1628
|
title: "Successful",
|
|
1590
1629
|
message: "Account is added",
|
|
1591
1630
|
color: "green"
|
|
1592
1631
|
}), e();
|
|
1593
1632
|
} catch (b) {
|
|
1594
|
-
|
|
1633
|
+
J({
|
|
1595
1634
|
id: "for-creating",
|
|
1596
1635
|
title: "Failed",
|
|
1597
1636
|
message: b.message,
|
|
@@ -1599,22 +1638,22 @@ function Sn({
|
|
|
1599
1638
|
});
|
|
1600
1639
|
}
|
|
1601
1640
|
}), children: [
|
|
1602
|
-
/* @__PURE__ */ a(
|
|
1641
|
+
/* @__PURE__ */ a(q, { name: "name", control: n, render: ({
|
|
1603
1642
|
field: l
|
|
1604
1643
|
}) => /* @__PURE__ */ a(ue, { mb: t.spacing, size: t.size, required: !0, label: "Username", ...l }) }),
|
|
1605
|
-
/* @__PURE__ */ a(
|
|
1644
|
+
/* @__PURE__ */ a(q, { name: "email", control: n, render: ({
|
|
1606
1645
|
field: l
|
|
1607
1646
|
}) => /* @__PURE__ */ a(ue, { mb: t.spacing, size: t.size, required: !0, label: "Email", ...l }) }),
|
|
1608
|
-
/* @__PURE__ */ a(
|
|
1647
|
+
/* @__PURE__ */ a(q, { name: "password", control: n, render: ({
|
|
1609
1648
|
field: l
|
|
1610
|
-
}) => /* @__PURE__ */ a(
|
|
1611
|
-
/* @__PURE__ */ a(
|
|
1649
|
+
}) => /* @__PURE__ */ a(tt, { mb: t.spacing, size: t.size, required: !0, label: "Password", description: "Password must be at least 8 characters long", ...l }) }),
|
|
1650
|
+
/* @__PURE__ */ a(q, { name: "role_id", control: n, render: ({
|
|
1612
1651
|
field: l
|
|
1613
|
-
}) => /* @__PURE__ */ a(
|
|
1614
|
-
/* @__PURE__ */ a(
|
|
1652
|
+
}) => /* @__PURE__ */ a(St, { styles: t, ...l }) }),
|
|
1653
|
+
/* @__PURE__ */ a(Q, { position: "right", mt: t.spacing, children: /* @__PURE__ */ a(V, { type: "submit", size: t.button.size, children: "Save" }) })
|
|
1615
1654
|
] }) });
|
|
1616
1655
|
}
|
|
1617
|
-
function
|
|
1656
|
+
function An({
|
|
1618
1657
|
onSuccess: e,
|
|
1619
1658
|
styles: t = ke,
|
|
1620
1659
|
initialRoleID: r
|
|
@@ -1623,19 +1662,19 @@ function wn({
|
|
|
1623
1662
|
return /* @__PURE__ */ C(he, { children: [
|
|
1624
1663
|
/* @__PURE__ */ a(Ae, { opened: n, onClose: () => s(!1), title: "Add an Account", trapFocus: !0, onDragStart: (d) => {
|
|
1625
1664
|
d.stopPropagation();
|
|
1626
|
-
}, children: /* @__PURE__ */ a(
|
|
1665
|
+
}, children: /* @__PURE__ */ a(_n, { postSubmit: () => {
|
|
1627
1666
|
e(), l();
|
|
1628
1667
|
}, styles: t, initialRoleID: r }) }),
|
|
1629
|
-
/* @__PURE__ */ a(V, { size: t.button.size, onClick: o, leftIcon: /* @__PURE__ */ a(
|
|
1668
|
+
/* @__PURE__ */ a(V, { size: t.button.size, onClick: o, leftIcon: /* @__PURE__ */ a(it, { size: 20 }), children: "Add an Account" })
|
|
1630
1669
|
] });
|
|
1631
1670
|
}
|
|
1632
|
-
function
|
|
1671
|
+
function kn({
|
|
1633
1672
|
id: e,
|
|
1634
1673
|
name: t,
|
|
1635
1674
|
onSuccess: r,
|
|
1636
1675
|
styles: n = ke
|
|
1637
1676
|
}) {
|
|
1638
|
-
const s =
|
|
1677
|
+
const s = Ge(), o = async () => {
|
|
1639
1678
|
if (e) {
|
|
1640
1679
|
be({
|
|
1641
1680
|
id: "for-deleting",
|
|
@@ -1644,14 +1683,14 @@ function En({
|
|
|
1644
1683
|
loading: !0
|
|
1645
1684
|
});
|
|
1646
1685
|
try {
|
|
1647
|
-
await oe.account.delete(e),
|
|
1686
|
+
await oe.account.delete(e), J({
|
|
1648
1687
|
id: "for-deleting",
|
|
1649
1688
|
title: "Successful",
|
|
1650
1689
|
message: `Account [${t}] is deleted`,
|
|
1651
1690
|
color: "green"
|
|
1652
1691
|
}), r();
|
|
1653
1692
|
} catch (p) {
|
|
1654
|
-
|
|
1693
|
+
J({
|
|
1655
1694
|
id: "for-deleting",
|
|
1656
1695
|
title: "Failed",
|
|
1657
1696
|
message: p.message,
|
|
@@ -1668,9 +1707,9 @@ function En({
|
|
|
1668
1707
|
onCancel: () => console.log("Cancel"),
|
|
1669
1708
|
onConfirm: o
|
|
1670
1709
|
});
|
|
1671
|
-
return /* @__PURE__ */ a(V, { size: n.button.size, color: "red", onClick: l, leftIcon: /* @__PURE__ */ a(
|
|
1710
|
+
return /* @__PURE__ */ a(V, { size: n.button.size, color: "red", onClick: l, leftIcon: /* @__PURE__ */ a(ot, { size: 20 }), children: "Delete" });
|
|
1672
1711
|
}
|
|
1673
|
-
function
|
|
1712
|
+
function Tn({
|
|
1674
1713
|
id: e,
|
|
1675
1714
|
name: t,
|
|
1676
1715
|
email: r,
|
|
@@ -1710,14 +1749,14 @@ function _n({
|
|
|
1710
1749
|
role_id: y,
|
|
1711
1750
|
reset_password: h,
|
|
1712
1751
|
new_password: _.trim()
|
|
1713
|
-
}),
|
|
1752
|
+
}), J({
|
|
1714
1753
|
id: "for-updating",
|
|
1715
1754
|
title: "Successful",
|
|
1716
1755
|
message: "Account is updated",
|
|
1717
1756
|
color: "green"
|
|
1718
1757
|
}), s();
|
|
1719
1758
|
} catch (A) {
|
|
1720
|
-
|
|
1759
|
+
J({
|
|
1721
1760
|
id: "for-updating",
|
|
1722
1761
|
title: "Failed",
|
|
1723
1762
|
message: A.message,
|
|
@@ -1726,37 +1765,37 @@ function _n({
|
|
|
1726
1765
|
}
|
|
1727
1766
|
}, [b, u] = d(["reset_password", "new_password"]);
|
|
1728
1767
|
return /* @__PURE__ */ a(se, { mx: "auto", mb: 10, children: /* @__PURE__ */ C("form", { onSubmit: p(f), children: [
|
|
1729
|
-
/* @__PURE__ */ a(
|
|
1768
|
+
/* @__PURE__ */ a(q, { name: "name", control: l, render: ({
|
|
1730
1769
|
field: c
|
|
1731
1770
|
}) => /* @__PURE__ */ a(ue, { mb: o.spacing, size: o.size, required: !0, label: "Username", ...c }) }),
|
|
1732
|
-
/* @__PURE__ */ a(
|
|
1771
|
+
/* @__PURE__ */ a(q, { name: "email", control: l, render: ({
|
|
1733
1772
|
field: c
|
|
1734
1773
|
}) => /* @__PURE__ */ a(ue, { mb: o.spacing, size: o.size, required: !0, label: "Email", ...c }) }),
|
|
1735
|
-
/* @__PURE__ */ a(
|
|
1774
|
+
/* @__PURE__ */ a(q, { name: "role_id", control: l, render: ({
|
|
1736
1775
|
field: c
|
|
1737
|
-
}) => /* @__PURE__ */ a(
|
|
1738
|
-
/* @__PURE__ */ a(
|
|
1739
|
-
/* @__PURE__ */ a(
|
|
1776
|
+
}) => /* @__PURE__ */ a(St, { styles: o, ...c }) }),
|
|
1777
|
+
/* @__PURE__ */ a(et, { my: 20, variant: "dashed", label: "", labelPosition: "center" }),
|
|
1778
|
+
/* @__PURE__ */ a(q, { name: "reset_password", control: l, render: ({
|
|
1740
1779
|
field: c
|
|
1741
|
-
}) => /* @__PURE__ */ a(
|
|
1780
|
+
}) => /* @__PURE__ */ a(Cr, { mb: o.spacing, size: o.size, label: "Reset password", checked: c.value, onChange: (g) => c.onChange(g.currentTarget.checked), styles: {
|
|
1742
1781
|
label: {
|
|
1743
1782
|
verticalAlign: "middle"
|
|
1744
1783
|
}
|
|
1745
1784
|
} }) }),
|
|
1746
1785
|
b && /* @__PURE__ */ a(
|
|
1747
|
-
|
|
1786
|
+
q,
|
|
1748
1787
|
{
|
|
1749
1788
|
name: "new_password",
|
|
1750
1789
|
control: l,
|
|
1751
1790
|
render: ({
|
|
1752
1791
|
field: c
|
|
1753
|
-
}) => /* @__PURE__ */ a(
|
|
1792
|
+
}) => /* @__PURE__ */ a(tt, { autoComplete: "off", mb: o.spacing, size: o.size, required: !0, description: "Password must be at least 8 characters long", label: "New Password", ...c })
|
|
1754
1793
|
}
|
|
1755
1794
|
),
|
|
1756
|
-
/* @__PURE__ */ a(
|
|
1795
|
+
/* @__PURE__ */ a(Q, { position: "right", mt: o.spacing, children: /* @__PURE__ */ a(V, { type: "submit", size: o.button.size, children: "Submit" }) })
|
|
1757
1796
|
] }) });
|
|
1758
1797
|
}
|
|
1759
|
-
function
|
|
1798
|
+
function Rn({
|
|
1760
1799
|
account: e,
|
|
1761
1800
|
onSuccess: t,
|
|
1762
1801
|
styles: r = ke
|
|
@@ -1767,11 +1806,11 @@ function An({
|
|
|
1767
1806
|
return /* @__PURE__ */ C(he, { children: [
|
|
1768
1807
|
/* @__PURE__ */ a(Ae, { opened: n, onClose: () => s(!1), title: `Editing ${e.name}`, trapFocus: !0, onDragStart: (d) => {
|
|
1769
1808
|
d.stopPropagation();
|
|
1770
|
-
}, children: /* @__PURE__ */ a(
|
|
1771
|
-
/* @__PURE__ */ a(V, { size: r.button.size, onClick: o, leftIcon: /* @__PURE__ */ a(
|
|
1809
|
+
}, children: /* @__PURE__ */ a(Tn, { ...e, postSubmit: p, styles: r }) }),
|
|
1810
|
+
/* @__PURE__ */ a(V, { size: r.button.size, onClick: o, leftIcon: /* @__PURE__ */ a(Nr, { size: 20 }), children: "Edit" })
|
|
1772
1811
|
] });
|
|
1773
1812
|
}
|
|
1774
|
-
function
|
|
1813
|
+
function _a({
|
|
1775
1814
|
styles: e = ke,
|
|
1776
1815
|
config: t
|
|
1777
1816
|
}) {
|
|
@@ -1781,7 +1820,7 @@ function Ea({
|
|
|
1781
1820
|
data: r = [],
|
|
1782
1821
|
loading: n,
|
|
1783
1822
|
refresh: s
|
|
1784
|
-
} =
|
|
1823
|
+
} = xe(async () => {
|
|
1785
1824
|
const {
|
|
1786
1825
|
data: d
|
|
1787
1826
|
} = await oe.account.list();
|
|
@@ -1791,7 +1830,7 @@ function Ea({
|
|
|
1791
1830
|
}), {
|
|
1792
1831
|
data: o = [],
|
|
1793
1832
|
loading: l
|
|
1794
|
-
} =
|
|
1833
|
+
} = xe(async () => (await oe.role.list()).map((f) => ({
|
|
1795
1834
|
label: f.id,
|
|
1796
1835
|
value: f.id,
|
|
1797
1836
|
description: f.description,
|
|
@@ -1800,12 +1839,12 @@ function Ea({
|
|
|
1800
1839
|
refreshDeps: []
|
|
1801
1840
|
});
|
|
1802
1841
|
return /* @__PURE__ */ C(he, { children: [
|
|
1803
|
-
/* @__PURE__ */ a(
|
|
1842
|
+
/* @__PURE__ */ a(Q, { pt: e.spacing, position: "right", children: /* @__PURE__ */ a(An, { onSuccess: s, initialRoleID: ((p = o == null ? void 0 : o[0]) == null ? void 0 : p.value) ?? "INACTIVE" }) }),
|
|
1804
1843
|
/* @__PURE__ */ C(se, { mt: e.spacing, sx: {
|
|
1805
1844
|
position: "relative"
|
|
1806
1845
|
}, children: [
|
|
1807
|
-
/* @__PURE__ */ a(
|
|
1808
|
-
/* @__PURE__ */ C(
|
|
1846
|
+
/* @__PURE__ */ a(rt, { visible: n || l }),
|
|
1847
|
+
/* @__PURE__ */ C(nt, { horizontalSpacing: e.spacing, verticalSpacing: e.spacing, fontSize: e.size, highlightOnHover: !0, children: [
|
|
1809
1848
|
/* @__PURE__ */ a("thead", { children: /* @__PURE__ */ C("tr", { children: [
|
|
1810
1849
|
/* @__PURE__ */ a("th", { children: "Username" }),
|
|
1811
1850
|
/* @__PURE__ */ a("th", { children: "Email" }),
|
|
@@ -1823,9 +1862,9 @@ function Ea({
|
|
|
1823
1862
|
/* @__PURE__ */ a("td", { width: 200, children: b }),
|
|
1824
1863
|
/* @__PURE__ */ a("td", { width: 200, children: u }),
|
|
1825
1864
|
/* @__PURE__ */ a("td", { width: 200, children: c }),
|
|
1826
|
-
/* @__PURE__ */ a("td", { width: 200, children: /* @__PURE__ */ C(
|
|
1827
|
-
/* @__PURE__ */ a(
|
|
1828
|
-
/* @__PURE__ */ a(
|
|
1865
|
+
/* @__PURE__ */ a("td", { width: 200, children: /* @__PURE__ */ C(Q, { position: "left", children: [
|
|
1866
|
+
/* @__PURE__ */ a(Rn, { account: d, onSuccess: s }),
|
|
1867
|
+
/* @__PURE__ */ a(kn, { id: f, name: b, onSuccess: s })
|
|
1829
1868
|
] }) })
|
|
1830
1869
|
] }, f);
|
|
1831
1870
|
}) })
|
|
@@ -1833,7 +1872,7 @@ function Ea({
|
|
|
1833
1872
|
] })
|
|
1834
1873
|
] });
|
|
1835
1874
|
}
|
|
1836
|
-
function
|
|
1875
|
+
function xn({
|
|
1837
1876
|
postSubmit: e,
|
|
1838
1877
|
styles: t = ke
|
|
1839
1878
|
}) {
|
|
@@ -1858,14 +1897,14 @@ function kn({
|
|
|
1858
1897
|
loading: !0
|
|
1859
1898
|
});
|
|
1860
1899
|
const p = await oe.account.login(o.trim(), l.trim());
|
|
1861
|
-
window.localStorage.setItem("token", p.token),
|
|
1900
|
+
window.localStorage.setItem("token", p.token), J({
|
|
1862
1901
|
id: "for-login",
|
|
1863
1902
|
title: "Successful",
|
|
1864
1903
|
message: "Logged in",
|
|
1865
1904
|
color: "green"
|
|
1866
1905
|
}), e(p);
|
|
1867
1906
|
} catch (p) {
|
|
1868
|
-
|
|
1907
|
+
J({
|
|
1869
1908
|
id: "for-login",
|
|
1870
1909
|
title: "Login Failed",
|
|
1871
1910
|
message: p.message,
|
|
@@ -1873,34 +1912,34 @@ function kn({
|
|
|
1873
1912
|
});
|
|
1874
1913
|
}
|
|
1875
1914
|
}), children: [
|
|
1876
|
-
/* @__PURE__ */ a(
|
|
1915
|
+
/* @__PURE__ */ a(q, { name: "name", control: r, render: ({
|
|
1877
1916
|
field: o
|
|
1878
1917
|
}) => /* @__PURE__ */ a(ue, { mb: t.spacing, size: t.size, required: !0, label: "Username", ...o }) }),
|
|
1879
|
-
/* @__PURE__ */ a(
|
|
1918
|
+
/* @__PURE__ */ a(q, { name: "password", control: r, render: ({
|
|
1880
1919
|
field: o
|
|
1881
|
-
}) => /* @__PURE__ */ a(
|
|
1882
|
-
/* @__PURE__ */ a(
|
|
1920
|
+
}) => /* @__PURE__ */ a(tt, { mb: t.spacing, size: t.size, required: !0, label: "Password", ...o }) }),
|
|
1921
|
+
/* @__PURE__ */ a(Q, { position: "right", mt: t.spacing, children: /* @__PURE__ */ a(V, { type: "submit", size: t.button.size, children: "Submit" }) })
|
|
1883
1922
|
] }) });
|
|
1884
1923
|
}
|
|
1885
|
-
function
|
|
1924
|
+
function Aa({
|
|
1886
1925
|
styles: e = ke,
|
|
1887
1926
|
config: t,
|
|
1888
1927
|
onSuccess: r
|
|
1889
1928
|
}) {
|
|
1890
1929
|
return Ue(t), /* @__PURE__ */ a(he, { children: /* @__PURE__ */ a(se, { mt: e.spacing, sx: {
|
|
1891
1930
|
position: "relative"
|
|
1892
|
-
}, children: /* @__PURE__ */ a(
|
|
1931
|
+
}, children: /* @__PURE__ */ a(xn, { styles: e, postSubmit: r }) }) });
|
|
1893
1932
|
}
|
|
1894
|
-
const
|
|
1933
|
+
const st = {
|
|
1895
1934
|
size: "sm",
|
|
1896
1935
|
spacing: "md",
|
|
1897
1936
|
button: {
|
|
1898
1937
|
size: "xs"
|
|
1899
1938
|
}
|
|
1900
1939
|
};
|
|
1901
|
-
function
|
|
1940
|
+
function On({
|
|
1902
1941
|
postSubmit: e,
|
|
1903
|
-
styles: t =
|
|
1942
|
+
styles: t = st,
|
|
1904
1943
|
initialRoleID: r
|
|
1905
1944
|
}) {
|
|
1906
1945
|
const {
|
|
@@ -1927,14 +1966,14 @@ function Tn({
|
|
|
1927
1966
|
app_id: d,
|
|
1928
1967
|
app_secret: f
|
|
1929
1968
|
} = await oe.api_key.create(l, p);
|
|
1930
|
-
|
|
1969
|
+
J({
|
|
1931
1970
|
id: "for-creating",
|
|
1932
1971
|
title: "Successful",
|
|
1933
1972
|
message: "API Key is added",
|
|
1934
1973
|
color: "green"
|
|
1935
1974
|
}), e(d, f);
|
|
1936
1975
|
} catch (d) {
|
|
1937
|
-
|
|
1976
|
+
J({
|
|
1938
1977
|
id: "for-creating",
|
|
1939
1978
|
title: "Failed",
|
|
1940
1979
|
message: d.message,
|
|
@@ -1942,28 +1981,28 @@ function Tn({
|
|
|
1942
1981
|
});
|
|
1943
1982
|
}
|
|
1944
1983
|
}), children: [
|
|
1945
|
-
/* @__PURE__ */ a(
|
|
1984
|
+
/* @__PURE__ */ a(q, { name: "name", control: n, render: ({
|
|
1946
1985
|
field: l
|
|
1947
1986
|
}) => /* @__PURE__ */ a(ue, { mb: t.spacing, size: t.size, required: !0, label: "Name", ...l }) }),
|
|
1948
|
-
/* @__PURE__ */ a(
|
|
1987
|
+
/* @__PURE__ */ a(q, { name: "role_id", control: n, render: ({
|
|
1949
1988
|
field: l
|
|
1950
|
-
}) => /* @__PURE__ */ a(
|
|
1951
|
-
/* @__PURE__ */ a(
|
|
1989
|
+
}) => /* @__PURE__ */ a(St, { styles: t, ...l }) }),
|
|
1990
|
+
/* @__PURE__ */ a(Q, { position: "right", mt: t.spacing, children: /* @__PURE__ */ a(V, { type: "submit", size: t.button.size, children: "Save" }) })
|
|
1952
1991
|
] }) });
|
|
1953
1992
|
}
|
|
1954
|
-
function
|
|
1993
|
+
function Cn({
|
|
1955
1994
|
onSuccess: e,
|
|
1956
|
-
styles: t =
|
|
1995
|
+
styles: t = st,
|
|
1957
1996
|
initialRoleID: r
|
|
1958
1997
|
}) {
|
|
1959
|
-
const n =
|
|
1998
|
+
const n = Ge(), [s, o] = K.useState(!1), l = () => o(!0), p = () => o(!1);
|
|
1960
1999
|
return /* @__PURE__ */ C(he, { children: [
|
|
1961
2000
|
/* @__PURE__ */ a(Ae, { opened: s, onClose: () => o(!1), title: "Add an API Key", trapFocus: !0, onDragStart: (f) => {
|
|
1962
2001
|
f.stopPropagation();
|
|
1963
|
-
}, children: /* @__PURE__ */ a(
|
|
2002
|
+
}, children: /* @__PURE__ */ a(On, { postSubmit: (f, b) => {
|
|
1964
2003
|
p(), n.openModal({
|
|
1965
2004
|
title: "API Key is generated",
|
|
1966
|
-
children: /* @__PURE__ */ C(
|
|
2005
|
+
children: /* @__PURE__ */ C(je, { children: [
|
|
1967
2006
|
/* @__PURE__ */ a(Re, { color: "dimmed", children: "Make sure you save it - you won't be able to access it again." }),
|
|
1968
2007
|
/* @__PURE__ */ a(ue, { defaultValue: f, disabled: !0, label: "APP ID", styles: {
|
|
1969
2008
|
input: {
|
|
@@ -1984,16 +2023,16 @@ function Rn({
|
|
|
1984
2023
|
}
|
|
1985
2024
|
});
|
|
1986
2025
|
}, styles: t, initialRoleID: r }) }),
|
|
1987
|
-
/* @__PURE__ */ a(V, { size: t.button.size, onClick: l, leftIcon: /* @__PURE__ */ a(
|
|
2026
|
+
/* @__PURE__ */ a(V, { size: t.button.size, onClick: l, leftIcon: /* @__PURE__ */ a(it, { size: 20 }), children: "Add an API Key" })
|
|
1988
2027
|
] });
|
|
1989
2028
|
}
|
|
1990
|
-
function
|
|
2029
|
+
function In({
|
|
1991
2030
|
id: e,
|
|
1992
2031
|
name: t,
|
|
1993
2032
|
onSuccess: r,
|
|
1994
|
-
styles: n =
|
|
2033
|
+
styles: n = st
|
|
1995
2034
|
}) {
|
|
1996
|
-
const s =
|
|
2035
|
+
const s = Ge(), o = async () => {
|
|
1997
2036
|
if (e) {
|
|
1998
2037
|
be({
|
|
1999
2038
|
id: "for-deleting",
|
|
@@ -2002,14 +2041,14 @@ function On({
|
|
|
2002
2041
|
loading: !0
|
|
2003
2042
|
});
|
|
2004
2043
|
try {
|
|
2005
|
-
await oe.api_key.delete(e),
|
|
2044
|
+
await oe.api_key.delete(e), J({
|
|
2006
2045
|
id: "for-deleting",
|
|
2007
2046
|
title: "Successful",
|
|
2008
2047
|
message: `API Key [${t}] is deleted`,
|
|
2009
2048
|
color: "green"
|
|
2010
2049
|
}), r();
|
|
2011
2050
|
} catch (p) {
|
|
2012
|
-
|
|
2051
|
+
J({
|
|
2013
2052
|
id: "for-deleting",
|
|
2014
2053
|
title: "Failed",
|
|
2015
2054
|
message: p.message,
|
|
@@ -2026,10 +2065,10 @@ function On({
|
|
|
2026
2065
|
onCancel: () => console.log("Cancel"),
|
|
2027
2066
|
onConfirm: o
|
|
2028
2067
|
});
|
|
2029
|
-
return /* @__PURE__ */ a(V, { size: n.button.size, color: "red", onClick: l, leftIcon: /* @__PURE__ */ a(
|
|
2068
|
+
return /* @__PURE__ */ a(V, { size: n.button.size, color: "red", onClick: l, leftIcon: /* @__PURE__ */ a(ot, { size: 20 }), children: "Delete" });
|
|
2030
2069
|
}
|
|
2031
|
-
function
|
|
2032
|
-
styles: e =
|
|
2070
|
+
function ka({
|
|
2071
|
+
styles: e = st,
|
|
2033
2072
|
config: t
|
|
2034
2073
|
}) {
|
|
2035
2074
|
var p;
|
|
@@ -2038,7 +2077,7 @@ function Aa({
|
|
|
2038
2077
|
data: r = [],
|
|
2039
2078
|
loading: n,
|
|
2040
2079
|
refresh: s
|
|
2041
|
-
} =
|
|
2080
|
+
} = xe(async () => {
|
|
2042
2081
|
const {
|
|
2043
2082
|
data: d
|
|
2044
2083
|
} = await oe.api_key.list();
|
|
@@ -2048,7 +2087,7 @@ function Aa({
|
|
|
2048
2087
|
}), {
|
|
2049
2088
|
data: o = [],
|
|
2050
2089
|
loading: l
|
|
2051
|
-
} =
|
|
2090
|
+
} = xe(async () => (await oe.role.list()).map((f) => ({
|
|
2052
2091
|
label: f.id,
|
|
2053
2092
|
value: f.id,
|
|
2054
2093
|
description: f.description,
|
|
@@ -2057,12 +2096,12 @@ function Aa({
|
|
|
2057
2096
|
refreshDeps: []
|
|
2058
2097
|
});
|
|
2059
2098
|
return /* @__PURE__ */ C(he, { children: [
|
|
2060
|
-
/* @__PURE__ */ a(
|
|
2099
|
+
/* @__PURE__ */ a(Q, { pt: e.spacing, position: "right", children: /* @__PURE__ */ a(Cn, { onSuccess: s, initialRoleID: ((p = o == null ? void 0 : o[0]) == null ? void 0 : p.value) ?? "INACTIVE" }) }),
|
|
2061
2100
|
/* @__PURE__ */ C(se, { mt: e.spacing, sx: {
|
|
2062
2101
|
position: "relative"
|
|
2063
2102
|
}, children: [
|
|
2064
|
-
/* @__PURE__ */ a(
|
|
2065
|
-
/* @__PURE__ */ C(
|
|
2103
|
+
/* @__PURE__ */ a(rt, { visible: n || l }),
|
|
2104
|
+
/* @__PURE__ */ C(nt, { horizontalSpacing: e.spacing, verticalSpacing: e.spacing, fontSize: e.size, highlightOnHover: !0, children: [
|
|
2066
2105
|
/* @__PURE__ */ a("thead", { children: /* @__PURE__ */ C("tr", { children: [
|
|
2067
2106
|
/* @__PURE__ */ a("th", { children: "Name" }),
|
|
2068
2107
|
/* @__PURE__ */ a("th", { children: "APP ID" }),
|
|
@@ -2080,14 +2119,14 @@ function Aa({
|
|
|
2080
2119
|
/* @__PURE__ */ a("td", { width: 200, children: b }),
|
|
2081
2120
|
/* @__PURE__ */ a("td", { width: 200, children: u }),
|
|
2082
2121
|
/* @__PURE__ */ a("td", { width: 200, children: c }),
|
|
2083
|
-
/* @__PURE__ */ a("td", { width: 200, children: /* @__PURE__ */ a(
|
|
2122
|
+
/* @__PURE__ */ a("td", { width: 200, children: /* @__PURE__ */ a(Q, { position: "left", children: /* @__PURE__ */ a(In, { id: f, name: b, onSuccess: s }) }) })
|
|
2084
2123
|
] }, f);
|
|
2085
2124
|
}) })
|
|
2086
2125
|
] })
|
|
2087
2126
|
] })
|
|
2088
2127
|
] });
|
|
2089
2128
|
}
|
|
2090
|
-
const
|
|
2129
|
+
const Kt = ({
|
|
2091
2130
|
value: e,
|
|
2092
2131
|
onChange: t,
|
|
2093
2132
|
height: r = "200px",
|
|
@@ -2096,7 +2135,7 @@ const Wt = ({
|
|
|
2096
2135
|
const s = (l) => {
|
|
2097
2136
|
console.log("changing"), t == null || t(l ?? "");
|
|
2098
2137
|
}, o = !t;
|
|
2099
|
-
return /* @__PURE__ */ a(
|
|
2138
|
+
return /* @__PURE__ */ a(Vt, { className: "minimal-monaco-editor", height: r, defaultLanguage: n, value: e, onChange: o ? void 0 : s, theme: "vs-dark", options: {
|
|
2100
2139
|
lineNumbers: "off",
|
|
2101
2140
|
folding: !1,
|
|
2102
2141
|
lineDecorationsWidth: 20,
|
|
@@ -2114,7 +2153,7 @@ const Wt = ({
|
|
|
2114
2153
|
size: "xs"
|
|
2115
2154
|
}
|
|
2116
2155
|
};
|
|
2117
|
-
function
|
|
2156
|
+
function Dn({
|
|
2118
2157
|
postSubmit: e,
|
|
2119
2158
|
styles: t = De
|
|
2120
2159
|
}) {
|
|
@@ -2134,14 +2173,14 @@ function xn({
|
|
|
2134
2173
|
title: "Pending",
|
|
2135
2174
|
message: "Adding SQL Snippet...",
|
|
2136
2175
|
loading: !0
|
|
2137
|
-
}), await oe.sql_snippet.create(o),
|
|
2176
|
+
}), await oe.sql_snippet.create(o), J({
|
|
2138
2177
|
id: "for-creating",
|
|
2139
2178
|
title: "Successful",
|
|
2140
2179
|
message: "SQL Snippet is added",
|
|
2141
2180
|
color: "green"
|
|
2142
2181
|
}), e();
|
|
2143
2182
|
} catch (l) {
|
|
2144
|
-
|
|
2183
|
+
J({
|
|
2145
2184
|
id: "for-creating",
|
|
2146
2185
|
title: "Failed",
|
|
2147
2186
|
message: l.message,
|
|
@@ -2149,21 +2188,21 @@ function xn({
|
|
|
2149
2188
|
});
|
|
2150
2189
|
}
|
|
2151
2190
|
}), children: [
|
|
2152
|
-
/* @__PURE__ */ a(
|
|
2191
|
+
/* @__PURE__ */ a(q, { name: "id", control: r, render: ({
|
|
2153
2192
|
field: o
|
|
2154
2193
|
}) => /* @__PURE__ */ a(ue, { mb: t.spacing, size: t.size, required: !0, label: "Name", ...o }) }),
|
|
2155
|
-
/* @__PURE__ */ a(
|
|
2194
|
+
/* @__PURE__ */ a(q, { name: "content", control: r, render: ({
|
|
2156
2195
|
field: o
|
|
2157
|
-
}) => /* @__PURE__ */ C(
|
|
2196
|
+
}) => /* @__PURE__ */ C(je, { spacing: 4, children: [
|
|
2158
2197
|
/* @__PURE__ */ a(Re, { size: 14, fw: 500, color: "#212529", sx: {
|
|
2159
2198
|
cursor: "default"
|
|
2160
2199
|
}, children: "Content" }),
|
|
2161
|
-
/* @__PURE__ */ a(
|
|
2200
|
+
/* @__PURE__ */ a(Kt, { height: "600px", ...o })
|
|
2162
2201
|
] }) }),
|
|
2163
|
-
/* @__PURE__ */ a(
|
|
2202
|
+
/* @__PURE__ */ a(Q, { position: "right", mt: t.spacing, children: /* @__PURE__ */ a(V, { type: "submit", size: t.button.size, children: "Save" }) })
|
|
2164
2203
|
] }) });
|
|
2165
2204
|
}
|
|
2166
|
-
function
|
|
2205
|
+
function Ln({
|
|
2167
2206
|
onSuccess: e,
|
|
2168
2207
|
styles: t = De
|
|
2169
2208
|
}) {
|
|
@@ -2171,13 +2210,13 @@ function Cn({
|
|
|
2171
2210
|
return /* @__PURE__ */ C(he, { children: [
|
|
2172
2211
|
/* @__PURE__ */ a(Ae, { opened: r, onClose: () => n(!1), title: "Add a SQL Snippet", trapFocus: !0, onDragStart: (p) => {
|
|
2173
2212
|
p.stopPropagation();
|
|
2174
|
-
}, size: "80vw", children: /* @__PURE__ */ a(
|
|
2213
|
+
}, size: "80vw", children: /* @__PURE__ */ a(Dn, { postSubmit: () => {
|
|
2175
2214
|
o(), e();
|
|
2176
2215
|
}, styles: t }) }),
|
|
2177
|
-
/* @__PURE__ */ a(V, { size: t.button.size, onClick: s, leftIcon: /* @__PURE__ */ a(
|
|
2216
|
+
/* @__PURE__ */ a(V, { size: t.button.size, onClick: s, leftIcon: /* @__PURE__ */ a(it, { size: 18 }), children: "Add a SQL Snippet" })
|
|
2178
2217
|
] });
|
|
2179
2218
|
}
|
|
2180
|
-
function
|
|
2219
|
+
function Fn({
|
|
2181
2220
|
postSubmit: e,
|
|
2182
2221
|
styles: t = De,
|
|
2183
2222
|
id: r,
|
|
@@ -2199,14 +2238,14 @@ function In({
|
|
|
2199
2238
|
title: "Pending",
|
|
2200
2239
|
message: "Updating SQL Snippet...",
|
|
2201
2240
|
loading: !0
|
|
2202
|
-
}), await oe.sql_snippet.update(p),
|
|
2241
|
+
}), await oe.sql_snippet.update(p), J({
|
|
2203
2242
|
id: "for-updating",
|
|
2204
2243
|
title: "Successful",
|
|
2205
2244
|
message: "SQL Snippet is updated",
|
|
2206
2245
|
color: "green"
|
|
2207
2246
|
}), e();
|
|
2208
2247
|
} catch (d) {
|
|
2209
|
-
|
|
2248
|
+
J({
|
|
2210
2249
|
id: "for-updating",
|
|
2211
2250
|
title: "Failed",
|
|
2212
2251
|
message: d.message,
|
|
@@ -2214,21 +2253,21 @@ function In({
|
|
|
2214
2253
|
});
|
|
2215
2254
|
}
|
|
2216
2255
|
}), children: [
|
|
2217
|
-
/* @__PURE__ */ a(
|
|
2256
|
+
/* @__PURE__ */ a(q, { name: "id", control: s, render: ({
|
|
2218
2257
|
field: p
|
|
2219
2258
|
}) => /* @__PURE__ */ a(ue, { mb: t.spacing, size: t.size, required: !0, label: "Name", ...p }) }),
|
|
2220
|
-
/* @__PURE__ */ a(
|
|
2259
|
+
/* @__PURE__ */ a(q, { name: "content", control: s, render: ({
|
|
2221
2260
|
field: p
|
|
2222
|
-
}) => /* @__PURE__ */ C(
|
|
2261
|
+
}) => /* @__PURE__ */ C(je, { spacing: 4, children: [
|
|
2223
2262
|
/* @__PURE__ */ a(Re, { size: 14, fw: 500, color: "#212529", sx: {
|
|
2224
2263
|
cursor: "default"
|
|
2225
2264
|
}, children: "Content" }),
|
|
2226
|
-
/* @__PURE__ */ a(
|
|
2265
|
+
/* @__PURE__ */ a(Kt, { height: "600px", ...p })
|
|
2227
2266
|
] }) }),
|
|
2228
|
-
/* @__PURE__ */ a(
|
|
2267
|
+
/* @__PURE__ */ a(Q, { position: "right", mt: t.spacing, children: /* @__PURE__ */ a(V, { type: "submit", size: t.button.size, children: "Save" }) })
|
|
2229
2268
|
] }) });
|
|
2230
2269
|
}
|
|
2231
|
-
function
|
|
2270
|
+
function Nn({
|
|
2232
2271
|
onSuccess: e,
|
|
2233
2272
|
styles: t = De,
|
|
2234
2273
|
...r
|
|
@@ -2237,10 +2276,10 @@ function Dn({
|
|
|
2237
2276
|
return /* @__PURE__ */ C(he, { children: [
|
|
2238
2277
|
/* @__PURE__ */ a(Ae, { opened: n, onClose: () => s(!1), title: "Edit a SQL Snippet", trapFocus: !0, onDragStart: (d) => {
|
|
2239
2278
|
d.stopPropagation();
|
|
2240
|
-
}, size: "80vw", children: /* @__PURE__ */ a(
|
|
2279
|
+
}, size: "80vw", children: /* @__PURE__ */ a(Fn, { postSubmit: () => {
|
|
2241
2280
|
l(), e();
|
|
2242
2281
|
}, styles: t, ...r }) }),
|
|
2243
|
-
/* @__PURE__ */ a(V, { size: t.button.size, onClick: o, leftIcon: /* @__PURE__ */ a(
|
|
2282
|
+
/* @__PURE__ */ a(V, { size: t.button.size, onClick: o, leftIcon: /* @__PURE__ */ a(ht, { size: 18 }), children: "Edit" })
|
|
2244
2283
|
] });
|
|
2245
2284
|
}
|
|
2246
2285
|
/**
|
|
@@ -2251,7 +2290,7 @@ function Dn({
|
|
|
2251
2290
|
* @namespace
|
|
2252
2291
|
* @public
|
|
2253
2292
|
*/
|
|
2254
|
-
var
|
|
2293
|
+
var bt = function() {
|
|
2255
2294
|
var e = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, t = 0, r = {}, n = {
|
|
2256
2295
|
/**
|
|
2257
2296
|
* A namespace for utility methods.
|
|
@@ -2524,8 +2563,8 @@ var mt = function() {
|
|
|
2524
2563
|
g.hasOwnProperty(A) || (_[A] = h[A]);
|
|
2525
2564
|
}
|
|
2526
2565
|
var $ = y[u];
|
|
2527
|
-
return y[u] = _, n.languages.DFS(n.languages, function(M,
|
|
2528
|
-
|
|
2566
|
+
return y[u] = _, n.languages.DFS(n.languages, function(M, te) {
|
|
2567
|
+
te === $ && M != u && (this[M] = _);
|
|
2529
2568
|
}), _;
|
|
2530
2569
|
},
|
|
2531
2570
|
// Traverse a language definition with Depth First Search
|
|
@@ -2687,41 +2726,41 @@ var mt = function() {
|
|
|
2687
2726
|
for (var $ = 0; $ < k.length; ++$) {
|
|
2688
2727
|
if (_ && _.cause == A + "," + $)
|
|
2689
2728
|
return;
|
|
2690
|
-
var M = k[$],
|
|
2729
|
+
var M = k[$], te = M.inside, X = !!M.lookbehind, Y = !!M.greedy, Z = M.alias;
|
|
2691
2730
|
if (Y && !M.pattern.global) {
|
|
2692
2731
|
var F = M.pattern.toString().match(/[imsuy]*$/)[0];
|
|
2693
2732
|
M.pattern = RegExp(M.pattern.source, F + "g");
|
|
2694
2733
|
}
|
|
2695
|
-
for (var L = M.pattern || M, B = y.next,
|
|
2734
|
+
for (var L = M.pattern || M, B = y.next, ee = h; B !== c.tail && !(_ && ee >= _.reach); ee += B.value.length, B = B.next) {
|
|
2696
2735
|
var R = B.value;
|
|
2697
2736
|
if (c.length > u.length)
|
|
2698
2737
|
return;
|
|
2699
2738
|
if (!(R instanceof s)) {
|
|
2700
2739
|
var E = 1, S;
|
|
2701
2740
|
if (Y) {
|
|
2702
|
-
if (S = o(L,
|
|
2741
|
+
if (S = o(L, ee, u, X), !S || S.index >= u.length)
|
|
2703
2742
|
break;
|
|
2704
|
-
var I = S.index,
|
|
2743
|
+
var I = S.index, x = S.index + S[0].length, w = ee;
|
|
2705
2744
|
for (w += B.value.length; I >= w; )
|
|
2706
2745
|
B = B.next, w += B.value.length;
|
|
2707
|
-
if (w -= B.value.length,
|
|
2746
|
+
if (w -= B.value.length, ee = w, B.value instanceof s)
|
|
2708
2747
|
continue;
|
|
2709
|
-
for (var
|
|
2710
|
-
E++, w +=
|
|
2711
|
-
E--, R = u.slice(
|
|
2712
|
-
} else if (S = o(L, 0, R,
|
|
2748
|
+
for (var O = B; O !== c.tail && (w < x || typeof O.value == "string"); O = O.next)
|
|
2749
|
+
E++, w += O.value.length;
|
|
2750
|
+
E--, R = u.slice(ee, w), S.index -= ee;
|
|
2751
|
+
} else if (S = o(L, 0, R, X), !S)
|
|
2713
2752
|
continue;
|
|
2714
|
-
var I = S.index, N = S[0],
|
|
2715
|
-
_ &&
|
|
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);
|
|
2716
2755
|
var le = B.prev;
|
|
2717
|
-
|
|
2718
|
-
var ce = new s(A,
|
|
2756
|
+
H && (le = d(c, le, H), ee += H.length), f(c, le, E);
|
|
2757
|
+
var ce = new s(A, te ? n.tokenize(N, te) : N, Z, N);
|
|
2719
2758
|
if (B = d(c, le, ce), j && d(c, B, j), E > 1) {
|
|
2720
2759
|
var pe = {
|
|
2721
2760
|
cause: A + "," + $,
|
|
2722
|
-
reach:
|
|
2761
|
+
reach: G
|
|
2723
2762
|
};
|
|
2724
|
-
l(u, c, g, B.prev,
|
|
2763
|
+
l(u, c, g, B.prev, ee, pe), _ && pe.reach > _.reach && (_.reach = pe.reach);
|
|
2725
2764
|
}
|
|
2726
2765
|
}
|
|
2727
2766
|
}
|
|
@@ -2747,8 +2786,8 @@ var mt = function() {
|
|
|
2747
2786
|
return c;
|
|
2748
2787
|
}
|
|
2749
2788
|
return n;
|
|
2750
|
-
}(), m =
|
|
2751
|
-
|
|
2789
|
+
}(), m = bt;
|
|
2790
|
+
bt.default = bt;
|
|
2752
2791
|
m.languages.markup = {
|
|
2753
2792
|
comment: {
|
|
2754
2793
|
pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
|
|
@@ -4205,34 +4244,34 @@ m.languages.sql = {
|
|
|
4205
4244
|
for (var Z = Y.content, F; g.indexOf(F = p(A++, h)) !== -1; )
|
|
4206
4245
|
;
|
|
4207
4246
|
return k[F] = Z, F;
|
|
4208
|
-
}).join(""), M = d($, y, h),
|
|
4247
|
+
}).join(""), M = d($, y, h), te = Object.keys(k);
|
|
4209
4248
|
A = 0;
|
|
4210
|
-
function
|
|
4249
|
+
function X(Y) {
|
|
4211
4250
|
for (var Z = 0; Z < Y.length; Z++) {
|
|
4212
|
-
if (A >=
|
|
4251
|
+
if (A >= te.length)
|
|
4213
4252
|
return;
|
|
4214
4253
|
var F = Y[Z];
|
|
4215
4254
|
if (typeof F == "string" || typeof F.content == "string") {
|
|
4216
|
-
var L =
|
|
4255
|
+
var L = te[A], B = typeof F == "string" ? F : (
|
|
4217
4256
|
/** @type {string} */
|
|
4218
4257
|
F.content
|
|
4219
|
-
),
|
|
4220
|
-
if (
|
|
4258
|
+
), ee = B.indexOf(L);
|
|
4259
|
+
if (ee !== -1) {
|
|
4221
4260
|
++A;
|
|
4222
|
-
var R = B.substring(0,
|
|
4223
|
-
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) {
|
|
4224
4263
|
var w = [S];
|
|
4225
|
-
|
|
4264
|
+
X(w), x.push.apply(x, w);
|
|
4226
4265
|
}
|
|
4227
|
-
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;
|
|
4228
4267
|
}
|
|
4229
4268
|
} else {
|
|
4230
|
-
var
|
|
4231
|
-
Array.isArray(
|
|
4269
|
+
var O = F.content;
|
|
4270
|
+
Array.isArray(O) ? X(O) : X([O]);
|
|
4232
4271
|
}
|
|
4233
4272
|
}
|
|
4234
4273
|
}
|
|
4235
|
-
return
|
|
4274
|
+
return X(M), new e.Token(h, M, "language-" + h, g);
|
|
4236
4275
|
}
|
|
4237
4276
|
var u = {
|
|
4238
4277
|
javascript: !0,
|
|
@@ -4257,10 +4296,10 @@ m.languages.sql = {
|
|
|
4257
4296
|
if (k.type === "template-string") {
|
|
4258
4297
|
var M = $[1];
|
|
4259
4298
|
if ($.length === 3 && typeof M != "string" && M.type === "embedded-code") {
|
|
4260
|
-
var
|
|
4299
|
+
var te = c(M), X = M.alias, Y = Array.isArray(X) ? X[0] : X, Z = e.languages[Y];
|
|
4261
4300
|
if (!Z)
|
|
4262
4301
|
continue;
|
|
4263
|
-
$[1] = b(
|
|
4302
|
+
$[1] = b(te, Z, Y);
|
|
4264
4303
|
}
|
|
4265
4304
|
} else
|
|
4266
4305
|
y($);
|
|
@@ -5216,8 +5255,8 @@ m.languages.wasm = {
|
|
|
5216
5255
|
number: /[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,
|
|
5217
5256
|
punctuation: /[()]/
|
|
5218
5257
|
};
|
|
5219
|
-
const
|
|
5220
|
-
var
|
|
5258
|
+
const $n = m;
|
|
5259
|
+
var zn = {
|
|
5221
5260
|
plain: {
|
|
5222
5261
|
backgroundColor: "#2a2734",
|
|
5223
5262
|
color: "#9a86fd"
|
|
@@ -5284,11 +5323,11 @@ var Fn = {
|
|
|
5284
5323
|
}
|
|
5285
5324
|
}]
|
|
5286
5325
|
};
|
|
5287
|
-
const
|
|
5288
|
-
var
|
|
5326
|
+
const Pn = zn;
|
|
5327
|
+
var Mn = {
|
|
5289
5328
|
// $FlowFixMe
|
|
5290
|
-
Prism:
|
|
5291
|
-
theme:
|
|
5329
|
+
Prism: $n,
|
|
5330
|
+
theme: Pn
|
|
5292
5331
|
};
|
|
5293
5332
|
function $e(e, t, r) {
|
|
5294
5333
|
return t in e ? Object.defineProperty(e, t, {
|
|
@@ -5308,7 +5347,7 @@ function _e() {
|
|
|
5308
5347
|
return e;
|
|
5309
5348
|
}, _e.apply(this, arguments);
|
|
5310
5349
|
}
|
|
5311
|
-
var
|
|
5350
|
+
var Bn = /\r\n|\r|\n/, Mt = function(e) {
|
|
5312
5351
|
e.length === 0 ? e.push({
|
|
5313
5352
|
types: ["plain"],
|
|
5314
5353
|
content: `
|
|
@@ -5316,32 +5355,32 @@ var Pn = /\r\n|\r|\n/, zt = function(e) {
|
|
|
5316
5355
|
empty: !0
|
|
5317
5356
|
}) : e.length === 1 && e[0].content === "" && (e[0].content = `
|
|
5318
5357
|
`, e[0].empty = !0);
|
|
5319
|
-
},
|
|
5358
|
+
}, Bt = function(e, t) {
|
|
5320
5359
|
var r = e.length;
|
|
5321
5360
|
return r > 0 && e[r - 1] === t ? e : e.concat(t);
|
|
5322
|
-
},
|
|
5361
|
+
}, jn = function(e) {
|
|
5323
5362
|
for (var t = [[]], r = [e], n = [0], s = [e.length], o = 0, l = 0, p = [], d = [p]; l > -1; ) {
|
|
5324
5363
|
for (; (o = n[l]++) < s[l]; ) {
|
|
5325
5364
|
var f = void 0, b = t[l], u = r[l], c = u[o];
|
|
5326
|
-
if (typeof c == "string" ? (b = l > 0 ? b : ["plain"], f = c) : (b =
|
|
5365
|
+
if (typeof c == "string" ? (b = l > 0 ? b : ["plain"], f = c) : (b = Bt(b, c.type), c.alias && (b = Bt(b, c.alias)), f = c.content), typeof f != "string") {
|
|
5327
5366
|
l++, t.push(b), r.push(f), n.push(0), s.push(f.length);
|
|
5328
5367
|
continue;
|
|
5329
5368
|
}
|
|
5330
|
-
var g = f.split(
|
|
5369
|
+
var g = f.split(Bn), y = g.length;
|
|
5331
5370
|
p.push({
|
|
5332
5371
|
types: b,
|
|
5333
5372
|
content: g[0]
|
|
5334
5373
|
});
|
|
5335
5374
|
for (var h = 1; h < y; h++)
|
|
5336
|
-
|
|
5375
|
+
Mt(p), d.push(p = []), p.push({
|
|
5337
5376
|
types: b,
|
|
5338
5377
|
content: g[h]
|
|
5339
5378
|
});
|
|
5340
5379
|
}
|
|
5341
5380
|
l--, t.pop(), r.pop(), n.pop(), s.pop();
|
|
5342
5381
|
}
|
|
5343
|
-
return
|
|
5344
|
-
},
|
|
5382
|
+
return Mt(p), d;
|
|
5383
|
+
}, Gn = function(e, t) {
|
|
5345
5384
|
var r = e.plain, n = /* @__PURE__ */ Object.create(null), s = e.styles.reduce(function(o, l) {
|
|
5346
5385
|
var p = l.languages, d = l.style;
|
|
5347
5386
|
return p && !p.includes(t) || l.types.forEach(function(f) {
|
|
@@ -5353,13 +5392,13 @@ var Pn = /\r\n|\r|\n/, zt = function(e) {
|
|
|
5353
5392
|
backgroundColor: null
|
|
5354
5393
|
}), s;
|
|
5355
5394
|
};
|
|
5356
|
-
function
|
|
5395
|
+
function jt(e, t) {
|
|
5357
5396
|
var r = {};
|
|
5358
5397
|
for (var n in e)
|
|
5359
5398
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) === -1 && (r[n] = e[n]);
|
|
5360
5399
|
return r;
|
|
5361
5400
|
}
|
|
5362
|
-
var
|
|
5401
|
+
var Un = /* @__PURE__ */ function(e) {
|
|
5363
5402
|
function t() {
|
|
5364
5403
|
for (var r = this, n = [], s = arguments.length; s--; )
|
|
5365
5404
|
n[s] = arguments[s];
|
|
@@ -5367,10 +5406,10 @@ var Bn = /* @__PURE__ */ function(e) {
|
|
|
5367
5406
|
if (r.themeDict !== void 0 && o.theme === r.prevTheme && o.language === r.prevLanguage)
|
|
5368
5407
|
return r.themeDict;
|
|
5369
5408
|
r.prevTheme = o.theme, r.prevLanguage = o.language;
|
|
5370
|
-
var l = o.theme ?
|
|
5409
|
+
var l = o.theme ? Gn(o.theme, o.language) : void 0;
|
|
5371
5410
|
return r.themeDict = l;
|
|
5372
5411
|
}), $e(this, "getLineProps", function(o) {
|
|
5373
|
-
var l = o.key, p = o.className, d = o.style, f =
|
|
5412
|
+
var l = o.key, p = o.className, d = o.style, f = jt(o, ["key", "className", "style", "line"]), b = f, u = _e({}, b, {
|
|
5374
5413
|
className: "token-line",
|
|
5375
5414
|
style: void 0,
|
|
5376
5415
|
key: void 0
|
|
@@ -5395,7 +5434,7 @@ var Bn = /* @__PURE__ */ function(e) {
|
|
|
5395
5434
|
return Object.assign.apply(Object, [b].concat(u));
|
|
5396
5435
|
}
|
|
5397
5436
|
}), $e(this, "getTokenProps", function(o) {
|
|
5398
|
-
var l = o.key, p = o.className, d = o.style, f = o.token, b =
|
|
5437
|
+
var l = o.key, p = o.className, d = o.style, f = o.token, b = jt(o, ["key", "className", "style", "token"]), u = b, c = _e({}, u, {
|
|
5399
5438
|
className: "token " + f.types.join(" "),
|
|
5400
5439
|
children: f.content,
|
|
5401
5440
|
style: r.getStyleForToken(f),
|
|
@@ -5415,7 +5454,7 @@ var Bn = /* @__PURE__ */ function(e) {
|
|
|
5415
5454
|
});
|
|
5416
5455
|
}
|
|
5417
5456
|
return e && (t.__proto__ = e), t.prototype = Object.create(e && e.prototype), t.prototype.constructor = t, t.prototype.render = function() {
|
|
5418
|
-
var n = this.props, s = n.Prism, o = n.language, l = n.code, p = n.children, d = this.getThemeDict(this.props), f = s.languages[o], b = f !== void 0 ? this.tokenize(s, l, f, o) : [l], u =
|
|
5457
|
+
var n = this.props, s = n.Prism, o = n.language, l = n.code, p = n.children, d = this.getThemeDict(this.props), f = s.languages[o], b = f !== void 0 ? this.tokenize(s, l, f, o) : [l], u = jn(b);
|
|
5419
5458
|
return p({
|
|
5420
5459
|
tokens: u,
|
|
5421
5460
|
className: "prism-code language-" + o,
|
|
@@ -5424,9 +5463,9 @@ var Bn = /* @__PURE__ */ function(e) {
|
|
|
5424
5463
|
getTokenProps: this.getTokenProps
|
|
5425
5464
|
});
|
|
5426
5465
|
}, t;
|
|
5427
|
-
}(
|
|
5428
|
-
const
|
|
5429
|
-
function
|
|
5466
|
+
}(kr);
|
|
5467
|
+
const Hn = Un;
|
|
5468
|
+
function Zt({ copied: e }) {
|
|
5430
5469
|
return /* @__PURE__ */ K.createElement("svg", {
|
|
5431
5470
|
viewBox: "0 0 15 15",
|
|
5432
5471
|
fill: "none",
|
|
@@ -5444,8 +5483,8 @@ function Kt({ copied: e }) {
|
|
|
5444
5483
|
clipRule: "evenodd"
|
|
5445
5484
|
}));
|
|
5446
5485
|
}
|
|
5447
|
-
|
|
5448
|
-
const
|
|
5486
|
+
Zt.displayName = "@mantine/prism/CopyIcon";
|
|
5487
|
+
const qn = (e) => ({
|
|
5449
5488
|
plain: {
|
|
5450
5489
|
color: e.colors.gray[4],
|
|
5451
5490
|
backgroundColor: e.colors.dark[8]
|
|
@@ -5530,7 +5569,7 @@ const Un = (e) => ({
|
|
|
5530
5569
|
}
|
|
5531
5570
|
}
|
|
5532
5571
|
]
|
|
5533
|
-
}),
|
|
5572
|
+
}), Yn = (e) => ({
|
|
5534
5573
|
plain: {
|
|
5535
5574
|
color: e.colors.gray[9],
|
|
5536
5575
|
backgroundColor: e.fn.rgba(e.colors.gray[0], 0.65)
|
|
@@ -5621,8 +5660,8 @@ const Un = (e) => ({
|
|
|
5621
5660
|
}
|
|
5622
5661
|
}
|
|
5623
5662
|
]
|
|
5624
|
-
}),
|
|
5625
|
-
var
|
|
5663
|
+
}), Vn = (e, t) => t === "dark" ? qn(e) : Yn(e);
|
|
5664
|
+
var Wn = qt((e, { colorScheme: t, native: r, maxLineSize: n, radius: s }) => ({
|
|
5626
5665
|
scrollArea: {},
|
|
5627
5666
|
root: {
|
|
5628
5667
|
position: "relative"
|
|
@@ -5632,7 +5671,7 @@ var Hn = qt((e, { colorScheme: t, native: r, maxLineSize: n, radius: s }) => ({
|
|
|
5632
5671
|
position: "relative",
|
|
5633
5672
|
fontFamily: e.fontFamilyMonospace,
|
|
5634
5673
|
lineHeight: 1.7,
|
|
5635
|
-
fontSize:
|
|
5674
|
+
fontSize: Me(13),
|
|
5636
5675
|
overflowX: r ? "auto" : void 0,
|
|
5637
5676
|
borderRadius: e.fn.radius(s),
|
|
5638
5677
|
padding: `${e.spacing.sm} 0`,
|
|
@@ -5659,7 +5698,7 @@ var Hn = qt((e, { colorScheme: t, native: r, maxLineSize: n, radius: s }) => ({
|
|
|
5659
5698
|
lineNumber: {
|
|
5660
5699
|
color: t === "dark" ? e.colors.dark[4] : e.colors.gray[4],
|
|
5661
5700
|
textAlign: "right",
|
|
5662
|
-
width: `calc(8 * ${
|
|
5701
|
+
width: `calc(8 * ${Me(n)})`,
|
|
5663
5702
|
marginRight: e.dir === "ltr" ? e.spacing.xs : void 0,
|
|
5664
5703
|
marginLeft: e.dir === "rtl" ? e.spacing.xs : void 0,
|
|
5665
5704
|
userSelect: "none"
|
|
@@ -5668,34 +5707,34 @@ var Hn = qt((e, { colorScheme: t, native: r, maxLineSize: n, radius: s }) => ({
|
|
|
5668
5707
|
width: "100%"
|
|
5669
5708
|
}
|
|
5670
5709
|
}));
|
|
5671
|
-
const
|
|
5672
|
-
var
|
|
5710
|
+
const Kn = Wn;
|
|
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) => {
|
|
5673
5712
|
for (var r in t || (t = {}))
|
|
5674
|
-
|
|
5675
|
-
if (
|
|
5676
|
-
for (var r of
|
|
5677
|
-
|
|
5713
|
+
Xt.call(t, r) && Gt(e, r, t[r]);
|
|
5714
|
+
if (Xe)
|
|
5715
|
+
for (var r of Xe(t))
|
|
5716
|
+
Qt.call(t, r) && Gt(e, r, t[r]);
|
|
5678
5717
|
return e;
|
|
5679
|
-
},
|
|
5718
|
+
}, ze = (e, t) => Xn(e, Qn(t)), Jn = (e, t) => {
|
|
5680
5719
|
var r = {};
|
|
5681
5720
|
for (var n in e)
|
|
5682
|
-
|
|
5683
|
-
if (e != null &&
|
|
5684
|
-
for (var n of
|
|
5685
|
-
t.indexOf(n) < 0 &&
|
|
5721
|
+
Xt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
5722
|
+
if (e != null && Xe)
|
|
5723
|
+
for (var n of Xe(e))
|
|
5724
|
+
t.indexOf(n) < 0 && Qt.call(e, n) && (r[n] = e[n]);
|
|
5686
5725
|
return r;
|
|
5687
5726
|
};
|
|
5688
|
-
const
|
|
5727
|
+
const ea = {
|
|
5689
5728
|
noCopy: !1,
|
|
5690
5729
|
copyLabel: "Copy code",
|
|
5691
5730
|
copiedLabel: "Copied",
|
|
5692
5731
|
withLineNumbers: !1,
|
|
5693
5732
|
trim: !0,
|
|
5694
5733
|
highlightLines: {},
|
|
5695
|
-
scrollAreaComponent:
|
|
5696
|
-
getPrismTheme:
|
|
5697
|
-
},
|
|
5698
|
-
const r =
|
|
5734
|
+
scrollAreaComponent: Yt,
|
|
5735
|
+
getPrismTheme: Vn
|
|
5736
|
+
}, wt = Je((e, t) => {
|
|
5737
|
+
const r = Ir("Prism", ea, e), {
|
|
5699
5738
|
className: n,
|
|
5700
5739
|
children: s,
|
|
5701
5740
|
language: o,
|
|
@@ -5713,7 +5752,7 @@ const Xn = {
|
|
|
5713
5752
|
radius: A,
|
|
5714
5753
|
getPrismTheme: k,
|
|
5715
5754
|
variant: $
|
|
5716
|
-
} = r, M =
|
|
5755
|
+
} = r, M = Jn(r, [
|
|
5717
5756
|
"className",
|
|
5718
5757
|
"children",
|
|
5719
5758
|
"language",
|
|
@@ -5731,19 +5770,19 @@ const Xn = {
|
|
|
5731
5770
|
"radius",
|
|
5732
5771
|
"getPrismTheme",
|
|
5733
5772
|
"variant"
|
|
5734
|
-
]),
|
|
5735
|
-
`).length.toString().length, Y =
|
|
5773
|
+
]), te = h && typeof s == "string" ? s.trim() : s, X = te.split(`
|
|
5774
|
+
`).length.toString().length, Y = Dr(), Z = Hr(), F = y || Y.colorScheme, { classes: L, cx: B } = Kn({
|
|
5736
5775
|
colorScheme: F,
|
|
5737
|
-
native: g !==
|
|
5738
|
-
maxLineSize:
|
|
5776
|
+
native: g !== Yt,
|
|
5777
|
+
maxLineSize: X,
|
|
5739
5778
|
radius: A
|
|
5740
5779
|
}, { name: "Prism", classNames: p, styles: d, unstyled: _, variant: $ });
|
|
5741
|
-
return /* @__PURE__ */ K.createElement(se,
|
|
5780
|
+
return /* @__PURE__ */ K.createElement(se, ze(Ie({
|
|
5742
5781
|
className: B(L.root, n),
|
|
5743
5782
|
ref: t
|
|
5744
5783
|
}, M), {
|
|
5745
5784
|
translate: "no"
|
|
5746
|
-
}), !l && /* @__PURE__ */ K.createElement(
|
|
5785
|
+
}), !l && /* @__PURE__ */ K.createElement(Ke, {
|
|
5747
5786
|
label: Z.copied ? b : f,
|
|
5748
5787
|
position: "left",
|
|
5749
5788
|
withArrow: !0,
|
|
@@ -5751,64 +5790,64 @@ const Xn = {
|
|
|
5751
5790
|
offset: 6,
|
|
5752
5791
|
color: Z.copied ? "teal" : void 0,
|
|
5753
5792
|
unstyled: _
|
|
5754
|
-
}, /* @__PURE__ */ K.createElement(
|
|
5793
|
+
}, /* @__PURE__ */ K.createElement(vt, {
|
|
5755
5794
|
className: L.copy,
|
|
5756
5795
|
"aria-label": Z.copied ? b : f,
|
|
5757
|
-
onClick: () => Z.copy(
|
|
5796
|
+
onClick: () => Z.copy(te),
|
|
5758
5797
|
unstyled: _
|
|
5759
|
-
}, /* @__PURE__ */ K.createElement(
|
|
5798
|
+
}, /* @__PURE__ */ K.createElement(Zt, {
|
|
5760
5799
|
copied: Z.copied
|
|
5761
|
-
}))), /* @__PURE__ */ K.createElement(
|
|
5800
|
+
}))), /* @__PURE__ */ K.createElement(Hn, ze(Ie({}, Mn), {
|
|
5762
5801
|
theme: k(Y, F),
|
|
5763
|
-
code:
|
|
5802
|
+
code: te,
|
|
5764
5803
|
language: o
|
|
5765
5804
|
}), ({
|
|
5766
|
-
className:
|
|
5805
|
+
className: ee,
|
|
5767
5806
|
style: R,
|
|
5768
5807
|
tokens: E,
|
|
5769
5808
|
getLineProps: S,
|
|
5770
|
-
getTokenProps:
|
|
5809
|
+
getTokenProps: x
|
|
5771
5810
|
}) => /* @__PURE__ */ K.createElement(g, {
|
|
5772
5811
|
className: L.scrollArea,
|
|
5773
5812
|
dir: "ltr"
|
|
5774
5813
|
}, /* @__PURE__ */ K.createElement("pre", {
|
|
5775
|
-
className: B(L.code,
|
|
5814
|
+
className: B(L.code, ee),
|
|
5776
5815
|
style: R,
|
|
5777
5816
|
dir: "ltr"
|
|
5778
|
-
}, E.map((w,
|
|
5779
|
-
var I, N,
|
|
5780
|
-
if (
|
|
5817
|
+
}, E.map((w, O) => {
|
|
5818
|
+
var I, N, H, j;
|
|
5819
|
+
if (O === E.length - 1 && w.length === 1 && w[0].content === `
|
|
5781
5820
|
`)
|
|
5782
5821
|
return null;
|
|
5783
|
-
const
|
|
5784
|
-
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), {
|
|
5785
5824
|
className: B(L.line, le.className),
|
|
5786
5825
|
style: Ie({}, ce ? { backgroundColor: pe } : null)
|
|
5787
5826
|
}), u && /* @__PURE__ */ K.createElement("div", {
|
|
5788
5827
|
className: L.lineNumber,
|
|
5789
5828
|
style: {
|
|
5790
|
-
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
|
|
5791
5830
|
}
|
|
5792
|
-
}, ((j = c[
|
|
5831
|
+
}, ((j = c[G]) == null ? void 0 : j.label) || G), /* @__PURE__ */ K.createElement("div", {
|
|
5793
5832
|
className: L.lineContent
|
|
5794
5833
|
}, w.map((ye, fe) => {
|
|
5795
|
-
var
|
|
5796
|
-
const ve =
|
|
5797
|
-
return /* @__PURE__ */ K.createElement("span",
|
|
5798
|
-
style:
|
|
5799
|
-
color: ce ? Y.fn.themeColor((
|
|
5834
|
+
var re, de;
|
|
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
|
|
5800
5839
|
})
|
|
5801
5840
|
}));
|
|
5802
5841
|
})));
|
|
5803
5842
|
}).filter(Boolean)))));
|
|
5804
5843
|
});
|
|
5805
|
-
|
|
5806
|
-
var
|
|
5844
|
+
wt.displayName = "@mantine/prism/Prism";
|
|
5845
|
+
var ta = qt((e, { radius: t }) => ({
|
|
5807
5846
|
tab: {
|
|
5808
5847
|
paddingLeft: e.spacing.sm,
|
|
5809
5848
|
paddingRight: e.spacing.sm,
|
|
5810
|
-
height:
|
|
5811
|
-
border: `${
|
|
5849
|
+
height: Me(34),
|
|
5850
|
+
border: `${Me(1)} solid ${e.colorScheme === "dark" ? e.colors.dark[5] : e.colors.gray[3]}`,
|
|
5812
5851
|
borderBottom: 0,
|
|
5813
5852
|
fontSize: e.fontSizes.sm,
|
|
5814
5853
|
color: e.colorScheme === "dark" ? e.colors.dark[1] : e.colors.gray[7],
|
|
@@ -5838,7 +5877,7 @@ var Qn = qt((e, { radius: t }) => ({
|
|
|
5838
5877
|
borderRadius: e.fn.radius(t),
|
|
5839
5878
|
borderTopRightRadius: 0,
|
|
5840
5879
|
borderTopLeftRadius: 0,
|
|
5841
|
-
border: `${
|
|
5880
|
+
border: `${Me(1)} solid ${e.colorScheme === "dark" ? e.colors.dark[4] : e.colors.gray[3]}`,
|
|
5842
5881
|
borderTop: 0,
|
|
5843
5882
|
overflow: "hidden"
|
|
5844
5883
|
},
|
|
@@ -5848,32 +5887,32 @@ var Qn = qt((e, { radius: t }) => ({
|
|
|
5848
5887
|
border: 0
|
|
5849
5888
|
}
|
|
5850
5889
|
}));
|
|
5851
|
-
const
|
|
5852
|
-
var
|
|
5890
|
+
const Jt = ta;
|
|
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) => {
|
|
5853
5892
|
for (var r in t || (t = {}))
|
|
5854
|
-
|
|
5855
|
-
if (
|
|
5856
|
-
for (var r of
|
|
5857
|
-
|
|
5893
|
+
er.call(t, r) && Ut(e, r, t[r]);
|
|
5894
|
+
if (Qe)
|
|
5895
|
+
for (var r of Qe(t))
|
|
5896
|
+
tr.call(t, r) && Ut(e, r, t[r]);
|
|
5858
5897
|
return e;
|
|
5859
|
-
},
|
|
5898
|
+
}, ia = (e, t) => na(e, aa(t)), oa = (e, t) => {
|
|
5860
5899
|
var r = {};
|
|
5861
5900
|
for (var n in e)
|
|
5862
|
-
|
|
5863
|
-
if (e != null &&
|
|
5864
|
-
for (var n of
|
|
5865
|
-
t.indexOf(n) < 0 &&
|
|
5901
|
+
er.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
5902
|
+
if (e != null && Qe)
|
|
5903
|
+
for (var n of Qe(e))
|
|
5904
|
+
t.indexOf(n) < 0 && tr.call(e, n) && (r[n] = e[n]);
|
|
5866
5905
|
return r;
|
|
5867
5906
|
};
|
|
5868
|
-
function
|
|
5869
|
-
const { classes: t } =
|
|
5870
|
-
return /* @__PURE__ */ K.createElement(
|
|
5907
|
+
function sa(e) {
|
|
5908
|
+
const { classes: t } = Jt({ radius: e.radius });
|
|
5909
|
+
return /* @__PURE__ */ K.createElement(at, ia(rr({}, e), {
|
|
5871
5910
|
variant: "outline",
|
|
5872
5911
|
classNames: { tab: t.tab },
|
|
5873
5912
|
translate: "no"
|
|
5874
5913
|
}));
|
|
5875
5914
|
}
|
|
5876
|
-
function
|
|
5915
|
+
function la(e) {
|
|
5877
5916
|
var t = e, {
|
|
5878
5917
|
language: r,
|
|
5879
5918
|
children: n,
|
|
@@ -5888,7 +5927,7 @@ function ia(e) {
|
|
|
5888
5927
|
getPrismTheme: c,
|
|
5889
5928
|
colorScheme: g,
|
|
5890
5929
|
variant: y
|
|
5891
|
-
} = t, h =
|
|
5930
|
+
} = t, h = oa(t, [
|
|
5892
5931
|
"language",
|
|
5893
5932
|
"children",
|
|
5894
5933
|
"radius",
|
|
@@ -5903,8 +5942,8 @@ function ia(e) {
|
|
|
5903
5942
|
"colorScheme",
|
|
5904
5943
|
"variant"
|
|
5905
5944
|
]);
|
|
5906
|
-
const { classes: _ } =
|
|
5907
|
-
return /* @__PURE__ */ K.createElement(
|
|
5945
|
+
const { classes: _ } = Jt({ radius: s });
|
|
5946
|
+
return /* @__PURE__ */ K.createElement(at.Panel, rr({}, h), /* @__PURE__ */ K.createElement(wt, {
|
|
5908
5947
|
language: r,
|
|
5909
5948
|
classNames: { root: _.prism, code: _.code },
|
|
5910
5949
|
radius: s,
|
|
@@ -5920,17 +5959,17 @@ function ia(e) {
|
|
|
5920
5959
|
variant: y
|
|
5921
5960
|
}, n));
|
|
5922
5961
|
}
|
|
5923
|
-
const
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
function
|
|
5962
|
+
const He = wt;
|
|
5963
|
+
He.Tabs = sa;
|
|
5964
|
+
He.Tab = at.Tab;
|
|
5965
|
+
He.TabsList = at.List;
|
|
5966
|
+
He.Panel = la;
|
|
5967
|
+
function ua({
|
|
5929
5968
|
id: e,
|
|
5930
5969
|
onSuccess: t,
|
|
5931
5970
|
styles: r = De
|
|
5932
5971
|
}) {
|
|
5933
|
-
const n =
|
|
5972
|
+
const n = Ge(), s = async () => {
|
|
5934
5973
|
if (e) {
|
|
5935
5974
|
be({
|
|
5936
5975
|
id: "for-deleting",
|
|
@@ -5939,14 +5978,14 @@ function oa({
|
|
|
5939
5978
|
loading: !0
|
|
5940
5979
|
});
|
|
5941
5980
|
try {
|
|
5942
|
-
await oe.sql_snippet.delete(e),
|
|
5981
|
+
await oe.sql_snippet.delete(e), J({
|
|
5943
5982
|
id: "for-deleting",
|
|
5944
5983
|
title: "Successful",
|
|
5945
5984
|
message: `SQL Snippet [${e}] is deleted`,
|
|
5946
5985
|
color: "green"
|
|
5947
5986
|
}), t();
|
|
5948
5987
|
} catch (l) {
|
|
5949
|
-
|
|
5988
|
+
J({
|
|
5950
5989
|
id: "for-deleting",
|
|
5951
5990
|
title: "Failed",
|
|
5952
5991
|
message: l.message,
|
|
@@ -5966,17 +6005,17 @@ function oa({
|
|
|
5966
6005
|
color: "red"
|
|
5967
6006
|
}
|
|
5968
6007
|
});
|
|
5969
|
-
return /* @__PURE__ */ a(V, { size: r.button.size, color: "red", onClick: o, leftIcon: /* @__PURE__ */ a(
|
|
6008
|
+
return /* @__PURE__ */ a(V, { size: r.button.size, color: "red", onClick: o, leftIcon: /* @__PURE__ */ a(ot, { size: 20 }), children: "Delete" });
|
|
5970
6009
|
}
|
|
5971
|
-
function
|
|
6010
|
+
function ca({
|
|
5972
6011
|
content: e
|
|
5973
6012
|
}) {
|
|
5974
|
-
return /* @__PURE__ */ C(
|
|
5975
|
-
/* @__PURE__ */ a(
|
|
5976
|
-
/* @__PURE__ */ a(
|
|
6013
|
+
return /* @__PURE__ */ C(gt, { width: "60vw", shadow: "md", children: [
|
|
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 }) })
|
|
5977
6016
|
] });
|
|
5978
6017
|
}
|
|
5979
|
-
function
|
|
6018
|
+
function Ta({
|
|
5980
6019
|
styles: e = De,
|
|
5981
6020
|
config: t
|
|
5982
6021
|
}) {
|
|
@@ -5985,7 +6024,7 @@ function ka({
|
|
|
5985
6024
|
data: r = [],
|
|
5986
6025
|
loading: n,
|
|
5987
6026
|
refresh: s
|
|
5988
|
-
} =
|
|
6027
|
+
} = xe(async () => {
|
|
5989
6028
|
const {
|
|
5990
6029
|
data: o
|
|
5991
6030
|
} = await oe.sql_snippet.list({
|
|
@@ -5999,12 +6038,12 @@ function ka({
|
|
|
5999
6038
|
refreshDeps: []
|
|
6000
6039
|
});
|
|
6001
6040
|
return /* @__PURE__ */ C(he, { children: [
|
|
6002
|
-
/* @__PURE__ */ a(
|
|
6041
|
+
/* @__PURE__ */ a(Q, { pt: e.spacing, position: "right", children: /* @__PURE__ */ a(Ln, { onSuccess: s }) }),
|
|
6003
6042
|
/* @__PURE__ */ C(se, { mt: e.spacing, sx: {
|
|
6004
6043
|
position: "relative"
|
|
6005
6044
|
}, children: [
|
|
6006
|
-
/* @__PURE__ */ a(
|
|
6007
|
-
/* @__PURE__ */ C(
|
|
6045
|
+
/* @__PURE__ */ a(rt, { visible: n }),
|
|
6046
|
+
/* @__PURE__ */ C(nt, { horizontalSpacing: e.spacing, verticalSpacing: e.spacing, fontSize: e.size, highlightOnHover: !0, children: [
|
|
6008
6047
|
/* @__PURE__ */ a("thead", { children: /* @__PURE__ */ C("tr", { children: [
|
|
6009
6048
|
/* @__PURE__ */ a("th", { children: "Name" }),
|
|
6010
6049
|
/* @__PURE__ */ a("th", {}),
|
|
@@ -6021,12 +6060,12 @@ function ka({
|
|
|
6021
6060
|
} = o;
|
|
6022
6061
|
return /* @__PURE__ */ C("tr", { children: [
|
|
6023
6062
|
/* @__PURE__ */ a("td", { children: l }),
|
|
6024
|
-
/* @__PURE__ */ a("td", { width: 50, children: /* @__PURE__ */ a(
|
|
6063
|
+
/* @__PURE__ */ a("td", { width: 50, children: /* @__PURE__ */ a(ca, { content: p }) }),
|
|
6025
6064
|
/* @__PURE__ */ a("td", { width: 200, children: d }),
|
|
6026
6065
|
/* @__PURE__ */ a("td", { width: 200, children: f }),
|
|
6027
|
-
/* @__PURE__ */ a("td", { width: 400, children: /* @__PURE__ */ C(
|
|
6028
|
-
/* @__PURE__ */ a(
|
|
6029
|
-
/* @__PURE__ */ a(
|
|
6066
|
+
/* @__PURE__ */ a("td", { width: 400, children: /* @__PURE__ */ C(Q, { position: "left", children: [
|
|
6067
|
+
/* @__PURE__ */ a(Nn, { ...o, onSuccess: s }),
|
|
6068
|
+
/* @__PURE__ */ a(ua, { id: l, onSuccess: s })
|
|
6030
6069
|
] }) })
|
|
6031
6070
|
] }, l);
|
|
6032
6071
|
}) })
|
|
@@ -6034,23 +6073,28 @@ function ka({
|
|
|
6034
6073
|
] })
|
|
6035
6074
|
] });
|
|
6036
6075
|
}
|
|
6037
|
-
const
|
|
6076
|
+
const Ra = () => import("./package-576d8b62.mjs").then(({
|
|
6038
6077
|
version: e
|
|
6039
6078
|
}) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
|
|
6040
6079
|
export {
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6080
|
+
ae as APIClient,
|
|
6081
|
+
ka as APIKeyList,
|
|
6082
|
+
_a as AccountList,
|
|
6083
|
+
Cn as AddAPIKey,
|
|
6084
|
+
An as AddAccount,
|
|
6085
|
+
pn as AddDataSource,
|
|
6086
|
+
Ln as AddSQLSnippet,
|
|
6087
|
+
Ea as DataSourceList,
|
|
6088
|
+
Xr as DefaultApiClient,
|
|
6089
|
+
In as DeleteAPIKey,
|
|
6090
|
+
kn as DeleteAccount,
|
|
6091
|
+
hn as DeleteDataSource,
|
|
6092
|
+
ua as DeleteSQLSnippet,
|
|
6093
|
+
Qr as FacadeApiClient,
|
|
6094
|
+
Aa as Login,
|
|
6095
|
+
Ta as SQLSnippetList,
|
|
6096
|
+
Nn as UpdateSQLSnippet,
|
|
6097
|
+
Ue as configureAPIClient,
|
|
6098
|
+
Jr as facadeApiClient,
|
|
6099
|
+
Ra as getVersion
|
|
6056
6100
|
};
|