@kong-ui-public/entities-redis-configurations 1.6.6-pr.2696.bdcc0c1fc.0 → 1.6.6
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/entities-redis-configurations.es.js +685 -700
- package/dist/entities-redis-configurations.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/RedisConfigurationForm.vue.d.ts.map +1 -1
- package/dist/types/composables/useRedisConfigurationForm.d.ts +1 -1
- package/dist/types/composables/useRedisConfigurationForm.d.ts.map +1 -1
- package/dist/types/types/redis-configuration-form.d.ts +1 -5
- package/dist/types/types/redis-configuration-form.d.ts.map +1 -1
- package/dist/types/types/redis-configuration.d.ts +1 -1
- package/dist/types/types/redis-configuration.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { computed as
|
|
1
|
+
import { computed as B, reactive as mn, ref as x, watch as Ee, defineComponent as Q, resolveComponent as $, createElementBlock as J, openBlock as k, createVNode as g, withCtx as S, renderSlot as gi, unref as r, mergeModels as Et, useModel as Ct, createElementVNode as z, createTextVNode as le, toDisplayString as U, Fragment as fe, renderList as tt, createBlock as F, createCommentVNode as X, getCurrentInstance as bi, onMounted as yi, onUnmounted as vi, isReadonly as hi, toRefs as wi, onBeforeMount as _n, isRef as Ti, createSlots as gn, withModifiers as Si, Teleport as Ei, inject as bn, useId as Ci, nextTick as Dt, mergeProps as Ii } from "vue";
|
|
2
2
|
import "@kong-ui-public/entities-shared/dist/style.css";
|
|
3
3
|
import "@kong-ui-public/entities-vaults/dist/style.css";
|
|
4
|
-
import { useAxios as
|
|
5
|
-
import { VaultSecretPickerProvider as
|
|
4
|
+
import { useAxios as It, useErrors as yn, EntityBaseFormType as dt, EntityBaseForm as ki, SupportedEntityType as vn, EntityFormSection as ue, EntityFilter as hn, useDeleteUrlBuilder as Oi, useFetcher as Ri, FetcherStatus as xi, EntityBaseTable as Ai, PermissionsWrapper as Ke, TableTags as Pi, EntityDeleteModal as $i, EntityTypes as Vi, ConfigurationSchemaSection as V, ConfigurationSchemaType as M, EntityBaseConfigCard as Mi, useDebouncedFilter as Di } from "@kong-ui-public/entities-shared";
|
|
5
|
+
import { VaultSecretPickerProvider as De, VaultSecretPicker as wn } from "@kong-ui-public/entities-vaults";
|
|
6
6
|
import { useRouter as Tn } from "vue-router";
|
|
7
7
|
import { TrashIcon as ji, AddCircleIcon as Sn, AddIcon as yt, RefreshIcon as Li, ClipboardIcon as Ui, DeployIcon as Ni } from "@kong/icons";
|
|
8
8
|
import { createI18n as Bi, i18nTComponent as Fi } from "@kong-ui-public/i18n";
|
|
9
9
|
import { PluginIcon as En } from "@kong-ui-public/entities-plugins-icon";
|
|
10
10
|
import { FORMS_CONFIG as Cn } from "@kong-ui-public/forms";
|
|
11
|
-
var T = /* @__PURE__ */ ((e) => (e[e.HOST_PORT_CE = 0] = "HOST_PORT_CE", e[e.HOST_PORT_EE = 1] = "HOST_PORT_EE", e[e.SENTINEL = 2] = "SENTINEL", e[e.CLUSTER = 3] = "CLUSTER", e))(T || {}), Z = /* @__PURE__ */ ((e) => (e.REDIS_CE = "redis-ce", e.REDIS_EE = "redis-ee", e))(Z || {}), q = /* @__PURE__ */ ((e) => (e.AWS = "aws", e.GCP = "gcp", e.AZURE = "azure", e))(q || {}),
|
|
11
|
+
var T = /* @__PURE__ */ ((e) => (e[e.HOST_PORT_CE = 0] = "HOST_PORT_CE", e[e.HOST_PORT_EE = 1] = "HOST_PORT_EE", e[e.SENTINEL = 2] = "SENTINEL", e[e.CLUSTER = 3] = "CLUSTER", e))(T || {}), Z = /* @__PURE__ */ ((e) => (e.REDIS_CE = "redis-ce", e.REDIS_EE = "redis-ee", e))(Z || {}), q = /* @__PURE__ */ ((e) => (e.AWS = "aws", e.GCP = "gcp", e.AZURE = "azure", e))(q || {}), In = typeof global == "object" && global && global.Object === Object && global, zi = typeof self == "object" && self && self.Object === Object && self, se = In || zi || Function("return this")(), ee = se.Symbol, kn = Object.prototype, Ki = kn.hasOwnProperty, Hi = kn.toString, Me = ee ? ee.toStringTag : void 0;
|
|
12
12
|
function Wi(e) {
|
|
13
|
-
var t = Ki.call(e,
|
|
13
|
+
var t = Ki.call(e, Me), n = e[Me];
|
|
14
14
|
try {
|
|
15
|
-
e[
|
|
15
|
+
e[Me] = void 0;
|
|
16
16
|
var o = !0;
|
|
17
17
|
} catch {
|
|
18
18
|
}
|
|
19
19
|
var i = Hi.call(e);
|
|
20
|
-
return o && (t ? e[
|
|
20
|
+
return o && (t ? e[Me] = n : delete e[Me]), i;
|
|
21
21
|
}
|
|
22
22
|
var qi = Object.prototype, Gi = qi.toString;
|
|
23
23
|
function Ji(e) {
|
|
24
24
|
return Gi.call(e);
|
|
25
25
|
}
|
|
26
26
|
var Zi = "[object Null]", Qi = "[object Undefined]", jt = ee ? ee.toStringTag : void 0;
|
|
27
|
-
function
|
|
27
|
+
function Ie(e) {
|
|
28
28
|
return e == null ? e === void 0 ? Qi : Zi : jt && jt in Object(e) ? Wi(e) : Ji(e);
|
|
29
29
|
}
|
|
30
30
|
function me(e) {
|
|
31
31
|
return e != null && typeof e == "object";
|
|
32
32
|
}
|
|
33
33
|
var Yi = "[object Symbol]";
|
|
34
|
-
function
|
|
35
|
-
return typeof e == "symbol" || me(e) &&
|
|
34
|
+
function kt(e) {
|
|
35
|
+
return typeof e == "symbol" || me(e) && Ie(e) == Yi;
|
|
36
36
|
}
|
|
37
37
|
function On(e, t) {
|
|
38
38
|
for (var n = -1, o = e == null ? 0 : e.length, i = Array(o); ++n < o; )
|
|
@@ -45,7 +45,7 @@ function Rn(e) {
|
|
|
45
45
|
return e;
|
|
46
46
|
if (_e(e))
|
|
47
47
|
return On(e, Rn) + "";
|
|
48
|
-
if (
|
|
48
|
+
if (kt(e))
|
|
49
49
|
return Ut ? Ut.call(e) : "";
|
|
50
50
|
var t = e + "";
|
|
51
51
|
return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
|
|
@@ -61,7 +61,7 @@ var er = "[object AsyncFunction]", tr = "[object Function]", nr = "[object Gener
|
|
|
61
61
|
function xn(e) {
|
|
62
62
|
if (!nt(e))
|
|
63
63
|
return !1;
|
|
64
|
-
var t =
|
|
64
|
+
var t = Ie(e);
|
|
65
65
|
return t == tr || t == nr || t == er || t == ir;
|
|
66
66
|
}
|
|
67
67
|
var ut = se["__core-js_shared__"], Nt = function() {
|
|
@@ -72,7 +72,7 @@ function rr(e) {
|
|
|
72
72
|
return !!Nt && Nt in e;
|
|
73
73
|
}
|
|
74
74
|
var or = Function.prototype, ar = or.toString;
|
|
75
|
-
function
|
|
75
|
+
function ke(e) {
|
|
76
76
|
if (e != null) {
|
|
77
77
|
try {
|
|
78
78
|
return ar.call(e);
|
|
@@ -92,7 +92,7 @@ function mr(e) {
|
|
|
92
92
|
if (!nt(e) || rr(e))
|
|
93
93
|
return !1;
|
|
94
94
|
var t = xn(e) ? pr : sr;
|
|
95
|
-
return t.test(
|
|
95
|
+
return t.test(ke(e));
|
|
96
96
|
}
|
|
97
97
|
function _r(e, t) {
|
|
98
98
|
return e == null ? void 0 : e[t];
|
|
@@ -152,10 +152,10 @@ function Er(e, t) {
|
|
|
152
152
|
;
|
|
153
153
|
return e;
|
|
154
154
|
}
|
|
155
|
-
var Cr = 9007199254740991,
|
|
156
|
-
function
|
|
155
|
+
var Cr = 9007199254740991, Ir = /^(?:0|[1-9]\d*)$/;
|
|
156
|
+
function kr(e, t) {
|
|
157
157
|
var n = typeof e;
|
|
158
|
-
return t = t ?? Cr, !!t && (n == "number" || n != "symbol" &&
|
|
158
|
+
return t = t ?? Cr, !!t && (n == "number" || n != "symbol" && Ir.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
159
159
|
}
|
|
160
160
|
function An(e, t, n) {
|
|
161
161
|
t == "__proto__" && Je ? Je(e, t, {
|
|
@@ -177,8 +177,8 @@ function xr(e, t, n, o) {
|
|
|
177
177
|
var i = !n;
|
|
178
178
|
n || (n = {});
|
|
179
179
|
for (var a = -1, c = t.length; ++a < c; ) {
|
|
180
|
-
var
|
|
181
|
-
l === void 0 && (l = e[
|
|
180
|
+
var f = t[a], l = void 0;
|
|
181
|
+
l === void 0 && (l = e[f]), i ? An(n, f, l) : Pn(n, f, l);
|
|
182
182
|
}
|
|
183
183
|
return n;
|
|
184
184
|
}
|
|
@@ -188,9 +188,9 @@ function Ar(e, t, n) {
|
|
|
188
188
|
for (var o = arguments, i = -1, a = Bt(o.length - t, 0), c = Array(a); ++i < a; )
|
|
189
189
|
c[i] = o[t + i];
|
|
190
190
|
i = -1;
|
|
191
|
-
for (var
|
|
192
|
-
|
|
193
|
-
return
|
|
191
|
+
for (var f = Array(t + 1); ++i < t; )
|
|
192
|
+
f[i] = o[i];
|
|
193
|
+
return f[t] = n(c), gr(e, this, f);
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
196
|
var Pr = 9007199254740991;
|
|
@@ -212,7 +212,7 @@ function Vr(e, t) {
|
|
|
212
212
|
}
|
|
213
213
|
var Mr = "[object Arguments]";
|
|
214
214
|
function Ft(e) {
|
|
215
|
-
return me(e) &&
|
|
215
|
+
return me(e) && Ie(e) == Mr;
|
|
216
216
|
}
|
|
217
217
|
var Dn = Object.prototype, Dr = Dn.hasOwnProperty, jr = Dn.propertyIsEnumerable, jn = Ft(/* @__PURE__ */ function() {
|
|
218
218
|
return arguments;
|
|
@@ -226,29 +226,29 @@ var Ln = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
226
226
|
L[no] = L[io] = L[ro] = L[oo] = L[ao] = L[lo] = L[so] = L[uo] = L[co] = !0;
|
|
227
227
|
L[Br] = L[Fr] = L[eo] = L[zr] = L[to] = L[Kr] = L[Hr] = L[Wr] = L[qr] = L[Gr] = L[Jr] = L[Zr] = L[Qr] = L[Yr] = L[Xr] = !1;
|
|
228
228
|
function fo(e) {
|
|
229
|
-
return me(e) && $n(e.length) && !!L[
|
|
229
|
+
return me(e) && $n(e.length) && !!L[Ie(e)];
|
|
230
230
|
}
|
|
231
231
|
function Rt(e) {
|
|
232
232
|
return function(t) {
|
|
233
233
|
return e(t);
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
|
-
var Un = typeof exports == "object" && exports && !exports.nodeType && exports, je = Un && typeof module == "object" && module && !module.nodeType && module, po = je && je.exports === Un, ct = po &&
|
|
236
|
+
var Un = typeof exports == "object" && exports && !exports.nodeType && exports, je = Un && typeof module == "object" && module && !module.nodeType && module, po = je && je.exports === Un, ct = po && In.process, $e = function() {
|
|
237
237
|
try {
|
|
238
238
|
var e = je && je.require && je.require("util").types;
|
|
239
239
|
return e || ct && ct.binding && ct.binding("util");
|
|
240
240
|
} catch {
|
|
241
241
|
}
|
|
242
|
-
}(), Ht =
|
|
242
|
+
}(), Ht = $e && $e.isTypedArray, Nn = Ht ? Rt(Ht) : fo, mo = Object.prototype, _o = mo.hasOwnProperty;
|
|
243
243
|
function Bn(e, t) {
|
|
244
|
-
var n = _e(e), o = !n && jn(e), i = !n && !o && Ze(e), a = !n && !o && !i && Nn(e), c = n || o || i || a,
|
|
244
|
+
var n = _e(e), o = !n && jn(e), i = !n && !o && Ze(e), a = !n && !o && !i && Nn(e), c = n || o || i || a, f = c ? Vr(e.length, String) : [], l = f.length;
|
|
245
245
|
for (var u in e)
|
|
246
246
|
(t || _o.call(e, u)) && !(c && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
247
247
|
(u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
248
248
|
i && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
249
249
|
a && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
|
|
250
|
-
|
|
251
|
-
return
|
|
250
|
+
kr(u, l))) && f.push(u);
|
|
251
|
+
return f;
|
|
252
252
|
}
|
|
253
253
|
function Fn(e, t) {
|
|
254
254
|
return function(n) {
|
|
@@ -286,12 +286,12 @@ function Eo(e) {
|
|
|
286
286
|
function Co(e) {
|
|
287
287
|
return Vn(e) ? Bn(e, !0) : Eo(e);
|
|
288
288
|
}
|
|
289
|
-
var
|
|
289
|
+
var Io = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ko = /^\w*$/;
|
|
290
290
|
function Oo(e, t) {
|
|
291
291
|
if (_e(e))
|
|
292
292
|
return !1;
|
|
293
293
|
var n = typeof e;
|
|
294
|
-
return n == "number" || n == "symbol" || n == "boolean" || e == null ||
|
|
294
|
+
return n == "number" || n == "symbol" || n == "boolean" || e == null || kt(e) ? !0 : ko.test(e) || !Io.test(e) || t != null && e in Object(t);
|
|
295
295
|
}
|
|
296
296
|
var Le = Oe(Object, "create");
|
|
297
297
|
function Ro() {
|
|
@@ -448,7 +448,7 @@ function At(e, t) {
|
|
|
448
448
|
return _e(e) ? e : Oo(e, t) ? [e] : ra(oa(e));
|
|
449
449
|
}
|
|
450
450
|
function zn(e) {
|
|
451
|
-
if (typeof e == "string" ||
|
|
451
|
+
if (typeof e == "string" || kt(e))
|
|
452
452
|
return e;
|
|
453
453
|
var t = e + "";
|
|
454
454
|
return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
|
|
@@ -471,8 +471,8 @@ function la(e) {
|
|
|
471
471
|
function sa(e, t, n, o, i) {
|
|
472
472
|
var a = -1, c = e.length;
|
|
473
473
|
for (n || (n = la), i || (i = []); ++a < c; ) {
|
|
474
|
-
var
|
|
475
|
-
n(
|
|
474
|
+
var f = e[a];
|
|
475
|
+
n(f) ? Pt(i, f) : i[i.length] = f;
|
|
476
476
|
}
|
|
477
477
|
return i;
|
|
478
478
|
}
|
|
@@ -485,7 +485,7 @@ function ua(e) {
|
|
|
485
485
|
}
|
|
486
486
|
var Kn = Fn(Object.getPrototypeOf, Object), ca = "[object Object]", fa = Function.prototype, pa = Object.prototype, Hn = fa.toString, ma = pa.hasOwnProperty, _a = Hn.call(Object);
|
|
487
487
|
function ga(e) {
|
|
488
|
-
if (!me(e) ||
|
|
488
|
+
if (!me(e) || Ie(e) != ca)
|
|
489
489
|
return !1;
|
|
490
490
|
var t = Kn(e);
|
|
491
491
|
if (t === null)
|
|
@@ -538,7 +538,7 @@ Gt && Gt.allocUnsafe;
|
|
|
538
538
|
function Ca(e, t) {
|
|
539
539
|
return e.slice();
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function Ia(e, t) {
|
|
542
542
|
for (var n = -1, o = e == null ? 0 : e.length, i = 0, a = []; ++n < o; ) {
|
|
543
543
|
var c = e[n];
|
|
544
544
|
t(c, n, e) && (a[i++] = c);
|
|
@@ -548,8 +548,8 @@ function ka(e, t) {
|
|
|
548
548
|
function qn() {
|
|
549
549
|
return [];
|
|
550
550
|
}
|
|
551
|
-
var
|
|
552
|
-
return e == null ? [] : (e = Object(e),
|
|
551
|
+
var ka = Object.prototype, Oa = ka.propertyIsEnumerable, Jt = Object.getOwnPropertySymbols, Gn = Jt ? function(e) {
|
|
552
|
+
return e == null ? [] : (e = Object(e), Ia(Jt(e), function(t) {
|
|
553
553
|
return Oa.call(e, t);
|
|
554
554
|
}));
|
|
555
555
|
} : qn, Ra = Object.getOwnPropertySymbols, xa = Ra ? function(e) {
|
|
@@ -567,9 +567,9 @@ function Zt(e) {
|
|
|
567
567
|
function Zn(e) {
|
|
568
568
|
return Jn(e, Co, xa);
|
|
569
569
|
}
|
|
570
|
-
var ht = Oe(se, "DataView"), wt = Oe(se, "Promise"), Tt = Oe(se, "Set"), Qt = "[object Map]", Aa = "[object Object]", Yt = "[object Promise]", Xt = "[object Set]", en = "[object WeakMap]", tn = "[object DataView]", Pa =
|
|
570
|
+
var ht = Oe(se, "DataView"), wt = Oe(se, "Promise"), Tt = Oe(se, "Set"), Qt = "[object Map]", Aa = "[object Object]", Yt = "[object Promise]", Xt = "[object Set]", en = "[object WeakMap]", tn = "[object DataView]", Pa = ke(ht), $a = ke(Ue), Va = ke(wt), Ma = ke(Tt), Da = ke(vt), ae = Ie;
|
|
571
571
|
(ht && ae(new ht(new ArrayBuffer(1))) != tn || Ue && ae(new Ue()) != Qt || wt && ae(wt.resolve()) != Yt || Tt && ae(new Tt()) != Xt || vt && ae(new vt()) != en) && (ae = function(e) {
|
|
572
|
-
var t =
|
|
572
|
+
var t = Ie(e), n = t == Aa ? e.constructor : void 0, o = n ? ke(n) : "";
|
|
573
573
|
if (o)
|
|
574
574
|
switch (o) {
|
|
575
575
|
case Pa:
|
|
@@ -650,12 +650,12 @@ var cl = "[object Map]";
|
|
|
650
650
|
function fl(e) {
|
|
651
651
|
return me(e) && ae(e) == cl;
|
|
652
652
|
}
|
|
653
|
-
var on =
|
|
653
|
+
var on = $e && $e.isMap, pl = on ? Rt(on) : fl, ml = "[object Set]";
|
|
654
654
|
function _l(e) {
|
|
655
655
|
return me(e) && ae(e) == ml;
|
|
656
656
|
}
|
|
657
|
-
var an =
|
|
658
|
-
D[Qn] = D[bl] = D[Rl] = D[xl] = D[yl] = D[vl] = D[Al] = D[Pl] = D[$l] = D[Vl] = D[Ml] = D[Tl] = D[Sl] = D[Xn] = D[El] = D[Cl] = D[
|
|
657
|
+
var an = $e && $e.isSet, gl = an ? Rt(an) : _l, Qn = "[object Arguments]", bl = "[object Array]", yl = "[object Boolean]", vl = "[object Date]", hl = "[object Error]", Yn = "[object Function]", wl = "[object GeneratorFunction]", Tl = "[object Map]", Sl = "[object Number]", Xn = "[object Object]", El = "[object RegExp]", Cl = "[object Set]", Il = "[object String]", kl = "[object Symbol]", Ol = "[object WeakMap]", Rl = "[object ArrayBuffer]", xl = "[object DataView]", Al = "[object Float32Array]", Pl = "[object Float64Array]", $l = "[object Int8Array]", Vl = "[object Int16Array]", Ml = "[object Int32Array]", Dl = "[object Uint8Array]", jl = "[object Uint8ClampedArray]", Ll = "[object Uint16Array]", Ul = "[object Uint32Array]", D = {};
|
|
658
|
+
D[Qn] = D[bl] = D[Rl] = D[xl] = D[yl] = D[vl] = D[Al] = D[Pl] = D[$l] = D[Vl] = D[Ml] = D[Tl] = D[Sl] = D[Xn] = D[El] = D[Cl] = D[Il] = D[kl] = D[Dl] = D[jl] = D[Ll] = D[Ul] = !0;
|
|
659
659
|
D[hl] = D[Yn] = D[Ol] = !1;
|
|
660
660
|
function Ge(e, t, n, o, i, a) {
|
|
661
661
|
var c;
|
|
@@ -663,8 +663,8 @@ function Ge(e, t, n, o, i, a) {
|
|
|
663
663
|
return c;
|
|
664
664
|
if (!nt(e))
|
|
665
665
|
return e;
|
|
666
|
-
var
|
|
667
|
-
if (
|
|
666
|
+
var f = _e(e);
|
|
667
|
+
if (f)
|
|
668
668
|
c = Ua(e);
|
|
669
669
|
else {
|
|
670
670
|
var l = ae(e), u = l == Yn || l == wl;
|
|
@@ -684,12 +684,12 @@ function Ge(e, t, n, o, i, a) {
|
|
|
684
684
|
return y;
|
|
685
685
|
a.set(e, c), gl(e) ? e.forEach(function(b) {
|
|
686
686
|
c.add(Ge(b, t, n, b, e, a));
|
|
687
|
-
}) : pl(e) && e.forEach(function(b,
|
|
688
|
-
c.set(
|
|
687
|
+
}) : pl(e) && e.forEach(function(b, m) {
|
|
688
|
+
c.set(m, Ge(b, t, n, m, e, a));
|
|
689
689
|
});
|
|
690
|
-
var w = Zn,
|
|
691
|
-
return Er(
|
|
692
|
-
|
|
690
|
+
var w = Zn, p = f ? void 0 : w(e);
|
|
691
|
+
return Er(p || e, function(b, m) {
|
|
692
|
+
p && (m = b, b = e[m]), Pn(c, m, Ge(b, t, n, m, e, a));
|
|
693
693
|
}), c;
|
|
694
694
|
}
|
|
695
695
|
var Nl = "__lodash_hash_undefined__";
|
|
@@ -717,37 +717,37 @@ function Kl(e, t) {
|
|
|
717
717
|
}
|
|
718
718
|
var Hl = 1, Wl = 2;
|
|
719
719
|
function ei(e, t, n, o, i, a) {
|
|
720
|
-
var c = n & Hl,
|
|
721
|
-
if (
|
|
720
|
+
var c = n & Hl, f = e.length, l = t.length;
|
|
721
|
+
if (f != l && !(c && l > f))
|
|
722
722
|
return !1;
|
|
723
723
|
var u = a.get(e), y = a.get(t);
|
|
724
724
|
if (u && y)
|
|
725
725
|
return u == t && y == e;
|
|
726
|
-
var w = -1,
|
|
727
|
-
for (a.set(e, t), a.set(t, e); ++w <
|
|
728
|
-
var
|
|
726
|
+
var w = -1, p = !0, b = n & Wl ? new Ye() : void 0;
|
|
727
|
+
for (a.set(e, t), a.set(t, e); ++w < f; ) {
|
|
728
|
+
var m = e[w], E = t[w];
|
|
729
729
|
if (o)
|
|
730
|
-
var
|
|
731
|
-
if (
|
|
732
|
-
if (
|
|
730
|
+
var d = c ? o(E, m, w, t, e, a) : o(m, E, w, e, t, a);
|
|
731
|
+
if (d !== void 0) {
|
|
732
|
+
if (d)
|
|
733
733
|
continue;
|
|
734
|
-
|
|
734
|
+
p = !1;
|
|
735
735
|
break;
|
|
736
736
|
}
|
|
737
737
|
if (b) {
|
|
738
|
-
if (!zl(t, function(A,
|
|
739
|
-
if (!Kl(b,
|
|
740
|
-
return b.push(
|
|
738
|
+
if (!zl(t, function(A, I) {
|
|
739
|
+
if (!Kl(b, I) && (m === A || i(m, A, n, o, a)))
|
|
740
|
+
return b.push(I);
|
|
741
741
|
})) {
|
|
742
|
-
|
|
742
|
+
p = !1;
|
|
743
743
|
break;
|
|
744
744
|
}
|
|
745
|
-
} else if (!(
|
|
746
|
-
|
|
745
|
+
} else if (!(m === E || i(m, E, n, o, a))) {
|
|
746
|
+
p = !1;
|
|
747
747
|
break;
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
|
-
return a.delete(e), a.delete(t),
|
|
750
|
+
return a.delete(e), a.delete(t), p;
|
|
751
751
|
}
|
|
752
752
|
function ql(e) {
|
|
753
753
|
var t = -1, n = Array(e.size);
|
|
@@ -780,16 +780,16 @@ function ss(e, t, n, o, i, a, c) {
|
|
|
780
780
|
case rs:
|
|
781
781
|
return e == t + "";
|
|
782
782
|
case es:
|
|
783
|
-
var
|
|
783
|
+
var f = ql;
|
|
784
784
|
case is:
|
|
785
785
|
var l = o & Jl;
|
|
786
|
-
if (
|
|
786
|
+
if (f || (f = Gl), e.size != t.size && !l)
|
|
787
787
|
return !1;
|
|
788
788
|
var u = c.get(e);
|
|
789
789
|
if (u)
|
|
790
790
|
return u == t;
|
|
791
791
|
o |= Zl, c.set(e, t);
|
|
792
|
-
var y = ei(
|
|
792
|
+
var y = ei(f(e), f(t), o, i, a, c);
|
|
793
793
|
return c.delete(e), y;
|
|
794
794
|
case os:
|
|
795
795
|
if (ft)
|
|
@@ -799,31 +799,31 @@ function ss(e, t, n, o, i, a, c) {
|
|
|
799
799
|
}
|
|
800
800
|
var ds = 1, us = Object.prototype, cs = us.hasOwnProperty;
|
|
801
801
|
function fs(e, t, n, o, i, a) {
|
|
802
|
-
var c = n & ds,
|
|
802
|
+
var c = n & ds, f = Zt(e), l = f.length, u = Zt(t), y = u.length;
|
|
803
803
|
if (l != y && !c)
|
|
804
804
|
return !1;
|
|
805
805
|
for (var w = l; w--; ) {
|
|
806
|
-
var
|
|
807
|
-
if (!(c ?
|
|
806
|
+
var p = f[w];
|
|
807
|
+
if (!(c ? p in t : cs.call(t, p)))
|
|
808
808
|
return !1;
|
|
809
809
|
}
|
|
810
|
-
var b = a.get(e),
|
|
811
|
-
if (b &&
|
|
812
|
-
return b == t &&
|
|
810
|
+
var b = a.get(e), m = a.get(t);
|
|
811
|
+
if (b && m)
|
|
812
|
+
return b == t && m == e;
|
|
813
813
|
var E = !0;
|
|
814
814
|
a.set(e, t), a.set(t, e);
|
|
815
|
-
for (var
|
|
816
|
-
|
|
817
|
-
var A = e[
|
|
815
|
+
for (var d = c; ++w < l; ) {
|
|
816
|
+
p = f[w];
|
|
817
|
+
var A = e[p], I = t[p];
|
|
818
818
|
if (o)
|
|
819
|
-
var
|
|
820
|
-
if (!(
|
|
819
|
+
var s = c ? o(I, A, p, t, e, a) : o(A, I, p, e, t, a);
|
|
820
|
+
if (!(s === void 0 ? A === I || i(A, I, n, o, a) : s)) {
|
|
821
821
|
E = !1;
|
|
822
822
|
break;
|
|
823
823
|
}
|
|
824
|
-
|
|
824
|
+
d || (d = p == "constructor");
|
|
825
825
|
}
|
|
826
|
-
if (E && !
|
|
826
|
+
if (E && !d) {
|
|
827
827
|
var O = e.constructor, P = t.constructor;
|
|
828
828
|
O != P && "constructor" in e && "constructor" in t && !(typeof O == "function" && O instanceof O && typeof P == "function" && P instanceof P) && (E = !1);
|
|
829
829
|
}
|
|
@@ -831,24 +831,24 @@ function fs(e, t, n, o, i, a) {
|
|
|
831
831
|
}
|
|
832
832
|
var ps = 1, sn = "[object Arguments]", dn = "[object Array]", He = "[object Object]", ms = Object.prototype, un = ms.hasOwnProperty;
|
|
833
833
|
function _s(e, t, n, o, i, a) {
|
|
834
|
-
var c = _e(e),
|
|
834
|
+
var c = _e(e), f = _e(t), l = c ? dn : ae(e), u = f ? dn : ae(t);
|
|
835
835
|
l = l == sn ? He : l, u = u == sn ? He : u;
|
|
836
|
-
var y = l == He, w = u == He,
|
|
837
|
-
if (
|
|
836
|
+
var y = l == He, w = u == He, p = l == u;
|
|
837
|
+
if (p && Ze(e)) {
|
|
838
838
|
if (!Ze(t))
|
|
839
839
|
return !1;
|
|
840
840
|
c = !0, y = !1;
|
|
841
841
|
}
|
|
842
|
-
if (
|
|
842
|
+
if (p && !y)
|
|
843
843
|
return a || (a = new pe()), c || Nn(e) ? ei(e, t, n, o, i, a) : ss(e, t, l, n, o, i, a);
|
|
844
844
|
if (!(n & ps)) {
|
|
845
|
-
var b = y && un.call(e, "__wrapped__"),
|
|
846
|
-
if (b ||
|
|
847
|
-
var E = b ? e.value() : e,
|
|
848
|
-
return a || (a = new pe()), i(E,
|
|
845
|
+
var b = y && un.call(e, "__wrapped__"), m = w && un.call(t, "__wrapped__");
|
|
846
|
+
if (b || m) {
|
|
847
|
+
var E = b ? e.value() : e, d = m ? t.value() : t;
|
|
848
|
+
return a || (a = new pe()), i(E, d, n, o, a);
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
|
-
return
|
|
851
|
+
return p ? (a || (a = new pe()), fs(e, t, n, o, i, a)) : !1;
|
|
852
852
|
}
|
|
853
853
|
function ti(e, t, n, o, i) {
|
|
854
854
|
return e === t ? !0 : e == null || t == null || !me(e) && !me(t) ? e !== e && t !== t : _s(e, t, n, o, ti, i);
|
|
@@ -888,14 +888,14 @@ function Cs(e, t = 0) {
|
|
|
888
888
|
return (G[e[t + 0]] + G[e[t + 1]] + G[e[t + 2]] + G[e[t + 3]] + "-" + G[e[t + 4]] + G[e[t + 5]] + "-" + G[e[t + 6]] + G[e[t + 7]] + "-" + G[e[t + 8]] + G[e[t + 9]] + "-" + G[e[t + 10]] + G[e[t + 11]] + G[e[t + 12]] + G[e[t + 13]] + G[e[t + 14]] + G[e[t + 15]]).toLowerCase();
|
|
889
889
|
}
|
|
890
890
|
let pt;
|
|
891
|
-
const
|
|
892
|
-
function
|
|
891
|
+
const Is = new Uint8Array(16);
|
|
892
|
+
function ks() {
|
|
893
893
|
if (!pt) {
|
|
894
894
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
895
895
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
896
896
|
pt = crypto.getRandomValues.bind(crypto);
|
|
897
897
|
}
|
|
898
|
-
return pt(
|
|
898
|
+
return pt(Is);
|
|
899
899
|
}
|
|
900
900
|
const Os = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), cn = { randomUUID: Os };
|
|
901
901
|
function Rs(e, t, n) {
|
|
@@ -903,7 +903,7 @@ function Rs(e, t, n) {
|
|
|
903
903
|
if (cn.randomUUID && !e)
|
|
904
904
|
return cn.randomUUID();
|
|
905
905
|
e = e || {};
|
|
906
|
-
const o = e.random ?? ((i = e.rng) == null ? void 0 : i.call(e)) ??
|
|
906
|
+
const o = e.random ?? ((i = e.rng) == null ? void 0 : i.call(e)) ?? ks();
|
|
907
907
|
if (o.length < 16)
|
|
908
908
|
throw new Error("Random bytes length must be >= 16");
|
|
909
909
|
return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, Cs(o);
|
|
@@ -914,7 +914,7 @@ const ni = {
|
|
|
914
914
|
}, ii = {
|
|
915
915
|
host: "127.0.0.1",
|
|
916
916
|
port: 6379
|
|
917
|
-
},
|
|
917
|
+
}, Pe = T.HOST_PORT_EE, ri = {
|
|
918
918
|
port: 6379,
|
|
919
919
|
host: "127.0.0.1",
|
|
920
920
|
database: 0,
|
|
@@ -939,11 +939,11 @@ const ni = {
|
|
|
939
939
|
cloud_authentication: {
|
|
940
940
|
aws_is_serverless: !0
|
|
941
941
|
}
|
|
942
|
-
},
|
|
942
|
+
}, Gd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
943
943
|
__proto__: null,
|
|
944
944
|
DEFAULT_CLUSTER_NODE: ni,
|
|
945
945
|
DEFAULT_FIELDS: ri,
|
|
946
|
-
DEFAULT_REDIS_TYPE:
|
|
946
|
+
DEFAULT_REDIS_TYPE: Pe,
|
|
947
947
|
DEFAULT_SENTINEL_NODE: ii
|
|
948
948
|
}, Symbol.toStringTag, { value: "Module" })), Ne = (e) => ({ ...e, id: Rs() }), St = (e) => {
|
|
949
949
|
const { id: t, ...n } = e;
|
|
@@ -1016,7 +1016,7 @@ const ni = {
|
|
|
1016
1016
|
default:
|
|
1017
1017
|
return null;
|
|
1018
1018
|
}
|
|
1019
|
-
},
|
|
1019
|
+
}, Jd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1020
1020
|
__proto__: null,
|
|
1021
1021
|
genDefaultClusterNode: ai,
|
|
1022
1022
|
genDefaultSentinelNode: oi,
|
|
@@ -1026,7 +1026,7 @@ const ni = {
|
|
|
1026
1026
|
shallowCopyWithId: Ne,
|
|
1027
1027
|
shallowCopyWithoutId: St,
|
|
1028
1028
|
standardize: h
|
|
1029
|
-
}, Symbol.toStringTag, { value: "Module" })), We = "/v2/control-planes/{controlPlaneId}/core-entities", qe = "/{workspace}",
|
|
1029
|
+
}, Symbol.toStringTag, { value: "Module" })), We = "/v2/control-planes/{controlPlaneId}/core-entities", qe = "/{workspace}", Ve = {
|
|
1030
1030
|
list: {
|
|
1031
1031
|
konnect: `${We}/partials`,
|
|
1032
1032
|
kongManager: `${qe}/partials`
|
|
@@ -1046,15 +1046,7 @@ const ni = {
|
|
|
1046
1046
|
kongManager: `${qe}/partials/{id}/links`
|
|
1047
1047
|
}
|
|
1048
1048
|
}, xs = (e) => {
|
|
1049
|
-
|
|
1050
|
-
return !1;
|
|
1051
|
-
if (typeof e == "string") {
|
|
1052
|
-
const t = parseInt(e, 10);
|
|
1053
|
-
return Number.isNaN(t) ? !0 : t >= 0 && t <= 65535;
|
|
1054
|
-
}
|
|
1055
|
-
return typeof e == "number" ? e >= 0 && e <= 65535 : !1;
|
|
1056
|
-
}, As = (e) => {
|
|
1057
|
-
const { partialId: t, config: n, defaultRedisType: o = $e } = e, i = !!t, { axiosInstance: a } = kt(n.axiosRequestConfig), { getMessageFromError: c } = yn(), p = z(() => t ? dt.Edit : dt.Create), l = mn({
|
|
1049
|
+
const { partialId: t, config: n, defaultRedisType: o = Pe } = e, i = !!t, { axiosInstance: a } = It(n.axiosRequestConfig), { getMessageFromError: c } = yn(), f = B(() => t ? dt.Edit : dt.Create), l = mn({
|
|
1058
1050
|
fields: {
|
|
1059
1051
|
name: "",
|
|
1060
1052
|
tags: "",
|
|
@@ -1063,45 +1055,45 @@ const ni = {
|
|
|
1063
1055
|
},
|
|
1064
1056
|
readonly: !1,
|
|
1065
1057
|
errorMessage: ""
|
|
1066
|
-
}), u = x(), y = x(o), w =
|
|
1067
|
-
Ee(y, (
|
|
1068
|
-
l.fields.type = Xe(
|
|
1058
|
+
}), u = x(), y = x(o), w = B(() => y.value === T.HOST_PORT_EE || y.value === T.CLUSTER || y.value === T.SENTINEL);
|
|
1059
|
+
Ee(y, (s) => {
|
|
1060
|
+
l.fields.type = Xe(s);
|
|
1069
1061
|
});
|
|
1070
|
-
const
|
|
1062
|
+
const p = B(() => {
|
|
1071
1063
|
var O, P, W, Y;
|
|
1072
|
-
if (i && ys(u.value,
|
|
1064
|
+
if (i && ys(u.value, m.value) || !((O = l.fields.name) != null && O.length))
|
|
1073
1065
|
return !1;
|
|
1074
|
-
const { config:
|
|
1066
|
+
const { config: s } = l.fields;
|
|
1075
1067
|
switch (y.value) {
|
|
1076
1068
|
case T.HOST_PORT_CE:
|
|
1077
1069
|
case T.HOST_PORT_EE:
|
|
1078
|
-
return !!
|
|
1070
|
+
return !!s.host && s.host.length > 0 && !!s.port && s.port > 0 && (((P = s.cloud_authentication) == null ? void 0 : P.auth_provider) !== "aws" || !!s.cloud_authentication.aws_cache_name);
|
|
1079
1071
|
case T.CLUSTER:
|
|
1080
|
-
return !!
|
|
1072
|
+
return !!s.cluster_nodes.length && s.cluster_nodes.every((ne) => ne.ip.length > 0) && (((W = s.cloud_authentication) == null ? void 0 : W.auth_provider) !== "aws" || !!s.cloud_authentication.aws_cache_name);
|
|
1081
1073
|
case T.SENTINEL:
|
|
1082
|
-
return !!
|
|
1074
|
+
return !!s.sentinel_nodes.length && s.sentinel_nodes.every((ne) => ne.host.length > 0) && !!((Y = s.sentinel_master) != null && Y.length) && s.sentinel_role && !!s.sentinel_role.length;
|
|
1083
1075
|
default:
|
|
1084
1076
|
throw new Error("Invalid redis type");
|
|
1085
1077
|
}
|
|
1086
1078
|
}), b = () => {
|
|
1087
1079
|
if (!e.cloudAuthAvailable)
|
|
1088
1080
|
return;
|
|
1089
|
-
const
|
|
1090
|
-
return
|
|
1091
|
-
auth_provider:
|
|
1092
|
-
aws_cache_name: h.str(
|
|
1093
|
-
aws_region: h.str(
|
|
1094
|
-
aws_is_serverless:
|
|
1095
|
-
aws_access_key_id: h.str(
|
|
1096
|
-
aws_secret_access_key: h.str(
|
|
1097
|
-
aws_assume_role_arn: h.str(
|
|
1098
|
-
aws_role_session_name: h.str(
|
|
1099
|
-
gcp_service_account_json: h.str(
|
|
1100
|
-
azure_client_id: h.str(
|
|
1101
|
-
azure_client_secret: h.str(
|
|
1102
|
-
azure_tenant_id: h.str(
|
|
1081
|
+
const s = Vt(l.fields.config.cloud_authentication);
|
|
1082
|
+
return s != null && s.auth_provider ? {
|
|
1083
|
+
auth_provider: s.auth_provider,
|
|
1084
|
+
aws_cache_name: h.str(s.aws_cache_name, null),
|
|
1085
|
+
aws_region: h.str(s.aws_region, null),
|
|
1086
|
+
aws_is_serverless: s.aws_is_serverless,
|
|
1087
|
+
aws_access_key_id: h.str(s.aws_access_key_id, null),
|
|
1088
|
+
aws_secret_access_key: h.str(s.aws_secret_access_key, null),
|
|
1089
|
+
aws_assume_role_arn: h.str(s.aws_assume_role_arn, null),
|
|
1090
|
+
aws_role_session_name: h.str(s.aws_role_session_name, null),
|
|
1091
|
+
gcp_service_account_json: h.str(s.gcp_service_account_json, null),
|
|
1092
|
+
azure_client_id: h.str(s.azure_client_id, null),
|
|
1093
|
+
azure_client_secret: h.str(s.azure_client_secret, null),
|
|
1094
|
+
azure_tenant_id: h.str(s.azure_tenant_id, null)
|
|
1103
1095
|
} : null;
|
|
1104
|
-
},
|
|
1096
|
+
}, m = B(() => {
|
|
1105
1097
|
switch (y.value) {
|
|
1106
1098
|
case T.HOST_PORT_CE:
|
|
1107
1099
|
return {
|
|
@@ -1135,7 +1127,7 @@ const ni = {
|
|
|
1135
1127
|
keepalive_backlog: h.int(l.fields.config.keepalive_backlog),
|
|
1136
1128
|
keepalive_pool_size: h.int(l.fields.config.keepalive_pool_size),
|
|
1137
1129
|
password: h.str(l.fields.config.password, null),
|
|
1138
|
-
port:
|
|
1130
|
+
port: h.int(l.fields.config.port),
|
|
1139
1131
|
read_timeout: h.int(l.fields.config.read_timeout),
|
|
1140
1132
|
send_timeout: h.int(l.fields.config.send_timeout),
|
|
1141
1133
|
server_name: h.str(l.fields.config.server_name, null),
|
|
@@ -1216,44 +1208,44 @@ const ni = {
|
|
|
1216
1208
|
default:
|
|
1217
1209
|
throw new Error("Invalid redis type");
|
|
1218
1210
|
}
|
|
1219
|
-
}), E =
|
|
1220
|
-
let
|
|
1221
|
-
return n.app === "konnect" ?
|
|
1222
|
-
}),
|
|
1223
|
-
var
|
|
1224
|
-
return (
|
|
1211
|
+
}), E = B(() => {
|
|
1212
|
+
let s = `${n.apiBaseUrl}${Ve.form[n.app][f.value]}`;
|
|
1213
|
+
return n.app === "konnect" ? s = s.replace(/{controlPlaneId}/gi, (n == null ? void 0 : n.controlPlaneId) || "") : n.app === "kongManager" && (s = s.replace(/\/{workspace}/gi, n != null && n.workspace ? `/${n.workspace}` : "")), s = s.replace(/{id}/gi, t || ""), s;
|
|
1214
|
+
}), d = B(() => {
|
|
1215
|
+
var s;
|
|
1216
|
+
return (s = Ve.form[n == null ? void 0 : n.app]) == null ? void 0 : s.edit;
|
|
1225
1217
|
});
|
|
1226
1218
|
return {
|
|
1227
1219
|
form: l,
|
|
1228
|
-
canSubmit:
|
|
1229
|
-
payload:
|
|
1220
|
+
canSubmit: p,
|
|
1221
|
+
payload: m,
|
|
1230
1222
|
isEdit: i,
|
|
1231
1223
|
redisType: y,
|
|
1232
1224
|
redisTypeIsEnterprise: w,
|
|
1233
|
-
formType:
|
|
1234
|
-
fetchUrl:
|
|
1225
|
+
formType: f,
|
|
1226
|
+
fetchUrl: d,
|
|
1235
1227
|
submit: async () => {
|
|
1236
1228
|
try {
|
|
1237
1229
|
l.readonly = !0, l.errorMessage = "";
|
|
1238
|
-
let
|
|
1239
|
-
return n.app === "konnect" && (
|
|
1240
|
-
...
|
|
1241
|
-
config: h.removeNullValues(
|
|
1242
|
-
}),
|
|
1243
|
-
} catch (
|
|
1244
|
-
throw l.errorMessage = c(
|
|
1230
|
+
let s = m.value;
|
|
1231
|
+
return n.app === "konnect" && (s = {
|
|
1232
|
+
...s,
|
|
1233
|
+
config: h.removeNullValues(s.config)
|
|
1234
|
+
}), f.value === dt.Create ? await a.post(E.value, s) : n.app === "konnect" ? await a.put(E.value, s) : await a.patch(E.value, s);
|
|
1235
|
+
} catch (s) {
|
|
1236
|
+
throw l.errorMessage = c(s), l.readonly = !1, s;
|
|
1245
1237
|
}
|
|
1246
1238
|
},
|
|
1247
|
-
setInitialFormValues: (
|
|
1239
|
+
setInitialFormValues: (s) => {
|
|
1248
1240
|
l.fields.config = Object.assign(
|
|
1249
1241
|
{},
|
|
1250
1242
|
l.fields.config,
|
|
1251
|
-
h.removeNullValues(
|
|
1243
|
+
h.removeNullValues(s.config)
|
|
1252
1244
|
// remove null values if data, so they can be replaced with default values
|
|
1253
|
-
), l.fields.config.sentinel_nodes = h.addIdToSentinelNodes(
|
|
1245
|
+
), l.fields.config.sentinel_nodes = h.addIdToSentinelNodes(s.config.sentinel_nodes ?? []), l.fields.config.cluster_nodes = h.addIdToClusterNodes(s.config.cluster_nodes ?? []), l.fields.name = s.name, l.fields.type = s.type, l.fields.tags = h.arrayToString(s.tags), y.value = Be(s), u.value = JSON.parse(JSON.stringify(m.value));
|
|
1254
1246
|
}
|
|
1255
1247
|
};
|
|
1256
|
-
},
|
|
1248
|
+
}, As = { class: "array-card-container" }, Ps = /* @__PURE__ */ Q({
|
|
1257
1249
|
__name: "FieldArrayCardContainer",
|
|
1258
1250
|
props: {
|
|
1259
1251
|
model: {
|
|
@@ -1277,7 +1269,7 @@ const ni = {
|
|
|
1277
1269
|
setup(e) {
|
|
1278
1270
|
return (t, n) => {
|
|
1279
1271
|
const o = $("KCard"), i = $("KButton");
|
|
1280
|
-
return
|
|
1272
|
+
return k(), J("div", As, [
|
|
1281
1273
|
g(o, { class: "card" }, {
|
|
1282
1274
|
default: S(() => [
|
|
1283
1275
|
gi(t.$slots, "default", {}, void 0, !0)
|
|
@@ -1303,7 +1295,7 @@ const ni = {
|
|
|
1303
1295
|
for (const [o, i] of t)
|
|
1304
1296
|
n[o] = i;
|
|
1305
1297
|
return n;
|
|
1306
|
-
}, li = /* @__PURE__ */ te(
|
|
1298
|
+
}, li = /* @__PURE__ */ te(Ps, [["__scopeId", "data-v-a0b2e4fb"]]), $s = {
|
|
1307
1299
|
create: "New Redis Configuration",
|
|
1308
1300
|
copy_id: "Copy ID",
|
|
1309
1301
|
copy_json: "Copy JSON",
|
|
@@ -1314,21 +1306,21 @@ const ni = {
|
|
|
1314
1306
|
loading: "Loading...",
|
|
1315
1307
|
view_plugin: "View Plugin",
|
|
1316
1308
|
close: "Close"
|
|
1317
|
-
},
|
|
1309
|
+
}, Vs = {
|
|
1318
1310
|
placeholder: "Filter by name",
|
|
1319
1311
|
placeholder_for_exact_match: "Filter by exact ID",
|
|
1320
1312
|
no_results: "No results found"
|
|
1321
|
-
},
|
|
1313
|
+
}, Ms = {
|
|
1322
1314
|
placeholder: "Select a Redis configuration",
|
|
1323
1315
|
empty_state: "No Redis configurations available",
|
|
1324
1316
|
create_new: "Create new Redis configuration"
|
|
1325
|
-
},
|
|
1317
|
+
}, Ds = {
|
|
1326
1318
|
copy: "Failed to copy to clipboard",
|
|
1327
1319
|
general: "Redis configuration could not be retrieved",
|
|
1328
1320
|
delete: "The redis configuration could not be deleted at this time."
|
|
1329
|
-
},
|
|
1321
|
+
}, js = {
|
|
1330
1322
|
success: "Copied {val} to clipboard"
|
|
1331
|
-
},
|
|
1323
|
+
}, Ls = {
|
|
1332
1324
|
redis_partial_modal_title: "Create Redis Configuration",
|
|
1333
1325
|
partial_created_success_message: "Redis configuration created successfully",
|
|
1334
1326
|
sections: {
|
|
@@ -1569,19 +1561,19 @@ const ni = {
|
|
|
1569
1561
|
plugin_count: "{count} plugin(s)",
|
|
1570
1562
|
confirm: "Confirm"
|
|
1571
1563
|
}
|
|
1572
|
-
},
|
|
1564
|
+
}, Us = {
|
|
1573
1565
|
title: "Associated plugins ({count})",
|
|
1574
1566
|
headers: {
|
|
1575
1567
|
plugin: "Plugin",
|
|
1576
1568
|
instance_name: "Name"
|
|
1577
1569
|
}
|
|
1578
|
-
},
|
|
1570
|
+
}, Ns = {
|
|
1579
1571
|
title: "Redis Configurations",
|
|
1580
1572
|
empty_state: {
|
|
1581
1573
|
title: "Configure a Redis Configuration",
|
|
1582
1574
|
description: "Set up shared Redis configurations for your gateway plugins to store and retrieve data — like counters or other data — needed during request processing."
|
|
1583
1575
|
}
|
|
1584
|
-
},
|
|
1576
|
+
}, Bs = {
|
|
1585
1577
|
action: "New configuration",
|
|
1586
1578
|
table_headers: {
|
|
1587
1579
|
name: "Name",
|
|
@@ -1600,24 +1592,24 @@ const ni = {
|
|
|
1600
1592
|
description: "Edits to your configuration will be cascaded automatically to all associated plugins."
|
|
1601
1593
|
}
|
|
1602
1594
|
}
|
|
1603
|
-
},
|
|
1604
|
-
actions:
|
|
1605
|
-
search:
|
|
1606
|
-
selector:
|
|
1595
|
+
}, Fs = {
|
|
1596
|
+
actions: $s,
|
|
1597
|
+
search: Vs,
|
|
1598
|
+
selector: Ms,
|
|
1607
1599
|
delete: {
|
|
1608
1600
|
title: "Delete Redis configuration",
|
|
1609
1601
|
description: "You’re about to delete this item. Are you sure you want to proceed?",
|
|
1610
1602
|
warning: "To delete this configuration, first remove it from all associated plugins."
|
|
1611
1603
|
},
|
|
1612
|
-
errors:
|
|
1613
|
-
copy:
|
|
1614
|
-
form:
|
|
1615
|
-
linked_plugins_modal:
|
|
1616
|
-
redis:
|
|
1617
|
-
list:
|
|
1604
|
+
errors: Ds,
|
|
1605
|
+
copy: js,
|
|
1606
|
+
form: Ls,
|
|
1607
|
+
linked_plugins_modal: Us,
|
|
1608
|
+
redis: Ns,
|
|
1609
|
+
list: Bs
|
|
1618
1610
|
};
|
|
1619
1611
|
function ot() {
|
|
1620
|
-
const e = Bi("en-us",
|
|
1612
|
+
const e = Bi("en-us", Fs);
|
|
1621
1613
|
return {
|
|
1622
1614
|
i18n: e,
|
|
1623
1615
|
i18nT: Fi(e)
|
|
@@ -1626,7 +1618,7 @@ function ot() {
|
|
|
1626
1618
|
}
|
|
1627
1619
|
const ye = {
|
|
1628
1620
|
useI18n: ot
|
|
1629
|
-
},
|
|
1621
|
+
}, zs = { class: "cluster-node-items" }, Ks = /* @__PURE__ */ Q({
|
|
1630
1622
|
__name: "ClusterNodes",
|
|
1631
1623
|
props: /* @__PURE__ */ Et({
|
|
1632
1624
|
readonly: { type: Boolean }
|
|
@@ -1642,9 +1634,9 @@ const ye = {
|
|
|
1642
1634
|
t.value.splice(a, 1);
|
|
1643
1635
|
};
|
|
1644
1636
|
return (a, c) => {
|
|
1645
|
-
const
|
|
1646
|
-
return
|
|
1647
|
-
g(
|
|
1637
|
+
const f = $("KLabel"), l = $("KInput"), u = $("KButton");
|
|
1638
|
+
return k(), J("div", null, [
|
|
1639
|
+
g(f, {
|
|
1648
1640
|
class: "required",
|
|
1649
1641
|
info: r(n)("form.fields.cluster_nodes.tooltip"),
|
|
1650
1642
|
"tooltip-attributes": { maxWidth: "400" }
|
|
@@ -1654,18 +1646,18 @@ const ye = {
|
|
|
1654
1646
|
]),
|
|
1655
1647
|
_: 1
|
|
1656
1648
|
}, 8, ["info"]),
|
|
1657
|
-
|
|
1658
|
-
(
|
|
1649
|
+
z("div", null, [
|
|
1650
|
+
(k(!0), J(fe, null, tt(t.value, (y, w) => (k(), F(li, {
|
|
1659
1651
|
key: `${w}`,
|
|
1660
1652
|
"data-testid": "redis-cluster-nodes",
|
|
1661
1653
|
disabled: e.readonly,
|
|
1662
|
-
onRemoveItem: (
|
|
1654
|
+
onRemoveItem: (p) => i(w)
|
|
1663
1655
|
}, {
|
|
1664
1656
|
default: S(() => [
|
|
1665
|
-
|
|
1657
|
+
z("div", zs, [
|
|
1666
1658
|
g(l, {
|
|
1667
1659
|
modelValue: y.ip,
|
|
1668
|
-
"onUpdate:modelValue": (
|
|
1660
|
+
"onUpdate:modelValue": (p) => y.ip = p,
|
|
1669
1661
|
modelModifiers: { trim: !0 },
|
|
1670
1662
|
label: r(n)("form.fields.cluster_node_ip.label"),
|
|
1671
1663
|
"label-attributes": {
|
|
@@ -1678,7 +1670,7 @@ const ye = {
|
|
|
1678
1670
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "label-attributes", "readonly"]),
|
|
1679
1671
|
g(l, {
|
|
1680
1672
|
modelValue: y.port,
|
|
1681
|
-
"onUpdate:modelValue": (
|
|
1673
|
+
"onUpdate:modelValue": (p) => y.port = p,
|
|
1682
1674
|
label: r(n)("form.fields.cluster_node_port.label"),
|
|
1683
1675
|
"label-attributes": {
|
|
1684
1676
|
info: r(n)("form.fields.cluster_node_port.tooltip"),
|
|
@@ -1700,7 +1692,7 @@ const ye = {
|
|
|
1700
1692
|
}, {
|
|
1701
1693
|
default: S(() => [
|
|
1702
1694
|
g(r(Sn)),
|
|
1703
|
-
|
|
1695
|
+
z("span", null, U(r(n)("form.fields.cluster_nodes.add_button")), 1)
|
|
1704
1696
|
]),
|
|
1705
1697
|
_: 1
|
|
1706
1698
|
}, 8, ["disabled"])
|
|
@@ -1708,7 +1700,7 @@ const ye = {
|
|
|
1708
1700
|
]);
|
|
1709
1701
|
};
|
|
1710
1702
|
}
|
|
1711
|
-
}),
|
|
1703
|
+
}), Hs = /* @__PURE__ */ te(Ks, [["__scopeId", "data-v-776a626d"]]), si = () => {
|
|
1712
1704
|
const e = x(), t = x();
|
|
1713
1705
|
return {
|
|
1714
1706
|
vaultSecretPickerSetup: e,
|
|
@@ -1720,7 +1712,7 @@ const ye = {
|
|
|
1720
1712
|
(a = t.value) == null || a.call(t, i), e.value = !1;
|
|
1721
1713
|
}
|
|
1722
1714
|
};
|
|
1723
|
-
},
|
|
1715
|
+
}, Ws = { class: "sentinel-node-items" }, qs = /* @__PURE__ */ Q({
|
|
1724
1716
|
__name: "SentinelNodes",
|
|
1725
1717
|
props: /* @__PURE__ */ Et({
|
|
1726
1718
|
readonly: { type: Boolean }
|
|
@@ -1736,9 +1728,9 @@ const ye = {
|
|
|
1736
1728
|
t.value.splice(a, 1);
|
|
1737
1729
|
};
|
|
1738
1730
|
return (a, c) => {
|
|
1739
|
-
const
|
|
1740
|
-
return
|
|
1741
|
-
g(
|
|
1731
|
+
const f = $("KLabel"), l = $("KInput"), u = $("KButton");
|
|
1732
|
+
return k(), J("div", null, [
|
|
1733
|
+
g(f, {
|
|
1742
1734
|
class: "required",
|
|
1743
1735
|
info: r(n)("form.fields.sentinel_nodes.tooltip"),
|
|
1744
1736
|
"tooltip-attributes": { maxWidth: "400" }
|
|
@@ -1748,18 +1740,18 @@ const ye = {
|
|
|
1748
1740
|
]),
|
|
1749
1741
|
_: 1
|
|
1750
1742
|
}, 8, ["info"]),
|
|
1751
|
-
|
|
1752
|
-
(
|
|
1743
|
+
z("div", null, [
|
|
1744
|
+
(k(!0), J(fe, null, tt(t.value, (y, w) => (k(), F(li, {
|
|
1753
1745
|
key: y.id,
|
|
1754
1746
|
"data-testid": "redis-sentinel-nodes",
|
|
1755
1747
|
disabled: e.readonly,
|
|
1756
|
-
onRemoveItem: (
|
|
1748
|
+
onRemoveItem: (p) => i(w)
|
|
1757
1749
|
}, {
|
|
1758
1750
|
default: S(() => [
|
|
1759
|
-
|
|
1751
|
+
z("div", Ws, [
|
|
1760
1752
|
g(l, {
|
|
1761
1753
|
modelValue: y.host,
|
|
1762
|
-
"onUpdate:modelValue": (
|
|
1754
|
+
"onUpdate:modelValue": (p) => y.host = p,
|
|
1763
1755
|
modelModifiers: { trim: !0 },
|
|
1764
1756
|
label: r(n)("form.fields.sentinel_node_host.label"),
|
|
1765
1757
|
"label-attributes": {
|
|
@@ -1772,7 +1764,7 @@ const ye = {
|
|
|
1772
1764
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "label-attributes", "readonly"]),
|
|
1773
1765
|
g(l, {
|
|
1774
1766
|
modelValue: y.port,
|
|
1775
|
-
"onUpdate:modelValue": (
|
|
1767
|
+
"onUpdate:modelValue": (p) => y.port = p,
|
|
1776
1768
|
label: r(n)("form.fields.sentinel_node_port.label"),
|
|
1777
1769
|
"label-attributes": {
|
|
1778
1770
|
info: r(n)("form.fields.sentinel_node_port.tooltip"),
|
|
@@ -1794,7 +1786,7 @@ const ye = {
|
|
|
1794
1786
|
}, {
|
|
1795
1787
|
default: S(() => [
|
|
1796
1788
|
g(r(Sn)),
|
|
1797
|
-
|
|
1789
|
+
z("span", null, U(r(n)("form.fields.sentinel_nodes.add_button")), 1)
|
|
1798
1790
|
]),
|
|
1799
1791
|
_: 1
|
|
1800
1792
|
}, 8, ["disabled"])
|
|
@@ -1802,7 +1794,7 @@ const ye = {
|
|
|
1802
1794
|
]);
|
|
1803
1795
|
};
|
|
1804
1796
|
}
|
|
1805
|
-
}),
|
|
1797
|
+
}), Gs = /* @__PURE__ */ te(qs, [["__scopeId", "data-v-cd1c07e2"]]), Js = /* @__PURE__ */ Q({
|
|
1806
1798
|
__name: "CloudAuthFields",
|
|
1807
1799
|
props: /* @__PURE__ */ Et({
|
|
1808
1800
|
config: {},
|
|
@@ -1904,47 +1896,47 @@ const ye = {
|
|
|
1904
1896
|
referenceable: !0,
|
|
1905
1897
|
encrypted: !0
|
|
1906
1898
|
}
|
|
1907
|
-
],
|
|
1899
|
+
], f = B(() => c.filter((l) => {
|
|
1908
1900
|
var u;
|
|
1909
1901
|
return l.group === ((u = t.value) == null ? void 0 : u.auth_provider);
|
|
1910
1902
|
}));
|
|
1911
1903
|
return (l, u) => {
|
|
1912
1904
|
const y = $("KInput"), w = $("KCheckbox");
|
|
1913
|
-
return
|
|
1914
|
-
(
|
|
1915
|
-
key:
|
|
1905
|
+
return k(), J(fe, null, [
|
|
1906
|
+
(k(!0), J(fe, null, tt(f.value, (p) => (k(), J(fe, {
|
|
1907
|
+
key: p.key
|
|
1916
1908
|
}, [
|
|
1917
|
-
|
|
1909
|
+
p.type !== "boolean" ? (k(), J(fe, { key: 0 }, [
|
|
1918
1910
|
g(y, {
|
|
1919
|
-
modelValue: t.value[
|
|
1920
|
-
"onUpdate:modelValue": (b) => t.value[
|
|
1921
|
-
"data-testid": `redis-${
|
|
1922
|
-
label:
|
|
1911
|
+
modelValue: t.value[p.key],
|
|
1912
|
+
"onUpdate:modelValue": (b) => t.value[p.key] = b,
|
|
1913
|
+
"data-testid": `redis-${p.key}-input`,
|
|
1914
|
+
label: p.label,
|
|
1923
1915
|
"label-attributes": {
|
|
1924
|
-
info:
|
|
1916
|
+
info: p.tooltip,
|
|
1925
1917
|
tooltipAttributes: { maxWidth: "400" }
|
|
1926
1918
|
},
|
|
1927
1919
|
readonly: e.readonly,
|
|
1928
|
-
required:
|
|
1929
|
-
"show-password-mask-toggle":
|
|
1930
|
-
type:
|
|
1920
|
+
required: p.required ?? !1,
|
|
1921
|
+
"show-password-mask-toggle": p.encrypted,
|
|
1922
|
+
type: p.encrypted ? "password" : "text"
|
|
1931
1923
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "label", "label-attributes", "readonly", "required", "show-password-mask-toggle", "type"]),
|
|
1932
|
-
|
|
1924
|
+
p.referenceable ? (k(), F(r(De), {
|
|
1933
1925
|
key: 0,
|
|
1934
1926
|
class: "secret-picker-provider",
|
|
1935
1927
|
disabled: e.readonly,
|
|
1936
|
-
update: (b) => t.value[
|
|
1937
|
-
value: t.value[
|
|
1938
|
-
onOpen: u[0] || (u[0] = (b,
|
|
1928
|
+
update: (b) => t.value[p.key] = b,
|
|
1929
|
+
value: t.value[p.key] ?? "",
|
|
1930
|
+
onOpen: u[0] || (u[0] = (b, m) => r(i)(b, m))
|
|
1939
1931
|
}, null, 8, ["disabled", "update", "value"])) : X("", !0)
|
|
1940
|
-
], 64)) : (
|
|
1932
|
+
], 64)) : (k(), F(w, {
|
|
1941
1933
|
key: 1,
|
|
1942
|
-
modelValue: t.value[
|
|
1943
|
-
"onUpdate:modelValue": (b) => t.value[
|
|
1944
|
-
"data-testid": `redis-${
|
|
1945
|
-
label:
|
|
1934
|
+
modelValue: t.value[p.key],
|
|
1935
|
+
"onUpdate:modelValue": (b) => t.value[p.key] = b,
|
|
1936
|
+
"data-testid": `redis-${p.key}-checkbox`,
|
|
1937
|
+
label: p.label,
|
|
1946
1938
|
"label-attributes": {
|
|
1947
|
-
info:
|
|
1939
|
+
info: p.tooltip,
|
|
1948
1940
|
tooltipAttributes: { maxWidth: "400" }
|
|
1949
1941
|
},
|
|
1950
1942
|
readonly: e.readonly
|
|
@@ -1959,9 +1951,9 @@ const ye = {
|
|
|
1959
1951
|
], 64);
|
|
1960
1952
|
};
|
|
1961
1953
|
}
|
|
1962
|
-
}),
|
|
1954
|
+
}), Zs = /* @__PURE__ */ te(Js, [["__scopeId", "data-v-150a04c2"]]);
|
|
1963
1955
|
var mt = /* @__PURE__ */ new WeakMap(), fn = 0;
|
|
1964
|
-
function
|
|
1956
|
+
function Qs(e) {
|
|
1965
1957
|
if (!e.length)
|
|
1966
1958
|
return "";
|
|
1967
1959
|
for (var t = "arg", n = 0; n < e.length; ++n) {
|
|
@@ -1970,14 +1962,14 @@ function Ys(e) {
|
|
|
1970
1962
|
}
|
|
1971
1963
|
return t;
|
|
1972
1964
|
}
|
|
1973
|
-
function
|
|
1965
|
+
function Ys(e) {
|
|
1974
1966
|
if (typeof e == "function")
|
|
1975
1967
|
try {
|
|
1976
1968
|
e = e();
|
|
1977
1969
|
} catch {
|
|
1978
1970
|
e = "";
|
|
1979
1971
|
}
|
|
1980
|
-
return Array.isArray(e) ? e =
|
|
1972
|
+
return Array.isArray(e) ? e = Qs(e) : e = String(e || ""), e;
|
|
1981
1973
|
}
|
|
1982
1974
|
var Mt = (
|
|
1983
1975
|
/** @class */
|
|
@@ -1986,17 +1978,17 @@ var Mt = (
|
|
|
1986
1978
|
t === void 0 && (t = 0), this.items = /* @__PURE__ */ new Map(), this.ttl = t;
|
|
1987
1979
|
}
|
|
1988
1980
|
return e.prototype.serializeKey = function(t) {
|
|
1989
|
-
return
|
|
1981
|
+
return Ys(t);
|
|
1990
1982
|
}, e.prototype.get = function(t) {
|
|
1991
1983
|
var n = this.serializeKey(t);
|
|
1992
1984
|
return this.items.get(n);
|
|
1993
1985
|
}, e.prototype.set = function(t, n, o) {
|
|
1994
|
-
var i = this.serializeKey(t), a = o || this.ttl, c = Date.now(),
|
|
1986
|
+
var i = this.serializeKey(t), a = o || this.ttl, c = Date.now(), f = {
|
|
1995
1987
|
data: n,
|
|
1996
1988
|
createdAt: c,
|
|
1997
1989
|
expiresAt: a ? c + a : 1 / 0
|
|
1998
1990
|
};
|
|
1999
|
-
this.dispatchExpire(a,
|
|
1991
|
+
this.dispatchExpire(a, f, i), this.items.set(i, f);
|
|
2000
1992
|
}, e.prototype.dispatchExpire = function(t, n, o) {
|
|
2001
1993
|
var i = this;
|
|
2002
1994
|
t && setTimeout(function() {
|
|
@@ -2008,21 +2000,21 @@ var Mt = (
|
|
|
2008
2000
|
}, e;
|
|
2009
2001
|
}()
|
|
2010
2002
|
);
|
|
2011
|
-
function
|
|
2003
|
+
function Xs() {
|
|
2012
2004
|
return typeof navigator.onLine < "u" ? navigator.onLine : !0;
|
|
2013
2005
|
}
|
|
2014
|
-
function
|
|
2006
|
+
function ed() {
|
|
2015
2007
|
return typeof document < "u" && typeof document.visibilityState < "u" ? document.visibilityState !== "hidden" : !0;
|
|
2016
2008
|
}
|
|
2017
|
-
var
|
|
2009
|
+
var td = function(e) {
|
|
2018
2010
|
return fetch(e).then(function(t) {
|
|
2019
2011
|
return t.json();
|
|
2020
2012
|
});
|
|
2021
2013
|
};
|
|
2022
2014
|
const _t = {
|
|
2023
|
-
isOnline:
|
|
2024
|
-
isDocumentVisible:
|
|
2025
|
-
fetcher:
|
|
2015
|
+
isOnline: Xs,
|
|
2016
|
+
isDocumentVisible: ed,
|
|
2017
|
+
fetcher: td
|
|
2026
2018
|
};
|
|
2027
2019
|
var ce = function() {
|
|
2028
2020
|
return ce = Object.assign || function(e) {
|
|
@@ -2032,14 +2024,14 @@ var ce = function() {
|
|
|
2032
2024
|
}
|
|
2033
2025
|
return e;
|
|
2034
2026
|
}, ce.apply(this, arguments);
|
|
2035
|
-
},
|
|
2027
|
+
}, xe = function(e, t, n, o) {
|
|
2036
2028
|
function i(a) {
|
|
2037
2029
|
return a instanceof n ? a : new n(function(c) {
|
|
2038
2030
|
c(a);
|
|
2039
2031
|
});
|
|
2040
2032
|
}
|
|
2041
2033
|
return new (n || (n = Promise))(function(a, c) {
|
|
2042
|
-
function
|
|
2034
|
+
function f(y) {
|
|
2043
2035
|
try {
|
|
2044
2036
|
u(o.next(y));
|
|
2045
2037
|
} catch (w) {
|
|
@@ -2054,19 +2046,19 @@ var ce = function() {
|
|
|
2054
2046
|
}
|
|
2055
2047
|
}
|
|
2056
2048
|
function u(y) {
|
|
2057
|
-
y.done ? a(y.value) : i(y.value).then(
|
|
2049
|
+
y.done ? a(y.value) : i(y.value).then(f, l);
|
|
2058
2050
|
}
|
|
2059
2051
|
u((o = o.apply(e, t || [])).next());
|
|
2060
2052
|
});
|
|
2061
|
-
},
|
|
2053
|
+
}, Ae = function(e, t) {
|
|
2062
2054
|
var n = { label: 0, sent: function() {
|
|
2063
2055
|
if (a[0] & 1) throw a[1];
|
|
2064
2056
|
return a[1];
|
|
2065
2057
|
}, trys: [], ops: [] }, o, i, a, c;
|
|
2066
|
-
return c = { next:
|
|
2058
|
+
return c = { next: f(0), throw: f(1), return: f(2) }, typeof Symbol == "function" && (c[Symbol.iterator] = function() {
|
|
2067
2059
|
return this;
|
|
2068
2060
|
}), c;
|
|
2069
|
-
function
|
|
2061
|
+
function f(u) {
|
|
2070
2062
|
return function(y) {
|
|
2071
2063
|
return l([u, y]);
|
|
2072
2064
|
};
|
|
@@ -2117,14 +2109,14 @@ var ce = function() {
|
|
|
2117
2109
|
if (u[0] & 5) throw u[1];
|
|
2118
2110
|
return { value: u[0] ? u[1] : void 0, done: !0 };
|
|
2119
2111
|
}
|
|
2120
|
-
},
|
|
2112
|
+
}, nd = function(e, t) {
|
|
2121
2113
|
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
2122
2114
|
if (!n) return e;
|
|
2123
2115
|
var o = n.call(e), i, a = [], c;
|
|
2124
2116
|
try {
|
|
2125
2117
|
for (; (t === void 0 || t-- > 0) && !(i = o.next()).done; ) a.push(i.value);
|
|
2126
|
-
} catch (
|
|
2127
|
-
c = { error:
|
|
2118
|
+
} catch (f) {
|
|
2119
|
+
c = { error: f };
|
|
2128
2120
|
} finally {
|
|
2129
2121
|
try {
|
|
2130
2122
|
i && !i.done && (n = o.return) && n.call(o);
|
|
@@ -2133,7 +2125,7 @@ var ce = function() {
|
|
|
2133
2125
|
}
|
|
2134
2126
|
}
|
|
2135
2127
|
return a;
|
|
2136
|
-
},
|
|
2128
|
+
}, id = function(e, t, n) {
|
|
2137
2129
|
if (n || arguments.length === 2) for (var o = 0, i = t.length, a; o < i; o++)
|
|
2138
2130
|
(a || !(o in t)) && (a || (a = Array.prototype.slice.call(t, 0, o)), a[o] = t[o]);
|
|
2139
2131
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
@@ -2152,7 +2144,7 @@ var ce = function() {
|
|
|
2152
2144
|
isOnline: _t.isOnline,
|
|
2153
2145
|
isDocumentVisible: _t.isDocumentVisible
|
|
2154
2146
|
};
|
|
2155
|
-
function
|
|
2147
|
+
function rd(e, t, n) {
|
|
2156
2148
|
var o = et.get(e);
|
|
2157
2149
|
if (o)
|
|
2158
2150
|
o.data.push(t);
|
|
@@ -2161,7 +2153,7 @@ function od(e, t, n) {
|
|
|
2161
2153
|
et.set(e, [t], n > 0 ? n + i : n);
|
|
2162
2154
|
}
|
|
2163
2155
|
}
|
|
2164
|
-
function
|
|
2156
|
+
function od(e, t, n) {
|
|
2165
2157
|
if (n.isDocumentVisible() && !(n.errorRetryCount !== void 0 && t > n.errorRetryCount)) {
|
|
2166
2158
|
var o = Math.min(t || 0, n.errorRetryCount), i = o * n.errorRetryInterval;
|
|
2167
2159
|
setTimeout(function() {
|
|
@@ -2170,19 +2162,19 @@ function ad(e, t, n) {
|
|
|
2170
2162
|
}
|
|
2171
2163
|
}
|
|
2172
2164
|
var pn = function(e, t, n, o) {
|
|
2173
|
-
return n === void 0 && (n = di), o === void 0 && (o = ui.ttl),
|
|
2174
|
-
var i, a, c,
|
|
2175
|
-
return
|
|
2165
|
+
return n === void 0 && (n = di), o === void 0 && (o = ui.ttl), xe(void 0, void 0, void 0, function() {
|
|
2166
|
+
var i, a, c, f, l, u, y;
|
|
2167
|
+
return Ae(this, function(w) {
|
|
2176
2168
|
switch (w.label) {
|
|
2177
2169
|
case 0:
|
|
2178
|
-
if (!
|
|
2170
|
+
if (!ld(t)) return [3, 5];
|
|
2179
2171
|
w.label = 1;
|
|
2180
2172
|
case 1:
|
|
2181
2173
|
return w.trys.push([1, 3, , 4]), [4, t];
|
|
2182
2174
|
case 2:
|
|
2183
2175
|
return i = w.sent(), [3, 4];
|
|
2184
2176
|
case 3:
|
|
2185
|
-
return
|
|
2177
|
+
return f = w.sent(), a = f, [3, 4];
|
|
2186
2178
|
case 4:
|
|
2187
2179
|
return [3, 6];
|
|
2188
2180
|
case 5:
|
|
@@ -2191,29 +2183,29 @@ var pn = function(e, t, n, o) {
|
|
|
2191
2183
|
if (c = !1, l = { data: i, error: a, isValidating: c }, typeof i < "u")
|
|
2192
2184
|
try {
|
|
2193
2185
|
n.set(e, l, o);
|
|
2194
|
-
} catch (
|
|
2195
|
-
console.error("swrv(mutate): failed to set cache",
|
|
2186
|
+
} catch (p) {
|
|
2187
|
+
console.error("swrv(mutate): failed to set cache", p);
|
|
2196
2188
|
}
|
|
2197
|
-
return u = et.get(e), u && u.data.length && (y = u.data.filter(function(
|
|
2198
|
-
return
|
|
2199
|
-
}), y.forEach(function(
|
|
2200
|
-
typeof l.data < "u" && (
|
|
2201
|
-
var
|
|
2202
|
-
|
|
2189
|
+
return u = et.get(e), u && u.data.length && (y = u.data.filter(function(p) {
|
|
2190
|
+
return p.key === e;
|
|
2191
|
+
}), y.forEach(function(p, b) {
|
|
2192
|
+
typeof l.data < "u" && (p.data = l.data), p.error = l.error, p.isValidating = l.isValidating, p.isLoading = l.isValidating;
|
|
2193
|
+
var m = b === y.length - 1;
|
|
2194
|
+
m || delete y[b];
|
|
2203
2195
|
}), y = y.filter(Boolean)), [2, l];
|
|
2204
2196
|
}
|
|
2205
2197
|
});
|
|
2206
2198
|
});
|
|
2207
2199
|
};
|
|
2208
|
-
function
|
|
2200
|
+
function ad() {
|
|
2209
2201
|
for (var e = this, t = [], n = 0; n < arguments.length; n++)
|
|
2210
2202
|
t[n] = arguments[n];
|
|
2211
|
-
var o, i, a = ce({}, ui), c = !1,
|
|
2203
|
+
var o, i, a = ce({}, ui), c = !1, f = !1, l = bi(), u = (l == null ? void 0 : l.proxy) || l;
|
|
2212
2204
|
if (!u)
|
|
2213
2205
|
return console.error("Could not get current instance, check to make sure that `useSwrv` is declared in the top level of the setup function."), null;
|
|
2214
2206
|
var y = (u == null ? void 0 : u.$isServer) || !1;
|
|
2215
2207
|
t.length >= 1 && (o = t[0]), t.length >= 2 && (i = t[1]), t.length > 2 && (a = ce(ce({}, a), t[2]));
|
|
2216
|
-
var w = y ? a.serverTTL : a.ttl,
|
|
2208
|
+
var w = y ? a.serverTTL : a.ttl, p = typeof o == "function" ? o : x(o);
|
|
2217
2209
|
typeof i > "u" && (i = a.fetcher);
|
|
2218
2210
|
var b = null;
|
|
2219
2211
|
b || (b = mn({
|
|
@@ -2223,25 +2215,25 @@ function ld() {
|
|
|
2223
2215
|
isLoading: !0,
|
|
2224
2216
|
key: null
|
|
2225
2217
|
}));
|
|
2226
|
-
var
|
|
2227
|
-
return
|
|
2218
|
+
var m = function(I, s) {
|
|
2219
|
+
return xe(e, void 0, void 0, function() {
|
|
2228
2220
|
var O, P, W, Y, ne, de, ie, he = this;
|
|
2229
|
-
return
|
|
2221
|
+
return Ae(this, function(re) {
|
|
2230
2222
|
switch (re.label) {
|
|
2231
2223
|
case 0:
|
|
2232
|
-
return O = b.data === void 0, P =
|
|
2224
|
+
return O = b.data === void 0, P = p.value, P ? (W = a.cache.get(P), Y = W && W.data, b.isValidating = !0, b.isLoading = !Y, Y && (b.data = Y.data, b.error = Y.error), ne = I || i, !ne || !a.isDocumentVisible() && !O || (s == null ? void 0 : s.forceRevalidate) !== void 0 && !(s != null && s.forceRevalidate) ? (b.isValidating = !1, b.isLoading = !1, [
|
|
2233
2225
|
2
|
|
2234
2226
|
/*return*/
|
|
2235
|
-
]) : W && (de = !!(Date.now() - W.createdAt >= a.dedupingInterval ||
|
|
2227
|
+
]) : W && (de = !!(Date.now() - W.createdAt >= a.dedupingInterval || s != null && s.forceRevalidate), !de) ? (b.isValidating = !1, b.isLoading = !1, [
|
|
2236
2228
|
2
|
|
2237
2229
|
/*return*/
|
|
2238
2230
|
]) : (ie = function() {
|
|
2239
|
-
return
|
|
2231
|
+
return xe(he, void 0, void 0, function() {
|
|
2240
2232
|
var oe, we, Te, Re;
|
|
2241
|
-
return
|
|
2233
|
+
return Ae(this, function(ve) {
|
|
2242
2234
|
switch (ve.label) {
|
|
2243
2235
|
case 0:
|
|
2244
|
-
return oe = gt.get(P), oe ? [3, 2] : (we = Array.isArray(P) ? P : [P], Te = ne.apply(void 0,
|
|
2236
|
+
return oe = gt.get(P), oe ? [3, 2] : (we = Array.isArray(P) ? P : [P], Te = ne.apply(void 0, id([], nd(we), !1)), gt.set(P, Te, a.dedupingInterval), [4, pn(P, Te, a.cache, w)]);
|
|
2245
2237
|
case 1:
|
|
2246
2238
|
return ve.sent(), [3, 4];
|
|
2247
2239
|
case 2:
|
|
@@ -2249,7 +2241,7 @@ function ld() {
|
|
|
2249
2241
|
case 3:
|
|
2250
2242
|
ve.sent(), ve.label = 4;
|
|
2251
2243
|
case 4:
|
|
2252
|
-
return b.isValidating = !1, b.isLoading = !1, gt.delete(P), b.error !== void 0 && (Re = !c && a.shouldRetryOnError && (
|
|
2244
|
+
return b.isValidating = !1, b.isLoading = !1, gt.delete(P), b.error !== void 0 && (Re = !c && a.shouldRetryOnError && (s ? s.shouldRetryOnError : !0), Re && od(m, s ? s.errorRetryCount : 1, a)), [
|
|
2253
2245
|
2
|
|
2254
2246
|
/*return*/
|
|
2255
2247
|
];
|
|
@@ -2257,8 +2249,8 @@ function ld() {
|
|
|
2257
2249
|
});
|
|
2258
2250
|
});
|
|
2259
2251
|
}, Y && a.revalidateDebounce ? (setTimeout(function() {
|
|
2260
|
-
return
|
|
2261
|
-
return
|
|
2252
|
+
return xe(he, void 0, void 0, function() {
|
|
2253
|
+
return Ae(this, function(oe) {
|
|
2262
2254
|
switch (oe.label) {
|
|
2263
2255
|
case 0:
|
|
2264
2256
|
return c ? [3, 2] : [4, ie()];
|
|
@@ -2289,25 +2281,25 @@ function ld() {
|
|
|
2289
2281
|
});
|
|
2290
2282
|
});
|
|
2291
2283
|
}, E = function() {
|
|
2292
|
-
return
|
|
2293
|
-
return
|
|
2294
|
-
return [2,
|
|
2284
|
+
return xe(e, void 0, void 0, function() {
|
|
2285
|
+
return Ae(this, function(I) {
|
|
2286
|
+
return [2, m(null, { shouldRetryOnError: !1 })];
|
|
2295
2287
|
});
|
|
2296
2288
|
});
|
|
2297
|
-
},
|
|
2289
|
+
}, d = null;
|
|
2298
2290
|
yi(function() {
|
|
2299
|
-
var
|
|
2300
|
-
return
|
|
2301
|
-
return
|
|
2302
|
-
switch (
|
|
2291
|
+
var I = function() {
|
|
2292
|
+
return xe(e, void 0, void 0, function() {
|
|
2293
|
+
return Ae(this, function(s) {
|
|
2294
|
+
switch (s.label) {
|
|
2303
2295
|
case 0:
|
|
2304
|
-
return !b.error && a.isOnline() ? [4,
|
|
2296
|
+
return !b.error && a.isOnline() ? [4, m()] : [3, 2];
|
|
2305
2297
|
case 1:
|
|
2306
|
-
return
|
|
2298
|
+
return s.sent(), [3, 3];
|
|
2307
2299
|
case 2:
|
|
2308
|
-
|
|
2300
|
+
d && clearTimeout(d), s.label = 3;
|
|
2309
2301
|
case 3:
|
|
2310
|
-
return a.refreshInterval && !c && (
|
|
2302
|
+
return a.refreshInterval && !c && (d = setTimeout(I, a.refreshInterval)), [
|
|
2311
2303
|
2
|
|
2312
2304
|
/*return*/
|
|
2313
2305
|
];
|
|
@@ -2315,49 +2307,49 @@ function ld() {
|
|
|
2315
2307
|
});
|
|
2316
2308
|
});
|
|
2317
2309
|
};
|
|
2318
|
-
a.refreshInterval && (
|
|
2310
|
+
a.refreshInterval && (d = setTimeout(I, a.refreshInterval)), a.revalidateOnFocus && (document.addEventListener("visibilitychange", E, !1), window.addEventListener("focus", E, !1));
|
|
2319
2311
|
}), vi(function() {
|
|
2320
|
-
c = !0,
|
|
2321
|
-
var
|
|
2322
|
-
|
|
2323
|
-
return
|
|
2312
|
+
c = !0, d && clearTimeout(d), a.revalidateOnFocus && (document.removeEventListener("visibilitychange", E, !1), window.removeEventListener("focus", E, !1));
|
|
2313
|
+
var I = et.get(p.value);
|
|
2314
|
+
I && (I.data = I.data.filter(function(s) {
|
|
2315
|
+
return s !== b;
|
|
2324
2316
|
}));
|
|
2325
2317
|
});
|
|
2326
2318
|
try {
|
|
2327
|
-
Ee(
|
|
2328
|
-
hi(
|
|
2319
|
+
Ee(p, function(I) {
|
|
2320
|
+
hi(p) || (p.value = I), b.key = I, b.isValidating = !!I, rd(p.value, b, w), !y && !f && p.value && m(), f = !1;
|
|
2329
2321
|
}, {
|
|
2330
2322
|
immediate: !0
|
|
2331
2323
|
});
|
|
2332
2324
|
} catch {
|
|
2333
2325
|
}
|
|
2334
|
-
var A = ce(ce({}, wi(b)), { mutate: function(
|
|
2335
|
-
return
|
|
2326
|
+
var A = ce(ce({}, wi(b)), { mutate: function(I, s) {
|
|
2327
|
+
return m(I, ce(ce({}, s), { forceRevalidate: !0 }));
|
|
2336
2328
|
} });
|
|
2337
2329
|
return A;
|
|
2338
2330
|
}
|
|
2339
|
-
function
|
|
2331
|
+
function ld(e) {
|
|
2340
2332
|
return e !== null && typeof e == "object" && typeof e.then == "function";
|
|
2341
2333
|
}
|
|
2342
2334
|
function ci(e) {
|
|
2343
2335
|
return `redis-partial-links-${e}`;
|
|
2344
2336
|
}
|
|
2345
2337
|
const Fe = (e) => {
|
|
2346
|
-
const { axiosInstance: t } =
|
|
2338
|
+
const { axiosInstance: t } = It(e.axiosRequestConfig);
|
|
2347
2339
|
return {
|
|
2348
2340
|
fetcher: async (n) => {
|
|
2349
2341
|
const { partialId: o, size: i, offset: a, query: c } = n;
|
|
2350
|
-
let
|
|
2351
|
-
e.app === "konnect" ?
|
|
2342
|
+
let f = `${e.apiBaseUrl}${Ve.links[e.app]}`;
|
|
2343
|
+
e.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (f = f.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "")), f = f.replace(/{id}/gi, o || ""), c && (f = `${f}?${c}`);
|
|
2352
2344
|
const { data: l } = await t.get(
|
|
2353
|
-
|
|
2345
|
+
f,
|
|
2354
2346
|
{ params: { size: i, offset: a } }
|
|
2355
2347
|
);
|
|
2356
2348
|
return l;
|
|
2357
2349
|
}
|
|
2358
2350
|
};
|
|
2359
2351
|
}, fi = (e) => {
|
|
2360
|
-
const { partialId: t, config: n } = e, { fetcher: o } = Fe(n), i = x([]), { data: a } =
|
|
2352
|
+
const { partialId: t, config: n } = e, { fetcher: o } = Fe(n), i = x([]), { data: a } = ad(
|
|
2361
2353
|
ci(t),
|
|
2362
2354
|
() => o({ partialId: t }),
|
|
2363
2355
|
{
|
|
@@ -2368,7 +2360,7 @@ const Fe = (e) => {
|
|
|
2368
2360
|
var c;
|
|
2369
2361
|
i.value = ((c = a.value) == null ? void 0 : c.data) ?? [];
|
|
2370
2362
|
}), i;
|
|
2371
|
-
},
|
|
2363
|
+
}, sd = { class: "kong-ui-entities-redis-configurations-form" }, dd = /* @__PURE__ */ Q({
|
|
2372
2364
|
__name: "RedisConfigurationForm",
|
|
2373
2365
|
props: {
|
|
2374
2366
|
config: {
|
|
@@ -2408,38 +2400,38 @@ const Fe = (e) => {
|
|
|
2408
2400
|
setup(e, { emit: t }) {
|
|
2409
2401
|
const n = e, o = t, { i18n: { t: i }, i18nT: a } = ye.useI18n(), {
|
|
2410
2402
|
vaultSecretPickerSetup: c,
|
|
2411
|
-
setUpVaultSecretPicker:
|
|
2403
|
+
setUpVaultSecretPicker: f,
|
|
2412
2404
|
handleVaultSecretPickerAutofill: l
|
|
2413
|
-
} = si(), u = Tn(), y = x("json"), w =
|
|
2405
|
+
} = si(), u = Tn(), y = x("json"), w = B(() => [
|
|
2414
2406
|
{
|
|
2415
2407
|
label: i("form.options.type.host_port"),
|
|
2416
2408
|
group: i("form.options.type.enterprise"),
|
|
2417
2409
|
value: T.HOST_PORT_EE,
|
|
2418
2410
|
selected: O.value === T.HOST_PORT_EE,
|
|
2419
|
-
disabled: !
|
|
2411
|
+
disabled: !s && n.disabledPartialType === Z.REDIS_EE
|
|
2420
2412
|
},
|
|
2421
2413
|
{
|
|
2422
2414
|
label: i("form.options.type.cluster"),
|
|
2423
2415
|
group: i("form.options.type.enterprise"),
|
|
2424
2416
|
value: T.CLUSTER,
|
|
2425
2417
|
selected: O.value === T.CLUSTER,
|
|
2426
|
-
disabled: !
|
|
2418
|
+
disabled: !s && n.disabledPartialType === Z.REDIS_EE
|
|
2427
2419
|
},
|
|
2428
2420
|
{
|
|
2429
2421
|
label: i("form.options.type.sentinel"),
|
|
2430
2422
|
group: i("form.options.type.enterprise"),
|
|
2431
2423
|
value: T.SENTINEL,
|
|
2432
2424
|
selected: O.value === T.SENTINEL,
|
|
2433
|
-
disabled: !
|
|
2425
|
+
disabled: !s && n.disabledPartialType === Z.REDIS_EE
|
|
2434
2426
|
},
|
|
2435
2427
|
{
|
|
2436
2428
|
label: i("form.options.type.host_port"),
|
|
2437
2429
|
group: i("form.options.type.open_source"),
|
|
2438
2430
|
value: T.HOST_PORT_CE,
|
|
2439
2431
|
selected: O.value === T.HOST_PORT_CE,
|
|
2440
|
-
disabled:
|
|
2432
|
+
disabled: s && P.value || !s && n.disabledPartialType === Z.REDIS_CE
|
|
2441
2433
|
}
|
|
2442
|
-
]),
|
|
2434
|
+
]), p = B(() => [
|
|
2443
2435
|
{
|
|
2444
2436
|
label: i("form.options.auth_provider.aws"),
|
|
2445
2437
|
value: q.AWS
|
|
@@ -2456,80 +2448,80 @@ const Fe = (e) => {
|
|
|
2456
2448
|
{ label: i("form.options.sentinel_role.master"), value: "master" },
|
|
2457
2449
|
{ label: i("form.options.sentinel_role.slave"), value: "slave" },
|
|
2458
2450
|
{ label: i("form.options.sentinel_role.any"), value: "any" }
|
|
2459
|
-
],
|
|
2460
|
-
const v =
|
|
2461
|
-
return `${
|
|
2462
|
-
}, E = () => n.disabledPartialType && Xe(
|
|
2463
|
-
form:
|
|
2451
|
+
], m = (K) => {
|
|
2452
|
+
const v = K.value === T.HOST_PORT_CE ? i("form.options.type.suffix_open_source") : i("form.options.type.suffix_enterprise");
|
|
2453
|
+
return `${K.label}${v}`;
|
|
2454
|
+
}, E = () => n.disabledPartialType && Xe(Pe) === n.disabledPartialType ? n.disabledPartialType === Z.REDIS_CE ? T.HOST_PORT_EE : T.HOST_PORT_CE : Pe, {
|
|
2455
|
+
form: d,
|
|
2464
2456
|
canSubmit: A,
|
|
2465
|
-
payload:
|
|
2466
|
-
isEdit:
|
|
2457
|
+
payload: I,
|
|
2458
|
+
isEdit: s,
|
|
2467
2459
|
redisType: O,
|
|
2468
2460
|
redisTypeIsEnterprise: P,
|
|
2469
2461
|
fetchUrl: W,
|
|
2470
2462
|
submit: Y,
|
|
2471
2463
|
setInitialFormValues: ne
|
|
2472
|
-
} =
|
|
2464
|
+
} = xs({
|
|
2473
2465
|
partialId: n.partialId,
|
|
2474
2466
|
defaultRedisType: E(),
|
|
2475
2467
|
config: n.config,
|
|
2476
2468
|
cloudAuthAvailable: n.config.cloudAuthAvailable
|
|
2477
|
-
}), { fetcher: de } = Fe(n.config), ie = x(!1), he = x(!1), re = x(0), oe =
|
|
2478
|
-
[
|
|
2479
|
-
} :
|
|
2469
|
+
}), { fetcher: de } = Fe(n.config), ie = x(!1), he = x(!1), re = x(0), oe = B(() => y.value === "terraform" ? {
|
|
2470
|
+
[I.value.type.replaceAll("-", "_")]: Es(I.value, ["type"])
|
|
2471
|
+
} : I.value), we = async () => {
|
|
2480
2472
|
try {
|
|
2481
|
-
if (
|
|
2473
|
+
if (s && !he.value) {
|
|
2482
2474
|
const { count: v } = await de({ partialId: n.partialId });
|
|
2483
2475
|
if (re.value = v, v > 0) {
|
|
2484
2476
|
ie.value = !0;
|
|
2485
2477
|
return;
|
|
2486
2478
|
}
|
|
2487
2479
|
}
|
|
2488
|
-
const { data:
|
|
2489
|
-
o("update",
|
|
2490
|
-
} catch (
|
|
2491
|
-
o("error",
|
|
2480
|
+
const { data: K } = await Y();
|
|
2481
|
+
o("update", K);
|
|
2482
|
+
} catch (K) {
|
|
2483
|
+
o("error", K);
|
|
2492
2484
|
}
|
|
2493
2485
|
}, Te = () => {
|
|
2494
2486
|
ie.value = !1, he.value = !0, we();
|
|
2495
2487
|
}, Re = () => {
|
|
2496
2488
|
n.config.cancelRoute && u.push(n.config.cancelRoute), o("cancel");
|
|
2497
|
-
}, ve = (
|
|
2498
|
-
o("loading",
|
|
2499
|
-
}, at = (
|
|
2500
|
-
o("error",
|
|
2501
|
-
}, ze = (
|
|
2502
|
-
ne(
|
|
2489
|
+
}, ve = (K) => {
|
|
2490
|
+
o("loading", K);
|
|
2491
|
+
}, at = (K) => {
|
|
2492
|
+
o("error", K);
|
|
2493
|
+
}, ze = (K) => {
|
|
2494
|
+
ne(K);
|
|
2503
2495
|
};
|
|
2504
2496
|
return _n(async () => {
|
|
2505
|
-
if (
|
|
2506
|
-
const { count:
|
|
2507
|
-
re.value =
|
|
2497
|
+
if (s) {
|
|
2498
|
+
const { count: K } = await de({ partialId: n.partialId });
|
|
2499
|
+
re.value = K;
|
|
2508
2500
|
}
|
|
2509
|
-
}), (
|
|
2501
|
+
}), (K, v) => {
|
|
2510
2502
|
const lt = $("KAlert"), Se = $("KSelect"), N = $("KInput"), C = $("KCheckbox"), R = $("KModal");
|
|
2511
|
-
return
|
|
2512
|
-
|
|
2513
|
-
g(r(
|
|
2503
|
+
return k(), J(fe, null, [
|
|
2504
|
+
z("div", sd, [
|
|
2505
|
+
g(r(ki), {
|
|
2514
2506
|
"action-teleport-target": e.actionTeleportTarget,
|
|
2515
2507
|
"can-submit": r(A),
|
|
2516
2508
|
config: e.config,
|
|
2517
2509
|
"edit-id": e.partialId,
|
|
2518
2510
|
"entity-type": r(vn).Partial,
|
|
2519
|
-
"error-message": r(
|
|
2511
|
+
"error-message": r(d).errorMessage,
|
|
2520
2512
|
"fetch-url": r(W),
|
|
2521
2513
|
"form-fields": oe.value,
|
|
2522
|
-
"is-readonly": r(
|
|
2514
|
+
"is-readonly": r(d).readonly,
|
|
2523
2515
|
"slidout-top-offset": e.slidoutTopOffset,
|
|
2524
2516
|
onCancel: Re,
|
|
2525
|
-
onCodeBlockTabChange: v[
|
|
2517
|
+
onCodeBlockTabChange: v[31] || (v[31] = (_) => y.value = _),
|
|
2526
2518
|
"onFetch:error": at,
|
|
2527
2519
|
"onFetch:success": ze,
|
|
2528
2520
|
onLoading: ve,
|
|
2529
2521
|
onSubmit: we
|
|
2530
2522
|
}, {
|
|
2531
2523
|
default: S(() => [
|
|
2532
|
-
re.value > 0 && r(
|
|
2524
|
+
re.value > 0 && r(s) ? (k(), F(lt, {
|
|
2533
2525
|
key: 0,
|
|
2534
2526
|
appearance: "warning",
|
|
2535
2527
|
class: "warning-alert",
|
|
@@ -2541,7 +2533,7 @@ const Fe = (e) => {
|
|
|
2541
2533
|
tag: "div"
|
|
2542
2534
|
}, {
|
|
2543
2535
|
pluginCount: S(() => [
|
|
2544
|
-
|
|
2536
|
+
z("b", null, U(r(i)("form.edit_warning_modal.plugin_count", { count: re.value })), 1)
|
|
2545
2537
|
]),
|
|
2546
2538
|
_: 1
|
|
2547
2539
|
})
|
|
@@ -2556,17 +2548,17 @@ const Fe = (e) => {
|
|
|
2556
2548
|
default: S(() => [
|
|
2557
2549
|
g(Se, {
|
|
2558
2550
|
modelValue: r(O),
|
|
2559
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
2551
|
+
"onUpdate:modelValue": v[0] || (v[0] = (_) => Ti(O) ? O.value = _ : null),
|
|
2560
2552
|
"data-testid": "redis-type-select",
|
|
2561
|
-
disabled: r(
|
|
2553
|
+
disabled: r(s) && r(O) === r(T).HOST_PORT_CE,
|
|
2562
2554
|
items: w.value,
|
|
2563
2555
|
"kpop-attributes": { "data-testid": "redis-type-select-popover" },
|
|
2564
2556
|
label: r(i)("form.fields.type.label"),
|
|
2565
|
-
readonly: r(
|
|
2557
|
+
readonly: r(d).readonly,
|
|
2566
2558
|
required: ""
|
|
2567
2559
|
}, {
|
|
2568
|
-
"selected-item-template": S(({ item:
|
|
2569
|
-
le(U(_
|
|
2560
|
+
"selected-item-template": S(({ item: _ }) => [
|
|
2561
|
+
le(U(m(_)), 1)
|
|
2570
2562
|
]),
|
|
2571
2563
|
_: 1
|
|
2572
2564
|
}, 8, ["modelValue", "disabled", "items", "label", "readonly"])
|
|
@@ -2580,19 +2572,19 @@ const Fe = (e) => {
|
|
|
2580
2572
|
}, {
|
|
2581
2573
|
default: S(() => [
|
|
2582
2574
|
g(N, {
|
|
2583
|
-
modelValue: r(
|
|
2584
|
-
"onUpdate:modelValue": v[1] || (v[1] = (
|
|
2575
|
+
modelValue: r(d).fields.name,
|
|
2576
|
+
"onUpdate:modelValue": v[1] || (v[1] = (_) => r(d).fields.name = _),
|
|
2585
2577
|
modelModifiers: { trim: !0 },
|
|
2586
2578
|
"data-testid": "redis-name-input",
|
|
2587
|
-
disabled: r(
|
|
2579
|
+
disabled: r(s),
|
|
2588
2580
|
label: r(i)("form.fields.name.label"),
|
|
2589
2581
|
placeholder: r(i)("form.fields.name.placeholder"),
|
|
2590
|
-
readonly: r(
|
|
2582
|
+
readonly: r(d).readonly,
|
|
2591
2583
|
required: ""
|
|
2592
2584
|
}, null, 8, ["modelValue", "disabled", "label", "placeholder", "readonly"]),
|
|
2593
2585
|
g(N, {
|
|
2594
|
-
modelValue: r(
|
|
2595
|
-
"onUpdate:modelValue": v[2] || (v[2] = (
|
|
2586
|
+
modelValue: r(d).fields.tags,
|
|
2587
|
+
"onUpdate:modelValue": v[2] || (v[2] = (_) => r(d).fields.tags = _),
|
|
2596
2588
|
modelModifiers: { trim: !0 },
|
|
2597
2589
|
"data-testid": "redis-tags-input",
|
|
2598
2590
|
help: r(i)("form.fields.tags.help"),
|
|
@@ -2602,12 +2594,12 @@ const Fe = (e) => {
|
|
|
2602
2594
|
tooltipAttributes: { maxWidth: "400" }
|
|
2603
2595
|
},
|
|
2604
2596
|
placeholder: r(i)("form.fields.tags.placeholder"),
|
|
2605
|
-
readonly: r(
|
|
2597
|
+
readonly: r(d).readonly
|
|
2606
2598
|
}, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"])
|
|
2607
2599
|
]),
|
|
2608
2600
|
_: 1
|
|
2609
2601
|
}, 8, ["description", "title"]),
|
|
2610
|
-
e.config.cloudAuthAvailable && r(O) !== r(T).SENTINEL ? (
|
|
2602
|
+
e.config.cloudAuthAvailable && r(O) !== r(T).SENTINEL ? (k(), F(r(ue), {
|
|
2611
2603
|
key: 1,
|
|
2612
2604
|
"data-testid": "redis-cloud-auth-section",
|
|
2613
2605
|
description: r(i)("form.sections.cloud_auth.description"),
|
|
@@ -2615,26 +2607,26 @@ const Fe = (e) => {
|
|
|
2615
2607
|
}, {
|
|
2616
2608
|
default: S(() => [
|
|
2617
2609
|
g(Se, {
|
|
2618
|
-
modelValue: r(
|
|
2619
|
-
"onUpdate:modelValue": v[3] || (v[3] = (
|
|
2610
|
+
modelValue: r(d).fields.config.cloud_authentication.auth_provider,
|
|
2611
|
+
"onUpdate:modelValue": v[3] || (v[3] = (_) => r(d).fields.config.cloud_authentication.auth_provider = _),
|
|
2620
2612
|
clearable: "",
|
|
2621
2613
|
"data-testid": "redis-auth-provider-select",
|
|
2622
|
-
items:
|
|
2614
|
+
items: p.value,
|
|
2623
2615
|
"kpop-attributes": { "data-testid": "redis-auth-provider-select-popover" },
|
|
2624
2616
|
label: r(i)("form.fields.cloud_authentication.auth_provider.label"),
|
|
2625
2617
|
"label-attributes": { info: r(i)("form.fields.cloud_authentication.auth_provider.tooltip") },
|
|
2626
|
-
readonly: r(
|
|
2618
|
+
readonly: r(d).readonly
|
|
2627
2619
|
}, null, 8, ["modelValue", "items", "label", "label-attributes", "readonly"]),
|
|
2628
|
-
g(
|
|
2629
|
-
modelValue: r(
|
|
2630
|
-
"onUpdate:modelValue": v[4] || (v[4] = (
|
|
2620
|
+
g(Zs, {
|
|
2621
|
+
modelValue: r(d).fields.config.cloud_authentication,
|
|
2622
|
+
"onUpdate:modelValue": v[4] || (v[4] = (_) => r(d).fields.config.cloud_authentication = _),
|
|
2631
2623
|
config: n.config,
|
|
2632
|
-
readonly: r(
|
|
2624
|
+
readonly: r(d).readonly
|
|
2633
2625
|
}, null, 8, ["modelValue", "config", "readonly"])
|
|
2634
2626
|
]),
|
|
2635
2627
|
_: 1
|
|
2636
2628
|
}, 8, ["description", "title"])) : X("", !0),
|
|
2637
|
-
r(O) === r(T).SENTINEL ? (
|
|
2629
|
+
r(O) === r(T).SENTINEL ? (k(), F(r(ue), {
|
|
2638
2630
|
key: 2,
|
|
2639
2631
|
"data-testid": "redis-sentinel-configuration-section",
|
|
2640
2632
|
description: r(i)("form.sections.sentinel_configuration.description"),
|
|
@@ -2642,20 +2634,20 @@ const Fe = (e) => {
|
|
|
2642
2634
|
}, {
|
|
2643
2635
|
default: S(() => [
|
|
2644
2636
|
g(N, {
|
|
2645
|
-
modelValue: r(
|
|
2646
|
-
"onUpdate:modelValue": v[5] || (v[5] = (
|
|
2637
|
+
modelValue: r(d).fields.config.sentinel_master,
|
|
2638
|
+
"onUpdate:modelValue": v[5] || (v[5] = (_) => r(d).fields.config.sentinel_master = _),
|
|
2647
2639
|
"data-testid": "redis-sentinel-master-input",
|
|
2648
2640
|
label: r(i)("form.fields.sentinel_master.label"),
|
|
2649
2641
|
"label-attributes": {
|
|
2650
2642
|
info: r(i)("form.fields.sentinel_master.tooltip"),
|
|
2651
2643
|
tooltipAttributes: { maxWidth: "400" }
|
|
2652
2644
|
},
|
|
2653
|
-
readonly: r(
|
|
2645
|
+
readonly: r(d).readonly,
|
|
2654
2646
|
required: ""
|
|
2655
2647
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2656
2648
|
g(Se, {
|
|
2657
|
-
modelValue: r(
|
|
2658
|
-
"onUpdate:modelValue": v[6] || (v[6] = (
|
|
2649
|
+
modelValue: r(d).fields.config.sentinel_role,
|
|
2650
|
+
"onUpdate:modelValue": v[6] || (v[6] = (_) => r(d).fields.config.sentinel_role = _),
|
|
2659
2651
|
"data-testid": "redis-sentinel-role-select",
|
|
2660
2652
|
items: b,
|
|
2661
2653
|
"kpop-attributes": { "data-testid": "redis-sentinel-role-select-popover" },
|
|
@@ -2664,77 +2656,77 @@ const Fe = (e) => {
|
|
|
2664
2656
|
info: r(i)("form.fields.sentinel_role.tooltip"),
|
|
2665
2657
|
tooltipAttributes: { maxWidth: "400" }
|
|
2666
2658
|
},
|
|
2667
|
-
readonly: r(
|
|
2659
|
+
readonly: r(d).readonly,
|
|
2668
2660
|
required: ""
|
|
2669
2661
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2670
|
-
g(
|
|
2671
|
-
modelValue: r(
|
|
2672
|
-
"onUpdate:modelValue": v[7] || (v[7] = (
|
|
2673
|
-
readonly: r(
|
|
2662
|
+
g(Gs, {
|
|
2663
|
+
modelValue: r(d).fields.config.sentinel_nodes,
|
|
2664
|
+
"onUpdate:modelValue": v[7] || (v[7] = (_) => r(d).fields.config.sentinel_nodes = _),
|
|
2665
|
+
readonly: r(d).readonly
|
|
2674
2666
|
}, null, 8, ["modelValue", "readonly"]),
|
|
2675
2667
|
g(N, {
|
|
2676
|
-
modelValue: r(
|
|
2677
|
-
"onUpdate:modelValue": v[8] || (v[8] = (
|
|
2668
|
+
modelValue: r(d).fields.config.sentinel_username,
|
|
2669
|
+
"onUpdate:modelValue": v[8] || (v[8] = (_) => r(d).fields.config.sentinel_username = _),
|
|
2678
2670
|
modelModifiers: { trim: !0 },
|
|
2679
2671
|
label: r(i)("form.fields.sentinel_username.label"),
|
|
2680
2672
|
"label-attributes": {
|
|
2681
2673
|
info: r(i)("form.fields.sentinel_username.tooltip"),
|
|
2682
2674
|
tooltipAttributes: { maxWidth: "400" }
|
|
2683
2675
|
},
|
|
2684
|
-
readonly: r(
|
|
2676
|
+
readonly: r(d).readonly
|
|
2685
2677
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2686
|
-
g(r(
|
|
2678
|
+
g(r(De), {
|
|
2687
2679
|
class: "secret-picker-provider",
|
|
2688
|
-
disabled: r(
|
|
2689
|
-
update: (
|
|
2690
|
-
value: r(
|
|
2691
|
-
onOpen: v[9] || (v[9] = (
|
|
2680
|
+
disabled: r(d).readonly,
|
|
2681
|
+
update: (_) => r(d).fields.config.sentinel_username = _,
|
|
2682
|
+
value: r(d).fields.config.sentinel_username,
|
|
2683
|
+
onOpen: v[9] || (v[9] = (_, H) => r(f)(_, H))
|
|
2692
2684
|
}, null, 8, ["disabled", "update", "value"]),
|
|
2693
2685
|
g(N, {
|
|
2694
|
-
modelValue: r(
|
|
2695
|
-
"onUpdate:modelValue": v[10] || (v[10] = (
|
|
2686
|
+
modelValue: r(d).fields.config.sentinel_password,
|
|
2687
|
+
"onUpdate:modelValue": v[10] || (v[10] = (_) => r(d).fields.config.sentinel_password = _),
|
|
2696
2688
|
modelModifiers: { trim: !0 },
|
|
2697
2689
|
label: r(i)("form.fields.sentinel_password.label"),
|
|
2698
2690
|
"label-attributes": {
|
|
2699
2691
|
info: r(i)("form.fields.sentinel_password.tooltip"),
|
|
2700
2692
|
tooltipAttributes: { maxWidth: "400" }
|
|
2701
2693
|
},
|
|
2702
|
-
readonly: r(
|
|
2694
|
+
readonly: r(d).readonly,
|
|
2703
2695
|
"show-password-mask-toggle": "",
|
|
2704
2696
|
type: "password"
|
|
2705
2697
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2706
|
-
g(r(
|
|
2698
|
+
g(r(De), {
|
|
2707
2699
|
class: "secret-picker-provider",
|
|
2708
|
-
disabled: r(
|
|
2709
|
-
update: (
|
|
2710
|
-
value: r(
|
|
2711
|
-
onOpen: v[11] || (v[11] = (
|
|
2700
|
+
disabled: r(d).readonly,
|
|
2701
|
+
update: (_) => r(d).fields.config.sentinel_password = _,
|
|
2702
|
+
value: r(d).fields.config.sentinel_password,
|
|
2703
|
+
onOpen: v[11] || (v[11] = (_, H) => r(f)(_, H))
|
|
2712
2704
|
}, null, 8, ["disabled", "update", "value"])
|
|
2713
2705
|
]),
|
|
2714
2706
|
_: 1
|
|
2715
2707
|
}, 8, ["description", "title"])) : X("", !0),
|
|
2716
|
-
r(O) === r(T).CLUSTER ? (
|
|
2708
|
+
r(O) === r(T).CLUSTER ? (k(), F(r(ue), {
|
|
2717
2709
|
key: 3,
|
|
2718
2710
|
"data-testid": "redis-cluster-configuration-section",
|
|
2719
2711
|
description: r(i)("form.sections.cluster.description"),
|
|
2720
2712
|
title: r(i)("form.sections.cluster.title")
|
|
2721
2713
|
}, {
|
|
2722
2714
|
default: S(() => [
|
|
2723
|
-
g(
|
|
2724
|
-
modelValue: r(
|
|
2725
|
-
"onUpdate:modelValue": v[12] || (v[12] = (
|
|
2726
|
-
readonly: r(
|
|
2715
|
+
g(Hs, {
|
|
2716
|
+
modelValue: r(d).fields.config.cluster_nodes,
|
|
2717
|
+
"onUpdate:modelValue": v[12] || (v[12] = (_) => r(d).fields.config.cluster_nodes = _),
|
|
2718
|
+
readonly: r(d).readonly
|
|
2727
2719
|
}, null, 8, ["modelValue", "readonly"]),
|
|
2728
2720
|
g(N, {
|
|
2729
|
-
modelValue: r(
|
|
2730
|
-
"onUpdate:modelValue": v[13] || (v[13] = (
|
|
2721
|
+
modelValue: r(d).fields.config.cluster_max_redirections,
|
|
2722
|
+
"onUpdate:modelValue": v[13] || (v[13] = (_) => r(d).fields.config.cluster_max_redirections = _),
|
|
2731
2723
|
"data-testid": "redis-cluster-max-redirections-input",
|
|
2732
2724
|
label: r(i)("form.fields.cluster_max_redirections.label"),
|
|
2733
2725
|
"label-attributes": {
|
|
2734
2726
|
info: r(i)("form.fields.cluster_max_redirections.tooltip"),
|
|
2735
2727
|
tooltipAttributes: { maxWidth: "400" }
|
|
2736
2728
|
},
|
|
2737
|
-
readonly: r(
|
|
2729
|
+
readonly: r(d).readonly,
|
|
2738
2730
|
type: "number"
|
|
2739
2731
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
2740
2732
|
]),
|
|
@@ -2746,10 +2738,10 @@ const Fe = (e) => {
|
|
|
2746
2738
|
title: r(i)("form.sections.connection.title")
|
|
2747
2739
|
}, {
|
|
2748
2740
|
default: S(() => [
|
|
2749
|
-
r(O) === r(T).HOST_PORT_CE || r(O) === r(T).HOST_PORT_EE ? (
|
|
2741
|
+
r(O) === r(T).HOST_PORT_CE || r(O) === r(T).HOST_PORT_EE ? (k(), F(N, {
|
|
2750
2742
|
key: 0,
|
|
2751
|
-
modelValue: r(
|
|
2752
|
-
"onUpdate:modelValue": v[14] || (v[14] = (
|
|
2743
|
+
modelValue: r(d).fields.config.host,
|
|
2744
|
+
"onUpdate:modelValue": v[14] || (v[14] = (_) => r(d).fields.config.host = _),
|
|
2753
2745
|
modelModifiers: { trim: !0 },
|
|
2754
2746
|
"data-testid": "redis-host-input",
|
|
2755
2747
|
label: r(i)("form.fields.host.label"),
|
|
@@ -2757,12 +2749,12 @@ const Fe = (e) => {
|
|
|
2757
2749
|
info: r(i)("form.fields.host.tooltip"),
|
|
2758
2750
|
tooltipAttributes: { maxWidth: "400" }
|
|
2759
2751
|
},
|
|
2760
|
-
readonly: r(
|
|
2752
|
+
readonly: r(d).readonly
|
|
2761
2753
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : X("", !0),
|
|
2762
|
-
r(O) === r(T).HOST_PORT_CE || r(O) === r(T).HOST_PORT_EE ? (
|
|
2754
|
+
r(O) === r(T).HOST_PORT_CE || r(O) === r(T).HOST_PORT_EE ? (k(), F(N, {
|
|
2763
2755
|
key: 1,
|
|
2764
|
-
modelValue: r(
|
|
2765
|
-
"onUpdate:modelValue": v[15] || (v[15] = (
|
|
2756
|
+
modelValue: r(d).fields.config.port,
|
|
2757
|
+
"onUpdate:modelValue": v[15] || (v[15] = (_) => r(d).fields.config.port = _),
|
|
2766
2758
|
modelModifiers: { trim: !0 },
|
|
2767
2759
|
"data-testid": "redis-port-input",
|
|
2768
2760
|
label: r(i)("form.fields.port.label"),
|
|
@@ -2770,32 +2762,25 @@ const Fe = (e) => {
|
|
|
2770
2762
|
info: r(i)("form.fields.port.tooltip"),
|
|
2771
2763
|
tooltipAttributes: { maxWidth: "400" }
|
|
2772
2764
|
},
|
|
2773
|
-
readonly: r(
|
|
2765
|
+
readonly: r(d).readonly,
|
|
2766
|
+
type: "number"
|
|
2774
2767
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : X("", !0),
|
|
2775
|
-
r(O) === r(T).HOST_PORT_EE
|
|
2768
|
+
r(O) === r(T).HOST_PORT_EE ? (k(), F(C, {
|
|
2776
2769
|
key: 2,
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
update: (f) => r(s).fields.config.port = f,
|
|
2780
|
-
value: String(r(s).fields.config.port ?? ""),
|
|
2781
|
-
onOpen: v[16] || (v[16] = (f, B) => r(p)(f, B))
|
|
2782
|
-
}, null, 8, ["disabled", "update", "value"])) : X("", !0),
|
|
2783
|
-
r(O) === r(T).HOST_PORT_EE ? (I(), F(C, {
|
|
2784
|
-
key: 3,
|
|
2785
|
-
modelValue: r(s).fields.config.connection_is_proxied,
|
|
2786
|
-
"onUpdate:modelValue": v[17] || (v[17] = (f) => r(s).fields.config.connection_is_proxied = f),
|
|
2770
|
+
modelValue: r(d).fields.config.connection_is_proxied,
|
|
2771
|
+
"onUpdate:modelValue": v[16] || (v[16] = (_) => r(d).fields.config.connection_is_proxied = _),
|
|
2787
2772
|
"data-testid": "redis-connection-is-proxied-checkbox",
|
|
2788
|
-
disabled: r(
|
|
2773
|
+
disabled: r(d).readonly,
|
|
2789
2774
|
label: r(i)("form.fields.connection_is_proxied.label"),
|
|
2790
2775
|
"label-attributes": {
|
|
2791
2776
|
info: r(i)("form.fields.connection_is_proxied.tooltip"),
|
|
2792
2777
|
tooltipAttributes: { maxWidth: "400" }
|
|
2793
2778
|
}
|
|
2794
2779
|
}, null, 8, ["modelValue", "disabled", "label", "label-attributes"])) : X("", !0),
|
|
2795
|
-
r(O) === r(T).HOST_PORT_CE ? (
|
|
2796
|
-
key:
|
|
2797
|
-
modelValue: r(
|
|
2798
|
-
"onUpdate:modelValue": v[
|
|
2780
|
+
r(O) === r(T).HOST_PORT_CE ? (k(), F(N, {
|
|
2781
|
+
key: 3,
|
|
2782
|
+
modelValue: r(d).fields.config.timeout,
|
|
2783
|
+
"onUpdate:modelValue": v[17] || (v[17] = (_) => r(d).fields.config.timeout = _),
|
|
2799
2784
|
modelModifiers: { trim: !0 },
|
|
2800
2785
|
"data-testid": "redis-timeout-input",
|
|
2801
2786
|
label: r(i)("form.fields.timeout.label"),
|
|
@@ -2803,12 +2788,12 @@ const Fe = (e) => {
|
|
|
2803
2788
|
info: r(i)("form.fields.timeout.tooltip"),
|
|
2804
2789
|
tooltipAttributes: { maxWidth: "400" }
|
|
2805
2790
|
},
|
|
2806
|
-
readonly: r(
|
|
2791
|
+
readonly: r(d).readonly,
|
|
2807
2792
|
type: "number"
|
|
2808
2793
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : X("", !0),
|
|
2809
2794
|
g(N, {
|
|
2810
|
-
modelValue: r(
|
|
2811
|
-
"onUpdate:modelValue": v[
|
|
2795
|
+
modelValue: r(d).fields.config.database,
|
|
2796
|
+
"onUpdate:modelValue": v[18] || (v[18] = (_) => r(d).fields.config.database = _),
|
|
2812
2797
|
modelModifiers: { trim: !0 },
|
|
2813
2798
|
"data-testid": "redis-database-input",
|
|
2814
2799
|
label: r(i)("form.fields.database.label"),
|
|
@@ -2816,12 +2801,12 @@ const Fe = (e) => {
|
|
|
2816
2801
|
info: r(i)("form.fields.database.tooltip"),
|
|
2817
2802
|
tooltipAttributes: { maxWidth: "400" }
|
|
2818
2803
|
},
|
|
2819
|
-
readonly: r(
|
|
2804
|
+
readonly: r(d).readonly,
|
|
2820
2805
|
type: "number"
|
|
2821
2806
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2822
2807
|
g(N, {
|
|
2823
|
-
modelValue: r(
|
|
2824
|
-
"onUpdate:modelValue": v[
|
|
2808
|
+
modelValue: r(d).fields.config.username,
|
|
2809
|
+
"onUpdate:modelValue": v[19] || (v[19] = (_) => r(d).fields.config.username = _),
|
|
2825
2810
|
modelModifiers: { trim: !0 },
|
|
2826
2811
|
"data-testid": "redis-username-input",
|
|
2827
2812
|
label: r(i)("form.fields.username.label"),
|
|
@@ -2829,18 +2814,18 @@ const Fe = (e) => {
|
|
|
2829
2814
|
info: r(i)("form.fields.username.tooltip"),
|
|
2830
2815
|
tooltipAttributes: { maxWidth: "400" }
|
|
2831
2816
|
},
|
|
2832
|
-
readonly: r(
|
|
2817
|
+
readonly: r(d).readonly
|
|
2833
2818
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2834
|
-
g(r(
|
|
2819
|
+
g(r(De), {
|
|
2835
2820
|
class: "secret-picker-provider",
|
|
2836
|
-
disabled: r(
|
|
2837
|
-
update: (
|
|
2838
|
-
value: r(
|
|
2839
|
-
onOpen: v[
|
|
2821
|
+
disabled: r(d).readonly,
|
|
2822
|
+
update: (_) => r(d).fields.config.username = _,
|
|
2823
|
+
value: r(d).fields.config.username,
|
|
2824
|
+
onOpen: v[20] || (v[20] = (_, H) => r(f)(_, H))
|
|
2840
2825
|
}, null, 8, ["disabled", "update", "value"]),
|
|
2841
2826
|
g(N, {
|
|
2842
|
-
modelValue: r(
|
|
2843
|
-
"onUpdate:modelValue": v[
|
|
2827
|
+
modelValue: r(d).fields.config.password,
|
|
2828
|
+
"onUpdate:modelValue": v[21] || (v[21] = (_) => r(d).fields.config.password = _),
|
|
2844
2829
|
modelModifiers: { trim: !0 },
|
|
2845
2830
|
"data-testid": "redis-password-input",
|
|
2846
2831
|
label: r(i)("form.fields.password.label"),
|
|
@@ -2848,16 +2833,16 @@ const Fe = (e) => {
|
|
|
2848
2833
|
info: r(i)("form.fields.password.tooltip"),
|
|
2849
2834
|
tooltipAttributes: { maxWidth: "400" }
|
|
2850
2835
|
},
|
|
2851
|
-
readonly: r(
|
|
2836
|
+
readonly: r(d).readonly,
|
|
2852
2837
|
"show-password-mask-toggle": "",
|
|
2853
2838
|
type: "password"
|
|
2854
2839
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2855
|
-
g(r(
|
|
2840
|
+
g(r(De), {
|
|
2856
2841
|
class: "secret-picker-provider",
|
|
2857
|
-
disabled: r(
|
|
2858
|
-
update: (
|
|
2859
|
-
value: r(
|
|
2860
|
-
onOpen: v[
|
|
2842
|
+
disabled: r(d).readonly,
|
|
2843
|
+
update: (_) => r(d).fields.config.password = _,
|
|
2844
|
+
value: r(d).fields.config.password,
|
|
2845
|
+
onOpen: v[22] || (v[22] = (_, H) => r(f)(_, H))
|
|
2861
2846
|
}, null, 8, ["disabled", "update", "value"])
|
|
2862
2847
|
]),
|
|
2863
2848
|
_: 1
|
|
@@ -2869,11 +2854,11 @@ const Fe = (e) => {
|
|
|
2869
2854
|
}, {
|
|
2870
2855
|
default: S(() => [
|
|
2871
2856
|
g(C, {
|
|
2872
|
-
modelValue: r(
|
|
2873
|
-
"onUpdate:modelValue": v[
|
|
2857
|
+
modelValue: r(d).fields.config.ssl,
|
|
2858
|
+
"onUpdate:modelValue": v[23] || (v[23] = (_) => r(d).fields.config.ssl = _),
|
|
2874
2859
|
"data-testid": "redis-ssl-checkbox",
|
|
2875
2860
|
description: r(i)("form.fields.ssl.description"),
|
|
2876
|
-
disabled: r(
|
|
2861
|
+
disabled: r(d).readonly,
|
|
2877
2862
|
label: r(i)("form.fields.ssl.label"),
|
|
2878
2863
|
"label-attributes": {
|
|
2879
2864
|
info: r(i)("form.fields.ssl.tooltip"),
|
|
@@ -2881,11 +2866,11 @@ const Fe = (e) => {
|
|
|
2881
2866
|
}
|
|
2882
2867
|
}, null, 8, ["modelValue", "description", "disabled", "label", "label-attributes"]),
|
|
2883
2868
|
g(C, {
|
|
2884
|
-
modelValue: r(
|
|
2885
|
-
"onUpdate:modelValue": v[
|
|
2869
|
+
modelValue: r(d).fields.config.ssl_verify,
|
|
2870
|
+
"onUpdate:modelValue": v[24] || (v[24] = (_) => r(d).fields.config.ssl_verify = _),
|
|
2886
2871
|
"data-testid": "redis-ssl-verify-checkbox",
|
|
2887
2872
|
description: r(i)("form.fields.ssl_verify.description"),
|
|
2888
|
-
disabled: r(
|
|
2873
|
+
disabled: r(d).readonly,
|
|
2889
2874
|
label: r(i)("form.fields.ssl_verify.label"),
|
|
2890
2875
|
"label-attributes": {
|
|
2891
2876
|
info: r(i)("form.fields.ssl_verify.tooltip"),
|
|
@@ -2893,20 +2878,20 @@ const Fe = (e) => {
|
|
|
2893
2878
|
}
|
|
2894
2879
|
}, null, 8, ["modelValue", "description", "disabled", "label", "label-attributes"]),
|
|
2895
2880
|
g(N, {
|
|
2896
|
-
modelValue: r(
|
|
2897
|
-
"onUpdate:modelValue": v[
|
|
2881
|
+
modelValue: r(d).fields.config.server_name,
|
|
2882
|
+
"onUpdate:modelValue": v[25] || (v[25] = (_) => r(d).fields.config.server_name = _),
|
|
2898
2883
|
modelModifiers: { trim: !0 },
|
|
2899
2884
|
label: r(i)("form.fields.server_name.label"),
|
|
2900
2885
|
"label-attributes": {
|
|
2901
2886
|
info: r(i)("form.fields.server_name.tooltip"),
|
|
2902
2887
|
tooltipAttributes: { maxWidth: "400" }
|
|
2903
2888
|
},
|
|
2904
|
-
readonly: r(
|
|
2889
|
+
readonly: r(d).readonly
|
|
2905
2890
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
2906
2891
|
]),
|
|
2907
2892
|
_: 1
|
|
2908
2893
|
}, 8, ["description", "title"]),
|
|
2909
|
-
r(O) !== r(T).HOST_PORT_CE ? (
|
|
2894
|
+
r(O) !== r(T).HOST_PORT_CE ? (k(), F(r(ue), {
|
|
2910
2895
|
key: 4,
|
|
2911
2896
|
"data-testid": "redis-keepalive-section",
|
|
2912
2897
|
description: r(i)("form.sections.keepalive.description"),
|
|
@@ -2914,33 +2899,33 @@ const Fe = (e) => {
|
|
|
2914
2899
|
}, {
|
|
2915
2900
|
default: S(() => [
|
|
2916
2901
|
g(N, {
|
|
2917
|
-
modelValue: r(
|
|
2918
|
-
"onUpdate:modelValue": v[
|
|
2902
|
+
modelValue: r(d).fields.config.keepalive_backlog,
|
|
2903
|
+
"onUpdate:modelValue": v[26] || (v[26] = (_) => r(d).fields.config.keepalive_backlog = _),
|
|
2919
2904
|
"data-testid": "redis-keepalive-backlog-input",
|
|
2920
2905
|
label: r(i)("form.fields.keepalive_backlog.label"),
|
|
2921
2906
|
"label-attributes": {
|
|
2922
2907
|
info: r(i)("form.fields.keepalive_backlog.tooltip"),
|
|
2923
2908
|
tooltipAttributes: { maxWidth: "400" }
|
|
2924
2909
|
},
|
|
2925
|
-
readonly: r(
|
|
2910
|
+
readonly: r(d).readonly,
|
|
2926
2911
|
type: "number"
|
|
2927
2912
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2928
2913
|
g(N, {
|
|
2929
|
-
modelValue: r(
|
|
2930
|
-
"onUpdate:modelValue": v[
|
|
2914
|
+
modelValue: r(d).fields.config.keepalive_pool_size,
|
|
2915
|
+
"onUpdate:modelValue": v[27] || (v[27] = (_) => r(d).fields.config.keepalive_pool_size = _),
|
|
2931
2916
|
"data-testid": "redis-keepalive-pool-size-input",
|
|
2932
2917
|
label: r(i)("form.fields.keepalive_pool_size.label"),
|
|
2933
2918
|
"label-attributes": {
|
|
2934
2919
|
info: r(i)("form.fields.keepalive_pool_size.tooltip"),
|
|
2935
2920
|
tooltipAttributes: { maxWidth: "400" }
|
|
2936
2921
|
},
|
|
2937
|
-
readonly: r(
|
|
2922
|
+
readonly: r(d).readonly,
|
|
2938
2923
|
type: "number"
|
|
2939
2924
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
2940
2925
|
]),
|
|
2941
2926
|
_: 1
|
|
2942
2927
|
}, 8, ["description", "title"])) : X("", !0),
|
|
2943
|
-
r(O) !== r(T).HOST_PORT_CE ? (
|
|
2928
|
+
r(O) !== r(T).HOST_PORT_CE ? (k(), F(r(ue), {
|
|
2944
2929
|
key: 5,
|
|
2945
2930
|
"data-testid": "redis-read-write-configuration-section",
|
|
2946
2931
|
description: r(i)("form.sections.read_write_configuration.description"),
|
|
@@ -2948,39 +2933,39 @@ const Fe = (e) => {
|
|
|
2948
2933
|
}, {
|
|
2949
2934
|
default: S(() => [
|
|
2950
2935
|
g(N, {
|
|
2951
|
-
modelValue: r(
|
|
2952
|
-
"onUpdate:modelValue": v[
|
|
2936
|
+
modelValue: r(d).fields.config.read_timeout,
|
|
2937
|
+
"onUpdate:modelValue": v[28] || (v[28] = (_) => r(d).fields.config.read_timeout = _),
|
|
2953
2938
|
"data-testid": "redis-read-timeout-input",
|
|
2954
2939
|
label: r(i)("form.fields.read_timeout.label"),
|
|
2955
2940
|
"label-attributes": {
|
|
2956
2941
|
info: r(i)("form.fields.read_timeout.tooltip"),
|
|
2957
2942
|
tooltipAttributes: { maxWidth: "400" }
|
|
2958
2943
|
},
|
|
2959
|
-
readonly: r(
|
|
2944
|
+
readonly: r(d).readonly,
|
|
2960
2945
|
type: "number"
|
|
2961
2946
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2962
2947
|
g(N, {
|
|
2963
|
-
modelValue: r(
|
|
2964
|
-
"onUpdate:modelValue": v[
|
|
2948
|
+
modelValue: r(d).fields.config.send_timeout,
|
|
2949
|
+
"onUpdate:modelValue": v[29] || (v[29] = (_) => r(d).fields.config.send_timeout = _),
|
|
2965
2950
|
"data-testid": "redis-send-timeout-input",
|
|
2966
2951
|
label: r(i)("form.fields.send_timeout.label"),
|
|
2967
2952
|
"label-attributes": {
|
|
2968
2953
|
info: r(i)("form.fields.send_timeout.tooltip"),
|
|
2969
2954
|
tooltipAttributes: { maxWidth: "400" }
|
|
2970
2955
|
},
|
|
2971
|
-
readonly: r(
|
|
2956
|
+
readonly: r(d).readonly,
|
|
2972
2957
|
type: "number"
|
|
2973
2958
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2974
2959
|
g(N, {
|
|
2975
|
-
modelValue: r(
|
|
2976
|
-
"onUpdate:modelValue": v[
|
|
2960
|
+
modelValue: r(d).fields.config.connect_timeout,
|
|
2961
|
+
"onUpdate:modelValue": v[30] || (v[30] = (_) => r(d).fields.config.connect_timeout = _),
|
|
2977
2962
|
"data-testid": "redis-connect-timeout-input",
|
|
2978
2963
|
label: r(i)("form.fields.connect_timeout.label"),
|
|
2979
2964
|
"label-attributes": {
|
|
2980
2965
|
info: r(i)("form.fields.connect_timeout.tooltip"),
|
|
2981
2966
|
tooltipAttributes: { maxWidth: "400" }
|
|
2982
2967
|
},
|
|
2983
|
-
readonly: r(
|
|
2968
|
+
readonly: r(d).readonly,
|
|
2984
2969
|
type: "number"
|
|
2985
2970
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
2986
2971
|
]),
|
|
@@ -2993,7 +2978,7 @@ const Fe = (e) => {
|
|
|
2993
2978
|
g(r(wn), {
|
|
2994
2979
|
config: n.config,
|
|
2995
2980
|
setup: r(c),
|
|
2996
|
-
onCancel: v[
|
|
2981
|
+
onCancel: v[32] || (v[32] = () => c.value = !1),
|
|
2997
2982
|
onProceed: r(l)
|
|
2998
2983
|
}, null, 8, ["config", "setup", "onProceed"]),
|
|
2999
2984
|
g(R, {
|
|
@@ -3003,7 +2988,7 @@ const Fe = (e) => {
|
|
|
3003
2988
|
"max-width": "640",
|
|
3004
2989
|
title: r(i)("form.edit_warning_modal.title"),
|
|
3005
2990
|
visible: ie.value,
|
|
3006
|
-
onCancel: v[
|
|
2991
|
+
onCancel: v[33] || (v[33] = (_) => ie.value = !1),
|
|
3007
2992
|
onProceed: Te
|
|
3008
2993
|
}, {
|
|
3009
2994
|
default: S(() => [
|
|
@@ -3012,7 +2997,7 @@ const Fe = (e) => {
|
|
|
3012
2997
|
tag: "div"
|
|
3013
2998
|
}, {
|
|
3014
2999
|
pluginCount: S(() => [
|
|
3015
|
-
|
|
3000
|
+
z("b", null, U(r(i)("form.edit_warning_modal.plugin_count", { count: re.value })), 1)
|
|
3016
3001
|
]),
|
|
3017
3002
|
_: 1
|
|
3018
3003
|
})
|
|
@@ -3022,10 +3007,10 @@ const Fe = (e) => {
|
|
|
3022
3007
|
], 64);
|
|
3023
3008
|
};
|
|
3024
3009
|
}
|
|
3025
|
-
}),
|
|
3010
|
+
}), ud = /* @__PURE__ */ te(dd, [["__scopeId", "data-v-cdc92d39"]]), cd = {
|
|
3026
3011
|
class: "linked-plugins",
|
|
3027
3012
|
"data-testid": "linked-plugins-inline"
|
|
3028
|
-
}, bt = 7,
|
|
3013
|
+
}, bt = 7, fd = /* @__PURE__ */ Q({
|
|
3029
3014
|
__name: "LinkedPluginsInline",
|
|
3030
3015
|
props: {
|
|
3031
3016
|
config: {
|
|
@@ -3045,13 +3030,13 @@ const Fe = (e) => {
|
|
|
3045
3030
|
});
|
|
3046
3031
|
return (o, i) => {
|
|
3047
3032
|
const a = $("KBadge");
|
|
3048
|
-
return
|
|
3049
|
-
(
|
|
3033
|
+
return k(), J("div", cd, [
|
|
3034
|
+
(k(!0), J(fe, null, tt(r(n).slice(0, bt), (c) => (k(), F(r(En), {
|
|
3050
3035
|
key: c.id,
|
|
3051
3036
|
name: c.name,
|
|
3052
3037
|
size: 24
|
|
3053
3038
|
}, null, 8, ["name"]))), 128)),
|
|
3054
|
-
r(n).length - bt > 0 ? (
|
|
3039
|
+
r(n).length - bt > 0 ? (k(), F(a, {
|
|
3055
3040
|
key: 0,
|
|
3056
3041
|
appearance: "info"
|
|
3057
3042
|
}, {
|
|
@@ -3063,21 +3048,21 @@ const Fe = (e) => {
|
|
|
3063
3048
|
]);
|
|
3064
3049
|
};
|
|
3065
3050
|
}
|
|
3066
|
-
}),
|
|
3051
|
+
}), pd = /* @__PURE__ */ te(fd, [["__scopeId", "data-v-c39556bc"]]), md = { class: "plugin-item" }, _d = /* @__PURE__ */ Q({
|
|
3067
3052
|
__name: "PluginItem",
|
|
3068
3053
|
props: {
|
|
3069
3054
|
pluginName: {}
|
|
3070
3055
|
},
|
|
3071
3056
|
setup(e) {
|
|
3072
|
-
return (t, n) => (
|
|
3057
|
+
return (t, n) => (k(), J("div", md, [
|
|
3073
3058
|
g(r(En), {
|
|
3074
3059
|
name: e.pluginName,
|
|
3075
3060
|
size: 24
|
|
3076
3061
|
}, null, 8, ["name"]),
|
|
3077
|
-
|
|
3062
|
+
z("span", null, U(e.pluginName), 1)
|
|
3078
3063
|
]));
|
|
3079
3064
|
}
|
|
3080
|
-
}),
|
|
3065
|
+
}), gd = /* @__PURE__ */ te(_d, [["__scopeId", "data-v-de964dc4"]]), bd = { class: "toolbar-container" }, yd = /* @__PURE__ */ Q({
|
|
3081
3066
|
__name: "LinkedPluginList",
|
|
3082
3067
|
props: {
|
|
3083
3068
|
config: {
|
|
@@ -3107,44 +3092,44 @@ const Fe = (e) => {
|
|
|
3107
3092
|
{ key: "name", label: i("linked_plugins_modal.headers.plugin") },
|
|
3108
3093
|
{ key: "instance_name", label: i("linked_plugins_modal.headers.instance_name") },
|
|
3109
3094
|
{ key: "actions", hideLabel: !0 }
|
|
3110
|
-
], { fetcher: c } = Fe(n.config),
|
|
3111
|
-
const { data: b, count:
|
|
3095
|
+
], { fetcher: c } = Fe(n.config), f = x(0), l = async (p) => {
|
|
3096
|
+
const { data: b, count: m } = await c({
|
|
3112
3097
|
partialId: n.partialId,
|
|
3113
|
-
size:
|
|
3114
|
-
offset:
|
|
3115
|
-
query:
|
|
3098
|
+
size: p.pageSize,
|
|
3099
|
+
offset: p.offset,
|
|
3100
|
+
query: p.query
|
|
3116
3101
|
});
|
|
3117
|
-
|
|
3102
|
+
f.value = m;
|
|
3118
3103
|
const E = {
|
|
3119
|
-
total:
|
|
3104
|
+
total: m,
|
|
3120
3105
|
data: b
|
|
3121
3106
|
};
|
|
3122
3107
|
return o("load", E), E;
|
|
3123
|
-
}, u = x(""), y =
|
|
3108
|
+
}, u = x(""), y = B(() => n.config.app === "konnect" || n.isExactMatch ? {
|
|
3124
3109
|
isExactMatch: !0
|
|
3125
3110
|
} : {
|
|
3126
3111
|
isExactMatch: !1,
|
|
3127
3112
|
fields: { name: { searchable: !0 } },
|
|
3128
3113
|
schema: { name: { type: "text" } }
|
|
3129
|
-
}), w = (
|
|
3130
|
-
o("view-plugin", { id:
|
|
3114
|
+
}), w = (p) => {
|
|
3115
|
+
o("view-plugin", { id: p.id, plugin: p.name });
|
|
3131
3116
|
};
|
|
3132
|
-
return (
|
|
3133
|
-
const
|
|
3134
|
-
return
|
|
3117
|
+
return (p, b) => {
|
|
3118
|
+
const m = $("KDropdownItem"), E = $("KTableData");
|
|
3119
|
+
return k(), F(E, {
|
|
3135
3120
|
"cache-identifier": r(ci)(e.partialId),
|
|
3136
3121
|
fetcher: l,
|
|
3137
3122
|
headers: a,
|
|
3138
3123
|
"hide-pagination-when-optional": "",
|
|
3139
|
-
"pagination-attributes": { totalCount:
|
|
3124
|
+
"pagination-attributes": { totalCount: f.value, disablePageJump: !0 },
|
|
3140
3125
|
"search-input": u.value
|
|
3141
3126
|
}, gn({
|
|
3142
|
-
name: S(({ rowValue:
|
|
3143
|
-
g(
|
|
3127
|
+
name: S(({ rowValue: d }) => [
|
|
3128
|
+
g(gd, { "plugin-name": d }, null, 8, ["plugin-name"])
|
|
3144
3129
|
]),
|
|
3145
|
-
"action-items": S(({ row:
|
|
3146
|
-
g(
|
|
3147
|
-
onClick: (A) => w(
|
|
3130
|
+
"action-items": S(({ row: d }) => [
|
|
3131
|
+
g(m, {
|
|
3132
|
+
onClick: (A) => w(d)
|
|
3148
3133
|
}, {
|
|
3149
3134
|
default: S(() => [
|
|
3150
3135
|
le(U(r(i)("actions.view_plugin")), 1)
|
|
@@ -3157,10 +3142,10 @@ const Fe = (e) => {
|
|
|
3157
3142
|
e.filterBarEnabled ? {
|
|
3158
3143
|
name: "toolbar",
|
|
3159
3144
|
fn: S(() => [
|
|
3160
|
-
|
|
3145
|
+
z("div", bd, [
|
|
3161
3146
|
g(r(hn), {
|
|
3162
3147
|
modelValue: u.value,
|
|
3163
|
-
"onUpdate:modelValue": b[0] || (b[0] = (
|
|
3148
|
+
"onUpdate:modelValue": b[0] || (b[0] = (d) => u.value = d),
|
|
3164
3149
|
config: y.value
|
|
3165
3150
|
}, null, 8, ["modelValue", "config"])
|
|
3166
3151
|
])
|
|
@@ -3170,10 +3155,10 @@ const Fe = (e) => {
|
|
|
3170
3155
|
]), 1032, ["cache-identifier", "pagination-attributes", "search-input"]);
|
|
3171
3156
|
};
|
|
3172
3157
|
}
|
|
3173
|
-
}),
|
|
3158
|
+
}), vd = /* @__PURE__ */ te(yd, [["__scopeId", "data-v-50856d03"]]), hd = {
|
|
3174
3159
|
class: "linked-plugins-modal",
|
|
3175
3160
|
"data-testid": "linked-plugins-modal"
|
|
3176
|
-
},
|
|
3161
|
+
}, wd = /* @__PURE__ */ Q({
|
|
3177
3162
|
__name: "LinkedPluginListModal",
|
|
3178
3163
|
props: {
|
|
3179
3164
|
config: {
|
|
@@ -3193,24 +3178,24 @@ const Fe = (e) => {
|
|
|
3193
3178
|
},
|
|
3194
3179
|
emits: ["cancel", "proceed", "view-plugin"],
|
|
3195
3180
|
setup(e, { emit: t }) {
|
|
3196
|
-
const n = t, { i18n: { t: o } } = ye.useI18n(), i = x(0), a =
|
|
3181
|
+
const n = t, { i18n: { t: o } } = ye.useI18n(), i = x(0), a = B(() => o("linked_plugins_modal.title", { count: i.value })), c = () => {
|
|
3197
3182
|
n("cancel");
|
|
3198
|
-
},
|
|
3183
|
+
}, f = () => {
|
|
3199
3184
|
n("proceed");
|
|
3200
3185
|
};
|
|
3201
3186
|
return (l, u) => {
|
|
3202
3187
|
const y = $("KModal");
|
|
3203
|
-
return
|
|
3188
|
+
return k(), J("div", hd, [
|
|
3204
3189
|
g(y, {
|
|
3205
3190
|
"action-button-text": r(o)("actions.done"),
|
|
3206
3191
|
"hide-cancel-button": "",
|
|
3207
3192
|
title: a.value,
|
|
3208
3193
|
visible: e.visible,
|
|
3209
3194
|
onCancel: c,
|
|
3210
|
-
onProceed:
|
|
3195
|
+
onProceed: f
|
|
3211
3196
|
}, {
|
|
3212
3197
|
default: S(() => [
|
|
3213
|
-
g(
|
|
3198
|
+
g(vd, {
|
|
3214
3199
|
config: e.config,
|
|
3215
3200
|
"partial-id": e.redisConfigurationId,
|
|
3216
3201
|
onLoad: u[0] || (u[0] = ({ total: w }) => i.value = w),
|
|
@@ -3222,7 +3207,7 @@ const Fe = (e) => {
|
|
|
3222
3207
|
]);
|
|
3223
3208
|
};
|
|
3224
3209
|
}
|
|
3225
|
-
}),
|
|
3210
|
+
}), Td = /* @__PURE__ */ te(wd, [["__scopeId", "data-v-6148b8bd"]]), Sd = /* @__PURE__ */ Q({
|
|
3226
3211
|
__name: "DeleteWarningModal",
|
|
3227
3212
|
props: {
|
|
3228
3213
|
visible: {
|
|
@@ -3236,8 +3221,8 @@ const Fe = (e) => {
|
|
|
3236
3221
|
o("close");
|
|
3237
3222
|
};
|
|
3238
3223
|
return (a, c) => {
|
|
3239
|
-
const
|
|
3240
|
-
return
|
|
3224
|
+
const f = $("KModal");
|
|
3225
|
+
return k(), F(f, {
|
|
3241
3226
|
"action-button-text": r(n)("actions.close"),
|
|
3242
3227
|
"data-testid": "remove-links-modal",
|
|
3243
3228
|
"hide-cancel-button": "",
|
|
@@ -3254,7 +3239,7 @@ const Fe = (e) => {
|
|
|
3254
3239
|
}, 8, ["action-button-text", "title", "visible"]);
|
|
3255
3240
|
};
|
|
3256
3241
|
}
|
|
3257
|
-
}),
|
|
3242
|
+
}), Ed = { class: "kong-ui-entities-partials-list" }, Cd = 1e3, Id = /* @__PURE__ */ Q({
|
|
3258
3243
|
__name: "RedisConfigurationList",
|
|
3259
3244
|
props: {
|
|
3260
3245
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3301,21 +3286,21 @@ const Fe = (e) => {
|
|
|
3301
3286
|
emits: ["click:learn-more", "click:plugin", "copy:error", "copy:success", "delete:success", "error"],
|
|
3302
3287
|
setup(e, { emit: t }) {
|
|
3303
3288
|
var N;
|
|
3304
|
-
const n = t, o = e, i =
|
|
3305
|
-
var R,
|
|
3306
|
-
let C = `${o.config.apiBaseUrl}${
|
|
3307
|
-
return o.config.app === "konnect" ? C = C.replace(/{controlPlaneId}/gi, ((R = o.config) == null ? void 0 : R.controlPlaneId) || "") : o.config.app === "kongManager" && (C = C.replace(/\/{workspace}/gi, (
|
|
3308
|
-
}), a = x(!1), c = x(""),
|
|
3309
|
-
async function
|
|
3310
|
-
const R = await
|
|
3311
|
-
return R.data = R.data.filter((
|
|
3289
|
+
const n = t, o = e, i = B(() => {
|
|
3290
|
+
var R, _;
|
|
3291
|
+
let C = `${o.config.apiBaseUrl}${Ve.list[o.config.app]}`;
|
|
3292
|
+
return o.config.app === "konnect" ? C = C.replace(/{controlPlaneId}/gi, ((R = o.config) == null ? void 0 : R.controlPlaneId) || "") : o.config.app === "kongManager" && (C = C.replace(/\/{workspace}/gi, (_ = o.config) != null && _.workspace ? `/${o.config.workspace}` : "")), C;
|
|
3293
|
+
}), a = x(!1), c = x(""), f = x(null), l = x(void 0), u = x(!1), y = x(!1), w = x(""), p = x(!1), b = Oi(o.config, i.value), m = x(1), E = B(() => o.config.app !== "kongManager" || !!o.config.disableSorting), { fetcher: d, fetcherState: A } = Ri(o.config, i);
|
|
3294
|
+
async function I(C) {
|
|
3295
|
+
const R = await d({ ...C, pageSize: Cd });
|
|
3296
|
+
return R.data = R.data.filter((_) => _.type === Z.REDIS_CE || _.type === Z.REDIS_EE), R;
|
|
3312
3297
|
}
|
|
3313
|
-
const { i18n: { t:
|
|
3298
|
+
const { i18n: { t: s } } = ye.useI18n(), { axiosInstance: O } = It((N = o.config) == null ? void 0 : N.axiosRequestConfig), P = Tn(), W = x(""), Y = B(() => {
|
|
3314
3299
|
const C = o.config.app === "konnect" || o.config.isExactMatch;
|
|
3315
3300
|
if (C)
|
|
3316
3301
|
return {
|
|
3317
3302
|
isExactMatch: !0,
|
|
3318
|
-
placeholder:
|
|
3303
|
+
placeholder: s("search.placeholder_for_exact_match")
|
|
3319
3304
|
};
|
|
3320
3305
|
const { name: R } = ie;
|
|
3321
3306
|
return {
|
|
@@ -3328,100 +3313,100 @@ const Fe = (e) => {
|
|
|
3328
3313
|
}), { fetcher: ne } = Fe(o.config), de = x({
|
|
3329
3314
|
ctaPath: o.config.createRoute,
|
|
3330
3315
|
ctaText: void 0,
|
|
3331
|
-
message: `${
|
|
3332
|
-
title:
|
|
3316
|
+
message: `${s("redis.empty_state.description")}${o.config.additionMessageForEmptyState ? ` ${o.config.additionMessageForEmptyState}` : ""}`,
|
|
3317
|
+
title: s("redis.title")
|
|
3333
3318
|
}), ie = {
|
|
3334
|
-
name: { label:
|
|
3335
|
-
type: { label:
|
|
3336
|
-
tags: { label:
|
|
3337
|
-
plugins: { label:
|
|
3319
|
+
name: { label: s("list.table_headers.name"), searchable: !0, hidable: !1, sortable: !0 },
|
|
3320
|
+
type: { label: s("list.table_headers.type") },
|
|
3321
|
+
tags: { label: s("list.table_headers.tags") },
|
|
3322
|
+
plugins: { label: s("list.table_headers.plugins") }
|
|
3338
3323
|
}, he = (C) => ({
|
|
3339
|
-
label:
|
|
3324
|
+
label: s("actions.view"),
|
|
3340
3325
|
to: o.config.getViewRoute(C)
|
|
3341
3326
|
}), re = (C) => ({
|
|
3342
|
-
label:
|
|
3327
|
+
label: s("actions.edit"),
|
|
3343
3328
|
to: o.config.getEditRoute(C)
|
|
3344
3329
|
}), oe = async (C) => {
|
|
3345
3330
|
const { count: R } = await ne({ partialId: C.id });
|
|
3346
|
-
R > 0 ?
|
|
3331
|
+
R > 0 ? p.value = !0 : (l.value = C, u.value = !0);
|
|
3347
3332
|
}, we = () => {
|
|
3348
3333
|
W.value = "";
|
|
3349
3334
|
}, Te = async (C) => {
|
|
3350
|
-
var
|
|
3351
|
-
await ((
|
|
3335
|
+
var _;
|
|
3336
|
+
await ((_ = o.canRetrieve) == null ? void 0 : _.call(o, C)) && P.push(o.config.getViewRoute(C.id));
|
|
3352
3337
|
}, Re = () => {
|
|
3353
3338
|
u.value = !1;
|
|
3354
3339
|
}, ve = (C) => {
|
|
3355
3340
|
c.value = C, a.value = !0;
|
|
3356
3341
|
}, at = async () => {
|
|
3357
|
-
var C, R,
|
|
3342
|
+
var C, R, _;
|
|
3358
3343
|
if ((C = l.value) != null && C.id) {
|
|
3359
3344
|
y.value = !0;
|
|
3360
3345
|
try {
|
|
3361
3346
|
await O.delete(b(l.value.id)), y.value = !1, u.value = !1, ze(), n("delete:success", l.value);
|
|
3362
|
-
} catch (
|
|
3363
|
-
w.value = ((
|
|
3347
|
+
} catch (H) {
|
|
3348
|
+
w.value = ((_ = (R = H.response) == null ? void 0 : R.data) == null ? void 0 : _.message) || H.message || s("errors.delete"), n("error", H);
|
|
3364
3349
|
} finally {
|
|
3365
3350
|
y.value = !1;
|
|
3366
3351
|
}
|
|
3367
3352
|
}
|
|
3368
3353
|
}, ze = () => {
|
|
3369
|
-
|
|
3370
|
-
},
|
|
3354
|
+
m.value++;
|
|
3355
|
+
}, K = (C) => {
|
|
3371
3356
|
switch (Be(C)) {
|
|
3372
3357
|
case T.HOST_PORT_CE:
|
|
3373
|
-
return `${
|
|
3358
|
+
return `${s("form.options.type.host_port")}${s("form.options.type.suffix_open_source")}`;
|
|
3374
3359
|
case T.HOST_PORT_EE:
|
|
3375
|
-
return `${
|
|
3360
|
+
return `${s("form.options.type.host_port")}${s("form.options.type.suffix_enterprise")}`;
|
|
3376
3361
|
case T.SENTINEL:
|
|
3377
|
-
return `${
|
|
3362
|
+
return `${s("form.options.type.sentinel")}${s("form.options.type.suffix_enterprise")}`;
|
|
3378
3363
|
case T.CLUSTER:
|
|
3379
|
-
return `${
|
|
3364
|
+
return `${s("form.options.type.cluster")}${s("form.options.type.suffix_enterprise")}`;
|
|
3380
3365
|
}
|
|
3381
3366
|
}, v = () => {
|
|
3382
3367
|
P.push(o.config.createRoute);
|
|
3383
3368
|
}, lt = async (C, R) => {
|
|
3384
|
-
const
|
|
3385
|
-
if (!await R(
|
|
3369
|
+
const _ = C.id;
|
|
3370
|
+
if (!await R(_)) {
|
|
3386
3371
|
n("copy:error", {
|
|
3387
3372
|
entity: C,
|
|
3388
3373
|
field: "id",
|
|
3389
|
-
message:
|
|
3374
|
+
message: s("errors.copy")
|
|
3390
3375
|
});
|
|
3391
3376
|
return;
|
|
3392
3377
|
}
|
|
3393
3378
|
n("copy:success", {
|
|
3394
3379
|
entity: C,
|
|
3395
3380
|
field: "id",
|
|
3396
|
-
message:
|
|
3381
|
+
message: s("copy.success", { val: _ })
|
|
3397
3382
|
});
|
|
3398
3383
|
};
|
|
3399
3384
|
Ee(A, (C) => {
|
|
3400
|
-
var R,
|
|
3385
|
+
var R, _, H;
|
|
3401
3386
|
if (C.status === xi.Error) {
|
|
3402
|
-
|
|
3403
|
-
title:
|
|
3404
|
-
}, (
|
|
3387
|
+
f.value = {
|
|
3388
|
+
title: s("errors.general")
|
|
3389
|
+
}, (H = (_ = (R = C.error) == null ? void 0 : R.response) == null ? void 0 : _.data) != null && H.message && (f.value.message = C.error.response.data.message), n("error", C.error);
|
|
3405
3390
|
return;
|
|
3406
3391
|
}
|
|
3407
|
-
|
|
3392
|
+
f.value = null;
|
|
3408
3393
|
});
|
|
3409
3394
|
const Se = x(!1);
|
|
3410
3395
|
return Ee(o.canCreate, async (C) => {
|
|
3411
|
-
Se.value = await C, Se.value ? de.value.ctaText =
|
|
3396
|
+
Se.value = await C, Se.value ? de.value.ctaText = s("actions.create") : de.value.ctaText = void 0;
|
|
3412
3397
|
}, {
|
|
3413
3398
|
immediate: !0
|
|
3414
3399
|
}), (C, R) => {
|
|
3415
|
-
const
|
|
3416
|
-
return
|
|
3400
|
+
const _ = $("KButton"), H = $("KDropdownItem"), mi = $("KClipboardProvider"), _i = $("KEmptyState");
|
|
3401
|
+
return k(), J("div", Ed, [
|
|
3417
3402
|
g(r(Ai), {
|
|
3418
3403
|
"cache-identifier": e.cacheIdentifier,
|
|
3419
3404
|
"disable-sorting": E.value,
|
|
3420
3405
|
"empty-state-options": de.value,
|
|
3421
3406
|
"enable-entity-actions": "",
|
|
3422
|
-
"error-message":
|
|
3423
|
-
fetcher:
|
|
3424
|
-
"fetcher-cache-key":
|
|
3407
|
+
"error-message": f.value,
|
|
3408
|
+
fetcher: I,
|
|
3409
|
+
"fetcher-cache-key": m.value,
|
|
3425
3410
|
"pagination-type": "offset",
|
|
3426
3411
|
"preferences-storage-key": "kong-ui-entities-redis-configuration-list",
|
|
3427
3412
|
query: W.value,
|
|
@@ -3438,13 +3423,13 @@ const Fe = (e) => {
|
|
|
3438
3423
|
}, null, 8, ["modelValue", "config"])
|
|
3439
3424
|
]),
|
|
3440
3425
|
"toolbar-button": S(() => [
|
|
3441
|
-
(
|
|
3426
|
+
(k(), F(Ei, {
|
|
3442
3427
|
disabled: !e.useActionOutside,
|
|
3443
3428
|
to: "#kong-ui-app-page-header-action-button"
|
|
3444
3429
|
}, [
|
|
3445
3430
|
g(r(Ke), { "auth-function": e.canCreate }, {
|
|
3446
3431
|
default: S(() => [
|
|
3447
|
-
g(
|
|
3432
|
+
g(_, {
|
|
3448
3433
|
appearance: "primary",
|
|
3449
3434
|
"data-testid": "toolbar-add-redis-configuration",
|
|
3450
3435
|
size: "large",
|
|
@@ -3452,7 +3437,7 @@ const Fe = (e) => {
|
|
|
3452
3437
|
}, {
|
|
3453
3438
|
default: S(() => [
|
|
3454
3439
|
g(r(yt)),
|
|
3455
|
-
le(" " + U(r(
|
|
3440
|
+
le(" " + U(r(s)("actions.create")), 1)
|
|
3456
3441
|
]),
|
|
3457
3442
|
_: 1
|
|
3458
3443
|
}, 8, ["to"])
|
|
@@ -3462,16 +3447,16 @@ const Fe = (e) => {
|
|
|
3462
3447
|
], 8, ["disabled"]))
|
|
3463
3448
|
]),
|
|
3464
3449
|
name: S(({ rowValue: j }) => [
|
|
3465
|
-
|
|
3450
|
+
z("b", null, U(j ?? "-"), 1)
|
|
3466
3451
|
]),
|
|
3467
3452
|
type: S(({ row: j }) => [
|
|
3468
|
-
le(U(
|
|
3453
|
+
le(U(K(j)), 1)
|
|
3469
3454
|
]),
|
|
3470
3455
|
tags: S(({ rowValue: j }) => [
|
|
3471
3456
|
g(r(Pi), { tags: j }, null, 8, ["tags"])
|
|
3472
3457
|
]),
|
|
3473
3458
|
plugins: S(({ row: j }) => [
|
|
3474
|
-
g(
|
|
3459
|
+
g(pd, {
|
|
3475
3460
|
config: e.config,
|
|
3476
3461
|
"partial-id": j.id,
|
|
3477
3462
|
onClick: Si((st) => ve(j.id), ["stop"])
|
|
@@ -3480,12 +3465,12 @@ const Fe = (e) => {
|
|
|
3480
3465
|
actions: S(({ row: j }) => [
|
|
3481
3466
|
g(mi, null, {
|
|
3482
3467
|
default: S(({ copyToClipboard: st }) => [
|
|
3483
|
-
g(
|
|
3468
|
+
g(H, {
|
|
3484
3469
|
"data-testid": "action-entity-copy-id",
|
|
3485
|
-
onClick: (
|
|
3470
|
+
onClick: (jd) => lt(j, st)
|
|
3486
3471
|
}, {
|
|
3487
3472
|
default: S(() => [
|
|
3488
|
-
le(U(r(
|
|
3473
|
+
le(U(r(s)("actions.copy_id")), 1)
|
|
3489
3474
|
]),
|
|
3490
3475
|
_: 1
|
|
3491
3476
|
}, 8, ["onClick"])
|
|
@@ -3496,7 +3481,7 @@ const Fe = (e) => {
|
|
|
3496
3481
|
"auth-function": () => e.canRetrieve(j)
|
|
3497
3482
|
}, {
|
|
3498
3483
|
default: S(() => [
|
|
3499
|
-
g(
|
|
3484
|
+
g(H, {
|
|
3500
3485
|
"data-testid": "action-entity-view",
|
|
3501
3486
|
"has-divider": "",
|
|
3502
3487
|
item: he(j.id)
|
|
@@ -3508,7 +3493,7 @@ const Fe = (e) => {
|
|
|
3508
3493
|
"auth-function": () => e.canEdit(j)
|
|
3509
3494
|
}, {
|
|
3510
3495
|
default: S(() => [
|
|
3511
|
-
g(
|
|
3496
|
+
g(H, {
|
|
3512
3497
|
"data-testid": "action-entity-edit",
|
|
3513
3498
|
item: re(j.id)
|
|
3514
3499
|
}, null, 8, ["item"])
|
|
@@ -3519,14 +3504,14 @@ const Fe = (e) => {
|
|
|
3519
3504
|
"auth-function": () => e.canDelete(j)
|
|
3520
3505
|
}, {
|
|
3521
3506
|
default: S(() => [
|
|
3522
|
-
g(
|
|
3507
|
+
g(H, {
|
|
3523
3508
|
danger: "",
|
|
3524
3509
|
"data-testid": "action-entity-delete",
|
|
3525
3510
|
"has-divider": "",
|
|
3526
3511
|
onClick: (st) => oe(j)
|
|
3527
3512
|
}, {
|
|
3528
3513
|
default: S(() => [
|
|
3529
|
-
le(U(r(
|
|
3514
|
+
le(U(r(s)("actions.delete")), 1)
|
|
3530
3515
|
]),
|
|
3531
3516
|
_: 1
|
|
3532
3517
|
}, 8, ["onClick"])
|
|
@@ -3536,24 +3521,24 @@ const Fe = (e) => {
|
|
|
3536
3521
|
]),
|
|
3537
3522
|
"empty-state": S(() => [
|
|
3538
3523
|
g(_i, {
|
|
3539
|
-
"action-button-text": r(
|
|
3524
|
+
"action-button-text": r(s)("list.action"),
|
|
3540
3525
|
"action-button-visible": Se.value,
|
|
3541
3526
|
"data-testid": "redis-entity-empty-state",
|
|
3542
3527
|
features: [
|
|
3543
3528
|
{
|
|
3544
3529
|
key: "feature-1",
|
|
3545
|
-
title: r(
|
|
3546
|
-
description: r(
|
|
3530
|
+
title: r(s)("list.empty_state.feature_1.title"),
|
|
3531
|
+
description: r(s)("list.empty_state.feature_1.description")
|
|
3547
3532
|
},
|
|
3548
3533
|
{
|
|
3549
3534
|
key: "feature-2",
|
|
3550
|
-
title: r(
|
|
3551
|
-
description: r(
|
|
3535
|
+
title: r(s)("list.empty_state.feature_2.title"),
|
|
3536
|
+
description: r(s)("list.empty_state.feature_2.description")
|
|
3552
3537
|
}
|
|
3553
3538
|
],
|
|
3554
3539
|
"icon-background": "",
|
|
3555
|
-
message: r(
|
|
3556
|
-
title: r(
|
|
3540
|
+
message: r(s)("list.empty_state.description"),
|
|
3541
|
+
title: r(s)("redis.title"),
|
|
3557
3542
|
onClickAction: v
|
|
3558
3543
|
}, {
|
|
3559
3544
|
icon: S(() => [
|
|
@@ -3573,23 +3558,23 @@ const Fe = (e) => {
|
|
|
3573
3558
|
]),
|
|
3574
3559
|
_: 1
|
|
3575
3560
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher-cache-key", "query"]),
|
|
3576
|
-
g(
|
|
3577
|
-
visible:
|
|
3578
|
-
onClose: R[2] || (R[2] = (j) =>
|
|
3561
|
+
g(Sd, {
|
|
3562
|
+
visible: p.value,
|
|
3563
|
+
onClose: R[2] || (R[2] = (j) => p.value = !1)
|
|
3579
3564
|
}, null, 8, ["visible"]),
|
|
3580
3565
|
g(r($i), {
|
|
3581
3566
|
"action-pending": y.value,
|
|
3582
|
-
description: r(
|
|
3567
|
+
description: r(s)("delete.description"),
|
|
3583
3568
|
"entity-name": l.value && (l.value.name || l.value.id),
|
|
3584
3569
|
"entity-type": r(Vi).RedisConfiguration,
|
|
3585
3570
|
error: w.value,
|
|
3586
3571
|
"need-confirmation": !0,
|
|
3587
|
-
title: r(
|
|
3572
|
+
title: r(s)("delete.title"),
|
|
3588
3573
|
visible: u.value,
|
|
3589
3574
|
onCancel: Re,
|
|
3590
3575
|
onProceed: at
|
|
3591
3576
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
|
|
3592
|
-
g(
|
|
3577
|
+
g(Td, {
|
|
3593
3578
|
config: e.config,
|
|
3594
3579
|
"redis-configuration-id": c.value,
|
|
3595
3580
|
visible: a.value,
|
|
@@ -3600,7 +3585,7 @@ const Fe = (e) => {
|
|
|
3600
3585
|
]);
|
|
3601
3586
|
};
|
|
3602
3587
|
}
|
|
3603
|
-
}),
|
|
3588
|
+
}), Zd = /* @__PURE__ */ te(Id, [["__scopeId", "data-v-4e5be541"]]), kd = { class: "kong-ui-consumer-group-entity-config-card" }, Qd = /* @__PURE__ */ Q({
|
|
3604
3589
|
__name: "RedisConfigurationConfigCard",
|
|
3605
3590
|
props: {
|
|
3606
3591
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3627,10 +3612,10 @@ const Fe = (e) => {
|
|
|
3627
3612
|
},
|
|
3628
3613
|
emits: ["loading", "fetch:error", "fetch:success"],
|
|
3629
3614
|
setup(e, { emit: t }) {
|
|
3630
|
-
const n = e, o = t, { i18n: { t: i } } = ye.useI18n(), a =
|
|
3631
|
-
c.value = Be(
|
|
3632
|
-
}, l =
|
|
3633
|
-
const
|
|
3615
|
+
const n = e, o = t, { i18n: { t: i } } = ye.useI18n(), a = B(() => Ve.form[n.config.app].edit), c = x(Pe), f = (m) => {
|
|
3616
|
+
c.value = Be(m), o("fetch:success", m);
|
|
3617
|
+
}, l = B(() => {
|
|
3618
|
+
const m = c.value === T.HOST_PORT_CE ? i("form.options.type.suffix_open_source") : i("form.options.type.suffix_enterprise");
|
|
3634
3619
|
let E = "";
|
|
3635
3620
|
switch (c.value) {
|
|
3636
3621
|
case T.HOST_PORT_CE:
|
|
@@ -3646,35 +3631,35 @@ const Fe = (e) => {
|
|
|
3646
3631
|
E = i("form.options.type.sentinel");
|
|
3647
3632
|
break;
|
|
3648
3633
|
}
|
|
3649
|
-
return `${E}${
|
|
3650
|
-
}), u = (
|
|
3651
|
-
id:
|
|
3652
|
-
name:
|
|
3653
|
-
tags:
|
|
3654
|
-
created_at:
|
|
3655
|
-
updated_at:
|
|
3656
|
-
type:
|
|
3657
|
-
...
|
|
3658
|
-
...n.config.cloudAuthAvailable ? { cloud_authentication: Vt(
|
|
3659
|
-
}), y = (
|
|
3660
|
-
if (!
|
|
3634
|
+
return `${E}${m}`;
|
|
3635
|
+
}), u = (m) => ({
|
|
3636
|
+
id: m.id,
|
|
3637
|
+
name: m.name,
|
|
3638
|
+
tags: m.tags,
|
|
3639
|
+
created_at: m.created_at,
|
|
3640
|
+
updated_at: m.updated_at,
|
|
3641
|
+
type: m.type,
|
|
3642
|
+
...m.config,
|
|
3643
|
+
...n.config.cloudAuthAvailable ? { cloud_authentication: Vt(m.config.cloud_authentication) } : null
|
|
3644
|
+
}), y = (m, E) => {
|
|
3645
|
+
if (!m || Object.keys(m).length === 0)
|
|
3661
3646
|
return {};
|
|
3662
|
-
const { id:
|
|
3647
|
+
const { id: d, name: A, created_at: I, updated_at: s, type: O, tags: P, ...W } = m;
|
|
3663
3648
|
return E === "terraform" ? {
|
|
3664
3649
|
[O.replaceAll("-", "_")]: {
|
|
3665
|
-
id:
|
|
3650
|
+
id: d,
|
|
3666
3651
|
name: A,
|
|
3667
3652
|
tags: P,
|
|
3668
|
-
created_at:
|
|
3669
|
-
updated_at:
|
|
3653
|
+
created_at: I,
|
|
3654
|
+
updated_at: s,
|
|
3670
3655
|
config: W
|
|
3671
3656
|
}
|
|
3672
3657
|
} : {
|
|
3673
|
-
id:
|
|
3658
|
+
id: d,
|
|
3674
3659
|
name: A,
|
|
3675
3660
|
tags: P,
|
|
3676
|
-
created_at:
|
|
3677
|
-
updated_at:
|
|
3661
|
+
created_at: I,
|
|
3662
|
+
updated_at: s,
|
|
3678
3663
|
type: O,
|
|
3679
3664
|
config: W
|
|
3680
3665
|
};
|
|
@@ -3834,23 +3819,23 @@ const Fe = (e) => {
|
|
|
3834
3819
|
section: V.Basic,
|
|
3835
3820
|
label: i("form.sections.cloud_auth.title")
|
|
3836
3821
|
}
|
|
3837
|
-
},
|
|
3838
|
-
const E = {},
|
|
3839
|
-
for (const A of
|
|
3840
|
-
|
|
3822
|
+
}, p = (m) => {
|
|
3823
|
+
const E = {}, d = Object.keys(w);
|
|
3824
|
+
for (const A of d)
|
|
3825
|
+
m.includes(A) ? E[A] = {
|
|
3841
3826
|
...w[A],
|
|
3842
|
-
order:
|
|
3827
|
+
order: m.indexOf(A) + 1
|
|
3843
3828
|
} : E[A] = {
|
|
3844
3829
|
...w[A],
|
|
3845
3830
|
hidden: !0
|
|
3846
3831
|
};
|
|
3847
3832
|
return E;
|
|
3848
|
-
}, b =
|
|
3849
|
-
const
|
|
3833
|
+
}, b = B(() => {
|
|
3834
|
+
const m = ["id", "name", "tags", "type", "updated_at", "created_at"];
|
|
3850
3835
|
switch (c.value) {
|
|
3851
3836
|
case T.HOST_PORT_CE:
|
|
3852
|
-
return
|
|
3853
|
-
...
|
|
3837
|
+
return p([
|
|
3838
|
+
...m,
|
|
3854
3839
|
"host",
|
|
3855
3840
|
"port",
|
|
3856
3841
|
"timeout",
|
|
@@ -3863,8 +3848,8 @@ const Fe = (e) => {
|
|
|
3863
3848
|
"cloud_authentication"
|
|
3864
3849
|
]);
|
|
3865
3850
|
case T.HOST_PORT_EE:
|
|
3866
|
-
return
|
|
3867
|
-
...
|
|
3851
|
+
return p([
|
|
3852
|
+
...m,
|
|
3868
3853
|
"host",
|
|
3869
3854
|
"port",
|
|
3870
3855
|
"connection_is_proxied",
|
|
@@ -3882,8 +3867,8 @@ const Fe = (e) => {
|
|
|
3882
3867
|
"cloud_authentication"
|
|
3883
3868
|
]);
|
|
3884
3869
|
case T.CLUSTER:
|
|
3885
|
-
return
|
|
3886
|
-
...
|
|
3870
|
+
return p([
|
|
3871
|
+
...m,
|
|
3887
3872
|
"cluster_nodes",
|
|
3888
3873
|
"cluster_max_redirections",
|
|
3889
3874
|
"database",
|
|
@@ -3900,8 +3885,8 @@ const Fe = (e) => {
|
|
|
3900
3885
|
"cloud_authentication"
|
|
3901
3886
|
]);
|
|
3902
3887
|
case T.SENTINEL:
|
|
3903
|
-
return
|
|
3904
|
-
...
|
|
3888
|
+
return p([
|
|
3889
|
+
...m,
|
|
3905
3890
|
"sentinel_master",
|
|
3906
3891
|
"sentinel_role",
|
|
3907
3892
|
"sentinel_nodes",
|
|
@@ -3923,7 +3908,7 @@ const Fe = (e) => {
|
|
|
3923
3908
|
throw new Error("Invalid Redis type");
|
|
3924
3909
|
}
|
|
3925
3910
|
});
|
|
3926
|
-
return (
|
|
3911
|
+
return (m, E) => (k(), J("div", kd, [
|
|
3927
3912
|
g(r(Mi), {
|
|
3928
3913
|
"code-block-record-formatter": y,
|
|
3929
3914
|
config: e.config,
|
|
@@ -3933,18 +3918,18 @@ const Fe = (e) => {
|
|
|
3933
3918
|
"fetch-url": a.value,
|
|
3934
3919
|
"hide-title": e.hideTitle,
|
|
3935
3920
|
"record-resolver": u,
|
|
3936
|
-
"onFetch:error": E[0] || (E[0] = (
|
|
3937
|
-
"onFetch:success":
|
|
3938
|
-
onLoading: E[1] || (E[1] = (
|
|
3921
|
+
"onFetch:error": E[0] || (E[0] = (d) => m.$emit("fetch:error", d)),
|
|
3922
|
+
"onFetch:success": f,
|
|
3923
|
+
onLoading: E[1] || (E[1] = (d) => m.$emit("loading", d))
|
|
3939
3924
|
}, {
|
|
3940
3925
|
type: S(() => [
|
|
3941
|
-
|
|
3926
|
+
z("div", null, U(l.value), 1)
|
|
3942
3927
|
]),
|
|
3943
3928
|
_: 1
|
|
3944
3929
|
}, 8, ["config", "config-card-doc", "config-schema", "entity-type", "fetch-url", "hide-title"])
|
|
3945
3930
|
]));
|
|
3946
3931
|
}
|
|
3947
|
-
}),
|
|
3932
|
+
}), Od = "12px";
|
|
3948
3933
|
function pi(e) {
|
|
3949
3934
|
const {
|
|
3950
3935
|
redisType: t = "redis-ce"
|
|
@@ -3954,14 +3939,14 @@ function pi(e) {
|
|
|
3954
3939
|
const {
|
|
3955
3940
|
debouncedQueryChange: a,
|
|
3956
3941
|
loading: c,
|
|
3957
|
-
error:
|
|
3942
|
+
error: f,
|
|
3958
3943
|
loadItems: l,
|
|
3959
3944
|
results: u
|
|
3960
|
-
} = Di(o,
|
|
3945
|
+
} = Di(o, Ve.list[o.app], n, {
|
|
3961
3946
|
fetchedItemsKey: "data",
|
|
3962
3947
|
searchKeys: ["id", "name"]
|
|
3963
|
-
}), y = (
|
|
3964
|
-
switch (
|
|
3948
|
+
}), y = (p) => {
|
|
3949
|
+
switch (p) {
|
|
3965
3950
|
case T.CLUSTER:
|
|
3966
3951
|
return i("form.options.type.cluster");
|
|
3967
3952
|
case T.HOST_PORT_CE:
|
|
@@ -3971,18 +3956,18 @@ function pi(e) {
|
|
|
3971
3956
|
case T.HOST_PORT_EE:
|
|
3972
3957
|
return `${i("form.options.type.host_port")} (${i("form.options.type.enterprise")})`;
|
|
3973
3958
|
}
|
|
3974
|
-
}, w =
|
|
3959
|
+
}, w = B(() => (u.value || []).filter((b) => b.type === "redis-ce" || b.type === "redis-ee").map((b) => ({ label: b.id, name: b.name, value: b.id, type: b.type, tag: y(Be(b)) })).filter((b) => b.type === t));
|
|
3975
3960
|
return _n(() => {
|
|
3976
3961
|
l();
|
|
3977
3962
|
}), {
|
|
3978
3963
|
items: w,
|
|
3979
3964
|
loading: c,
|
|
3980
3965
|
onQueryChange: a,
|
|
3981
|
-
error:
|
|
3966
|
+
error: f,
|
|
3982
3967
|
loadItems: l
|
|
3983
3968
|
};
|
|
3984
3969
|
}
|
|
3985
|
-
const
|
|
3970
|
+
const Rd = ["id"], xd = /* @__PURE__ */ Q({
|
|
3986
3971
|
__name: "RedisConfigurationFormModal",
|
|
3987
3972
|
props: {
|
|
3988
3973
|
visible: { type: Boolean },
|
|
@@ -3990,10 +3975,10 @@ const xd = ["id"], Ad = /* @__PURE__ */ Q({
|
|
|
3990
3975
|
},
|
|
3991
3976
|
emits: ["toast", "modal-close", "created"],
|
|
3992
3977
|
setup(e, { emit: t }) {
|
|
3993
|
-
const n = t, { i18n: { t: o } } = ot(), i = bn(Cn), a =
|
|
3978
|
+
const n = t, { i18n: { t: o } } = ot(), i = bn(Cn), a = B(() => ({
|
|
3994
3979
|
...i,
|
|
3995
3980
|
cancelRoute: void 0
|
|
3996
|
-
})), { getMessageFromError: c } = yn(),
|
|
3981
|
+
})), { getMessageFromError: c } = yn(), f = Ci(), l = B(() => {
|
|
3997
3982
|
switch (e.partialType) {
|
|
3998
3983
|
case Z.REDIS_CE:
|
|
3999
3984
|
return Z.REDIS_EE;
|
|
@@ -4002,16 +3987,16 @@ const xd = ["id"], Ad = /* @__PURE__ */ Q({
|
|
|
4002
3987
|
default:
|
|
4003
3988
|
return;
|
|
4004
3989
|
}
|
|
4005
|
-
}), u = x(!1), y = x(), w = (
|
|
3990
|
+
}), u = x(!1), y = x(), w = (m) => {
|
|
4006
3991
|
n("toast", {
|
|
4007
|
-
message: c(
|
|
3992
|
+
message: c(m),
|
|
4008
3993
|
appearance: "danger"
|
|
4009
3994
|
});
|
|
4010
|
-
},
|
|
3995
|
+
}, p = (m) => {
|
|
4011
3996
|
n("toast", {
|
|
4012
3997
|
message: o("form.partial_created_success_message"),
|
|
4013
3998
|
appearance: "success"
|
|
4014
|
-
}), b(), n("created",
|
|
3999
|
+
}), b(), n("created", m);
|
|
4015
4000
|
}, b = () => {
|
|
4016
4001
|
y.value = void 0, n("modal-close"), Dt(() => {
|
|
4017
4002
|
u.value = !1;
|
|
@@ -4019,14 +4004,14 @@ const xd = ["id"], Ad = /* @__PURE__ */ Q({
|
|
|
4019
4004
|
};
|
|
4020
4005
|
return Ee(
|
|
4021
4006
|
() => e.visible,
|
|
4022
|
-
(
|
|
4023
|
-
|
|
4024
|
-
y.value = `#redis-modal-footer-${
|
|
4007
|
+
(m) => {
|
|
4008
|
+
m && (u.value = !0, Dt(() => {
|
|
4009
|
+
y.value = `#redis-modal-footer-${f}`;
|
|
4025
4010
|
}));
|
|
4026
4011
|
}
|
|
4027
|
-
), (
|
|
4028
|
-
const
|
|
4029
|
-
return
|
|
4012
|
+
), (m, E) => {
|
|
4013
|
+
const d = $("KModal");
|
|
4014
|
+
return k(), F(d, {
|
|
4030
4015
|
class: "plugin-redis-partial-form",
|
|
4031
4016
|
"data-testid": "redis-partial-form-modal",
|
|
4032
4017
|
"full-screen": "",
|
|
@@ -4035,33 +4020,33 @@ const xd = ["id"], Ad = /* @__PURE__ */ Q({
|
|
|
4035
4020
|
onCancel: b
|
|
4036
4021
|
}, {
|
|
4037
4022
|
footer: S(() => [
|
|
4038
|
-
|
|
4039
|
-
id: `redis-modal-footer-${r(
|
|
4023
|
+
z("div", {
|
|
4024
|
+
id: `redis-modal-footer-${r(f)}`,
|
|
4040
4025
|
class: "redis-modal-footer"
|
|
4041
|
-
}, null, 8,
|
|
4026
|
+
}, null, 8, Rd)
|
|
4042
4027
|
]),
|
|
4043
4028
|
default: S(() => [
|
|
4044
|
-
g(
|
|
4029
|
+
g(ud, {
|
|
4045
4030
|
"action-teleport-target": y.value,
|
|
4046
4031
|
config: a.value,
|
|
4047
4032
|
"disabled-partial-type": l.value,
|
|
4048
4033
|
"slidout-top-offset": 0,
|
|
4049
4034
|
onCancel: b,
|
|
4050
4035
|
onError: w,
|
|
4051
|
-
onUpdate:
|
|
4036
|
+
onUpdate: p
|
|
4052
4037
|
}, null, 8, ["action-teleport-target", "config", "disabled-partial-type"])
|
|
4053
4038
|
]),
|
|
4054
4039
|
_: 1
|
|
4055
4040
|
}, 8, ["title", "visible"]);
|
|
4056
4041
|
};
|
|
4057
4042
|
}
|
|
4058
|
-
}),
|
|
4043
|
+
}), Ad = /* @__PURE__ */ te(xd, [["__scopeId", "data-v-280b73f4"]]), Pd = { class: "selected-redis-config" }, $d = ["data-testid"], Vd = {
|
|
4059
4044
|
class: "select-item-name",
|
|
4060
4045
|
"data-testid": "selected-redis-config"
|
|
4061
|
-
},
|
|
4046
|
+
}, Md = {
|
|
4062
4047
|
class: "empty-redis-config",
|
|
4063
4048
|
"data-testid": "empty-redis-config"
|
|
4064
|
-
},
|
|
4049
|
+
}, Dd = /* @__PURE__ */ Q({
|
|
4065
4050
|
inheritAttrs: !1,
|
|
4066
4051
|
__name: "RedisConfigurationSelector",
|
|
4067
4052
|
props: {
|
|
@@ -4078,30 +4063,30 @@ const xd = ["id"], Ad = /* @__PURE__ */ Q({
|
|
|
4078
4063
|
items: i,
|
|
4079
4064
|
loading: a,
|
|
4080
4065
|
onQueryChange: c,
|
|
4081
|
-
error:
|
|
4066
|
+
error: f,
|
|
4082
4067
|
loadItems: l
|
|
4083
4068
|
} = pi({
|
|
4084
4069
|
redisType: e.redisType
|
|
4085
|
-
}), u = x(!1), y = (
|
|
4086
|
-
const E =
|
|
4087
|
-
n("update:modelValue", E), n("change",
|
|
4070
|
+
}), u = x(!1), y = (m) => {
|
|
4071
|
+
const E = m == null ? void 0 : m.value;
|
|
4072
|
+
n("update:modelValue", E), n("change", m);
|
|
4088
4073
|
}, w = () => {
|
|
4089
4074
|
u.value = !0;
|
|
4090
|
-
},
|
|
4075
|
+
}, p = () => {
|
|
4091
4076
|
u.value = !1, n("modal-close");
|
|
4092
|
-
}, b = (
|
|
4077
|
+
}, b = (m) => {
|
|
4093
4078
|
u.value = !1, l(), y({
|
|
4094
|
-
name:
|
|
4095
|
-
value:
|
|
4096
|
-
label:
|
|
4079
|
+
name: m.name,
|
|
4080
|
+
value: m.id,
|
|
4081
|
+
label: m.name
|
|
4097
4082
|
});
|
|
4098
4083
|
};
|
|
4099
|
-
return Ee(
|
|
4100
|
-
n("error-change",
|
|
4101
|
-
}), (
|
|
4102
|
-
const
|
|
4103
|
-
return
|
|
4104
|
-
g(A,
|
|
4084
|
+
return Ee(f, (m) => {
|
|
4085
|
+
n("error-change", m ? new Error(String(m)) : null);
|
|
4086
|
+
}), (m, E) => {
|
|
4087
|
+
const d = $("KBadge"), A = $("KSelect");
|
|
4088
|
+
return k(), J(fe, null, [
|
|
4089
|
+
g(A, Ii({
|
|
4105
4090
|
class: "redis-config-select-trigger",
|
|
4106
4091
|
"enable-filtering": "",
|
|
4107
4092
|
"filter-function": () => !0,
|
|
@@ -4109,77 +4094,77 @@ const xd = ["id"], Ad = /* @__PURE__ */ Q({
|
|
|
4109
4094
|
loading: r(a),
|
|
4110
4095
|
"model-value": e.modelValue,
|
|
4111
4096
|
placeholder: e.placeholder || r(o)("selector.placeholder")
|
|
4112
|
-
},
|
|
4097
|
+
}, m.$attrs, {
|
|
4113
4098
|
onChange: y,
|
|
4114
4099
|
onQueryChange: r(c)
|
|
4115
4100
|
}), gn({
|
|
4116
|
-
"selected-item-template": S(({ item:
|
|
4117
|
-
|
|
4101
|
+
"selected-item-template": S(({ item: I }) => [
|
|
4102
|
+
z("div", Pd, U(I.name), 1)
|
|
4118
4103
|
]),
|
|
4119
|
-
"item-template": S(({ item:
|
|
4120
|
-
|
|
4104
|
+
"item-template": S(({ item: I }) => [
|
|
4105
|
+
z("div", {
|
|
4121
4106
|
class: "plugin-form-redis-configuration-dropdown-item",
|
|
4122
|
-
"data-testid": `redis-configuration-dropdown-item-${
|
|
4107
|
+
"data-testid": `redis-configuration-dropdown-item-${I.name}`
|
|
4123
4108
|
}, [
|
|
4124
|
-
|
|
4125
|
-
g(
|
|
4109
|
+
z("span", Vd, U(I.name), 1),
|
|
4110
|
+
g(d, {
|
|
4126
4111
|
appearance: "info",
|
|
4127
4112
|
class: "select-item-label"
|
|
4128
4113
|
}, {
|
|
4129
4114
|
default: S(() => [
|
|
4130
|
-
le(U(
|
|
4115
|
+
le(U(I.tag), 1)
|
|
4131
4116
|
]),
|
|
4132
4117
|
_: 2
|
|
4133
4118
|
}, 1024)
|
|
4134
|
-
], 8,
|
|
4119
|
+
], 8, $d)
|
|
4135
4120
|
]),
|
|
4136
4121
|
empty: S(() => [
|
|
4137
|
-
|
|
4122
|
+
z("div", Md, U(e.emptyStateText || r(o)("selector.empty_state")), 1)
|
|
4138
4123
|
]),
|
|
4139
4124
|
_: 2
|
|
4140
4125
|
}, [
|
|
4141
4126
|
e.showCreateButton ? {
|
|
4142
4127
|
name: "dropdown-footer-text",
|
|
4143
4128
|
fn: S(() => [
|
|
4144
|
-
|
|
4129
|
+
z("div", {
|
|
4145
4130
|
class: "new-redis-config-area",
|
|
4146
4131
|
"data-testid": "new-redis-config-area",
|
|
4147
4132
|
onClick: w
|
|
4148
4133
|
}, [
|
|
4149
|
-
g(r(yt), { size: r(
|
|
4150
|
-
|
|
4134
|
+
g(r(yt), { size: r(Od) }, null, 8, ["size"]),
|
|
4135
|
+
z("span", null, U(e.createButtonText || r(o)("selector.create_new")), 1)
|
|
4151
4136
|
])
|
|
4152
4137
|
]),
|
|
4153
4138
|
key: "0"
|
|
4154
4139
|
} : void 0
|
|
4155
4140
|
]), 1040, ["items", "loading", "model-value", "placeholder", "onQueryChange"]),
|
|
4156
|
-
g(
|
|
4141
|
+
g(Ad, {
|
|
4157
4142
|
"partial-type": e.redisType,
|
|
4158
4143
|
visible: u.value,
|
|
4159
4144
|
onCreated: b,
|
|
4160
|
-
onModalClose:
|
|
4161
|
-
onToast: E[0] || (E[0] = (
|
|
4145
|
+
onModalClose: p,
|
|
4146
|
+
onToast: E[0] || (E[0] = (I) => n("toast", I))
|
|
4162
4147
|
}, null, 8, ["partial-type", "visible"])
|
|
4163
4148
|
], 64);
|
|
4164
4149
|
};
|
|
4165
4150
|
}
|
|
4166
|
-
}),
|
|
4151
|
+
}), Yd = /* @__PURE__ */ te(Dd, [["__scopeId", "data-v-3c6e44d3"]]), Xd = {
|
|
4167
4152
|
useLinkedPlugins: fi,
|
|
4168
4153
|
useLinkedPluginsFetcher: Fe,
|
|
4169
4154
|
useRedisConfigurationSelector: pi
|
|
4170
4155
|
};
|
|
4171
4156
|
export {
|
|
4172
4157
|
q as AuthProvider,
|
|
4173
|
-
|
|
4174
|
-
|
|
4158
|
+
Sd as DeleteWarningModal,
|
|
4159
|
+
vd as LinkedPlugins,
|
|
4175
4160
|
Z as PartialType,
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4161
|
+
Qd as RedisConfigurationConfigCard,
|
|
4162
|
+
ud as RedisConfigurationForm,
|
|
4163
|
+
Ad as RedisConfigurationFormModal,
|
|
4164
|
+
Zd as RedisConfigurationList,
|
|
4165
|
+
Yd as RedisConfigurationSelector,
|
|
4181
4166
|
T as RedisType,
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4167
|
+
Xd as composables,
|
|
4168
|
+
Gd as constants,
|
|
4169
|
+
Jd as helpers
|
|
4185
4170
|
};
|