@kong-ui-public/entities-redis-configurations 1.6.6 → 1.7.1
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 +701 -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 +11 -11
|
@@ -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,33 @@ 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
|
+
"data-testid": "secret-picker-provider-for-port",
|
|
2779
|
+
disabled: r(s).readonly,
|
|
2780
|
+
update: (f) => r(s).fields.config.port = f,
|
|
2781
|
+
value: String(r(s).fields.config.port ?? ""),
|
|
2782
|
+
onOpen: v[16] || (v[16] = (f, B) => r(p)(f, B))
|
|
2783
|
+
}, null, 8, ["disabled", "update", "value"])) : X("", !0),
|
|
2784
|
+
r(O) === r(T).HOST_PORT_EE ? (I(), F(C, {
|
|
2785
|
+
key: 3,
|
|
2786
|
+
modelValue: r(s).fields.config.connection_is_proxied,
|
|
2787
|
+
"onUpdate:modelValue": v[17] || (v[17] = (f) => r(s).fields.config.connection_is_proxied = f),
|
|
2772
2788
|
"data-testid": "redis-connection-is-proxied-checkbox",
|
|
2773
|
-
disabled: r(
|
|
2789
|
+
disabled: r(s).readonly,
|
|
2774
2790
|
label: r(i)("form.fields.connection_is_proxied.label"),
|
|
2775
2791
|
"label-attributes": {
|
|
2776
2792
|
info: r(i)("form.fields.connection_is_proxied.tooltip"),
|
|
2777
2793
|
tooltipAttributes: { maxWidth: "400" }
|
|
2778
2794
|
}
|
|
2779
2795
|
}, 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[
|
|
2796
|
+
r(O) === r(T).HOST_PORT_CE ? (I(), F(N, {
|
|
2797
|
+
key: 4,
|
|
2798
|
+
modelValue: r(s).fields.config.timeout,
|
|
2799
|
+
"onUpdate:modelValue": v[18] || (v[18] = (f) => r(s).fields.config.timeout = f),
|
|
2784
2800
|
modelModifiers: { trim: !0 },
|
|
2785
2801
|
"data-testid": "redis-timeout-input",
|
|
2786
2802
|
label: r(i)("form.fields.timeout.label"),
|
|
@@ -2788,12 +2804,12 @@ const Fe = (e) => {
|
|
|
2788
2804
|
info: r(i)("form.fields.timeout.tooltip"),
|
|
2789
2805
|
tooltipAttributes: { maxWidth: "400" }
|
|
2790
2806
|
},
|
|
2791
|
-
readonly: r(
|
|
2807
|
+
readonly: r(s).readonly,
|
|
2792
2808
|
type: "number"
|
|
2793
2809
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : X("", !0),
|
|
2794
2810
|
g(N, {
|
|
2795
|
-
modelValue: r(
|
|
2796
|
-
"onUpdate:modelValue": v[
|
|
2811
|
+
modelValue: r(s).fields.config.database,
|
|
2812
|
+
"onUpdate:modelValue": v[19] || (v[19] = (f) => r(s).fields.config.database = f),
|
|
2797
2813
|
modelModifiers: { trim: !0 },
|
|
2798
2814
|
"data-testid": "redis-database-input",
|
|
2799
2815
|
label: r(i)("form.fields.database.label"),
|
|
@@ -2801,12 +2817,12 @@ const Fe = (e) => {
|
|
|
2801
2817
|
info: r(i)("form.fields.database.tooltip"),
|
|
2802
2818
|
tooltipAttributes: { maxWidth: "400" }
|
|
2803
2819
|
},
|
|
2804
|
-
readonly: r(
|
|
2820
|
+
readonly: r(s).readonly,
|
|
2805
2821
|
type: "number"
|
|
2806
2822
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2807
2823
|
g(N, {
|
|
2808
|
-
modelValue: r(
|
|
2809
|
-
"onUpdate:modelValue": v[
|
|
2824
|
+
modelValue: r(s).fields.config.username,
|
|
2825
|
+
"onUpdate:modelValue": v[20] || (v[20] = (f) => r(s).fields.config.username = f),
|
|
2810
2826
|
modelModifiers: { trim: !0 },
|
|
2811
2827
|
"data-testid": "redis-username-input",
|
|
2812
2828
|
label: r(i)("form.fields.username.label"),
|
|
@@ -2814,18 +2830,18 @@ const Fe = (e) => {
|
|
|
2814
2830
|
info: r(i)("form.fields.username.tooltip"),
|
|
2815
2831
|
tooltipAttributes: { maxWidth: "400" }
|
|
2816
2832
|
},
|
|
2817
|
-
readonly: r(
|
|
2833
|
+
readonly: r(s).readonly
|
|
2818
2834
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2819
|
-
g(r(
|
|
2835
|
+
g(r(xe), {
|
|
2820
2836
|
class: "secret-picker-provider",
|
|
2821
|
-
disabled: r(
|
|
2822
|
-
update: (
|
|
2823
|
-
value: r(
|
|
2824
|
-
onOpen: v[
|
|
2837
|
+
disabled: r(s).readonly,
|
|
2838
|
+
update: (f) => r(s).fields.config.username = f,
|
|
2839
|
+
value: r(s).fields.config.username,
|
|
2840
|
+
onOpen: v[21] || (v[21] = (f, B) => r(p)(f, B))
|
|
2825
2841
|
}, null, 8, ["disabled", "update", "value"]),
|
|
2826
2842
|
g(N, {
|
|
2827
|
-
modelValue: r(
|
|
2828
|
-
"onUpdate:modelValue": v[
|
|
2843
|
+
modelValue: r(s).fields.config.password,
|
|
2844
|
+
"onUpdate:modelValue": v[22] || (v[22] = (f) => r(s).fields.config.password = f),
|
|
2829
2845
|
modelModifiers: { trim: !0 },
|
|
2830
2846
|
"data-testid": "redis-password-input",
|
|
2831
2847
|
label: r(i)("form.fields.password.label"),
|
|
@@ -2833,16 +2849,16 @@ const Fe = (e) => {
|
|
|
2833
2849
|
info: r(i)("form.fields.password.tooltip"),
|
|
2834
2850
|
tooltipAttributes: { maxWidth: "400" }
|
|
2835
2851
|
},
|
|
2836
|
-
readonly: r(
|
|
2852
|
+
readonly: r(s).readonly,
|
|
2837
2853
|
"show-password-mask-toggle": "",
|
|
2838
2854
|
type: "password"
|
|
2839
2855
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2840
|
-
g(r(
|
|
2856
|
+
g(r(xe), {
|
|
2841
2857
|
class: "secret-picker-provider",
|
|
2842
|
-
disabled: r(
|
|
2843
|
-
update: (
|
|
2844
|
-
value: r(
|
|
2845
|
-
onOpen: v[
|
|
2858
|
+
disabled: r(s).readonly,
|
|
2859
|
+
update: (f) => r(s).fields.config.password = f,
|
|
2860
|
+
value: r(s).fields.config.password,
|
|
2861
|
+
onOpen: v[23] || (v[23] = (f, B) => r(p)(f, B))
|
|
2846
2862
|
}, null, 8, ["disabled", "update", "value"])
|
|
2847
2863
|
]),
|
|
2848
2864
|
_: 1
|
|
@@ -2854,11 +2870,11 @@ const Fe = (e) => {
|
|
|
2854
2870
|
}, {
|
|
2855
2871
|
default: S(() => [
|
|
2856
2872
|
g(C, {
|
|
2857
|
-
modelValue: r(
|
|
2858
|
-
"onUpdate:modelValue": v[
|
|
2873
|
+
modelValue: r(s).fields.config.ssl,
|
|
2874
|
+
"onUpdate:modelValue": v[24] || (v[24] = (f) => r(s).fields.config.ssl = f),
|
|
2859
2875
|
"data-testid": "redis-ssl-checkbox",
|
|
2860
2876
|
description: r(i)("form.fields.ssl.description"),
|
|
2861
|
-
disabled: r(
|
|
2877
|
+
disabled: r(s).readonly,
|
|
2862
2878
|
label: r(i)("form.fields.ssl.label"),
|
|
2863
2879
|
"label-attributes": {
|
|
2864
2880
|
info: r(i)("form.fields.ssl.tooltip"),
|
|
@@ -2866,11 +2882,11 @@ const Fe = (e) => {
|
|
|
2866
2882
|
}
|
|
2867
2883
|
}, null, 8, ["modelValue", "description", "disabled", "label", "label-attributes"]),
|
|
2868
2884
|
g(C, {
|
|
2869
|
-
modelValue: r(
|
|
2870
|
-
"onUpdate:modelValue": v[
|
|
2885
|
+
modelValue: r(s).fields.config.ssl_verify,
|
|
2886
|
+
"onUpdate:modelValue": v[25] || (v[25] = (f) => r(s).fields.config.ssl_verify = f),
|
|
2871
2887
|
"data-testid": "redis-ssl-verify-checkbox",
|
|
2872
2888
|
description: r(i)("form.fields.ssl_verify.description"),
|
|
2873
|
-
disabled: r(
|
|
2889
|
+
disabled: r(s).readonly,
|
|
2874
2890
|
label: r(i)("form.fields.ssl_verify.label"),
|
|
2875
2891
|
"label-attributes": {
|
|
2876
2892
|
info: r(i)("form.fields.ssl_verify.tooltip"),
|
|
@@ -2878,20 +2894,20 @@ const Fe = (e) => {
|
|
|
2878
2894
|
}
|
|
2879
2895
|
}, null, 8, ["modelValue", "description", "disabled", "label", "label-attributes"]),
|
|
2880
2896
|
g(N, {
|
|
2881
|
-
modelValue: r(
|
|
2882
|
-
"onUpdate:modelValue": v[
|
|
2897
|
+
modelValue: r(s).fields.config.server_name,
|
|
2898
|
+
"onUpdate:modelValue": v[26] || (v[26] = (f) => r(s).fields.config.server_name = f),
|
|
2883
2899
|
modelModifiers: { trim: !0 },
|
|
2884
2900
|
label: r(i)("form.fields.server_name.label"),
|
|
2885
2901
|
"label-attributes": {
|
|
2886
2902
|
info: r(i)("form.fields.server_name.tooltip"),
|
|
2887
2903
|
tooltipAttributes: { maxWidth: "400" }
|
|
2888
2904
|
},
|
|
2889
|
-
readonly: r(
|
|
2905
|
+
readonly: r(s).readonly
|
|
2890
2906
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
2891
2907
|
]),
|
|
2892
2908
|
_: 1
|
|
2893
2909
|
}, 8, ["description", "title"]),
|
|
2894
|
-
r(O) !== r(T).HOST_PORT_CE ? (
|
|
2910
|
+
r(O) !== r(T).HOST_PORT_CE ? (I(), F(r(ue), {
|
|
2895
2911
|
key: 4,
|
|
2896
2912
|
"data-testid": "redis-keepalive-section",
|
|
2897
2913
|
description: r(i)("form.sections.keepalive.description"),
|
|
@@ -2899,33 +2915,33 @@ const Fe = (e) => {
|
|
|
2899
2915
|
}, {
|
|
2900
2916
|
default: S(() => [
|
|
2901
2917
|
g(N, {
|
|
2902
|
-
modelValue: r(
|
|
2903
|
-
"onUpdate:modelValue": v[
|
|
2918
|
+
modelValue: r(s).fields.config.keepalive_backlog,
|
|
2919
|
+
"onUpdate:modelValue": v[27] || (v[27] = (f) => r(s).fields.config.keepalive_backlog = f),
|
|
2904
2920
|
"data-testid": "redis-keepalive-backlog-input",
|
|
2905
2921
|
label: r(i)("form.fields.keepalive_backlog.label"),
|
|
2906
2922
|
"label-attributes": {
|
|
2907
2923
|
info: r(i)("form.fields.keepalive_backlog.tooltip"),
|
|
2908
2924
|
tooltipAttributes: { maxWidth: "400" }
|
|
2909
2925
|
},
|
|
2910
|
-
readonly: r(
|
|
2926
|
+
readonly: r(s).readonly,
|
|
2911
2927
|
type: "number"
|
|
2912
2928
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2913
2929
|
g(N, {
|
|
2914
|
-
modelValue: r(
|
|
2915
|
-
"onUpdate:modelValue": v[
|
|
2930
|
+
modelValue: r(s).fields.config.keepalive_pool_size,
|
|
2931
|
+
"onUpdate:modelValue": v[28] || (v[28] = (f) => r(s).fields.config.keepalive_pool_size = f),
|
|
2916
2932
|
"data-testid": "redis-keepalive-pool-size-input",
|
|
2917
2933
|
label: r(i)("form.fields.keepalive_pool_size.label"),
|
|
2918
2934
|
"label-attributes": {
|
|
2919
2935
|
info: r(i)("form.fields.keepalive_pool_size.tooltip"),
|
|
2920
2936
|
tooltipAttributes: { maxWidth: "400" }
|
|
2921
2937
|
},
|
|
2922
|
-
readonly: r(
|
|
2938
|
+
readonly: r(s).readonly,
|
|
2923
2939
|
type: "number"
|
|
2924
2940
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
2925
2941
|
]),
|
|
2926
2942
|
_: 1
|
|
2927
2943
|
}, 8, ["description", "title"])) : X("", !0),
|
|
2928
|
-
r(O) !== r(T).HOST_PORT_CE ? (
|
|
2944
|
+
r(O) !== r(T).HOST_PORT_CE ? (I(), F(r(ue), {
|
|
2929
2945
|
key: 5,
|
|
2930
2946
|
"data-testid": "redis-read-write-configuration-section",
|
|
2931
2947
|
description: r(i)("form.sections.read_write_configuration.description"),
|
|
@@ -2933,39 +2949,39 @@ const Fe = (e) => {
|
|
|
2933
2949
|
}, {
|
|
2934
2950
|
default: S(() => [
|
|
2935
2951
|
g(N, {
|
|
2936
|
-
modelValue: r(
|
|
2937
|
-
"onUpdate:modelValue": v[
|
|
2952
|
+
modelValue: r(s).fields.config.read_timeout,
|
|
2953
|
+
"onUpdate:modelValue": v[29] || (v[29] = (f) => r(s).fields.config.read_timeout = f),
|
|
2938
2954
|
"data-testid": "redis-read-timeout-input",
|
|
2939
2955
|
label: r(i)("form.fields.read_timeout.label"),
|
|
2940
2956
|
"label-attributes": {
|
|
2941
2957
|
info: r(i)("form.fields.read_timeout.tooltip"),
|
|
2942
2958
|
tooltipAttributes: { maxWidth: "400" }
|
|
2943
2959
|
},
|
|
2944
|
-
readonly: r(
|
|
2960
|
+
readonly: r(s).readonly,
|
|
2945
2961
|
type: "number"
|
|
2946
2962
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2947
2963
|
g(N, {
|
|
2948
|
-
modelValue: r(
|
|
2949
|
-
"onUpdate:modelValue": v[
|
|
2964
|
+
modelValue: r(s).fields.config.send_timeout,
|
|
2965
|
+
"onUpdate:modelValue": v[30] || (v[30] = (f) => r(s).fields.config.send_timeout = f),
|
|
2950
2966
|
"data-testid": "redis-send-timeout-input",
|
|
2951
2967
|
label: r(i)("form.fields.send_timeout.label"),
|
|
2952
2968
|
"label-attributes": {
|
|
2953
2969
|
info: r(i)("form.fields.send_timeout.tooltip"),
|
|
2954
2970
|
tooltipAttributes: { maxWidth: "400" }
|
|
2955
2971
|
},
|
|
2956
|
-
readonly: r(
|
|
2972
|
+
readonly: r(s).readonly,
|
|
2957
2973
|
type: "number"
|
|
2958
2974
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2959
2975
|
g(N, {
|
|
2960
|
-
modelValue: r(
|
|
2961
|
-
"onUpdate:modelValue": v[
|
|
2976
|
+
modelValue: r(s).fields.config.connect_timeout,
|
|
2977
|
+
"onUpdate:modelValue": v[31] || (v[31] = (f) => r(s).fields.config.connect_timeout = f),
|
|
2962
2978
|
"data-testid": "redis-connect-timeout-input",
|
|
2963
2979
|
label: r(i)("form.fields.connect_timeout.label"),
|
|
2964
2980
|
"label-attributes": {
|
|
2965
2981
|
info: r(i)("form.fields.connect_timeout.tooltip"),
|
|
2966
2982
|
tooltipAttributes: { maxWidth: "400" }
|
|
2967
2983
|
},
|
|
2968
|
-
readonly: r(
|
|
2984
|
+
readonly: r(s).readonly,
|
|
2969
2985
|
type: "number"
|
|
2970
2986
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
2971
2987
|
]),
|
|
@@ -2978,7 +2994,7 @@ const Fe = (e) => {
|
|
|
2978
2994
|
g(r(wn), {
|
|
2979
2995
|
config: n.config,
|
|
2980
2996
|
setup: r(c),
|
|
2981
|
-
onCancel: v[
|
|
2997
|
+
onCancel: v[33] || (v[33] = () => c.value = !1),
|
|
2982
2998
|
onProceed: r(l)
|
|
2983
2999
|
}, null, 8, ["config", "setup", "onProceed"]),
|
|
2984
3000
|
g(R, {
|
|
@@ -2988,7 +3004,7 @@ const Fe = (e) => {
|
|
|
2988
3004
|
"max-width": "640",
|
|
2989
3005
|
title: r(i)("form.edit_warning_modal.title"),
|
|
2990
3006
|
visible: ie.value,
|
|
2991
|
-
onCancel: v[
|
|
3007
|
+
onCancel: v[34] || (v[34] = (f) => ie.value = !1),
|
|
2992
3008
|
onProceed: Te
|
|
2993
3009
|
}, {
|
|
2994
3010
|
default: S(() => [
|
|
@@ -2997,7 +3013,7 @@ const Fe = (e) => {
|
|
|
2997
3013
|
tag: "div"
|
|
2998
3014
|
}, {
|
|
2999
3015
|
pluginCount: S(() => [
|
|
3000
|
-
|
|
3016
|
+
K("b", null, U(r(i)("form.edit_warning_modal.plugin_count", { count: re.value })), 1)
|
|
3001
3017
|
]),
|
|
3002
3018
|
_: 1
|
|
3003
3019
|
})
|
|
@@ -3007,10 +3023,10 @@ const Fe = (e) => {
|
|
|
3007
3023
|
], 64);
|
|
3008
3024
|
};
|
|
3009
3025
|
}
|
|
3010
|
-
}),
|
|
3026
|
+
}), cd = /* @__PURE__ */ te(ud, [["__scopeId", "data-v-2cb19e90"]]), fd = {
|
|
3011
3027
|
class: "linked-plugins",
|
|
3012
3028
|
"data-testid": "linked-plugins-inline"
|
|
3013
|
-
}, bt = 7,
|
|
3029
|
+
}, bt = 7, pd = /* @__PURE__ */ Q({
|
|
3014
3030
|
__name: "LinkedPluginsInline",
|
|
3015
3031
|
props: {
|
|
3016
3032
|
config: {
|
|
@@ -3030,13 +3046,13 @@ const Fe = (e) => {
|
|
|
3030
3046
|
});
|
|
3031
3047
|
return (o, i) => {
|
|
3032
3048
|
const a = $("KBadge");
|
|
3033
|
-
return
|
|
3034
|
-
(
|
|
3049
|
+
return I(), J("div", fd, [
|
|
3050
|
+
(I(!0), J(fe, null, tt(r(n).slice(0, bt), (c) => (I(), F(r(En), {
|
|
3035
3051
|
key: c.id,
|
|
3036
3052
|
name: c.name,
|
|
3037
3053
|
size: 24
|
|
3038
3054
|
}, null, 8, ["name"]))), 128)),
|
|
3039
|
-
r(n).length - bt > 0 ? (
|
|
3055
|
+
r(n).length - bt > 0 ? (I(), F(a, {
|
|
3040
3056
|
key: 0,
|
|
3041
3057
|
appearance: "info"
|
|
3042
3058
|
}, {
|
|
@@ -3048,21 +3064,21 @@ const Fe = (e) => {
|
|
|
3048
3064
|
]);
|
|
3049
3065
|
};
|
|
3050
3066
|
}
|
|
3051
|
-
}),
|
|
3067
|
+
}), md = /* @__PURE__ */ te(pd, [["__scopeId", "data-v-c39556bc"]]), _d = { class: "plugin-item" }, gd = /* @__PURE__ */ Q({
|
|
3052
3068
|
__name: "PluginItem",
|
|
3053
3069
|
props: {
|
|
3054
3070
|
pluginName: {}
|
|
3055
3071
|
},
|
|
3056
3072
|
setup(e) {
|
|
3057
|
-
return (t, n) => (
|
|
3073
|
+
return (t, n) => (I(), J("div", _d, [
|
|
3058
3074
|
g(r(En), {
|
|
3059
3075
|
name: e.pluginName,
|
|
3060
3076
|
size: 24
|
|
3061
3077
|
}, null, 8, ["name"]),
|
|
3062
|
-
|
|
3078
|
+
K("span", null, U(e.pluginName), 1)
|
|
3063
3079
|
]));
|
|
3064
3080
|
}
|
|
3065
|
-
}),
|
|
3081
|
+
}), bd = /* @__PURE__ */ te(gd, [["__scopeId", "data-v-de964dc4"]]), yd = { class: "toolbar-container" }, vd = /* @__PURE__ */ Q({
|
|
3066
3082
|
__name: "LinkedPluginList",
|
|
3067
3083
|
props: {
|
|
3068
3084
|
config: {
|
|
@@ -3092,44 +3108,44 @@ const Fe = (e) => {
|
|
|
3092
3108
|
{ key: "name", label: i("linked_plugins_modal.headers.plugin") },
|
|
3093
3109
|
{ key: "instance_name", label: i("linked_plugins_modal.headers.instance_name") },
|
|
3094
3110
|
{ key: "actions", hideLabel: !0 }
|
|
3095
|
-
], { fetcher: c } = Fe(n.config),
|
|
3096
|
-
const { data: b, count:
|
|
3111
|
+
], { fetcher: c } = Fe(n.config), p = x(0), l = async (m) => {
|
|
3112
|
+
const { data: b, count: _ } = await c({
|
|
3097
3113
|
partialId: n.partialId,
|
|
3098
|
-
size:
|
|
3099
|
-
offset:
|
|
3100
|
-
query:
|
|
3114
|
+
size: m.pageSize,
|
|
3115
|
+
offset: m.offset,
|
|
3116
|
+
query: m.query
|
|
3101
3117
|
});
|
|
3102
|
-
|
|
3118
|
+
p.value = _;
|
|
3103
3119
|
const E = {
|
|
3104
|
-
total:
|
|
3120
|
+
total: _,
|
|
3105
3121
|
data: b
|
|
3106
3122
|
};
|
|
3107
3123
|
return o("load", E), E;
|
|
3108
|
-
}, u = x(""), y =
|
|
3124
|
+
}, u = x(""), y = z(() => n.config.app === "konnect" || n.isExactMatch ? {
|
|
3109
3125
|
isExactMatch: !0
|
|
3110
3126
|
} : {
|
|
3111
3127
|
isExactMatch: !1,
|
|
3112
3128
|
fields: { name: { searchable: !0 } },
|
|
3113
3129
|
schema: { name: { type: "text" } }
|
|
3114
|
-
}), w = (
|
|
3115
|
-
o("view-plugin", { id:
|
|
3130
|
+
}), w = (m) => {
|
|
3131
|
+
o("view-plugin", { id: m.id, plugin: m.name });
|
|
3116
3132
|
};
|
|
3117
|
-
return (
|
|
3118
|
-
const
|
|
3119
|
-
return
|
|
3133
|
+
return (m, b) => {
|
|
3134
|
+
const _ = $("KDropdownItem"), E = $("KTableData");
|
|
3135
|
+
return I(), F(E, {
|
|
3120
3136
|
"cache-identifier": r(ci)(e.partialId),
|
|
3121
3137
|
fetcher: l,
|
|
3122
3138
|
headers: a,
|
|
3123
3139
|
"hide-pagination-when-optional": "",
|
|
3124
|
-
"pagination-attributes": { totalCount:
|
|
3140
|
+
"pagination-attributes": { totalCount: p.value, disablePageJump: !0 },
|
|
3125
3141
|
"search-input": u.value
|
|
3126
3142
|
}, gn({
|
|
3127
|
-
name: S(({ rowValue:
|
|
3128
|
-
g(
|
|
3143
|
+
name: S(({ rowValue: s }) => [
|
|
3144
|
+
g(bd, { "plugin-name": s }, null, 8, ["plugin-name"])
|
|
3129
3145
|
]),
|
|
3130
|
-
"action-items": S(({ row:
|
|
3131
|
-
g(
|
|
3132
|
-
onClick: (A) => w(
|
|
3146
|
+
"action-items": S(({ row: s }) => [
|
|
3147
|
+
g(_, {
|
|
3148
|
+
onClick: (A) => w(s)
|
|
3133
3149
|
}, {
|
|
3134
3150
|
default: S(() => [
|
|
3135
3151
|
le(U(r(i)("actions.view_plugin")), 1)
|
|
@@ -3142,10 +3158,10 @@ const Fe = (e) => {
|
|
|
3142
3158
|
e.filterBarEnabled ? {
|
|
3143
3159
|
name: "toolbar",
|
|
3144
3160
|
fn: S(() => [
|
|
3145
|
-
|
|
3161
|
+
K("div", yd, [
|
|
3146
3162
|
g(r(hn), {
|
|
3147
3163
|
modelValue: u.value,
|
|
3148
|
-
"onUpdate:modelValue": b[0] || (b[0] = (
|
|
3164
|
+
"onUpdate:modelValue": b[0] || (b[0] = (s) => u.value = s),
|
|
3149
3165
|
config: y.value
|
|
3150
3166
|
}, null, 8, ["modelValue", "config"])
|
|
3151
3167
|
])
|
|
@@ -3155,10 +3171,10 @@ const Fe = (e) => {
|
|
|
3155
3171
|
]), 1032, ["cache-identifier", "pagination-attributes", "search-input"]);
|
|
3156
3172
|
};
|
|
3157
3173
|
}
|
|
3158
|
-
}),
|
|
3174
|
+
}), hd = /* @__PURE__ */ te(vd, [["__scopeId", "data-v-50856d03"]]), wd = {
|
|
3159
3175
|
class: "linked-plugins-modal",
|
|
3160
3176
|
"data-testid": "linked-plugins-modal"
|
|
3161
|
-
},
|
|
3177
|
+
}, Td = /* @__PURE__ */ Q({
|
|
3162
3178
|
__name: "LinkedPluginListModal",
|
|
3163
3179
|
props: {
|
|
3164
3180
|
config: {
|
|
@@ -3178,24 +3194,24 @@ const Fe = (e) => {
|
|
|
3178
3194
|
},
|
|
3179
3195
|
emits: ["cancel", "proceed", "view-plugin"],
|
|
3180
3196
|
setup(e, { emit: t }) {
|
|
3181
|
-
const n = t, { i18n: { t: o } } = ye.useI18n(), i = x(0), a =
|
|
3197
|
+
const n = t, { i18n: { t: o } } = ye.useI18n(), i = x(0), a = z(() => o("linked_plugins_modal.title", { count: i.value })), c = () => {
|
|
3182
3198
|
n("cancel");
|
|
3183
|
-
},
|
|
3199
|
+
}, p = () => {
|
|
3184
3200
|
n("proceed");
|
|
3185
3201
|
};
|
|
3186
3202
|
return (l, u) => {
|
|
3187
3203
|
const y = $("KModal");
|
|
3188
|
-
return
|
|
3204
|
+
return I(), J("div", wd, [
|
|
3189
3205
|
g(y, {
|
|
3190
3206
|
"action-button-text": r(o)("actions.done"),
|
|
3191
3207
|
"hide-cancel-button": "",
|
|
3192
3208
|
title: a.value,
|
|
3193
3209
|
visible: e.visible,
|
|
3194
3210
|
onCancel: c,
|
|
3195
|
-
onProceed:
|
|
3211
|
+
onProceed: p
|
|
3196
3212
|
}, {
|
|
3197
3213
|
default: S(() => [
|
|
3198
|
-
g(
|
|
3214
|
+
g(hd, {
|
|
3199
3215
|
config: e.config,
|
|
3200
3216
|
"partial-id": e.redisConfigurationId,
|
|
3201
3217
|
onLoad: u[0] || (u[0] = ({ total: w }) => i.value = w),
|
|
@@ -3207,7 +3223,7 @@ const Fe = (e) => {
|
|
|
3207
3223
|
]);
|
|
3208
3224
|
};
|
|
3209
3225
|
}
|
|
3210
|
-
}),
|
|
3226
|
+
}), Sd = /* @__PURE__ */ te(Td, [["__scopeId", "data-v-6148b8bd"]]), Ed = /* @__PURE__ */ Q({
|
|
3211
3227
|
__name: "DeleteWarningModal",
|
|
3212
3228
|
props: {
|
|
3213
3229
|
visible: {
|
|
@@ -3221,8 +3237,8 @@ const Fe = (e) => {
|
|
|
3221
3237
|
o("close");
|
|
3222
3238
|
};
|
|
3223
3239
|
return (a, c) => {
|
|
3224
|
-
const
|
|
3225
|
-
return
|
|
3240
|
+
const p = $("KModal");
|
|
3241
|
+
return I(), F(p, {
|
|
3226
3242
|
"action-button-text": r(n)("actions.close"),
|
|
3227
3243
|
"data-testid": "remove-links-modal",
|
|
3228
3244
|
"hide-cancel-button": "",
|
|
@@ -3239,7 +3255,7 @@ const Fe = (e) => {
|
|
|
3239
3255
|
}, 8, ["action-button-text", "title", "visible"]);
|
|
3240
3256
|
};
|
|
3241
3257
|
}
|
|
3242
|
-
}),
|
|
3258
|
+
}), Cd = { class: "kong-ui-entities-partials-list" }, kd = 1e3, Id = /* @__PURE__ */ Q({
|
|
3243
3259
|
__name: "RedisConfigurationList",
|
|
3244
3260
|
props: {
|
|
3245
3261
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3286,21 +3302,21 @@ const Fe = (e) => {
|
|
|
3286
3302
|
emits: ["click:learn-more", "click:plugin", "copy:error", "copy:success", "delete:success", "error"],
|
|
3287
3303
|
setup(e, { emit: t }) {
|
|
3288
3304
|
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((
|
|
3305
|
+
const n = t, o = e, i = z(() => {
|
|
3306
|
+
var R, f;
|
|
3307
|
+
let C = `${o.config.apiBaseUrl}${Me.list[o.config.app]}`;
|
|
3308
|
+
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;
|
|
3309
|
+
}), 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);
|
|
3310
|
+
async function k(C) {
|
|
3311
|
+
const R = await s({ ...C, pageSize: kd });
|
|
3312
|
+
return R.data = R.data.filter((f) => f.type === Z.REDIS_CE || f.type === Z.REDIS_EE), R;
|
|
3297
3313
|
}
|
|
3298
|
-
const { i18n: { t:
|
|
3314
|
+
const { i18n: { t: d } } = ye.useI18n(), { axiosInstance: O } = kt((N = o.config) == null ? void 0 : N.axiosRequestConfig), P = Tn(), W = x(""), Y = z(() => {
|
|
3299
3315
|
const C = o.config.app === "konnect" || o.config.isExactMatch;
|
|
3300
3316
|
if (C)
|
|
3301
3317
|
return {
|
|
3302
3318
|
isExactMatch: !0,
|
|
3303
|
-
placeholder:
|
|
3319
|
+
placeholder: d("search.placeholder_for_exact_match")
|
|
3304
3320
|
};
|
|
3305
3321
|
const { name: R } = ie;
|
|
3306
3322
|
return {
|
|
@@ -3313,100 +3329,100 @@ const Fe = (e) => {
|
|
|
3313
3329
|
}), { fetcher: ne } = Fe(o.config), de = x({
|
|
3314
3330
|
ctaPath: o.config.createRoute,
|
|
3315
3331
|
ctaText: void 0,
|
|
3316
|
-
message: `${
|
|
3317
|
-
title:
|
|
3332
|
+
message: `${d("redis.empty_state.description")}${o.config.additionMessageForEmptyState ? ` ${o.config.additionMessageForEmptyState}` : ""}`,
|
|
3333
|
+
title: d("redis.title")
|
|
3318
3334
|
}), ie = {
|
|
3319
|
-
name: { label:
|
|
3320
|
-
type: { label:
|
|
3321
|
-
tags: { label:
|
|
3322
|
-
plugins: { label:
|
|
3335
|
+
name: { label: d("list.table_headers.name"), searchable: !0, hidable: !1, sortable: !0 },
|
|
3336
|
+
type: { label: d("list.table_headers.type") },
|
|
3337
|
+
tags: { label: d("list.table_headers.tags") },
|
|
3338
|
+
plugins: { label: d("list.table_headers.plugins") }
|
|
3323
3339
|
}, he = (C) => ({
|
|
3324
|
-
label:
|
|
3340
|
+
label: d("actions.view"),
|
|
3325
3341
|
to: o.config.getViewRoute(C)
|
|
3326
3342
|
}), re = (C) => ({
|
|
3327
|
-
label:
|
|
3343
|
+
label: d("actions.edit"),
|
|
3328
3344
|
to: o.config.getEditRoute(C)
|
|
3329
3345
|
}), oe = async (C) => {
|
|
3330
3346
|
const { count: R } = await ne({ partialId: C.id });
|
|
3331
|
-
R > 0 ?
|
|
3347
|
+
R > 0 ? m.value = !0 : (l.value = C, u.value = !0);
|
|
3332
3348
|
}, we = () => {
|
|
3333
3349
|
W.value = "";
|
|
3334
3350
|
}, Te = async (C) => {
|
|
3335
|
-
var
|
|
3336
|
-
await ((
|
|
3351
|
+
var f;
|
|
3352
|
+
await ((f = o.canRetrieve) == null ? void 0 : f.call(o, C)) && P.push(o.config.getViewRoute(C.id));
|
|
3337
3353
|
}, Re = () => {
|
|
3338
3354
|
u.value = !1;
|
|
3339
3355
|
}, ve = (C) => {
|
|
3340
3356
|
c.value = C, a.value = !0;
|
|
3341
3357
|
}, at = async () => {
|
|
3342
|
-
var C, R,
|
|
3358
|
+
var C, R, f;
|
|
3343
3359
|
if ((C = l.value) != null && C.id) {
|
|
3344
3360
|
y.value = !0;
|
|
3345
3361
|
try {
|
|
3346
3362
|
await O.delete(b(l.value.id)), y.value = !1, u.value = !1, ze(), n("delete:success", l.value);
|
|
3347
|
-
} catch (
|
|
3348
|
-
w.value = ((
|
|
3363
|
+
} catch (B) {
|
|
3364
|
+
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
3365
|
} finally {
|
|
3350
3366
|
y.value = !1;
|
|
3351
3367
|
}
|
|
3352
3368
|
}
|
|
3353
3369
|
}, ze = () => {
|
|
3354
|
-
|
|
3355
|
-
},
|
|
3370
|
+
_.value++;
|
|
3371
|
+
}, H = (C) => {
|
|
3356
3372
|
switch (Be(C)) {
|
|
3357
3373
|
case T.HOST_PORT_CE:
|
|
3358
|
-
return `${
|
|
3374
|
+
return `${d("form.options.type.host_port")}${d("form.options.type.suffix_open_source")}`;
|
|
3359
3375
|
case T.HOST_PORT_EE:
|
|
3360
|
-
return `${
|
|
3376
|
+
return `${d("form.options.type.host_port")}${d("form.options.type.suffix_enterprise")}`;
|
|
3361
3377
|
case T.SENTINEL:
|
|
3362
|
-
return `${
|
|
3378
|
+
return `${d("form.options.type.sentinel")}${d("form.options.type.suffix_enterprise")}`;
|
|
3363
3379
|
case T.CLUSTER:
|
|
3364
|
-
return `${
|
|
3380
|
+
return `${d("form.options.type.cluster")}${d("form.options.type.suffix_enterprise")}`;
|
|
3365
3381
|
}
|
|
3366
3382
|
}, v = () => {
|
|
3367
3383
|
P.push(o.config.createRoute);
|
|
3368
3384
|
}, lt = async (C, R) => {
|
|
3369
|
-
const
|
|
3370
|
-
if (!await R(
|
|
3385
|
+
const f = C.id;
|
|
3386
|
+
if (!await R(f)) {
|
|
3371
3387
|
n("copy:error", {
|
|
3372
3388
|
entity: C,
|
|
3373
3389
|
field: "id",
|
|
3374
|
-
message:
|
|
3390
|
+
message: d("errors.copy")
|
|
3375
3391
|
});
|
|
3376
3392
|
return;
|
|
3377
3393
|
}
|
|
3378
3394
|
n("copy:success", {
|
|
3379
3395
|
entity: C,
|
|
3380
3396
|
field: "id",
|
|
3381
|
-
message:
|
|
3397
|
+
message: d("copy.success", { val: f })
|
|
3382
3398
|
});
|
|
3383
3399
|
};
|
|
3384
3400
|
Ee(A, (C) => {
|
|
3385
|
-
var R,
|
|
3401
|
+
var R, f, B;
|
|
3386
3402
|
if (C.status === xi.Error) {
|
|
3387
|
-
|
|
3388
|
-
title:
|
|
3389
|
-
}, (
|
|
3403
|
+
p.value = {
|
|
3404
|
+
title: d("errors.general")
|
|
3405
|
+
}, (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
3406
|
return;
|
|
3391
3407
|
}
|
|
3392
|
-
|
|
3408
|
+
p.value = null;
|
|
3393
3409
|
});
|
|
3394
3410
|
const Se = x(!1);
|
|
3395
3411
|
return Ee(o.canCreate, async (C) => {
|
|
3396
|
-
Se.value = await C, Se.value ? de.value.ctaText =
|
|
3412
|
+
Se.value = await C, Se.value ? de.value.ctaText = d("actions.create") : de.value.ctaText = void 0;
|
|
3397
3413
|
}, {
|
|
3398
3414
|
immediate: !0
|
|
3399
3415
|
}), (C, R) => {
|
|
3400
|
-
const
|
|
3401
|
-
return
|
|
3416
|
+
const f = $("KButton"), B = $("KDropdownItem"), mi = $("KClipboardProvider"), _i = $("KEmptyState");
|
|
3417
|
+
return I(), J("div", Cd, [
|
|
3402
3418
|
g(r(Ai), {
|
|
3403
3419
|
"cache-identifier": e.cacheIdentifier,
|
|
3404
3420
|
"disable-sorting": E.value,
|
|
3405
3421
|
"empty-state-options": de.value,
|
|
3406
3422
|
"enable-entity-actions": "",
|
|
3407
|
-
"error-message":
|
|
3408
|
-
fetcher:
|
|
3409
|
-
"fetcher-cache-key":
|
|
3423
|
+
"error-message": p.value,
|
|
3424
|
+
fetcher: k,
|
|
3425
|
+
"fetcher-cache-key": _.value,
|
|
3410
3426
|
"pagination-type": "offset",
|
|
3411
3427
|
"preferences-storage-key": "kong-ui-entities-redis-configuration-list",
|
|
3412
3428
|
query: W.value,
|
|
@@ -3423,13 +3439,13 @@ const Fe = (e) => {
|
|
|
3423
3439
|
}, null, 8, ["modelValue", "config"])
|
|
3424
3440
|
]),
|
|
3425
3441
|
"toolbar-button": S(() => [
|
|
3426
|
-
(
|
|
3442
|
+
(I(), F(Ei, {
|
|
3427
3443
|
disabled: !e.useActionOutside,
|
|
3428
3444
|
to: "#kong-ui-app-page-header-action-button"
|
|
3429
3445
|
}, [
|
|
3430
3446
|
g(r(Ke), { "auth-function": e.canCreate }, {
|
|
3431
3447
|
default: S(() => [
|
|
3432
|
-
g(
|
|
3448
|
+
g(f, {
|
|
3433
3449
|
appearance: "primary",
|
|
3434
3450
|
"data-testid": "toolbar-add-redis-configuration",
|
|
3435
3451
|
size: "large",
|
|
@@ -3437,7 +3453,7 @@ const Fe = (e) => {
|
|
|
3437
3453
|
}, {
|
|
3438
3454
|
default: S(() => [
|
|
3439
3455
|
g(r(yt)),
|
|
3440
|
-
le(" " + U(r(
|
|
3456
|
+
le(" " + U(r(d)("actions.create")), 1)
|
|
3441
3457
|
]),
|
|
3442
3458
|
_: 1
|
|
3443
3459
|
}, 8, ["to"])
|
|
@@ -3447,16 +3463,16 @@ const Fe = (e) => {
|
|
|
3447
3463
|
], 8, ["disabled"]))
|
|
3448
3464
|
]),
|
|
3449
3465
|
name: S(({ rowValue: j }) => [
|
|
3450
|
-
|
|
3466
|
+
K("b", null, U(j ?? "-"), 1)
|
|
3451
3467
|
]),
|
|
3452
3468
|
type: S(({ row: j }) => [
|
|
3453
|
-
le(U(
|
|
3469
|
+
le(U(H(j)), 1)
|
|
3454
3470
|
]),
|
|
3455
3471
|
tags: S(({ rowValue: j }) => [
|
|
3456
3472
|
g(r(Pi), { tags: j }, null, 8, ["tags"])
|
|
3457
3473
|
]),
|
|
3458
3474
|
plugins: S(({ row: j }) => [
|
|
3459
|
-
g(
|
|
3475
|
+
g(md, {
|
|
3460
3476
|
config: e.config,
|
|
3461
3477
|
"partial-id": j.id,
|
|
3462
3478
|
onClick: Si((st) => ve(j.id), ["stop"])
|
|
@@ -3465,12 +3481,12 @@ const Fe = (e) => {
|
|
|
3465
3481
|
actions: S(({ row: j }) => [
|
|
3466
3482
|
g(mi, null, {
|
|
3467
3483
|
default: S(({ copyToClipboard: st }) => [
|
|
3468
|
-
g(
|
|
3484
|
+
g(B, {
|
|
3469
3485
|
"data-testid": "action-entity-copy-id",
|
|
3470
|
-
onClick: (
|
|
3486
|
+
onClick: (Ld) => lt(j, st)
|
|
3471
3487
|
}, {
|
|
3472
3488
|
default: S(() => [
|
|
3473
|
-
le(U(r(
|
|
3489
|
+
le(U(r(d)("actions.copy_id")), 1)
|
|
3474
3490
|
]),
|
|
3475
3491
|
_: 1
|
|
3476
3492
|
}, 8, ["onClick"])
|
|
@@ -3481,7 +3497,7 @@ const Fe = (e) => {
|
|
|
3481
3497
|
"auth-function": () => e.canRetrieve(j)
|
|
3482
3498
|
}, {
|
|
3483
3499
|
default: S(() => [
|
|
3484
|
-
g(
|
|
3500
|
+
g(B, {
|
|
3485
3501
|
"data-testid": "action-entity-view",
|
|
3486
3502
|
"has-divider": "",
|
|
3487
3503
|
item: he(j.id)
|
|
@@ -3493,7 +3509,7 @@ const Fe = (e) => {
|
|
|
3493
3509
|
"auth-function": () => e.canEdit(j)
|
|
3494
3510
|
}, {
|
|
3495
3511
|
default: S(() => [
|
|
3496
|
-
g(
|
|
3512
|
+
g(B, {
|
|
3497
3513
|
"data-testid": "action-entity-edit",
|
|
3498
3514
|
item: re(j.id)
|
|
3499
3515
|
}, null, 8, ["item"])
|
|
@@ -3504,14 +3520,14 @@ const Fe = (e) => {
|
|
|
3504
3520
|
"auth-function": () => e.canDelete(j)
|
|
3505
3521
|
}, {
|
|
3506
3522
|
default: S(() => [
|
|
3507
|
-
g(
|
|
3523
|
+
g(B, {
|
|
3508
3524
|
danger: "",
|
|
3509
3525
|
"data-testid": "action-entity-delete",
|
|
3510
3526
|
"has-divider": "",
|
|
3511
3527
|
onClick: (st) => oe(j)
|
|
3512
3528
|
}, {
|
|
3513
3529
|
default: S(() => [
|
|
3514
|
-
le(U(r(
|
|
3530
|
+
le(U(r(d)("actions.delete")), 1)
|
|
3515
3531
|
]),
|
|
3516
3532
|
_: 1
|
|
3517
3533
|
}, 8, ["onClick"])
|
|
@@ -3521,24 +3537,24 @@ const Fe = (e) => {
|
|
|
3521
3537
|
]),
|
|
3522
3538
|
"empty-state": S(() => [
|
|
3523
3539
|
g(_i, {
|
|
3524
|
-
"action-button-text": r(
|
|
3540
|
+
"action-button-text": r(d)("list.action"),
|
|
3525
3541
|
"action-button-visible": Se.value,
|
|
3526
3542
|
"data-testid": "redis-entity-empty-state",
|
|
3527
3543
|
features: [
|
|
3528
3544
|
{
|
|
3529
3545
|
key: "feature-1",
|
|
3530
|
-
title: r(
|
|
3531
|
-
description: r(
|
|
3546
|
+
title: r(d)("list.empty_state.feature_1.title"),
|
|
3547
|
+
description: r(d)("list.empty_state.feature_1.description")
|
|
3532
3548
|
},
|
|
3533
3549
|
{
|
|
3534
3550
|
key: "feature-2",
|
|
3535
|
-
title: r(
|
|
3536
|
-
description: r(
|
|
3551
|
+
title: r(d)("list.empty_state.feature_2.title"),
|
|
3552
|
+
description: r(d)("list.empty_state.feature_2.description")
|
|
3537
3553
|
}
|
|
3538
3554
|
],
|
|
3539
3555
|
"icon-background": "",
|
|
3540
|
-
message: r(
|
|
3541
|
-
title: r(
|
|
3556
|
+
message: r(d)("list.empty_state.description"),
|
|
3557
|
+
title: r(d)("redis.title"),
|
|
3542
3558
|
onClickAction: v
|
|
3543
3559
|
}, {
|
|
3544
3560
|
icon: S(() => [
|
|
@@ -3558,23 +3574,23 @@ const Fe = (e) => {
|
|
|
3558
3574
|
]),
|
|
3559
3575
|
_: 1
|
|
3560
3576
|
}, 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) =>
|
|
3577
|
+
g(Ed, {
|
|
3578
|
+
visible: m.value,
|
|
3579
|
+
onClose: R[2] || (R[2] = (j) => m.value = !1)
|
|
3564
3580
|
}, null, 8, ["visible"]),
|
|
3565
3581
|
g(r($i), {
|
|
3566
3582
|
"action-pending": y.value,
|
|
3567
|
-
description: r(
|
|
3583
|
+
description: r(d)("delete.description"),
|
|
3568
3584
|
"entity-name": l.value && (l.value.name || l.value.id),
|
|
3569
3585
|
"entity-type": r(Vi).RedisConfiguration,
|
|
3570
3586
|
error: w.value,
|
|
3571
3587
|
"need-confirmation": !0,
|
|
3572
|
-
title: r(
|
|
3588
|
+
title: r(d)("delete.title"),
|
|
3573
3589
|
visible: u.value,
|
|
3574
3590
|
onCancel: Re,
|
|
3575
3591
|
onProceed: at
|
|
3576
3592
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
|
|
3577
|
-
g(
|
|
3593
|
+
g(Sd, {
|
|
3578
3594
|
config: e.config,
|
|
3579
3595
|
"redis-configuration-id": c.value,
|
|
3580
3596
|
visible: a.value,
|
|
@@ -3585,7 +3601,7 @@ const Fe = (e) => {
|
|
|
3585
3601
|
]);
|
|
3586
3602
|
};
|
|
3587
3603
|
}
|
|
3588
|
-
}),
|
|
3604
|
+
}), Qd = /* @__PURE__ */ te(Id, [["__scopeId", "data-v-4e5be541"]]), Od = { class: "kong-ui-consumer-group-entity-config-card" }, Yd = /* @__PURE__ */ Q({
|
|
3589
3605
|
__name: "RedisConfigurationConfigCard",
|
|
3590
3606
|
props: {
|
|
3591
3607
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3612,10 +3628,10 @@ const Fe = (e) => {
|
|
|
3612
3628
|
},
|
|
3613
3629
|
emits: ["loading", "fetch:error", "fetch:success"],
|
|
3614
3630
|
setup(e, { emit: t }) {
|
|
3615
|
-
const n = e, o = t, { i18n: { t: i } } = ye.useI18n(), a =
|
|
3616
|
-
c.value = Be(
|
|
3617
|
-
}, l =
|
|
3618
|
-
const
|
|
3631
|
+
const n = e, o = t, { i18n: { t: i } } = ye.useI18n(), a = z(() => Me.form[n.config.app].edit), c = x($e), p = (_) => {
|
|
3632
|
+
c.value = Be(_), o("fetch:success", _);
|
|
3633
|
+
}, l = z(() => {
|
|
3634
|
+
const _ = c.value === T.HOST_PORT_CE ? i("form.options.type.suffix_open_source") : i("form.options.type.suffix_enterprise");
|
|
3619
3635
|
let E = "";
|
|
3620
3636
|
switch (c.value) {
|
|
3621
3637
|
case T.HOST_PORT_CE:
|
|
@@ -3631,35 +3647,35 @@ const Fe = (e) => {
|
|
|
3631
3647
|
E = i("form.options.type.sentinel");
|
|
3632
3648
|
break;
|
|
3633
3649
|
}
|
|
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 (!
|
|
3650
|
+
return `${E}${_}`;
|
|
3651
|
+
}), u = (_) => ({
|
|
3652
|
+
id: _.id,
|
|
3653
|
+
name: _.name,
|
|
3654
|
+
tags: _.tags,
|
|
3655
|
+
created_at: _.created_at,
|
|
3656
|
+
updated_at: _.updated_at,
|
|
3657
|
+
type: _.type,
|
|
3658
|
+
..._.config,
|
|
3659
|
+
...n.config.cloudAuthAvailable ? { cloud_authentication: Vt(_.config.cloud_authentication) } : null
|
|
3660
|
+
}), y = (_, E) => {
|
|
3661
|
+
if (!_ || Object.keys(_).length === 0)
|
|
3646
3662
|
return {};
|
|
3647
|
-
const { id:
|
|
3663
|
+
const { id: s, name: A, created_at: k, updated_at: d, type: O, tags: P, ...W } = _;
|
|
3648
3664
|
return E === "terraform" ? {
|
|
3649
3665
|
[O.replaceAll("-", "_")]: {
|
|
3650
|
-
id:
|
|
3666
|
+
id: s,
|
|
3651
3667
|
name: A,
|
|
3652
3668
|
tags: P,
|
|
3653
|
-
created_at:
|
|
3654
|
-
updated_at:
|
|
3669
|
+
created_at: k,
|
|
3670
|
+
updated_at: d,
|
|
3655
3671
|
config: W
|
|
3656
3672
|
}
|
|
3657
3673
|
} : {
|
|
3658
|
-
id:
|
|
3674
|
+
id: s,
|
|
3659
3675
|
name: A,
|
|
3660
3676
|
tags: P,
|
|
3661
|
-
created_at:
|
|
3662
|
-
updated_at:
|
|
3677
|
+
created_at: k,
|
|
3678
|
+
updated_at: d,
|
|
3663
3679
|
type: O,
|
|
3664
3680
|
config: W
|
|
3665
3681
|
};
|
|
@@ -3819,23 +3835,23 @@ const Fe = (e) => {
|
|
|
3819
3835
|
section: V.Basic,
|
|
3820
3836
|
label: i("form.sections.cloud_auth.title")
|
|
3821
3837
|
}
|
|
3822
|
-
},
|
|
3823
|
-
const E = {},
|
|
3824
|
-
for (const A of
|
|
3825
|
-
|
|
3838
|
+
}, m = (_) => {
|
|
3839
|
+
const E = {}, s = Object.keys(w);
|
|
3840
|
+
for (const A of s)
|
|
3841
|
+
_.includes(A) ? E[A] = {
|
|
3826
3842
|
...w[A],
|
|
3827
|
-
order:
|
|
3843
|
+
order: _.indexOf(A) + 1
|
|
3828
3844
|
} : E[A] = {
|
|
3829
3845
|
...w[A],
|
|
3830
3846
|
hidden: !0
|
|
3831
3847
|
};
|
|
3832
3848
|
return E;
|
|
3833
|
-
}, b =
|
|
3834
|
-
const
|
|
3849
|
+
}, b = z(() => {
|
|
3850
|
+
const _ = ["id", "name", "tags", "type", "updated_at", "created_at"];
|
|
3835
3851
|
switch (c.value) {
|
|
3836
3852
|
case T.HOST_PORT_CE:
|
|
3837
|
-
return
|
|
3838
|
-
...
|
|
3853
|
+
return m([
|
|
3854
|
+
..._,
|
|
3839
3855
|
"host",
|
|
3840
3856
|
"port",
|
|
3841
3857
|
"timeout",
|
|
@@ -3848,8 +3864,8 @@ const Fe = (e) => {
|
|
|
3848
3864
|
"cloud_authentication"
|
|
3849
3865
|
]);
|
|
3850
3866
|
case T.HOST_PORT_EE:
|
|
3851
|
-
return
|
|
3852
|
-
...
|
|
3867
|
+
return m([
|
|
3868
|
+
..._,
|
|
3853
3869
|
"host",
|
|
3854
3870
|
"port",
|
|
3855
3871
|
"connection_is_proxied",
|
|
@@ -3867,8 +3883,8 @@ const Fe = (e) => {
|
|
|
3867
3883
|
"cloud_authentication"
|
|
3868
3884
|
]);
|
|
3869
3885
|
case T.CLUSTER:
|
|
3870
|
-
return
|
|
3871
|
-
...
|
|
3886
|
+
return m([
|
|
3887
|
+
..._,
|
|
3872
3888
|
"cluster_nodes",
|
|
3873
3889
|
"cluster_max_redirections",
|
|
3874
3890
|
"database",
|
|
@@ -3885,8 +3901,8 @@ const Fe = (e) => {
|
|
|
3885
3901
|
"cloud_authentication"
|
|
3886
3902
|
]);
|
|
3887
3903
|
case T.SENTINEL:
|
|
3888
|
-
return
|
|
3889
|
-
...
|
|
3904
|
+
return m([
|
|
3905
|
+
..._,
|
|
3890
3906
|
"sentinel_master",
|
|
3891
3907
|
"sentinel_role",
|
|
3892
3908
|
"sentinel_nodes",
|
|
@@ -3908,7 +3924,7 @@ const Fe = (e) => {
|
|
|
3908
3924
|
throw new Error("Invalid Redis type");
|
|
3909
3925
|
}
|
|
3910
3926
|
});
|
|
3911
|
-
return (
|
|
3927
|
+
return (_, E) => (I(), J("div", Od, [
|
|
3912
3928
|
g(r(Mi), {
|
|
3913
3929
|
"code-block-record-formatter": y,
|
|
3914
3930
|
config: e.config,
|
|
@@ -3918,18 +3934,18 @@ const Fe = (e) => {
|
|
|
3918
3934
|
"fetch-url": a.value,
|
|
3919
3935
|
"hide-title": e.hideTitle,
|
|
3920
3936
|
"record-resolver": u,
|
|
3921
|
-
"onFetch:error": E[0] || (E[0] = (
|
|
3922
|
-
"onFetch:success":
|
|
3923
|
-
onLoading: E[1] || (E[1] = (
|
|
3937
|
+
"onFetch:error": E[0] || (E[0] = (s) => _.$emit("fetch:error", s)),
|
|
3938
|
+
"onFetch:success": p,
|
|
3939
|
+
onLoading: E[1] || (E[1] = (s) => _.$emit("loading", s))
|
|
3924
3940
|
}, {
|
|
3925
3941
|
type: S(() => [
|
|
3926
|
-
|
|
3942
|
+
K("div", null, U(l.value), 1)
|
|
3927
3943
|
]),
|
|
3928
3944
|
_: 1
|
|
3929
3945
|
}, 8, ["config", "config-card-doc", "config-schema", "entity-type", "fetch-url", "hide-title"])
|
|
3930
3946
|
]));
|
|
3931
3947
|
}
|
|
3932
|
-
}),
|
|
3948
|
+
}), Rd = "12px";
|
|
3933
3949
|
function pi(e) {
|
|
3934
3950
|
const {
|
|
3935
3951
|
redisType: t = "redis-ce"
|
|
@@ -3939,14 +3955,14 @@ function pi(e) {
|
|
|
3939
3955
|
const {
|
|
3940
3956
|
debouncedQueryChange: a,
|
|
3941
3957
|
loading: c,
|
|
3942
|
-
error:
|
|
3958
|
+
error: p,
|
|
3943
3959
|
loadItems: l,
|
|
3944
3960
|
results: u
|
|
3945
|
-
} = Di(o,
|
|
3961
|
+
} = Di(o, Me.list[o.app], n, {
|
|
3946
3962
|
fetchedItemsKey: "data",
|
|
3947
3963
|
searchKeys: ["id", "name"]
|
|
3948
|
-
}), y = (
|
|
3949
|
-
switch (
|
|
3964
|
+
}), y = (m) => {
|
|
3965
|
+
switch (m) {
|
|
3950
3966
|
case T.CLUSTER:
|
|
3951
3967
|
return i("form.options.type.cluster");
|
|
3952
3968
|
case T.HOST_PORT_CE:
|
|
@@ -3956,18 +3972,18 @@ function pi(e) {
|
|
|
3956
3972
|
case T.HOST_PORT_EE:
|
|
3957
3973
|
return `${i("form.options.type.host_port")} (${i("form.options.type.enterprise")})`;
|
|
3958
3974
|
}
|
|
3959
|
-
}, w =
|
|
3975
|
+
}, 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
3976
|
return _n(() => {
|
|
3961
3977
|
l();
|
|
3962
3978
|
}), {
|
|
3963
3979
|
items: w,
|
|
3964
3980
|
loading: c,
|
|
3965
3981
|
onQueryChange: a,
|
|
3966
|
-
error:
|
|
3982
|
+
error: p,
|
|
3967
3983
|
loadItems: l
|
|
3968
3984
|
};
|
|
3969
3985
|
}
|
|
3970
|
-
const
|
|
3986
|
+
const xd = ["id"], Ad = /* @__PURE__ */ Q({
|
|
3971
3987
|
__name: "RedisConfigurationFormModal",
|
|
3972
3988
|
props: {
|
|
3973
3989
|
visible: { type: Boolean },
|
|
@@ -3975,10 +3991,10 @@ const Rd = ["id"], xd = /* @__PURE__ */ Q({
|
|
|
3975
3991
|
},
|
|
3976
3992
|
emits: ["toast", "modal-close", "created"],
|
|
3977
3993
|
setup(e, { emit: t }) {
|
|
3978
|
-
const n = t, { i18n: { t: o } } = ot(), i = bn(Cn), a =
|
|
3994
|
+
const n = t, { i18n: { t: o } } = ot(), i = bn(Cn), a = z(() => ({
|
|
3979
3995
|
...i,
|
|
3980
3996
|
cancelRoute: void 0
|
|
3981
|
-
})), { getMessageFromError: c } = yn(),
|
|
3997
|
+
})), { getMessageFromError: c } = yn(), p = Ci(), l = z(() => {
|
|
3982
3998
|
switch (e.partialType) {
|
|
3983
3999
|
case Z.REDIS_CE:
|
|
3984
4000
|
return Z.REDIS_EE;
|
|
@@ -3987,16 +4003,16 @@ const Rd = ["id"], xd = /* @__PURE__ */ Q({
|
|
|
3987
4003
|
default:
|
|
3988
4004
|
return;
|
|
3989
4005
|
}
|
|
3990
|
-
}), u = x(!1), y = x(), w = (
|
|
4006
|
+
}), u = x(!1), y = x(), w = (_) => {
|
|
3991
4007
|
n("toast", {
|
|
3992
|
-
message: c(
|
|
4008
|
+
message: c(_),
|
|
3993
4009
|
appearance: "danger"
|
|
3994
4010
|
});
|
|
3995
|
-
},
|
|
4011
|
+
}, m = (_) => {
|
|
3996
4012
|
n("toast", {
|
|
3997
4013
|
message: o("form.partial_created_success_message"),
|
|
3998
4014
|
appearance: "success"
|
|
3999
|
-
}), b(), n("created",
|
|
4015
|
+
}), b(), n("created", _);
|
|
4000
4016
|
}, b = () => {
|
|
4001
4017
|
y.value = void 0, n("modal-close"), Dt(() => {
|
|
4002
4018
|
u.value = !1;
|
|
@@ -4004,14 +4020,14 @@ const Rd = ["id"], xd = /* @__PURE__ */ Q({
|
|
|
4004
4020
|
};
|
|
4005
4021
|
return Ee(
|
|
4006
4022
|
() => e.visible,
|
|
4007
|
-
(
|
|
4008
|
-
|
|
4009
|
-
y.value = `#redis-modal-footer-${
|
|
4023
|
+
(_) => {
|
|
4024
|
+
_ && (u.value = !0, Dt(() => {
|
|
4025
|
+
y.value = `#redis-modal-footer-${p}`;
|
|
4010
4026
|
}));
|
|
4011
4027
|
}
|
|
4012
|
-
), (
|
|
4013
|
-
const
|
|
4014
|
-
return
|
|
4028
|
+
), (_, E) => {
|
|
4029
|
+
const s = $("KModal");
|
|
4030
|
+
return I(), F(s, {
|
|
4015
4031
|
class: "plugin-redis-partial-form",
|
|
4016
4032
|
"data-testid": "redis-partial-form-modal",
|
|
4017
4033
|
"full-screen": "",
|
|
@@ -4020,33 +4036,33 @@ const Rd = ["id"], xd = /* @__PURE__ */ Q({
|
|
|
4020
4036
|
onCancel: b
|
|
4021
4037
|
}, {
|
|
4022
4038
|
footer: S(() => [
|
|
4023
|
-
|
|
4024
|
-
id: `redis-modal-footer-${r(
|
|
4039
|
+
K("div", {
|
|
4040
|
+
id: `redis-modal-footer-${r(p)}`,
|
|
4025
4041
|
class: "redis-modal-footer"
|
|
4026
|
-
}, null, 8,
|
|
4042
|
+
}, null, 8, xd)
|
|
4027
4043
|
]),
|
|
4028
4044
|
default: S(() => [
|
|
4029
|
-
g(
|
|
4045
|
+
g(cd, {
|
|
4030
4046
|
"action-teleport-target": y.value,
|
|
4031
4047
|
config: a.value,
|
|
4032
4048
|
"disabled-partial-type": l.value,
|
|
4033
4049
|
"slidout-top-offset": 0,
|
|
4034
4050
|
onCancel: b,
|
|
4035
4051
|
onError: w,
|
|
4036
|
-
onUpdate:
|
|
4052
|
+
onUpdate: m
|
|
4037
4053
|
}, null, 8, ["action-teleport-target", "config", "disabled-partial-type"])
|
|
4038
4054
|
]),
|
|
4039
4055
|
_: 1
|
|
4040
4056
|
}, 8, ["title", "visible"]);
|
|
4041
4057
|
};
|
|
4042
4058
|
}
|
|
4043
|
-
}),
|
|
4059
|
+
}), Pd = /* @__PURE__ */ te(Ad, [["__scopeId", "data-v-280b73f4"]]), $d = { class: "selected-redis-config" }, Vd = ["data-testid"], Md = {
|
|
4044
4060
|
class: "select-item-name",
|
|
4045
4061
|
"data-testid": "selected-redis-config"
|
|
4046
|
-
},
|
|
4062
|
+
}, Dd = {
|
|
4047
4063
|
class: "empty-redis-config",
|
|
4048
4064
|
"data-testid": "empty-redis-config"
|
|
4049
|
-
},
|
|
4065
|
+
}, jd = /* @__PURE__ */ Q({
|
|
4050
4066
|
inheritAttrs: !1,
|
|
4051
4067
|
__name: "RedisConfigurationSelector",
|
|
4052
4068
|
props: {
|
|
@@ -4063,30 +4079,30 @@ const Rd = ["id"], xd = /* @__PURE__ */ Q({
|
|
|
4063
4079
|
items: i,
|
|
4064
4080
|
loading: a,
|
|
4065
4081
|
onQueryChange: c,
|
|
4066
|
-
error:
|
|
4082
|
+
error: p,
|
|
4067
4083
|
loadItems: l
|
|
4068
4084
|
} = pi({
|
|
4069
4085
|
redisType: e.redisType
|
|
4070
|
-
}), u = x(!1), y = (
|
|
4071
|
-
const E =
|
|
4072
|
-
n("update:modelValue", E), n("change",
|
|
4086
|
+
}), u = x(!1), y = (_) => {
|
|
4087
|
+
const E = _ == null ? void 0 : _.value;
|
|
4088
|
+
n("update:modelValue", E), n("change", _);
|
|
4073
4089
|
}, w = () => {
|
|
4074
4090
|
u.value = !0;
|
|
4075
|
-
},
|
|
4091
|
+
}, m = () => {
|
|
4076
4092
|
u.value = !1, n("modal-close");
|
|
4077
|
-
}, b = (
|
|
4093
|
+
}, b = (_) => {
|
|
4078
4094
|
u.value = !1, l(), y({
|
|
4079
|
-
name:
|
|
4080
|
-
value:
|
|
4081
|
-
label:
|
|
4095
|
+
name: _.name,
|
|
4096
|
+
value: _.id,
|
|
4097
|
+
label: _.name
|
|
4082
4098
|
});
|
|
4083
4099
|
};
|
|
4084
|
-
return Ee(
|
|
4085
|
-
n("error-change",
|
|
4086
|
-
}), (
|
|
4087
|
-
const
|
|
4088
|
-
return
|
|
4089
|
-
g(A,
|
|
4100
|
+
return Ee(p, (_) => {
|
|
4101
|
+
n("error-change", _ ? new Error(String(_)) : null);
|
|
4102
|
+
}), (_, E) => {
|
|
4103
|
+
const s = $("KBadge"), A = $("KSelect");
|
|
4104
|
+
return I(), J(fe, null, [
|
|
4105
|
+
g(A, ki({
|
|
4090
4106
|
class: "redis-config-select-trigger",
|
|
4091
4107
|
"enable-filtering": "",
|
|
4092
4108
|
"filter-function": () => !0,
|
|
@@ -4094,77 +4110,77 @@ const Rd = ["id"], xd = /* @__PURE__ */ Q({
|
|
|
4094
4110
|
loading: r(a),
|
|
4095
4111
|
"model-value": e.modelValue,
|
|
4096
4112
|
placeholder: e.placeholder || r(o)("selector.placeholder")
|
|
4097
|
-
},
|
|
4113
|
+
}, _.$attrs, {
|
|
4098
4114
|
onChange: y,
|
|
4099
4115
|
onQueryChange: r(c)
|
|
4100
4116
|
}), gn({
|
|
4101
|
-
"selected-item-template": S(({ item:
|
|
4102
|
-
|
|
4117
|
+
"selected-item-template": S(({ item: k }) => [
|
|
4118
|
+
K("div", $d, U(k.name), 1)
|
|
4103
4119
|
]),
|
|
4104
|
-
"item-template": S(({ item:
|
|
4105
|
-
|
|
4120
|
+
"item-template": S(({ item: k }) => [
|
|
4121
|
+
K("div", {
|
|
4106
4122
|
class: "plugin-form-redis-configuration-dropdown-item",
|
|
4107
|
-
"data-testid": `redis-configuration-dropdown-item-${
|
|
4123
|
+
"data-testid": `redis-configuration-dropdown-item-${k.name}`
|
|
4108
4124
|
}, [
|
|
4109
|
-
|
|
4110
|
-
g(
|
|
4125
|
+
K("span", Md, U(k.name), 1),
|
|
4126
|
+
g(s, {
|
|
4111
4127
|
appearance: "info",
|
|
4112
4128
|
class: "select-item-label"
|
|
4113
4129
|
}, {
|
|
4114
4130
|
default: S(() => [
|
|
4115
|
-
le(U(
|
|
4131
|
+
le(U(k.tag), 1)
|
|
4116
4132
|
]),
|
|
4117
4133
|
_: 2
|
|
4118
4134
|
}, 1024)
|
|
4119
|
-
], 8,
|
|
4135
|
+
], 8, Vd)
|
|
4120
4136
|
]),
|
|
4121
4137
|
empty: S(() => [
|
|
4122
|
-
|
|
4138
|
+
K("div", Dd, U(e.emptyStateText || r(o)("selector.empty_state")), 1)
|
|
4123
4139
|
]),
|
|
4124
4140
|
_: 2
|
|
4125
4141
|
}, [
|
|
4126
4142
|
e.showCreateButton ? {
|
|
4127
4143
|
name: "dropdown-footer-text",
|
|
4128
4144
|
fn: S(() => [
|
|
4129
|
-
|
|
4145
|
+
K("div", {
|
|
4130
4146
|
class: "new-redis-config-area",
|
|
4131
4147
|
"data-testid": "new-redis-config-area",
|
|
4132
4148
|
onClick: w
|
|
4133
4149
|
}, [
|
|
4134
|
-
g(r(yt), { size: r(
|
|
4135
|
-
|
|
4150
|
+
g(r(yt), { size: r(Rd) }, null, 8, ["size"]),
|
|
4151
|
+
K("span", null, U(e.createButtonText || r(o)("selector.create_new")), 1)
|
|
4136
4152
|
])
|
|
4137
4153
|
]),
|
|
4138
4154
|
key: "0"
|
|
4139
4155
|
} : void 0
|
|
4140
4156
|
]), 1040, ["items", "loading", "model-value", "placeholder", "onQueryChange"]),
|
|
4141
|
-
g(
|
|
4157
|
+
g(Pd, {
|
|
4142
4158
|
"partial-type": e.redisType,
|
|
4143
4159
|
visible: u.value,
|
|
4144
4160
|
onCreated: b,
|
|
4145
|
-
onModalClose:
|
|
4146
|
-
onToast: E[0] || (E[0] = (
|
|
4161
|
+
onModalClose: m,
|
|
4162
|
+
onToast: E[0] || (E[0] = (k) => n("toast", k))
|
|
4147
4163
|
}, null, 8, ["partial-type", "visible"])
|
|
4148
4164
|
], 64);
|
|
4149
4165
|
};
|
|
4150
4166
|
}
|
|
4151
|
-
}),
|
|
4167
|
+
}), Xd = /* @__PURE__ */ te(jd, [["__scopeId", "data-v-3c6e44d3"]]), eu = {
|
|
4152
4168
|
useLinkedPlugins: fi,
|
|
4153
4169
|
useLinkedPluginsFetcher: Fe,
|
|
4154
4170
|
useRedisConfigurationSelector: pi
|
|
4155
4171
|
};
|
|
4156
4172
|
export {
|
|
4157
4173
|
q as AuthProvider,
|
|
4158
|
-
|
|
4159
|
-
|
|
4174
|
+
Ed as DeleteWarningModal,
|
|
4175
|
+
hd as LinkedPlugins,
|
|
4160
4176
|
Z as PartialType,
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4177
|
+
Yd as RedisConfigurationConfigCard,
|
|
4178
|
+
cd as RedisConfigurationForm,
|
|
4179
|
+
Pd as RedisConfigurationFormModal,
|
|
4180
|
+
Qd as RedisConfigurationList,
|
|
4181
|
+
Xd as RedisConfigurationSelector,
|
|
4166
4182
|
T as RedisType,
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4183
|
+
eu as composables,
|
|
4184
|
+
Jd as constants,
|
|
4185
|
+
Zd as helpers
|
|
4170
4186
|
};
|