@kong-ui-public/entities-redis-configurations 1.8.8-pr.2738.702201f81.0 → 1.8.8-pr.2741.0ed3bef0f.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as z, reactive as mn, ref as x, watch as Ce, defineComponent as Y, resolveComponent as $, createElementBlock as J, openBlock as I, createVNode as g, withCtx as S, renderSlot as gi, unref as
|
|
1
|
+
import { computed as z, reactive as mn, ref as x, watch as Ce, defineComponent as Y, resolveComponent as $, createElementBlock as J, openBlock as I, createVNode as g, withCtx as S, renderSlot as gi, unref as r, mergeModels as Et, useModel as Ct, createElementVNode as K, createTextVNode as le, toDisplayString as B, Fragment as fe, renderList as tt, createBlock as N, createCommentVNode as Z, 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 ki } 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
4
|
import { useAxios as kt, useErrors as yn, EntityBaseFormType as dt, EntityBaseForm as Ii, 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";
|
|
@@ -8,7 +8,7 @@ import { TrashIcon as ji, AddCircleIcon as Sn, AddIcon as yt, RefreshIcon as Li,
|
|
|
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
|
|
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 || {}), Q = /* @__PURE__ */ ((e) => (e.REDIS_CE = "redis-ce", e.REDIS_EE = "redis-ee", e))(Q || {}), q = /* @__PURE__ */ ((e) => (e.AWS = "aws", e.GCP = "gcp", e.AZURE = "azure", e))(q || {}), kn = typeof global == "object" && global && global.Object === Object && global, zi = typeof self == "object" && self && self.Object === Object && self, se = kn || zi || Function("return this")(), ee = se.Symbol, In = Object.prototype, Ki = In.hasOwnProperty, Hi = In.toString, De = ee ? ee.toStringTag : void 0;
|
|
12
12
|
function Wi(e) {
|
|
13
13
|
var t = Ki.call(e, De), n = e[De];
|
|
14
14
|
try {
|
|
@@ -16,8 +16,8 @@ function Wi(e) {
|
|
|
16
16
|
var o = !0;
|
|
17
17
|
} catch {
|
|
18
18
|
}
|
|
19
|
-
var
|
|
20
|
-
return o && (t ? e[De] = n : delete e[De]),
|
|
19
|
+
var i = Hi.call(e);
|
|
20
|
+
return o && (t ? e[De] = n : delete e[De]), i;
|
|
21
21
|
}
|
|
22
22
|
var qi = Object.prototype, Gi = qi.toString;
|
|
23
23
|
function Ji(e) {
|
|
@@ -35,9 +35,9 @@ function It(e) {
|
|
|
35
35
|
return typeof e == "symbol" || me(e) && Ie(e) == Yi;
|
|
36
36
|
}
|
|
37
37
|
function On(e, t) {
|
|
38
|
-
for (var n = -1, o = e == null ? 0 : e.length,
|
|
39
|
-
|
|
40
|
-
return
|
|
38
|
+
for (var n = -1, o = e == null ? 0 : e.length, i = Array(o); ++n < o; )
|
|
39
|
+
i[n] = t(e[n], n, e);
|
|
40
|
+
return i;
|
|
41
41
|
}
|
|
42
42
|
var _e = Array.isArray, Lt = ee ? ee.prototype : void 0, Ut = Lt ? Lt.toString : void 0;
|
|
43
43
|
function Rn(e) {
|
|
@@ -119,8 +119,8 @@ var br = 800, yr = 16, vr = Date.now;
|
|
|
119
119
|
function hr(e) {
|
|
120
120
|
var t = 0, n = 0;
|
|
121
121
|
return function() {
|
|
122
|
-
var o = vr(),
|
|
123
|
-
if (n = o,
|
|
122
|
+
var o = vr(), i = yr - (o - n);
|
|
123
|
+
if (n = o, i > 0) {
|
|
124
124
|
if (++t >= br)
|
|
125
125
|
return arguments[0];
|
|
126
126
|
} else
|
|
@@ -174,22 +174,22 @@ function Pn(e, t, n) {
|
|
|
174
174
|
(!(Rr.call(e, t) && Ot(o, n)) || n === void 0 && !(t in e)) && An(e, t, n);
|
|
175
175
|
}
|
|
176
176
|
function xr(e, t, n, o) {
|
|
177
|
-
var
|
|
177
|
+
var i = !n;
|
|
178
178
|
n || (n = {});
|
|
179
179
|
for (var a = -1, c = t.length; ++a < c; ) {
|
|
180
180
|
var p = t[a], l = void 0;
|
|
181
|
-
l === void 0 && (l = e[p]),
|
|
181
|
+
l === void 0 && (l = e[p]), i ? An(n, p, l) : Pn(n, p, l);
|
|
182
182
|
}
|
|
183
183
|
return n;
|
|
184
184
|
}
|
|
185
185
|
var Bt = Math.max;
|
|
186
186
|
function Ar(e, t, n) {
|
|
187
187
|
return t = Bt(t === void 0 ? e.length - 1 : t, 0), function() {
|
|
188
|
-
for (var o = arguments,
|
|
189
|
-
c[
|
|
190
|
-
|
|
191
|
-
for (var p = Array(t + 1); ++
|
|
192
|
-
p[
|
|
188
|
+
for (var o = arguments, i = -1, a = Bt(o.length - t, 0), c = Array(a); ++i < a; )
|
|
189
|
+
c[i] = o[t + i];
|
|
190
|
+
i = -1;
|
|
191
|
+
for (var p = Array(t + 1); ++i < t; )
|
|
192
|
+
p[i] = o[i];
|
|
193
193
|
return p[t] = n(c), gr(e, this, p);
|
|
194
194
|
};
|
|
195
195
|
}
|
|
@@ -241,11 +241,11 @@ var Un = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
241
241
|
}
|
|
242
242
|
}(), Ht = Ve && Ve.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),
|
|
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, p = c ? Vr(e.length, String) : [], l = p.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
250
|
Ir(u, l))) && p.push(u);
|
|
251
251
|
return p;
|
|
@@ -419,11 +419,11 @@ function xt(e, t) {
|
|
|
419
419
|
if (typeof e != "function" || t != null && typeof t != "function")
|
|
420
420
|
throw new TypeError(Xo);
|
|
421
421
|
var n = function() {
|
|
422
|
-
var o = arguments,
|
|
423
|
-
if (a.has(
|
|
424
|
-
return a.get(
|
|
422
|
+
var o = arguments, i = t ? t.apply(this, o) : o[0], a = n.cache;
|
|
423
|
+
if (a.has(i))
|
|
424
|
+
return a.get(i);
|
|
425
425
|
var c = e.apply(this, o);
|
|
426
|
-
return n.cache = a.set(
|
|
426
|
+
return n.cache = a.set(i, c) || a, c;
|
|
427
427
|
};
|
|
428
428
|
return n.cache = new (xt.Cache || be)(), n;
|
|
429
429
|
}
|
|
@@ -437,8 +437,8 @@ function ta(e) {
|
|
|
437
437
|
}
|
|
438
438
|
var na = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ia = /\\(\\)?/g, ra = ta(function(e) {
|
|
439
439
|
var t = [];
|
|
440
|
-
return e.charCodeAt(0) === 46 && t.push(""), e.replace(na, function(n, o,
|
|
441
|
-
t.push(
|
|
440
|
+
return e.charCodeAt(0) === 46 && t.push(""), e.replace(na, function(n, o, i, a) {
|
|
441
|
+
t.push(i ? a.replace(ia, "$1") : o || n);
|
|
442
442
|
}), t;
|
|
443
443
|
});
|
|
444
444
|
function oa(e) {
|
|
@@ -460,21 +460,21 @@ function aa(e, t) {
|
|
|
460
460
|
return n && n == o ? e : void 0;
|
|
461
461
|
}
|
|
462
462
|
function Pt(e, t) {
|
|
463
|
-
for (var n = -1, o = t.length,
|
|
464
|
-
e[
|
|
463
|
+
for (var n = -1, o = t.length, i = e.length; ++n < o; )
|
|
464
|
+
e[i + n] = t[n];
|
|
465
465
|
return e;
|
|
466
466
|
}
|
|
467
467
|
var Wt = ee ? ee.isConcatSpreadable : void 0;
|
|
468
468
|
function la(e) {
|
|
469
469
|
return _e(e) || jn(e) || !!(Wt && e && e[Wt]);
|
|
470
470
|
}
|
|
471
|
-
function sa(e, t, n, o,
|
|
471
|
+
function sa(e, t, n, o, i) {
|
|
472
472
|
var a = -1, c = e.length;
|
|
473
|
-
for (n || (n = la),
|
|
473
|
+
for (n || (n = la), i || (i = []); ++a < c; ) {
|
|
474
474
|
var p = e[a];
|
|
475
|
-
n(p) ? Pt(
|
|
475
|
+
n(p) ? Pt(i, p) : i[i.length] = p;
|
|
476
476
|
}
|
|
477
|
-
return
|
|
477
|
+
return i;
|
|
478
478
|
}
|
|
479
479
|
function da(e) {
|
|
480
480
|
var t = e == null ? 0 : e.length;
|
|
@@ -494,9 +494,9 @@ function ga(e) {
|
|
|
494
494
|
return typeof n == "function" && n instanceof n && Hn.call(n) == _a;
|
|
495
495
|
}
|
|
496
496
|
function ba(e, t, n) {
|
|
497
|
-
var o = -1,
|
|
498
|
-
t < 0 && (t = -t >
|
|
499
|
-
for (var a = Array(
|
|
497
|
+
var o = -1, i = e.length;
|
|
498
|
+
t < 0 && (t = -t > i ? 0 : i + t), n = n > i ? i : n, n < 0 && (n += i), i = t > n ? 0 : n - t >>> 0, t >>>= 0;
|
|
499
|
+
for (var a = Array(i); ++o < i; )
|
|
500
500
|
a[o] = e[o + t];
|
|
501
501
|
return a;
|
|
502
502
|
}
|
|
@@ -539,9 +539,9 @@ function Ca(e, t) {
|
|
|
539
539
|
return e.slice();
|
|
540
540
|
}
|
|
541
541
|
function ka(e, t) {
|
|
542
|
-
for (var n = -1, o = e == null ? 0 : e.length,
|
|
542
|
+
for (var n = -1, o = e == null ? 0 : e.length, i = 0, a = []; ++n < o; ) {
|
|
543
543
|
var c = e[n];
|
|
544
|
-
t(c, n, e) && (a[
|
|
544
|
+
t(c, n, e) && (a[i++] = c);
|
|
545
545
|
}
|
|
546
546
|
return a;
|
|
547
547
|
}
|
|
@@ -657,9 +657,9 @@ function _l(e) {
|
|
|
657
657
|
var an = Ve && Ve.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]", kl = "[object String]", Il = "[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
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[kl] = D[Il] = D[Dl] = D[jl] = D[Ll] = D[Ul] = !0;
|
|
659
659
|
D[hl] = D[Yn] = D[Ol] = !1;
|
|
660
|
-
function Ge(e, t, n, o,
|
|
660
|
+
function Ge(e, t, n, o, i, a) {
|
|
661
661
|
var c;
|
|
662
|
-
if (n && (c =
|
|
662
|
+
if (n && (c = i ? n(e, o, i, a) : n(e)), c !== void 0)
|
|
663
663
|
return c;
|
|
664
664
|
if (!nt(e))
|
|
665
665
|
return e;
|
|
@@ -670,11 +670,11 @@ function Ge(e, t, n, o, r, a) {
|
|
|
670
670
|
var l = ae(e), u = l == Yn || l == wl;
|
|
671
671
|
if (Ze(e))
|
|
672
672
|
return Ca(e);
|
|
673
|
-
if (l == Xn || l == Qn || u && !
|
|
673
|
+
if (l == Xn || l == Qn || u && !i)
|
|
674
674
|
c = {};
|
|
675
675
|
else {
|
|
676
676
|
if (!D[l])
|
|
677
|
-
return
|
|
677
|
+
return i ? e : {};
|
|
678
678
|
c = ul(e, l);
|
|
679
679
|
}
|
|
680
680
|
}
|
|
@@ -687,7 +687,7 @@ function Ge(e, t, n, o, r, a) {
|
|
|
687
687
|
}) : pl(e) && e.forEach(function(b, _) {
|
|
688
688
|
c.set(_, Ge(b, t, n, _, e, a));
|
|
689
689
|
});
|
|
690
|
-
var
|
|
690
|
+
var w = Zn, m = p ? void 0 : w(e);
|
|
691
691
|
return Er(m || e, function(b, _) {
|
|
692
692
|
m && (_ = b, b = e[_]), Pn(c, _, Ge(b, t, n, _, e, a));
|
|
693
693
|
}), c;
|
|
@@ -716,18 +716,18 @@ function Kl(e, t) {
|
|
|
716
716
|
return e.has(t);
|
|
717
717
|
}
|
|
718
718
|
var Hl = 1, Wl = 2;
|
|
719
|
-
function ei(e, t, n, o,
|
|
719
|
+
function ei(e, t, n, o, i, a) {
|
|
720
720
|
var c = n & Hl, p = e.length, l = t.length;
|
|
721
721
|
if (p != l && !(c && l > p))
|
|
722
722
|
return !1;
|
|
723
723
|
var u = a.get(e), v = a.get(t);
|
|
724
724
|
if (u && v)
|
|
725
725
|
return u == t && v == e;
|
|
726
|
-
var
|
|
727
|
-
for (a.set(e, t), a.set(t, e); ++
|
|
728
|
-
var _ = e[
|
|
726
|
+
var w = -1, m = !0, b = n & Wl ? new Ye() : void 0;
|
|
727
|
+
for (a.set(e, t), a.set(t, e); ++w < p; ) {
|
|
728
|
+
var _ = e[w], E = t[w];
|
|
729
729
|
if (o)
|
|
730
|
-
var s = c ? o(E, _,
|
|
730
|
+
var s = c ? o(E, _, w, t, e, a) : o(_, E, w, e, t, a);
|
|
731
731
|
if (s !== void 0) {
|
|
732
732
|
if (s)
|
|
733
733
|
continue;
|
|
@@ -736,13 +736,13 @@ function ei(e, t, n, o, r, a) {
|
|
|
736
736
|
}
|
|
737
737
|
if (b) {
|
|
738
738
|
if (!zl(t, function(A, k) {
|
|
739
|
-
if (!Kl(b, k) && (_ === A ||
|
|
739
|
+
if (!Kl(b, k) && (_ === A || i(_, A, n, o, a)))
|
|
740
740
|
return b.push(k);
|
|
741
741
|
})) {
|
|
742
742
|
m = !1;
|
|
743
743
|
break;
|
|
744
744
|
}
|
|
745
|
-
} else if (!(_ === E ||
|
|
745
|
+
} else if (!(_ === E || i(_, E, n, o, a))) {
|
|
746
746
|
m = !1;
|
|
747
747
|
break;
|
|
748
748
|
}
|
|
@@ -751,8 +751,8 @@ function ei(e, t, n, o, r, a) {
|
|
|
751
751
|
}
|
|
752
752
|
function ql(e) {
|
|
753
753
|
var t = -1, n = Array(e.size);
|
|
754
|
-
return e.forEach(function(o,
|
|
755
|
-
n[++t] = [
|
|
754
|
+
return e.forEach(function(o, i) {
|
|
755
|
+
n[++t] = [i, o];
|
|
756
756
|
}), n;
|
|
757
757
|
}
|
|
758
758
|
function Gl(e) {
|
|
@@ -762,7 +762,7 @@ function Gl(e) {
|
|
|
762
762
|
}), n;
|
|
763
763
|
}
|
|
764
764
|
var Jl = 1, Zl = 2, Ql = "[object Boolean]", Yl = "[object Date]", Xl = "[object Error]", es = "[object Map]", ts = "[object Number]", ns = "[object RegExp]", is = "[object Set]", rs = "[object String]", os = "[object Symbol]", as = "[object ArrayBuffer]", ls = "[object DataView]", ln = ee ? ee.prototype : void 0, ft = ln ? ln.valueOf : void 0;
|
|
765
|
-
function ss(e, t, n, o,
|
|
765
|
+
function ss(e, t, n, o, i, a, c) {
|
|
766
766
|
switch (n) {
|
|
767
767
|
case ls:
|
|
768
768
|
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
|
|
@@ -789,7 +789,7 @@ function ss(e, t, n, o, r, a, c) {
|
|
|
789
789
|
if (u)
|
|
790
790
|
return u == t;
|
|
791
791
|
o |= Zl, c.set(e, t);
|
|
792
|
-
var v = ei(p(e), p(t), o,
|
|
792
|
+
var v = ei(p(e), p(t), o, i, a, c);
|
|
793
793
|
return c.delete(e), v;
|
|
794
794
|
case os:
|
|
795
795
|
if (ft)
|
|
@@ -798,12 +798,12 @@ function ss(e, t, n, o, r, a, c) {
|
|
|
798
798
|
return !1;
|
|
799
799
|
}
|
|
800
800
|
var ds = 1, us = Object.prototype, cs = us.hasOwnProperty;
|
|
801
|
-
function fs(e, t, n, o,
|
|
801
|
+
function fs(e, t, n, o, i, a) {
|
|
802
802
|
var c = n & ds, p = Zt(e), l = p.length, u = Zt(t), v = u.length;
|
|
803
803
|
if (l != v && !c)
|
|
804
804
|
return !1;
|
|
805
|
-
for (var
|
|
806
|
-
var m = p[
|
|
805
|
+
for (var w = l; w--; ) {
|
|
806
|
+
var m = p[w];
|
|
807
807
|
if (!(c ? m in t : cs.call(t, m)))
|
|
808
808
|
return !1;
|
|
809
809
|
}
|
|
@@ -812,12 +812,12 @@ function fs(e, t, n, o, r, a) {
|
|
|
812
812
|
return b == t && _ == e;
|
|
813
813
|
var E = !0;
|
|
814
814
|
a.set(e, t), a.set(t, e);
|
|
815
|
-
for (var s = c; ++
|
|
816
|
-
m = p[
|
|
815
|
+
for (var s = c; ++w < l; ) {
|
|
816
|
+
m = p[w];
|
|
817
817
|
var A = e[m], k = t[m];
|
|
818
818
|
if (o)
|
|
819
819
|
var d = c ? o(k, A, m, t, e, a) : o(A, k, m, e, t, a);
|
|
820
|
-
if (!(d === void 0 ? A === k ||
|
|
820
|
+
if (!(d === void 0 ? A === k || i(A, k, n, o, a) : d)) {
|
|
821
821
|
E = !1;
|
|
822
822
|
break;
|
|
823
823
|
}
|
|
@@ -830,28 +830,28 @@ function fs(e, t, n, o, r, a) {
|
|
|
830
830
|
return a.delete(e), a.delete(t), E;
|
|
831
831
|
}
|
|
832
832
|
var ps = 1, sn = "[object Arguments]", dn = "[object Array]", He = "[object Object]", ms = Object.prototype, un = ms.hasOwnProperty;
|
|
833
|
-
function _s(e, t, n, o,
|
|
833
|
+
function _s(e, t, n, o, i, a) {
|
|
834
834
|
var c = _e(e), p = _e(t), l = c ? dn : ae(e), u = p ? dn : ae(t);
|
|
835
835
|
l = l == sn ? He : l, u = u == sn ? He : u;
|
|
836
|
-
var v = l == He,
|
|
836
|
+
var v = l == He, w = u == He, m = l == u;
|
|
837
837
|
if (m && Ze(e)) {
|
|
838
838
|
if (!Ze(t))
|
|
839
839
|
return !1;
|
|
840
840
|
c = !0, v = !1;
|
|
841
841
|
}
|
|
842
842
|
if (m && !v)
|
|
843
|
-
return a || (a = new pe()), c || Nn(e) ? ei(e, t, n, o,
|
|
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 = v && un.call(e, "__wrapped__"), _ =
|
|
845
|
+
var b = v && un.call(e, "__wrapped__"), _ = w && un.call(t, "__wrapped__");
|
|
846
846
|
if (b || _) {
|
|
847
847
|
var E = b ? e.value() : e, s = _ ? t.value() : t;
|
|
848
|
-
return a || (a = new pe()),
|
|
848
|
+
return a || (a = new pe()), i(E, s, n, o, a);
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
|
-
return m ? (a || (a = new pe()), fs(e, t, n, o,
|
|
851
|
+
return m ? (a || (a = new pe()), fs(e, t, n, o, i, a)) : !1;
|
|
852
852
|
}
|
|
853
|
-
function ti(e, t, n, o,
|
|
854
|
-
return e === t ? !0 : e == null || t == null || !me(e) && !me(t) ? e !== e && t !== t : _s(e, t, n, o, ti,
|
|
853
|
+
function ti(e, t, n, o, i) {
|
|
854
|
+
return e === t ? !0 : e == null || t == null || !me(e) && !me(t) ? e !== e && t !== t : _s(e, t, n, o, ti, i);
|
|
855
855
|
}
|
|
856
856
|
function gs(e) {
|
|
857
857
|
var t = e == null ? 0 : e.length;
|
|
@@ -877,8 +877,8 @@ var ws = 1, Ts = 2, Ss = 4, Es = ua(function(e, t) {
|
|
|
877
877
|
t = On(t, function(a) {
|
|
878
878
|
return a = At(a, e), o || (o = a.length > 1), a;
|
|
879
879
|
}), xr(e, Zn(e), n), o && (n = Ge(n, ws | Ts | Ss, hs));
|
|
880
|
-
for (var
|
|
881
|
-
vs(n, t[
|
|
880
|
+
for (var i = t.length; i--; )
|
|
881
|
+
vs(n, t[i]);
|
|
882
882
|
return n;
|
|
883
883
|
});
|
|
884
884
|
const G = [];
|
|
@@ -899,11 +899,11 @@ function 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) {
|
|
902
|
-
var
|
|
902
|
+
var i;
|
|
903
903
|
if (cn.randomUUID && !e)
|
|
904
904
|
return cn.randomUUID();
|
|
905
905
|
e = e || {};
|
|
906
|
-
const o = e.random ?? ((
|
|
906
|
+
const o = e.random ?? ((i = e.rng) == null ? void 0 : i.call(e)) ?? Is();
|
|
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
|
-
}, $e =
|
|
917
|
+
}, $e = T.HOST_PORT_EE, ri = {
|
|
918
918
|
port: 6379,
|
|
919
919
|
host: "127.0.0.1",
|
|
920
920
|
database: 0,
|
|
@@ -950,8 +950,8 @@ const ni = {
|
|
|
950
950
|
return n;
|
|
951
951
|
}, oi = () => Ne(ii), ai = () => Ne(ni), Be = (e) => {
|
|
952
952
|
var t, n;
|
|
953
|
-
return e.type === Q.REDIS_CE ?
|
|
954
|
-
}, Xe = (e) => e ===
|
|
953
|
+
return e.type === Q.REDIS_CE ? T.HOST_PORT_CE : (t = e.config.sentinel_nodes) != null && t.length ? T.SENTINEL : (n = e.config.cluster_nodes) != null && n.length ? T.CLUSTER : T.HOST_PORT_EE;
|
|
954
|
+
}, Xe = (e) => e === T.HOST_PORT_CE ? Q.REDIS_CE : Q.REDIS_EE, h = {
|
|
955
955
|
int(e, t) {
|
|
956
956
|
return e == null ? t : parseInt(e.toString(), 10);
|
|
957
957
|
},
|
|
@@ -1054,7 +1054,7 @@ const ni = {
|
|
|
1054
1054
|
}
|
|
1055
1055
|
return typeof e == "number" ? e >= 0 && e <= 65535 : !1;
|
|
1056
1056
|
}, As = (e) => {
|
|
1057
|
-
const { partialId: t, config: n, defaultRedisType: o = $e } = 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({
|
|
1058
1058
|
fields: {
|
|
1059
1059
|
name: "",
|
|
1060
1060
|
tags: "",
|
|
@@ -1063,22 +1063,22 @@ const ni = {
|
|
|
1063
1063
|
},
|
|
1064
1064
|
readonly: !1,
|
|
1065
1065
|
errorMessage: ""
|
|
1066
|
-
}), u = x(), v = x(o),
|
|
1066
|
+
}), u = x(), v = x(o), w = z(() => v.value === T.HOST_PORT_EE || v.value === T.CLUSTER || v.value === T.SENTINEL);
|
|
1067
1067
|
Ce(v, (d) => {
|
|
1068
1068
|
l.fields.type = Xe(d);
|
|
1069
1069
|
});
|
|
1070
1070
|
const m = z(() => {
|
|
1071
1071
|
var O, P, W, X;
|
|
1072
|
-
if (
|
|
1072
|
+
if (i && ys(u.value, _.value) || !((O = l.fields.name) != null && O.length))
|
|
1073
1073
|
return !1;
|
|
1074
1074
|
const { config: d } = l.fields;
|
|
1075
1075
|
switch (v.value) {
|
|
1076
|
-
case
|
|
1077
|
-
case
|
|
1076
|
+
case T.HOST_PORT_CE:
|
|
1077
|
+
case T.HOST_PORT_EE:
|
|
1078
1078
|
return !!d.host && d.host.length > 0 && xs(d.port) && (((P = d.cloud_authentication) == null ? void 0 : P.auth_provider) !== "aws" || !!d.cloud_authentication.aws_cache_name);
|
|
1079
|
-
case
|
|
1079
|
+
case T.CLUSTER:
|
|
1080
1080
|
return !!d.cluster_nodes.length && d.cluster_nodes.every((ne) => ne.ip.length > 0) && (((W = d.cloud_authentication) == null ? void 0 : W.auth_provider) !== "aws" || !!d.cloud_authentication.aws_cache_name);
|
|
1081
|
-
case
|
|
1081
|
+
case T.SENTINEL:
|
|
1082
1082
|
return !!d.sentinel_nodes.length && d.sentinel_nodes.every((ne) => ne.host.length > 0) && !!((X = d.sentinel_master) != null && X.length) && d.sentinel_role && !!d.sentinel_role.length;
|
|
1083
1083
|
default:
|
|
1084
1084
|
throw new Error("Invalid redis type");
|
|
@@ -1103,7 +1103,7 @@ const ni = {
|
|
|
1103
1103
|
} : null;
|
|
1104
1104
|
}, _ = z(() => {
|
|
1105
1105
|
switch (v.value) {
|
|
1106
|
-
case
|
|
1106
|
+
case T.HOST_PORT_CE:
|
|
1107
1107
|
return {
|
|
1108
1108
|
name: l.fields.name,
|
|
1109
1109
|
type: l.fields.type,
|
|
@@ -1121,7 +1121,7 @@ const ni = {
|
|
|
1121
1121
|
server_name: h.str(l.fields.config.server_name, null)
|
|
1122
1122
|
}
|
|
1123
1123
|
};
|
|
1124
|
-
case
|
|
1124
|
+
case T.HOST_PORT_EE:
|
|
1125
1125
|
return {
|
|
1126
1126
|
name: l.fields.name,
|
|
1127
1127
|
type: l.fields.type,
|
|
@@ -1152,7 +1152,7 @@ const ni = {
|
|
|
1152
1152
|
sentinel_password: null
|
|
1153
1153
|
}
|
|
1154
1154
|
};
|
|
1155
|
-
case
|
|
1155
|
+
case T.CLUSTER:
|
|
1156
1156
|
return {
|
|
1157
1157
|
name: l.fields.name,
|
|
1158
1158
|
type: l.fields.type,
|
|
@@ -1183,7 +1183,7 @@ const ni = {
|
|
|
1183
1183
|
port: null
|
|
1184
1184
|
}
|
|
1185
1185
|
};
|
|
1186
|
-
case
|
|
1186
|
+
case T.SENTINEL:
|
|
1187
1187
|
return {
|
|
1188
1188
|
name: l.fields.name,
|
|
1189
1189
|
type: l.fields.type,
|
|
@@ -1227,9 +1227,9 @@ const ni = {
|
|
|
1227
1227
|
form: l,
|
|
1228
1228
|
canSubmit: m,
|
|
1229
1229
|
payload: _,
|
|
1230
|
-
isEdit:
|
|
1230
|
+
isEdit: i,
|
|
1231
1231
|
redisType: v,
|
|
1232
|
-
redisTypeIsEnterprise:
|
|
1232
|
+
redisTypeIsEnterprise: w,
|
|
1233
1233
|
formType: p,
|
|
1234
1234
|
fetchUrl: s,
|
|
1235
1235
|
submit: async () => {
|
|
@@ -1276,7 +1276,7 @@ const ni = {
|
|
|
1276
1276
|
emits: ["remove-item"],
|
|
1277
1277
|
setup(e) {
|
|
1278
1278
|
return (t, n) => {
|
|
1279
|
-
const o = $("KCard"),
|
|
1279
|
+
const o = $("KCard"), i = $("KButton");
|
|
1280
1280
|
return I(), J("div", Ps, [
|
|
1281
1281
|
g(o, { class: "card" }, {
|
|
1282
1282
|
default: S(() => [
|
|
@@ -1284,14 +1284,14 @@ const ni = {
|
|
|
1284
1284
|
]),
|
|
1285
1285
|
_: 3
|
|
1286
1286
|
}),
|
|
1287
|
-
g(
|
|
1287
|
+
g(i, {
|
|
1288
1288
|
appearance: "tertiary",
|
|
1289
1289
|
class: "array-card-remove-button",
|
|
1290
1290
|
disabled: e.disabled,
|
|
1291
1291
|
onClick: n[0] || (n[0] = (a) => t.$emit("remove-item"))
|
|
1292
1292
|
}, {
|
|
1293
1293
|
default: S(() => [
|
|
1294
|
-
g(
|
|
1294
|
+
g(r(ji))
|
|
1295
1295
|
]),
|
|
1296
1296
|
_: 1
|
|
1297
1297
|
}, 8, ["disabled"])
|
|
@@ -1300,8 +1300,8 @@ const ni = {
|
|
|
1300
1300
|
}
|
|
1301
1301
|
}), te = (e, t) => {
|
|
1302
1302
|
const n = e.__vccOpts || e;
|
|
1303
|
-
for (const [o,
|
|
1304
|
-
n[o] =
|
|
1303
|
+
for (const [o, i] of t)
|
|
1304
|
+
n[o] = i;
|
|
1305
1305
|
return n;
|
|
1306
1306
|
}, li = /* @__PURE__ */ te($s, [["__scopeId", "data-v-a0b2e4fb"]]), Vs = {
|
|
1307
1307
|
create: "New Redis Configuration",
|
|
@@ -1638,7 +1638,7 @@ const ye = {
|
|
|
1638
1638
|
setup(e) {
|
|
1639
1639
|
const t = Ct(e, "modelValue"), { i18n: { t: n } } = ye.useI18n(), o = () => {
|
|
1640
1640
|
t.value.push(ai());
|
|
1641
|
-
},
|
|
1641
|
+
}, i = (a) => {
|
|
1642
1642
|
t.value.splice(a, 1);
|
|
1643
1643
|
};
|
|
1644
1644
|
return (a, c) => {
|
|
@@ -1646,20 +1646,20 @@ const ye = {
|
|
|
1646
1646
|
return I(), J("div", null, [
|
|
1647
1647
|
g(p, {
|
|
1648
1648
|
class: "required",
|
|
1649
|
-
info:
|
|
1649
|
+
info: r(n)("form.fields.cluster_nodes.tooltip"),
|
|
1650
1650
|
"tooltip-attributes": { maxWidth: "400" }
|
|
1651
1651
|
}, {
|
|
1652
1652
|
default: S(() => [
|
|
1653
|
-
le(B(
|
|
1653
|
+
le(B(r(n)("form.fields.cluster_nodes.title")), 1)
|
|
1654
1654
|
]),
|
|
1655
1655
|
_: 1
|
|
1656
1656
|
}, 8, ["info"]),
|
|
1657
1657
|
K("div", null, [
|
|
1658
|
-
(I(!0), J(fe, null, tt(t.value, (v,
|
|
1659
|
-
key: `${
|
|
1658
|
+
(I(!0), J(fe, null, tt(t.value, (v, w) => (I(), N(li, {
|
|
1659
|
+
key: `${w}`,
|
|
1660
1660
|
"data-testid": "redis-cluster-nodes",
|
|
1661
1661
|
disabled: e.readonly,
|
|
1662
|
-
onRemoveItem: (m) =>
|
|
1662
|
+
onRemoveItem: (m) => i(w)
|
|
1663
1663
|
}, {
|
|
1664
1664
|
default: S(() => [
|
|
1665
1665
|
K("div", Ks, [
|
|
@@ -1667,9 +1667,9 @@ const ye = {
|
|
|
1667
1667
|
modelValue: v.ip,
|
|
1668
1668
|
"onUpdate:modelValue": (m) => v.ip = m,
|
|
1669
1669
|
modelModifiers: { trim: !0 },
|
|
1670
|
-
label:
|
|
1670
|
+
label: r(n)("form.fields.cluster_node_ip.label"),
|
|
1671
1671
|
"label-attributes": {
|
|
1672
|
-
info:
|
|
1672
|
+
info: r(n)("form.fields.cluster_node_ip.tooltip"),
|
|
1673
1673
|
tooltipAttributes: { maxWidth: "400" }
|
|
1674
1674
|
},
|
|
1675
1675
|
name: "ip",
|
|
@@ -1679,9 +1679,9 @@ const ye = {
|
|
|
1679
1679
|
g(l, {
|
|
1680
1680
|
modelValue: v.port,
|
|
1681
1681
|
"onUpdate:modelValue": (m) => v.port = m,
|
|
1682
|
-
label:
|
|
1682
|
+
label: r(n)("form.fields.cluster_node_port.label"),
|
|
1683
1683
|
"label-attributes": {
|
|
1684
|
-
info:
|
|
1684
|
+
info: r(n)("form.fields.cluster_node_port.tooltip"),
|
|
1685
1685
|
tooltipAttributes: { maxWidth: "400" }
|
|
1686
1686
|
},
|
|
1687
1687
|
name: "port",
|
|
@@ -1699,8 +1699,8 @@ const ye = {
|
|
|
1699
1699
|
onClick: o
|
|
1700
1700
|
}, {
|
|
1701
1701
|
default: S(() => [
|
|
1702
|
-
g(
|
|
1703
|
-
K("span", null, B(
|
|
1702
|
+
g(r(Sn)),
|
|
1703
|
+
K("span", null, B(r(n)("form.fields.cluster_nodes.add_button")), 1)
|
|
1704
1704
|
]),
|
|
1705
1705
|
_: 1
|
|
1706
1706
|
}, 8, ["disabled"])
|
|
@@ -1712,12 +1712,12 @@ const ye = {
|
|
|
1712
1712
|
const e = x(), t = x();
|
|
1713
1713
|
return {
|
|
1714
1714
|
vaultSecretPickerSetup: e,
|
|
1715
|
-
setUpVaultSecretPicker: (
|
|
1716
|
-
e.value =
|
|
1715
|
+
setUpVaultSecretPicker: (i, a) => {
|
|
1716
|
+
e.value = i ?? "", t.value = a;
|
|
1717
1717
|
},
|
|
1718
|
-
handleVaultSecretPickerAutofill: (
|
|
1718
|
+
handleVaultSecretPickerAutofill: (i) => {
|
|
1719
1719
|
var a;
|
|
1720
|
-
(a = t.value) == null || a.call(t,
|
|
1720
|
+
(a = t.value) == null || a.call(t, i), e.value = !1;
|
|
1721
1721
|
}
|
|
1722
1722
|
};
|
|
1723
1723
|
}, qs = { class: "sentinel-node-items" }, Gs = /* @__PURE__ */ Y({
|
|
@@ -1732,7 +1732,7 @@ const ye = {
|
|
|
1732
1732
|
setup(e) {
|
|
1733
1733
|
const t = Ct(e, "modelValue"), { i18n: { t: n } } = ye.useI18n(), o = () => {
|
|
1734
1734
|
t.value.push(oi());
|
|
1735
|
-
},
|
|
1735
|
+
}, i = (a) => {
|
|
1736
1736
|
t.value.splice(a, 1);
|
|
1737
1737
|
};
|
|
1738
1738
|
return (a, c) => {
|
|
@@ -1740,20 +1740,20 @@ const ye = {
|
|
|
1740
1740
|
return I(), J("div", null, [
|
|
1741
1741
|
g(p, {
|
|
1742
1742
|
class: "required",
|
|
1743
|
-
info:
|
|
1743
|
+
info: r(n)("form.fields.sentinel_nodes.tooltip"),
|
|
1744
1744
|
"tooltip-attributes": { maxWidth: "400" }
|
|
1745
1745
|
}, {
|
|
1746
1746
|
default: S(() => [
|
|
1747
|
-
le(B(
|
|
1747
|
+
le(B(r(n)("form.fields.sentinel_nodes.title")), 1)
|
|
1748
1748
|
]),
|
|
1749
1749
|
_: 1
|
|
1750
1750
|
}, 8, ["info"]),
|
|
1751
1751
|
K("div", null, [
|
|
1752
|
-
(I(!0), J(fe, null, tt(t.value, (v,
|
|
1752
|
+
(I(!0), J(fe, null, tt(t.value, (v, w) => (I(), N(li, {
|
|
1753
1753
|
key: v.id,
|
|
1754
1754
|
"data-testid": "redis-sentinel-nodes",
|
|
1755
1755
|
disabled: e.readonly,
|
|
1756
|
-
onRemoveItem: (m) =>
|
|
1756
|
+
onRemoveItem: (m) => i(w)
|
|
1757
1757
|
}, {
|
|
1758
1758
|
default: S(() => [
|
|
1759
1759
|
K("div", qs, [
|
|
@@ -1761,9 +1761,9 @@ const ye = {
|
|
|
1761
1761
|
modelValue: v.host,
|
|
1762
1762
|
"onUpdate:modelValue": (m) => v.host = m,
|
|
1763
1763
|
modelModifiers: { trim: !0 },
|
|
1764
|
-
label:
|
|
1764
|
+
label: r(n)("form.fields.sentinel_node_host.label"),
|
|
1765
1765
|
"label-attributes": {
|
|
1766
|
-
info:
|
|
1766
|
+
info: r(n)("form.fields.sentinel_node_host.tooltip"),
|
|
1767
1767
|
tooltipAttributes: { maxWidth: "400" }
|
|
1768
1768
|
},
|
|
1769
1769
|
name: "host",
|
|
@@ -1773,9 +1773,9 @@ const ye = {
|
|
|
1773
1773
|
g(l, {
|
|
1774
1774
|
modelValue: v.port,
|
|
1775
1775
|
"onUpdate:modelValue": (m) => v.port = m,
|
|
1776
|
-
label:
|
|
1776
|
+
label: r(n)("form.fields.sentinel_node_port.label"),
|
|
1777
1777
|
"label-attributes": {
|
|
1778
|
-
info:
|
|
1778
|
+
info: r(n)("form.fields.sentinel_node_port.tooltip"),
|
|
1779
1779
|
tooltipAttributes: { maxWidth: "400" }
|
|
1780
1780
|
},
|
|
1781
1781
|
name: "port",
|
|
@@ -1793,8 +1793,8 @@ const ye = {
|
|
|
1793
1793
|
onClick: o
|
|
1794
1794
|
}, {
|
|
1795
1795
|
default: S(() => [
|
|
1796
|
-
g(
|
|
1797
|
-
K("span", null, B(
|
|
1796
|
+
g(r(Sn)),
|
|
1797
|
+
K("span", null, B(r(n)("form.fields.sentinel_nodes.add_button")), 1)
|
|
1798
1798
|
]),
|
|
1799
1799
|
_: 1
|
|
1800
1800
|
}, 8, ["disabled"])
|
|
@@ -1815,7 +1815,7 @@ const ye = {
|
|
|
1815
1815
|
setup(e) {
|
|
1816
1816
|
const t = Ct(e, "modelValue"), { i18n: { t: n } } = ye.useI18n(), {
|
|
1817
1817
|
vaultSecretPickerSetup: o,
|
|
1818
|
-
setUpVaultSecretPicker:
|
|
1818
|
+
setUpVaultSecretPicker: i,
|
|
1819
1819
|
handleVaultSecretPickerAutofill: a
|
|
1820
1820
|
} = si(), c = [
|
|
1821
1821
|
{
|
|
@@ -1909,7 +1909,7 @@ const ye = {
|
|
|
1909
1909
|
return l.group === ((u = t.value) == null ? void 0 : u.auth_provider);
|
|
1910
1910
|
}));
|
|
1911
1911
|
return (l, u) => {
|
|
1912
|
-
const v = $("KInput"),
|
|
1912
|
+
const v = $("KInput"), w = $("KCheckbox");
|
|
1913
1913
|
return I(), J(fe, null, [
|
|
1914
1914
|
(I(!0), J(fe, null, tt(p.value, (m) => (I(), J(fe, {
|
|
1915
1915
|
key: m.key
|
|
@@ -1929,15 +1929,15 @@ const ye = {
|
|
|
1929
1929
|
"show-password-mask-toggle": m.encrypted,
|
|
1930
1930
|
type: m.encrypted ? "password" : "text"
|
|
1931
1931
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "label", "label-attributes", "readonly", "required", "show-password-mask-toggle", "type"]),
|
|
1932
|
-
m.referenceable ? (I(), N(
|
|
1932
|
+
m.referenceable ? (I(), N(r(he), {
|
|
1933
1933
|
key: 0,
|
|
1934
1934
|
class: "secret-picker-provider",
|
|
1935
1935
|
disabled: e.readonly,
|
|
1936
1936
|
update: (b) => t.value[m.key] = b,
|
|
1937
1937
|
value: t.value[m.key] ?? "",
|
|
1938
|
-
onOpen: u[0] || (u[0] = (b, _) => i
|
|
1938
|
+
onOpen: u[0] || (u[0] = (b, _) => r(i)(b, _))
|
|
1939
1939
|
}, null, 8, ["disabled", "update", "value"])) : Z("", !0)
|
|
1940
|
-
], 64)) : (I(), N(
|
|
1940
|
+
], 64)) : (I(), N(w, {
|
|
1941
1941
|
key: 1,
|
|
1942
1942
|
modelValue: t.value[m.key],
|
|
1943
1943
|
"onUpdate:modelValue": (b) => t.value[m.key] = b,
|
|
@@ -1950,11 +1950,11 @@ const ye = {
|
|
|
1950
1950
|
readonly: e.readonly
|
|
1951
1951
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "label", "label-attributes", "readonly"]))
|
|
1952
1952
|
], 64))), 128)),
|
|
1953
|
-
g(
|
|
1953
|
+
g(r(wn), {
|
|
1954
1954
|
config: e.config,
|
|
1955
|
-
setup:
|
|
1955
|
+
setup: r(o),
|
|
1956
1956
|
onCancel: u[1] || (u[1] = () => o.value = !1),
|
|
1957
|
-
onProceed:
|
|
1957
|
+
onProceed: r(a)
|
|
1958
1958
|
}, null, 8, ["config", "setup", "onProceed"])
|
|
1959
1959
|
], 64);
|
|
1960
1960
|
};
|
|
@@ -1991,17 +1991,17 @@ var Mt = (
|
|
|
1991
1991
|
var n = this.serializeKey(t);
|
|
1992
1992
|
return this.items.get(n);
|
|
1993
1993
|
}, e.prototype.set = function(t, n, o) {
|
|
1994
|
-
var
|
|
1994
|
+
var i = this.serializeKey(t), a = o || this.ttl, c = Date.now(), p = {
|
|
1995
1995
|
data: n,
|
|
1996
1996
|
createdAt: c,
|
|
1997
1997
|
expiresAt: a ? c + a : 1 / 0
|
|
1998
1998
|
};
|
|
1999
|
-
this.dispatchExpire(a, p,
|
|
1999
|
+
this.dispatchExpire(a, p, i), this.items.set(i, p);
|
|
2000
2000
|
}, e.prototype.dispatchExpire = function(t, n, o) {
|
|
2001
|
-
var
|
|
2001
|
+
var i = this;
|
|
2002
2002
|
t && setTimeout(function() {
|
|
2003
2003
|
var a = Date.now(), c = a >= n.expiresAt;
|
|
2004
|
-
c &&
|
|
2004
|
+
c && i.delete(o);
|
|
2005
2005
|
}, t);
|
|
2006
2006
|
}, e.prototype.delete = function(t) {
|
|
2007
2007
|
this.items.delete(t);
|
|
@@ -2028,12 +2028,12 @@ var ce = function() {
|
|
|
2028
2028
|
return ce = Object.assign || function(e) {
|
|
2029
2029
|
for (var t, n = 1, o = arguments.length; n < o; n++) {
|
|
2030
2030
|
t = arguments[n];
|
|
2031
|
-
for (var
|
|
2031
|
+
for (var i in t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
2032
2032
|
}
|
|
2033
2033
|
return e;
|
|
2034
2034
|
}, ce.apply(this, arguments);
|
|
2035
2035
|
}, Ae = function(e, t, n, o) {
|
|
2036
|
-
function
|
|
2036
|
+
function i(a) {
|
|
2037
2037
|
return a instanceof n ? a : new n(function(c) {
|
|
2038
2038
|
c(a);
|
|
2039
2039
|
});
|
|
@@ -2042,19 +2042,19 @@ var ce = function() {
|
|
|
2042
2042
|
function p(v) {
|
|
2043
2043
|
try {
|
|
2044
2044
|
u(o.next(v));
|
|
2045
|
-
} catch (
|
|
2046
|
-
c(
|
|
2045
|
+
} catch (w) {
|
|
2046
|
+
c(w);
|
|
2047
2047
|
}
|
|
2048
2048
|
}
|
|
2049
2049
|
function l(v) {
|
|
2050
2050
|
try {
|
|
2051
2051
|
u(o.throw(v));
|
|
2052
|
-
} catch (
|
|
2053
|
-
c(
|
|
2052
|
+
} catch (w) {
|
|
2053
|
+
c(w);
|
|
2054
2054
|
}
|
|
2055
2055
|
}
|
|
2056
2056
|
function u(v) {
|
|
2057
|
-
v.done ? a(v.value) :
|
|
2057
|
+
v.done ? a(v.value) : i(v.value).then(p, l);
|
|
2058
2058
|
}
|
|
2059
2059
|
u((o = o.apply(e, t || [])).next());
|
|
2060
2060
|
});
|
|
@@ -2062,7 +2062,7 @@ var ce = function() {
|
|
|
2062
2062
|
var n = { label: 0, sent: function() {
|
|
2063
2063
|
if (a[0] & 1) throw a[1];
|
|
2064
2064
|
return a[1];
|
|
2065
|
-
}, trys: [], ops: [] }, o,
|
|
2065
|
+
}, trys: [], ops: [] }, o, i, a, c;
|
|
2066
2066
|
return c = { next: p(0), throw: p(1), return: p(2) }, typeof Symbol == "function" && (c[Symbol.iterator] = function() {
|
|
2067
2067
|
return this;
|
|
2068
2068
|
}), c;
|
|
@@ -2074,8 +2074,8 @@ var ce = function() {
|
|
|
2074
2074
|
function l(u) {
|
|
2075
2075
|
if (o) throw new TypeError("Generator is already executing.");
|
|
2076
2076
|
for (; n; ) try {
|
|
2077
|
-
if (o = 1,
|
|
2078
|
-
switch (
|
|
2077
|
+
if (o = 1, i && (a = u[0] & 2 ? i.return : u[0] ? i.throw || ((a = i.return) && a.call(i), 0) : i.next) && !(a = a.call(i, u[1])).done) return a;
|
|
2078
|
+
switch (i = 0, a && (u = [u[0] & 2, a.value]), u[0]) {
|
|
2079
2079
|
case 0:
|
|
2080
2080
|
case 1:
|
|
2081
2081
|
a = u;
|
|
@@ -2083,7 +2083,7 @@ var ce = function() {
|
|
|
2083
2083
|
case 4:
|
|
2084
2084
|
return n.label++, { value: u[1], done: !1 };
|
|
2085
2085
|
case 5:
|
|
2086
|
-
n.label++,
|
|
2086
|
+
n.label++, i = u[1], u = [0];
|
|
2087
2087
|
continue;
|
|
2088
2088
|
case 7:
|
|
2089
2089
|
u = n.ops.pop(), n.trys.pop();
|
|
@@ -2110,7 +2110,7 @@ var ce = function() {
|
|
|
2110
2110
|
}
|
|
2111
2111
|
u = t.call(e, n);
|
|
2112
2112
|
} catch (v) {
|
|
2113
|
-
u = [6, v],
|
|
2113
|
+
u = [6, v], i = 0;
|
|
2114
2114
|
} finally {
|
|
2115
2115
|
o = a = 0;
|
|
2116
2116
|
}
|
|
@@ -2120,21 +2120,21 @@ var ce = function() {
|
|
|
2120
2120
|
}, id = function(e, t) {
|
|
2121
2121
|
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
2122
2122
|
if (!n) return e;
|
|
2123
|
-
var o = n.call(e),
|
|
2123
|
+
var o = n.call(e), i, a = [], c;
|
|
2124
2124
|
try {
|
|
2125
|
-
for (; (t === void 0 || t-- > 0) && !(
|
|
2125
|
+
for (; (t === void 0 || t-- > 0) && !(i = o.next()).done; ) a.push(i.value);
|
|
2126
2126
|
} catch (p) {
|
|
2127
2127
|
c = { error: p };
|
|
2128
2128
|
} finally {
|
|
2129
2129
|
try {
|
|
2130
|
-
|
|
2130
|
+
i && !i.done && (n = o.return) && n.call(o);
|
|
2131
2131
|
} finally {
|
|
2132
2132
|
if (c) throw c.error;
|
|
2133
2133
|
}
|
|
2134
2134
|
}
|
|
2135
2135
|
return a;
|
|
2136
2136
|
}, rd = function(e, t, n) {
|
|
2137
|
-
if (n || arguments.length === 2) for (var o = 0,
|
|
2137
|
+
if (n || arguments.length === 2) for (var o = 0, i = t.length, a; o < i; o++)
|
|
2138
2138
|
(a || !(o in t)) && (a || (a = Array.prototype.slice.call(t, 0, o)), a[o] = t[o]);
|
|
2139
2139
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
2140
2140
|
}, di = new Mt(), et = new Mt(), gt = new Mt(), ui = {
|
|
@@ -2157,38 +2157,38 @@ function od(e, t, n) {
|
|
|
2157
2157
|
if (o)
|
|
2158
2158
|
o.data.push(t);
|
|
2159
2159
|
else {
|
|
2160
|
-
var
|
|
2161
|
-
et.set(e, [t], n > 0 ? n +
|
|
2160
|
+
var i = 5e3;
|
|
2161
|
+
et.set(e, [t], n > 0 ? n + i : n);
|
|
2162
2162
|
}
|
|
2163
2163
|
}
|
|
2164
2164
|
function ad(e, t, n) {
|
|
2165
2165
|
if (n.isDocumentVisible() && !(n.errorRetryCount !== void 0 && t > n.errorRetryCount)) {
|
|
2166
|
-
var o = Math.min(t || 0, n.errorRetryCount),
|
|
2166
|
+
var o = Math.min(t || 0, n.errorRetryCount), i = o * n.errorRetryInterval;
|
|
2167
2167
|
setTimeout(function() {
|
|
2168
2168
|
e(null, { errorRetryCount: o + 1, shouldRetryOnError: !0 });
|
|
2169
|
-
},
|
|
2169
|
+
}, i);
|
|
2170
2170
|
}
|
|
2171
2171
|
}
|
|
2172
2172
|
var pn = function(e, t, n, o) {
|
|
2173
2173
|
return n === void 0 && (n = di), o === void 0 && (o = ui.ttl), Ae(void 0, void 0, void 0, function() {
|
|
2174
|
-
var
|
|
2175
|
-
return Pe(this, function(
|
|
2176
|
-
switch (
|
|
2174
|
+
var i, a, c, p, l, u, v;
|
|
2175
|
+
return Pe(this, function(w) {
|
|
2176
|
+
switch (w.label) {
|
|
2177
2177
|
case 0:
|
|
2178
2178
|
if (!sd(t)) return [3, 5];
|
|
2179
|
-
|
|
2179
|
+
w.label = 1;
|
|
2180
2180
|
case 1:
|
|
2181
|
-
return
|
|
2181
|
+
return w.trys.push([1, 3, , 4]), [4, t];
|
|
2182
2182
|
case 2:
|
|
2183
|
-
return
|
|
2183
|
+
return i = w.sent(), [3, 4];
|
|
2184
2184
|
case 3:
|
|
2185
|
-
return p =
|
|
2185
|
+
return p = w.sent(), a = p, [3, 4];
|
|
2186
2186
|
case 4:
|
|
2187
2187
|
return [3, 6];
|
|
2188
2188
|
case 5:
|
|
2189
|
-
|
|
2189
|
+
i = t, w.label = 6;
|
|
2190
2190
|
case 6:
|
|
2191
|
-
if (c = !1, l = { data:
|
|
2191
|
+
if (c = !1, l = { data: i, error: a, isValidating: c }, typeof i < "u")
|
|
2192
2192
|
try {
|
|
2193
2193
|
n.set(e, l, o);
|
|
2194
2194
|
} catch (m) {
|
|
@@ -2208,13 +2208,13 @@ var pn = function(e, t, n, o) {
|
|
|
2208
2208
|
function ld() {
|
|
2209
2209
|
for (var e = this, t = [], n = 0; n < arguments.length; n++)
|
|
2210
2210
|
t[n] = arguments[n];
|
|
2211
|
-
var o,
|
|
2211
|
+
var o, i, a = ce({}, ui), c = !1, p = !1, l = bi(), u = (l == null ? void 0 : l.proxy) || l;
|
|
2212
2212
|
if (!u)
|
|
2213
2213
|
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
2214
|
var v = (u == null ? void 0 : u.$isServer) || !1;
|
|
2215
|
-
t.length >= 1 && (o = t[0]), t.length >= 2 && (
|
|
2216
|
-
var
|
|
2217
|
-
typeof
|
|
2215
|
+
t.length >= 1 && (o = t[0]), t.length >= 2 && (i = t[1]), t.length > 2 && (a = ce(ce({}, a), t[2]));
|
|
2216
|
+
var w = v ? a.serverTTL : a.ttl, m = typeof o == "function" ? o : x(o);
|
|
2217
|
+
typeof i > "u" && (i = a.fetcher);
|
|
2218
2218
|
var b = null;
|
|
2219
2219
|
b || (b = mn({
|
|
2220
2220
|
data: void 0,
|
|
@@ -2229,7 +2229,7 @@ function ld() {
|
|
|
2229
2229
|
return Pe(this, function(re) {
|
|
2230
2230
|
switch (re.label) {
|
|
2231
2231
|
case 0:
|
|
2232
|
-
return O = b.data === void 0, P = m.value, P ? (W = a.cache.get(P), X = W && W.data, b.isValidating = !0, b.isLoading = !X, X && (b.data = X.data, b.error = X.error), ne = k ||
|
|
2232
|
+
return O = b.data === void 0, P = m.value, P ? (W = a.cache.get(P), X = W && W.data, b.isValidating = !0, b.isLoading = !X, X && (b.data = X.data, b.error = X.error), ne = k || i, !ne || !a.isDocumentVisible() && !O || (d == null ? void 0 : d.forceRevalidate) !== void 0 && !(d != null && d.forceRevalidate) ? (b.isValidating = !1, b.isLoading = !1, [
|
|
2233
2233
|
2
|
|
2234
2234
|
/*return*/
|
|
2235
2235
|
]) : W && (de = !!(Date.now() - W.createdAt >= a.dedupingInterval || d != null && d.forceRevalidate), !de) ? (b.isValidating = !1, b.isLoading = !1, [
|
|
@@ -2241,11 +2241,11 @@ function ld() {
|
|
|
2241
2241
|
return Pe(this, function(ve) {
|
|
2242
2242
|
switch (ve.label) {
|
|
2243
2243
|
case 0:
|
|
2244
|
-
return oe = gt.get(P), oe ? [3, 2] : (Te = Array.isArray(P) ? P : [P], Se = ne.apply(void 0, rd([], id(Te), !1)), gt.set(P, Se, a.dedupingInterval), [4, pn(P, Se, a.cache,
|
|
2244
|
+
return oe = gt.get(P), oe ? [3, 2] : (Te = Array.isArray(P) ? P : [P], Se = ne.apply(void 0, rd([], id(Te), !1)), gt.set(P, Se, a.dedupingInterval), [4, pn(P, Se, a.cache, w)]);
|
|
2245
2245
|
case 1:
|
|
2246
2246
|
return ve.sent(), [3, 4];
|
|
2247
2247
|
case 2:
|
|
2248
|
-
return [4, pn(P, oe.data, a.cache,
|
|
2248
|
+
return [4, pn(P, oe.data, a.cache, w)];
|
|
2249
2249
|
case 3:
|
|
2250
2250
|
ve.sent(), ve.label = 4;
|
|
2251
2251
|
case 4:
|
|
@@ -2325,7 +2325,7 @@ function ld() {
|
|
|
2325
2325
|
});
|
|
2326
2326
|
try {
|
|
2327
2327
|
Ce(m, function(k) {
|
|
2328
|
-
hi(m) || (m.value = k), b.key = k, b.isValidating = !!k, od(m.value, b,
|
|
2328
|
+
hi(m) || (m.value = k), b.key = k, b.isValidating = !!k, od(m.value, b, w), !v && !p && m.value && _(), p = !1;
|
|
2329
2329
|
}, {
|
|
2330
2330
|
immediate: !0
|
|
2331
2331
|
});
|
|
@@ -2346,18 +2346,18 @@ const Fe = (e) => {
|
|
|
2346
2346
|
const { axiosInstance: t } = kt(e.axiosRequestConfig);
|
|
2347
2347
|
return {
|
|
2348
2348
|
fetcher: async (n) => {
|
|
2349
|
-
const { partialId: o, size:
|
|
2349
|
+
const { partialId: o, size: i, offset: a, query: c } = n;
|
|
2350
2350
|
let p = `${e.apiBaseUrl}${Me.links[e.app]}`;
|
|
2351
2351
|
e.app === "konnect" ? p = p.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (p = p.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "")), p = p.replace(/{id}/gi, o || ""), c && (p = `${p}?${c}`);
|
|
2352
2352
|
const { data: l } = await t.get(
|
|
2353
2353
|
p,
|
|
2354
|
-
{ params: { size:
|
|
2354
|
+
{ params: { size: i, offset: a } }
|
|
2355
2355
|
);
|
|
2356
2356
|
return l;
|
|
2357
2357
|
}
|
|
2358
2358
|
};
|
|
2359
2359
|
}, fi = (e) => {
|
|
2360
|
-
const { partialId: t, config: n } = e, { fetcher: o } = Fe(n),
|
|
2360
|
+
const { partialId: t, config: n } = e, { fetcher: o } = Fe(n), i = x([]), { data: a } = ld(
|
|
2361
2361
|
ci(t),
|
|
2362
2362
|
() => o({ partialId: t }),
|
|
2363
2363
|
{
|
|
@@ -2366,8 +2366,8 @@ const Fe = (e) => {
|
|
|
2366
2366
|
);
|
|
2367
2367
|
return Ce(a, () => {
|
|
2368
2368
|
var c;
|
|
2369
|
-
|
|
2370
|
-
}),
|
|
2369
|
+
i.value = ((c = a.value) == null ? void 0 : c.data) ?? [];
|
|
2370
|
+
}), i;
|
|
2371
2371
|
}, dd = { class: "kong-ui-entities-redis-configurations-form" }, ud = /* @__PURE__ */ Y({
|
|
2372
2372
|
__name: "RedisConfigurationForm",
|
|
2373
2373
|
props: {
|
|
@@ -2406,60 +2406,60 @@ const Fe = (e) => {
|
|
|
2406
2406
|
},
|
|
2407
2407
|
emits: ["update", "error", "loading", "cancel"],
|
|
2408
2408
|
setup(e, { emit: t }) {
|
|
2409
|
-
const n = e, o = t, { i18n: { t:
|
|
2409
|
+
const n = e, o = t, { i18n: { t: i }, i18nT: a } = ye.useI18n(), {
|
|
2410
2410
|
vaultSecretPickerSetup: c,
|
|
2411
2411
|
setUpVaultSecretPicker: p,
|
|
2412
2412
|
handleVaultSecretPickerAutofill: l
|
|
2413
|
-
} = si(), u = Tn(), v = x("json"),
|
|
2413
|
+
} = si(), u = Tn(), v = x("json"), w = z(() => [
|
|
2414
2414
|
{
|
|
2415
|
-
label:
|
|
2416
|
-
group:
|
|
2417
|
-
value:
|
|
2418
|
-
selected: O.value ===
|
|
2415
|
+
label: i("form.options.type.host_port"),
|
|
2416
|
+
group: i("form.options.type.enterprise"),
|
|
2417
|
+
value: T.HOST_PORT_EE,
|
|
2418
|
+
selected: O.value === T.HOST_PORT_EE,
|
|
2419
2419
|
disabled: !d && n.disabledPartialType === Q.REDIS_EE
|
|
2420
2420
|
},
|
|
2421
2421
|
{
|
|
2422
|
-
label:
|
|
2423
|
-
group:
|
|
2424
|
-
value:
|
|
2425
|
-
selected: O.value ===
|
|
2422
|
+
label: i("form.options.type.cluster"),
|
|
2423
|
+
group: i("form.options.type.enterprise"),
|
|
2424
|
+
value: T.CLUSTER,
|
|
2425
|
+
selected: O.value === T.CLUSTER,
|
|
2426
2426
|
disabled: !d && n.disabledPartialType === Q.REDIS_EE
|
|
2427
2427
|
},
|
|
2428
2428
|
{
|
|
2429
|
-
label:
|
|
2430
|
-
group:
|
|
2431
|
-
value:
|
|
2432
|
-
selected: O.value ===
|
|
2429
|
+
label: i("form.options.type.sentinel"),
|
|
2430
|
+
group: i("form.options.type.enterprise"),
|
|
2431
|
+
value: T.SENTINEL,
|
|
2432
|
+
selected: O.value === T.SENTINEL,
|
|
2433
2433
|
disabled: !d && n.disabledPartialType === Q.REDIS_EE
|
|
2434
2434
|
},
|
|
2435
2435
|
{
|
|
2436
|
-
label:
|
|
2437
|
-
group:
|
|
2438
|
-
value:
|
|
2439
|
-
selected: O.value ===
|
|
2436
|
+
label: i("form.options.type.host_port"),
|
|
2437
|
+
group: i("form.options.type.open_source"),
|
|
2438
|
+
value: T.HOST_PORT_CE,
|
|
2439
|
+
selected: O.value === T.HOST_PORT_CE,
|
|
2440
2440
|
disabled: d && P.value || !d && n.disabledPartialType === Q.REDIS_CE
|
|
2441
2441
|
}
|
|
2442
2442
|
]), m = z(() => [
|
|
2443
2443
|
{
|
|
2444
|
-
label:
|
|
2444
|
+
label: i("form.options.auth_provider.aws"),
|
|
2445
2445
|
value: q.AWS
|
|
2446
2446
|
},
|
|
2447
2447
|
{
|
|
2448
|
-
label:
|
|
2448
|
+
label: i("form.options.auth_provider.gcp"),
|
|
2449
2449
|
value: q.GCP
|
|
2450
2450
|
},
|
|
2451
2451
|
{
|
|
2452
|
-
label:
|
|
2452
|
+
label: i("form.options.auth_provider.azure"),
|
|
2453
2453
|
value: q.AZURE
|
|
2454
2454
|
}
|
|
2455
2455
|
]), b = [
|
|
2456
|
-
{ label:
|
|
2457
|
-
{ label:
|
|
2458
|
-
{ label:
|
|
2456
|
+
{ label: i("form.options.sentinel_role.master"), value: "master" },
|
|
2457
|
+
{ label: i("form.options.sentinel_role.slave"), value: "slave" },
|
|
2458
|
+
{ label: i("form.options.sentinel_role.any"), value: "any" }
|
|
2459
2459
|
], _ = (H) => {
|
|
2460
|
-
const y = H.value ===
|
|
2460
|
+
const y = H.value === T.HOST_PORT_CE ? i("form.options.type.suffix_open_source") : i("form.options.type.suffix_enterprise");
|
|
2461
2461
|
return `${H.label}${y}`;
|
|
2462
|
-
}, E = () => n.disabledPartialType && Xe($e) === n.disabledPartialType ? n.disabledPartialType === Q.REDIS_CE ?
|
|
2462
|
+
}, E = () => n.disabledPartialType && Xe($e) === n.disabledPartialType ? n.disabledPartialType === Q.REDIS_CE ? T.HOST_PORT_EE : T.HOST_PORT_CE : $e, {
|
|
2463
2463
|
form: s,
|
|
2464
2464
|
canSubmit: A,
|
|
2465
2465
|
payload: k,
|
|
@@ -2510,16 +2510,16 @@ const Fe = (e) => {
|
|
|
2510
2510
|
const lt = $("KAlert"), Ee = $("KSelect"), F = $("KInput"), C = $("KCheckbox"), R = $("KModal");
|
|
2511
2511
|
return I(), J(fe, null, [
|
|
2512
2512
|
K("div", dd, [
|
|
2513
|
-
g(
|
|
2513
|
+
g(r(Ii), {
|
|
2514
2514
|
"action-teleport-target": e.actionTeleportTarget,
|
|
2515
|
-
"can-submit":
|
|
2515
|
+
"can-submit": r(A),
|
|
2516
2516
|
config: e.config,
|
|
2517
2517
|
"edit-id": e.partialId,
|
|
2518
|
-
"entity-type":
|
|
2519
|
-
"error-message":
|
|
2520
|
-
"fetch-url":
|
|
2518
|
+
"entity-type": r(vn).Partial,
|
|
2519
|
+
"error-message": r(s).errorMessage,
|
|
2520
|
+
"fetch-url": r(W),
|
|
2521
2521
|
"form-fields": oe.value,
|
|
2522
|
-
"is-readonly":
|
|
2522
|
+
"is-readonly": r(s).readonly,
|
|
2523
2523
|
"slidout-top-offset": e.slidoutTopOffset,
|
|
2524
2524
|
onCancel: xe,
|
|
2525
2525
|
onCodeBlockTabChange: y[34] || (y[34] = (f) => v.value = f),
|
|
@@ -2529,40 +2529,40 @@ const Fe = (e) => {
|
|
|
2529
2529
|
onSubmit: Te
|
|
2530
2530
|
}, {
|
|
2531
2531
|
default: S(() => [
|
|
2532
|
-
re.value > 0 &&
|
|
2532
|
+
re.value > 0 && r(d) ? (I(), N(lt, {
|
|
2533
2533
|
key: 0,
|
|
2534
2534
|
appearance: "warning",
|
|
2535
2535
|
class: "warning-alert",
|
|
2536
2536
|
"data-testid": "redis-update-warning-alert"
|
|
2537
2537
|
}, {
|
|
2538
2538
|
default: S(() => [
|
|
2539
|
-
g(
|
|
2539
|
+
g(r(a), {
|
|
2540
2540
|
keypath: "form.edit_warning_modal.description",
|
|
2541
2541
|
tag: "div"
|
|
2542
2542
|
}, {
|
|
2543
2543
|
pluginCount: S(() => [
|
|
2544
|
-
K("b", null, B(i
|
|
2544
|
+
K("b", null, B(r(i)("form.edit_warning_modal.plugin_count", { count: re.value })), 1)
|
|
2545
2545
|
]),
|
|
2546
2546
|
_: 1
|
|
2547
2547
|
})
|
|
2548
2548
|
]),
|
|
2549
2549
|
_: 1
|
|
2550
2550
|
})) : Z("", !0),
|
|
2551
|
-
g(
|
|
2551
|
+
g(r(ue), {
|
|
2552
2552
|
"data-testid": "redis-type-section",
|
|
2553
|
-
description: i
|
|
2554
|
-
title: i
|
|
2553
|
+
description: r(i)("form.sections.type.description"),
|
|
2554
|
+
title: r(i)("form.sections.type.title")
|
|
2555
2555
|
}, {
|
|
2556
2556
|
default: S(() => [
|
|
2557
2557
|
g(Ee, {
|
|
2558
|
-
modelValue:
|
|
2558
|
+
modelValue: r(O),
|
|
2559
2559
|
"onUpdate:modelValue": y[0] || (y[0] = (f) => Ti(O) ? O.value = f : null),
|
|
2560
2560
|
"data-testid": "redis-type-select",
|
|
2561
|
-
disabled:
|
|
2562
|
-
items:
|
|
2561
|
+
disabled: r(d) && r(O) === r(T).HOST_PORT_CE,
|
|
2562
|
+
items: w.value,
|
|
2563
2563
|
"kpop-attributes": { "data-testid": "redis-type-select-popover" },
|
|
2564
|
-
label: i
|
|
2565
|
-
readonly:
|
|
2564
|
+
label: r(i)("form.fields.type.label"),
|
|
2565
|
+
readonly: r(s).readonly,
|
|
2566
2566
|
required: ""
|
|
2567
2567
|
}, {
|
|
2568
2568
|
"selected-item-template": S(({ item: f }) => [
|
|
@@ -2573,434 +2573,434 @@ const Fe = (e) => {
|
|
|
2573
2573
|
]),
|
|
2574
2574
|
_: 1
|
|
2575
2575
|
}, 8, ["description", "title"]),
|
|
2576
|
-
g(
|
|
2576
|
+
g(r(ue), {
|
|
2577
2577
|
"data-testid": "redis-general-section",
|
|
2578
|
-
description: i
|
|
2579
|
-
title: i
|
|
2578
|
+
description: r(i)("form.sections.general.description"),
|
|
2579
|
+
title: r(i)("form.sections.general.title")
|
|
2580
2580
|
}, {
|
|
2581
2581
|
default: S(() => [
|
|
2582
2582
|
g(F, {
|
|
2583
|
-
modelValue:
|
|
2584
|
-
"onUpdate:modelValue": y[1] || (y[1] = (f) =>
|
|
2583
|
+
modelValue: r(s).fields.name,
|
|
2584
|
+
"onUpdate:modelValue": y[1] || (y[1] = (f) => r(s).fields.name = f),
|
|
2585
2585
|
modelModifiers: { trim: !0 },
|
|
2586
2586
|
"data-testid": "redis-name-input",
|
|
2587
|
-
disabled:
|
|
2588
|
-
label: i
|
|
2589
|
-
placeholder: i
|
|
2590
|
-
readonly:
|
|
2587
|
+
disabled: r(d),
|
|
2588
|
+
label: r(i)("form.fields.name.label"),
|
|
2589
|
+
placeholder: r(i)("form.fields.name.placeholder"),
|
|
2590
|
+
readonly: r(s).readonly,
|
|
2591
2591
|
required: ""
|
|
2592
2592
|
}, null, 8, ["modelValue", "disabled", "label", "placeholder", "readonly"]),
|
|
2593
2593
|
g(F, {
|
|
2594
|
-
modelValue:
|
|
2595
|
-
"onUpdate:modelValue": y[2] || (y[2] = (f) =>
|
|
2594
|
+
modelValue: r(s).fields.tags,
|
|
2595
|
+
"onUpdate:modelValue": y[2] || (y[2] = (f) => r(s).fields.tags = f),
|
|
2596
2596
|
modelModifiers: { trim: !0 },
|
|
2597
2597
|
"data-testid": "redis-tags-input",
|
|
2598
|
-
help: i
|
|
2599
|
-
label: i
|
|
2598
|
+
help: r(i)("form.fields.tags.help"),
|
|
2599
|
+
label: r(i)("form.fields.tags.label"),
|
|
2600
2600
|
"label-attributes": {
|
|
2601
|
-
info: i
|
|
2601
|
+
info: r(i)("form.fields.tags.tooltip"),
|
|
2602
2602
|
tooltipAttributes: { maxWidth: "400" }
|
|
2603
2603
|
},
|
|
2604
|
-
placeholder: i
|
|
2605
|
-
readonly:
|
|
2604
|
+
placeholder: r(i)("form.fields.tags.placeholder"),
|
|
2605
|
+
readonly: r(s).readonly
|
|
2606
2606
|
}, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"])
|
|
2607
2607
|
]),
|
|
2608
2608
|
_: 1
|
|
2609
2609
|
}, 8, ["description", "title"]),
|
|
2610
|
-
e.config.cloudAuthAvailable &&
|
|
2610
|
+
e.config.cloudAuthAvailable && r(O) !== r(T).SENTINEL ? (I(), N(r(ue), {
|
|
2611
2611
|
key: 1,
|
|
2612
2612
|
"data-testid": "redis-cloud-auth-section",
|
|
2613
|
-
description: i
|
|
2614
|
-
title: i
|
|
2613
|
+
description: r(i)("form.sections.cloud_auth.description"),
|
|
2614
|
+
title: r(i)("form.sections.cloud_auth.title")
|
|
2615
2615
|
}, {
|
|
2616
2616
|
default: S(() => [
|
|
2617
2617
|
g(Ee, {
|
|
2618
|
-
modelValue:
|
|
2619
|
-
"onUpdate:modelValue": y[3] || (y[3] = (f) =>
|
|
2618
|
+
modelValue: r(s).fields.config.cloud_authentication.auth_provider,
|
|
2619
|
+
"onUpdate:modelValue": y[3] || (y[3] = (f) => r(s).fields.config.cloud_authentication.auth_provider = f),
|
|
2620
2620
|
clearable: "",
|
|
2621
2621
|
"data-testid": "redis-auth-provider-select",
|
|
2622
2622
|
items: m.value,
|
|
2623
2623
|
"kpop-attributes": { "data-testid": "redis-auth-provider-select-popover" },
|
|
2624
|
-
label: i
|
|
2625
|
-
"label-attributes": { info: i
|
|
2626
|
-
readonly:
|
|
2624
|
+
label: r(i)("form.fields.cloud_authentication.auth_provider.label"),
|
|
2625
|
+
"label-attributes": { info: r(i)("form.fields.cloud_authentication.auth_provider.tooltip") },
|
|
2626
|
+
readonly: r(s).readonly
|
|
2627
2627
|
}, null, 8, ["modelValue", "items", "label", "label-attributes", "readonly"]),
|
|
2628
2628
|
g(Qs, {
|
|
2629
|
-
modelValue:
|
|
2630
|
-
"onUpdate:modelValue": y[4] || (y[4] = (f) =>
|
|
2629
|
+
modelValue: r(s).fields.config.cloud_authentication,
|
|
2630
|
+
"onUpdate:modelValue": y[4] || (y[4] = (f) => r(s).fields.config.cloud_authentication = f),
|
|
2631
2631
|
config: n.config,
|
|
2632
|
-
readonly:
|
|
2632
|
+
readonly: r(s).readonly
|
|
2633
2633
|
}, null, 8, ["modelValue", "config", "readonly"])
|
|
2634
2634
|
]),
|
|
2635
2635
|
_: 1
|
|
2636
2636
|
}, 8, ["description", "title"])) : Z("", !0),
|
|
2637
|
-
|
|
2637
|
+
r(O) === r(T).SENTINEL ? (I(), N(r(ue), {
|
|
2638
2638
|
key: 2,
|
|
2639
2639
|
"data-testid": "redis-sentinel-configuration-section",
|
|
2640
|
-
description: i
|
|
2641
|
-
title: i
|
|
2640
|
+
description: r(i)("form.sections.sentinel_configuration.description"),
|
|
2641
|
+
title: r(i)("form.sections.sentinel_configuration.title")
|
|
2642
2642
|
}, {
|
|
2643
2643
|
default: S(() => [
|
|
2644
2644
|
g(F, {
|
|
2645
|
-
modelValue:
|
|
2646
|
-
"onUpdate:modelValue": y[5] || (y[5] = (f) =>
|
|
2645
|
+
modelValue: r(s).fields.config.sentinel_master,
|
|
2646
|
+
"onUpdate:modelValue": y[5] || (y[5] = (f) => r(s).fields.config.sentinel_master = f),
|
|
2647
2647
|
"data-testid": "redis-sentinel-master-input",
|
|
2648
|
-
label: i
|
|
2648
|
+
label: r(i)("form.fields.sentinel_master.label"),
|
|
2649
2649
|
"label-attributes": {
|
|
2650
|
-
info: i
|
|
2650
|
+
info: r(i)("form.fields.sentinel_master.tooltip"),
|
|
2651
2651
|
tooltipAttributes: { maxWidth: "400" }
|
|
2652
2652
|
},
|
|
2653
|
-
readonly:
|
|
2653
|
+
readonly: r(s).readonly,
|
|
2654
2654
|
required: ""
|
|
2655
2655
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2656
2656
|
g(Ee, {
|
|
2657
|
-
modelValue:
|
|
2658
|
-
"onUpdate:modelValue": y[6] || (y[6] = (f) =>
|
|
2657
|
+
modelValue: r(s).fields.config.sentinel_role,
|
|
2658
|
+
"onUpdate:modelValue": y[6] || (y[6] = (f) => r(s).fields.config.sentinel_role = f),
|
|
2659
2659
|
"data-testid": "redis-sentinel-role-select",
|
|
2660
2660
|
items: b,
|
|
2661
2661
|
"kpop-attributes": { "data-testid": "redis-sentinel-role-select-popover" },
|
|
2662
|
-
label: i
|
|
2662
|
+
label: r(i)("form.fields.sentinel_role.label"),
|
|
2663
2663
|
"label-attributes": {
|
|
2664
|
-
info: i
|
|
2664
|
+
info: r(i)("form.fields.sentinel_role.tooltip"),
|
|
2665
2665
|
tooltipAttributes: { maxWidth: "400" }
|
|
2666
2666
|
},
|
|
2667
|
-
readonly:
|
|
2667
|
+
readonly: r(s).readonly,
|
|
2668
2668
|
required: ""
|
|
2669
2669
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2670
2670
|
g(Js, {
|
|
2671
|
-
modelValue:
|
|
2672
|
-
"onUpdate:modelValue": y[7] || (y[7] = (f) =>
|
|
2673
|
-
readonly:
|
|
2671
|
+
modelValue: r(s).fields.config.sentinel_nodes,
|
|
2672
|
+
"onUpdate:modelValue": y[7] || (y[7] = (f) => r(s).fields.config.sentinel_nodes = f),
|
|
2673
|
+
readonly: r(s).readonly
|
|
2674
2674
|
}, null, 8, ["modelValue", "readonly"]),
|
|
2675
2675
|
g(F, {
|
|
2676
|
-
modelValue:
|
|
2677
|
-
"onUpdate:modelValue": y[8] || (y[8] = (f) =>
|
|
2676
|
+
modelValue: r(s).fields.config.sentinel_username,
|
|
2677
|
+
"onUpdate:modelValue": y[8] || (y[8] = (f) => r(s).fields.config.sentinel_username = f),
|
|
2678
2678
|
modelModifiers: { trim: !0 },
|
|
2679
|
-
label: i
|
|
2679
|
+
label: r(i)("form.fields.sentinel_username.label"),
|
|
2680
2680
|
"label-attributes": {
|
|
2681
|
-
info: i
|
|
2681
|
+
info: r(i)("form.fields.sentinel_username.tooltip"),
|
|
2682
2682
|
tooltipAttributes: { maxWidth: "400" }
|
|
2683
2683
|
},
|
|
2684
|
-
readonly:
|
|
2684
|
+
readonly: r(s).readonly
|
|
2685
2685
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2686
|
-
g(
|
|
2686
|
+
g(r(he), {
|
|
2687
2687
|
class: "secret-picker-provider",
|
|
2688
|
-
disabled:
|
|
2689
|
-
update: (f) =>
|
|
2690
|
-
value:
|
|
2691
|
-
onOpen: y[9] || (y[9] = (f, j) =>
|
|
2688
|
+
disabled: r(s).readonly,
|
|
2689
|
+
update: (f) => r(s).fields.config.sentinel_username = f,
|
|
2690
|
+
value: r(s).fields.config.sentinel_username,
|
|
2691
|
+
onOpen: y[9] || (y[9] = (f, j) => r(p)(f, j))
|
|
2692
2692
|
}, null, 8, ["disabled", "update", "value"]),
|
|
2693
2693
|
g(F, {
|
|
2694
|
-
modelValue:
|
|
2695
|
-
"onUpdate:modelValue": y[10] || (y[10] = (f) =>
|
|
2694
|
+
modelValue: r(s).fields.config.sentinel_password,
|
|
2695
|
+
"onUpdate:modelValue": y[10] || (y[10] = (f) => r(s).fields.config.sentinel_password = f),
|
|
2696
2696
|
modelModifiers: { trim: !0 },
|
|
2697
|
-
label: i
|
|
2697
|
+
label: r(i)("form.fields.sentinel_password.label"),
|
|
2698
2698
|
"label-attributes": {
|
|
2699
|
-
info: i
|
|
2699
|
+
info: r(i)("form.fields.sentinel_password.tooltip"),
|
|
2700
2700
|
tooltipAttributes: { maxWidth: "400" }
|
|
2701
2701
|
},
|
|
2702
|
-
readonly:
|
|
2702
|
+
readonly: r(s).readonly,
|
|
2703
2703
|
"show-password-mask-toggle": "",
|
|
2704
2704
|
type: "password"
|
|
2705
2705
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2706
|
-
g(
|
|
2706
|
+
g(r(he), {
|
|
2707
2707
|
class: "secret-picker-provider",
|
|
2708
|
-
disabled:
|
|
2709
|
-
update: (f) =>
|
|
2710
|
-
value:
|
|
2711
|
-
onOpen: y[11] || (y[11] = (f, j) =>
|
|
2708
|
+
disabled: r(s).readonly,
|
|
2709
|
+
update: (f) => r(s).fields.config.sentinel_password = f,
|
|
2710
|
+
value: r(s).fields.config.sentinel_password,
|
|
2711
|
+
onOpen: y[11] || (y[11] = (f, j) => r(p)(f, j))
|
|
2712
2712
|
}, null, 8, ["disabled", "update", "value"])
|
|
2713
2713
|
]),
|
|
2714
2714
|
_: 1
|
|
2715
2715
|
}, 8, ["description", "title"])) : Z("", !0),
|
|
2716
|
-
|
|
2716
|
+
r(O) === r(T).CLUSTER ? (I(), N(r(ue), {
|
|
2717
2717
|
key: 3,
|
|
2718
2718
|
"data-testid": "redis-cluster-configuration-section",
|
|
2719
|
-
description: i
|
|
2720
|
-
title: i
|
|
2719
|
+
description: r(i)("form.sections.cluster.description"),
|
|
2720
|
+
title: r(i)("form.sections.cluster.title")
|
|
2721
2721
|
}, {
|
|
2722
2722
|
default: S(() => [
|
|
2723
2723
|
g(Ws, {
|
|
2724
|
-
modelValue:
|
|
2725
|
-
"onUpdate:modelValue": y[12] || (y[12] = (f) =>
|
|
2726
|
-
readonly:
|
|
2724
|
+
modelValue: r(s).fields.config.cluster_nodes,
|
|
2725
|
+
"onUpdate:modelValue": y[12] || (y[12] = (f) => r(s).fields.config.cluster_nodes = f),
|
|
2726
|
+
readonly: r(s).readonly
|
|
2727
2727
|
}, null, 8, ["modelValue", "readonly"]),
|
|
2728
2728
|
g(F, {
|
|
2729
|
-
modelValue:
|
|
2730
|
-
"onUpdate:modelValue": y[13] || (y[13] = (f) =>
|
|
2729
|
+
modelValue: r(s).fields.config.cluster_max_redirections,
|
|
2730
|
+
"onUpdate:modelValue": y[13] || (y[13] = (f) => r(s).fields.config.cluster_max_redirections = f),
|
|
2731
2731
|
"data-testid": "redis-cluster-max-redirections-input",
|
|
2732
|
-
label: i
|
|
2732
|
+
label: r(i)("form.fields.cluster_max_redirections.label"),
|
|
2733
2733
|
"label-attributes": {
|
|
2734
|
-
info: i
|
|
2734
|
+
info: r(i)("form.fields.cluster_max_redirections.tooltip"),
|
|
2735
2735
|
tooltipAttributes: { maxWidth: "400" }
|
|
2736
2736
|
},
|
|
2737
|
-
readonly:
|
|
2737
|
+
readonly: r(s).readonly,
|
|
2738
2738
|
type: "number"
|
|
2739
2739
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
2740
2740
|
]),
|
|
2741
2741
|
_: 1
|
|
2742
2742
|
}, 8, ["description", "title"])) : Z("", !0),
|
|
2743
|
-
g(
|
|
2743
|
+
g(r(ue), {
|
|
2744
2744
|
"data-testid": "redis-connection-configuration-section",
|
|
2745
|
-
description: i
|
|
2746
|
-
title: i
|
|
2745
|
+
description: r(i)("form.sections.connection.description"),
|
|
2746
|
+
title: r(i)("form.sections.connection.title")
|
|
2747
2747
|
}, {
|
|
2748
2748
|
default: S(() => [
|
|
2749
|
-
|
|
2749
|
+
r(O) === r(T).HOST_PORT_CE || r(O) === r(T).HOST_PORT_EE ? (I(), N(F, {
|
|
2750
2750
|
key: 0,
|
|
2751
|
-
modelValue:
|
|
2752
|
-
"onUpdate:modelValue": y[14] || (y[14] = (f) =>
|
|
2751
|
+
modelValue: r(s).fields.config.host,
|
|
2752
|
+
"onUpdate:modelValue": y[14] || (y[14] = (f) => r(s).fields.config.host = f),
|
|
2753
2753
|
modelModifiers: { trim: !0 },
|
|
2754
2754
|
"data-testid": "redis-host-input",
|
|
2755
|
-
label: i
|
|
2755
|
+
label: r(i)("form.fields.host.label"),
|
|
2756
2756
|
"label-attributes": {
|
|
2757
|
-
info: i
|
|
2757
|
+
info: r(i)("form.fields.host.tooltip"),
|
|
2758
2758
|
tooltipAttributes: { maxWidth: "400" }
|
|
2759
2759
|
},
|
|
2760
|
-
readonly:
|
|
2760
|
+
readonly: r(s).readonly
|
|
2761
2761
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : Z("", !0),
|
|
2762
|
-
|
|
2762
|
+
e.config.isHostReferenceable ? (I(), N(r(he), {
|
|
2763
2763
|
key: 1,
|
|
2764
2764
|
class: "secret-picker-provider",
|
|
2765
2765
|
"data-testid": "secret-picker-provider-for-host",
|
|
2766
|
-
disabled:
|
|
2767
|
-
update: (f) =>
|
|
2768
|
-
value:
|
|
2769
|
-
onOpen: y[15] || (y[15] = (f, j) =>
|
|
2766
|
+
disabled: r(s).readonly,
|
|
2767
|
+
update: (f) => r(s).fields.config.host = f,
|
|
2768
|
+
value: r(s).fields.config.host ?? "",
|
|
2769
|
+
onOpen: y[15] || (y[15] = (f, j) => r(p)(f, j))
|
|
2770
2770
|
}, null, 8, ["disabled", "update", "value"])) : Z("", !0),
|
|
2771
|
-
|
|
2771
|
+
r(O) === r(T).HOST_PORT_CE || r(O) === r(T).HOST_PORT_EE ? (I(), N(F, {
|
|
2772
2772
|
key: 2,
|
|
2773
|
-
modelValue:
|
|
2774
|
-
"onUpdate:modelValue": y[16] || (y[16] = (f) =>
|
|
2773
|
+
modelValue: r(s).fields.config.port,
|
|
2774
|
+
"onUpdate:modelValue": y[16] || (y[16] = (f) => r(s).fields.config.port = f),
|
|
2775
2775
|
modelModifiers: { trim: !0 },
|
|
2776
2776
|
"data-testid": "redis-port-input",
|
|
2777
|
-
label: i
|
|
2777
|
+
label: r(i)("form.fields.port.label"),
|
|
2778
2778
|
"label-attributes": {
|
|
2779
|
-
info: i
|
|
2779
|
+
info: r(i)("form.fields.port.tooltip"),
|
|
2780
2780
|
tooltipAttributes: { maxWidth: "400" }
|
|
2781
2781
|
},
|
|
2782
|
-
readonly:
|
|
2782
|
+
readonly: r(s).readonly
|
|
2783
2783
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : Z("", !0),
|
|
2784
|
-
|
|
2784
|
+
e.config.isPortReferenceable ? (I(), N(r(he), {
|
|
2785
2785
|
key: 3,
|
|
2786
2786
|
class: "secret-picker-provider",
|
|
2787
2787
|
"data-testid": "secret-picker-provider-for-port",
|
|
2788
|
-
disabled:
|
|
2789
|
-
update: (f) =>
|
|
2790
|
-
value: String(
|
|
2791
|
-
onOpen: y[17] || (y[17] = (f, j) =>
|
|
2788
|
+
disabled: r(s).readonly,
|
|
2789
|
+
update: (f) => r(s).fields.config.port = f,
|
|
2790
|
+
value: String(r(s).fields.config.port ?? ""),
|
|
2791
|
+
onOpen: y[17] || (y[17] = (f, j) => r(p)(f, j))
|
|
2792
2792
|
}, null, 8, ["disabled", "update", "value"])) : Z("", !0),
|
|
2793
|
-
|
|
2793
|
+
r(O) === r(T).HOST_PORT_EE ? (I(), N(C, {
|
|
2794
2794
|
key: 4,
|
|
2795
|
-
modelValue:
|
|
2796
|
-
"onUpdate:modelValue": y[18] || (y[18] = (f) =>
|
|
2795
|
+
modelValue: r(s).fields.config.connection_is_proxied,
|
|
2796
|
+
"onUpdate:modelValue": y[18] || (y[18] = (f) => r(s).fields.config.connection_is_proxied = f),
|
|
2797
2797
|
"data-testid": "redis-connection-is-proxied-checkbox",
|
|
2798
|
-
disabled:
|
|
2799
|
-
label: i
|
|
2798
|
+
disabled: r(s).readonly,
|
|
2799
|
+
label: r(i)("form.fields.connection_is_proxied.label"),
|
|
2800
2800
|
"label-attributes": {
|
|
2801
|
-
info: i
|
|
2801
|
+
info: r(i)("form.fields.connection_is_proxied.tooltip"),
|
|
2802
2802
|
tooltipAttributes: { maxWidth: "400" }
|
|
2803
2803
|
}
|
|
2804
2804
|
}, null, 8, ["modelValue", "disabled", "label", "label-attributes"])) : Z("", !0),
|
|
2805
|
-
|
|
2805
|
+
r(O) === r(T).HOST_PORT_CE ? (I(), N(F, {
|
|
2806
2806
|
key: 5,
|
|
2807
|
-
modelValue:
|
|
2808
|
-
"onUpdate:modelValue": y[19] || (y[19] = (f) =>
|
|
2807
|
+
modelValue: r(s).fields.config.timeout,
|
|
2808
|
+
"onUpdate:modelValue": y[19] || (y[19] = (f) => r(s).fields.config.timeout = f),
|
|
2809
2809
|
modelModifiers: { trim: !0 },
|
|
2810
2810
|
"data-testid": "redis-timeout-input",
|
|
2811
|
-
label: i
|
|
2811
|
+
label: r(i)("form.fields.timeout.label"),
|
|
2812
2812
|
"label-attributes": {
|
|
2813
|
-
info: i
|
|
2813
|
+
info: r(i)("form.fields.timeout.tooltip"),
|
|
2814
2814
|
tooltipAttributes: { maxWidth: "400" }
|
|
2815
2815
|
},
|
|
2816
|
-
readonly:
|
|
2816
|
+
readonly: r(s).readonly,
|
|
2817
2817
|
type: "number"
|
|
2818
2818
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : Z("", !0),
|
|
2819
2819
|
g(F, {
|
|
2820
|
-
modelValue:
|
|
2821
|
-
"onUpdate:modelValue": y[20] || (y[20] = (f) =>
|
|
2820
|
+
modelValue: r(s).fields.config.database,
|
|
2821
|
+
"onUpdate:modelValue": y[20] || (y[20] = (f) => r(s).fields.config.database = f),
|
|
2822
2822
|
modelModifiers: { trim: !0 },
|
|
2823
2823
|
"data-testid": "redis-database-input",
|
|
2824
|
-
label: i
|
|
2824
|
+
label: r(i)("form.fields.database.label"),
|
|
2825
2825
|
"label-attributes": {
|
|
2826
|
-
info: i
|
|
2826
|
+
info: r(i)("form.fields.database.tooltip"),
|
|
2827
2827
|
tooltipAttributes: { maxWidth: "400" }
|
|
2828
2828
|
},
|
|
2829
|
-
readonly:
|
|
2829
|
+
readonly: r(s).readonly,
|
|
2830
2830
|
type: "number"
|
|
2831
2831
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2832
2832
|
g(F, {
|
|
2833
|
-
modelValue:
|
|
2834
|
-
"onUpdate:modelValue": y[21] || (y[21] = (f) =>
|
|
2833
|
+
modelValue: r(s).fields.config.username,
|
|
2834
|
+
"onUpdate:modelValue": y[21] || (y[21] = (f) => r(s).fields.config.username = f),
|
|
2835
2835
|
modelModifiers: { trim: !0 },
|
|
2836
2836
|
"data-testid": "redis-username-input",
|
|
2837
|
-
label: i
|
|
2837
|
+
label: r(i)("form.fields.username.label"),
|
|
2838
2838
|
"label-attributes": {
|
|
2839
|
-
info: i
|
|
2839
|
+
info: r(i)("form.fields.username.tooltip"),
|
|
2840
2840
|
tooltipAttributes: { maxWidth: "400" }
|
|
2841
2841
|
},
|
|
2842
|
-
readonly:
|
|
2842
|
+
readonly: r(s).readonly
|
|
2843
2843
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2844
|
-
g(
|
|
2844
|
+
g(r(he), {
|
|
2845
2845
|
class: "secret-picker-provider",
|
|
2846
|
-
disabled:
|
|
2847
|
-
update: (f) =>
|
|
2848
|
-
value:
|
|
2849
|
-
onOpen: y[22] || (y[22] = (f, j) =>
|
|
2846
|
+
disabled: r(s).readonly,
|
|
2847
|
+
update: (f) => r(s).fields.config.username = f,
|
|
2848
|
+
value: r(s).fields.config.username,
|
|
2849
|
+
onOpen: y[22] || (y[22] = (f, j) => r(p)(f, j))
|
|
2850
2850
|
}, null, 8, ["disabled", "update", "value"]),
|
|
2851
2851
|
g(F, {
|
|
2852
|
-
modelValue:
|
|
2853
|
-
"onUpdate:modelValue": y[23] || (y[23] = (f) =>
|
|
2852
|
+
modelValue: r(s).fields.config.password,
|
|
2853
|
+
"onUpdate:modelValue": y[23] || (y[23] = (f) => r(s).fields.config.password = f),
|
|
2854
2854
|
modelModifiers: { trim: !0 },
|
|
2855
2855
|
"data-testid": "redis-password-input",
|
|
2856
|
-
label: i
|
|
2856
|
+
label: r(i)("form.fields.password.label"),
|
|
2857
2857
|
"label-attributes": {
|
|
2858
|
-
info: i
|
|
2858
|
+
info: r(i)("form.fields.password.tooltip"),
|
|
2859
2859
|
tooltipAttributes: { maxWidth: "400" }
|
|
2860
2860
|
},
|
|
2861
|
-
readonly:
|
|
2861
|
+
readonly: r(s).readonly,
|
|
2862
2862
|
"show-password-mask-toggle": "",
|
|
2863
2863
|
type: "password"
|
|
2864
2864
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2865
|
-
g(
|
|
2865
|
+
g(r(he), {
|
|
2866
2866
|
class: "secret-picker-provider",
|
|
2867
|
-
disabled:
|
|
2868
|
-
update: (f) =>
|
|
2869
|
-
value:
|
|
2870
|
-
onOpen: y[24] || (y[24] = (f, j) =>
|
|
2867
|
+
disabled: r(s).readonly,
|
|
2868
|
+
update: (f) => r(s).fields.config.password = f,
|
|
2869
|
+
value: r(s).fields.config.password,
|
|
2870
|
+
onOpen: y[24] || (y[24] = (f, j) => r(p)(f, j))
|
|
2871
2871
|
}, null, 8, ["disabled", "update", "value"])
|
|
2872
2872
|
]),
|
|
2873
2873
|
_: 1
|
|
2874
2874
|
}, 8, ["description", "title"]),
|
|
2875
|
-
g(
|
|
2875
|
+
g(r(ue), {
|
|
2876
2876
|
"data-testid": "redis-tls-configuration-section",
|
|
2877
|
-
description: i
|
|
2878
|
-
title: i
|
|
2877
|
+
description: r(i)("form.sections.tls.description"),
|
|
2878
|
+
title: r(i)("form.sections.tls.title")
|
|
2879
2879
|
}, {
|
|
2880
2880
|
default: S(() => [
|
|
2881
2881
|
g(C, {
|
|
2882
|
-
modelValue:
|
|
2883
|
-
"onUpdate:modelValue": y[25] || (y[25] = (f) =>
|
|
2882
|
+
modelValue: r(s).fields.config.ssl,
|
|
2883
|
+
"onUpdate:modelValue": y[25] || (y[25] = (f) => r(s).fields.config.ssl = f),
|
|
2884
2884
|
"data-testid": "redis-ssl-checkbox",
|
|
2885
|
-
description: i
|
|
2886
|
-
disabled:
|
|
2887
|
-
label: i
|
|
2885
|
+
description: r(i)("form.fields.ssl.description"),
|
|
2886
|
+
disabled: r(s).readonly,
|
|
2887
|
+
label: r(i)("form.fields.ssl.label"),
|
|
2888
2888
|
"label-attributes": {
|
|
2889
|
-
info: i
|
|
2889
|
+
info: r(i)("form.fields.ssl.tooltip"),
|
|
2890
2890
|
tooltipAttributes: { maxWidth: "400" }
|
|
2891
2891
|
}
|
|
2892
2892
|
}, null, 8, ["modelValue", "description", "disabled", "label", "label-attributes"]),
|
|
2893
2893
|
g(C, {
|
|
2894
|
-
modelValue:
|
|
2895
|
-
"onUpdate:modelValue": y[26] || (y[26] = (f) =>
|
|
2894
|
+
modelValue: r(s).fields.config.ssl_verify,
|
|
2895
|
+
"onUpdate:modelValue": y[26] || (y[26] = (f) => r(s).fields.config.ssl_verify = f),
|
|
2896
2896
|
"data-testid": "redis-ssl-verify-checkbox",
|
|
2897
|
-
description: i
|
|
2898
|
-
disabled:
|
|
2899
|
-
label: i
|
|
2897
|
+
description: r(i)("form.fields.ssl_verify.description"),
|
|
2898
|
+
disabled: r(s).readonly,
|
|
2899
|
+
label: r(i)("form.fields.ssl_verify.label"),
|
|
2900
2900
|
"label-attributes": {
|
|
2901
|
-
info: i
|
|
2901
|
+
info: r(i)("form.fields.ssl_verify.tooltip"),
|
|
2902
2902
|
tooltipAttributes: { maxWidth: "400" }
|
|
2903
2903
|
}
|
|
2904
2904
|
}, null, 8, ["modelValue", "description", "disabled", "label", "label-attributes"]),
|
|
2905
2905
|
g(F, {
|
|
2906
|
-
modelValue:
|
|
2907
|
-
"onUpdate:modelValue": y[27] || (y[27] = (f) =>
|
|
2906
|
+
modelValue: r(s).fields.config.server_name,
|
|
2907
|
+
"onUpdate:modelValue": y[27] || (y[27] = (f) => r(s).fields.config.server_name = f),
|
|
2908
2908
|
modelModifiers: { trim: !0 },
|
|
2909
2909
|
"data-testid": "redis-server_name-input",
|
|
2910
|
-
label: i
|
|
2910
|
+
label: r(i)("form.fields.server_name.label"),
|
|
2911
2911
|
"label-attributes": {
|
|
2912
|
-
info: i
|
|
2912
|
+
info: r(i)("form.fields.server_name.tooltip"),
|
|
2913
2913
|
tooltipAttributes: { maxWidth: "400" }
|
|
2914
2914
|
},
|
|
2915
|
-
readonly:
|
|
2915
|
+
readonly: r(s).readonly
|
|
2916
2916
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2917
|
-
|
|
2917
|
+
e.config.isServerNameReferenceable ? (I(), N(r(he), {
|
|
2918
2918
|
key: 0,
|
|
2919
2919
|
class: "secret-picker-provider",
|
|
2920
2920
|
"data-testid": "secret-picker-provider-for-server_name",
|
|
2921
|
-
disabled:
|
|
2922
|
-
update: (f) =>
|
|
2923
|
-
value:
|
|
2924
|
-
onOpen: y[28] || (y[28] = (f, j) =>
|
|
2921
|
+
disabled: r(s).readonly,
|
|
2922
|
+
update: (f) => r(s).fields.config.server_name = f,
|
|
2923
|
+
value: r(s).fields.config.server_name ?? "",
|
|
2924
|
+
onOpen: y[28] || (y[28] = (f, j) => r(p)(f, j))
|
|
2925
2925
|
}, null, 8, ["disabled", "update", "value"])) : Z("", !0)
|
|
2926
2926
|
]),
|
|
2927
2927
|
_: 1
|
|
2928
2928
|
}, 8, ["description", "title"]),
|
|
2929
|
-
|
|
2929
|
+
r(O) !== r(T).HOST_PORT_CE ? (I(), N(r(ue), {
|
|
2930
2930
|
key: 4,
|
|
2931
2931
|
"data-testid": "redis-keepalive-section",
|
|
2932
|
-
description: i
|
|
2933
|
-
title: i
|
|
2932
|
+
description: r(i)("form.sections.keepalive.description"),
|
|
2933
|
+
title: r(i)("form.sections.keepalive.title")
|
|
2934
2934
|
}, {
|
|
2935
2935
|
default: S(() => [
|
|
2936
2936
|
g(F, {
|
|
2937
|
-
modelValue:
|
|
2938
|
-
"onUpdate:modelValue": y[29] || (y[29] = (f) =>
|
|
2937
|
+
modelValue: r(s).fields.config.keepalive_backlog,
|
|
2938
|
+
"onUpdate:modelValue": y[29] || (y[29] = (f) => r(s).fields.config.keepalive_backlog = f),
|
|
2939
2939
|
"data-testid": "redis-keepalive-backlog-input",
|
|
2940
|
-
label: i
|
|
2940
|
+
label: r(i)("form.fields.keepalive_backlog.label"),
|
|
2941
2941
|
"label-attributes": {
|
|
2942
|
-
info: i
|
|
2942
|
+
info: r(i)("form.fields.keepalive_backlog.tooltip"),
|
|
2943
2943
|
tooltipAttributes: { maxWidth: "400" }
|
|
2944
2944
|
},
|
|
2945
|
-
readonly:
|
|
2945
|
+
readonly: r(s).readonly,
|
|
2946
2946
|
type: "number"
|
|
2947
2947
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2948
2948
|
g(F, {
|
|
2949
|
-
modelValue:
|
|
2950
|
-
"onUpdate:modelValue": y[30] || (y[30] = (f) =>
|
|
2949
|
+
modelValue: r(s).fields.config.keepalive_pool_size,
|
|
2950
|
+
"onUpdate:modelValue": y[30] || (y[30] = (f) => r(s).fields.config.keepalive_pool_size = f),
|
|
2951
2951
|
"data-testid": "redis-keepalive-pool-size-input",
|
|
2952
|
-
label: i
|
|
2952
|
+
label: r(i)("form.fields.keepalive_pool_size.label"),
|
|
2953
2953
|
"label-attributes": {
|
|
2954
|
-
info: i
|
|
2954
|
+
info: r(i)("form.fields.keepalive_pool_size.tooltip"),
|
|
2955
2955
|
tooltipAttributes: { maxWidth: "400" }
|
|
2956
2956
|
},
|
|
2957
|
-
readonly:
|
|
2957
|
+
readonly: r(s).readonly,
|
|
2958
2958
|
type: "number"
|
|
2959
2959
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
2960
2960
|
]),
|
|
2961
2961
|
_: 1
|
|
2962
2962
|
}, 8, ["description", "title"])) : Z("", !0),
|
|
2963
|
-
|
|
2963
|
+
r(O) !== r(T).HOST_PORT_CE ? (I(), N(r(ue), {
|
|
2964
2964
|
key: 5,
|
|
2965
2965
|
"data-testid": "redis-read-write-configuration-section",
|
|
2966
|
-
description: i
|
|
2967
|
-
title: i
|
|
2966
|
+
description: r(i)("form.sections.read_write_configuration.description"),
|
|
2967
|
+
title: r(i)("form.sections.read_write_configuration.title")
|
|
2968
2968
|
}, {
|
|
2969
2969
|
default: S(() => [
|
|
2970
2970
|
g(F, {
|
|
2971
|
-
modelValue:
|
|
2972
|
-
"onUpdate:modelValue": y[31] || (y[31] = (f) =>
|
|
2971
|
+
modelValue: r(s).fields.config.read_timeout,
|
|
2972
|
+
"onUpdate:modelValue": y[31] || (y[31] = (f) => r(s).fields.config.read_timeout = f),
|
|
2973
2973
|
"data-testid": "redis-read-timeout-input",
|
|
2974
|
-
label: i
|
|
2974
|
+
label: r(i)("form.fields.read_timeout.label"),
|
|
2975
2975
|
"label-attributes": {
|
|
2976
|
-
info: i
|
|
2976
|
+
info: r(i)("form.fields.read_timeout.tooltip"),
|
|
2977
2977
|
tooltipAttributes: { maxWidth: "400" }
|
|
2978
2978
|
},
|
|
2979
|
-
readonly:
|
|
2979
|
+
readonly: r(s).readonly,
|
|
2980
2980
|
type: "number"
|
|
2981
2981
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2982
2982
|
g(F, {
|
|
2983
|
-
modelValue:
|
|
2984
|
-
"onUpdate:modelValue": y[32] || (y[32] = (f) =>
|
|
2983
|
+
modelValue: r(s).fields.config.send_timeout,
|
|
2984
|
+
"onUpdate:modelValue": y[32] || (y[32] = (f) => r(s).fields.config.send_timeout = f),
|
|
2985
2985
|
"data-testid": "redis-send-timeout-input",
|
|
2986
|
-
label: i
|
|
2986
|
+
label: r(i)("form.fields.send_timeout.label"),
|
|
2987
2987
|
"label-attributes": {
|
|
2988
|
-
info: i
|
|
2988
|
+
info: r(i)("form.fields.send_timeout.tooltip"),
|
|
2989
2989
|
tooltipAttributes: { maxWidth: "400" }
|
|
2990
2990
|
},
|
|
2991
|
-
readonly:
|
|
2991
|
+
readonly: r(s).readonly,
|
|
2992
2992
|
type: "number"
|
|
2993
2993
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2994
2994
|
g(F, {
|
|
2995
|
-
modelValue:
|
|
2996
|
-
"onUpdate:modelValue": y[33] || (y[33] = (f) =>
|
|
2995
|
+
modelValue: r(s).fields.config.connect_timeout,
|
|
2996
|
+
"onUpdate:modelValue": y[33] || (y[33] = (f) => r(s).fields.config.connect_timeout = f),
|
|
2997
2997
|
"data-testid": "redis-connect-timeout-input",
|
|
2998
|
-
label: i
|
|
2998
|
+
label: r(i)("form.fields.connect_timeout.label"),
|
|
2999
2999
|
"label-attributes": {
|
|
3000
|
-
info: i
|
|
3000
|
+
info: r(i)("form.fields.connect_timeout.tooltip"),
|
|
3001
3001
|
tooltipAttributes: { maxWidth: "400" }
|
|
3002
3002
|
},
|
|
3003
|
-
readonly:
|
|
3003
|
+
readonly: r(s).readonly,
|
|
3004
3004
|
type: "number"
|
|
3005
3005
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
3006
3006
|
]),
|
|
@@ -3010,29 +3010,29 @@ const Fe = (e) => {
|
|
|
3010
3010
|
_: 1
|
|
3011
3011
|
}, 8, ["action-teleport-target", "can-submit", "config", "edit-id", "entity-type", "error-message", "fetch-url", "form-fields", "is-readonly", "slidout-top-offset"])
|
|
3012
3012
|
]),
|
|
3013
|
-
g(
|
|
3013
|
+
g(r(wn), {
|
|
3014
3014
|
config: n.config,
|
|
3015
|
-
setup:
|
|
3015
|
+
setup: r(c),
|
|
3016
3016
|
onCancel: y[35] || (y[35] = () => c.value = !1),
|
|
3017
|
-
onProceed:
|
|
3017
|
+
onProceed: r(l)
|
|
3018
3018
|
}, null, 8, ["config", "setup", "onProceed"]),
|
|
3019
3019
|
g(R, {
|
|
3020
|
-
"action-button-text": i
|
|
3020
|
+
"action-button-text": r(i)("form.edit_warning_modal.confirm"),
|
|
3021
3021
|
"data-testid": "redis-update-warning-modal",
|
|
3022
3022
|
"hide-cancel-button": "",
|
|
3023
3023
|
"max-width": "640",
|
|
3024
|
-
title: i
|
|
3024
|
+
title: r(i)("form.edit_warning_modal.title"),
|
|
3025
3025
|
visible: ie.value,
|
|
3026
3026
|
onCancel: y[36] || (y[36] = (f) => ie.value = !1),
|
|
3027
3027
|
onProceed: Se
|
|
3028
3028
|
}, {
|
|
3029
3029
|
default: S(() => [
|
|
3030
|
-
g(
|
|
3030
|
+
g(r(a), {
|
|
3031
3031
|
keypath: "form.edit_warning_modal.description",
|
|
3032
3032
|
tag: "div"
|
|
3033
3033
|
}, {
|
|
3034
3034
|
pluginCount: S(() => [
|
|
3035
|
-
K("b", null, B(i
|
|
3035
|
+
K("b", null, B(r(i)("form.edit_warning_modal.plugin_count", { count: re.value })), 1)
|
|
3036
3036
|
]),
|
|
3037
3037
|
_: 1
|
|
3038
3038
|
})
|
|
@@ -3042,7 +3042,7 @@ const Fe = (e) => {
|
|
|
3042
3042
|
], 64);
|
|
3043
3043
|
};
|
|
3044
3044
|
}
|
|
3045
|
-
}), cd = /* @__PURE__ */ te(ud, [["__scopeId", "data-v-
|
|
3045
|
+
}), cd = /* @__PURE__ */ te(ud, [["__scopeId", "data-v-c53820f0"]]), fd = {
|
|
3046
3046
|
class: "linked-plugins",
|
|
3047
3047
|
"data-testid": "linked-plugins-inline"
|
|
3048
3048
|
}, bt = 7, pd = /* @__PURE__ */ Y({
|
|
@@ -3063,20 +3063,20 @@ const Fe = (e) => {
|
|
|
3063
3063
|
config: t.config,
|
|
3064
3064
|
partialId: t.partialId
|
|
3065
3065
|
});
|
|
3066
|
-
return (o,
|
|
3066
|
+
return (o, i) => {
|
|
3067
3067
|
const a = $("KBadge");
|
|
3068
3068
|
return I(), J("div", fd, [
|
|
3069
|
-
(I(!0), J(fe, null, tt(
|
|
3069
|
+
(I(!0), J(fe, null, tt(r(n).slice(0, bt), (c) => (I(), N(r(En), {
|
|
3070
3070
|
key: c.id,
|
|
3071
3071
|
name: c.name,
|
|
3072
3072
|
size: 24
|
|
3073
3073
|
}, null, 8, ["name"]))), 128)),
|
|
3074
|
-
|
|
3074
|
+
r(n).length - bt > 0 ? (I(), N(a, {
|
|
3075
3075
|
key: 0,
|
|
3076
3076
|
appearance: "info"
|
|
3077
3077
|
}, {
|
|
3078
3078
|
default: S(() => [
|
|
3079
|
-
le(" +" + B(
|
|
3079
|
+
le(" +" + B(r(n).length - bt), 1)
|
|
3080
3080
|
]),
|
|
3081
3081
|
_: 1
|
|
3082
3082
|
})) : Z("", !0)
|
|
@@ -3090,7 +3090,7 @@ const Fe = (e) => {
|
|
|
3090
3090
|
},
|
|
3091
3091
|
setup(e) {
|
|
3092
3092
|
return (t, n) => (I(), J("div", _d, [
|
|
3093
|
-
g(
|
|
3093
|
+
g(r(En), {
|
|
3094
3094
|
name: e.pluginName,
|
|
3095
3095
|
size: 24
|
|
3096
3096
|
}, null, 8, ["name"]),
|
|
@@ -3123,9 +3123,9 @@ const Fe = (e) => {
|
|
|
3123
3123
|
},
|
|
3124
3124
|
emits: ["view-plugin", "load"],
|
|
3125
3125
|
setup(e, { emit: t }) {
|
|
3126
|
-
const n = e, o = t, { i18n: { t:
|
|
3127
|
-
{ key: "name", label:
|
|
3128
|
-
{ key: "instance_name", label:
|
|
3126
|
+
const n = e, o = t, { i18n: { t: i } } = ye.useI18n(), a = [
|
|
3127
|
+
{ key: "name", label: i("linked_plugins_modal.headers.plugin") },
|
|
3128
|
+
{ key: "instance_name", label: i("linked_plugins_modal.headers.instance_name") },
|
|
3129
3129
|
{ key: "actions", hideLabel: !0 }
|
|
3130
3130
|
], { fetcher: c } = Fe(n.config), p = x(0), l = async (m) => {
|
|
3131
3131
|
const { data: b, count: _ } = await c({
|
|
@@ -3146,13 +3146,13 @@ const Fe = (e) => {
|
|
|
3146
3146
|
isExactMatch: !1,
|
|
3147
3147
|
fields: { name: { searchable: !0 } },
|
|
3148
3148
|
schema: { name: { type: "text" } }
|
|
3149
|
-
}),
|
|
3149
|
+
}), w = (m) => {
|
|
3150
3150
|
o("view-plugin", { id: m.id, plugin: m.name });
|
|
3151
3151
|
};
|
|
3152
3152
|
return (m, b) => {
|
|
3153
3153
|
const _ = $("KDropdownItem"), E = $("KTableData");
|
|
3154
3154
|
return I(), N(E, {
|
|
3155
|
-
"cache-identifier":
|
|
3155
|
+
"cache-identifier": r(ci)(e.partialId),
|
|
3156
3156
|
fetcher: l,
|
|
3157
3157
|
headers: a,
|
|
3158
3158
|
"hide-pagination-when-optional": "",
|
|
@@ -3164,10 +3164,10 @@ const Fe = (e) => {
|
|
|
3164
3164
|
]),
|
|
3165
3165
|
"action-items": S(({ row: s }) => [
|
|
3166
3166
|
g(_, {
|
|
3167
|
-
onClick: (A) =>
|
|
3167
|
+
onClick: (A) => w(s)
|
|
3168
3168
|
}, {
|
|
3169
3169
|
default: S(() => [
|
|
3170
|
-
le(B(i
|
|
3170
|
+
le(B(r(i)("actions.view_plugin")), 1)
|
|
3171
3171
|
]),
|
|
3172
3172
|
_: 1
|
|
3173
3173
|
}, 8, ["onClick"])
|
|
@@ -3178,7 +3178,7 @@ const Fe = (e) => {
|
|
|
3178
3178
|
name: "toolbar",
|
|
3179
3179
|
fn: S(() => [
|
|
3180
3180
|
K("div", yd, [
|
|
3181
|
-
g(
|
|
3181
|
+
g(r(hn), {
|
|
3182
3182
|
modelValue: u.value,
|
|
3183
3183
|
"onUpdate:modelValue": b[0] || (b[0] = (s) => u.value = s),
|
|
3184
3184
|
config: v.value
|
|
@@ -3213,7 +3213,7 @@ const Fe = (e) => {
|
|
|
3213
3213
|
},
|
|
3214
3214
|
emits: ["cancel", "proceed", "view-plugin"],
|
|
3215
3215
|
setup(e, { emit: t }) {
|
|
3216
|
-
const n = t, { i18n: { t: o } } = ye.useI18n(),
|
|
3216
|
+
const n = t, { i18n: { t: o } } = ye.useI18n(), i = x(0), a = z(() => o("linked_plugins_modal.title", { count: i.value })), c = () => {
|
|
3217
3217
|
n("cancel");
|
|
3218
3218
|
}, p = () => {
|
|
3219
3219
|
n("proceed");
|
|
@@ -3222,7 +3222,7 @@ const Fe = (e) => {
|
|
|
3222
3222
|
const v = $("KModal");
|
|
3223
3223
|
return I(), J("div", wd, [
|
|
3224
3224
|
g(v, {
|
|
3225
|
-
"action-button-text":
|
|
3225
|
+
"action-button-text": r(o)("actions.done"),
|
|
3226
3226
|
"hide-cancel-button": "",
|
|
3227
3227
|
title: a.value,
|
|
3228
3228
|
visible: e.visible,
|
|
@@ -3233,8 +3233,8 @@ const Fe = (e) => {
|
|
|
3233
3233
|
g(hd, {
|
|
3234
3234
|
config: e.config,
|
|
3235
3235
|
"partial-id": e.redisConfigurationId,
|
|
3236
|
-
onLoad: u[0] || (u[0] = ({ total:
|
|
3237
|
-
onViewPlugin: u[1] || (u[1] = (
|
|
3236
|
+
onLoad: u[0] || (u[0] = ({ total: w }) => i.value = w),
|
|
3237
|
+
onViewPlugin: u[1] || (u[1] = (w) => n("view-plugin", w))
|
|
3238
3238
|
}, null, 8, ["config", "partial-id"])
|
|
3239
3239
|
]),
|
|
3240
3240
|
_: 1
|
|
@@ -3252,23 +3252,23 @@ const Fe = (e) => {
|
|
|
3252
3252
|
},
|
|
3253
3253
|
emits: ["close"],
|
|
3254
3254
|
setup(e, { emit: t }) {
|
|
3255
|
-
const { i18n: { t: n } } = ye.useI18n(), o = t,
|
|
3255
|
+
const { i18n: { t: n } } = ye.useI18n(), o = t, i = () => {
|
|
3256
3256
|
o("close");
|
|
3257
3257
|
};
|
|
3258
3258
|
return (a, c) => {
|
|
3259
3259
|
const p = $("KModal");
|
|
3260
3260
|
return I(), N(p, {
|
|
3261
|
-
"action-button-text":
|
|
3261
|
+
"action-button-text": r(n)("actions.close"),
|
|
3262
3262
|
"data-testid": "remove-links-modal",
|
|
3263
3263
|
"hide-cancel-button": "",
|
|
3264
3264
|
"max-width": "640",
|
|
3265
|
-
title:
|
|
3265
|
+
title: r(n)("delete.title"),
|
|
3266
3266
|
visible: e.visible,
|
|
3267
|
-
onCancel:
|
|
3268
|
-
onProceed:
|
|
3267
|
+
onCancel: i,
|
|
3268
|
+
onProceed: i
|
|
3269
3269
|
}, {
|
|
3270
3270
|
default: S(() => [
|
|
3271
|
-
le(B(
|
|
3271
|
+
le(B(r(n)("delete.warning")), 1)
|
|
3272
3272
|
]),
|
|
3273
3273
|
_: 1
|
|
3274
3274
|
}, 8, ["action-button-text", "title", "visible"]);
|
|
@@ -3321,11 +3321,11 @@ const Fe = (e) => {
|
|
|
3321
3321
|
emits: ["click:learn-more", "click:plugin", "copy:error", "copy:success", "delete:success", "error"],
|
|
3322
3322
|
setup(e, { emit: t }) {
|
|
3323
3323
|
var F;
|
|
3324
|
-
const n = t, o = e,
|
|
3324
|
+
const n = t, o = e, i = z(() => {
|
|
3325
3325
|
var R, f;
|
|
3326
3326
|
let C = `${o.config.apiBaseUrl}${Me.list[o.config.app]}`;
|
|
3327
3327
|
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, (f = o.config) != null && f.workspace ? `/${o.config.workspace}` : "")), C;
|
|
3328
|
-
}), a = x(!1), c = x(""), p = x(null), l = x(void 0), u = x(!1), v = x(!1),
|
|
3328
|
+
}), a = x(!1), c = x(""), p = x(null), l = x(void 0), u = x(!1), v = x(!1), w = x(""), m = x(!1), b = Oi(o.config, i.value), _ = x(1), E = z(() => o.config.app !== "kongManager" || !!o.config.disableSorting), { fetcher: s, fetcherState: A } = Ri(o.config, i);
|
|
3329
3329
|
async function k(C) {
|
|
3330
3330
|
const R = await s({ ...C, pageSize: kd });
|
|
3331
3331
|
return R.data = R.data.filter((f) => f.type === Q.REDIS_CE || f.type === Q.REDIS_EE), R;
|
|
@@ -3380,7 +3380,7 @@ const Fe = (e) => {
|
|
|
3380
3380
|
try {
|
|
3381
3381
|
await O.delete(b(l.value.id)), v.value = !1, u.value = !1, ze(), n("delete:success", l.value);
|
|
3382
3382
|
} catch (j) {
|
|
3383
|
-
|
|
3383
|
+
w.value = ((f = (R = j.response) == null ? void 0 : R.data) == null ? void 0 : f.message) || j.message || d("errors.delete"), n("error", j);
|
|
3384
3384
|
} finally {
|
|
3385
3385
|
v.value = !1;
|
|
3386
3386
|
}
|
|
@@ -3389,13 +3389,13 @@ const Fe = (e) => {
|
|
|
3389
3389
|
_.value++;
|
|
3390
3390
|
}, H = (C) => {
|
|
3391
3391
|
switch (Be(C)) {
|
|
3392
|
-
case
|
|
3392
|
+
case T.HOST_PORT_CE:
|
|
3393
3393
|
return `${d("form.options.type.host_port")}${d("form.options.type.suffix_open_source")}`;
|
|
3394
|
-
case
|
|
3394
|
+
case T.HOST_PORT_EE:
|
|
3395
3395
|
return `${d("form.options.type.host_port")}${d("form.options.type.suffix_enterprise")}`;
|
|
3396
|
-
case
|
|
3396
|
+
case T.SENTINEL:
|
|
3397
3397
|
return `${d("form.options.type.sentinel")}${d("form.options.type.suffix_enterprise")}`;
|
|
3398
|
-
case
|
|
3398
|
+
case T.CLUSTER:
|
|
3399
3399
|
return `${d("form.options.type.cluster")}${d("form.options.type.suffix_enterprise")}`;
|
|
3400
3400
|
}
|
|
3401
3401
|
}, y = () => {
|
|
@@ -3434,7 +3434,7 @@ const Fe = (e) => {
|
|
|
3434
3434
|
}), (C, R) => {
|
|
3435
3435
|
const f = $("KButton"), j = $("KDropdownItem"), mi = $("KClipboardProvider"), _i = $("KEmptyState");
|
|
3436
3436
|
return I(), J("div", Cd, [
|
|
3437
|
-
g(
|
|
3437
|
+
g(r(Ai), {
|
|
3438
3438
|
"cache-identifier": e.cacheIdentifier,
|
|
3439
3439
|
"disable-sorting": E.value,
|
|
3440
3440
|
"empty-state-options": de.value,
|
|
@@ -3451,7 +3451,7 @@ const Fe = (e) => {
|
|
|
3451
3451
|
onSort: ze
|
|
3452
3452
|
}, {
|
|
3453
3453
|
"toolbar-filter": S(() => [
|
|
3454
|
-
g(
|
|
3454
|
+
g(r(hn), {
|
|
3455
3455
|
modelValue: W.value,
|
|
3456
3456
|
"onUpdate:modelValue": R[0] || (R[0] = (L) => W.value = L),
|
|
3457
3457
|
config: X.value
|
|
@@ -3462,7 +3462,7 @@ const Fe = (e) => {
|
|
|
3462
3462
|
disabled: !e.useActionOutside,
|
|
3463
3463
|
to: "#kong-ui-app-page-header-action-button"
|
|
3464
3464
|
}, [
|
|
3465
|
-
g(
|
|
3465
|
+
g(r(Ke), { "auth-function": e.canCreate }, {
|
|
3466
3466
|
default: S(() => [
|
|
3467
3467
|
g(f, {
|
|
3468
3468
|
appearance: "primary",
|
|
@@ -3471,8 +3471,8 @@ const Fe = (e) => {
|
|
|
3471
3471
|
to: e.config.createRoute
|
|
3472
3472
|
}, {
|
|
3473
3473
|
default: S(() => [
|
|
3474
|
-
g(
|
|
3475
|
-
le(" " + B(
|
|
3474
|
+
g(r(yt)),
|
|
3475
|
+
le(" " + B(r(d)("actions.create")), 1)
|
|
3476
3476
|
]),
|
|
3477
3477
|
_: 1
|
|
3478
3478
|
}, 8, ["to"])
|
|
@@ -3488,7 +3488,7 @@ const Fe = (e) => {
|
|
|
3488
3488
|
le(B(H(L)), 1)
|
|
3489
3489
|
]),
|
|
3490
3490
|
tags: S(({ rowValue: L }) => [
|
|
3491
|
-
g(
|
|
3491
|
+
g(r(Pi), { tags: L }, null, 8, ["tags"])
|
|
3492
3492
|
]),
|
|
3493
3493
|
plugins: S(({ row: L }) => [
|
|
3494
3494
|
g(md, {
|
|
@@ -3505,14 +3505,14 @@ const Fe = (e) => {
|
|
|
3505
3505
|
onClick: (Ld) => lt(L, st)
|
|
3506
3506
|
}, {
|
|
3507
3507
|
default: S(() => [
|
|
3508
|
-
le(B(
|
|
3508
|
+
le(B(r(d)("actions.copy_id")), 1)
|
|
3509
3509
|
]),
|
|
3510
3510
|
_: 1
|
|
3511
3511
|
}, 8, ["onClick"])
|
|
3512
3512
|
]),
|
|
3513
3513
|
_: 2
|
|
3514
3514
|
}, 1024),
|
|
3515
|
-
g(
|
|
3515
|
+
g(r(Ke), {
|
|
3516
3516
|
"auth-function": () => e.canRetrieve(L)
|
|
3517
3517
|
}, {
|
|
3518
3518
|
default: S(() => [
|
|
@@ -3524,7 +3524,7 @@ const Fe = (e) => {
|
|
|
3524
3524
|
]),
|
|
3525
3525
|
_: 2
|
|
3526
3526
|
}, 1032, ["auth-function"]),
|
|
3527
|
-
g(
|
|
3527
|
+
g(r(Ke), {
|
|
3528
3528
|
"auth-function": () => e.canEdit(L)
|
|
3529
3529
|
}, {
|
|
3530
3530
|
default: S(() => [
|
|
@@ -3535,7 +3535,7 @@ const Fe = (e) => {
|
|
|
3535
3535
|
]),
|
|
3536
3536
|
_: 2
|
|
3537
3537
|
}, 1032, ["auth-function"]),
|
|
3538
|
-
g(
|
|
3538
|
+
g(r(Ke), {
|
|
3539
3539
|
"auth-function": () => e.canDelete(L)
|
|
3540
3540
|
}, {
|
|
3541
3541
|
default: S(() => [
|
|
@@ -3546,7 +3546,7 @@ const Fe = (e) => {
|
|
|
3546
3546
|
onClick: (st) => oe(L)
|
|
3547
3547
|
}, {
|
|
3548
3548
|
default: S(() => [
|
|
3549
|
-
le(B(
|
|
3549
|
+
le(B(r(d)("actions.delete")), 1)
|
|
3550
3550
|
]),
|
|
3551
3551
|
_: 1
|
|
3552
3552
|
}, 8, ["onClick"])
|
|
@@ -3556,37 +3556,37 @@ const Fe = (e) => {
|
|
|
3556
3556
|
]),
|
|
3557
3557
|
"empty-state": S(() => [
|
|
3558
3558
|
g(_i, {
|
|
3559
|
-
"action-button-text":
|
|
3559
|
+
"action-button-text": r(d)("list.action"),
|
|
3560
3560
|
"action-button-visible": Ee.value,
|
|
3561
3561
|
"data-testid": "redis-entity-empty-state",
|
|
3562
3562
|
features: [
|
|
3563
3563
|
{
|
|
3564
3564
|
key: "feature-1",
|
|
3565
|
-
title:
|
|
3566
|
-
description:
|
|
3565
|
+
title: r(d)("list.empty_state.feature_1.title"),
|
|
3566
|
+
description: r(d)("list.empty_state.feature_1.description")
|
|
3567
3567
|
},
|
|
3568
3568
|
{
|
|
3569
3569
|
key: "feature-2",
|
|
3570
|
-
title:
|
|
3571
|
-
description:
|
|
3570
|
+
title: r(d)("list.empty_state.feature_2.title"),
|
|
3571
|
+
description: r(d)("list.empty_state.feature_2.description")
|
|
3572
3572
|
}
|
|
3573
3573
|
],
|
|
3574
3574
|
"icon-background": "",
|
|
3575
|
-
message:
|
|
3576
|
-
title:
|
|
3575
|
+
message: r(d)("list.empty_state.description"),
|
|
3576
|
+
title: r(d)("redis.title"),
|
|
3577
3577
|
onClickAction: y
|
|
3578
3578
|
}, {
|
|
3579
3579
|
icon: S(() => [
|
|
3580
|
-
g(
|
|
3580
|
+
g(r(Ni), { decorative: "" })
|
|
3581
3581
|
]),
|
|
3582
3582
|
"feature-icon-feature-1": S(() => [
|
|
3583
|
-
g(
|
|
3583
|
+
g(r(Ui))
|
|
3584
3584
|
]),
|
|
3585
3585
|
"feature-icon-feature-2": S(() => [
|
|
3586
|
-
g(
|
|
3586
|
+
g(r(Li))
|
|
3587
3587
|
]),
|
|
3588
3588
|
"action-button-icon": S(() => [
|
|
3589
|
-
g(
|
|
3589
|
+
g(r(yt), { decorative: "" })
|
|
3590
3590
|
]),
|
|
3591
3591
|
_: 1
|
|
3592
3592
|
}, 8, ["action-button-text", "action-button-visible", "features", "message", "title"])
|
|
@@ -3597,14 +3597,14 @@ const Fe = (e) => {
|
|
|
3597
3597
|
visible: m.value,
|
|
3598
3598
|
onClose: R[2] || (R[2] = (L) => m.value = !1)
|
|
3599
3599
|
}, null, 8, ["visible"]),
|
|
3600
|
-
g(
|
|
3600
|
+
g(r($i), {
|
|
3601
3601
|
"action-pending": v.value,
|
|
3602
|
-
description:
|
|
3602
|
+
description: r(d)("delete.description"),
|
|
3603
3603
|
"entity-name": l.value && (l.value.name || l.value.id),
|
|
3604
|
-
"entity-type":
|
|
3605
|
-
error:
|
|
3604
|
+
"entity-type": r(Vi).RedisConfiguration,
|
|
3605
|
+
error: w.value,
|
|
3606
3606
|
"need-confirmation": !0,
|
|
3607
|
-
title:
|
|
3607
|
+
title: r(d)("delete.title"),
|
|
3608
3608
|
visible: u.value,
|
|
3609
3609
|
onCancel: xe,
|
|
3610
3610
|
onProceed: at
|
|
@@ -3647,23 +3647,23 @@ const Fe = (e) => {
|
|
|
3647
3647
|
},
|
|
3648
3648
|
emits: ["loading", "fetch:error", "fetch:success"],
|
|
3649
3649
|
setup(e, { emit: t }) {
|
|
3650
|
-
const n = e, o = t, { i18n: { t:
|
|
3650
|
+
const n = e, o = t, { i18n: { t: i } } = ye.useI18n(), a = z(() => Me.form[n.config.app].edit), c = x($e), p = (_) => {
|
|
3651
3651
|
c.value = Be(_), o("fetch:success", _);
|
|
3652
3652
|
}, l = z(() => {
|
|
3653
|
-
const _ = c.value ===
|
|
3653
|
+
const _ = c.value === T.HOST_PORT_CE ? i("form.options.type.suffix_open_source") : i("form.options.type.suffix_enterprise");
|
|
3654
3654
|
let E = "";
|
|
3655
3655
|
switch (c.value) {
|
|
3656
|
-
case
|
|
3657
|
-
E =
|
|
3656
|
+
case T.HOST_PORT_CE:
|
|
3657
|
+
E = i("form.options.type.host_port");
|
|
3658
3658
|
break;
|
|
3659
|
-
case
|
|
3660
|
-
E =
|
|
3659
|
+
case T.HOST_PORT_EE:
|
|
3660
|
+
E = i("form.options.type.host_port");
|
|
3661
3661
|
break;
|
|
3662
|
-
case
|
|
3663
|
-
E =
|
|
3662
|
+
case T.CLUSTER:
|
|
3663
|
+
E = i("form.options.type.cluster");
|
|
3664
3664
|
break;
|
|
3665
|
-
case
|
|
3666
|
-
E =
|
|
3665
|
+
case T.SENTINEL:
|
|
3666
|
+
E = i("form.options.type.sentinel");
|
|
3667
3667
|
break;
|
|
3668
3668
|
}
|
|
3669
3669
|
return `${E}${_}`;
|
|
@@ -3698,177 +3698,177 @@ const Fe = (e) => {
|
|
|
3698
3698
|
type: O,
|
|
3699
3699
|
config: W
|
|
3700
3700
|
};
|
|
3701
|
-
},
|
|
3701
|
+
}, w = {
|
|
3702
3702
|
id: {},
|
|
3703
3703
|
name: {
|
|
3704
3704
|
type: M.Text,
|
|
3705
3705
|
section: V.Basic,
|
|
3706
|
-
label:
|
|
3706
|
+
label: i("form.fields.name.label")
|
|
3707
3707
|
},
|
|
3708
3708
|
tags: {
|
|
3709
3709
|
type: M.BadgeTag,
|
|
3710
3710
|
section: V.Basic,
|
|
3711
|
-
label:
|
|
3712
|
-
tooltip:
|
|
3711
|
+
label: i("form.fields.tags.label"),
|
|
3712
|
+
tooltip: i("form.fields.tags.tooltip")
|
|
3713
3713
|
},
|
|
3714
3714
|
updated_at: {},
|
|
3715
3715
|
created_at: {},
|
|
3716
3716
|
type: {
|
|
3717
3717
|
type: M.Text,
|
|
3718
3718
|
section: V.Basic,
|
|
3719
|
-
label:
|
|
3719
|
+
label: i("form.fields.type.label")
|
|
3720
3720
|
},
|
|
3721
3721
|
cluster_max_redirections: {
|
|
3722
3722
|
type: M.Text,
|
|
3723
3723
|
section: V.Basic,
|
|
3724
|
-
tooltip:
|
|
3725
|
-
label:
|
|
3724
|
+
tooltip: i("form.fields.cluster_max_redirections.tooltip"),
|
|
3725
|
+
label: i("form.fields.cluster_max_redirections.label")
|
|
3726
3726
|
},
|
|
3727
3727
|
cluster_nodes: {
|
|
3728
3728
|
type: M.JsonArray,
|
|
3729
3729
|
section: V.Basic,
|
|
3730
|
-
label:
|
|
3731
|
-
tooltip:
|
|
3730
|
+
label: i("form.fields.cluster_nodes.title"),
|
|
3731
|
+
tooltip: i("form.fields.cluster_nodes.tooltip")
|
|
3732
3732
|
},
|
|
3733
3733
|
connect_timeout: {
|
|
3734
3734
|
type: M.Text,
|
|
3735
3735
|
section: V.Basic,
|
|
3736
|
-
label:
|
|
3737
|
-
tooltip:
|
|
3736
|
+
label: i("form.fields.connect_timeout.label"),
|
|
3737
|
+
tooltip: i("form.fields.connect_timeout.tooltip")
|
|
3738
3738
|
},
|
|
3739
3739
|
connection_is_proxied: {
|
|
3740
3740
|
type: M.Text,
|
|
3741
3741
|
section: V.Basic,
|
|
3742
|
-
label:
|
|
3743
|
-
tooltip:
|
|
3742
|
+
label: i("form.fields.connection_is_proxied.label"),
|
|
3743
|
+
tooltip: i("form.fields.connection_is_proxied.tooltip")
|
|
3744
3744
|
},
|
|
3745
3745
|
database: {
|
|
3746
3746
|
type: M.Text,
|
|
3747
3747
|
section: V.Basic,
|
|
3748
|
-
label:
|
|
3749
|
-
tooltip:
|
|
3748
|
+
label: i("form.fields.database.label"),
|
|
3749
|
+
tooltip: i("form.fields.database.tooltip")
|
|
3750
3750
|
},
|
|
3751
3751
|
host: {
|
|
3752
3752
|
type: M.Text,
|
|
3753
3753
|
section: V.Basic,
|
|
3754
|
-
label:
|
|
3755
|
-
tooltip:
|
|
3754
|
+
label: i("form.fields.host.label"),
|
|
3755
|
+
tooltip: i("form.fields.host.tooltip")
|
|
3756
3756
|
},
|
|
3757
3757
|
keepalive_backlog: {
|
|
3758
3758
|
type: M.Text,
|
|
3759
3759
|
section: V.Basic,
|
|
3760
|
-
label:
|
|
3761
|
-
tooltip:
|
|
3760
|
+
label: i("form.fields.keepalive_backlog.label"),
|
|
3761
|
+
tooltip: i("form.fields.keepalive_backlog.tooltip")
|
|
3762
3762
|
},
|
|
3763
3763
|
keepalive_pool_size: {
|
|
3764
3764
|
type: M.Text,
|
|
3765
3765
|
section: V.Basic,
|
|
3766
|
-
label:
|
|
3767
|
-
tooltip:
|
|
3766
|
+
label: i("form.fields.keepalive_pool_size.label"),
|
|
3767
|
+
tooltip: i("form.fields.keepalive_pool_size.tooltip")
|
|
3768
3768
|
},
|
|
3769
3769
|
password: {
|
|
3770
3770
|
type: M.Redacted,
|
|
3771
3771
|
section: V.Basic,
|
|
3772
|
-
label:
|
|
3773
|
-
tooltip:
|
|
3772
|
+
label: i("form.fields.password.label"),
|
|
3773
|
+
tooltip: i("form.fields.password.tooltip")
|
|
3774
3774
|
},
|
|
3775
3775
|
port: {
|
|
3776
3776
|
type: M.Text,
|
|
3777
3777
|
section: V.Basic,
|
|
3778
|
-
label:
|
|
3779
|
-
tooltip:
|
|
3778
|
+
label: i("form.fields.port.label"),
|
|
3779
|
+
tooltip: i("form.fields.port.tooltip")
|
|
3780
3780
|
},
|
|
3781
3781
|
read_timeout: {
|
|
3782
3782
|
type: M.Text,
|
|
3783
3783
|
section: V.Basic,
|
|
3784
|
-
label:
|
|
3785
|
-
tooltip:
|
|
3784
|
+
label: i("form.fields.read_timeout.label"),
|
|
3785
|
+
tooltip: i("form.fields.read_timeout.tooltip")
|
|
3786
3786
|
},
|
|
3787
3787
|
send_timeout: {
|
|
3788
3788
|
type: M.Text,
|
|
3789
3789
|
section: V.Basic,
|
|
3790
|
-
label:
|
|
3791
|
-
tooltip:
|
|
3790
|
+
label: i("form.fields.send_timeout.label"),
|
|
3791
|
+
tooltip: i("form.fields.send_timeout.tooltip")
|
|
3792
3792
|
},
|
|
3793
3793
|
sentinel_master: {
|
|
3794
3794
|
type: M.Text,
|
|
3795
3795
|
section: V.Basic,
|
|
3796
|
-
label:
|
|
3797
|
-
tooltip:
|
|
3796
|
+
label: i("form.fields.sentinel_master.label"),
|
|
3797
|
+
tooltip: i("form.fields.sentinel_master.tooltip")
|
|
3798
3798
|
},
|
|
3799
3799
|
sentinel_nodes: {
|
|
3800
3800
|
type: M.JsonArray,
|
|
3801
3801
|
section: V.Basic,
|
|
3802
|
-
tooltip:
|
|
3802
|
+
tooltip: i("form.fields.sentinel_nodes.tooltip")
|
|
3803
3803
|
},
|
|
3804
3804
|
sentinel_password: {
|
|
3805
3805
|
type: M.Redacted,
|
|
3806
3806
|
section: V.Basic,
|
|
3807
|
-
label:
|
|
3808
|
-
tooltip:
|
|
3807
|
+
label: i("form.fields.sentinel_password.label"),
|
|
3808
|
+
tooltip: i("form.fields.sentinel_password.tooltip")
|
|
3809
3809
|
},
|
|
3810
3810
|
sentinel_role: {
|
|
3811
3811
|
type: M.Text,
|
|
3812
3812
|
section: V.Basic,
|
|
3813
|
-
label:
|
|
3814
|
-
tooltip:
|
|
3813
|
+
label: i("form.fields.sentinel_role.label"),
|
|
3814
|
+
tooltip: i("form.fields.sentinel_role.tooltip")
|
|
3815
3815
|
},
|
|
3816
3816
|
sentinel_username: {
|
|
3817
3817
|
type: M.Text,
|
|
3818
3818
|
section: V.Basic,
|
|
3819
|
-
label:
|
|
3820
|
-
tooltip:
|
|
3819
|
+
label: i("form.fields.sentinel_username.label"),
|
|
3820
|
+
tooltip: i("form.fields.sentinel_username.tooltip")
|
|
3821
3821
|
},
|
|
3822
3822
|
server_name: {
|
|
3823
3823
|
type: M.Text,
|
|
3824
3824
|
section: V.Basic,
|
|
3825
|
-
label:
|
|
3826
|
-
tooltip:
|
|
3825
|
+
label: i("form.fields.server_name.label"),
|
|
3826
|
+
tooltip: i("form.fields.server_name.tooltip")
|
|
3827
3827
|
},
|
|
3828
3828
|
ssl_verify: {
|
|
3829
3829
|
type: M.Text,
|
|
3830
3830
|
section: V.Basic,
|
|
3831
|
-
label:
|
|
3832
|
-
tooltip:
|
|
3831
|
+
label: i("form.fields.ssl_verify.label"),
|
|
3832
|
+
tooltip: i("form.fields.ssl_verify.tooltip")
|
|
3833
3833
|
},
|
|
3834
3834
|
ssl: {
|
|
3835
3835
|
type: M.Text,
|
|
3836
3836
|
section: V.Basic,
|
|
3837
|
-
label:
|
|
3838
|
-
tooltip:
|
|
3837
|
+
label: i("form.fields.ssl.label"),
|
|
3838
|
+
tooltip: i("form.fields.ssl.tooltip")
|
|
3839
3839
|
},
|
|
3840
3840
|
timeout: {
|
|
3841
3841
|
type: M.Text,
|
|
3842
3842
|
section: V.Basic,
|
|
3843
|
-
label:
|
|
3844
|
-
tooltip:
|
|
3843
|
+
label: i("form.fields.timeout.label"),
|
|
3844
|
+
tooltip: i("form.fields.timeout.tooltip")
|
|
3845
3845
|
},
|
|
3846
3846
|
username: {
|
|
3847
3847
|
type: M.Text,
|
|
3848
3848
|
section: V.Basic,
|
|
3849
|
-
label:
|
|
3850
|
-
tooltip:
|
|
3849
|
+
label: i("form.fields.username.label"),
|
|
3850
|
+
tooltip: i("form.fields.username.tooltip")
|
|
3851
3851
|
},
|
|
3852
3852
|
cloud_authentication: {
|
|
3853
3853
|
type: M.Json,
|
|
3854
3854
|
section: V.Basic,
|
|
3855
|
-
label:
|
|
3855
|
+
label: i("form.sections.cloud_auth.title")
|
|
3856
3856
|
}
|
|
3857
3857
|
}, m = (_) => {
|
|
3858
|
-
const E = {}, s = Object.keys(
|
|
3858
|
+
const E = {}, s = Object.keys(w);
|
|
3859
3859
|
for (const A of s)
|
|
3860
3860
|
_.includes(A) ? E[A] = {
|
|
3861
|
-
...
|
|
3861
|
+
...w[A],
|
|
3862
3862
|
order: _.indexOf(A) + 1
|
|
3863
3863
|
} : E[A] = {
|
|
3864
|
-
...
|
|
3864
|
+
...w[A],
|
|
3865
3865
|
hidden: !0
|
|
3866
3866
|
};
|
|
3867
3867
|
return E;
|
|
3868
3868
|
}, b = z(() => {
|
|
3869
3869
|
const _ = ["id", "name", "tags", "type", "updated_at", "created_at"];
|
|
3870
3870
|
switch (c.value) {
|
|
3871
|
-
case
|
|
3871
|
+
case T.HOST_PORT_CE:
|
|
3872
3872
|
return m([
|
|
3873
3873
|
..._,
|
|
3874
3874
|
"host",
|
|
@@ -3882,7 +3882,7 @@ const Fe = (e) => {
|
|
|
3882
3882
|
"server_name",
|
|
3883
3883
|
"cloud_authentication"
|
|
3884
3884
|
]);
|
|
3885
|
-
case
|
|
3885
|
+
case T.HOST_PORT_EE:
|
|
3886
3886
|
return m([
|
|
3887
3887
|
..._,
|
|
3888
3888
|
"host",
|
|
@@ -3901,7 +3901,7 @@ const Fe = (e) => {
|
|
|
3901
3901
|
"connect_timeout",
|
|
3902
3902
|
"cloud_authentication"
|
|
3903
3903
|
]);
|
|
3904
|
-
case
|
|
3904
|
+
case T.CLUSTER:
|
|
3905
3905
|
return m([
|
|
3906
3906
|
..._,
|
|
3907
3907
|
"cluster_nodes",
|
|
@@ -3919,7 +3919,7 @@ const Fe = (e) => {
|
|
|
3919
3919
|
"connect_timeout",
|
|
3920
3920
|
"cloud_authentication"
|
|
3921
3921
|
]);
|
|
3922
|
-
case
|
|
3922
|
+
case T.SENTINEL:
|
|
3923
3923
|
return m([
|
|
3924
3924
|
..._,
|
|
3925
3925
|
"sentinel_master",
|
|
@@ -3944,12 +3944,12 @@ const Fe = (e) => {
|
|
|
3944
3944
|
}
|
|
3945
3945
|
});
|
|
3946
3946
|
return (_, E) => (I(), J("div", Od, [
|
|
3947
|
-
g(
|
|
3947
|
+
g(r(Mi), {
|
|
3948
3948
|
"code-block-record-formatter": v,
|
|
3949
3949
|
config: e.config,
|
|
3950
3950
|
"config-card-doc": e.configCardDoc,
|
|
3951
3951
|
"config-schema": b.value,
|
|
3952
|
-
"entity-type":
|
|
3952
|
+
"entity-type": r(vn).Partial,
|
|
3953
3953
|
"fetch-url": a.value,
|
|
3954
3954
|
"hide-title": e.hideTitle,
|
|
3955
3955
|
"record-resolver": u,
|
|
@@ -3968,7 +3968,7 @@ const Fe = (e) => {
|
|
|
3968
3968
|
function pi(e) {
|
|
3969
3969
|
const {
|
|
3970
3970
|
redisType: t = "redis-ce"
|
|
3971
|
-
} = e, n = "1000", o = bn(Cn), { i18n: { t:
|
|
3971
|
+
} = e, n = "1000", o = bn(Cn), { i18n: { t: i } } = ot();
|
|
3972
3972
|
if (!o)
|
|
3973
3973
|
throw new Error("FORMS_CONFIG must be provided");
|
|
3974
3974
|
const {
|
|
@@ -3982,20 +3982,20 @@ function pi(e) {
|
|
|
3982
3982
|
searchKeys: ["id", "name"]
|
|
3983
3983
|
}), v = (m) => {
|
|
3984
3984
|
switch (m) {
|
|
3985
|
-
case
|
|
3986
|
-
return
|
|
3987
|
-
case
|
|
3988
|
-
return
|
|
3989
|
-
case
|
|
3990
|
-
return
|
|
3991
|
-
case
|
|
3992
|
-
return `${
|
|
3985
|
+
case T.CLUSTER:
|
|
3986
|
+
return i("form.options.type.cluster");
|
|
3987
|
+
case T.HOST_PORT_CE:
|
|
3988
|
+
return i("form.options.type.host_port");
|
|
3989
|
+
case T.SENTINEL:
|
|
3990
|
+
return i("form.options.type.sentinel");
|
|
3991
|
+
case T.HOST_PORT_EE:
|
|
3992
|
+
return `${i("form.options.type.host_port")} (${i("form.options.type.enterprise")})`;
|
|
3993
3993
|
}
|
|
3994
|
-
},
|
|
3994
|
+
}, w = z(() => (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: v(Be(b)) })).filter((b) => b.type === t));
|
|
3995
3995
|
return _n(() => {
|
|
3996
3996
|
l();
|
|
3997
3997
|
}), {
|
|
3998
|
-
items:
|
|
3998
|
+
items: w,
|
|
3999
3999
|
loading: c,
|
|
4000
4000
|
onQueryChange: a,
|
|
4001
4001
|
error: p,
|
|
@@ -4010,8 +4010,8 @@ const xd = ["id"], Ad = /* @__PURE__ */ Y({
|
|
|
4010
4010
|
},
|
|
4011
4011
|
emits: ["toast", "modal-close", "created"],
|
|
4012
4012
|
setup(e, { emit: t }) {
|
|
4013
|
-
const n = t, { i18n: { t: o } } = ot(),
|
|
4014
|
-
...
|
|
4013
|
+
const n = t, { i18n: { t: o } } = ot(), i = bn(Cn), a = z(() => ({
|
|
4014
|
+
...i,
|
|
4015
4015
|
cancelRoute: void 0
|
|
4016
4016
|
})), { getMessageFromError: c } = yn(), p = Ci(), l = z(() => {
|
|
4017
4017
|
switch (e.partialType) {
|
|
@@ -4022,7 +4022,7 @@ const xd = ["id"], Ad = /* @__PURE__ */ Y({
|
|
|
4022
4022
|
default:
|
|
4023
4023
|
return;
|
|
4024
4024
|
}
|
|
4025
|
-
}), u = x(!1), v = x(),
|
|
4025
|
+
}), u = x(!1), v = x(), w = (_) => {
|
|
4026
4026
|
n("toast", {
|
|
4027
4027
|
message: c(_),
|
|
4028
4028
|
appearance: "danger"
|
|
@@ -4050,13 +4050,13 @@ const xd = ["id"], Ad = /* @__PURE__ */ Y({
|
|
|
4050
4050
|
class: "plugin-redis-partial-form",
|
|
4051
4051
|
"data-testid": "redis-partial-form-modal",
|
|
4052
4052
|
"full-screen": "",
|
|
4053
|
-
title:
|
|
4053
|
+
title: r(o)("form.redis_partial_modal_title"),
|
|
4054
4054
|
visible: u.value,
|
|
4055
4055
|
onCancel: b
|
|
4056
4056
|
}, {
|
|
4057
4057
|
footer: S(() => [
|
|
4058
4058
|
K("div", {
|
|
4059
|
-
id: `redis-modal-footer-${
|
|
4059
|
+
id: `redis-modal-footer-${r(p)}`,
|
|
4060
4060
|
class: "redis-modal-footer"
|
|
4061
4061
|
}, null, 8, xd)
|
|
4062
4062
|
]),
|
|
@@ -4067,7 +4067,7 @@ const xd = ["id"], Ad = /* @__PURE__ */ Y({
|
|
|
4067
4067
|
"disabled-partial-type": l.value,
|
|
4068
4068
|
"slidout-top-offset": 0,
|
|
4069
4069
|
onCancel: b,
|
|
4070
|
-
onError:
|
|
4070
|
+
onError: w,
|
|
4071
4071
|
onUpdate: m
|
|
4072
4072
|
}, null, 8, ["action-teleport-target", "config", "disabled-partial-type"])
|
|
4073
4073
|
]),
|
|
@@ -4095,7 +4095,7 @@ const xd = ["id"], Ad = /* @__PURE__ */ Y({
|
|
|
4095
4095
|
emits: ["update:modelValue", "change", "create-new", "error-change", "modal-close", "toast"],
|
|
4096
4096
|
setup(e, { emit: t }) {
|
|
4097
4097
|
const n = t, { i18n: { t: o } } = ot(), {
|
|
4098
|
-
items:
|
|
4098
|
+
items: i,
|
|
4099
4099
|
loading: a,
|
|
4100
4100
|
onQueryChange: c,
|
|
4101
4101
|
error: p,
|
|
@@ -4105,7 +4105,7 @@ const xd = ["id"], Ad = /* @__PURE__ */ Y({
|
|
|
4105
4105
|
}), u = x(!1), v = (_) => {
|
|
4106
4106
|
const E = _ == null ? void 0 : _.value;
|
|
4107
4107
|
n("update:modelValue", E), n("change", _);
|
|
4108
|
-
},
|
|
4108
|
+
}, w = () => {
|
|
4109
4109
|
u.value = !0;
|
|
4110
4110
|
}, m = () => {
|
|
4111
4111
|
u.value = !1, n("modal-close");
|
|
@@ -4125,13 +4125,13 @@ const xd = ["id"], Ad = /* @__PURE__ */ Y({
|
|
|
4125
4125
|
class: "redis-config-select-trigger",
|
|
4126
4126
|
"enable-filtering": "",
|
|
4127
4127
|
"filter-function": () => !0,
|
|
4128
|
-
items: i
|
|
4129
|
-
loading:
|
|
4128
|
+
items: r(i),
|
|
4129
|
+
loading: r(a),
|
|
4130
4130
|
"model-value": e.modelValue,
|
|
4131
|
-
placeholder: e.placeholder ||
|
|
4131
|
+
placeholder: e.placeholder || r(o)("selector.placeholder")
|
|
4132
4132
|
}, _.$attrs, {
|
|
4133
4133
|
onChange: v,
|
|
4134
|
-
onQueryChange:
|
|
4134
|
+
onQueryChange: r(c)
|
|
4135
4135
|
}), gn({
|
|
4136
4136
|
"selected-item-template": S(({ item: k }) => [
|
|
4137
4137
|
K("div", $d, B(k.name), 1)
|
|
@@ -4154,7 +4154,7 @@ const xd = ["id"], Ad = /* @__PURE__ */ Y({
|
|
|
4154
4154
|
], 8, Vd)
|
|
4155
4155
|
]),
|
|
4156
4156
|
empty: S(() => [
|
|
4157
|
-
K("div", Dd, B(e.emptyStateText ||
|
|
4157
|
+
K("div", Dd, B(e.emptyStateText || r(o)("selector.empty_state")), 1)
|
|
4158
4158
|
]),
|
|
4159
4159
|
_: 2
|
|
4160
4160
|
}, [
|
|
@@ -4164,10 +4164,10 @@ const xd = ["id"], Ad = /* @__PURE__ */ Y({
|
|
|
4164
4164
|
K("div", {
|
|
4165
4165
|
class: "new-redis-config-area",
|
|
4166
4166
|
"data-testid": "new-redis-config-area",
|
|
4167
|
-
onClick:
|
|
4167
|
+
onClick: w
|
|
4168
4168
|
}, [
|
|
4169
|
-
g(
|
|
4170
|
-
K("span", null, B(e.createButtonText ||
|
|
4169
|
+
g(r(yt), { size: r(Rd) }, null, 8, ["size"]),
|
|
4170
|
+
K("span", null, B(e.createButtonText || r(o)("selector.create_new")), 1)
|
|
4171
4171
|
])
|
|
4172
4172
|
]),
|
|
4173
4173
|
key: "0"
|
|
@@ -4198,7 +4198,7 @@ export {
|
|
|
4198
4198
|
Pd as RedisConfigurationFormModal,
|
|
4199
4199
|
Qd as RedisConfigurationList,
|
|
4200
4200
|
Xd as RedisConfigurationSelector,
|
|
4201
|
-
|
|
4201
|
+
T as RedisType,
|
|
4202
4202
|
eu as composables,
|
|
4203
4203
|
Jd as constants,
|
|
4204
4204
|
Zd as helpers
|