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