@kong-ui-public/entities-redis-configurations 1.7.2 → 1.7.3-pr.2717.77b7d1462.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-redis-configurations.es.js +806 -788
- 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/types/redis-configuration-form.d.ts +8 -0
- package/dist/types/types/redis-configuration-form.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { computed as z, reactive as mn, ref as x, watch as
|
|
1
|
+
import { computed as z, reactive as mn, ref as x, watch as Ce, defineComponent as Y, resolveComponent as $, createElementBlock as J, openBlock as I, createVNode as g, withCtx as S, renderSlot as gi, unref as i, mergeModels as Et, useModel as Ct, createElementVNode as K, createTextVNode as le, toDisplayString as B, Fragment as fe, renderList as tt, createBlock as N, createCommentVNode as Z, getCurrentInstance as bi, onMounted as yi, onUnmounted as vi, isReadonly as hi, toRefs as wi, onBeforeMount as _n, isRef as Ti, createSlots as gn, withModifiers as Si, Teleport as Ei, inject as bn, useId as Ci, nextTick as Dt, mergeProps as ki } from "vue";
|
|
2
2
|
import "@kong-ui-public/entities-shared/dist/style.css";
|
|
3
3
|
import "@kong-ui-public/entities-vaults/dist/style.css";
|
|
4
4
|
import { useAxios as kt, useErrors as yn, EntityBaseFormType as dt, EntityBaseForm as Ii, SupportedEntityType as vn, EntityFormSection as ue, EntityFilter as hn, useDeleteUrlBuilder as Oi, useFetcher as Ri, FetcherStatus as xi, EntityBaseTable as Ai, PermissionsWrapper as Ke, TableTags as Pi, EntityDeleteModal as $i, EntityTypes as Vi, ConfigurationSchemaSection as V, ConfigurationSchemaType as M, EntityBaseConfigCard as Mi, useDebouncedFilter as Di } from "@kong-ui-public/entities-shared";
|
|
5
|
-
import { VaultSecretPickerProvider as
|
|
5
|
+
import { VaultSecretPickerProvider as he, 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
|
|
11
|
+
var w = /* @__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))(w || {}), Q = /* @__PURE__ */ ((e) => (e.REDIS_CE = "redis-ce", e.REDIS_EE = "redis-ee", e))(Q || {}), q = /* @__PURE__ */ ((e) => (e.AWS = "aws", e.GCP = "gcp", e.AZURE = "azure", e))(q || {}), kn = typeof global == "object" && global && global.Object === Object && global, zi = typeof self == "object" && self && self.Object === Object && self, se = kn || zi || Function("return this")(), ee = se.Symbol, In = Object.prototype, Ki = In.hasOwnProperty, Hi = In.toString, De = ee ? ee.toStringTag : void 0;
|
|
12
12
|
function Wi(e) {
|
|
13
13
|
var t = Ki.call(e, De), n = e[De];
|
|
14
14
|
try {
|
|
@@ -16,15 +16,15 @@ function Wi(e) {
|
|
|
16
16
|
var o = !0;
|
|
17
17
|
} catch {
|
|
18
18
|
}
|
|
19
|
-
var
|
|
20
|
-
return o && (t ? e[De] = n : delete e[De]),
|
|
19
|
+
var r = Hi.call(e);
|
|
20
|
+
return o && (t ? e[De] = n : delete e[De]), r;
|
|
21
21
|
}
|
|
22
22
|
var qi = Object.prototype, Gi = qi.toString;
|
|
23
23
|
function Ji(e) {
|
|
24
24
|
return Gi.call(e);
|
|
25
25
|
}
|
|
26
26
|
var Zi = "[object Null]", Qi = "[object Undefined]", jt = ee ? ee.toStringTag : void 0;
|
|
27
|
-
function
|
|
27
|
+
function Ie(e) {
|
|
28
28
|
return e == null ? e === void 0 ? Qi : Zi : jt && jt in Object(e) ? Wi(e) : Ji(e);
|
|
29
29
|
}
|
|
30
30
|
function me(e) {
|
|
@@ -32,12 +32,12 @@ function me(e) {
|
|
|
32
32
|
}
|
|
33
33
|
var Yi = "[object Symbol]";
|
|
34
34
|
function It(e) {
|
|
35
|
-
return typeof e == "symbol" || me(e) &&
|
|
35
|
+
return typeof e == "symbol" || me(e) && Ie(e) == Yi;
|
|
36
36
|
}
|
|
37
37
|
function On(e, t) {
|
|
38
|
-
for (var n = -1, o = e == null ? 0 : e.length,
|
|
39
|
-
|
|
40
|
-
return
|
|
38
|
+
for (var n = -1, o = e == null ? 0 : e.length, r = Array(o); ++n < o; )
|
|
39
|
+
r[n] = t(e[n], n, e);
|
|
40
|
+
return r;
|
|
41
41
|
}
|
|
42
42
|
var _e = Array.isArray, Lt = ee ? ee.prototype : void 0, Ut = Lt ? Lt.toString : void 0;
|
|
43
43
|
function Rn(e) {
|
|
@@ -61,7 +61,7 @@ var er = "[object AsyncFunction]", tr = "[object Function]", nr = "[object Gener
|
|
|
61
61
|
function xn(e) {
|
|
62
62
|
if (!nt(e))
|
|
63
63
|
return !1;
|
|
64
|
-
var t =
|
|
64
|
+
var t = Ie(e);
|
|
65
65
|
return t == tr || t == nr || t == er || t == ir;
|
|
66
66
|
}
|
|
67
67
|
var ut = se["__core-js_shared__"], Nt = function() {
|
|
@@ -72,7 +72,7 @@ function rr(e) {
|
|
|
72
72
|
return !!Nt && Nt in e;
|
|
73
73
|
}
|
|
74
74
|
var or = Function.prototype, ar = or.toString;
|
|
75
|
-
function
|
|
75
|
+
function Oe(e) {
|
|
76
76
|
if (e != null) {
|
|
77
77
|
try {
|
|
78
78
|
return ar.call(e);
|
|
@@ -92,16 +92,16 @@ 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(Oe(e));
|
|
96
96
|
}
|
|
97
97
|
function _r(e, t) {
|
|
98
98
|
return e == null ? void 0 : e[t];
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function Re(e, t) {
|
|
101
101
|
var n = _r(e, t);
|
|
102
102
|
return mr(n) ? n : void 0;
|
|
103
103
|
}
|
|
104
|
-
var vt =
|
|
104
|
+
var vt = Re(se, "WeakMap");
|
|
105
105
|
function gr(e, t, n) {
|
|
106
106
|
switch (n.length) {
|
|
107
107
|
case 0:
|
|
@@ -119,8 +119,8 @@ var br = 800, yr = 16, vr = Date.now;
|
|
|
119
119
|
function hr(e) {
|
|
120
120
|
var t = 0, n = 0;
|
|
121
121
|
return function() {
|
|
122
|
-
var o = vr(),
|
|
123
|
-
if (n = o,
|
|
122
|
+
var o = vr(), r = yr - (o - n);
|
|
123
|
+
if (n = o, r > 0) {
|
|
124
124
|
if (++t >= br)
|
|
125
125
|
return arguments[0];
|
|
126
126
|
} else
|
|
@@ -135,7 +135,7 @@ function wr(e) {
|
|
|
135
135
|
}
|
|
136
136
|
var Je = function() {
|
|
137
137
|
try {
|
|
138
|
-
var e =
|
|
138
|
+
var e = Re(Object, "defineProperty");
|
|
139
139
|
return e({}, "", {}), e;
|
|
140
140
|
} catch {
|
|
141
141
|
}
|
|
@@ -174,22 +174,22 @@ function Pn(e, t, n) {
|
|
|
174
174
|
(!(Rr.call(e, t) && Ot(o, n)) || n === void 0 && !(t in e)) && An(e, t, n);
|
|
175
175
|
}
|
|
176
176
|
function xr(e, t, n, o) {
|
|
177
|
-
var
|
|
177
|
+
var r = !n;
|
|
178
178
|
n || (n = {});
|
|
179
179
|
for (var a = -1, c = t.length; ++a < c; ) {
|
|
180
180
|
var p = t[a], l = void 0;
|
|
181
|
-
l === void 0 && (l = e[p]),
|
|
181
|
+
l === void 0 && (l = e[p]), r ? An(n, p, l) : Pn(n, p, l);
|
|
182
182
|
}
|
|
183
183
|
return n;
|
|
184
184
|
}
|
|
185
185
|
var Bt = Math.max;
|
|
186
186
|
function Ar(e, t, n) {
|
|
187
187
|
return t = Bt(t === void 0 ? e.length - 1 : t, 0), function() {
|
|
188
|
-
for (var o = arguments,
|
|
189
|
-
c[
|
|
190
|
-
|
|
191
|
-
for (var p = Array(t + 1); ++
|
|
192
|
-
p[
|
|
188
|
+
for (var o = arguments, r = -1, a = Bt(o.length - t, 0), c = Array(a); ++r < a; )
|
|
189
|
+
c[r] = o[t + r];
|
|
190
|
+
r = -1;
|
|
191
|
+
for (var p = Array(t + 1); ++r < t; )
|
|
192
|
+
p[r] = o[r];
|
|
193
193
|
return p[t] = n(c), gr(e, this, p);
|
|
194
194
|
};
|
|
195
195
|
}
|
|
@@ -212,7 +212,7 @@ function Vr(e, t) {
|
|
|
212
212
|
}
|
|
213
213
|
var Mr = "[object Arguments]";
|
|
214
214
|
function Ft(e) {
|
|
215
|
-
return me(e) &&
|
|
215
|
+
return me(e) && Ie(e) == Mr;
|
|
216
216
|
}
|
|
217
217
|
var Dn = Object.prototype, Dr = Dn.hasOwnProperty, jr = Dn.propertyIsEnumerable, jn = Ft(/* @__PURE__ */ function() {
|
|
218
218
|
return arguments;
|
|
@@ -222,11 +222,11 @@ var Dn = Object.prototype, Dr = Dn.hasOwnProperty, jr = Dn.propertyIsEnumerable,
|
|
|
222
222
|
function Lr() {
|
|
223
223
|
return !1;
|
|
224
224
|
}
|
|
225
|
-
var Ln = typeof exports == "object" && exports && !exports.nodeType && exports, zt = Ln && typeof module == "object" && module && !module.nodeType && module, Ur = zt && zt.exports === Ln, Kt = Ur ? se.Buffer : void 0, Nr = Kt ? Kt.isBuffer : void 0, Ze = Nr || Lr, Br = "[object Arguments]", Fr = "[object Array]", zr = "[object Boolean]", Kr = "[object Date]", Hr = "[object Error]", Wr = "[object Function]", qr = "[object Map]", Gr = "[object Number]", Jr = "[object Object]", Zr = "[object RegExp]", Qr = "[object Set]", Yr = "[object String]", Xr = "[object WeakMap]", eo = "[object ArrayBuffer]", to = "[object DataView]", no = "[object Float32Array]", io = "[object Float64Array]", ro = "[object Int8Array]", oo = "[object Int16Array]", ao = "[object Int32Array]", lo = "[object Uint8Array]", so = "[object Uint8ClampedArray]", uo = "[object Uint16Array]", co = "[object Uint32Array]",
|
|
226
|
-
|
|
227
|
-
|
|
225
|
+
var Ln = typeof exports == "object" && exports && !exports.nodeType && exports, zt = Ln && typeof module == "object" && module && !module.nodeType && module, Ur = zt && zt.exports === Ln, Kt = Ur ? se.Buffer : void 0, Nr = Kt ? Kt.isBuffer : void 0, Ze = Nr || Lr, Br = "[object Arguments]", Fr = "[object Array]", zr = "[object Boolean]", Kr = "[object Date]", Hr = "[object Error]", Wr = "[object Function]", qr = "[object Map]", Gr = "[object Number]", Jr = "[object Object]", Zr = "[object RegExp]", Qr = "[object Set]", Yr = "[object String]", Xr = "[object WeakMap]", eo = "[object ArrayBuffer]", to = "[object DataView]", no = "[object Float32Array]", io = "[object Float64Array]", ro = "[object Int8Array]", oo = "[object Int16Array]", ao = "[object Int32Array]", lo = "[object Uint8Array]", so = "[object Uint8ClampedArray]", uo = "[object Uint16Array]", co = "[object Uint32Array]", U = {};
|
|
226
|
+
U[no] = U[io] = U[ro] = U[oo] = U[ao] = U[lo] = U[so] = U[uo] = U[co] = !0;
|
|
227
|
+
U[Br] = U[Fr] = U[eo] = U[zr] = U[to] = U[Kr] = U[Hr] = U[Wr] = U[qr] = U[Gr] = U[Jr] = U[Zr] = U[Qr] = U[Yr] = U[Xr] = !1;
|
|
228
228
|
function fo(e) {
|
|
229
|
-
return me(e) && $n(e.length) && !!
|
|
229
|
+
return me(e) && $n(e.length) && !!U[Ie(e)];
|
|
230
230
|
}
|
|
231
231
|
function Rt(e) {
|
|
232
232
|
return function(t) {
|
|
@@ -241,11 +241,11 @@ var Un = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
241
241
|
}
|
|
242
242
|
}(), Ht = Ve && Ve.isTypedArray, Nn = Ht ? Rt(Ht) : fo, mo = Object.prototype, _o = mo.hasOwnProperty;
|
|
243
243
|
function Bn(e, t) {
|
|
244
|
-
var n = _e(e), o = !n && jn(e),
|
|
244
|
+
var n = _e(e), o = !n && jn(e), r = !n && !o && Ze(e), a = !n && !o && !r && Nn(e), c = n || o || r || 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
|
+
r && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
249
249
|
a && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
|
|
250
250
|
Ir(u, l))) && p.push(u);
|
|
251
251
|
return p;
|
|
@@ -293,7 +293,7 @@ function Oo(e, t) {
|
|
|
293
293
|
var n = typeof e;
|
|
294
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
|
-
var Le =
|
|
296
|
+
var Le = Re(Object, "create");
|
|
297
297
|
function Ro() {
|
|
298
298
|
this.__data__ = Le ? Le(null) : {}, this.size = 0;
|
|
299
299
|
}
|
|
@@ -320,18 +320,18 @@ function Uo(e, t) {
|
|
|
320
320
|
var n = this.__data__;
|
|
321
321
|
return this.size += this.has(e) ? 0 : 1, n[e] = Le && t === void 0 ? Lo : t, this;
|
|
322
322
|
}
|
|
323
|
-
function
|
|
323
|
+
function ke(e) {
|
|
324
324
|
var t = -1, n = e == null ? 0 : e.length;
|
|
325
325
|
for (this.clear(); ++t < n; ) {
|
|
326
326
|
var o = e[t];
|
|
327
327
|
this.set(o[0], o[1]);
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
330
|
+
ke.prototype.clear = Ro;
|
|
331
|
+
ke.prototype.delete = xo;
|
|
332
|
+
ke.prototype.get = Vo;
|
|
333
|
+
ke.prototype.has = jo;
|
|
334
|
+
ke.prototype.set = Uo;
|
|
335
335
|
function No() {
|
|
336
336
|
this.__data__ = [], this.size = 0;
|
|
337
337
|
}
|
|
@@ -372,12 +372,12 @@ ge.prototype.delete = zo;
|
|
|
372
372
|
ge.prototype.get = Ko;
|
|
373
373
|
ge.prototype.has = Ho;
|
|
374
374
|
ge.prototype.set = Wo;
|
|
375
|
-
var Ue =
|
|
375
|
+
var Ue = Re(se, "Map");
|
|
376
376
|
function qo() {
|
|
377
377
|
this.size = 0, this.__data__ = {
|
|
378
|
-
hash: new
|
|
378
|
+
hash: new ke(),
|
|
379
379
|
map: new (Ue || ge)(),
|
|
380
|
-
string: new
|
|
380
|
+
string: new ke()
|
|
381
381
|
};
|
|
382
382
|
}
|
|
383
383
|
function Go(e) {
|
|
@@ -419,11 +419,11 @@ function xt(e, t) {
|
|
|
419
419
|
if (typeof e != "function" || t != null && typeof t != "function")
|
|
420
420
|
throw new TypeError(Xo);
|
|
421
421
|
var n = function() {
|
|
422
|
-
var o = arguments,
|
|
423
|
-
if (a.has(
|
|
424
|
-
return a.get(
|
|
422
|
+
var o = arguments, r = t ? t.apply(this, o) : o[0], a = n.cache;
|
|
423
|
+
if (a.has(r))
|
|
424
|
+
return a.get(r);
|
|
425
425
|
var c = e.apply(this, o);
|
|
426
|
-
return n.cache = a.set(
|
|
426
|
+
return n.cache = a.set(r, c) || a, c;
|
|
427
427
|
};
|
|
428
428
|
return n.cache = new (xt.Cache || be)(), n;
|
|
429
429
|
}
|
|
@@ -437,8 +437,8 @@ function ta(e) {
|
|
|
437
437
|
}
|
|
438
438
|
var na = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ia = /\\(\\)?/g, ra = ta(function(e) {
|
|
439
439
|
var t = [];
|
|
440
|
-
return e.charCodeAt(0) === 46 && t.push(""), e.replace(na, function(n, o,
|
|
441
|
-
t.push(
|
|
440
|
+
return e.charCodeAt(0) === 46 && t.push(""), e.replace(na, function(n, o, r, a) {
|
|
441
|
+
t.push(r ? a.replace(ia, "$1") : o || n);
|
|
442
442
|
}), t;
|
|
443
443
|
});
|
|
444
444
|
function oa(e) {
|
|
@@ -460,21 +460,21 @@ function aa(e, t) {
|
|
|
460
460
|
return n && n == o ? e : void 0;
|
|
461
461
|
}
|
|
462
462
|
function Pt(e, t) {
|
|
463
|
-
for (var n = -1, o = t.length,
|
|
464
|
-
e[
|
|
463
|
+
for (var n = -1, o = t.length, r = e.length; ++n < o; )
|
|
464
|
+
e[r + n] = t[n];
|
|
465
465
|
return e;
|
|
466
466
|
}
|
|
467
467
|
var Wt = ee ? ee.isConcatSpreadable : void 0;
|
|
468
468
|
function la(e) {
|
|
469
469
|
return _e(e) || jn(e) || !!(Wt && e && e[Wt]);
|
|
470
470
|
}
|
|
471
|
-
function sa(e, t, n, o,
|
|
471
|
+
function sa(e, t, n, o, r) {
|
|
472
472
|
var a = -1, c = e.length;
|
|
473
|
-
for (n || (n = la),
|
|
473
|
+
for (n || (n = la), r || (r = []); ++a < c; ) {
|
|
474
474
|
var p = e[a];
|
|
475
|
-
n(p) ? Pt(
|
|
475
|
+
n(p) ? Pt(r, p) : r[r.length] = p;
|
|
476
476
|
}
|
|
477
|
-
return
|
|
477
|
+
return r;
|
|
478
478
|
}
|
|
479
479
|
function da(e) {
|
|
480
480
|
var t = e == null ? 0 : e.length;
|
|
@@ -485,7 +485,7 @@ function ua(e) {
|
|
|
485
485
|
}
|
|
486
486
|
var Kn = Fn(Object.getPrototypeOf, Object), ca = "[object Object]", fa = Function.prototype, pa = Object.prototype, Hn = fa.toString, ma = pa.hasOwnProperty, _a = Hn.call(Object);
|
|
487
487
|
function ga(e) {
|
|
488
|
-
if (!me(e) ||
|
|
488
|
+
if (!me(e) || Ie(e) != ca)
|
|
489
489
|
return !1;
|
|
490
490
|
var t = Kn(e);
|
|
491
491
|
if (t === null)
|
|
@@ -494,9 +494,9 @@ function ga(e) {
|
|
|
494
494
|
return typeof n == "function" && n instanceof n && Hn.call(n) == _a;
|
|
495
495
|
}
|
|
496
496
|
function ba(e, t, n) {
|
|
497
|
-
var o = -1,
|
|
498
|
-
t < 0 && (t = -t >
|
|
499
|
-
for (var a = Array(
|
|
497
|
+
var o = -1, r = e.length;
|
|
498
|
+
t < 0 && (t = -t > r ? 0 : r + t), n = n > r ? r : n, n < 0 && (n += r), r = t > n ? 0 : n - t >>> 0, t >>>= 0;
|
|
499
|
+
for (var a = Array(r); ++o < r; )
|
|
500
500
|
a[o] = e[o + t];
|
|
501
501
|
return a;
|
|
502
502
|
}
|
|
@@ -539,9 +539,9 @@ function Ca(e, t) {
|
|
|
539
539
|
return e.slice();
|
|
540
540
|
}
|
|
541
541
|
function ka(e, t) {
|
|
542
|
-
for (var n = -1, o = e == null ? 0 : e.length,
|
|
542
|
+
for (var n = -1, o = e == null ? 0 : e.length, r = 0, a = []; ++n < o; ) {
|
|
543
543
|
var c = e[n];
|
|
544
|
-
t(c, n, e) && (a[
|
|
544
|
+
t(c, n, e) && (a[r++] = c);
|
|
545
545
|
}
|
|
546
546
|
return a;
|
|
547
547
|
}
|
|
@@ -567,9 +567,9 @@ function Zt(e) {
|
|
|
567
567
|
function Zn(e) {
|
|
568
568
|
return Jn(e, Co, xa);
|
|
569
569
|
}
|
|
570
|
-
var ht =
|
|
570
|
+
var ht = Re(se, "DataView"), wt = Re(se, "Promise"), Tt = Re(se, "Set"), Qt = "[object Map]", Aa = "[object Object]", Yt = "[object Promise]", Xt = "[object Set]", en = "[object WeakMap]", tn = "[object DataView]", Pa = Oe(ht), $a = Oe(Ue), Va = Oe(wt), Ma = Oe(Tt), Da = Oe(vt), ae = Ie;
|
|
571
571
|
(ht && ae(new ht(new ArrayBuffer(1))) != tn || Ue && ae(new Ue()) != Qt || wt && ae(wt.resolve()) != Yt || Tt && ae(new Tt()) != Xt || vt && ae(new vt()) != en) && (ae = function(e) {
|
|
572
|
-
var t =
|
|
572
|
+
var t = Ie(e), n = t == Aa ? e.constructor : void 0, o = n ? Oe(n) : "";
|
|
573
573
|
if (o)
|
|
574
574
|
switch (o) {
|
|
575
575
|
case Pa:
|
|
@@ -657,9 +657,9 @@ function _l(e) {
|
|
|
657
657
|
var an = Ve && Ve.isSet, gl = an ? Rt(an) : _l, Qn = "[object Arguments]", bl = "[object Array]", yl = "[object Boolean]", vl = "[object Date]", hl = "[object Error]", Yn = "[object Function]", wl = "[object GeneratorFunction]", Tl = "[object Map]", Sl = "[object Number]", Xn = "[object Object]", El = "[object RegExp]", Cl = "[object Set]", kl = "[object String]", Il = "[object Symbol]", Ol = "[object WeakMap]", Rl = "[object ArrayBuffer]", xl = "[object DataView]", Al = "[object Float32Array]", Pl = "[object Float64Array]", $l = "[object Int8Array]", Vl = "[object Int16Array]", Ml = "[object Int32Array]", Dl = "[object Uint8Array]", jl = "[object Uint8ClampedArray]", Ll = "[object Uint16Array]", Ul = "[object Uint32Array]", D = {};
|
|
658
658
|
D[Qn] = D[bl] = D[Rl] = D[xl] = D[yl] = D[vl] = D[Al] = D[Pl] = D[$l] = D[Vl] = D[Ml] = D[Tl] = D[Sl] = D[Xn] = D[El] = D[Cl] = D[kl] = D[Il] = D[Dl] = D[jl] = D[Ll] = D[Ul] = !0;
|
|
659
659
|
D[hl] = D[Yn] = D[Ol] = !1;
|
|
660
|
-
function Ge(e, t, n, o,
|
|
660
|
+
function Ge(e, t, n, o, r, a) {
|
|
661
661
|
var c;
|
|
662
|
-
if (n && (c =
|
|
662
|
+
if (n && (c = r ? n(e, o, r, a) : n(e)), c !== void 0)
|
|
663
663
|
return c;
|
|
664
664
|
if (!nt(e))
|
|
665
665
|
return e;
|
|
@@ -670,24 +670,24 @@ function Ge(e, t, n, o, i, a) {
|
|
|
670
670
|
var l = ae(e), u = l == Yn || l == wl;
|
|
671
671
|
if (Ze(e))
|
|
672
672
|
return Ca(e);
|
|
673
|
-
if (l == Xn || l == Qn || u && !
|
|
673
|
+
if (l == Xn || l == Qn || u && !r)
|
|
674
674
|
c = {};
|
|
675
675
|
else {
|
|
676
676
|
if (!D[l])
|
|
677
|
-
return
|
|
677
|
+
return r ? e : {};
|
|
678
678
|
c = ul(e, l);
|
|
679
679
|
}
|
|
680
680
|
}
|
|
681
681
|
a || (a = new pe());
|
|
682
|
-
var
|
|
683
|
-
if (
|
|
684
|
-
return
|
|
682
|
+
var v = a.get(e);
|
|
683
|
+
if (v)
|
|
684
|
+
return v;
|
|
685
685
|
a.set(e, c), gl(e) ? e.forEach(function(b) {
|
|
686
686
|
c.add(Ge(b, t, n, b, e, a));
|
|
687
687
|
}) : pl(e) && e.forEach(function(b, _) {
|
|
688
688
|
c.set(_, Ge(b, t, n, _, e, a));
|
|
689
689
|
});
|
|
690
|
-
var
|
|
690
|
+
var T = Zn, m = p ? void 0 : T(e);
|
|
691
691
|
return Er(m || e, function(b, _) {
|
|
692
692
|
m && (_ = b, b = e[_]), Pn(c, _, Ge(b, t, n, _, e, a));
|
|
693
693
|
}), c;
|
|
@@ -716,18 +716,18 @@ function Kl(e, t) {
|
|
|
716
716
|
return e.has(t);
|
|
717
717
|
}
|
|
718
718
|
var Hl = 1, Wl = 2;
|
|
719
|
-
function ei(e, t, n, o,
|
|
719
|
+
function ei(e, t, n, o, r, a) {
|
|
720
720
|
var c = n & Hl, p = e.length, l = t.length;
|
|
721
721
|
if (p != l && !(c && l > p))
|
|
722
722
|
return !1;
|
|
723
|
-
var u = a.get(e),
|
|
724
|
-
if (u &&
|
|
725
|
-
return u == t &&
|
|
726
|
-
var
|
|
727
|
-
for (a.set(e, t), a.set(t, e); ++
|
|
728
|
-
var _ = e[
|
|
723
|
+
var u = a.get(e), v = a.get(t);
|
|
724
|
+
if (u && v)
|
|
725
|
+
return u == t && v == e;
|
|
726
|
+
var T = -1, m = !0, b = n & Wl ? new Ye() : void 0;
|
|
727
|
+
for (a.set(e, t), a.set(t, e); ++T < p; ) {
|
|
728
|
+
var _ = e[T], E = t[T];
|
|
729
729
|
if (o)
|
|
730
|
-
var s = c ? o(E, _,
|
|
730
|
+
var s = c ? o(E, _, T, t, e, a) : o(_, E, T, e, t, a);
|
|
731
731
|
if (s !== void 0) {
|
|
732
732
|
if (s)
|
|
733
733
|
continue;
|
|
@@ -736,13 +736,13 @@ function ei(e, t, n, o, i, a) {
|
|
|
736
736
|
}
|
|
737
737
|
if (b) {
|
|
738
738
|
if (!zl(t, function(A, k) {
|
|
739
|
-
if (!Kl(b, k) && (_ === A ||
|
|
739
|
+
if (!Kl(b, k) && (_ === A || r(_, A, n, o, a)))
|
|
740
740
|
return b.push(k);
|
|
741
741
|
})) {
|
|
742
742
|
m = !1;
|
|
743
743
|
break;
|
|
744
744
|
}
|
|
745
|
-
} else if (!(_ === E ||
|
|
745
|
+
} else if (!(_ === E || r(_, E, n, o, a))) {
|
|
746
746
|
m = !1;
|
|
747
747
|
break;
|
|
748
748
|
}
|
|
@@ -751,8 +751,8 @@ function ei(e, t, n, o, i, a) {
|
|
|
751
751
|
}
|
|
752
752
|
function ql(e) {
|
|
753
753
|
var t = -1, n = Array(e.size);
|
|
754
|
-
return e.forEach(function(o,
|
|
755
|
-
n[++t] = [
|
|
754
|
+
return e.forEach(function(o, r) {
|
|
755
|
+
n[++t] = [r, o];
|
|
756
756
|
}), n;
|
|
757
757
|
}
|
|
758
758
|
function Gl(e) {
|
|
@@ -762,7 +762,7 @@ function Gl(e) {
|
|
|
762
762
|
}), n;
|
|
763
763
|
}
|
|
764
764
|
var Jl = 1, Zl = 2, Ql = "[object Boolean]", Yl = "[object Date]", Xl = "[object Error]", es = "[object Map]", ts = "[object Number]", ns = "[object RegExp]", is = "[object Set]", rs = "[object String]", os = "[object Symbol]", as = "[object ArrayBuffer]", ls = "[object DataView]", ln = ee ? ee.prototype : void 0, ft = ln ? ln.valueOf : void 0;
|
|
765
|
-
function ss(e, t, n, o,
|
|
765
|
+
function ss(e, t, n, o, r, a, c) {
|
|
766
766
|
switch (n) {
|
|
767
767
|
case ls:
|
|
768
768
|
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
|
|
@@ -789,8 +789,8 @@ function ss(e, t, n, o, i, a, c) {
|
|
|
789
789
|
if (u)
|
|
790
790
|
return u == t;
|
|
791
791
|
o |= Zl, c.set(e, t);
|
|
792
|
-
var
|
|
793
|
-
return c.delete(e),
|
|
792
|
+
var v = ei(p(e), p(t), o, r, a, c);
|
|
793
|
+
return c.delete(e), v;
|
|
794
794
|
case os:
|
|
795
795
|
if (ft)
|
|
796
796
|
return ft.call(e) == ft.call(t);
|
|
@@ -798,12 +798,12 @@ function ss(e, t, n, o, i, a, c) {
|
|
|
798
798
|
return !1;
|
|
799
799
|
}
|
|
800
800
|
var ds = 1, us = Object.prototype, cs = us.hasOwnProperty;
|
|
801
|
-
function fs(e, t, n, o,
|
|
802
|
-
var c = n & ds, p = Zt(e), l = p.length, u = Zt(t),
|
|
803
|
-
if (l !=
|
|
801
|
+
function fs(e, t, n, o, r, a) {
|
|
802
|
+
var c = n & ds, p = Zt(e), l = p.length, u = Zt(t), v = u.length;
|
|
803
|
+
if (l != v && !c)
|
|
804
804
|
return !1;
|
|
805
|
-
for (var
|
|
806
|
-
var m = p[
|
|
805
|
+
for (var T = l; T--; ) {
|
|
806
|
+
var m = p[T];
|
|
807
807
|
if (!(c ? m in t : cs.call(t, m)))
|
|
808
808
|
return !1;
|
|
809
809
|
}
|
|
@@ -812,12 +812,12 @@ function fs(e, t, n, o, i, a) {
|
|
|
812
812
|
return b == t && _ == e;
|
|
813
813
|
var E = !0;
|
|
814
814
|
a.set(e, t), a.set(t, e);
|
|
815
|
-
for (var s = c; ++
|
|
816
|
-
m = p[
|
|
815
|
+
for (var s = c; ++T < l; ) {
|
|
816
|
+
m = p[T];
|
|
817
817
|
var A = e[m], k = t[m];
|
|
818
818
|
if (o)
|
|
819
819
|
var d = c ? o(k, A, m, t, e, a) : o(A, k, m, e, t, a);
|
|
820
|
-
if (!(d === void 0 ? A === k ||
|
|
820
|
+
if (!(d === void 0 ? A === k || r(A, k, n, o, a) : d)) {
|
|
821
821
|
E = !1;
|
|
822
822
|
break;
|
|
823
823
|
}
|
|
@@ -830,28 +830,28 @@ function fs(e, t, n, o, i, a) {
|
|
|
830
830
|
return a.delete(e), a.delete(t), E;
|
|
831
831
|
}
|
|
832
832
|
var ps = 1, sn = "[object Arguments]", dn = "[object Array]", He = "[object Object]", ms = Object.prototype, un = ms.hasOwnProperty;
|
|
833
|
-
function _s(e, t, n, o,
|
|
833
|
+
function _s(e, t, n, o, r, a) {
|
|
834
834
|
var c = _e(e), p = _e(t), l = c ? dn : ae(e), u = p ? dn : ae(t);
|
|
835
835
|
l = l == sn ? He : l, u = u == sn ? He : u;
|
|
836
|
-
var
|
|
836
|
+
var v = l == He, T = u == He, m = l == u;
|
|
837
837
|
if (m && Ze(e)) {
|
|
838
838
|
if (!Ze(t))
|
|
839
839
|
return !1;
|
|
840
|
-
c = !0,
|
|
840
|
+
c = !0, v = !1;
|
|
841
841
|
}
|
|
842
|
-
if (m && !
|
|
843
|
-
return a || (a = new pe()), c || Nn(e) ? ei(e, t, n, o,
|
|
842
|
+
if (m && !v)
|
|
843
|
+
return a || (a = new pe()), c || Nn(e) ? ei(e, t, n, o, r, a) : ss(e, t, l, n, o, r, a);
|
|
844
844
|
if (!(n & ps)) {
|
|
845
|
-
var b =
|
|
845
|
+
var b = v && un.call(e, "__wrapped__"), _ = T && un.call(t, "__wrapped__");
|
|
846
846
|
if (b || _) {
|
|
847
847
|
var E = b ? e.value() : e, s = _ ? t.value() : t;
|
|
848
|
-
return a || (a = new pe()),
|
|
848
|
+
return a || (a = new pe()), r(E, s, n, o, a);
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
|
-
return m ? (a || (a = new pe()), fs(e, t, n, o,
|
|
851
|
+
return m ? (a || (a = new pe()), fs(e, t, n, o, r, a)) : !1;
|
|
852
852
|
}
|
|
853
|
-
function ti(e, t, n, o,
|
|
854
|
-
return e === t ? !0 : e == null || t == null || !me(e) && !me(t) ? e !== e && t !== t : _s(e, t, n, o, ti,
|
|
853
|
+
function ti(e, t, n, o, r) {
|
|
854
|
+
return e === t ? !0 : e == null || t == null || !me(e) && !me(t) ? e !== e && t !== t : _s(e, t, n, o, ti, r);
|
|
855
855
|
}
|
|
856
856
|
function gs(e) {
|
|
857
857
|
var t = e == null ? 0 : e.length;
|
|
@@ -877,8 +877,8 @@ var ws = 1, Ts = 2, Ss = 4, Es = ua(function(e, t) {
|
|
|
877
877
|
t = On(t, function(a) {
|
|
878
878
|
return a = At(a, e), o || (o = a.length > 1), a;
|
|
879
879
|
}), xr(e, Zn(e), n), o && (n = Ge(n, ws | Ts | Ss, hs));
|
|
880
|
-
for (var
|
|
881
|
-
vs(n, t[
|
|
880
|
+
for (var r = t.length; r--; )
|
|
881
|
+
vs(n, t[r]);
|
|
882
882
|
return n;
|
|
883
883
|
});
|
|
884
884
|
const G = [];
|
|
@@ -899,11 +899,11 @@ function Is() {
|
|
|
899
899
|
}
|
|
900
900
|
const Os = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), cn = { randomUUID: Os };
|
|
901
901
|
function Rs(e, t, n) {
|
|
902
|
-
var
|
|
902
|
+
var r;
|
|
903
903
|
if (cn.randomUUID && !e)
|
|
904
904
|
return cn.randomUUID();
|
|
905
905
|
e = e || {};
|
|
906
|
-
const o = e.random ?? ((
|
|
906
|
+
const o = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? Is();
|
|
907
907
|
if (o.length < 16)
|
|
908
908
|
throw new Error("Random bytes length must be >= 16");
|
|
909
909
|
return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, Cs(o);
|
|
@@ -914,7 +914,7 @@ const ni = {
|
|
|
914
914
|
}, ii = {
|
|
915
915
|
host: "127.0.0.1",
|
|
916
916
|
port: 6379
|
|
917
|
-
}, $e =
|
|
917
|
+
}, $e = w.HOST_PORT_EE, ri = {
|
|
918
918
|
port: 6379,
|
|
919
919
|
host: "127.0.0.1",
|
|
920
920
|
database: 0,
|
|
@@ -950,8 +950,8 @@ const ni = {
|
|
|
950
950
|
return n;
|
|
951
951
|
}, oi = () => Ne(ii), ai = () => Ne(ni), Be = (e) => {
|
|
952
952
|
var t, n;
|
|
953
|
-
return e.type ===
|
|
954
|
-
}, Xe = (e) => e ===
|
|
953
|
+
return e.type === Q.REDIS_CE ? w.HOST_PORT_CE : (t = e.config.sentinel_nodes) != null && t.length ? w.SENTINEL : (n = e.config.cluster_nodes) != null && n.length ? w.CLUSTER : w.HOST_PORT_EE;
|
|
954
|
+
}, Xe = (e) => e === w.HOST_PORT_CE ? Q.REDIS_CE : Q.REDIS_EE, h = {
|
|
955
955
|
int(e, t) {
|
|
956
956
|
return e == null ? t : parseInt(e.toString(), 10);
|
|
957
957
|
},
|
|
@@ -1054,7 +1054,7 @@ const ni = {
|
|
|
1054
1054
|
}
|
|
1055
1055
|
return typeof e == "number" ? e >= 0 && e <= 65535 : !1;
|
|
1056
1056
|
}, As = (e) => {
|
|
1057
|
-
const { partialId: t, config: n, defaultRedisType: o = $e } = e,
|
|
1057
|
+
const { partialId: t, config: n, defaultRedisType: o = $e } = e, r = !!t, { axiosInstance: a } = kt(n.axiosRequestConfig), { getMessageFromError: c } = yn(), p = z(() => t ? dt.Edit : dt.Create), l = mn({
|
|
1058
1058
|
fields: {
|
|
1059
1059
|
name: "",
|
|
1060
1060
|
tags: "",
|
|
@@ -1063,23 +1063,23 @@ const ni = {
|
|
|
1063
1063
|
},
|
|
1064
1064
|
readonly: !1,
|
|
1065
1065
|
errorMessage: ""
|
|
1066
|
-
}), u = x(),
|
|
1067
|
-
|
|
1066
|
+
}), u = x(), v = x(o), T = z(() => v.value === w.HOST_PORT_EE || v.value === w.CLUSTER || v.value === w.SENTINEL);
|
|
1067
|
+
Ce(v, (d) => {
|
|
1068
1068
|
l.fields.type = Xe(d);
|
|
1069
1069
|
});
|
|
1070
1070
|
const m = z(() => {
|
|
1071
|
-
var O, P, W,
|
|
1072
|
-
if (
|
|
1071
|
+
var O, P, W, X;
|
|
1072
|
+
if (r && ys(u.value, _.value) || !((O = l.fields.name) != null && O.length))
|
|
1073
1073
|
return !1;
|
|
1074
1074
|
const { config: d } = l.fields;
|
|
1075
|
-
switch (
|
|
1076
|
-
case
|
|
1077
|
-
case
|
|
1075
|
+
switch (v.value) {
|
|
1076
|
+
case w.HOST_PORT_CE:
|
|
1077
|
+
case w.HOST_PORT_EE:
|
|
1078
1078
|
return !!d.host && d.host.length > 0 && xs(d.port) && (((P = d.cloud_authentication) == null ? void 0 : P.auth_provider) !== "aws" || !!d.cloud_authentication.aws_cache_name);
|
|
1079
|
-
case
|
|
1079
|
+
case w.CLUSTER:
|
|
1080
1080
|
return !!d.cluster_nodes.length && d.cluster_nodes.every((ne) => ne.ip.length > 0) && (((W = d.cloud_authentication) == null ? void 0 : W.auth_provider) !== "aws" || !!d.cloud_authentication.aws_cache_name);
|
|
1081
|
-
case
|
|
1082
|
-
return !!d.sentinel_nodes.length && d.sentinel_nodes.every((ne) => ne.host.length > 0) && !!((
|
|
1081
|
+
case w.SENTINEL:
|
|
1082
|
+
return !!d.sentinel_nodes.length && d.sentinel_nodes.every((ne) => ne.host.length > 0) && !!((X = d.sentinel_master) != null && X.length) && d.sentinel_role && !!d.sentinel_role.length;
|
|
1083
1083
|
default:
|
|
1084
1084
|
throw new Error("Invalid redis type");
|
|
1085
1085
|
}
|
|
@@ -1102,8 +1102,8 @@ const ni = {
|
|
|
1102
1102
|
azure_tenant_id: h.str(d.azure_tenant_id, null)
|
|
1103
1103
|
} : null;
|
|
1104
1104
|
}, _ = z(() => {
|
|
1105
|
-
switch (
|
|
1106
|
-
case
|
|
1105
|
+
switch (v.value) {
|
|
1106
|
+
case w.HOST_PORT_CE:
|
|
1107
1107
|
return {
|
|
1108
1108
|
name: l.fields.name,
|
|
1109
1109
|
type: l.fields.type,
|
|
@@ -1121,7 +1121,7 @@ const ni = {
|
|
|
1121
1121
|
server_name: h.str(l.fields.config.server_name, null)
|
|
1122
1122
|
}
|
|
1123
1123
|
};
|
|
1124
|
-
case
|
|
1124
|
+
case w.HOST_PORT_EE:
|
|
1125
1125
|
return {
|
|
1126
1126
|
name: l.fields.name,
|
|
1127
1127
|
type: l.fields.type,
|
|
@@ -1152,7 +1152,7 @@ const ni = {
|
|
|
1152
1152
|
sentinel_password: null
|
|
1153
1153
|
}
|
|
1154
1154
|
};
|
|
1155
|
-
case
|
|
1155
|
+
case w.CLUSTER:
|
|
1156
1156
|
return {
|
|
1157
1157
|
name: l.fields.name,
|
|
1158
1158
|
type: l.fields.type,
|
|
@@ -1183,7 +1183,7 @@ const ni = {
|
|
|
1183
1183
|
port: null
|
|
1184
1184
|
}
|
|
1185
1185
|
};
|
|
1186
|
-
case
|
|
1186
|
+
case w.SENTINEL:
|
|
1187
1187
|
return {
|
|
1188
1188
|
name: l.fields.name,
|
|
1189
1189
|
type: l.fields.type,
|
|
@@ -1227,9 +1227,9 @@ const ni = {
|
|
|
1227
1227
|
form: l,
|
|
1228
1228
|
canSubmit: m,
|
|
1229
1229
|
payload: _,
|
|
1230
|
-
isEdit:
|
|
1231
|
-
redisType:
|
|
1232
|
-
redisTypeIsEnterprise:
|
|
1230
|
+
isEdit: r,
|
|
1231
|
+
redisType: v,
|
|
1232
|
+
redisTypeIsEnterprise: T,
|
|
1233
1233
|
formType: p,
|
|
1234
1234
|
fetchUrl: s,
|
|
1235
1235
|
submit: async () => {
|
|
@@ -1250,10 +1250,10 @@ const ni = {
|
|
|
1250
1250
|
l.fields.config,
|
|
1251
1251
|
h.removeNullValues(d.config)
|
|
1252
1252
|
// remove null values if data, so they can be replaced with default values
|
|
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),
|
|
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), v.value = Be(d), u.value = JSON.parse(JSON.stringify(_.value));
|
|
1254
1254
|
}
|
|
1255
1255
|
};
|
|
1256
|
-
}, Ps = { class: "array-card-container" }, $s = /* @__PURE__ */
|
|
1256
|
+
}, Ps = { class: "array-card-container" }, $s = /* @__PURE__ */ Y({
|
|
1257
1257
|
__name: "FieldArrayCardContainer",
|
|
1258
1258
|
props: {
|
|
1259
1259
|
model: {
|
|
@@ -1276,7 +1276,7 @@ const ni = {
|
|
|
1276
1276
|
emits: ["remove-item"],
|
|
1277
1277
|
setup(e) {
|
|
1278
1278
|
return (t, n) => {
|
|
1279
|
-
const o = $("KCard"),
|
|
1279
|
+
const o = $("KCard"), r = $("KButton");
|
|
1280
1280
|
return I(), J("div", Ps, [
|
|
1281
1281
|
g(o, { class: "card" }, {
|
|
1282
1282
|
default: S(() => [
|
|
@@ -1284,14 +1284,14 @@ const ni = {
|
|
|
1284
1284
|
]),
|
|
1285
1285
|
_: 3
|
|
1286
1286
|
}),
|
|
1287
|
-
g(
|
|
1287
|
+
g(r, {
|
|
1288
1288
|
appearance: "tertiary",
|
|
1289
1289
|
class: "array-card-remove-button",
|
|
1290
1290
|
disabled: e.disabled,
|
|
1291
1291
|
onClick: n[0] || (n[0] = (a) => t.$emit("remove-item"))
|
|
1292
1292
|
}, {
|
|
1293
1293
|
default: S(() => [
|
|
1294
|
-
g(
|
|
1294
|
+
g(i(ji))
|
|
1295
1295
|
]),
|
|
1296
1296
|
_: 1
|
|
1297
1297
|
}, 8, ["disabled"])
|
|
@@ -1300,8 +1300,8 @@ const ni = {
|
|
|
1300
1300
|
}
|
|
1301
1301
|
}), te = (e, t) => {
|
|
1302
1302
|
const n = e.__vccOpts || e;
|
|
1303
|
-
for (const [o,
|
|
1304
|
-
n[o] =
|
|
1303
|
+
for (const [o, r] of t)
|
|
1304
|
+
n[o] = r;
|
|
1305
1305
|
return n;
|
|
1306
1306
|
}, li = /* @__PURE__ */ te($s, [["__scopeId", "data-v-a0b2e4fb"]]), Vs = {
|
|
1307
1307
|
create: "New Redis Configuration",
|
|
@@ -1626,7 +1626,7 @@ function ot() {
|
|
|
1626
1626
|
}
|
|
1627
1627
|
const ye = {
|
|
1628
1628
|
useI18n: ot
|
|
1629
|
-
}, Ks = { class: "cluster-node-items" }, Hs = /* @__PURE__ */
|
|
1629
|
+
}, Ks = { class: "cluster-node-items" }, Hs = /* @__PURE__ */ Y({
|
|
1630
1630
|
__name: "ClusterNodes",
|
|
1631
1631
|
props: /* @__PURE__ */ Et({
|
|
1632
1632
|
readonly: { type: Boolean }
|
|
@@ -1638,7 +1638,7 @@ const ye = {
|
|
|
1638
1638
|
setup(e) {
|
|
1639
1639
|
const t = Ct(e, "modelValue"), { i18n: { t: n } } = ye.useI18n(), o = () => {
|
|
1640
1640
|
t.value.push(ai());
|
|
1641
|
-
},
|
|
1641
|
+
}, r = (a) => {
|
|
1642
1642
|
t.value.splice(a, 1);
|
|
1643
1643
|
};
|
|
1644
1644
|
return (a, c) => {
|
|
@@ -1646,30 +1646,30 @@ const ye = {
|
|
|
1646
1646
|
return I(), J("div", null, [
|
|
1647
1647
|
g(p, {
|
|
1648
1648
|
class: "required",
|
|
1649
|
-
info:
|
|
1649
|
+
info: i(n)("form.fields.cluster_nodes.tooltip"),
|
|
1650
1650
|
"tooltip-attributes": { maxWidth: "400" }
|
|
1651
1651
|
}, {
|
|
1652
1652
|
default: S(() => [
|
|
1653
|
-
le(
|
|
1653
|
+
le(B(i(n)("form.fields.cluster_nodes.title")), 1)
|
|
1654
1654
|
]),
|
|
1655
1655
|
_: 1
|
|
1656
1656
|
}, 8, ["info"]),
|
|
1657
1657
|
K("div", null, [
|
|
1658
|
-
(I(!0), J(fe, null, tt(t.value, (
|
|
1659
|
-
key: `${
|
|
1658
|
+
(I(!0), J(fe, null, tt(t.value, (v, T) => (I(), N(li, {
|
|
1659
|
+
key: `${T}`,
|
|
1660
1660
|
"data-testid": "redis-cluster-nodes",
|
|
1661
1661
|
disabled: e.readonly,
|
|
1662
|
-
onRemoveItem: (m) =>
|
|
1662
|
+
onRemoveItem: (m) => r(T)
|
|
1663
1663
|
}, {
|
|
1664
1664
|
default: S(() => [
|
|
1665
1665
|
K("div", Ks, [
|
|
1666
1666
|
g(l, {
|
|
1667
|
-
modelValue:
|
|
1668
|
-
"onUpdate:modelValue": (m) =>
|
|
1667
|
+
modelValue: v.ip,
|
|
1668
|
+
"onUpdate:modelValue": (m) => v.ip = m,
|
|
1669
1669
|
modelModifiers: { trim: !0 },
|
|
1670
|
-
label:
|
|
1670
|
+
label: i(n)("form.fields.cluster_node_ip.label"),
|
|
1671
1671
|
"label-attributes": {
|
|
1672
|
-
info:
|
|
1672
|
+
info: i(n)("form.fields.cluster_node_ip.tooltip"),
|
|
1673
1673
|
tooltipAttributes: { maxWidth: "400" }
|
|
1674
1674
|
},
|
|
1675
1675
|
name: "ip",
|
|
@@ -1677,11 +1677,11 @@ const ye = {
|
|
|
1677
1677
|
required: ""
|
|
1678
1678
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "label-attributes", "readonly"]),
|
|
1679
1679
|
g(l, {
|
|
1680
|
-
modelValue:
|
|
1681
|
-
"onUpdate:modelValue": (m) =>
|
|
1682
|
-
label:
|
|
1680
|
+
modelValue: v.port,
|
|
1681
|
+
"onUpdate:modelValue": (m) => v.port = m,
|
|
1682
|
+
label: i(n)("form.fields.cluster_node_port.label"),
|
|
1683
1683
|
"label-attributes": {
|
|
1684
|
-
info:
|
|
1684
|
+
info: i(n)("form.fields.cluster_node_port.tooltip"),
|
|
1685
1685
|
tooltipAttributes: { maxWidth: "400" }
|
|
1686
1686
|
},
|
|
1687
1687
|
name: "port",
|
|
@@ -1699,8 +1699,8 @@ const ye = {
|
|
|
1699
1699
|
onClick: o
|
|
1700
1700
|
}, {
|
|
1701
1701
|
default: S(() => [
|
|
1702
|
-
g(
|
|
1703
|
-
K("span", null,
|
|
1702
|
+
g(i(Sn)),
|
|
1703
|
+
K("span", null, B(i(n)("form.fields.cluster_nodes.add_button")), 1)
|
|
1704
1704
|
]),
|
|
1705
1705
|
_: 1
|
|
1706
1706
|
}, 8, ["disabled"])
|
|
@@ -1712,15 +1712,15 @@ const ye = {
|
|
|
1712
1712
|
const e = x(), t = x();
|
|
1713
1713
|
return {
|
|
1714
1714
|
vaultSecretPickerSetup: e,
|
|
1715
|
-
setUpVaultSecretPicker: (
|
|
1716
|
-
e.value =
|
|
1715
|
+
setUpVaultSecretPicker: (r, a) => {
|
|
1716
|
+
e.value = r ?? "", t.value = a;
|
|
1717
1717
|
},
|
|
1718
|
-
handleVaultSecretPickerAutofill: (
|
|
1718
|
+
handleVaultSecretPickerAutofill: (r) => {
|
|
1719
1719
|
var a;
|
|
1720
|
-
(a = t.value) == null || a.call(t,
|
|
1720
|
+
(a = t.value) == null || a.call(t, r), e.value = !1;
|
|
1721
1721
|
}
|
|
1722
1722
|
};
|
|
1723
|
-
}, qs = { class: "sentinel-node-items" }, Gs = /* @__PURE__ */
|
|
1723
|
+
}, qs = { class: "sentinel-node-items" }, Gs = /* @__PURE__ */ Y({
|
|
1724
1724
|
__name: "SentinelNodes",
|
|
1725
1725
|
props: /* @__PURE__ */ Et({
|
|
1726
1726
|
readonly: { type: Boolean }
|
|
@@ -1732,7 +1732,7 @@ const ye = {
|
|
|
1732
1732
|
setup(e) {
|
|
1733
1733
|
const t = Ct(e, "modelValue"), { i18n: { t: n } } = ye.useI18n(), o = () => {
|
|
1734
1734
|
t.value.push(oi());
|
|
1735
|
-
},
|
|
1735
|
+
}, r = (a) => {
|
|
1736
1736
|
t.value.splice(a, 1);
|
|
1737
1737
|
};
|
|
1738
1738
|
return (a, c) => {
|
|
@@ -1740,30 +1740,30 @@ const ye = {
|
|
|
1740
1740
|
return I(), J("div", null, [
|
|
1741
1741
|
g(p, {
|
|
1742
1742
|
class: "required",
|
|
1743
|
-
info:
|
|
1743
|
+
info: i(n)("form.fields.sentinel_nodes.tooltip"),
|
|
1744
1744
|
"tooltip-attributes": { maxWidth: "400" }
|
|
1745
1745
|
}, {
|
|
1746
1746
|
default: S(() => [
|
|
1747
|
-
le(
|
|
1747
|
+
le(B(i(n)("form.fields.sentinel_nodes.title")), 1)
|
|
1748
1748
|
]),
|
|
1749
1749
|
_: 1
|
|
1750
1750
|
}, 8, ["info"]),
|
|
1751
1751
|
K("div", null, [
|
|
1752
|
-
(I(!0), J(fe, null, tt(t.value, (
|
|
1753
|
-
key:
|
|
1752
|
+
(I(!0), J(fe, null, tt(t.value, (v, T) => (I(), N(li, {
|
|
1753
|
+
key: v.id,
|
|
1754
1754
|
"data-testid": "redis-sentinel-nodes",
|
|
1755
1755
|
disabled: e.readonly,
|
|
1756
|
-
onRemoveItem: (m) =>
|
|
1756
|
+
onRemoveItem: (m) => r(T)
|
|
1757
1757
|
}, {
|
|
1758
1758
|
default: S(() => [
|
|
1759
1759
|
K("div", qs, [
|
|
1760
1760
|
g(l, {
|
|
1761
|
-
modelValue:
|
|
1762
|
-
"onUpdate:modelValue": (m) =>
|
|
1761
|
+
modelValue: v.host,
|
|
1762
|
+
"onUpdate:modelValue": (m) => v.host = m,
|
|
1763
1763
|
modelModifiers: { trim: !0 },
|
|
1764
|
-
label:
|
|
1764
|
+
label: i(n)("form.fields.sentinel_node_host.label"),
|
|
1765
1765
|
"label-attributes": {
|
|
1766
|
-
info:
|
|
1766
|
+
info: i(n)("form.fields.sentinel_node_host.tooltip"),
|
|
1767
1767
|
tooltipAttributes: { maxWidth: "400" }
|
|
1768
1768
|
},
|
|
1769
1769
|
name: "host",
|
|
@@ -1771,11 +1771,11 @@ const ye = {
|
|
|
1771
1771
|
required: ""
|
|
1772
1772
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "label-attributes", "readonly"]),
|
|
1773
1773
|
g(l, {
|
|
1774
|
-
modelValue:
|
|
1775
|
-
"onUpdate:modelValue": (m) =>
|
|
1776
|
-
label:
|
|
1774
|
+
modelValue: v.port,
|
|
1775
|
+
"onUpdate:modelValue": (m) => v.port = m,
|
|
1776
|
+
label: i(n)("form.fields.sentinel_node_port.label"),
|
|
1777
1777
|
"label-attributes": {
|
|
1778
|
-
info:
|
|
1778
|
+
info: i(n)("form.fields.sentinel_node_port.tooltip"),
|
|
1779
1779
|
tooltipAttributes: { maxWidth: "400" }
|
|
1780
1780
|
},
|
|
1781
1781
|
name: "port",
|
|
@@ -1793,8 +1793,8 @@ const ye = {
|
|
|
1793
1793
|
onClick: o
|
|
1794
1794
|
}, {
|
|
1795
1795
|
default: S(() => [
|
|
1796
|
-
g(
|
|
1797
|
-
K("span", null,
|
|
1796
|
+
g(i(Sn)),
|
|
1797
|
+
K("span", null, B(i(n)("form.fields.sentinel_nodes.add_button")), 1)
|
|
1798
1798
|
]),
|
|
1799
1799
|
_: 1
|
|
1800
1800
|
}, 8, ["disabled"])
|
|
@@ -1802,7 +1802,7 @@ const ye = {
|
|
|
1802
1802
|
]);
|
|
1803
1803
|
};
|
|
1804
1804
|
}
|
|
1805
|
-
}), Js = /* @__PURE__ */ te(Gs, [["__scopeId", "data-v-cd1c07e2"]]), Zs = /* @__PURE__ */
|
|
1805
|
+
}), Js = /* @__PURE__ */ te(Gs, [["__scopeId", "data-v-cd1c07e2"]]), Zs = /* @__PURE__ */ Y({
|
|
1806
1806
|
__name: "CloudAuthFields",
|
|
1807
1807
|
props: /* @__PURE__ */ Et({
|
|
1808
1808
|
config: {},
|
|
@@ -1815,7 +1815,7 @@ const ye = {
|
|
|
1815
1815
|
setup(e) {
|
|
1816
1816
|
const t = Ct(e, "modelValue"), { i18n: { t: n } } = ye.useI18n(), {
|
|
1817
1817
|
vaultSecretPickerSetup: o,
|
|
1818
|
-
setUpVaultSecretPicker:
|
|
1818
|
+
setUpVaultSecretPicker: r,
|
|
1819
1819
|
handleVaultSecretPickerAutofill: a
|
|
1820
1820
|
} = si(), c = [
|
|
1821
1821
|
{
|
|
@@ -1909,13 +1909,13 @@ const ye = {
|
|
|
1909
1909
|
return l.group === ((u = t.value) == null ? void 0 : u.auth_provider);
|
|
1910
1910
|
}));
|
|
1911
1911
|
return (l, u) => {
|
|
1912
|
-
const
|
|
1912
|
+
const v = $("KInput"), T = $("KCheckbox");
|
|
1913
1913
|
return I(), J(fe, null, [
|
|
1914
1914
|
(I(!0), J(fe, null, tt(p.value, (m) => (I(), J(fe, {
|
|
1915
1915
|
key: m.key
|
|
1916
1916
|
}, [
|
|
1917
1917
|
m.type !== "boolean" ? (I(), J(fe, { key: 0 }, [
|
|
1918
|
-
g(
|
|
1918
|
+
g(v, {
|
|
1919
1919
|
modelValue: t.value[m.key],
|
|
1920
1920
|
"onUpdate:modelValue": (b) => t.value[m.key] = b,
|
|
1921
1921
|
"data-testid": `redis-${m.key}-input`,
|
|
@@ -1929,15 +1929,15 @@ const ye = {
|
|
|
1929
1929
|
"show-password-mask-toggle": m.encrypted,
|
|
1930
1930
|
type: m.encrypted ? "password" : "text"
|
|
1931
1931
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "label", "label-attributes", "readonly", "required", "show-password-mask-toggle", "type"]),
|
|
1932
|
-
m.referenceable ? (I(),
|
|
1932
|
+
m.referenceable ? (I(), N(i(he), {
|
|
1933
1933
|
key: 0,
|
|
1934
1934
|
class: "secret-picker-provider",
|
|
1935
1935
|
disabled: e.readonly,
|
|
1936
1936
|
update: (b) => t.value[m.key] = b,
|
|
1937
1937
|
value: t.value[m.key] ?? "",
|
|
1938
|
-
onOpen: u[0] || (u[0] = (b, _) => r
|
|
1939
|
-
}, null, 8, ["disabled", "update", "value"])) :
|
|
1940
|
-
], 64)) : (I(),
|
|
1938
|
+
onOpen: u[0] || (u[0] = (b, _) => i(r)(b, _))
|
|
1939
|
+
}, null, 8, ["disabled", "update", "value"])) : Z("", !0)
|
|
1940
|
+
], 64)) : (I(), N(T, {
|
|
1941
1941
|
key: 1,
|
|
1942
1942
|
modelValue: t.value[m.key],
|
|
1943
1943
|
"onUpdate:modelValue": (b) => t.value[m.key] = b,
|
|
@@ -1950,11 +1950,11 @@ const ye = {
|
|
|
1950
1950
|
readonly: e.readonly
|
|
1951
1951
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "label", "label-attributes", "readonly"]))
|
|
1952
1952
|
], 64))), 128)),
|
|
1953
|
-
g(
|
|
1953
|
+
g(i(wn), {
|
|
1954
1954
|
config: e.config,
|
|
1955
|
-
setup:
|
|
1955
|
+
setup: i(o),
|
|
1956
1956
|
onCancel: u[1] || (u[1] = () => o.value = !1),
|
|
1957
|
-
onProceed:
|
|
1957
|
+
onProceed: i(a)
|
|
1958
1958
|
}, null, 8, ["config", "setup", "onProceed"])
|
|
1959
1959
|
], 64);
|
|
1960
1960
|
};
|
|
@@ -1991,17 +1991,17 @@ var Mt = (
|
|
|
1991
1991
|
var n = this.serializeKey(t);
|
|
1992
1992
|
return this.items.get(n);
|
|
1993
1993
|
}, e.prototype.set = function(t, n, o) {
|
|
1994
|
-
var
|
|
1994
|
+
var r = this.serializeKey(t), a = o || this.ttl, c = Date.now(), p = {
|
|
1995
1995
|
data: n,
|
|
1996
1996
|
createdAt: c,
|
|
1997
1997
|
expiresAt: a ? c + a : 1 / 0
|
|
1998
1998
|
};
|
|
1999
|
-
this.dispatchExpire(a, p,
|
|
1999
|
+
this.dispatchExpire(a, p, r), this.items.set(r, p);
|
|
2000
2000
|
}, e.prototype.dispatchExpire = function(t, n, o) {
|
|
2001
|
-
var
|
|
2001
|
+
var r = this;
|
|
2002
2002
|
t && setTimeout(function() {
|
|
2003
2003
|
var a = Date.now(), c = a >= n.expiresAt;
|
|
2004
|
-
c &&
|
|
2004
|
+
c && r.delete(o);
|
|
2005
2005
|
}, t);
|
|
2006
2006
|
}, e.prototype.delete = function(t) {
|
|
2007
2007
|
this.items.delete(t);
|
|
@@ -2028,33 +2028,33 @@ var ce = function() {
|
|
|
2028
2028
|
return ce = Object.assign || function(e) {
|
|
2029
2029
|
for (var t, n = 1, o = arguments.length; n < o; n++) {
|
|
2030
2030
|
t = arguments[n];
|
|
2031
|
-
for (var
|
|
2031
|
+
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
|
|
2032
2032
|
}
|
|
2033
2033
|
return e;
|
|
2034
2034
|
}, ce.apply(this, arguments);
|
|
2035
2035
|
}, Ae = function(e, t, n, o) {
|
|
2036
|
-
function
|
|
2036
|
+
function r(a) {
|
|
2037
2037
|
return a instanceof n ? a : new n(function(c) {
|
|
2038
2038
|
c(a);
|
|
2039
2039
|
});
|
|
2040
2040
|
}
|
|
2041
2041
|
return new (n || (n = Promise))(function(a, c) {
|
|
2042
|
-
function p(
|
|
2042
|
+
function p(v) {
|
|
2043
2043
|
try {
|
|
2044
|
-
u(o.next(
|
|
2045
|
-
} catch (
|
|
2046
|
-
c(
|
|
2044
|
+
u(o.next(v));
|
|
2045
|
+
} catch (T) {
|
|
2046
|
+
c(T);
|
|
2047
2047
|
}
|
|
2048
2048
|
}
|
|
2049
|
-
function l(
|
|
2049
|
+
function l(v) {
|
|
2050
2050
|
try {
|
|
2051
|
-
u(o.throw(
|
|
2052
|
-
} catch (
|
|
2053
|
-
c(
|
|
2051
|
+
u(o.throw(v));
|
|
2052
|
+
} catch (T) {
|
|
2053
|
+
c(T);
|
|
2054
2054
|
}
|
|
2055
2055
|
}
|
|
2056
|
-
function u(
|
|
2057
|
-
|
|
2056
|
+
function u(v) {
|
|
2057
|
+
v.done ? a(v.value) : r(v.value).then(p, l);
|
|
2058
2058
|
}
|
|
2059
2059
|
u((o = o.apply(e, t || [])).next());
|
|
2060
2060
|
});
|
|
@@ -2062,20 +2062,20 @@ var ce = function() {
|
|
|
2062
2062
|
var n = { label: 0, sent: function() {
|
|
2063
2063
|
if (a[0] & 1) throw a[1];
|
|
2064
2064
|
return a[1];
|
|
2065
|
-
}, trys: [], ops: [] }, o,
|
|
2065
|
+
}, trys: [], ops: [] }, o, r, a, c;
|
|
2066
2066
|
return c = { next: p(0), throw: p(1), return: p(2) }, typeof Symbol == "function" && (c[Symbol.iterator] = function() {
|
|
2067
2067
|
return this;
|
|
2068
2068
|
}), c;
|
|
2069
2069
|
function p(u) {
|
|
2070
|
-
return function(
|
|
2071
|
-
return l([u,
|
|
2070
|
+
return function(v) {
|
|
2071
|
+
return l([u, v]);
|
|
2072
2072
|
};
|
|
2073
2073
|
}
|
|
2074
2074
|
function l(u) {
|
|
2075
2075
|
if (o) throw new TypeError("Generator is already executing.");
|
|
2076
2076
|
for (; n; ) try {
|
|
2077
|
-
if (o = 1,
|
|
2078
|
-
switch (
|
|
2077
|
+
if (o = 1, r && (a = u[0] & 2 ? r.return : u[0] ? r.throw || ((a = r.return) && a.call(r), 0) : r.next) && !(a = a.call(r, u[1])).done) return a;
|
|
2078
|
+
switch (r = 0, a && (u = [u[0] & 2, a.value]), u[0]) {
|
|
2079
2079
|
case 0:
|
|
2080
2080
|
case 1:
|
|
2081
2081
|
a = u;
|
|
@@ -2083,7 +2083,7 @@ var ce = function() {
|
|
|
2083
2083
|
case 4:
|
|
2084
2084
|
return n.label++, { value: u[1], done: !1 };
|
|
2085
2085
|
case 5:
|
|
2086
|
-
n.label++,
|
|
2086
|
+
n.label++, r = u[1], u = [0];
|
|
2087
2087
|
continue;
|
|
2088
2088
|
case 7:
|
|
2089
2089
|
u = n.ops.pop(), n.trys.pop();
|
|
@@ -2109,8 +2109,8 @@ var ce = function() {
|
|
|
2109
2109
|
continue;
|
|
2110
2110
|
}
|
|
2111
2111
|
u = t.call(e, n);
|
|
2112
|
-
} catch (
|
|
2113
|
-
u = [6,
|
|
2112
|
+
} catch (v) {
|
|
2113
|
+
u = [6, v], r = 0;
|
|
2114
2114
|
} finally {
|
|
2115
2115
|
o = a = 0;
|
|
2116
2116
|
}
|
|
@@ -2120,21 +2120,21 @@ var ce = function() {
|
|
|
2120
2120
|
}, id = function(e, t) {
|
|
2121
2121
|
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
2122
2122
|
if (!n) return e;
|
|
2123
|
-
var o = n.call(e),
|
|
2123
|
+
var o = n.call(e), r, a = [], c;
|
|
2124
2124
|
try {
|
|
2125
|
-
for (; (t === void 0 || t-- > 0) && !(
|
|
2125
|
+
for (; (t === void 0 || t-- > 0) && !(r = o.next()).done; ) a.push(r.value);
|
|
2126
2126
|
} catch (p) {
|
|
2127
2127
|
c = { error: p };
|
|
2128
2128
|
} finally {
|
|
2129
2129
|
try {
|
|
2130
|
-
|
|
2130
|
+
r && !r.done && (n = o.return) && n.call(o);
|
|
2131
2131
|
} finally {
|
|
2132
2132
|
if (c) throw c.error;
|
|
2133
2133
|
}
|
|
2134
2134
|
}
|
|
2135
2135
|
return a;
|
|
2136
2136
|
}, rd = function(e, t, n) {
|
|
2137
|
-
if (n || arguments.length === 2) for (var o = 0,
|
|
2137
|
+
if (n || arguments.length === 2) for (var o = 0, r = t.length, a; o < r; o++)
|
|
2138
2138
|
(a || !(o in t)) && (a || (a = Array.prototype.slice.call(t, 0, o)), a[o] = t[o]);
|
|
2139
2139
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
2140
2140
|
}, di = new Mt(), et = new Mt(), gt = new Mt(), ui = {
|
|
@@ -2157,50 +2157,50 @@ function od(e, t, n) {
|
|
|
2157
2157
|
if (o)
|
|
2158
2158
|
o.data.push(t);
|
|
2159
2159
|
else {
|
|
2160
|
-
var
|
|
2161
|
-
et.set(e, [t], n > 0 ? n +
|
|
2160
|
+
var r = 5e3;
|
|
2161
|
+
et.set(e, [t], n > 0 ? n + r : n);
|
|
2162
2162
|
}
|
|
2163
2163
|
}
|
|
2164
2164
|
function ad(e, t, n) {
|
|
2165
2165
|
if (n.isDocumentVisible() && !(n.errorRetryCount !== void 0 && t > n.errorRetryCount)) {
|
|
2166
|
-
var o = Math.min(t || 0, n.errorRetryCount),
|
|
2166
|
+
var o = Math.min(t || 0, n.errorRetryCount), r = o * n.errorRetryInterval;
|
|
2167
2167
|
setTimeout(function() {
|
|
2168
2168
|
e(null, { errorRetryCount: o + 1, shouldRetryOnError: !0 });
|
|
2169
|
-
},
|
|
2169
|
+
}, r);
|
|
2170
2170
|
}
|
|
2171
2171
|
}
|
|
2172
2172
|
var pn = function(e, t, n, o) {
|
|
2173
2173
|
return n === void 0 && (n = di), o === void 0 && (o = ui.ttl), Ae(void 0, void 0, void 0, function() {
|
|
2174
|
-
var
|
|
2175
|
-
return Pe(this, function(
|
|
2176
|
-
switch (
|
|
2174
|
+
var r, a, c, p, l, u, v;
|
|
2175
|
+
return Pe(this, function(T) {
|
|
2176
|
+
switch (T.label) {
|
|
2177
2177
|
case 0:
|
|
2178
2178
|
if (!sd(t)) return [3, 5];
|
|
2179
|
-
|
|
2179
|
+
T.label = 1;
|
|
2180
2180
|
case 1:
|
|
2181
|
-
return
|
|
2181
|
+
return T.trys.push([1, 3, , 4]), [4, t];
|
|
2182
2182
|
case 2:
|
|
2183
|
-
return
|
|
2183
|
+
return r = T.sent(), [3, 4];
|
|
2184
2184
|
case 3:
|
|
2185
|
-
return p =
|
|
2185
|
+
return p = T.sent(), a = p, [3, 4];
|
|
2186
2186
|
case 4:
|
|
2187
2187
|
return [3, 6];
|
|
2188
2188
|
case 5:
|
|
2189
|
-
|
|
2189
|
+
r = t, T.label = 6;
|
|
2190
2190
|
case 6:
|
|
2191
|
-
if (c = !1, l = { data:
|
|
2191
|
+
if (c = !1, l = { data: r, error: a, isValidating: c }, typeof r < "u")
|
|
2192
2192
|
try {
|
|
2193
2193
|
n.set(e, l, o);
|
|
2194
2194
|
} catch (m) {
|
|
2195
2195
|
console.error("swrv(mutate): failed to set cache", m);
|
|
2196
2196
|
}
|
|
2197
|
-
return u = et.get(e), u && u.data.length && (
|
|
2197
|
+
return u = et.get(e), u && u.data.length && (v = u.data.filter(function(m) {
|
|
2198
2198
|
return m.key === e;
|
|
2199
|
-
}),
|
|
2199
|
+
}), v.forEach(function(m, b) {
|
|
2200
2200
|
typeof l.data < "u" && (m.data = l.data), m.error = l.error, m.isValidating = l.isValidating, m.isLoading = l.isValidating;
|
|
2201
|
-
var _ = b ===
|
|
2202
|
-
_ || delete
|
|
2203
|
-
}),
|
|
2201
|
+
var _ = b === v.length - 1;
|
|
2202
|
+
_ || delete v[b];
|
|
2203
|
+
}), v = v.filter(Boolean)), [2, l];
|
|
2204
2204
|
}
|
|
2205
2205
|
});
|
|
2206
2206
|
});
|
|
@@ -2208,13 +2208,13 @@ var pn = function(e, t, n, o) {
|
|
|
2208
2208
|
function ld() {
|
|
2209
2209
|
for (var e = this, t = [], n = 0; n < arguments.length; n++)
|
|
2210
2210
|
t[n] = arguments[n];
|
|
2211
|
-
var o,
|
|
2211
|
+
var o, r, a = ce({}, ui), c = !1, p = !1, l = bi(), u = (l == null ? void 0 : l.proxy) || l;
|
|
2212
2212
|
if (!u)
|
|
2213
2213
|
return console.error("Could not get current instance, check to make sure that `useSwrv` is declared in the top level of the setup function."), null;
|
|
2214
|
-
var
|
|
2215
|
-
t.length >= 1 && (o = t[0]), t.length >= 2 && (
|
|
2216
|
-
var
|
|
2217
|
-
typeof
|
|
2214
|
+
var v = (u == null ? void 0 : u.$isServer) || !1;
|
|
2215
|
+
t.length >= 1 && (o = t[0]), t.length >= 2 && (r = t[1]), t.length > 2 && (a = ce(ce({}, a), t[2]));
|
|
2216
|
+
var T = v ? a.serverTTL : a.ttl, m = typeof o == "function" ? o : x(o);
|
|
2217
|
+
typeof r > "u" && (r = a.fetcher);
|
|
2218
2218
|
var b = null;
|
|
2219
2219
|
b || (b = mn({
|
|
2220
2220
|
data: void 0,
|
|
@@ -2225,39 +2225,39 @@ function ld() {
|
|
|
2225
2225
|
}));
|
|
2226
2226
|
var _ = function(k, d) {
|
|
2227
2227
|
return Ae(e, void 0, void 0, function() {
|
|
2228
|
-
var O, P, W,
|
|
2228
|
+
var O, P, W, X, ne, de, ie, we = this;
|
|
2229
2229
|
return Pe(this, function(re) {
|
|
2230
2230
|
switch (re.label) {
|
|
2231
2231
|
case 0:
|
|
2232
|
-
return O = b.data === void 0, P = m.value, P ? (W = a.cache.get(P),
|
|
2232
|
+
return O = b.data === void 0, P = m.value, P ? (W = a.cache.get(P), X = W && W.data, b.isValidating = !0, b.isLoading = !X, X && (b.data = X.data, b.error = X.error), ne = k || r, !ne || !a.isDocumentVisible() && !O || (d == null ? void 0 : d.forceRevalidate) !== void 0 && !(d != null && d.forceRevalidate) ? (b.isValidating = !1, b.isLoading = !1, [
|
|
2233
2233
|
2
|
|
2234
2234
|
/*return*/
|
|
2235
2235
|
]) : W && (de = !!(Date.now() - W.createdAt >= a.dedupingInterval || d != null && d.forceRevalidate), !de) ? (b.isValidating = !1, b.isLoading = !1, [
|
|
2236
2236
|
2
|
|
2237
2237
|
/*return*/
|
|
2238
2238
|
]) : (ie = function() {
|
|
2239
|
-
return Ae(
|
|
2240
|
-
var oe,
|
|
2239
|
+
return Ae(we, void 0, void 0, function() {
|
|
2240
|
+
var oe, Te, Se, xe;
|
|
2241
2241
|
return Pe(this, function(ve) {
|
|
2242
2242
|
switch (ve.label) {
|
|
2243
2243
|
case 0:
|
|
2244
|
-
return oe = gt.get(P), oe ? [3, 2] : (
|
|
2244
|
+
return oe = gt.get(P), oe ? [3, 2] : (Te = Array.isArray(P) ? P : [P], Se = ne.apply(void 0, rd([], id(Te), !1)), gt.set(P, Se, a.dedupingInterval), [4, pn(P, Se, a.cache, T)]);
|
|
2245
2245
|
case 1:
|
|
2246
2246
|
return ve.sent(), [3, 4];
|
|
2247
2247
|
case 2:
|
|
2248
|
-
return [4, pn(P, oe.data, a.cache,
|
|
2248
|
+
return [4, pn(P, oe.data, a.cache, T)];
|
|
2249
2249
|
case 3:
|
|
2250
2250
|
ve.sent(), ve.label = 4;
|
|
2251
2251
|
case 4:
|
|
2252
|
-
return b.isValidating = !1, b.isLoading = !1, gt.delete(P), b.error !== void 0 && (
|
|
2252
|
+
return b.isValidating = !1, b.isLoading = !1, gt.delete(P), b.error !== void 0 && (xe = !c && a.shouldRetryOnError && (d ? d.shouldRetryOnError : !0), xe && ad(_, d ? d.errorRetryCount : 1, a)), [
|
|
2253
2253
|
2
|
|
2254
2254
|
/*return*/
|
|
2255
2255
|
];
|
|
2256
2256
|
}
|
|
2257
2257
|
});
|
|
2258
2258
|
});
|
|
2259
|
-
},
|
|
2260
|
-
return Ae(
|
|
2259
|
+
}, X && a.revalidateDebounce ? (setTimeout(function() {
|
|
2260
|
+
return Ae(we, void 0, void 0, function() {
|
|
2261
2261
|
return Pe(this, function(oe) {
|
|
2262
2262
|
switch (oe.label) {
|
|
2263
2263
|
case 0:
|
|
@@ -2324,8 +2324,8 @@ function ld() {
|
|
|
2324
2324
|
}));
|
|
2325
2325
|
});
|
|
2326
2326
|
try {
|
|
2327
|
-
|
|
2328
|
-
hi(m) || (m.value = k), b.key = k, b.isValidating = !!k, od(m.value, b,
|
|
2327
|
+
Ce(m, function(k) {
|
|
2328
|
+
hi(m) || (m.value = k), b.key = k, b.isValidating = !!k, od(m.value, b, T), !v && !p && m.value && _(), p = !1;
|
|
2329
2329
|
}, {
|
|
2330
2330
|
immediate: !0
|
|
2331
2331
|
});
|
|
@@ -2346,29 +2346,29 @@ const Fe = (e) => {
|
|
|
2346
2346
|
const { axiosInstance: t } = kt(e.axiosRequestConfig);
|
|
2347
2347
|
return {
|
|
2348
2348
|
fetcher: async (n) => {
|
|
2349
|
-
const { partialId: o, size:
|
|
2349
|
+
const { partialId: o, size: r, offset: a, query: c } = n;
|
|
2350
2350
|
let p = `${e.apiBaseUrl}${Me.links[e.app]}`;
|
|
2351
2351
|
e.app === "konnect" ? p = p.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (p = p.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "")), p = p.replace(/{id}/gi, o || ""), c && (p = `${p}?${c}`);
|
|
2352
2352
|
const { data: l } = await t.get(
|
|
2353
2353
|
p,
|
|
2354
|
-
{ params: { size:
|
|
2354
|
+
{ params: { size: r, offset: a } }
|
|
2355
2355
|
);
|
|
2356
2356
|
return l;
|
|
2357
2357
|
}
|
|
2358
2358
|
};
|
|
2359
2359
|
}, fi = (e) => {
|
|
2360
|
-
const { partialId: t, config: n } = e, { fetcher: o } = Fe(n),
|
|
2360
|
+
const { partialId: t, config: n } = e, { fetcher: o } = Fe(n), r = x([]), { data: a } = ld(
|
|
2361
2361
|
ci(t),
|
|
2362
2362
|
() => o({ partialId: t }),
|
|
2363
2363
|
{
|
|
2364
2364
|
revalidateOnFocus: !1
|
|
2365
2365
|
}
|
|
2366
2366
|
);
|
|
2367
|
-
return
|
|
2367
|
+
return Ce(a, () => {
|
|
2368
2368
|
var c;
|
|
2369
|
-
|
|
2370
|
-
}),
|
|
2371
|
-
}, dd = { class: "kong-ui-entities-redis-configurations-form" }, ud = /* @__PURE__ */
|
|
2369
|
+
r.value = ((c = a.value) == null ? void 0 : c.data) ?? [];
|
|
2370
|
+
}), r;
|
|
2371
|
+
}, dd = { class: "kong-ui-entities-redis-configurations-form" }, ud = /* @__PURE__ */ Y({
|
|
2372
2372
|
__name: "RedisConfigurationForm",
|
|
2373
2373
|
props: {
|
|
2374
2374
|
config: {
|
|
@@ -2406,60 +2406,60 @@ const Fe = (e) => {
|
|
|
2406
2406
|
},
|
|
2407
2407
|
emits: ["update", "error", "loading", "cancel"],
|
|
2408
2408
|
setup(e, { emit: t }) {
|
|
2409
|
-
const n = e, o = t, { i18n: { t:
|
|
2409
|
+
const n = e, o = t, { i18n: { t: r }, i18nT: a } = ye.useI18n(), {
|
|
2410
2410
|
vaultSecretPickerSetup: c,
|
|
2411
2411
|
setUpVaultSecretPicker: p,
|
|
2412
2412
|
handleVaultSecretPickerAutofill: l
|
|
2413
|
-
} = si(), u = Tn(),
|
|
2413
|
+
} = si(), u = Tn(), v = x("json"), T = z(() => [
|
|
2414
2414
|
{
|
|
2415
|
-
label:
|
|
2416
|
-
group:
|
|
2417
|
-
value:
|
|
2418
|
-
selected: O.value ===
|
|
2419
|
-
disabled: !d && n.disabledPartialType ===
|
|
2415
|
+
label: r("form.options.type.host_port"),
|
|
2416
|
+
group: r("form.options.type.enterprise"),
|
|
2417
|
+
value: w.HOST_PORT_EE,
|
|
2418
|
+
selected: O.value === w.HOST_PORT_EE,
|
|
2419
|
+
disabled: !d && n.disabledPartialType === Q.REDIS_EE
|
|
2420
2420
|
},
|
|
2421
2421
|
{
|
|
2422
|
-
label:
|
|
2423
|
-
group:
|
|
2424
|
-
value:
|
|
2425
|
-
selected: O.value ===
|
|
2426
|
-
disabled: !d && n.disabledPartialType ===
|
|
2422
|
+
label: r("form.options.type.cluster"),
|
|
2423
|
+
group: r("form.options.type.enterprise"),
|
|
2424
|
+
value: w.CLUSTER,
|
|
2425
|
+
selected: O.value === w.CLUSTER,
|
|
2426
|
+
disabled: !d && n.disabledPartialType === Q.REDIS_EE
|
|
2427
2427
|
},
|
|
2428
2428
|
{
|
|
2429
|
-
label:
|
|
2430
|
-
group:
|
|
2431
|
-
value:
|
|
2432
|
-
selected: O.value ===
|
|
2433
|
-
disabled: !d && n.disabledPartialType ===
|
|
2429
|
+
label: r("form.options.type.sentinel"),
|
|
2430
|
+
group: r("form.options.type.enterprise"),
|
|
2431
|
+
value: w.SENTINEL,
|
|
2432
|
+
selected: O.value === w.SENTINEL,
|
|
2433
|
+
disabled: !d && n.disabledPartialType === Q.REDIS_EE
|
|
2434
2434
|
},
|
|
2435
2435
|
{
|
|
2436
|
-
label:
|
|
2437
|
-
group:
|
|
2438
|
-
value:
|
|
2439
|
-
selected: O.value ===
|
|
2440
|
-
disabled: d && P.value || !d && n.disabledPartialType ===
|
|
2436
|
+
label: r("form.options.type.host_port"),
|
|
2437
|
+
group: r("form.options.type.open_source"),
|
|
2438
|
+
value: w.HOST_PORT_CE,
|
|
2439
|
+
selected: O.value === w.HOST_PORT_CE,
|
|
2440
|
+
disabled: d && P.value || !d && n.disabledPartialType === Q.REDIS_CE
|
|
2441
2441
|
}
|
|
2442
2442
|
]), m = z(() => [
|
|
2443
2443
|
{
|
|
2444
|
-
label:
|
|
2444
|
+
label: r("form.options.auth_provider.aws"),
|
|
2445
2445
|
value: q.AWS
|
|
2446
2446
|
},
|
|
2447
2447
|
{
|
|
2448
|
-
label:
|
|
2448
|
+
label: r("form.options.auth_provider.gcp"),
|
|
2449
2449
|
value: q.GCP
|
|
2450
2450
|
},
|
|
2451
2451
|
{
|
|
2452
|
-
label:
|
|
2452
|
+
label: r("form.options.auth_provider.azure"),
|
|
2453
2453
|
value: q.AZURE
|
|
2454
2454
|
}
|
|
2455
2455
|
]), b = [
|
|
2456
|
-
{ label:
|
|
2457
|
-
{ label:
|
|
2458
|
-
{ label:
|
|
2456
|
+
{ label: r("form.options.sentinel_role.master"), value: "master" },
|
|
2457
|
+
{ label: r("form.options.sentinel_role.slave"), value: "slave" },
|
|
2458
|
+
{ label: r("form.options.sentinel_role.any"), value: "any" }
|
|
2459
2459
|
], _ = (H) => {
|
|
2460
|
-
const
|
|
2461
|
-
return `${H.label}${
|
|
2462
|
-
}, E = () => n.disabledPartialType && Xe($e) === n.disabledPartialType ? n.disabledPartialType ===
|
|
2460
|
+
const y = H.value === w.HOST_PORT_CE ? r("form.options.type.suffix_open_source") : r("form.options.type.suffix_enterprise");
|
|
2461
|
+
return `${H.label}${y}`;
|
|
2462
|
+
}, E = () => n.disabledPartialType && Xe($e) === n.disabledPartialType ? n.disabledPartialType === Q.REDIS_CE ? w.HOST_PORT_EE : w.HOST_PORT_CE : $e, {
|
|
2463
2463
|
form: s,
|
|
2464
2464
|
canSubmit: A,
|
|
2465
2465
|
payload: k,
|
|
@@ -2467,32 +2467,32 @@ const Fe = (e) => {
|
|
|
2467
2467
|
redisType: O,
|
|
2468
2468
|
redisTypeIsEnterprise: P,
|
|
2469
2469
|
fetchUrl: W,
|
|
2470
|
-
submit:
|
|
2470
|
+
submit: X,
|
|
2471
2471
|
setInitialFormValues: ne
|
|
2472
2472
|
} = As({
|
|
2473
2473
|
partialId: n.partialId,
|
|
2474
2474
|
defaultRedisType: E(),
|
|
2475
2475
|
config: n.config,
|
|
2476
2476
|
cloudAuthAvailable: n.config.cloudAuthAvailable
|
|
2477
|
-
}), { fetcher: de } = Fe(n.config), ie = x(!1),
|
|
2477
|
+
}), { fetcher: de } = Fe(n.config), ie = x(!1), we = x(!1), re = x(0), oe = z(() => v.value === "terraform" ? {
|
|
2478
2478
|
[k.value.type.replaceAll("-", "_")]: Es(k.value, ["type"])
|
|
2479
|
-
} : k.value),
|
|
2479
|
+
} : k.value), Te = async () => {
|
|
2480
2480
|
try {
|
|
2481
|
-
if (d && !
|
|
2482
|
-
const { count:
|
|
2483
|
-
if (re.value =
|
|
2481
|
+
if (d && !we.value) {
|
|
2482
|
+
const { count: y } = await de({ partialId: n.partialId });
|
|
2483
|
+
if (re.value = y, y > 0) {
|
|
2484
2484
|
ie.value = !0;
|
|
2485
2485
|
return;
|
|
2486
2486
|
}
|
|
2487
2487
|
}
|
|
2488
|
-
const { data: H } = await
|
|
2488
|
+
const { data: H } = await X();
|
|
2489
2489
|
o("update", H);
|
|
2490
2490
|
} catch (H) {
|
|
2491
2491
|
o("error", H);
|
|
2492
2492
|
}
|
|
2493
|
-
},
|
|
2494
|
-
ie.value = !1,
|
|
2495
|
-
},
|
|
2493
|
+
}, Se = () => {
|
|
2494
|
+
ie.value = !1, we.value = !0, Te();
|
|
2495
|
+
}, xe = () => {
|
|
2496
2496
|
n.config.cancelRoute && u.push(n.config.cancelRoute), o("cancel");
|
|
2497
2497
|
}, ve = (H) => {
|
|
2498
2498
|
o("loading", H);
|
|
@@ -2506,514 +2506,532 @@ const Fe = (e) => {
|
|
|
2506
2506
|
const { count: H } = await de({ partialId: n.partialId });
|
|
2507
2507
|
re.value = H;
|
|
2508
2508
|
}
|
|
2509
|
-
}), (H,
|
|
2510
|
-
const lt = $("KAlert"),
|
|
2509
|
+
}), (H, y) => {
|
|
2510
|
+
const lt = $("KAlert"), Ee = $("KSelect"), F = $("KInput"), C = $("KCheckbox"), R = $("KModal");
|
|
2511
2511
|
return I(), J(fe, null, [
|
|
2512
2512
|
K("div", dd, [
|
|
2513
|
-
g(
|
|
2513
|
+
g(i(Ii), {
|
|
2514
2514
|
"action-teleport-target": e.actionTeleportTarget,
|
|
2515
|
-
"can-submit":
|
|
2515
|
+
"can-submit": i(A),
|
|
2516
2516
|
config: e.config,
|
|
2517
2517
|
"edit-id": e.partialId,
|
|
2518
|
-
"entity-type":
|
|
2519
|
-
"error-message":
|
|
2520
|
-
"fetch-url":
|
|
2518
|
+
"entity-type": i(vn).Partial,
|
|
2519
|
+
"error-message": i(s).errorMessage,
|
|
2520
|
+
"fetch-url": i(W),
|
|
2521
2521
|
"form-fields": oe.value,
|
|
2522
|
-
"is-readonly":
|
|
2522
|
+
"is-readonly": i(s).readonly,
|
|
2523
2523
|
"slidout-top-offset": e.slidoutTopOffset,
|
|
2524
|
-
onCancel:
|
|
2525
|
-
onCodeBlockTabChange:
|
|
2524
|
+
onCancel: xe,
|
|
2525
|
+
onCodeBlockTabChange: y[34] || (y[34] = (f) => v.value = f),
|
|
2526
2526
|
"onFetch:error": at,
|
|
2527
2527
|
"onFetch:success": ze,
|
|
2528
2528
|
onLoading: ve,
|
|
2529
|
-
onSubmit:
|
|
2529
|
+
onSubmit: Te
|
|
2530
2530
|
}, {
|
|
2531
2531
|
default: S(() => [
|
|
2532
|
-
re.value > 0 &&
|
|
2532
|
+
re.value > 0 && i(d) ? (I(), N(lt, {
|
|
2533
2533
|
key: 0,
|
|
2534
2534
|
appearance: "warning",
|
|
2535
2535
|
class: "warning-alert",
|
|
2536
2536
|
"data-testid": "redis-update-warning-alert"
|
|
2537
2537
|
}, {
|
|
2538
2538
|
default: S(() => [
|
|
2539
|
-
g(
|
|
2539
|
+
g(i(a), {
|
|
2540
2540
|
keypath: "form.edit_warning_modal.description",
|
|
2541
2541
|
tag: "div"
|
|
2542
2542
|
}, {
|
|
2543
2543
|
pluginCount: S(() => [
|
|
2544
|
-
K("b", null,
|
|
2544
|
+
K("b", null, B(i(r)("form.edit_warning_modal.plugin_count", { count: re.value })), 1)
|
|
2545
2545
|
]),
|
|
2546
2546
|
_: 1
|
|
2547
2547
|
})
|
|
2548
2548
|
]),
|
|
2549
2549
|
_: 1
|
|
2550
|
-
})) :
|
|
2551
|
-
g(
|
|
2550
|
+
})) : Z("", !0),
|
|
2551
|
+
g(i(ue), {
|
|
2552
2552
|
"data-testid": "redis-type-section",
|
|
2553
|
-
description: r
|
|
2554
|
-
title: r
|
|
2553
|
+
description: i(r)("form.sections.type.description"),
|
|
2554
|
+
title: i(r)("form.sections.type.title")
|
|
2555
2555
|
}, {
|
|
2556
2556
|
default: S(() => [
|
|
2557
|
-
g(
|
|
2558
|
-
modelValue:
|
|
2559
|
-
"onUpdate:modelValue":
|
|
2557
|
+
g(Ee, {
|
|
2558
|
+
modelValue: i(O),
|
|
2559
|
+
"onUpdate:modelValue": y[0] || (y[0] = (f) => Ti(O) ? O.value = f : null),
|
|
2560
2560
|
"data-testid": "redis-type-select",
|
|
2561
|
-
disabled:
|
|
2562
|
-
items:
|
|
2561
|
+
disabled: i(d) && i(O) === i(w).HOST_PORT_CE,
|
|
2562
|
+
items: T.value,
|
|
2563
2563
|
"kpop-attributes": { "data-testid": "redis-type-select-popover" },
|
|
2564
|
-
label: r
|
|
2565
|
-
readonly:
|
|
2564
|
+
label: i(r)("form.fields.type.label"),
|
|
2565
|
+
readonly: i(s).readonly,
|
|
2566
2566
|
required: ""
|
|
2567
2567
|
}, {
|
|
2568
2568
|
"selected-item-template": S(({ item: f }) => [
|
|
2569
|
-
le(
|
|
2569
|
+
le(B(_(f)), 1)
|
|
2570
2570
|
]),
|
|
2571
2571
|
_: 1
|
|
2572
2572
|
}, 8, ["modelValue", "disabled", "items", "label", "readonly"])
|
|
2573
2573
|
]),
|
|
2574
2574
|
_: 1
|
|
2575
2575
|
}, 8, ["description", "title"]),
|
|
2576
|
-
g(
|
|
2576
|
+
g(i(ue), {
|
|
2577
2577
|
"data-testid": "redis-general-section",
|
|
2578
|
-
description: r
|
|
2579
|
-
title: r
|
|
2578
|
+
description: i(r)("form.sections.general.description"),
|
|
2579
|
+
title: i(r)("form.sections.general.title")
|
|
2580
2580
|
}, {
|
|
2581
2581
|
default: S(() => [
|
|
2582
|
-
g(
|
|
2583
|
-
modelValue:
|
|
2584
|
-
"onUpdate:modelValue":
|
|
2582
|
+
g(F, {
|
|
2583
|
+
modelValue: i(s).fields.name,
|
|
2584
|
+
"onUpdate:modelValue": y[1] || (y[1] = (f) => i(s).fields.name = f),
|
|
2585
2585
|
modelModifiers: { trim: !0 },
|
|
2586
2586
|
"data-testid": "redis-name-input",
|
|
2587
|
-
disabled:
|
|
2588
|
-
label: r
|
|
2589
|
-
placeholder: r
|
|
2590
|
-
readonly:
|
|
2587
|
+
disabled: i(d),
|
|
2588
|
+
label: i(r)("form.fields.name.label"),
|
|
2589
|
+
placeholder: i(r)("form.fields.name.placeholder"),
|
|
2590
|
+
readonly: i(s).readonly,
|
|
2591
2591
|
required: ""
|
|
2592
2592
|
}, null, 8, ["modelValue", "disabled", "label", "placeholder", "readonly"]),
|
|
2593
|
-
g(
|
|
2594
|
-
modelValue:
|
|
2595
|
-
"onUpdate:modelValue":
|
|
2593
|
+
g(F, {
|
|
2594
|
+
modelValue: i(s).fields.tags,
|
|
2595
|
+
"onUpdate:modelValue": y[2] || (y[2] = (f) => i(s).fields.tags = f),
|
|
2596
2596
|
modelModifiers: { trim: !0 },
|
|
2597
2597
|
"data-testid": "redis-tags-input",
|
|
2598
|
-
help: r
|
|
2599
|
-
label: r
|
|
2598
|
+
help: i(r)("form.fields.tags.help"),
|
|
2599
|
+
label: i(r)("form.fields.tags.label"),
|
|
2600
2600
|
"label-attributes": {
|
|
2601
|
-
info: r
|
|
2601
|
+
info: i(r)("form.fields.tags.tooltip"),
|
|
2602
2602
|
tooltipAttributes: { maxWidth: "400" }
|
|
2603
2603
|
},
|
|
2604
|
-
placeholder: r
|
|
2605
|
-
readonly:
|
|
2604
|
+
placeholder: i(r)("form.fields.tags.placeholder"),
|
|
2605
|
+
readonly: i(s).readonly
|
|
2606
2606
|
}, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"])
|
|
2607
2607
|
]),
|
|
2608
2608
|
_: 1
|
|
2609
2609
|
}, 8, ["description", "title"]),
|
|
2610
|
-
e.config.cloudAuthAvailable &&
|
|
2610
|
+
e.config.cloudAuthAvailable && i(O) !== i(w).SENTINEL ? (I(), N(i(ue), {
|
|
2611
2611
|
key: 1,
|
|
2612
2612
|
"data-testid": "redis-cloud-auth-section",
|
|
2613
|
-
description: r
|
|
2614
|
-
title: r
|
|
2613
|
+
description: i(r)("form.sections.cloud_auth.description"),
|
|
2614
|
+
title: i(r)("form.sections.cloud_auth.title")
|
|
2615
2615
|
}, {
|
|
2616
2616
|
default: S(() => [
|
|
2617
|
-
g(
|
|
2618
|
-
modelValue:
|
|
2619
|
-
"onUpdate:modelValue":
|
|
2617
|
+
g(Ee, {
|
|
2618
|
+
modelValue: i(s).fields.config.cloud_authentication.auth_provider,
|
|
2619
|
+
"onUpdate:modelValue": y[3] || (y[3] = (f) => i(s).fields.config.cloud_authentication.auth_provider = f),
|
|
2620
2620
|
clearable: "",
|
|
2621
2621
|
"data-testid": "redis-auth-provider-select",
|
|
2622
2622
|
items: m.value,
|
|
2623
2623
|
"kpop-attributes": { "data-testid": "redis-auth-provider-select-popover" },
|
|
2624
|
-
label: r
|
|
2625
|
-
"label-attributes": { info: r
|
|
2626
|
-
readonly:
|
|
2624
|
+
label: i(r)("form.fields.cloud_authentication.auth_provider.label"),
|
|
2625
|
+
"label-attributes": { info: i(r)("form.fields.cloud_authentication.auth_provider.tooltip") },
|
|
2626
|
+
readonly: i(s).readonly
|
|
2627
2627
|
}, null, 8, ["modelValue", "items", "label", "label-attributes", "readonly"]),
|
|
2628
2628
|
g(Qs, {
|
|
2629
|
-
modelValue:
|
|
2630
|
-
"onUpdate:modelValue":
|
|
2629
|
+
modelValue: i(s).fields.config.cloud_authentication,
|
|
2630
|
+
"onUpdate:modelValue": y[4] || (y[4] = (f) => i(s).fields.config.cloud_authentication = f),
|
|
2631
2631
|
config: n.config,
|
|
2632
|
-
readonly:
|
|
2632
|
+
readonly: i(s).readonly
|
|
2633
2633
|
}, null, 8, ["modelValue", "config", "readonly"])
|
|
2634
2634
|
]),
|
|
2635
2635
|
_: 1
|
|
2636
|
-
}, 8, ["description", "title"])) :
|
|
2637
|
-
|
|
2636
|
+
}, 8, ["description", "title"])) : Z("", !0),
|
|
2637
|
+
i(O) === i(w).SENTINEL ? (I(), N(i(ue), {
|
|
2638
2638
|
key: 2,
|
|
2639
2639
|
"data-testid": "redis-sentinel-configuration-section",
|
|
2640
|
-
description: r
|
|
2641
|
-
title: r
|
|
2640
|
+
description: i(r)("form.sections.sentinel_configuration.description"),
|
|
2641
|
+
title: i(r)("form.sections.sentinel_configuration.title")
|
|
2642
2642
|
}, {
|
|
2643
2643
|
default: S(() => [
|
|
2644
|
-
g(
|
|
2645
|
-
modelValue:
|
|
2646
|
-
"onUpdate:modelValue":
|
|
2644
|
+
g(F, {
|
|
2645
|
+
modelValue: i(s).fields.config.sentinel_master,
|
|
2646
|
+
"onUpdate:modelValue": y[5] || (y[5] = (f) => i(s).fields.config.sentinel_master = f),
|
|
2647
2647
|
"data-testid": "redis-sentinel-master-input",
|
|
2648
|
-
label: r
|
|
2648
|
+
label: i(r)("form.fields.sentinel_master.label"),
|
|
2649
2649
|
"label-attributes": {
|
|
2650
|
-
info: r
|
|
2650
|
+
info: i(r)("form.fields.sentinel_master.tooltip"),
|
|
2651
2651
|
tooltipAttributes: { maxWidth: "400" }
|
|
2652
2652
|
},
|
|
2653
|
-
readonly:
|
|
2653
|
+
readonly: i(s).readonly,
|
|
2654
2654
|
required: ""
|
|
2655
2655
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2656
|
-
g(
|
|
2657
|
-
modelValue:
|
|
2658
|
-
"onUpdate:modelValue":
|
|
2656
|
+
g(Ee, {
|
|
2657
|
+
modelValue: i(s).fields.config.sentinel_role,
|
|
2658
|
+
"onUpdate:modelValue": y[6] || (y[6] = (f) => i(s).fields.config.sentinel_role = f),
|
|
2659
2659
|
"data-testid": "redis-sentinel-role-select",
|
|
2660
2660
|
items: b,
|
|
2661
2661
|
"kpop-attributes": { "data-testid": "redis-sentinel-role-select-popover" },
|
|
2662
|
-
label: r
|
|
2662
|
+
label: i(r)("form.fields.sentinel_role.label"),
|
|
2663
2663
|
"label-attributes": {
|
|
2664
|
-
info: r
|
|
2664
|
+
info: i(r)("form.fields.sentinel_role.tooltip"),
|
|
2665
2665
|
tooltipAttributes: { maxWidth: "400" }
|
|
2666
2666
|
},
|
|
2667
|
-
readonly:
|
|
2667
|
+
readonly: i(s).readonly,
|
|
2668
2668
|
required: ""
|
|
2669
2669
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2670
2670
|
g(Js, {
|
|
2671
|
-
modelValue:
|
|
2672
|
-
"onUpdate:modelValue":
|
|
2673
|
-
readonly:
|
|
2671
|
+
modelValue: i(s).fields.config.sentinel_nodes,
|
|
2672
|
+
"onUpdate:modelValue": y[7] || (y[7] = (f) => i(s).fields.config.sentinel_nodes = f),
|
|
2673
|
+
readonly: i(s).readonly
|
|
2674
2674
|
}, null, 8, ["modelValue", "readonly"]),
|
|
2675
|
-
g(
|
|
2676
|
-
modelValue:
|
|
2677
|
-
"onUpdate:modelValue":
|
|
2675
|
+
g(F, {
|
|
2676
|
+
modelValue: i(s).fields.config.sentinel_username,
|
|
2677
|
+
"onUpdate:modelValue": y[8] || (y[8] = (f) => i(s).fields.config.sentinel_username = f),
|
|
2678
2678
|
modelModifiers: { trim: !0 },
|
|
2679
|
-
label: r
|
|
2679
|
+
label: i(r)("form.fields.sentinel_username.label"),
|
|
2680
2680
|
"label-attributes": {
|
|
2681
|
-
info: r
|
|
2681
|
+
info: i(r)("form.fields.sentinel_username.tooltip"),
|
|
2682
2682
|
tooltipAttributes: { maxWidth: "400" }
|
|
2683
2683
|
},
|
|
2684
|
-
readonly:
|
|
2684
|
+
readonly: i(s).readonly
|
|
2685
2685
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2686
|
-
g(
|
|
2686
|
+
g(i(he), {
|
|
2687
2687
|
class: "secret-picker-provider",
|
|
2688
|
-
disabled:
|
|
2689
|
-
update: (f) =>
|
|
2690
|
-
value:
|
|
2691
|
-
onOpen:
|
|
2688
|
+
disabled: i(s).readonly,
|
|
2689
|
+
update: (f) => i(s).fields.config.sentinel_username = f,
|
|
2690
|
+
value: i(s).fields.config.sentinel_username,
|
|
2691
|
+
onOpen: y[9] || (y[9] = (f, j) => i(p)(f, j))
|
|
2692
2692
|
}, null, 8, ["disabled", "update", "value"]),
|
|
2693
|
-
g(
|
|
2694
|
-
modelValue:
|
|
2695
|
-
"onUpdate:modelValue":
|
|
2693
|
+
g(F, {
|
|
2694
|
+
modelValue: i(s).fields.config.sentinel_password,
|
|
2695
|
+
"onUpdate:modelValue": y[10] || (y[10] = (f) => i(s).fields.config.sentinel_password = f),
|
|
2696
2696
|
modelModifiers: { trim: !0 },
|
|
2697
|
-
label: r
|
|
2697
|
+
label: i(r)("form.fields.sentinel_password.label"),
|
|
2698
2698
|
"label-attributes": {
|
|
2699
|
-
info: r
|
|
2699
|
+
info: i(r)("form.fields.sentinel_password.tooltip"),
|
|
2700
2700
|
tooltipAttributes: { maxWidth: "400" }
|
|
2701
2701
|
},
|
|
2702
|
-
readonly:
|
|
2702
|
+
readonly: i(s).readonly,
|
|
2703
2703
|
"show-password-mask-toggle": "",
|
|
2704
2704
|
type: "password"
|
|
2705
2705
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2706
|
-
g(
|
|
2706
|
+
g(i(he), {
|
|
2707
2707
|
class: "secret-picker-provider",
|
|
2708
|
-
disabled:
|
|
2709
|
-
update: (f) =>
|
|
2710
|
-
value:
|
|
2711
|
-
onOpen:
|
|
2708
|
+
disabled: i(s).readonly,
|
|
2709
|
+
update: (f) => i(s).fields.config.sentinel_password = f,
|
|
2710
|
+
value: i(s).fields.config.sentinel_password,
|
|
2711
|
+
onOpen: y[11] || (y[11] = (f, j) => i(p)(f, j))
|
|
2712
2712
|
}, null, 8, ["disabled", "update", "value"])
|
|
2713
2713
|
]),
|
|
2714
2714
|
_: 1
|
|
2715
|
-
}, 8, ["description", "title"])) :
|
|
2716
|
-
|
|
2715
|
+
}, 8, ["description", "title"])) : Z("", !0),
|
|
2716
|
+
i(O) === i(w).CLUSTER ? (I(), N(i(ue), {
|
|
2717
2717
|
key: 3,
|
|
2718
2718
|
"data-testid": "redis-cluster-configuration-section",
|
|
2719
|
-
description: r
|
|
2720
|
-
title: r
|
|
2719
|
+
description: i(r)("form.sections.cluster.description"),
|
|
2720
|
+
title: i(r)("form.sections.cluster.title")
|
|
2721
2721
|
}, {
|
|
2722
2722
|
default: S(() => [
|
|
2723
2723
|
g(Ws, {
|
|
2724
|
-
modelValue:
|
|
2725
|
-
"onUpdate:modelValue":
|
|
2726
|
-
readonly:
|
|
2724
|
+
modelValue: i(s).fields.config.cluster_nodes,
|
|
2725
|
+
"onUpdate:modelValue": y[12] || (y[12] = (f) => i(s).fields.config.cluster_nodes = f),
|
|
2726
|
+
readonly: i(s).readonly
|
|
2727
2727
|
}, null, 8, ["modelValue", "readonly"]),
|
|
2728
|
-
g(
|
|
2729
|
-
modelValue:
|
|
2730
|
-
"onUpdate:modelValue":
|
|
2728
|
+
g(F, {
|
|
2729
|
+
modelValue: i(s).fields.config.cluster_max_redirections,
|
|
2730
|
+
"onUpdate:modelValue": y[13] || (y[13] = (f) => i(s).fields.config.cluster_max_redirections = f),
|
|
2731
2731
|
"data-testid": "redis-cluster-max-redirections-input",
|
|
2732
|
-
label: r
|
|
2732
|
+
label: i(r)("form.fields.cluster_max_redirections.label"),
|
|
2733
2733
|
"label-attributes": {
|
|
2734
|
-
info: r
|
|
2734
|
+
info: i(r)("form.fields.cluster_max_redirections.tooltip"),
|
|
2735
2735
|
tooltipAttributes: { maxWidth: "400" }
|
|
2736
2736
|
},
|
|
2737
|
-
readonly:
|
|
2737
|
+
readonly: i(s).readonly,
|
|
2738
2738
|
type: "number"
|
|
2739
2739
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
2740
2740
|
]),
|
|
2741
2741
|
_: 1
|
|
2742
|
-
}, 8, ["description", "title"])) :
|
|
2743
|
-
g(
|
|
2742
|
+
}, 8, ["description", "title"])) : Z("", !0),
|
|
2743
|
+
g(i(ue), {
|
|
2744
2744
|
"data-testid": "redis-connection-configuration-section",
|
|
2745
|
-
description: r
|
|
2746
|
-
title: r
|
|
2745
|
+
description: i(r)("form.sections.connection.description"),
|
|
2746
|
+
title: i(r)("form.sections.connection.title")
|
|
2747
2747
|
}, {
|
|
2748
2748
|
default: S(() => [
|
|
2749
|
-
|
|
2749
|
+
i(O) === i(w).HOST_PORT_CE || i(O) === i(w).HOST_PORT_EE ? (I(), N(F, {
|
|
2750
2750
|
key: 0,
|
|
2751
|
-
modelValue:
|
|
2752
|
-
"onUpdate:modelValue":
|
|
2751
|
+
modelValue: i(s).fields.config.host,
|
|
2752
|
+
"onUpdate:modelValue": y[14] || (y[14] = (f) => i(s).fields.config.host = f),
|
|
2753
2753
|
modelModifiers: { trim: !0 },
|
|
2754
2754
|
"data-testid": "redis-host-input",
|
|
2755
|
-
label: r
|
|
2755
|
+
label: i(r)("form.fields.host.label"),
|
|
2756
2756
|
"label-attributes": {
|
|
2757
|
-
info: r
|
|
2757
|
+
info: i(r)("form.fields.host.tooltip"),
|
|
2758
2758
|
tooltipAttributes: { maxWidth: "400" }
|
|
2759
2759
|
},
|
|
2760
|
-
readonly:
|
|
2761
|
-
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) :
|
|
2762
|
-
|
|
2760
|
+
readonly: i(s).readonly
|
|
2761
|
+
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : Z("", !0),
|
|
2762
|
+
i(O) === i(w).HOST_PORT_EE && e.config.isHostReferenceable ? (I(), N(i(he), {
|
|
2763
2763
|
key: 1,
|
|
2764
|
-
|
|
2765
|
-
"
|
|
2764
|
+
class: "secret-picker-provider",
|
|
2765
|
+
"data-testid": "secret-picker-provider-for-host",
|
|
2766
|
+
disabled: i(s).readonly,
|
|
2767
|
+
update: (f) => i(s).fields.config.host = f,
|
|
2768
|
+
value: i(s).fields.config.host ?? "",
|
|
2769
|
+
onOpen: y[15] || (y[15] = (f, j) => i(p)(f, j))
|
|
2770
|
+
}, null, 8, ["disabled", "update", "value"])) : Z("", !0),
|
|
2771
|
+
i(O) === i(w).HOST_PORT_CE || i(O) === i(w).HOST_PORT_EE ? (I(), N(F, {
|
|
2772
|
+
key: 2,
|
|
2773
|
+
modelValue: i(s).fields.config.port,
|
|
2774
|
+
"onUpdate:modelValue": y[16] || (y[16] = (f) => i(s).fields.config.port = f),
|
|
2766
2775
|
modelModifiers: { trim: !0 },
|
|
2767
2776
|
"data-testid": "redis-port-input",
|
|
2768
|
-
label: r
|
|
2777
|
+
label: i(r)("form.fields.port.label"),
|
|
2769
2778
|
"label-attributes": {
|
|
2770
|
-
info: r
|
|
2779
|
+
info: i(r)("form.fields.port.tooltip"),
|
|
2771
2780
|
tooltipAttributes: { maxWidth: "400" }
|
|
2772
2781
|
},
|
|
2773
|
-
readonly:
|
|
2774
|
-
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) :
|
|
2775
|
-
|
|
2776
|
-
key:
|
|
2782
|
+
readonly: i(s).readonly
|
|
2783
|
+
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : Z("", !0),
|
|
2784
|
+
i(O) === i(w).HOST_PORT_EE && e.config.isPortReferenceable ? (I(), N(i(he), {
|
|
2785
|
+
key: 3,
|
|
2777
2786
|
class: "secret-picker-provider",
|
|
2778
2787
|
"data-testid": "secret-picker-provider-for-port",
|
|
2779
|
-
disabled:
|
|
2780
|
-
update: (f) =>
|
|
2781
|
-
value: String(
|
|
2782
|
-
onOpen:
|
|
2783
|
-
}, null, 8, ["disabled", "update", "value"])) :
|
|
2784
|
-
|
|
2785
|
-
key:
|
|
2786
|
-
modelValue:
|
|
2787
|
-
"onUpdate:modelValue":
|
|
2788
|
+
disabled: i(s).readonly,
|
|
2789
|
+
update: (f) => i(s).fields.config.port = f,
|
|
2790
|
+
value: String(i(s).fields.config.port ?? ""),
|
|
2791
|
+
onOpen: y[17] || (y[17] = (f, j) => i(p)(f, j))
|
|
2792
|
+
}, null, 8, ["disabled", "update", "value"])) : Z("", !0),
|
|
2793
|
+
i(O) === i(w).HOST_PORT_EE ? (I(), N(C, {
|
|
2794
|
+
key: 4,
|
|
2795
|
+
modelValue: i(s).fields.config.connection_is_proxied,
|
|
2796
|
+
"onUpdate:modelValue": y[18] || (y[18] = (f) => i(s).fields.config.connection_is_proxied = f),
|
|
2788
2797
|
"data-testid": "redis-connection-is-proxied-checkbox",
|
|
2789
|
-
disabled:
|
|
2790
|
-
label: r
|
|
2798
|
+
disabled: i(s).readonly,
|
|
2799
|
+
label: i(r)("form.fields.connection_is_proxied.label"),
|
|
2791
2800
|
"label-attributes": {
|
|
2792
|
-
info: r
|
|
2801
|
+
info: i(r)("form.fields.connection_is_proxied.tooltip"),
|
|
2793
2802
|
tooltipAttributes: { maxWidth: "400" }
|
|
2794
2803
|
}
|
|
2795
|
-
}, null, 8, ["modelValue", "disabled", "label", "label-attributes"])) :
|
|
2796
|
-
|
|
2797
|
-
key:
|
|
2798
|
-
modelValue:
|
|
2799
|
-
"onUpdate:modelValue":
|
|
2804
|
+
}, null, 8, ["modelValue", "disabled", "label", "label-attributes"])) : Z("", !0),
|
|
2805
|
+
i(O) === i(w).HOST_PORT_CE ? (I(), N(F, {
|
|
2806
|
+
key: 5,
|
|
2807
|
+
modelValue: i(s).fields.config.timeout,
|
|
2808
|
+
"onUpdate:modelValue": y[19] || (y[19] = (f) => i(s).fields.config.timeout = f),
|
|
2800
2809
|
modelModifiers: { trim: !0 },
|
|
2801
2810
|
"data-testid": "redis-timeout-input",
|
|
2802
|
-
label: r
|
|
2811
|
+
label: i(r)("form.fields.timeout.label"),
|
|
2803
2812
|
"label-attributes": {
|
|
2804
|
-
info: r
|
|
2813
|
+
info: i(r)("form.fields.timeout.tooltip"),
|
|
2805
2814
|
tooltipAttributes: { maxWidth: "400" }
|
|
2806
2815
|
},
|
|
2807
|
-
readonly:
|
|
2816
|
+
readonly: i(s).readonly,
|
|
2808
2817
|
type: "number"
|
|
2809
|
-
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) :
|
|
2810
|
-
g(
|
|
2811
|
-
modelValue:
|
|
2812
|
-
"onUpdate:modelValue":
|
|
2818
|
+
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : Z("", !0),
|
|
2819
|
+
g(F, {
|
|
2820
|
+
modelValue: i(s).fields.config.database,
|
|
2821
|
+
"onUpdate:modelValue": y[20] || (y[20] = (f) => i(s).fields.config.database = f),
|
|
2813
2822
|
modelModifiers: { trim: !0 },
|
|
2814
2823
|
"data-testid": "redis-database-input",
|
|
2815
|
-
label: r
|
|
2824
|
+
label: i(r)("form.fields.database.label"),
|
|
2816
2825
|
"label-attributes": {
|
|
2817
|
-
info: r
|
|
2826
|
+
info: i(r)("form.fields.database.tooltip"),
|
|
2818
2827
|
tooltipAttributes: { maxWidth: "400" }
|
|
2819
2828
|
},
|
|
2820
|
-
readonly:
|
|
2829
|
+
readonly: i(s).readonly,
|
|
2821
2830
|
type: "number"
|
|
2822
2831
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2823
|
-
g(
|
|
2824
|
-
modelValue:
|
|
2825
|
-
"onUpdate:modelValue":
|
|
2832
|
+
g(F, {
|
|
2833
|
+
modelValue: i(s).fields.config.username,
|
|
2834
|
+
"onUpdate:modelValue": y[21] || (y[21] = (f) => i(s).fields.config.username = f),
|
|
2826
2835
|
modelModifiers: { trim: !0 },
|
|
2827
2836
|
"data-testid": "redis-username-input",
|
|
2828
|
-
label: r
|
|
2837
|
+
label: i(r)("form.fields.username.label"),
|
|
2829
2838
|
"label-attributes": {
|
|
2830
|
-
info: r
|
|
2839
|
+
info: i(r)("form.fields.username.tooltip"),
|
|
2831
2840
|
tooltipAttributes: { maxWidth: "400" }
|
|
2832
2841
|
},
|
|
2833
|
-
readonly:
|
|
2842
|
+
readonly: i(s).readonly
|
|
2834
2843
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2835
|
-
g(
|
|
2844
|
+
g(i(he), {
|
|
2836
2845
|
class: "secret-picker-provider",
|
|
2837
|
-
disabled:
|
|
2838
|
-
update: (f) =>
|
|
2839
|
-
value:
|
|
2840
|
-
onOpen:
|
|
2846
|
+
disabled: i(s).readonly,
|
|
2847
|
+
update: (f) => i(s).fields.config.username = f,
|
|
2848
|
+
value: i(s).fields.config.username,
|
|
2849
|
+
onOpen: y[22] || (y[22] = (f, j) => i(p)(f, j))
|
|
2841
2850
|
}, null, 8, ["disabled", "update", "value"]),
|
|
2842
|
-
g(
|
|
2843
|
-
modelValue:
|
|
2844
|
-
"onUpdate:modelValue":
|
|
2851
|
+
g(F, {
|
|
2852
|
+
modelValue: i(s).fields.config.password,
|
|
2853
|
+
"onUpdate:modelValue": y[23] || (y[23] = (f) => i(s).fields.config.password = f),
|
|
2845
2854
|
modelModifiers: { trim: !0 },
|
|
2846
2855
|
"data-testid": "redis-password-input",
|
|
2847
|
-
label: r
|
|
2856
|
+
label: i(r)("form.fields.password.label"),
|
|
2848
2857
|
"label-attributes": {
|
|
2849
|
-
info: r
|
|
2858
|
+
info: i(r)("form.fields.password.tooltip"),
|
|
2850
2859
|
tooltipAttributes: { maxWidth: "400" }
|
|
2851
2860
|
},
|
|
2852
|
-
readonly:
|
|
2861
|
+
readonly: i(s).readonly,
|
|
2853
2862
|
"show-password-mask-toggle": "",
|
|
2854
2863
|
type: "password"
|
|
2855
2864
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2856
|
-
g(
|
|
2865
|
+
g(i(he), {
|
|
2857
2866
|
class: "secret-picker-provider",
|
|
2858
|
-
disabled:
|
|
2859
|
-
update: (f) =>
|
|
2860
|
-
value:
|
|
2861
|
-
onOpen:
|
|
2867
|
+
disabled: i(s).readonly,
|
|
2868
|
+
update: (f) => i(s).fields.config.password = f,
|
|
2869
|
+
value: i(s).fields.config.password,
|
|
2870
|
+
onOpen: y[24] || (y[24] = (f, j) => i(p)(f, j))
|
|
2862
2871
|
}, null, 8, ["disabled", "update", "value"])
|
|
2863
2872
|
]),
|
|
2864
2873
|
_: 1
|
|
2865
2874
|
}, 8, ["description", "title"]),
|
|
2866
|
-
g(
|
|
2875
|
+
g(i(ue), {
|
|
2867
2876
|
"data-testid": "redis-tls-configuration-section",
|
|
2868
|
-
description: r
|
|
2869
|
-
title: r
|
|
2877
|
+
description: i(r)("form.sections.tls.description"),
|
|
2878
|
+
title: i(r)("form.sections.tls.title")
|
|
2870
2879
|
}, {
|
|
2871
2880
|
default: S(() => [
|
|
2872
2881
|
g(C, {
|
|
2873
|
-
modelValue:
|
|
2874
|
-
"onUpdate:modelValue":
|
|
2882
|
+
modelValue: i(s).fields.config.ssl,
|
|
2883
|
+
"onUpdate:modelValue": y[25] || (y[25] = (f) => i(s).fields.config.ssl = f),
|
|
2875
2884
|
"data-testid": "redis-ssl-checkbox",
|
|
2876
|
-
description: r
|
|
2877
|
-
disabled:
|
|
2878
|
-
label: r
|
|
2885
|
+
description: i(r)("form.fields.ssl.description"),
|
|
2886
|
+
disabled: i(s).readonly,
|
|
2887
|
+
label: i(r)("form.fields.ssl.label"),
|
|
2879
2888
|
"label-attributes": {
|
|
2880
|
-
info: r
|
|
2889
|
+
info: i(r)("form.fields.ssl.tooltip"),
|
|
2881
2890
|
tooltipAttributes: { maxWidth: "400" }
|
|
2882
2891
|
}
|
|
2883
2892
|
}, null, 8, ["modelValue", "description", "disabled", "label", "label-attributes"]),
|
|
2884
2893
|
g(C, {
|
|
2885
|
-
modelValue:
|
|
2886
|
-
"onUpdate:modelValue":
|
|
2894
|
+
modelValue: i(s).fields.config.ssl_verify,
|
|
2895
|
+
"onUpdate:modelValue": y[26] || (y[26] = (f) => i(s).fields.config.ssl_verify = f),
|
|
2887
2896
|
"data-testid": "redis-ssl-verify-checkbox",
|
|
2888
|
-
description: r
|
|
2889
|
-
disabled:
|
|
2890
|
-
label: r
|
|
2897
|
+
description: i(r)("form.fields.ssl_verify.description"),
|
|
2898
|
+
disabled: i(s).readonly,
|
|
2899
|
+
label: i(r)("form.fields.ssl_verify.label"),
|
|
2891
2900
|
"label-attributes": {
|
|
2892
|
-
info: r
|
|
2901
|
+
info: i(r)("form.fields.ssl_verify.tooltip"),
|
|
2893
2902
|
tooltipAttributes: { maxWidth: "400" }
|
|
2894
2903
|
}
|
|
2895
2904
|
}, null, 8, ["modelValue", "description", "disabled", "label", "label-attributes"]),
|
|
2896
|
-
g(
|
|
2897
|
-
modelValue:
|
|
2898
|
-
"onUpdate:modelValue":
|
|
2905
|
+
g(F, {
|
|
2906
|
+
modelValue: i(s).fields.config.server_name,
|
|
2907
|
+
"onUpdate:modelValue": y[27] || (y[27] = (f) => i(s).fields.config.server_name = f),
|
|
2899
2908
|
modelModifiers: { trim: !0 },
|
|
2900
|
-
label: r
|
|
2909
|
+
label: i(r)("form.fields.server_name.label"),
|
|
2901
2910
|
"label-attributes": {
|
|
2902
|
-
info: r
|
|
2911
|
+
info: i(r)("form.fields.server_name.tooltip"),
|
|
2903
2912
|
tooltipAttributes: { maxWidth: "400" }
|
|
2904
2913
|
},
|
|
2905
|
-
readonly:
|
|
2906
|
-
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
2914
|
+
readonly: i(s).readonly
|
|
2915
|
+
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2916
|
+
i(O) === i(w).HOST_PORT_EE && e.config.isServerNameReferenceable ? (I(), N(i(he), {
|
|
2917
|
+
key: 0,
|
|
2918
|
+
class: "secret-picker-provider",
|
|
2919
|
+
"data-testid": "secret-picker-provider-for-server_name",
|
|
2920
|
+
disabled: i(s).readonly,
|
|
2921
|
+
update: (f) => i(s).fields.config.server_name = f,
|
|
2922
|
+
value: i(s).fields.config.server_name ?? "",
|
|
2923
|
+
onOpen: y[28] || (y[28] = (f, j) => i(p)(f, j))
|
|
2924
|
+
}, null, 8, ["disabled", "update", "value"])) : Z("", !0)
|
|
2907
2925
|
]),
|
|
2908
2926
|
_: 1
|
|
2909
2927
|
}, 8, ["description", "title"]),
|
|
2910
|
-
|
|
2928
|
+
i(O) !== i(w).HOST_PORT_CE ? (I(), N(i(ue), {
|
|
2911
2929
|
key: 4,
|
|
2912
2930
|
"data-testid": "redis-keepalive-section",
|
|
2913
|
-
description: r
|
|
2914
|
-
title: r
|
|
2931
|
+
description: i(r)("form.sections.keepalive.description"),
|
|
2932
|
+
title: i(r)("form.sections.keepalive.title")
|
|
2915
2933
|
}, {
|
|
2916
2934
|
default: S(() => [
|
|
2917
|
-
g(
|
|
2918
|
-
modelValue:
|
|
2919
|
-
"onUpdate:modelValue":
|
|
2935
|
+
g(F, {
|
|
2936
|
+
modelValue: i(s).fields.config.keepalive_backlog,
|
|
2937
|
+
"onUpdate:modelValue": y[29] || (y[29] = (f) => i(s).fields.config.keepalive_backlog = f),
|
|
2920
2938
|
"data-testid": "redis-keepalive-backlog-input",
|
|
2921
|
-
label: r
|
|
2939
|
+
label: i(r)("form.fields.keepalive_backlog.label"),
|
|
2922
2940
|
"label-attributes": {
|
|
2923
|
-
info: r
|
|
2941
|
+
info: i(r)("form.fields.keepalive_backlog.tooltip"),
|
|
2924
2942
|
tooltipAttributes: { maxWidth: "400" }
|
|
2925
2943
|
},
|
|
2926
|
-
readonly:
|
|
2944
|
+
readonly: i(s).readonly,
|
|
2927
2945
|
type: "number"
|
|
2928
2946
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2929
|
-
g(
|
|
2930
|
-
modelValue:
|
|
2931
|
-
"onUpdate:modelValue":
|
|
2947
|
+
g(F, {
|
|
2948
|
+
modelValue: i(s).fields.config.keepalive_pool_size,
|
|
2949
|
+
"onUpdate:modelValue": y[30] || (y[30] = (f) => i(s).fields.config.keepalive_pool_size = f),
|
|
2932
2950
|
"data-testid": "redis-keepalive-pool-size-input",
|
|
2933
|
-
label: r
|
|
2951
|
+
label: i(r)("form.fields.keepalive_pool_size.label"),
|
|
2934
2952
|
"label-attributes": {
|
|
2935
|
-
info: r
|
|
2953
|
+
info: i(r)("form.fields.keepalive_pool_size.tooltip"),
|
|
2936
2954
|
tooltipAttributes: { maxWidth: "400" }
|
|
2937
2955
|
},
|
|
2938
|
-
readonly:
|
|
2956
|
+
readonly: i(s).readonly,
|
|
2939
2957
|
type: "number"
|
|
2940
2958
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
2941
2959
|
]),
|
|
2942
2960
|
_: 1
|
|
2943
|
-
}, 8, ["description", "title"])) :
|
|
2944
|
-
|
|
2961
|
+
}, 8, ["description", "title"])) : Z("", !0),
|
|
2962
|
+
i(O) !== i(w).HOST_PORT_CE ? (I(), N(i(ue), {
|
|
2945
2963
|
key: 5,
|
|
2946
2964
|
"data-testid": "redis-read-write-configuration-section",
|
|
2947
|
-
description: r
|
|
2948
|
-
title: r
|
|
2965
|
+
description: i(r)("form.sections.read_write_configuration.description"),
|
|
2966
|
+
title: i(r)("form.sections.read_write_configuration.title")
|
|
2949
2967
|
}, {
|
|
2950
2968
|
default: S(() => [
|
|
2951
|
-
g(
|
|
2952
|
-
modelValue:
|
|
2953
|
-
"onUpdate:modelValue":
|
|
2969
|
+
g(F, {
|
|
2970
|
+
modelValue: i(s).fields.config.read_timeout,
|
|
2971
|
+
"onUpdate:modelValue": y[31] || (y[31] = (f) => i(s).fields.config.read_timeout = f),
|
|
2954
2972
|
"data-testid": "redis-read-timeout-input",
|
|
2955
|
-
label: r
|
|
2973
|
+
label: i(r)("form.fields.read_timeout.label"),
|
|
2956
2974
|
"label-attributes": {
|
|
2957
|
-
info: r
|
|
2975
|
+
info: i(r)("form.fields.read_timeout.tooltip"),
|
|
2958
2976
|
tooltipAttributes: { maxWidth: "400" }
|
|
2959
2977
|
},
|
|
2960
|
-
readonly:
|
|
2978
|
+
readonly: i(s).readonly,
|
|
2961
2979
|
type: "number"
|
|
2962
2980
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2963
|
-
g(
|
|
2964
|
-
modelValue:
|
|
2965
|
-
"onUpdate:modelValue":
|
|
2981
|
+
g(F, {
|
|
2982
|
+
modelValue: i(s).fields.config.send_timeout,
|
|
2983
|
+
"onUpdate:modelValue": y[32] || (y[32] = (f) => i(s).fields.config.send_timeout = f),
|
|
2966
2984
|
"data-testid": "redis-send-timeout-input",
|
|
2967
|
-
label: r
|
|
2985
|
+
label: i(r)("form.fields.send_timeout.label"),
|
|
2968
2986
|
"label-attributes": {
|
|
2969
|
-
info: r
|
|
2987
|
+
info: i(r)("form.fields.send_timeout.tooltip"),
|
|
2970
2988
|
tooltipAttributes: { maxWidth: "400" }
|
|
2971
2989
|
},
|
|
2972
|
-
readonly:
|
|
2990
|
+
readonly: i(s).readonly,
|
|
2973
2991
|
type: "number"
|
|
2974
2992
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2975
|
-
g(
|
|
2976
|
-
modelValue:
|
|
2977
|
-
"onUpdate:modelValue":
|
|
2993
|
+
g(F, {
|
|
2994
|
+
modelValue: i(s).fields.config.connect_timeout,
|
|
2995
|
+
"onUpdate:modelValue": y[33] || (y[33] = (f) => i(s).fields.config.connect_timeout = f),
|
|
2978
2996
|
"data-testid": "redis-connect-timeout-input",
|
|
2979
|
-
label: r
|
|
2997
|
+
label: i(r)("form.fields.connect_timeout.label"),
|
|
2980
2998
|
"label-attributes": {
|
|
2981
|
-
info: r
|
|
2999
|
+
info: i(r)("form.fields.connect_timeout.tooltip"),
|
|
2982
3000
|
tooltipAttributes: { maxWidth: "400" }
|
|
2983
3001
|
},
|
|
2984
|
-
readonly:
|
|
3002
|
+
readonly: i(s).readonly,
|
|
2985
3003
|
type: "number"
|
|
2986
3004
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
2987
3005
|
]),
|
|
2988
3006
|
_: 1
|
|
2989
|
-
}, 8, ["description", "title"])) :
|
|
3007
|
+
}, 8, ["description", "title"])) : Z("", !0)
|
|
2990
3008
|
]),
|
|
2991
3009
|
_: 1
|
|
2992
3010
|
}, 8, ["action-teleport-target", "can-submit", "config", "edit-id", "entity-type", "error-message", "fetch-url", "form-fields", "is-readonly", "slidout-top-offset"])
|
|
2993
3011
|
]),
|
|
2994
|
-
g(
|
|
3012
|
+
g(i(wn), {
|
|
2995
3013
|
config: n.config,
|
|
2996
|
-
setup:
|
|
2997
|
-
onCancel:
|
|
2998
|
-
onProceed:
|
|
3014
|
+
setup: i(c),
|
|
3015
|
+
onCancel: y[35] || (y[35] = () => c.value = !1),
|
|
3016
|
+
onProceed: i(l)
|
|
2999
3017
|
}, null, 8, ["config", "setup", "onProceed"]),
|
|
3000
3018
|
g(R, {
|
|
3001
|
-
"action-button-text": r
|
|
3019
|
+
"action-button-text": i(r)("form.edit_warning_modal.confirm"),
|
|
3002
3020
|
"data-testid": "redis-update-warning-modal",
|
|
3003
3021
|
"hide-cancel-button": "",
|
|
3004
3022
|
"max-width": "640",
|
|
3005
|
-
title: r
|
|
3023
|
+
title: i(r)("form.edit_warning_modal.title"),
|
|
3006
3024
|
visible: ie.value,
|
|
3007
|
-
onCancel:
|
|
3008
|
-
onProceed:
|
|
3025
|
+
onCancel: y[36] || (y[36] = (f) => ie.value = !1),
|
|
3026
|
+
onProceed: Se
|
|
3009
3027
|
}, {
|
|
3010
3028
|
default: S(() => [
|
|
3011
|
-
g(
|
|
3029
|
+
g(i(a), {
|
|
3012
3030
|
keypath: "form.edit_warning_modal.description",
|
|
3013
3031
|
tag: "div"
|
|
3014
3032
|
}, {
|
|
3015
3033
|
pluginCount: S(() => [
|
|
3016
|
-
K("b", null,
|
|
3034
|
+
K("b", null, B(i(r)("form.edit_warning_modal.plugin_count", { count: re.value })), 1)
|
|
3017
3035
|
]),
|
|
3018
3036
|
_: 1
|
|
3019
3037
|
})
|
|
@@ -3023,10 +3041,10 @@ const Fe = (e) => {
|
|
|
3023
3041
|
], 64);
|
|
3024
3042
|
};
|
|
3025
3043
|
}
|
|
3026
|
-
}), cd = /* @__PURE__ */ te(ud, [["__scopeId", "data-v-
|
|
3044
|
+
}), cd = /* @__PURE__ */ te(ud, [["__scopeId", "data-v-1360229c"]]), fd = {
|
|
3027
3045
|
class: "linked-plugins",
|
|
3028
3046
|
"data-testid": "linked-plugins-inline"
|
|
3029
|
-
}, bt = 7, pd = /* @__PURE__ */
|
|
3047
|
+
}, bt = 7, pd = /* @__PURE__ */ Y({
|
|
3030
3048
|
__name: "LinkedPluginsInline",
|
|
3031
3049
|
props: {
|
|
3032
3050
|
config: {
|
|
@@ -3044,41 +3062,41 @@ const Fe = (e) => {
|
|
|
3044
3062
|
config: t.config,
|
|
3045
3063
|
partialId: t.partialId
|
|
3046
3064
|
});
|
|
3047
|
-
return (o,
|
|
3065
|
+
return (o, r) => {
|
|
3048
3066
|
const a = $("KBadge");
|
|
3049
3067
|
return I(), J("div", fd, [
|
|
3050
|
-
(I(!0), J(fe, null, tt(
|
|
3068
|
+
(I(!0), J(fe, null, tt(i(n).slice(0, bt), (c) => (I(), N(i(En), {
|
|
3051
3069
|
key: c.id,
|
|
3052
3070
|
name: c.name,
|
|
3053
3071
|
size: 24
|
|
3054
3072
|
}, null, 8, ["name"]))), 128)),
|
|
3055
|
-
|
|
3073
|
+
i(n).length - bt > 0 ? (I(), N(a, {
|
|
3056
3074
|
key: 0,
|
|
3057
3075
|
appearance: "info"
|
|
3058
3076
|
}, {
|
|
3059
3077
|
default: S(() => [
|
|
3060
|
-
le(" +" +
|
|
3078
|
+
le(" +" + B(i(n).length - bt), 1)
|
|
3061
3079
|
]),
|
|
3062
3080
|
_: 1
|
|
3063
|
-
})) :
|
|
3081
|
+
})) : Z("", !0)
|
|
3064
3082
|
]);
|
|
3065
3083
|
};
|
|
3066
3084
|
}
|
|
3067
|
-
}), md = /* @__PURE__ */ te(pd, [["__scopeId", "data-v-c39556bc"]]), _d = { class: "plugin-item" }, gd = /* @__PURE__ */
|
|
3085
|
+
}), md = /* @__PURE__ */ te(pd, [["__scopeId", "data-v-c39556bc"]]), _d = { class: "plugin-item" }, gd = /* @__PURE__ */ Y({
|
|
3068
3086
|
__name: "PluginItem",
|
|
3069
3087
|
props: {
|
|
3070
3088
|
pluginName: {}
|
|
3071
3089
|
},
|
|
3072
3090
|
setup(e) {
|
|
3073
3091
|
return (t, n) => (I(), J("div", _d, [
|
|
3074
|
-
g(
|
|
3092
|
+
g(i(En), {
|
|
3075
3093
|
name: e.pluginName,
|
|
3076
3094
|
size: 24
|
|
3077
3095
|
}, null, 8, ["name"]),
|
|
3078
|
-
K("span", null,
|
|
3096
|
+
K("span", null, B(e.pluginName), 1)
|
|
3079
3097
|
]));
|
|
3080
3098
|
}
|
|
3081
|
-
}), bd = /* @__PURE__ */ te(gd, [["__scopeId", "data-v-de964dc4"]]), yd = { class: "toolbar-container" }, vd = /* @__PURE__ */
|
|
3099
|
+
}), bd = /* @__PURE__ */ te(gd, [["__scopeId", "data-v-de964dc4"]]), yd = { class: "toolbar-container" }, vd = /* @__PURE__ */ Y({
|
|
3082
3100
|
__name: "LinkedPluginList",
|
|
3083
3101
|
props: {
|
|
3084
3102
|
config: {
|
|
@@ -3104,9 +3122,9 @@ const Fe = (e) => {
|
|
|
3104
3122
|
},
|
|
3105
3123
|
emits: ["view-plugin", "load"],
|
|
3106
3124
|
setup(e, { emit: t }) {
|
|
3107
|
-
const n = e, o = t, { i18n: { t:
|
|
3108
|
-
{ key: "name", label:
|
|
3109
|
-
{ key: "instance_name", label:
|
|
3125
|
+
const n = e, o = t, { i18n: { t: r } } = ye.useI18n(), a = [
|
|
3126
|
+
{ key: "name", label: r("linked_plugins_modal.headers.plugin") },
|
|
3127
|
+
{ key: "instance_name", label: r("linked_plugins_modal.headers.instance_name") },
|
|
3110
3128
|
{ key: "actions", hideLabel: !0 }
|
|
3111
3129
|
], { fetcher: c } = Fe(n.config), p = x(0), l = async (m) => {
|
|
3112
3130
|
const { data: b, count: _ } = await c({
|
|
@@ -3121,19 +3139,19 @@ const Fe = (e) => {
|
|
|
3121
3139
|
data: b
|
|
3122
3140
|
};
|
|
3123
3141
|
return o("load", E), E;
|
|
3124
|
-
}, u = x(""),
|
|
3142
|
+
}, u = x(""), v = z(() => n.config.app === "konnect" || n.isExactMatch ? {
|
|
3125
3143
|
isExactMatch: !0
|
|
3126
3144
|
} : {
|
|
3127
3145
|
isExactMatch: !1,
|
|
3128
3146
|
fields: { name: { searchable: !0 } },
|
|
3129
3147
|
schema: { name: { type: "text" } }
|
|
3130
|
-
}),
|
|
3148
|
+
}), T = (m) => {
|
|
3131
3149
|
o("view-plugin", { id: m.id, plugin: m.name });
|
|
3132
3150
|
};
|
|
3133
3151
|
return (m, b) => {
|
|
3134
3152
|
const _ = $("KDropdownItem"), E = $("KTableData");
|
|
3135
|
-
return I(),
|
|
3136
|
-
"cache-identifier":
|
|
3153
|
+
return I(), N(E, {
|
|
3154
|
+
"cache-identifier": i(ci)(e.partialId),
|
|
3137
3155
|
fetcher: l,
|
|
3138
3156
|
headers: a,
|
|
3139
3157
|
"hide-pagination-when-optional": "",
|
|
@@ -3145,10 +3163,10 @@ const Fe = (e) => {
|
|
|
3145
3163
|
]),
|
|
3146
3164
|
"action-items": S(({ row: s }) => [
|
|
3147
3165
|
g(_, {
|
|
3148
|
-
onClick: (A) =>
|
|
3166
|
+
onClick: (A) => T(s)
|
|
3149
3167
|
}, {
|
|
3150
3168
|
default: S(() => [
|
|
3151
|
-
le(
|
|
3169
|
+
le(B(i(r)("actions.view_plugin")), 1)
|
|
3152
3170
|
]),
|
|
3153
3171
|
_: 1
|
|
3154
3172
|
}, 8, ["onClick"])
|
|
@@ -3159,10 +3177,10 @@ const Fe = (e) => {
|
|
|
3159
3177
|
name: "toolbar",
|
|
3160
3178
|
fn: S(() => [
|
|
3161
3179
|
K("div", yd, [
|
|
3162
|
-
g(
|
|
3180
|
+
g(i(hn), {
|
|
3163
3181
|
modelValue: u.value,
|
|
3164
3182
|
"onUpdate:modelValue": b[0] || (b[0] = (s) => u.value = s),
|
|
3165
|
-
config:
|
|
3183
|
+
config: v.value
|
|
3166
3184
|
}, null, 8, ["modelValue", "config"])
|
|
3167
3185
|
])
|
|
3168
3186
|
]),
|
|
@@ -3174,7 +3192,7 @@ const Fe = (e) => {
|
|
|
3174
3192
|
}), hd = /* @__PURE__ */ te(vd, [["__scopeId", "data-v-50856d03"]]), wd = {
|
|
3175
3193
|
class: "linked-plugins-modal",
|
|
3176
3194
|
"data-testid": "linked-plugins-modal"
|
|
3177
|
-
}, Td = /* @__PURE__ */
|
|
3195
|
+
}, Td = /* @__PURE__ */ Y({
|
|
3178
3196
|
__name: "LinkedPluginListModal",
|
|
3179
3197
|
props: {
|
|
3180
3198
|
config: {
|
|
@@ -3194,16 +3212,16 @@ const Fe = (e) => {
|
|
|
3194
3212
|
},
|
|
3195
3213
|
emits: ["cancel", "proceed", "view-plugin"],
|
|
3196
3214
|
setup(e, { emit: t }) {
|
|
3197
|
-
const n = t, { i18n: { t: o } } = ye.useI18n(),
|
|
3215
|
+
const n = t, { i18n: { t: o } } = ye.useI18n(), r = x(0), a = z(() => o("linked_plugins_modal.title", { count: r.value })), c = () => {
|
|
3198
3216
|
n("cancel");
|
|
3199
3217
|
}, p = () => {
|
|
3200
3218
|
n("proceed");
|
|
3201
3219
|
};
|
|
3202
3220
|
return (l, u) => {
|
|
3203
|
-
const
|
|
3221
|
+
const v = $("KModal");
|
|
3204
3222
|
return I(), J("div", wd, [
|
|
3205
|
-
g(
|
|
3206
|
-
"action-button-text":
|
|
3223
|
+
g(v, {
|
|
3224
|
+
"action-button-text": i(o)("actions.done"),
|
|
3207
3225
|
"hide-cancel-button": "",
|
|
3208
3226
|
title: a.value,
|
|
3209
3227
|
visible: e.visible,
|
|
@@ -3214,8 +3232,8 @@ const Fe = (e) => {
|
|
|
3214
3232
|
g(hd, {
|
|
3215
3233
|
config: e.config,
|
|
3216
3234
|
"partial-id": e.redisConfigurationId,
|
|
3217
|
-
onLoad: u[0] || (u[0] = ({ total:
|
|
3218
|
-
onViewPlugin: u[1] || (u[1] = (
|
|
3235
|
+
onLoad: u[0] || (u[0] = ({ total: T }) => r.value = T),
|
|
3236
|
+
onViewPlugin: u[1] || (u[1] = (T) => n("view-plugin", T))
|
|
3219
3237
|
}, null, 8, ["config", "partial-id"])
|
|
3220
3238
|
]),
|
|
3221
3239
|
_: 1
|
|
@@ -3223,7 +3241,7 @@ const Fe = (e) => {
|
|
|
3223
3241
|
]);
|
|
3224
3242
|
};
|
|
3225
3243
|
}
|
|
3226
|
-
}), Sd = /* @__PURE__ */ te(Td, [["__scopeId", "data-v-6148b8bd"]]), Ed = /* @__PURE__ */
|
|
3244
|
+
}), Sd = /* @__PURE__ */ te(Td, [["__scopeId", "data-v-6148b8bd"]]), Ed = /* @__PURE__ */ Y({
|
|
3227
3245
|
__name: "DeleteWarningModal",
|
|
3228
3246
|
props: {
|
|
3229
3247
|
visible: {
|
|
@@ -3233,29 +3251,29 @@ const Fe = (e) => {
|
|
|
3233
3251
|
},
|
|
3234
3252
|
emits: ["close"],
|
|
3235
3253
|
setup(e, { emit: t }) {
|
|
3236
|
-
const { i18n: { t: n } } = ye.useI18n(), o = t,
|
|
3254
|
+
const { i18n: { t: n } } = ye.useI18n(), o = t, r = () => {
|
|
3237
3255
|
o("close");
|
|
3238
3256
|
};
|
|
3239
3257
|
return (a, c) => {
|
|
3240
3258
|
const p = $("KModal");
|
|
3241
|
-
return I(),
|
|
3242
|
-
"action-button-text":
|
|
3259
|
+
return I(), N(p, {
|
|
3260
|
+
"action-button-text": i(n)("actions.close"),
|
|
3243
3261
|
"data-testid": "remove-links-modal",
|
|
3244
3262
|
"hide-cancel-button": "",
|
|
3245
3263
|
"max-width": "640",
|
|
3246
|
-
title:
|
|
3264
|
+
title: i(n)("delete.title"),
|
|
3247
3265
|
visible: e.visible,
|
|
3248
|
-
onCancel:
|
|
3249
|
-
onProceed:
|
|
3266
|
+
onCancel: r,
|
|
3267
|
+
onProceed: r
|
|
3250
3268
|
}, {
|
|
3251
3269
|
default: S(() => [
|
|
3252
|
-
le(
|
|
3270
|
+
le(B(i(n)("delete.warning")), 1)
|
|
3253
3271
|
]),
|
|
3254
3272
|
_: 1
|
|
3255
3273
|
}, 8, ["action-button-text", "title", "visible"]);
|
|
3256
3274
|
};
|
|
3257
3275
|
}
|
|
3258
|
-
}), Cd = { class: "kong-ui-entities-partials-list" }, kd = 1e3, Id = /* @__PURE__ */
|
|
3276
|
+
}), Cd = { class: "kong-ui-entities-partials-list" }, kd = 1e3, Id = /* @__PURE__ */ Y({
|
|
3259
3277
|
__name: "RedisConfigurationList",
|
|
3260
3278
|
props: {
|
|
3261
3279
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3301,17 +3319,17 @@ const Fe = (e) => {
|
|
|
3301
3319
|
},
|
|
3302
3320
|
emits: ["click:learn-more", "click:plugin", "copy:error", "copy:success", "delete:success", "error"],
|
|
3303
3321
|
setup(e, { emit: t }) {
|
|
3304
|
-
var
|
|
3305
|
-
const n = t, o = e,
|
|
3322
|
+
var F;
|
|
3323
|
+
const n = t, o = e, r = z(() => {
|
|
3306
3324
|
var R, f;
|
|
3307
3325
|
let C = `${o.config.apiBaseUrl}${Me.list[o.config.app]}`;
|
|
3308
3326
|
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),
|
|
3327
|
+
}), a = x(!1), c = x(""), p = x(null), l = x(void 0), u = x(!1), v = x(!1), T = x(""), m = x(!1), b = Oi(o.config, r.value), _ = x(1), E = z(() => o.config.app !== "kongManager" || !!o.config.disableSorting), { fetcher: s, fetcherState: A } = Ri(o.config, r);
|
|
3310
3328
|
async function k(C) {
|
|
3311
3329
|
const R = await s({ ...C, pageSize: kd });
|
|
3312
|
-
return R.data = R.data.filter((f) => f.type ===
|
|
3330
|
+
return R.data = R.data.filter((f) => f.type === Q.REDIS_CE || f.type === Q.REDIS_EE), R;
|
|
3313
3331
|
}
|
|
3314
|
-
const { i18n: { t: d } } = ye.useI18n(), { axiosInstance: O } = kt((
|
|
3332
|
+
const { i18n: { t: d } } = ye.useI18n(), { axiosInstance: O } = kt((F = o.config) == null ? void 0 : F.axiosRequestConfig), P = Tn(), W = x(""), X = z(() => {
|
|
3315
3333
|
const C = o.config.app === "konnect" || o.config.isExactMatch;
|
|
3316
3334
|
if (C)
|
|
3317
3335
|
return {
|
|
@@ -3336,7 +3354,7 @@ const Fe = (e) => {
|
|
|
3336
3354
|
type: { label: d("list.table_headers.type") },
|
|
3337
3355
|
tags: { label: d("list.table_headers.tags") },
|
|
3338
3356
|
plugins: { label: d("list.table_headers.plugins") }
|
|
3339
|
-
},
|
|
3357
|
+
}, we = (C) => ({
|
|
3340
3358
|
label: d("actions.view"),
|
|
3341
3359
|
to: o.config.getViewRoute(C)
|
|
3342
3360
|
}), re = (C) => ({
|
|
@@ -3345,41 +3363,41 @@ const Fe = (e) => {
|
|
|
3345
3363
|
}), oe = async (C) => {
|
|
3346
3364
|
const { count: R } = await ne({ partialId: C.id });
|
|
3347
3365
|
R > 0 ? m.value = !0 : (l.value = C, u.value = !0);
|
|
3348
|
-
},
|
|
3366
|
+
}, Te = () => {
|
|
3349
3367
|
W.value = "";
|
|
3350
|
-
},
|
|
3368
|
+
}, Se = async (C) => {
|
|
3351
3369
|
var f;
|
|
3352
3370
|
await ((f = o.canRetrieve) == null ? void 0 : f.call(o, C)) && P.push(o.config.getViewRoute(C.id));
|
|
3353
|
-
},
|
|
3371
|
+
}, xe = () => {
|
|
3354
3372
|
u.value = !1;
|
|
3355
3373
|
}, ve = (C) => {
|
|
3356
3374
|
c.value = C, a.value = !0;
|
|
3357
3375
|
}, at = async () => {
|
|
3358
3376
|
var C, R, f;
|
|
3359
3377
|
if ((C = l.value) != null && C.id) {
|
|
3360
|
-
|
|
3378
|
+
v.value = !0;
|
|
3361
3379
|
try {
|
|
3362
|
-
await O.delete(b(l.value.id)),
|
|
3363
|
-
} catch (
|
|
3364
|
-
|
|
3380
|
+
await O.delete(b(l.value.id)), v.value = !1, u.value = !1, ze(), n("delete:success", l.value);
|
|
3381
|
+
} catch (j) {
|
|
3382
|
+
T.value = ((f = (R = j.response) == null ? void 0 : R.data) == null ? void 0 : f.message) || j.message || d("errors.delete"), n("error", j);
|
|
3365
3383
|
} finally {
|
|
3366
|
-
|
|
3384
|
+
v.value = !1;
|
|
3367
3385
|
}
|
|
3368
3386
|
}
|
|
3369
3387
|
}, ze = () => {
|
|
3370
3388
|
_.value++;
|
|
3371
3389
|
}, H = (C) => {
|
|
3372
3390
|
switch (Be(C)) {
|
|
3373
|
-
case
|
|
3391
|
+
case w.HOST_PORT_CE:
|
|
3374
3392
|
return `${d("form.options.type.host_port")}${d("form.options.type.suffix_open_source")}`;
|
|
3375
|
-
case
|
|
3393
|
+
case w.HOST_PORT_EE:
|
|
3376
3394
|
return `${d("form.options.type.host_port")}${d("form.options.type.suffix_enterprise")}`;
|
|
3377
|
-
case
|
|
3395
|
+
case w.SENTINEL:
|
|
3378
3396
|
return `${d("form.options.type.sentinel")}${d("form.options.type.suffix_enterprise")}`;
|
|
3379
|
-
case
|
|
3397
|
+
case w.CLUSTER:
|
|
3380
3398
|
return `${d("form.options.type.cluster")}${d("form.options.type.suffix_enterprise")}`;
|
|
3381
3399
|
}
|
|
3382
|
-
},
|
|
3400
|
+
}, y = () => {
|
|
3383
3401
|
P.push(o.config.createRoute);
|
|
3384
3402
|
}, lt = async (C, R) => {
|
|
3385
3403
|
const f = C.id;
|
|
@@ -3397,25 +3415,25 @@ const Fe = (e) => {
|
|
|
3397
3415
|
message: d("copy.success", { val: f })
|
|
3398
3416
|
});
|
|
3399
3417
|
};
|
|
3400
|
-
|
|
3401
|
-
var R, f,
|
|
3418
|
+
Ce(A, (C) => {
|
|
3419
|
+
var R, f, j;
|
|
3402
3420
|
if (C.status === xi.Error) {
|
|
3403
3421
|
p.value = {
|
|
3404
3422
|
title: d("errors.general")
|
|
3405
|
-
}, (
|
|
3423
|
+
}, (j = (f = (R = C.error) == null ? void 0 : R.response) == null ? void 0 : f.data) != null && j.message && (p.value.message = C.error.response.data.message), n("error", C.error);
|
|
3406
3424
|
return;
|
|
3407
3425
|
}
|
|
3408
3426
|
p.value = null;
|
|
3409
3427
|
});
|
|
3410
|
-
const
|
|
3411
|
-
return
|
|
3412
|
-
|
|
3428
|
+
const Ee = x(!1);
|
|
3429
|
+
return Ce(o.canCreate, async (C) => {
|
|
3430
|
+
Ee.value = await C, Ee.value ? de.value.ctaText = d("actions.create") : de.value.ctaText = void 0;
|
|
3413
3431
|
}, {
|
|
3414
3432
|
immediate: !0
|
|
3415
3433
|
}), (C, R) => {
|
|
3416
|
-
const f = $("KButton"),
|
|
3434
|
+
const f = $("KButton"), j = $("KDropdownItem"), mi = $("KClipboardProvider"), _i = $("KEmptyState");
|
|
3417
3435
|
return I(), J("div", Cd, [
|
|
3418
|
-
g(
|
|
3436
|
+
g(i(Ai), {
|
|
3419
3437
|
"cache-identifier": e.cacheIdentifier,
|
|
3420
3438
|
"disable-sorting": E.value,
|
|
3421
3439
|
"empty-state-options": de.value,
|
|
@@ -3427,23 +3445,23 @@ const Fe = (e) => {
|
|
|
3427
3445
|
"preferences-storage-key": "kong-ui-entities-redis-configuration-list",
|
|
3428
3446
|
query: W.value,
|
|
3429
3447
|
"table-headers": ie,
|
|
3430
|
-
onClearSearchInput:
|
|
3431
|
-
"onClick:row": R[1] || (R[1] = (
|
|
3448
|
+
onClearSearchInput: Te,
|
|
3449
|
+
"onClick:row": R[1] || (R[1] = (L) => Se(L)),
|
|
3432
3450
|
onSort: ze
|
|
3433
3451
|
}, {
|
|
3434
3452
|
"toolbar-filter": S(() => [
|
|
3435
|
-
g(
|
|
3453
|
+
g(i(hn), {
|
|
3436
3454
|
modelValue: W.value,
|
|
3437
|
-
"onUpdate:modelValue": R[0] || (R[0] = (
|
|
3438
|
-
config:
|
|
3455
|
+
"onUpdate:modelValue": R[0] || (R[0] = (L) => W.value = L),
|
|
3456
|
+
config: X.value
|
|
3439
3457
|
}, null, 8, ["modelValue", "config"])
|
|
3440
3458
|
]),
|
|
3441
3459
|
"toolbar-button": S(() => [
|
|
3442
|
-
(I(),
|
|
3460
|
+
(I(), N(Ei, {
|
|
3443
3461
|
disabled: !e.useActionOutside,
|
|
3444
3462
|
to: "#kong-ui-app-page-header-action-button"
|
|
3445
3463
|
}, [
|
|
3446
|
-
g(
|
|
3464
|
+
g(i(Ke), { "auth-function": e.canCreate }, {
|
|
3447
3465
|
default: S(() => [
|
|
3448
3466
|
g(f, {
|
|
3449
3467
|
appearance: "primary",
|
|
@@ -3452,8 +3470,8 @@ const Fe = (e) => {
|
|
|
3452
3470
|
to: e.config.createRoute
|
|
3453
3471
|
}, {
|
|
3454
3472
|
default: S(() => [
|
|
3455
|
-
g(
|
|
3456
|
-
le(" " +
|
|
3473
|
+
g(i(yt)),
|
|
3474
|
+
le(" " + B(i(d)("actions.create")), 1)
|
|
3457
3475
|
]),
|
|
3458
3476
|
_: 1
|
|
3459
3477
|
}, 8, ["to"])
|
|
@@ -3462,72 +3480,72 @@ const Fe = (e) => {
|
|
|
3462
3480
|
}, 8, ["auth-function"])
|
|
3463
3481
|
], 8, ["disabled"]))
|
|
3464
3482
|
]),
|
|
3465
|
-
name: S(({ rowValue:
|
|
3466
|
-
K("b", null,
|
|
3483
|
+
name: S(({ rowValue: L }) => [
|
|
3484
|
+
K("b", null, B(L ?? "-"), 1)
|
|
3467
3485
|
]),
|
|
3468
|
-
type: S(({ row:
|
|
3469
|
-
le(
|
|
3486
|
+
type: S(({ row: L }) => [
|
|
3487
|
+
le(B(H(L)), 1)
|
|
3470
3488
|
]),
|
|
3471
|
-
tags: S(({ rowValue:
|
|
3472
|
-
g(
|
|
3489
|
+
tags: S(({ rowValue: L }) => [
|
|
3490
|
+
g(i(Pi), { tags: L }, null, 8, ["tags"])
|
|
3473
3491
|
]),
|
|
3474
|
-
plugins: S(({ row:
|
|
3492
|
+
plugins: S(({ row: L }) => [
|
|
3475
3493
|
g(md, {
|
|
3476
3494
|
config: e.config,
|
|
3477
|
-
"partial-id":
|
|
3478
|
-
onClick: Si((st) => ve(
|
|
3495
|
+
"partial-id": L.id,
|
|
3496
|
+
onClick: Si((st) => ve(L.id), ["stop"])
|
|
3479
3497
|
}, null, 8, ["config", "partial-id", "onClick"])
|
|
3480
3498
|
]),
|
|
3481
|
-
actions: S(({ row:
|
|
3499
|
+
actions: S(({ row: L }) => [
|
|
3482
3500
|
g(mi, null, {
|
|
3483
3501
|
default: S(({ copyToClipboard: st }) => [
|
|
3484
|
-
g(
|
|
3502
|
+
g(j, {
|
|
3485
3503
|
"data-testid": "action-entity-copy-id",
|
|
3486
|
-
onClick: (Ld) => lt(
|
|
3504
|
+
onClick: (Ld) => lt(L, st)
|
|
3487
3505
|
}, {
|
|
3488
3506
|
default: S(() => [
|
|
3489
|
-
le(
|
|
3507
|
+
le(B(i(d)("actions.copy_id")), 1)
|
|
3490
3508
|
]),
|
|
3491
3509
|
_: 1
|
|
3492
3510
|
}, 8, ["onClick"])
|
|
3493
3511
|
]),
|
|
3494
3512
|
_: 2
|
|
3495
3513
|
}, 1024),
|
|
3496
|
-
g(
|
|
3497
|
-
"auth-function": () => e.canRetrieve(
|
|
3514
|
+
g(i(Ke), {
|
|
3515
|
+
"auth-function": () => e.canRetrieve(L)
|
|
3498
3516
|
}, {
|
|
3499
3517
|
default: S(() => [
|
|
3500
|
-
g(
|
|
3518
|
+
g(j, {
|
|
3501
3519
|
"data-testid": "action-entity-view",
|
|
3502
3520
|
"has-divider": "",
|
|
3503
|
-
item:
|
|
3521
|
+
item: we(L.id)
|
|
3504
3522
|
}, null, 8, ["item"])
|
|
3505
3523
|
]),
|
|
3506
3524
|
_: 2
|
|
3507
3525
|
}, 1032, ["auth-function"]),
|
|
3508
|
-
g(
|
|
3509
|
-
"auth-function": () => e.canEdit(
|
|
3526
|
+
g(i(Ke), {
|
|
3527
|
+
"auth-function": () => e.canEdit(L)
|
|
3510
3528
|
}, {
|
|
3511
3529
|
default: S(() => [
|
|
3512
|
-
g(
|
|
3530
|
+
g(j, {
|
|
3513
3531
|
"data-testid": "action-entity-edit",
|
|
3514
|
-
item: re(
|
|
3532
|
+
item: re(L.id)
|
|
3515
3533
|
}, null, 8, ["item"])
|
|
3516
3534
|
]),
|
|
3517
3535
|
_: 2
|
|
3518
3536
|
}, 1032, ["auth-function"]),
|
|
3519
|
-
g(
|
|
3520
|
-
"auth-function": () => e.canDelete(
|
|
3537
|
+
g(i(Ke), {
|
|
3538
|
+
"auth-function": () => e.canDelete(L)
|
|
3521
3539
|
}, {
|
|
3522
3540
|
default: S(() => [
|
|
3523
|
-
g(
|
|
3541
|
+
g(j, {
|
|
3524
3542
|
danger: "",
|
|
3525
3543
|
"data-testid": "action-entity-delete",
|
|
3526
3544
|
"has-divider": "",
|
|
3527
|
-
onClick: (st) => oe(
|
|
3545
|
+
onClick: (st) => oe(L)
|
|
3528
3546
|
}, {
|
|
3529
3547
|
default: S(() => [
|
|
3530
|
-
le(
|
|
3548
|
+
le(B(i(d)("actions.delete")), 1)
|
|
3531
3549
|
]),
|
|
3532
3550
|
_: 1
|
|
3533
3551
|
}, 8, ["onClick"])
|
|
@@ -3537,37 +3555,37 @@ const Fe = (e) => {
|
|
|
3537
3555
|
]),
|
|
3538
3556
|
"empty-state": S(() => [
|
|
3539
3557
|
g(_i, {
|
|
3540
|
-
"action-button-text":
|
|
3541
|
-
"action-button-visible":
|
|
3558
|
+
"action-button-text": i(d)("list.action"),
|
|
3559
|
+
"action-button-visible": Ee.value,
|
|
3542
3560
|
"data-testid": "redis-entity-empty-state",
|
|
3543
3561
|
features: [
|
|
3544
3562
|
{
|
|
3545
3563
|
key: "feature-1",
|
|
3546
|
-
title:
|
|
3547
|
-
description:
|
|
3564
|
+
title: i(d)("list.empty_state.feature_1.title"),
|
|
3565
|
+
description: i(d)("list.empty_state.feature_1.description")
|
|
3548
3566
|
},
|
|
3549
3567
|
{
|
|
3550
3568
|
key: "feature-2",
|
|
3551
|
-
title:
|
|
3552
|
-
description:
|
|
3569
|
+
title: i(d)("list.empty_state.feature_2.title"),
|
|
3570
|
+
description: i(d)("list.empty_state.feature_2.description")
|
|
3553
3571
|
}
|
|
3554
3572
|
],
|
|
3555
3573
|
"icon-background": "",
|
|
3556
|
-
message:
|
|
3557
|
-
title:
|
|
3558
|
-
onClickAction:
|
|
3574
|
+
message: i(d)("list.empty_state.description"),
|
|
3575
|
+
title: i(d)("redis.title"),
|
|
3576
|
+
onClickAction: y
|
|
3559
3577
|
}, {
|
|
3560
3578
|
icon: S(() => [
|
|
3561
|
-
g(
|
|
3579
|
+
g(i(Ni), { decorative: "" })
|
|
3562
3580
|
]),
|
|
3563
3581
|
"feature-icon-feature-1": S(() => [
|
|
3564
|
-
g(
|
|
3582
|
+
g(i(Ui))
|
|
3565
3583
|
]),
|
|
3566
3584
|
"feature-icon-feature-2": S(() => [
|
|
3567
|
-
g(
|
|
3585
|
+
g(i(Li))
|
|
3568
3586
|
]),
|
|
3569
3587
|
"action-button-icon": S(() => [
|
|
3570
|
-
g(
|
|
3588
|
+
g(i(yt), { decorative: "" })
|
|
3571
3589
|
]),
|
|
3572
3590
|
_: 1
|
|
3573
3591
|
}, 8, ["action-button-text", "action-button-visible", "features", "message", "title"])
|
|
@@ -3576,32 +3594,32 @@ const Fe = (e) => {
|
|
|
3576
3594
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher-cache-key", "query"]),
|
|
3577
3595
|
g(Ed, {
|
|
3578
3596
|
visible: m.value,
|
|
3579
|
-
onClose: R[2] || (R[2] = (
|
|
3597
|
+
onClose: R[2] || (R[2] = (L) => m.value = !1)
|
|
3580
3598
|
}, null, 8, ["visible"]),
|
|
3581
|
-
g(
|
|
3582
|
-
"action-pending":
|
|
3583
|
-
description:
|
|
3599
|
+
g(i($i), {
|
|
3600
|
+
"action-pending": v.value,
|
|
3601
|
+
description: i(d)("delete.description"),
|
|
3584
3602
|
"entity-name": l.value && (l.value.name || l.value.id),
|
|
3585
|
-
"entity-type":
|
|
3586
|
-
error:
|
|
3603
|
+
"entity-type": i(Vi).RedisConfiguration,
|
|
3604
|
+
error: T.value,
|
|
3587
3605
|
"need-confirmation": !0,
|
|
3588
|
-
title:
|
|
3606
|
+
title: i(d)("delete.title"),
|
|
3589
3607
|
visible: u.value,
|
|
3590
|
-
onCancel:
|
|
3608
|
+
onCancel: xe,
|
|
3591
3609
|
onProceed: at
|
|
3592
3610
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
|
|
3593
3611
|
g(Sd, {
|
|
3594
3612
|
config: e.config,
|
|
3595
3613
|
"redis-configuration-id": c.value,
|
|
3596
3614
|
visible: a.value,
|
|
3597
|
-
onCancel: R[3] || (R[3] = (
|
|
3598
|
-
onProceed: R[4] || (R[4] = (
|
|
3599
|
-
onViewPlugin: R[5] || (R[5] = (
|
|
3615
|
+
onCancel: R[3] || (R[3] = (L) => a.value = !1),
|
|
3616
|
+
onProceed: R[4] || (R[4] = (L) => a.value = !1),
|
|
3617
|
+
onViewPlugin: R[5] || (R[5] = (L) => n("click:plugin", L))
|
|
3600
3618
|
}, null, 8, ["config", "redis-configuration-id", "visible"])
|
|
3601
3619
|
]);
|
|
3602
3620
|
};
|
|
3603
3621
|
}
|
|
3604
|
-
}), Qd = /* @__PURE__ */ te(Id, [["__scopeId", "data-v-4e5be541"]]), Od = { class: "kong-ui-consumer-group-entity-config-card" }, Yd = /* @__PURE__ */
|
|
3622
|
+
}), Qd = /* @__PURE__ */ te(Id, [["__scopeId", "data-v-4e5be541"]]), Od = { class: "kong-ui-consumer-group-entity-config-card" }, Yd = /* @__PURE__ */ Y({
|
|
3605
3623
|
__name: "RedisConfigurationConfigCard",
|
|
3606
3624
|
props: {
|
|
3607
3625
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3628,23 +3646,23 @@ const Fe = (e) => {
|
|
|
3628
3646
|
},
|
|
3629
3647
|
emits: ["loading", "fetch:error", "fetch:success"],
|
|
3630
3648
|
setup(e, { emit: t }) {
|
|
3631
|
-
const n = e, o = t, { i18n: { t:
|
|
3649
|
+
const n = e, o = t, { i18n: { t: r } } = ye.useI18n(), a = z(() => Me.form[n.config.app].edit), c = x($e), p = (_) => {
|
|
3632
3650
|
c.value = Be(_), o("fetch:success", _);
|
|
3633
3651
|
}, l = z(() => {
|
|
3634
|
-
const _ = c.value ===
|
|
3652
|
+
const _ = c.value === w.HOST_PORT_CE ? r("form.options.type.suffix_open_source") : r("form.options.type.suffix_enterprise");
|
|
3635
3653
|
let E = "";
|
|
3636
3654
|
switch (c.value) {
|
|
3637
|
-
case
|
|
3638
|
-
E =
|
|
3655
|
+
case w.HOST_PORT_CE:
|
|
3656
|
+
E = r("form.options.type.host_port");
|
|
3639
3657
|
break;
|
|
3640
|
-
case
|
|
3641
|
-
E =
|
|
3658
|
+
case w.HOST_PORT_EE:
|
|
3659
|
+
E = r("form.options.type.host_port");
|
|
3642
3660
|
break;
|
|
3643
|
-
case
|
|
3644
|
-
E =
|
|
3661
|
+
case w.CLUSTER:
|
|
3662
|
+
E = r("form.options.type.cluster");
|
|
3645
3663
|
break;
|
|
3646
|
-
case
|
|
3647
|
-
E =
|
|
3664
|
+
case w.SENTINEL:
|
|
3665
|
+
E = r("form.options.type.sentinel");
|
|
3648
3666
|
break;
|
|
3649
3667
|
}
|
|
3650
3668
|
return `${E}${_}`;
|
|
@@ -3657,7 +3675,7 @@ const Fe = (e) => {
|
|
|
3657
3675
|
type: _.type,
|
|
3658
3676
|
..._.config,
|
|
3659
3677
|
...n.config.cloudAuthAvailable ? { cloud_authentication: Vt(_.config.cloud_authentication) } : null
|
|
3660
|
-
}),
|
|
3678
|
+
}), v = (_, E) => {
|
|
3661
3679
|
if (!_ || Object.keys(_).length === 0)
|
|
3662
3680
|
return {};
|
|
3663
3681
|
const { id: s, name: A, created_at: k, updated_at: d, type: O, tags: P, ...W } = _;
|
|
@@ -3679,177 +3697,177 @@ const Fe = (e) => {
|
|
|
3679
3697
|
type: O,
|
|
3680
3698
|
config: W
|
|
3681
3699
|
};
|
|
3682
|
-
},
|
|
3700
|
+
}, T = {
|
|
3683
3701
|
id: {},
|
|
3684
3702
|
name: {
|
|
3685
3703
|
type: M.Text,
|
|
3686
3704
|
section: V.Basic,
|
|
3687
|
-
label:
|
|
3705
|
+
label: r("form.fields.name.label")
|
|
3688
3706
|
},
|
|
3689
3707
|
tags: {
|
|
3690
3708
|
type: M.BadgeTag,
|
|
3691
3709
|
section: V.Basic,
|
|
3692
|
-
label:
|
|
3693
|
-
tooltip:
|
|
3710
|
+
label: r("form.fields.tags.label"),
|
|
3711
|
+
tooltip: r("form.fields.tags.tooltip")
|
|
3694
3712
|
},
|
|
3695
3713
|
updated_at: {},
|
|
3696
3714
|
created_at: {},
|
|
3697
3715
|
type: {
|
|
3698
3716
|
type: M.Text,
|
|
3699
3717
|
section: V.Basic,
|
|
3700
|
-
label:
|
|
3718
|
+
label: r("form.fields.type.label")
|
|
3701
3719
|
},
|
|
3702
3720
|
cluster_max_redirections: {
|
|
3703
3721
|
type: M.Text,
|
|
3704
3722
|
section: V.Basic,
|
|
3705
|
-
tooltip:
|
|
3706
|
-
label:
|
|
3723
|
+
tooltip: r("form.fields.cluster_max_redirections.tooltip"),
|
|
3724
|
+
label: r("form.fields.cluster_max_redirections.label")
|
|
3707
3725
|
},
|
|
3708
3726
|
cluster_nodes: {
|
|
3709
3727
|
type: M.JsonArray,
|
|
3710
3728
|
section: V.Basic,
|
|
3711
|
-
label:
|
|
3712
|
-
tooltip:
|
|
3729
|
+
label: r("form.fields.cluster_nodes.title"),
|
|
3730
|
+
tooltip: r("form.fields.cluster_nodes.tooltip")
|
|
3713
3731
|
},
|
|
3714
3732
|
connect_timeout: {
|
|
3715
3733
|
type: M.Text,
|
|
3716
3734
|
section: V.Basic,
|
|
3717
|
-
label:
|
|
3718
|
-
tooltip:
|
|
3735
|
+
label: r("form.fields.connect_timeout.label"),
|
|
3736
|
+
tooltip: r("form.fields.connect_timeout.tooltip")
|
|
3719
3737
|
},
|
|
3720
3738
|
connection_is_proxied: {
|
|
3721
3739
|
type: M.Text,
|
|
3722
3740
|
section: V.Basic,
|
|
3723
|
-
label:
|
|
3724
|
-
tooltip:
|
|
3741
|
+
label: r("form.fields.connection_is_proxied.label"),
|
|
3742
|
+
tooltip: r("form.fields.connection_is_proxied.tooltip")
|
|
3725
3743
|
},
|
|
3726
3744
|
database: {
|
|
3727
3745
|
type: M.Text,
|
|
3728
3746
|
section: V.Basic,
|
|
3729
|
-
label:
|
|
3730
|
-
tooltip:
|
|
3747
|
+
label: r("form.fields.database.label"),
|
|
3748
|
+
tooltip: r("form.fields.database.tooltip")
|
|
3731
3749
|
},
|
|
3732
3750
|
host: {
|
|
3733
3751
|
type: M.Text,
|
|
3734
3752
|
section: V.Basic,
|
|
3735
|
-
label:
|
|
3736
|
-
tooltip:
|
|
3753
|
+
label: r("form.fields.host.label"),
|
|
3754
|
+
tooltip: r("form.fields.host.tooltip")
|
|
3737
3755
|
},
|
|
3738
3756
|
keepalive_backlog: {
|
|
3739
3757
|
type: M.Text,
|
|
3740
3758
|
section: V.Basic,
|
|
3741
|
-
label:
|
|
3742
|
-
tooltip:
|
|
3759
|
+
label: r("form.fields.keepalive_backlog.label"),
|
|
3760
|
+
tooltip: r("form.fields.keepalive_backlog.tooltip")
|
|
3743
3761
|
},
|
|
3744
3762
|
keepalive_pool_size: {
|
|
3745
3763
|
type: M.Text,
|
|
3746
3764
|
section: V.Basic,
|
|
3747
|
-
label:
|
|
3748
|
-
tooltip:
|
|
3765
|
+
label: r("form.fields.keepalive_pool_size.label"),
|
|
3766
|
+
tooltip: r("form.fields.keepalive_pool_size.tooltip")
|
|
3749
3767
|
},
|
|
3750
3768
|
password: {
|
|
3751
3769
|
type: M.Redacted,
|
|
3752
3770
|
section: V.Basic,
|
|
3753
|
-
label:
|
|
3754
|
-
tooltip:
|
|
3771
|
+
label: r("form.fields.password.label"),
|
|
3772
|
+
tooltip: r("form.fields.password.tooltip")
|
|
3755
3773
|
},
|
|
3756
3774
|
port: {
|
|
3757
3775
|
type: M.Text,
|
|
3758
3776
|
section: V.Basic,
|
|
3759
|
-
label:
|
|
3760
|
-
tooltip:
|
|
3777
|
+
label: r("form.fields.port.label"),
|
|
3778
|
+
tooltip: r("form.fields.port.tooltip")
|
|
3761
3779
|
},
|
|
3762
3780
|
read_timeout: {
|
|
3763
3781
|
type: M.Text,
|
|
3764
3782
|
section: V.Basic,
|
|
3765
|
-
label:
|
|
3766
|
-
tooltip:
|
|
3783
|
+
label: r("form.fields.read_timeout.label"),
|
|
3784
|
+
tooltip: r("form.fields.read_timeout.tooltip")
|
|
3767
3785
|
},
|
|
3768
3786
|
send_timeout: {
|
|
3769
3787
|
type: M.Text,
|
|
3770
3788
|
section: V.Basic,
|
|
3771
|
-
label:
|
|
3772
|
-
tooltip:
|
|
3789
|
+
label: r("form.fields.send_timeout.label"),
|
|
3790
|
+
tooltip: r("form.fields.send_timeout.tooltip")
|
|
3773
3791
|
},
|
|
3774
3792
|
sentinel_master: {
|
|
3775
3793
|
type: M.Text,
|
|
3776
3794
|
section: V.Basic,
|
|
3777
|
-
label:
|
|
3778
|
-
tooltip:
|
|
3795
|
+
label: r("form.fields.sentinel_master.label"),
|
|
3796
|
+
tooltip: r("form.fields.sentinel_master.tooltip")
|
|
3779
3797
|
},
|
|
3780
3798
|
sentinel_nodes: {
|
|
3781
3799
|
type: M.JsonArray,
|
|
3782
3800
|
section: V.Basic,
|
|
3783
|
-
tooltip:
|
|
3801
|
+
tooltip: r("form.fields.sentinel_nodes.tooltip")
|
|
3784
3802
|
},
|
|
3785
3803
|
sentinel_password: {
|
|
3786
3804
|
type: M.Redacted,
|
|
3787
3805
|
section: V.Basic,
|
|
3788
|
-
label:
|
|
3789
|
-
tooltip:
|
|
3806
|
+
label: r("form.fields.sentinel_password.label"),
|
|
3807
|
+
tooltip: r("form.fields.sentinel_password.tooltip")
|
|
3790
3808
|
},
|
|
3791
3809
|
sentinel_role: {
|
|
3792
3810
|
type: M.Text,
|
|
3793
3811
|
section: V.Basic,
|
|
3794
|
-
label:
|
|
3795
|
-
tooltip:
|
|
3812
|
+
label: r("form.fields.sentinel_role.label"),
|
|
3813
|
+
tooltip: r("form.fields.sentinel_role.tooltip")
|
|
3796
3814
|
},
|
|
3797
3815
|
sentinel_username: {
|
|
3798
3816
|
type: M.Text,
|
|
3799
3817
|
section: V.Basic,
|
|
3800
|
-
label:
|
|
3801
|
-
tooltip:
|
|
3818
|
+
label: r("form.fields.sentinel_username.label"),
|
|
3819
|
+
tooltip: r("form.fields.sentinel_username.tooltip")
|
|
3802
3820
|
},
|
|
3803
3821
|
server_name: {
|
|
3804
3822
|
type: M.Text,
|
|
3805
3823
|
section: V.Basic,
|
|
3806
|
-
label:
|
|
3807
|
-
tooltip:
|
|
3824
|
+
label: r("form.fields.server_name.label"),
|
|
3825
|
+
tooltip: r("form.fields.server_name.tooltip")
|
|
3808
3826
|
},
|
|
3809
3827
|
ssl_verify: {
|
|
3810
3828
|
type: M.Text,
|
|
3811
3829
|
section: V.Basic,
|
|
3812
|
-
label:
|
|
3813
|
-
tooltip:
|
|
3830
|
+
label: r("form.fields.ssl_verify.label"),
|
|
3831
|
+
tooltip: r("form.fields.ssl_verify.tooltip")
|
|
3814
3832
|
},
|
|
3815
3833
|
ssl: {
|
|
3816
3834
|
type: M.Text,
|
|
3817
3835
|
section: V.Basic,
|
|
3818
|
-
label:
|
|
3819
|
-
tooltip:
|
|
3836
|
+
label: r("form.fields.ssl.label"),
|
|
3837
|
+
tooltip: r("form.fields.ssl.tooltip")
|
|
3820
3838
|
},
|
|
3821
3839
|
timeout: {
|
|
3822
3840
|
type: M.Text,
|
|
3823
3841
|
section: V.Basic,
|
|
3824
|
-
label:
|
|
3825
|
-
tooltip:
|
|
3842
|
+
label: r("form.fields.timeout.label"),
|
|
3843
|
+
tooltip: r("form.fields.timeout.tooltip")
|
|
3826
3844
|
},
|
|
3827
3845
|
username: {
|
|
3828
3846
|
type: M.Text,
|
|
3829
3847
|
section: V.Basic,
|
|
3830
|
-
label:
|
|
3831
|
-
tooltip:
|
|
3848
|
+
label: r("form.fields.username.label"),
|
|
3849
|
+
tooltip: r("form.fields.username.tooltip")
|
|
3832
3850
|
},
|
|
3833
3851
|
cloud_authentication: {
|
|
3834
3852
|
type: M.Json,
|
|
3835
3853
|
section: V.Basic,
|
|
3836
|
-
label:
|
|
3854
|
+
label: r("form.sections.cloud_auth.title")
|
|
3837
3855
|
}
|
|
3838
3856
|
}, m = (_) => {
|
|
3839
|
-
const E = {}, s = Object.keys(
|
|
3857
|
+
const E = {}, s = Object.keys(T);
|
|
3840
3858
|
for (const A of s)
|
|
3841
3859
|
_.includes(A) ? E[A] = {
|
|
3842
|
-
...
|
|
3860
|
+
...T[A],
|
|
3843
3861
|
order: _.indexOf(A) + 1
|
|
3844
3862
|
} : E[A] = {
|
|
3845
|
-
...
|
|
3863
|
+
...T[A],
|
|
3846
3864
|
hidden: !0
|
|
3847
3865
|
};
|
|
3848
3866
|
return E;
|
|
3849
3867
|
}, b = z(() => {
|
|
3850
3868
|
const _ = ["id", "name", "tags", "type", "updated_at", "created_at"];
|
|
3851
3869
|
switch (c.value) {
|
|
3852
|
-
case
|
|
3870
|
+
case w.HOST_PORT_CE:
|
|
3853
3871
|
return m([
|
|
3854
3872
|
..._,
|
|
3855
3873
|
"host",
|
|
@@ -3863,7 +3881,7 @@ const Fe = (e) => {
|
|
|
3863
3881
|
"server_name",
|
|
3864
3882
|
"cloud_authentication"
|
|
3865
3883
|
]);
|
|
3866
|
-
case
|
|
3884
|
+
case w.HOST_PORT_EE:
|
|
3867
3885
|
return m([
|
|
3868
3886
|
..._,
|
|
3869
3887
|
"host",
|
|
@@ -3882,7 +3900,7 @@ const Fe = (e) => {
|
|
|
3882
3900
|
"connect_timeout",
|
|
3883
3901
|
"cloud_authentication"
|
|
3884
3902
|
]);
|
|
3885
|
-
case
|
|
3903
|
+
case w.CLUSTER:
|
|
3886
3904
|
return m([
|
|
3887
3905
|
..._,
|
|
3888
3906
|
"cluster_nodes",
|
|
@@ -3900,7 +3918,7 @@ const Fe = (e) => {
|
|
|
3900
3918
|
"connect_timeout",
|
|
3901
3919
|
"cloud_authentication"
|
|
3902
3920
|
]);
|
|
3903
|
-
case
|
|
3921
|
+
case w.SENTINEL:
|
|
3904
3922
|
return m([
|
|
3905
3923
|
..._,
|
|
3906
3924
|
"sentinel_master",
|
|
@@ -3925,12 +3943,12 @@ const Fe = (e) => {
|
|
|
3925
3943
|
}
|
|
3926
3944
|
});
|
|
3927
3945
|
return (_, E) => (I(), J("div", Od, [
|
|
3928
|
-
g(
|
|
3929
|
-
"code-block-record-formatter":
|
|
3946
|
+
g(i(Mi), {
|
|
3947
|
+
"code-block-record-formatter": v,
|
|
3930
3948
|
config: e.config,
|
|
3931
3949
|
"config-card-doc": e.configCardDoc,
|
|
3932
3950
|
"config-schema": b.value,
|
|
3933
|
-
"entity-type":
|
|
3951
|
+
"entity-type": i(vn).Partial,
|
|
3934
3952
|
"fetch-url": a.value,
|
|
3935
3953
|
"hide-title": e.hideTitle,
|
|
3936
3954
|
"record-resolver": u,
|
|
@@ -3939,7 +3957,7 @@ const Fe = (e) => {
|
|
|
3939
3957
|
onLoading: E[1] || (E[1] = (s) => _.$emit("loading", s))
|
|
3940
3958
|
}, {
|
|
3941
3959
|
type: S(() => [
|
|
3942
|
-
K("div", null,
|
|
3960
|
+
K("div", null, B(l.value), 1)
|
|
3943
3961
|
]),
|
|
3944
3962
|
_: 1
|
|
3945
3963
|
}, 8, ["config", "config-card-doc", "config-schema", "entity-type", "fetch-url", "hide-title"])
|
|
@@ -3949,7 +3967,7 @@ const Fe = (e) => {
|
|
|
3949
3967
|
function pi(e) {
|
|
3950
3968
|
const {
|
|
3951
3969
|
redisType: t = "redis-ce"
|
|
3952
|
-
} = e, n = "1000", o = bn(Cn), { i18n: { t:
|
|
3970
|
+
} = e, n = "1000", o = bn(Cn), { i18n: { t: r } } = ot();
|
|
3953
3971
|
if (!o)
|
|
3954
3972
|
throw new Error("FORMS_CONFIG must be provided");
|
|
3955
3973
|
const {
|
|
@@ -3961,29 +3979,29 @@ function pi(e) {
|
|
|
3961
3979
|
} = Di(o, Me.list[o.app], n, {
|
|
3962
3980
|
fetchedItemsKey: "data",
|
|
3963
3981
|
searchKeys: ["id", "name"]
|
|
3964
|
-
}),
|
|
3982
|
+
}), v = (m) => {
|
|
3965
3983
|
switch (m) {
|
|
3966
|
-
case
|
|
3967
|
-
return
|
|
3968
|
-
case
|
|
3969
|
-
return
|
|
3970
|
-
case
|
|
3971
|
-
return
|
|
3972
|
-
case
|
|
3973
|
-
return `${
|
|
3984
|
+
case w.CLUSTER:
|
|
3985
|
+
return r("form.options.type.cluster");
|
|
3986
|
+
case w.HOST_PORT_CE:
|
|
3987
|
+
return r("form.options.type.host_port");
|
|
3988
|
+
case w.SENTINEL:
|
|
3989
|
+
return r("form.options.type.sentinel");
|
|
3990
|
+
case w.HOST_PORT_EE:
|
|
3991
|
+
return `${r("form.options.type.host_port")} (${r("form.options.type.enterprise")})`;
|
|
3974
3992
|
}
|
|
3975
|
-
},
|
|
3993
|
+
}, T = z(() => (u.value || []).filter((b) => b.type === "redis-ce" || b.type === "redis-ee").map((b) => ({ label: b.id, name: b.name, value: b.id, type: b.type, tag: v(Be(b)) })).filter((b) => b.type === t));
|
|
3976
3994
|
return _n(() => {
|
|
3977
3995
|
l();
|
|
3978
3996
|
}), {
|
|
3979
|
-
items:
|
|
3997
|
+
items: T,
|
|
3980
3998
|
loading: c,
|
|
3981
3999
|
onQueryChange: a,
|
|
3982
4000
|
error: p,
|
|
3983
4001
|
loadItems: l
|
|
3984
4002
|
};
|
|
3985
4003
|
}
|
|
3986
|
-
const xd = ["id"], Ad = /* @__PURE__ */
|
|
4004
|
+
const xd = ["id"], Ad = /* @__PURE__ */ Y({
|
|
3987
4005
|
__name: "RedisConfigurationFormModal",
|
|
3988
4006
|
props: {
|
|
3989
4007
|
visible: { type: Boolean },
|
|
@@ -3991,19 +4009,19 @@ const xd = ["id"], Ad = /* @__PURE__ */ Q({
|
|
|
3991
4009
|
},
|
|
3992
4010
|
emits: ["toast", "modal-close", "created"],
|
|
3993
4011
|
setup(e, { emit: t }) {
|
|
3994
|
-
const n = t, { i18n: { t: o } } = ot(),
|
|
3995
|
-
...
|
|
4012
|
+
const n = t, { i18n: { t: o } } = ot(), r = bn(Cn), a = z(() => ({
|
|
4013
|
+
...r,
|
|
3996
4014
|
cancelRoute: void 0
|
|
3997
4015
|
})), { getMessageFromError: c } = yn(), p = Ci(), l = z(() => {
|
|
3998
4016
|
switch (e.partialType) {
|
|
3999
|
-
case
|
|
4000
|
-
return
|
|
4001
|
-
case
|
|
4002
|
-
return
|
|
4017
|
+
case Q.REDIS_CE:
|
|
4018
|
+
return Q.REDIS_EE;
|
|
4019
|
+
case Q.REDIS_EE:
|
|
4020
|
+
return Q.REDIS_CE;
|
|
4003
4021
|
default:
|
|
4004
4022
|
return;
|
|
4005
4023
|
}
|
|
4006
|
-
}), u = x(!1),
|
|
4024
|
+
}), u = x(!1), v = x(), T = (_) => {
|
|
4007
4025
|
n("toast", {
|
|
4008
4026
|
message: c(_),
|
|
4009
4027
|
appearance: "danger"
|
|
@@ -4014,41 +4032,41 @@ const xd = ["id"], Ad = /* @__PURE__ */ Q({
|
|
|
4014
4032
|
appearance: "success"
|
|
4015
4033
|
}), b(), n("created", _);
|
|
4016
4034
|
}, b = () => {
|
|
4017
|
-
|
|
4035
|
+
v.value = void 0, n("modal-close"), Dt(() => {
|
|
4018
4036
|
u.value = !1;
|
|
4019
4037
|
});
|
|
4020
4038
|
};
|
|
4021
|
-
return
|
|
4039
|
+
return Ce(
|
|
4022
4040
|
() => e.visible,
|
|
4023
4041
|
(_) => {
|
|
4024
4042
|
_ && (u.value = !0, Dt(() => {
|
|
4025
|
-
|
|
4043
|
+
v.value = `#redis-modal-footer-${p}`;
|
|
4026
4044
|
}));
|
|
4027
4045
|
}
|
|
4028
4046
|
), (_, E) => {
|
|
4029
4047
|
const s = $("KModal");
|
|
4030
|
-
return I(),
|
|
4048
|
+
return I(), N(s, {
|
|
4031
4049
|
class: "plugin-redis-partial-form",
|
|
4032
4050
|
"data-testid": "redis-partial-form-modal",
|
|
4033
4051
|
"full-screen": "",
|
|
4034
|
-
title:
|
|
4052
|
+
title: i(o)("form.redis_partial_modal_title"),
|
|
4035
4053
|
visible: u.value,
|
|
4036
4054
|
onCancel: b
|
|
4037
4055
|
}, {
|
|
4038
4056
|
footer: S(() => [
|
|
4039
4057
|
K("div", {
|
|
4040
|
-
id: `redis-modal-footer-${
|
|
4058
|
+
id: `redis-modal-footer-${i(p)}`,
|
|
4041
4059
|
class: "redis-modal-footer"
|
|
4042
4060
|
}, null, 8, xd)
|
|
4043
4061
|
]),
|
|
4044
4062
|
default: S(() => [
|
|
4045
4063
|
g(cd, {
|
|
4046
|
-
"action-teleport-target":
|
|
4064
|
+
"action-teleport-target": v.value,
|
|
4047
4065
|
config: a.value,
|
|
4048
4066
|
"disabled-partial-type": l.value,
|
|
4049
4067
|
"slidout-top-offset": 0,
|
|
4050
4068
|
onCancel: b,
|
|
4051
|
-
onError:
|
|
4069
|
+
onError: T,
|
|
4052
4070
|
onUpdate: m
|
|
4053
4071
|
}, null, 8, ["action-teleport-target", "config", "disabled-partial-type"])
|
|
4054
4072
|
]),
|
|
@@ -4062,7 +4080,7 @@ const xd = ["id"], Ad = /* @__PURE__ */ Q({
|
|
|
4062
4080
|
}, Dd = {
|
|
4063
4081
|
class: "empty-redis-config",
|
|
4064
4082
|
"data-testid": "empty-redis-config"
|
|
4065
|
-
}, jd = /* @__PURE__ */
|
|
4083
|
+
}, jd = /* @__PURE__ */ Y({
|
|
4066
4084
|
inheritAttrs: !1,
|
|
4067
4085
|
__name: "RedisConfigurationSelector",
|
|
4068
4086
|
props: {
|
|
@@ -4076,28 +4094,28 @@ const xd = ["id"], Ad = /* @__PURE__ */ Q({
|
|
|
4076
4094
|
emits: ["update:modelValue", "change", "create-new", "error-change", "modal-close", "toast"],
|
|
4077
4095
|
setup(e, { emit: t }) {
|
|
4078
4096
|
const n = t, { i18n: { t: o } } = ot(), {
|
|
4079
|
-
items:
|
|
4097
|
+
items: r,
|
|
4080
4098
|
loading: a,
|
|
4081
4099
|
onQueryChange: c,
|
|
4082
4100
|
error: p,
|
|
4083
4101
|
loadItems: l
|
|
4084
4102
|
} = pi({
|
|
4085
4103
|
redisType: e.redisType
|
|
4086
|
-
}), u = x(!1),
|
|
4104
|
+
}), u = x(!1), v = (_) => {
|
|
4087
4105
|
const E = _ == null ? void 0 : _.value;
|
|
4088
4106
|
n("update:modelValue", E), n("change", _);
|
|
4089
|
-
},
|
|
4107
|
+
}, T = () => {
|
|
4090
4108
|
u.value = !0;
|
|
4091
4109
|
}, m = () => {
|
|
4092
4110
|
u.value = !1, n("modal-close");
|
|
4093
4111
|
}, b = (_) => {
|
|
4094
|
-
u.value = !1, l(),
|
|
4112
|
+
u.value = !1, l(), v({
|
|
4095
4113
|
name: _.name,
|
|
4096
4114
|
value: _.id,
|
|
4097
4115
|
label: _.name
|
|
4098
4116
|
});
|
|
4099
4117
|
};
|
|
4100
|
-
return
|
|
4118
|
+
return Ce(p, (_) => {
|
|
4101
4119
|
n("error-change", _ ? new Error(String(_)) : null);
|
|
4102
4120
|
}), (_, E) => {
|
|
4103
4121
|
const s = $("KBadge"), A = $("KSelect");
|
|
@@ -4106,36 +4124,36 @@ const xd = ["id"], Ad = /* @__PURE__ */ Q({
|
|
|
4106
4124
|
class: "redis-config-select-trigger",
|
|
4107
4125
|
"enable-filtering": "",
|
|
4108
4126
|
"filter-function": () => !0,
|
|
4109
|
-
items: r
|
|
4110
|
-
loading:
|
|
4127
|
+
items: i(r),
|
|
4128
|
+
loading: i(a),
|
|
4111
4129
|
"model-value": e.modelValue,
|
|
4112
|
-
placeholder: e.placeholder ||
|
|
4130
|
+
placeholder: e.placeholder || i(o)("selector.placeholder")
|
|
4113
4131
|
}, _.$attrs, {
|
|
4114
|
-
onChange:
|
|
4115
|
-
onQueryChange:
|
|
4132
|
+
onChange: v,
|
|
4133
|
+
onQueryChange: i(c)
|
|
4116
4134
|
}), gn({
|
|
4117
4135
|
"selected-item-template": S(({ item: k }) => [
|
|
4118
|
-
K("div", $d,
|
|
4136
|
+
K("div", $d, B(k.name), 1)
|
|
4119
4137
|
]),
|
|
4120
4138
|
"item-template": S(({ item: k }) => [
|
|
4121
4139
|
K("div", {
|
|
4122
4140
|
class: "plugin-form-redis-configuration-dropdown-item",
|
|
4123
4141
|
"data-testid": `redis-configuration-dropdown-item-${k.name}`
|
|
4124
4142
|
}, [
|
|
4125
|
-
K("span", Md,
|
|
4143
|
+
K("span", Md, B(k.name), 1),
|
|
4126
4144
|
g(s, {
|
|
4127
4145
|
appearance: "info",
|
|
4128
4146
|
class: "select-item-label"
|
|
4129
4147
|
}, {
|
|
4130
4148
|
default: S(() => [
|
|
4131
|
-
le(
|
|
4149
|
+
le(B(k.tag), 1)
|
|
4132
4150
|
]),
|
|
4133
4151
|
_: 2
|
|
4134
4152
|
}, 1024)
|
|
4135
4153
|
], 8, Vd)
|
|
4136
4154
|
]),
|
|
4137
4155
|
empty: S(() => [
|
|
4138
|
-
K("div", Dd,
|
|
4156
|
+
K("div", Dd, B(e.emptyStateText || i(o)("selector.empty_state")), 1)
|
|
4139
4157
|
]),
|
|
4140
4158
|
_: 2
|
|
4141
4159
|
}, [
|
|
@@ -4145,10 +4163,10 @@ const xd = ["id"], Ad = /* @__PURE__ */ Q({
|
|
|
4145
4163
|
K("div", {
|
|
4146
4164
|
class: "new-redis-config-area",
|
|
4147
4165
|
"data-testid": "new-redis-config-area",
|
|
4148
|
-
onClick:
|
|
4166
|
+
onClick: T
|
|
4149
4167
|
}, [
|
|
4150
|
-
g(
|
|
4151
|
-
K("span", null,
|
|
4168
|
+
g(i(yt), { size: i(Rd) }, null, 8, ["size"]),
|
|
4169
|
+
K("span", null, B(e.createButtonText || i(o)("selector.create_new")), 1)
|
|
4152
4170
|
])
|
|
4153
4171
|
]),
|
|
4154
4172
|
key: "0"
|
|
@@ -4173,13 +4191,13 @@ export {
|
|
|
4173
4191
|
q as AuthProvider,
|
|
4174
4192
|
Ed as DeleteWarningModal,
|
|
4175
4193
|
hd as LinkedPlugins,
|
|
4176
|
-
|
|
4194
|
+
Q as PartialType,
|
|
4177
4195
|
Yd as RedisConfigurationConfigCard,
|
|
4178
4196
|
cd as RedisConfigurationForm,
|
|
4179
4197
|
Pd as RedisConfigurationFormModal,
|
|
4180
4198
|
Qd as RedisConfigurationList,
|
|
4181
4199
|
Xd as RedisConfigurationSelector,
|
|
4182
|
-
|
|
4200
|
+
w as RedisType,
|
|
4183
4201
|
eu as composables,
|
|
4184
4202
|
Jd as constants,
|
|
4185
4203
|
Zd as helpers
|