@kong-ui-public/entities-redis-configurations 0.1.13 → 0.2.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 +704 -660
- package/dist/entities-redis-configurations.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/RedisConfigurationConfigCard.vue.d.ts.map +1 -1
- package/dist/types/components/RedisConfigurationForm.vue.d.ts.map +1 -1
- package/dist/types/components/RedisConfigurationList.vue.d.ts.map +1 -1
- package/dist/types/composables/useRedisConfigurationForm.d.ts +5 -0
- package/dist/types/composables/useRedisConfigurationForm.d.ts.map +1 -1
- package/dist/types/helpers.d.ts +2 -0
- package/dist/types/helpers.d.ts.map +1 -1
- package/dist/types/types/redis-configuration-form.d.ts +1 -0
- package/dist/types/types/redis-configuration-form.d.ts.map +1 -1
- package/dist/types/types/redis-configuration.d.ts +1 -0
- package/dist/types/types/redis-configuration.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { computed as H, reactive as
|
|
1
|
+
import { computed as H, reactive as jt, ref as M, watch as Ie, defineComponent as Y, resolveComponent as D, openBlock as R, createElementBlock as q, createVNode as p, withCtx as T, renderSlot as yn, unref as i, mergeModels as Nt, useModel as Bt, createTextVNode as Z, toDisplayString as B, createElementVNode as K, Fragment as Ke, renderList as ft, createBlock as F, getCurrentInstance as vn, onMounted as hn, onUnmounted as Tn, isReadonly as wn, toRefs as Sn, onBeforeMount as En, createCommentVNode as X, isRef as Cn, createSlots as Ft, withModifiers as In } from "vue";
|
|
2
2
|
import "@kong-ui-public/entities-shared/dist/style.css";
|
|
3
3
|
import "@kong-ui-public/entities-vaults/dist/style.css";
|
|
4
|
-
import { useAxios as pt, useErrors as kn, EntityBaseFormType as Ye, EntityBaseForm as Rn, SupportedEntityType as Ht, EntityFormSection as le, EntityFilter as Kt, useDeleteUrlBuilder as On, useFetcher as xn, FetcherStatus as
|
|
5
|
-
import { VaultSecretPickerProvider as Me, VaultSecretPicker as
|
|
4
|
+
import { useAxios as pt, useErrors as kn, EntityBaseFormType as Ye, EntityBaseForm as Rn, SupportedEntityType as Ht, EntityFormSection as le, EntityFilter as Kt, useDeleteUrlBuilder as On, useFetcher as xn, FetcherStatus as An, EntityBaseTable as Pn, PermissionsWrapper as Le, TableTags as Vn, EntityEmptyState as $n, EntityDeleteModal as Ln, EntityTypes as Mn, ConfigurationSchemaType as V, ConfigurationSchemaSection as $, EntityBaseConfigCard as Dn } from "@kong-ui-public/entities-shared";
|
|
5
|
+
import { VaultSecretPickerProvider as Me, VaultSecretPicker as Un } from "@kong-ui-public/entities-vaults";
|
|
6
6
|
import { useRouter as zt } from "vue-router";
|
|
7
|
-
import { TrashIcon as
|
|
8
|
-
import { createI18n as
|
|
7
|
+
import { TrashIcon as jn, AddCircleIcon as qt, AddIcon as Nn, DeployIcon as _t, RuntimesIcon as Bn } from "@kong/icons";
|
|
8
|
+
import { createI18n as Fn, i18nTComponent as Hn } from "@kong-ui-public/i18n";
|
|
9
9
|
import { PluginIcon as Wt } from "@kong-ui-public/entities-plugins";
|
|
10
|
-
var y = /* @__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))(y || {}), ne = /* @__PURE__ */ ((e) => (e.REDIS_CE = "redis-ce", e.REDIS_EE = "redis-ee", e))(ne || {}), Gt = typeof global == "object" && global && global.Object === Object && global,
|
|
11
|
-
function
|
|
12
|
-
var t =
|
|
10
|
+
var y = /* @__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))(y || {}), ne = /* @__PURE__ */ ((e) => (e.REDIS_CE = "redis-ce", e.REDIS_EE = "redis-ee", e))(ne || {}), Gt = typeof global == "object" && global && global.Object === Object && global, Kn = typeof self == "object" && self && self.Object === Object && self, ie = Gt || Kn || Function("return this")(), we = ie.Symbol, Jt = Object.prototype, zn = Jt.hasOwnProperty, qn = Jt.toString, Ee = we ? we.toStringTag : void 0;
|
|
11
|
+
function Wn(e) {
|
|
12
|
+
var t = zn.call(e, Ee), n = e[Ee];
|
|
13
13
|
try {
|
|
14
14
|
e[Ee] = void 0;
|
|
15
15
|
var o = !0;
|
|
16
16
|
} catch {
|
|
17
17
|
}
|
|
18
|
-
var r =
|
|
18
|
+
var r = qn.call(e);
|
|
19
19
|
return o && (t ? e[Ee] = n : delete e[Ee]), r;
|
|
20
20
|
}
|
|
21
|
-
var
|
|
22
|
-
function
|
|
23
|
-
return
|
|
21
|
+
var Gn = Object.prototype, Jn = Gn.toString;
|
|
22
|
+
function Yn(e) {
|
|
23
|
+
return Jn.call(e);
|
|
24
24
|
}
|
|
25
|
-
var
|
|
26
|
-
function
|
|
27
|
-
return e == null ? e === void 0 ?
|
|
25
|
+
var Qn = "[object Null]", Xn = "[object Undefined]", bt = we ? we.toStringTag : void 0;
|
|
26
|
+
function Pe(e) {
|
|
27
|
+
return e == null ? e === void 0 ? Xn : Qn : bt && bt in Object(e) ? Wn(e) : Yn(e);
|
|
28
28
|
}
|
|
29
29
|
function ke(e) {
|
|
30
30
|
return e != null && typeof e == "object";
|
|
@@ -34,25 +34,25 @@ function Yt(e) {
|
|
|
34
34
|
var t = typeof e;
|
|
35
35
|
return e != null && (t == "object" || t == "function");
|
|
36
36
|
}
|
|
37
|
-
var
|
|
37
|
+
var Zn = "[object AsyncFunction]", ei = "[object Function]", ti = "[object GeneratorFunction]", ni = "[object Proxy]";
|
|
38
38
|
function Qt(e) {
|
|
39
39
|
if (!Yt(e))
|
|
40
40
|
return !1;
|
|
41
|
-
var t =
|
|
42
|
-
return t ==
|
|
41
|
+
var t = Pe(e);
|
|
42
|
+
return t == ei || t == ti || t == Zn || t == ni;
|
|
43
43
|
}
|
|
44
44
|
var Qe = ie["__core-js_shared__"], yt = function() {
|
|
45
45
|
var e = /[^.]+$/.exec(Qe && Qe.keys && Qe.keys.IE_PROTO || "");
|
|
46
46
|
return e ? "Symbol(src)_1." + e : "";
|
|
47
47
|
}();
|
|
48
|
-
function
|
|
48
|
+
function ii(e) {
|
|
49
49
|
return !!yt && yt in e;
|
|
50
50
|
}
|
|
51
|
-
var
|
|
52
|
-
function
|
|
51
|
+
var ri = Function.prototype, oi = ri.toString;
|
|
52
|
+
function ge(e) {
|
|
53
53
|
if (e != null) {
|
|
54
54
|
try {
|
|
55
|
-
return
|
|
55
|
+
return oi.call(e);
|
|
56
56
|
} catch {
|
|
57
57
|
}
|
|
58
58
|
try {
|
|
@@ -62,130 +62,130 @@ function _e(e) {
|
|
|
62
62
|
}
|
|
63
63
|
return "";
|
|
64
64
|
}
|
|
65
|
-
var
|
|
66
|
-
"^" +
|
|
65
|
+
var ai = /[\\^$.*+?()[\]{}|]/g, li = /^\[object .+?Constructor\]$/, si = Function.prototype, di = Object.prototype, ui = si.toString, ci = di.hasOwnProperty, fi = RegExp(
|
|
66
|
+
"^" + ui.call(ci).replace(ai, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
67
67
|
);
|
|
68
|
-
function
|
|
69
|
-
if (!Yt(e) ||
|
|
68
|
+
function pi(e) {
|
|
69
|
+
if (!Yt(e) || ii(e))
|
|
70
70
|
return !1;
|
|
71
|
-
var t = Qt(e) ?
|
|
72
|
-
return t.test(
|
|
71
|
+
var t = Qt(e) ? fi : li;
|
|
72
|
+
return t.test(ge(e));
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function mi(e, t) {
|
|
75
75
|
return e == null ? void 0 : e[t];
|
|
76
76
|
}
|
|
77
77
|
function Se(e, t) {
|
|
78
|
-
var n =
|
|
79
|
-
return
|
|
78
|
+
var n = mi(e, t);
|
|
79
|
+
return pi(n) ? n : void 0;
|
|
80
80
|
}
|
|
81
|
-
var ot = Se(ie, "WeakMap"),
|
|
82
|
-
function
|
|
81
|
+
var ot = Se(ie, "WeakMap"), gi = 9007199254740991, _i = /^(?:0|[1-9]\d*)$/;
|
|
82
|
+
function bi(e, t) {
|
|
83
83
|
var n = typeof e;
|
|
84
|
-
return t = t ??
|
|
84
|
+
return t = t ?? gi, !!t && (n == "number" || n != "symbol" && _i.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
85
85
|
}
|
|
86
86
|
function Xt(e, t) {
|
|
87
87
|
return e === t || e !== e && t !== t;
|
|
88
88
|
}
|
|
89
|
-
var
|
|
89
|
+
var yi = 9007199254740991;
|
|
90
90
|
function Zt(e) {
|
|
91
|
-
return typeof e == "number" && e > -1 && e % 1 == 0 && e <=
|
|
91
|
+
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= yi;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function vi(e) {
|
|
94
94
|
return e != null && Zt(e.length) && !Qt(e);
|
|
95
95
|
}
|
|
96
|
-
var
|
|
97
|
-
function
|
|
98
|
-
var t = e && e.constructor, n = typeof t == "function" && t.prototype ||
|
|
96
|
+
var hi = Object.prototype;
|
|
97
|
+
function Ti(e) {
|
|
98
|
+
var t = e && e.constructor, n = typeof t == "function" && t.prototype || hi;
|
|
99
99
|
return e === n;
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function wi(e, t) {
|
|
102
102
|
for (var n = -1, o = Array(e); ++n < e; )
|
|
103
103
|
o[n] = t(n);
|
|
104
104
|
return o;
|
|
105
105
|
}
|
|
106
|
-
var
|
|
106
|
+
var Si = "[object Arguments]";
|
|
107
107
|
function vt(e) {
|
|
108
|
-
return ke(e) &&
|
|
108
|
+
return ke(e) && Pe(e) == Si;
|
|
109
109
|
}
|
|
110
|
-
var en = Object.prototype,
|
|
110
|
+
var en = Object.prototype, Ei = en.hasOwnProperty, Ci = en.propertyIsEnumerable, Ii = vt(/* @__PURE__ */ function() {
|
|
111
111
|
return arguments;
|
|
112
112
|
}()) ? vt : function(e) {
|
|
113
|
-
return ke(e) &&
|
|
113
|
+
return ke(e) && Ei.call(e, "callee") && !Ci.call(e, "callee");
|
|
114
114
|
};
|
|
115
|
-
function
|
|
115
|
+
function ki() {
|
|
116
116
|
return !1;
|
|
117
117
|
}
|
|
118
|
-
var tn = typeof exports == "object" && exports && !exports.nodeType && exports, ht = tn && typeof module == "object" && module && !module.nodeType && module,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
function Zi(e) {
|
|
122
|
-
return ke(e) && Zt(e.length) && !!P[Ae(e)];
|
|
123
|
-
}
|
|
118
|
+
var tn = typeof exports == "object" && exports && !exports.nodeType && exports, ht = tn && typeof module == "object" && module && !module.nodeType && module, Ri = ht && ht.exports === tn, Tt = Ri ? ie.Buffer : void 0, Oi = Tt ? Tt.isBuffer : void 0, at = Oi || ki, xi = "[object Arguments]", Ai = "[object Array]", Pi = "[object Boolean]", Vi = "[object Date]", $i = "[object Error]", Li = "[object Function]", Mi = "[object Map]", Di = "[object Number]", Ui = "[object Object]", ji = "[object RegExp]", Ni = "[object Set]", Bi = "[object String]", Fi = "[object WeakMap]", Hi = "[object ArrayBuffer]", Ki = "[object DataView]", zi = "[object Float32Array]", qi = "[object Float64Array]", Wi = "[object Int8Array]", Gi = "[object Int16Array]", Ji = "[object Int32Array]", Yi = "[object Uint8Array]", Qi = "[object Uint8ClampedArray]", Xi = "[object Uint16Array]", Zi = "[object Uint32Array]", L = {};
|
|
119
|
+
L[zi] = L[qi] = L[Wi] = L[Gi] = L[Ji] = L[Yi] = L[Qi] = L[Xi] = L[Zi] = !0;
|
|
120
|
+
L[xi] = L[Ai] = L[Hi] = L[Pi] = L[Ki] = L[Vi] = L[$i] = L[Li] = L[Mi] = L[Di] = L[Ui] = L[ji] = L[Ni] = L[Bi] = L[Fi] = !1;
|
|
124
121
|
function er(e) {
|
|
122
|
+
return ke(e) && Zt(e.length) && !!L[Pe(e)];
|
|
123
|
+
}
|
|
124
|
+
function tr(e) {
|
|
125
125
|
return function(t) {
|
|
126
126
|
return e(t);
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
|
-
var nn = typeof exports == "object" && exports && !exports.nodeType && exports, Ce = nn && typeof module == "object" && module && !module.nodeType && module,
|
|
129
|
+
var nn = typeof exports == "object" && exports && !exports.nodeType && exports, Ce = nn && typeof module == "object" && module && !module.nodeType && module, nr = Ce && Ce.exports === nn, Xe = nr && Gt.process, wt = function() {
|
|
130
130
|
try {
|
|
131
131
|
var e = Ce && Ce.require && Ce.require("util").types;
|
|
132
132
|
return e || Xe && Xe.binding && Xe.binding("util");
|
|
133
133
|
} catch {
|
|
134
134
|
}
|
|
135
|
-
}(), St = wt && wt.isTypedArray, rn = St ?
|
|
136
|
-
function
|
|
137
|
-
var n = Be(e), o = !n &&
|
|
135
|
+
}(), St = wt && wt.isTypedArray, rn = St ? tr(St) : er, ir = Object.prototype, rr = ir.hasOwnProperty;
|
|
136
|
+
function or(e, t) {
|
|
137
|
+
var n = Be(e), o = !n && Ii(e), r = !n && !o && at(e), a = !n && !o && !r && rn(e), f = n || o || r || a, g = f ? wi(e.length, String) : [], s = g.length;
|
|
138
138
|
for (var c in e)
|
|
139
|
-
|
|
139
|
+
rr.call(e, c) && !(f && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
140
140
|
(c == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
141
141
|
r && (c == "offset" || c == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
142
142
|
a && (c == "buffer" || c == "byteLength" || c == "byteOffset") || // Skip index properties.
|
|
143
|
-
|
|
144
|
-
return
|
|
143
|
+
bi(c, s))) && g.push(c);
|
|
144
|
+
return g;
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function ar(e, t) {
|
|
147
147
|
return function(n) {
|
|
148
148
|
return e(t(n));
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
|
-
var
|
|
152
|
-
function
|
|
153
|
-
if (!
|
|
154
|
-
return
|
|
151
|
+
var lr = ar(Object.keys, Object), sr = Object.prototype, dr = sr.hasOwnProperty;
|
|
152
|
+
function ur(e) {
|
|
153
|
+
if (!Ti(e))
|
|
154
|
+
return lr(e);
|
|
155
155
|
var t = [];
|
|
156
156
|
for (var n in Object(e))
|
|
157
|
-
|
|
157
|
+
dr.call(e, n) && n != "constructor" && t.push(n);
|
|
158
158
|
return t;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
161
|
-
return
|
|
160
|
+
function cr(e) {
|
|
161
|
+
return vi(e) ? or(e) : ur(e);
|
|
162
162
|
}
|
|
163
163
|
var Re = Se(Object, "create");
|
|
164
|
-
function
|
|
164
|
+
function fr() {
|
|
165
165
|
this.__data__ = Re ? Re(null) : {}, this.size = 0;
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function pr(e) {
|
|
168
168
|
var t = this.has(e) && delete this.__data__[e];
|
|
169
169
|
return this.size -= t ? 1 : 0, t;
|
|
170
170
|
}
|
|
171
|
-
var
|
|
172
|
-
function
|
|
171
|
+
var mr = "__lodash_hash_undefined__", gr = Object.prototype, _r = gr.hasOwnProperty;
|
|
172
|
+
function br(e) {
|
|
173
173
|
var t = this.__data__;
|
|
174
174
|
if (Re) {
|
|
175
175
|
var n = t[e];
|
|
176
|
-
return n ===
|
|
176
|
+
return n === mr ? void 0 : n;
|
|
177
177
|
}
|
|
178
178
|
return _r.call(t, e) ? t[e] : void 0;
|
|
179
179
|
}
|
|
180
|
-
var
|
|
181
|
-
function
|
|
180
|
+
var yr = Object.prototype, vr = yr.hasOwnProperty;
|
|
181
|
+
function hr(e) {
|
|
182
182
|
var t = this.__data__;
|
|
183
|
-
return Re ? t[e] !== void 0 :
|
|
183
|
+
return Re ? t[e] !== void 0 : vr.call(t, e);
|
|
184
184
|
}
|
|
185
|
-
var
|
|
186
|
-
function
|
|
185
|
+
var Tr = "__lodash_hash_undefined__";
|
|
186
|
+
function wr(e, t) {
|
|
187
187
|
var n = this.__data__;
|
|
188
|
-
return this.size += this.has(e) ? 0 : 1, n[e] = Re && t === void 0 ?
|
|
188
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = Re && t === void 0 ? Tr : t, this;
|
|
189
189
|
}
|
|
190
190
|
function me(e) {
|
|
191
191
|
var t = -1, n = e == null ? 0 : e.length;
|
|
@@ -194,12 +194,12 @@ function me(e) {
|
|
|
194
194
|
this.set(o[0], o[1]);
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
me.prototype.clear =
|
|
198
|
-
me.prototype.delete =
|
|
199
|
-
me.prototype.get =
|
|
200
|
-
me.prototype.has =
|
|
201
|
-
me.prototype.set =
|
|
202
|
-
function
|
|
197
|
+
me.prototype.clear = fr;
|
|
198
|
+
me.prototype.delete = pr;
|
|
199
|
+
me.prototype.get = br;
|
|
200
|
+
me.prototype.has = hr;
|
|
201
|
+
me.prototype.set = wr;
|
|
202
|
+
function Sr() {
|
|
203
203
|
this.__data__ = [], this.size = 0;
|
|
204
204
|
}
|
|
205
205
|
function ze(e, t) {
|
|
@@ -208,22 +208,22 @@ function ze(e, t) {
|
|
|
208
208
|
return n;
|
|
209
209
|
return -1;
|
|
210
210
|
}
|
|
211
|
-
var
|
|
212
|
-
function
|
|
211
|
+
var Er = Array.prototype, Cr = Er.splice;
|
|
212
|
+
function Ir(e) {
|
|
213
213
|
var t = this.__data__, n = ze(t, e);
|
|
214
214
|
if (n < 0)
|
|
215
215
|
return !1;
|
|
216
216
|
var o = t.length - 1;
|
|
217
|
-
return n == o ? t.pop() :
|
|
217
|
+
return n == o ? t.pop() : Cr.call(t, n, 1), --this.size, !0;
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function kr(e) {
|
|
220
220
|
var t = this.__data__, n = ze(t, e);
|
|
221
221
|
return n < 0 ? void 0 : t[n][1];
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function Rr(e) {
|
|
224
224
|
return ze(this.__data__, e) > -1;
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function Or(e, t) {
|
|
227
227
|
var n = this.__data__, o = ze(n, e);
|
|
228
228
|
return o < 0 ? (++this.size, n.push([e, t])) : n[o][1] = t, this;
|
|
229
229
|
}
|
|
@@ -234,79 +234,79 @@ function re(e) {
|
|
|
234
234
|
this.set(o[0], o[1]);
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
|
-
re.prototype.clear =
|
|
238
|
-
re.prototype.delete =
|
|
239
|
-
re.prototype.get =
|
|
240
|
-
re.prototype.has =
|
|
241
|
-
re.prototype.set =
|
|
237
|
+
re.prototype.clear = Sr;
|
|
238
|
+
re.prototype.delete = Ir;
|
|
239
|
+
re.prototype.get = kr;
|
|
240
|
+
re.prototype.has = Rr;
|
|
241
|
+
re.prototype.set = Or;
|
|
242
242
|
var Oe = Se(ie, "Map");
|
|
243
|
-
function
|
|
243
|
+
function xr() {
|
|
244
244
|
this.size = 0, this.__data__ = {
|
|
245
245
|
hash: new me(),
|
|
246
246
|
map: new (Oe || re)(),
|
|
247
247
|
string: new me()
|
|
248
248
|
};
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function Ar(e) {
|
|
251
251
|
var t = typeof e;
|
|
252
252
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
253
253
|
}
|
|
254
254
|
function qe(e, t) {
|
|
255
255
|
var n = e.__data__;
|
|
256
|
-
return
|
|
256
|
+
return Ar(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
257
257
|
}
|
|
258
258
|
function Pr(e) {
|
|
259
259
|
var t = qe(this, e).delete(e);
|
|
260
260
|
return this.size -= t ? 1 : 0, t;
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function Vr(e) {
|
|
263
263
|
return qe(this, e).get(e);
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function $r(e) {
|
|
266
266
|
return qe(this, e).has(e);
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function Lr(e, t) {
|
|
269
269
|
var n = qe(this, e), o = n.size;
|
|
270
270
|
return n.set(e, t), this.size += n.size == o ? 0 : 1, this;
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function _e(e) {
|
|
273
273
|
var t = -1, n = e == null ? 0 : e.length;
|
|
274
274
|
for (this.clear(); ++t < n; ) {
|
|
275
275
|
var o = e[t];
|
|
276
276
|
this.set(o[0], o[1]);
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
function
|
|
279
|
+
_e.prototype.clear = xr;
|
|
280
|
+
_e.prototype.delete = Pr;
|
|
281
|
+
_e.prototype.get = Vr;
|
|
282
|
+
_e.prototype.has = $r;
|
|
283
|
+
_e.prototype.set = Lr;
|
|
284
|
+
function Mr(e, t) {
|
|
285
285
|
for (var n = -1, o = t.length, r = e.length; ++n < o; )
|
|
286
286
|
e[r + n] = t[n];
|
|
287
287
|
return e;
|
|
288
288
|
}
|
|
289
|
-
function
|
|
289
|
+
function Dr() {
|
|
290
290
|
this.__data__ = new re(), this.size = 0;
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function Ur(e) {
|
|
293
293
|
var t = this.__data__, n = t.delete(e);
|
|
294
294
|
return this.size = t.size, n;
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function jr(e) {
|
|
297
297
|
return this.__data__.get(e);
|
|
298
298
|
}
|
|
299
299
|
function Nr(e) {
|
|
300
300
|
return this.__data__.has(e);
|
|
301
301
|
}
|
|
302
|
-
var
|
|
303
|
-
function
|
|
302
|
+
var Br = 200;
|
|
303
|
+
function Fr(e, t) {
|
|
304
304
|
var n = this.__data__;
|
|
305
305
|
if (n instanceof re) {
|
|
306
306
|
var o = n.__data__;
|
|
307
|
-
if (!Oe || o.length <
|
|
307
|
+
if (!Oe || o.length < Br - 1)
|
|
308
308
|
return o.push([e, t]), this.size = ++n.size, this;
|
|
309
|
-
n = this.__data__ = new
|
|
309
|
+
n = this.__data__ = new _e(o);
|
|
310
310
|
}
|
|
311
311
|
return n.set(e, t), this.size = n.size, this;
|
|
312
312
|
}
|
|
@@ -314,87 +314,87 @@ function de(e) {
|
|
|
314
314
|
var t = this.__data__ = new re(e);
|
|
315
315
|
this.size = t.size;
|
|
316
316
|
}
|
|
317
|
-
de.prototype.clear =
|
|
318
|
-
de.prototype.delete =
|
|
319
|
-
de.prototype.get =
|
|
317
|
+
de.prototype.clear = Dr;
|
|
318
|
+
de.prototype.delete = Ur;
|
|
319
|
+
de.prototype.get = jr;
|
|
320
320
|
de.prototype.has = Nr;
|
|
321
|
-
de.prototype.set =
|
|
322
|
-
function
|
|
321
|
+
de.prototype.set = Fr;
|
|
322
|
+
function Hr(e, t) {
|
|
323
323
|
for (var n = -1, o = e == null ? 0 : e.length, r = 0, a = []; ++n < o; ) {
|
|
324
324
|
var f = e[n];
|
|
325
325
|
t(f, n, e) && (a[r++] = f);
|
|
326
326
|
}
|
|
327
327
|
return a;
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function Kr() {
|
|
330
330
|
return [];
|
|
331
331
|
}
|
|
332
|
-
var
|
|
333
|
-
return e == null ? [] : (e = Object(e),
|
|
334
|
-
return
|
|
332
|
+
var zr = Object.prototype, qr = zr.propertyIsEnumerable, Et = Object.getOwnPropertySymbols, Wr = Et ? function(e) {
|
|
333
|
+
return e == null ? [] : (e = Object(e), Hr(Et(e), function(t) {
|
|
334
|
+
return qr.call(e, t);
|
|
335
335
|
}));
|
|
336
|
-
} :
|
|
337
|
-
function
|
|
336
|
+
} : Kr;
|
|
337
|
+
function Gr(e, t, n) {
|
|
338
338
|
var o = t(e);
|
|
339
|
-
return Be(e) ? o :
|
|
339
|
+
return Be(e) ? o : Mr(o, n(e));
|
|
340
340
|
}
|
|
341
341
|
function Ct(e) {
|
|
342
|
-
return
|
|
342
|
+
return Gr(e, cr, Wr);
|
|
343
343
|
}
|
|
344
|
-
var lt = Se(ie, "DataView"), st = Se(ie, "Promise"), dt = Se(ie, "Set"), It = "[object Map]",
|
|
344
|
+
var lt = Se(ie, "DataView"), st = Se(ie, "Promise"), dt = Se(ie, "Set"), It = "[object Map]", Jr = "[object Object]", kt = "[object Promise]", Rt = "[object Set]", Ot = "[object WeakMap]", xt = "[object DataView]", Yr = ge(lt), Qr = ge(Oe), Xr = ge(st), Zr = ge(dt), eo = ge(ot), se = Pe;
|
|
345
345
|
(lt && se(new lt(new ArrayBuffer(1))) != xt || Oe && se(new Oe()) != It || st && se(st.resolve()) != kt || dt && se(new dt()) != Rt || ot && se(new ot()) != Ot) && (se = function(e) {
|
|
346
|
-
var t =
|
|
346
|
+
var t = Pe(e), n = t == Jr ? e.constructor : void 0, o = n ? ge(n) : "";
|
|
347
347
|
if (o)
|
|
348
348
|
switch (o) {
|
|
349
|
-
case Jr:
|
|
350
|
-
return xt;
|
|
351
349
|
case Yr:
|
|
352
|
-
return
|
|
350
|
+
return xt;
|
|
353
351
|
case Qr:
|
|
354
|
-
return
|
|
352
|
+
return It;
|
|
355
353
|
case Xr:
|
|
356
|
-
return
|
|
354
|
+
return kt;
|
|
357
355
|
case Zr:
|
|
356
|
+
return Rt;
|
|
357
|
+
case eo:
|
|
358
358
|
return Ot;
|
|
359
359
|
}
|
|
360
360
|
return t;
|
|
361
361
|
});
|
|
362
|
-
var
|
|
363
|
-
function to(e) {
|
|
364
|
-
return this.__data__.set(e, eo), this;
|
|
365
|
-
}
|
|
362
|
+
var At = ie.Uint8Array, to = "__lodash_hash_undefined__";
|
|
366
363
|
function no(e) {
|
|
364
|
+
return this.__data__.set(e, to), this;
|
|
365
|
+
}
|
|
366
|
+
function io(e) {
|
|
367
367
|
return this.__data__.has(e);
|
|
368
368
|
}
|
|
369
369
|
function Fe(e) {
|
|
370
370
|
var t = -1, n = e == null ? 0 : e.length;
|
|
371
|
-
for (this.__data__ = new
|
|
371
|
+
for (this.__data__ = new _e(); ++t < n; )
|
|
372
372
|
this.add(e[t]);
|
|
373
373
|
}
|
|
374
|
-
Fe.prototype.add = Fe.prototype.push =
|
|
375
|
-
Fe.prototype.has =
|
|
376
|
-
function
|
|
374
|
+
Fe.prototype.add = Fe.prototype.push = no;
|
|
375
|
+
Fe.prototype.has = io;
|
|
376
|
+
function ro(e, t) {
|
|
377
377
|
for (var n = -1, o = e == null ? 0 : e.length; ++n < o; )
|
|
378
378
|
if (t(e[n], n, e))
|
|
379
379
|
return !0;
|
|
380
380
|
return !1;
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function oo(e, t) {
|
|
383
383
|
return e.has(t);
|
|
384
384
|
}
|
|
385
|
-
var
|
|
385
|
+
var ao = 1, lo = 2;
|
|
386
386
|
function on(e, t, n, o, r, a) {
|
|
387
|
-
var f = n &
|
|
388
|
-
if (
|
|
387
|
+
var f = n & ao, g = e.length, s = t.length;
|
|
388
|
+
if (g != s && !(f && s > g))
|
|
389
389
|
return !1;
|
|
390
|
-
var c = a.get(e),
|
|
391
|
-
if (c &&
|
|
392
|
-
return c == t &&
|
|
393
|
-
var
|
|
394
|
-
for (a.set(e, t), a.set(t, e); ++
|
|
395
|
-
var l = e[
|
|
390
|
+
var c = a.get(e), _ = a.get(t);
|
|
391
|
+
if (c && _)
|
|
392
|
+
return c == t && _ == e;
|
|
393
|
+
var h = -1, b = !0, w = n & lo ? new Fe() : void 0;
|
|
394
|
+
for (a.set(e, t), a.set(t, e); ++h < g; ) {
|
|
395
|
+
var l = e[h], S = t[h];
|
|
396
396
|
if (o)
|
|
397
|
-
var C = f ? o(S, l,
|
|
397
|
+
var C = f ? o(S, l, h, t, e, a) : o(l, S, h, e, t, a);
|
|
398
398
|
if (C !== void 0) {
|
|
399
399
|
if (C)
|
|
400
400
|
continue;
|
|
@@ -402,8 +402,8 @@ function on(e, t, n, o, r, a) {
|
|
|
402
402
|
break;
|
|
403
403
|
}
|
|
404
404
|
if (w) {
|
|
405
|
-
if (!
|
|
406
|
-
if (!
|
|
405
|
+
if (!ro(t, function(I, d) {
|
|
406
|
+
if (!oo(w, d) && (l === I || r(l, I, n, o, a)))
|
|
407
407
|
return w.push(d);
|
|
408
408
|
})) {
|
|
409
409
|
b = !1;
|
|
@@ -416,62 +416,62 @@ function on(e, t, n, o, r, a) {
|
|
|
416
416
|
}
|
|
417
417
|
return a.delete(e), a.delete(t), b;
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function so(e) {
|
|
420
420
|
var t = -1, n = Array(e.size);
|
|
421
421
|
return e.forEach(function(o, r) {
|
|
422
422
|
n[++t] = [r, o];
|
|
423
423
|
}), n;
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function uo(e) {
|
|
426
426
|
var t = -1, n = Array(e.size);
|
|
427
427
|
return e.forEach(function(o) {
|
|
428
428
|
n[++t] = o;
|
|
429
429
|
}), n;
|
|
430
430
|
}
|
|
431
|
-
var
|
|
432
|
-
function
|
|
431
|
+
var co = 1, fo = 2, po = "[object Boolean]", mo = "[object Date]", go = "[object Error]", _o = "[object Map]", bo = "[object Number]", yo = "[object RegExp]", vo = "[object Set]", ho = "[object String]", To = "[object Symbol]", wo = "[object ArrayBuffer]", So = "[object DataView]", Pt = we ? we.prototype : void 0, Ze = Pt ? Pt.valueOf : void 0;
|
|
432
|
+
function Eo(e, t, n, o, r, a, f) {
|
|
433
433
|
switch (n) {
|
|
434
|
-
case
|
|
434
|
+
case So:
|
|
435
435
|
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
|
|
436
436
|
return !1;
|
|
437
437
|
e = e.buffer, t = t.buffer;
|
|
438
|
-
case
|
|
439
|
-
return !(e.byteLength != t.byteLength || !a(new
|
|
440
|
-
case fo:
|
|
438
|
+
case wo:
|
|
439
|
+
return !(e.byteLength != t.byteLength || !a(new At(e), new At(t)));
|
|
441
440
|
case po:
|
|
442
|
-
case go:
|
|
443
|
-
return Xt(+e, +t);
|
|
444
441
|
case mo:
|
|
445
|
-
return e.name == t.name && e.message == t.message;
|
|
446
442
|
case bo:
|
|
447
|
-
|
|
443
|
+
return Xt(+e, +t);
|
|
444
|
+
case go:
|
|
445
|
+
return e.name == t.name && e.message == t.message;
|
|
446
|
+
case yo:
|
|
447
|
+
case ho:
|
|
448
448
|
return e == t + "";
|
|
449
449
|
case _o:
|
|
450
|
-
var
|
|
451
|
-
case
|
|
452
|
-
var s = o &
|
|
453
|
-
if (
|
|
450
|
+
var g = so;
|
|
451
|
+
case vo:
|
|
452
|
+
var s = o & co;
|
|
453
|
+
if (g || (g = uo), e.size != t.size && !s)
|
|
454
454
|
return !1;
|
|
455
455
|
var c = f.get(e);
|
|
456
456
|
if (c)
|
|
457
457
|
return c == t;
|
|
458
|
-
o |=
|
|
459
|
-
var
|
|
460
|
-
return f.delete(e),
|
|
461
|
-
case
|
|
458
|
+
o |= fo, f.set(e, t);
|
|
459
|
+
var _ = on(g(e), g(t), o, r, a, f);
|
|
460
|
+
return f.delete(e), _;
|
|
461
|
+
case To:
|
|
462
462
|
if (Ze)
|
|
463
463
|
return Ze.call(e) == Ze.call(t);
|
|
464
464
|
}
|
|
465
465
|
return !1;
|
|
466
466
|
}
|
|
467
|
-
var
|
|
468
|
-
function
|
|
469
|
-
var f = n &
|
|
470
|
-
if (s !=
|
|
467
|
+
var Co = 1, Io = Object.prototype, ko = Io.hasOwnProperty;
|
|
468
|
+
function Ro(e, t, n, o, r, a) {
|
|
469
|
+
var f = n & Co, g = Ct(e), s = g.length, c = Ct(t), _ = c.length;
|
|
470
|
+
if (s != _ && !f)
|
|
471
471
|
return !1;
|
|
472
|
-
for (var
|
|
473
|
-
var b =
|
|
474
|
-
if (!(f ? b in t :
|
|
472
|
+
for (var h = s; h--; ) {
|
|
473
|
+
var b = g[h];
|
|
474
|
+
if (!(f ? b in t : ko.call(t, b)))
|
|
475
475
|
return !1;
|
|
476
476
|
}
|
|
477
477
|
var w = a.get(e), l = a.get(t);
|
|
@@ -479,8 +479,8 @@ function ko(e, t, n, o, r, a) {
|
|
|
479
479
|
return w == t && l == e;
|
|
480
480
|
var S = !0;
|
|
481
481
|
a.set(e, t), a.set(t, e);
|
|
482
|
-
for (var C = f; ++
|
|
483
|
-
b =
|
|
482
|
+
for (var C = f; ++h < s; ) {
|
|
483
|
+
b = g[h];
|
|
484
484
|
var I = e[b], d = t[b];
|
|
485
485
|
if (o)
|
|
486
486
|
var k = f ? o(d, I, b, t, e, a) : o(I, d, b, e, t, a);
|
|
@@ -491,60 +491,60 @@ function ko(e, t, n, o, r, a) {
|
|
|
491
491
|
C || (C = b == "constructor");
|
|
492
492
|
}
|
|
493
493
|
if (S && !C) {
|
|
494
|
-
var
|
|
495
|
-
|
|
494
|
+
var j = e.constructor, x = t.constructor;
|
|
495
|
+
j != x && "constructor" in e && "constructor" in t && !(typeof j == "function" && j instanceof j && typeof x == "function" && x instanceof x) && (S = !1);
|
|
496
496
|
}
|
|
497
497
|
return a.delete(e), a.delete(t), S;
|
|
498
498
|
}
|
|
499
|
-
var
|
|
500
|
-
function
|
|
501
|
-
var f = Be(e),
|
|
499
|
+
var Oo = 1, Vt = "[object Arguments]", $t = "[object Array]", De = "[object Object]", xo = Object.prototype, Lt = xo.hasOwnProperty;
|
|
500
|
+
function Ao(e, t, n, o, r, a) {
|
|
501
|
+
var f = Be(e), g = Be(t), s = f ? $t : se(e), c = g ? $t : se(t);
|
|
502
502
|
s = s == Vt ? De : s, c = c == Vt ? De : c;
|
|
503
|
-
var
|
|
503
|
+
var _ = s == De, h = c == De, b = s == c;
|
|
504
504
|
if (b && at(e)) {
|
|
505
505
|
if (!at(t))
|
|
506
506
|
return !1;
|
|
507
|
-
f = !0,
|
|
507
|
+
f = !0, _ = !1;
|
|
508
508
|
}
|
|
509
|
-
if (b && !
|
|
510
|
-
return a || (a = new de()), f || rn(e) ? on(e, t, n, o, r, a) :
|
|
511
|
-
if (!(n &
|
|
512
|
-
var w =
|
|
509
|
+
if (b && !_)
|
|
510
|
+
return a || (a = new de()), f || rn(e) ? on(e, t, n, o, r, a) : Eo(e, t, s, n, o, r, a);
|
|
511
|
+
if (!(n & Oo)) {
|
|
512
|
+
var w = _ && Lt.call(e, "__wrapped__"), l = h && Lt.call(t, "__wrapped__");
|
|
513
513
|
if (w || l) {
|
|
514
514
|
var S = w ? e.value() : e, C = l ? t.value() : t;
|
|
515
515
|
return a || (a = new de()), r(S, C, n, o, a);
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
|
-
return b ? (a || (a = new de()),
|
|
518
|
+
return b ? (a || (a = new de()), Ro(e, t, n, o, r, a)) : !1;
|
|
519
519
|
}
|
|
520
520
|
function an(e, t, n, o, r) {
|
|
521
|
-
return e === t ? !0 : e == null || t == null || !ke(e) && !ke(t) ? e !== e && t !== t :
|
|
521
|
+
return e === t ? !0 : e == null || t == null || !ke(e) && !ke(t) ? e !== e && t !== t : Ao(e, t, n, o, an, r);
|
|
522
522
|
}
|
|
523
523
|
function Po(e, t) {
|
|
524
524
|
return an(e, t);
|
|
525
525
|
}
|
|
526
|
-
var
|
|
526
|
+
var N = [];
|
|
527
527
|
for (var et = 0; et < 256; ++et)
|
|
528
|
-
|
|
529
|
-
function
|
|
530
|
-
return (
|
|
528
|
+
N.push((et + 256).toString(16).slice(1));
|
|
529
|
+
function Vo(e, t = 0) {
|
|
530
|
+
return (N[e[t + 0]] + N[e[t + 1]] + N[e[t + 2]] + N[e[t + 3]] + "-" + N[e[t + 4]] + N[e[t + 5]] + "-" + N[e[t + 6]] + N[e[t + 7]] + "-" + N[e[t + 8]] + N[e[t + 9]] + "-" + N[e[t + 10]] + N[e[t + 11]] + N[e[t + 12]] + N[e[t + 13]] + N[e[t + 14]] + N[e[t + 15]]).toLowerCase();
|
|
531
531
|
}
|
|
532
|
-
var Ue,
|
|
533
|
-
function
|
|
532
|
+
var Ue, $o = new Uint8Array(16);
|
|
533
|
+
function Lo() {
|
|
534
534
|
if (!Ue && (Ue = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Ue))
|
|
535
535
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
536
|
-
return Ue(
|
|
536
|
+
return Ue($o);
|
|
537
537
|
}
|
|
538
|
-
var
|
|
538
|
+
var Mo = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
539
539
|
const Mt = {
|
|
540
|
-
randomUUID:
|
|
540
|
+
randomUUID: Mo
|
|
541
541
|
};
|
|
542
|
-
function
|
|
542
|
+
function Do(e, t, n) {
|
|
543
543
|
if (Mt.randomUUID && !t && !e)
|
|
544
544
|
return Mt.randomUUID();
|
|
545
545
|
e = e || {};
|
|
546
|
-
var o = e.random || (e.rng ||
|
|
547
|
-
return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128,
|
|
546
|
+
var o = e.random || (e.rng || Lo)();
|
|
547
|
+
return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, Vo(o);
|
|
548
548
|
}
|
|
549
549
|
const ln = {
|
|
550
550
|
ip: "127.0.0.1",
|
|
@@ -574,19 +574,19 @@ const ln = {
|
|
|
574
574
|
cluster_max_redirections: 0,
|
|
575
575
|
connection_is_proxied: !1,
|
|
576
576
|
timeout: 2e3
|
|
577
|
-
},
|
|
577
|
+
}, za = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
578
578
|
__proto__: null,
|
|
579
579
|
DEFAULT_CLUSTER_NODE: ln,
|
|
580
580
|
DEFAULT_FIELDS: dn,
|
|
581
581
|
DEFAULT_REDIS_TYPE: mt,
|
|
582
582
|
DEFAULT_SENTINEL_NODE: sn
|
|
583
|
-
}, Symbol.toStringTag, { value: "Module" })), xe = (e) => ({ ...e, id:
|
|
583
|
+
}, Symbol.toStringTag, { value: "Module" })), xe = (e) => ({ ...e, id: Do() }), ut = (e) => {
|
|
584
584
|
const { id: t, ...n } = e;
|
|
585
585
|
return n;
|
|
586
586
|
}, un = () => xe(sn), cn = () => xe(ln), We = (e) => {
|
|
587
587
|
var t, n;
|
|
588
588
|
return e.type === ne.REDIS_CE ? y.HOST_PORT_CE : (t = e.config.sentinel_nodes) != null && t.length ? y.SENTINEL : (n = e.config.cluster_nodes) != null && n.length ? y.CLUSTER : y.HOST_PORT_EE;
|
|
589
|
-
}, ct = (e) => e === y.HOST_PORT_CE ? ne.REDIS_CE : ne.REDIS_EE,
|
|
589
|
+
}, ct = (e) => e === y.HOST_PORT_CE ? ne.REDIS_CE : ne.REDIS_EE, v = {
|
|
590
590
|
int(e, t) {
|
|
591
591
|
return e == null ? t : parseInt(e.toString(), 10);
|
|
592
592
|
},
|
|
@@ -596,13 +596,13 @@ const ln = {
|
|
|
596
596
|
removeIdClusterNodes(e) {
|
|
597
597
|
return e.map((t) => ({
|
|
598
598
|
...ut(t),
|
|
599
|
-
port:
|
|
599
|
+
port: v.int(t.port)
|
|
600
600
|
}));
|
|
601
601
|
},
|
|
602
602
|
removeIdFromSentinelNodes(e) {
|
|
603
603
|
return e.map((t) => ({
|
|
604
604
|
...ut(t),
|
|
605
|
-
port:
|
|
605
|
+
port: v.int(t.port)
|
|
606
606
|
}));
|
|
607
607
|
},
|
|
608
608
|
addIdToClusterNodes(e) {
|
|
@@ -616,8 +616,14 @@ const ln = {
|
|
|
616
616
|
for (const n in t)
|
|
617
617
|
t[n] === null && delete t[n];
|
|
618
618
|
return t;
|
|
619
|
+
},
|
|
620
|
+
stringToArray(e, t = ",") {
|
|
621
|
+
return e ? e.split(t).map((n) => String(n || "").trim()).filter((n) => n !== "") : [];
|
|
622
|
+
},
|
|
623
|
+
arrayToString(e, t = ", ") {
|
|
624
|
+
return e ? e.join(t) : "";
|
|
619
625
|
}
|
|
620
|
-
},
|
|
626
|
+
}, qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
621
627
|
__proto__: null,
|
|
622
628
|
genDefaultClusterNode: cn,
|
|
623
629
|
genDefaultSentinelNode: un,
|
|
@@ -625,37 +631,38 @@ const ln = {
|
|
|
625
631
|
mapRedisTypeToPartialType: ct,
|
|
626
632
|
shallowCopyWithId: xe,
|
|
627
633
|
shallowCopyWithoutId: ut,
|
|
628
|
-
standardize:
|
|
629
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
634
|
+
standardize: v
|
|
635
|
+
}, Symbol.toStringTag, { value: "Module" })), je = "/v2/control-planes/{controlPlaneId}/core-entities", Ne = "/{workspace}", Ae = {
|
|
630
636
|
list: {
|
|
631
|
-
konnect: `${
|
|
632
|
-
kongManager: `${
|
|
637
|
+
konnect: `${je}/partials`,
|
|
638
|
+
kongManager: `${Ne}/partials`
|
|
633
639
|
},
|
|
634
640
|
form: {
|
|
635
641
|
konnect: {
|
|
636
|
-
create: `${Ne}/partials`,
|
|
637
|
-
edit: `${Ne}/partials/{id}`
|
|
638
|
-
},
|
|
639
|
-
kongManager: {
|
|
640
642
|
create: `${je}/partials`,
|
|
641
643
|
edit: `${je}/partials/{id}`
|
|
644
|
+
},
|
|
645
|
+
kongManager: {
|
|
646
|
+
create: `${Ne}/partials`,
|
|
647
|
+
edit: `${Ne}/partials/{id}`
|
|
642
648
|
}
|
|
643
649
|
},
|
|
644
650
|
links: {
|
|
645
|
-
konnect: `${
|
|
646
|
-
kongManager: `${
|
|
651
|
+
konnect: `${je}/partials/{id}/links`,
|
|
652
|
+
kongManager: `${Ne}/partials/{id}/links`
|
|
647
653
|
}
|
|
648
|
-
},
|
|
649
|
-
const { partialId: t, config: n, defaultRedisType: o = mt } = e, r = !!t, { axiosInstance: a } = pt(n.axiosRequestConfig), { getMessageFromError: f } = kn(),
|
|
654
|
+
}, Uo = (e) => {
|
|
655
|
+
const { partialId: t, config: n, defaultRedisType: o = mt } = e, r = !!t, { axiosInstance: a } = pt(n.axiosRequestConfig), { getMessageFromError: f } = kn(), g = H(() => t ? Ye.Edit : Ye.Create), s = jt({
|
|
650
656
|
fields: {
|
|
651
657
|
name: "",
|
|
658
|
+
tags: "",
|
|
652
659
|
type: ct(o),
|
|
653
660
|
config: JSON.parse(JSON.stringify(dn))
|
|
654
661
|
},
|
|
655
662
|
readonly: !1,
|
|
656
663
|
errorMessage: ""
|
|
657
|
-
}), c =
|
|
658
|
-
Ie(
|
|
664
|
+
}), c = M(), _ = M(o), h = H(() => _.value === y.HOST_PORT_EE || _.value === y.CLUSTER || _.value === y.SENTINEL);
|
|
665
|
+
Ie(_, (d) => {
|
|
659
666
|
s.fields.type = ct(d);
|
|
660
667
|
});
|
|
661
668
|
const b = H(() => {
|
|
@@ -663,54 +670,56 @@ const ln = {
|
|
|
663
670
|
if (r && Po(c.value, w.value) || !s.fields.name.length)
|
|
664
671
|
return !1;
|
|
665
672
|
const { config: d } = s.fields;
|
|
666
|
-
switch (
|
|
673
|
+
switch (_.value) {
|
|
667
674
|
case y.HOST_PORT_CE:
|
|
668
675
|
case y.HOST_PORT_EE:
|
|
669
676
|
return !!d.host && d.host.length > 0 && !!d.port && d.port > 0;
|
|
670
677
|
case y.CLUSTER:
|
|
671
|
-
return !!d.cluster_nodes.length && d.cluster_nodes.every((
|
|
678
|
+
return !!d.cluster_nodes.length && d.cluster_nodes.every((j) => j.ip.length > 0);
|
|
672
679
|
case y.SENTINEL:
|
|
673
|
-
return !!d.sentinel_nodes.length && d.sentinel_nodes.every((
|
|
680
|
+
return !!d.sentinel_nodes.length && d.sentinel_nodes.every((j) => j.host.length > 0) && !!((k = d.sentinel_master) != null && k.length) && d.sentinel_role && !!d.sentinel_role.length;
|
|
674
681
|
default:
|
|
675
682
|
throw new Error("Invalid redis type");
|
|
676
683
|
}
|
|
677
684
|
}), w = H(() => {
|
|
678
|
-
switch (
|
|
685
|
+
switch (_.value) {
|
|
679
686
|
case y.HOST_PORT_CE:
|
|
680
687
|
return {
|
|
681
688
|
name: s.fields.name,
|
|
682
689
|
type: s.fields.type,
|
|
690
|
+
tags: v.stringToArray(s.fields.tags),
|
|
683
691
|
config: {
|
|
684
692
|
host: s.fields.config.host,
|
|
685
|
-
port:
|
|
686
|
-
timeout:
|
|
687
|
-
username:
|
|
688
|
-
database:
|
|
689
|
-
password:
|
|
693
|
+
port: v.int(s.fields.config.port),
|
|
694
|
+
timeout: v.int(s.fields.config.timeout),
|
|
695
|
+
username: v.str(s.fields.config.username, null),
|
|
696
|
+
database: v.int(s.fields.config.database),
|
|
697
|
+
password: v.str(s.fields.config.password, null),
|
|
690
698
|
ssl: s.fields.config.ssl,
|
|
691
699
|
ssl_verify: s.fields.config.ssl_verify,
|
|
692
|
-
server_name:
|
|
700
|
+
server_name: v.str(s.fields.config.server_name, null)
|
|
693
701
|
}
|
|
694
702
|
};
|
|
695
703
|
case y.HOST_PORT_EE:
|
|
696
704
|
return {
|
|
697
705
|
name: s.fields.name,
|
|
698
706
|
type: s.fields.type,
|
|
707
|
+
tags: v.stringToArray(s.fields.tags),
|
|
699
708
|
config: {
|
|
700
|
-
connect_timeout:
|
|
709
|
+
connect_timeout: v.int(s.fields.config.connect_timeout),
|
|
701
710
|
connection_is_proxied: s.fields.config.connection_is_proxied,
|
|
702
|
-
database:
|
|
711
|
+
database: v.int(s.fields.config.database),
|
|
703
712
|
host: s.fields.config.host,
|
|
704
|
-
keepalive_backlog:
|
|
705
|
-
keepalive_pool_size:
|
|
706
|
-
password:
|
|
707
|
-
port:
|
|
708
|
-
read_timeout:
|
|
709
|
-
send_timeout:
|
|
710
|
-
server_name:
|
|
713
|
+
keepalive_backlog: v.int(s.fields.config.keepalive_backlog),
|
|
714
|
+
keepalive_pool_size: v.int(s.fields.config.keepalive_pool_size),
|
|
715
|
+
password: v.str(s.fields.config.password, null),
|
|
716
|
+
port: v.int(s.fields.config.port),
|
|
717
|
+
read_timeout: v.int(s.fields.config.read_timeout),
|
|
718
|
+
send_timeout: v.int(s.fields.config.send_timeout),
|
|
719
|
+
server_name: v.str(s.fields.config.server_name, null),
|
|
711
720
|
ssl_verify: s.fields.config.ssl_verify,
|
|
712
721
|
ssl: s.fields.config.ssl,
|
|
713
|
-
username:
|
|
722
|
+
username: v.str(s.fields.config.username, null),
|
|
714
723
|
// reset other EE fields
|
|
715
724
|
cluster_nodes: null,
|
|
716
725
|
cluster_max_redirections: null,
|
|
@@ -725,20 +734,21 @@ const ln = {
|
|
|
725
734
|
return {
|
|
726
735
|
name: s.fields.name,
|
|
727
736
|
type: s.fields.type,
|
|
737
|
+
tags: v.stringToArray(s.fields.tags),
|
|
728
738
|
config: {
|
|
729
|
-
cluster_nodes:
|
|
730
|
-
cluster_max_redirections:
|
|
731
|
-
username:
|
|
732
|
-
password:
|
|
739
|
+
cluster_nodes: v.removeIdClusterNodes(s.fields.config.cluster_nodes),
|
|
740
|
+
cluster_max_redirections: v.int(s.fields.config.cluster_max_redirections),
|
|
741
|
+
username: v.str(s.fields.config.username, null),
|
|
742
|
+
password: v.str(s.fields.config.password, null),
|
|
733
743
|
ssl: s.fields.config.ssl,
|
|
734
744
|
ssl_verify: s.fields.config.ssl_verify,
|
|
735
|
-
server_name:
|
|
736
|
-
connect_timeout:
|
|
737
|
-
database:
|
|
738
|
-
send_timeout:
|
|
739
|
-
read_timeout:
|
|
740
|
-
keepalive_pool_size:
|
|
741
|
-
keepalive_backlog:
|
|
745
|
+
server_name: v.str(s.fields.config.server_name, null),
|
|
746
|
+
connect_timeout: v.int(s.fields.config.connect_timeout),
|
|
747
|
+
database: v.int(s.fields.config.database),
|
|
748
|
+
send_timeout: v.int(s.fields.config.send_timeout),
|
|
749
|
+
read_timeout: v.int(s.fields.config.read_timeout),
|
|
750
|
+
keepalive_pool_size: v.int(s.fields.config.keepalive_pool_size),
|
|
751
|
+
keepalive_backlog: v.int(s.fields.config.keepalive_backlog),
|
|
742
752
|
// reset other EE fields
|
|
743
753
|
connection_is_proxied: null,
|
|
744
754
|
sentinel_master: null,
|
|
@@ -754,23 +764,24 @@ const ln = {
|
|
|
754
764
|
return {
|
|
755
765
|
name: s.fields.name,
|
|
756
766
|
type: s.fields.type,
|
|
767
|
+
tags: v.stringToArray(s.fields.tags),
|
|
757
768
|
config: {
|
|
758
|
-
sentinel_master:
|
|
759
|
-
sentinel_nodes:
|
|
760
|
-
sentinel_role:
|
|
761
|
-
sentinel_username:
|
|
762
|
-
sentinel_password:
|
|
763
|
-
username:
|
|
764
|
-
password:
|
|
769
|
+
sentinel_master: v.str(s.fields.config.sentinel_master, null),
|
|
770
|
+
sentinel_nodes: v.removeIdFromSentinelNodes(s.fields.config.sentinel_nodes),
|
|
771
|
+
sentinel_role: v.str(s.fields.config.sentinel_role, null),
|
|
772
|
+
sentinel_username: v.str(s.fields.config.sentinel_username, null),
|
|
773
|
+
sentinel_password: v.str(s.fields.config.sentinel_password, null),
|
|
774
|
+
username: v.str(s.fields.config.username, null),
|
|
775
|
+
password: v.str(s.fields.config.password, null),
|
|
765
776
|
ssl: s.fields.config.ssl,
|
|
766
777
|
ssl_verify: s.fields.config.ssl_verify,
|
|
767
|
-
server_name:
|
|
768
|
-
database:
|
|
769
|
-
connect_timeout:
|
|
770
|
-
send_timeout:
|
|
771
|
-
read_timeout:
|
|
772
|
-
keepalive_pool_size:
|
|
773
|
-
keepalive_backlog:
|
|
778
|
+
server_name: v.str(s.fields.config.server_name, null),
|
|
779
|
+
database: v.int(s.fields.config.database),
|
|
780
|
+
connect_timeout: v.int(s.fields.config.connect_timeout),
|
|
781
|
+
send_timeout: v.int(s.fields.config.send_timeout),
|
|
782
|
+
read_timeout: v.int(s.fields.config.read_timeout),
|
|
783
|
+
keepalive_pool_size: v.int(s.fields.config.keepalive_pool_size),
|
|
784
|
+
keepalive_backlog: v.int(s.fields.config.keepalive_backlog),
|
|
774
785
|
// reset other EE fields
|
|
775
786
|
connection_is_proxied: null,
|
|
776
787
|
cluster_nodes: null,
|
|
@@ -783,24 +794,24 @@ const ln = {
|
|
|
783
794
|
throw new Error("Invalid redis type");
|
|
784
795
|
}
|
|
785
796
|
}), l = H(() => {
|
|
786
|
-
let d = `${n.apiBaseUrl}${
|
|
797
|
+
let d = `${n.apiBaseUrl}${Ae.form[n.app][g.value]}`;
|
|
787
798
|
return n.app === "konnect" ? d = d.replace(/{controlPlaneId}/gi, (n == null ? void 0 : n.controlPlaneId) || "") : n.app === "kongManager" && (d = d.replace(/\/{workspace}/gi, n != null && n.workspace ? `/${n.workspace}` : "")), d = d.replace(/{id}/gi, t || ""), d;
|
|
788
799
|
}), S = H(() => {
|
|
789
800
|
var d;
|
|
790
|
-
return (d =
|
|
801
|
+
return (d = Ae.form[n == null ? void 0 : n.app]) == null ? void 0 : d.edit;
|
|
791
802
|
});
|
|
792
803
|
return {
|
|
793
804
|
form: s,
|
|
794
805
|
canSubmit: b,
|
|
795
806
|
payload: w,
|
|
796
807
|
isEdit: r,
|
|
797
|
-
redisType:
|
|
798
|
-
redisTypeIsEnterprise:
|
|
799
|
-
formType:
|
|
808
|
+
redisType: _,
|
|
809
|
+
redisTypeIsEnterprise: h,
|
|
810
|
+
formType: g,
|
|
800
811
|
fetchUrl: S,
|
|
801
812
|
submit: async () => {
|
|
802
813
|
try {
|
|
803
|
-
return s.readonly = !0, s.errorMessage = "",
|
|
814
|
+
return s.readonly = !0, s.errorMessage = "", g.value === Ye.Create ? await a.post(l.value, w.value) : await a.patch(l.value, w.value);
|
|
804
815
|
} catch (d) {
|
|
805
816
|
throw s.errorMessage = f(d), s.readonly = !1, d;
|
|
806
817
|
}
|
|
@@ -809,12 +820,12 @@ const ln = {
|
|
|
809
820
|
s.fields.config = Object.assign(
|
|
810
821
|
{},
|
|
811
822
|
s.fields.config,
|
|
812
|
-
|
|
823
|
+
v.removeNullValues(d.config)
|
|
813
824
|
// remove null values if data, so they can be replaced with default values
|
|
814
|
-
), s.fields.config.sentinel_nodes =
|
|
825
|
+
), s.fields.config.sentinel_nodes = v.addIdToSentinelNodes(d.config.sentinel_nodes ?? []), s.fields.config.cluster_nodes = v.addIdToClusterNodes(d.config.cluster_nodes ?? []), s.fields.name = d.name, s.fields.type = d.type, s.fields.tags = v.arrayToString(d.tags), _.value = We(d), c.value = JSON.parse(JSON.stringify(w.value));
|
|
815
826
|
}
|
|
816
827
|
};
|
|
817
|
-
},
|
|
828
|
+
}, jo = { class: "array-card-container" }, No = /* @__PURE__ */ Y({
|
|
818
829
|
__name: "FieldArrayCardContainer",
|
|
819
830
|
props: {
|
|
820
831
|
model: {
|
|
@@ -838,9 +849,9 @@ const ln = {
|
|
|
838
849
|
setup(e) {
|
|
839
850
|
return (t, n) => {
|
|
840
851
|
const o = D("KCard"), r = D("KButton");
|
|
841
|
-
return R(), q("div",
|
|
852
|
+
return R(), q("div", jo, [
|
|
842
853
|
p(o, { class: "card" }, {
|
|
843
|
-
default:
|
|
854
|
+
default: T(() => [
|
|
844
855
|
yn(t.$slots, "default", {}, void 0, !0)
|
|
845
856
|
]),
|
|
846
857
|
_: 3
|
|
@@ -851,8 +862,8 @@ const ln = {
|
|
|
851
862
|
disabled: e.disabled,
|
|
852
863
|
onClick: n[0] || (n[0] = (a) => t.$emit("remove-item"))
|
|
853
864
|
}, {
|
|
854
|
-
default:
|
|
855
|
-
p(i(
|
|
865
|
+
default: T(() => [
|
|
866
|
+
p(i(jn))
|
|
856
867
|
]),
|
|
857
868
|
_: 1
|
|
858
869
|
}, 8, ["disabled"])
|
|
@@ -864,7 +875,7 @@ const ln = {
|
|
|
864
875
|
for (const [o, r] of t)
|
|
865
876
|
n[o] = r;
|
|
866
877
|
return n;
|
|
867
|
-
}, fn = /* @__PURE__ */ oe(No, [["__scopeId", "data-v-a2c96337"]]),
|
|
878
|
+
}, fn = /* @__PURE__ */ oe(No, [["__scopeId", "data-v-a2c96337"]]), Bo = {
|
|
868
879
|
create: "New Redis Configuration",
|
|
869
880
|
copy_id: "Copy ID",
|
|
870
881
|
copy_json: "Copy JSON",
|
|
@@ -875,16 +886,16 @@ const ln = {
|
|
|
875
886
|
loading: "Loading...",
|
|
876
887
|
view_plugin: "View Plugin",
|
|
877
888
|
close: "Close"
|
|
878
|
-
},
|
|
889
|
+
}, Fo = {
|
|
879
890
|
placeholder: "Filter by name",
|
|
880
891
|
no_results: "No results found"
|
|
881
|
-
},
|
|
892
|
+
}, Ho = {
|
|
882
893
|
copy: "Failed to copy to clipboard",
|
|
883
894
|
general: "Redis configuration could not be retrieved",
|
|
884
895
|
delete: "The redis configuration could not be deleted at this time."
|
|
885
|
-
}, Ho = {
|
|
886
|
-
success: "Copied {val} to clipboard"
|
|
887
896
|
}, Ko = {
|
|
897
|
+
success: "Copied {val} to clipboard"
|
|
898
|
+
}, zo = {
|
|
888
899
|
sections: {
|
|
889
900
|
type: {
|
|
890
901
|
title: "Redis type",
|
|
@@ -927,6 +938,12 @@ const ln = {
|
|
|
927
938
|
label: "Name",
|
|
928
939
|
placeholder: "Enter unique name"
|
|
929
940
|
},
|
|
941
|
+
tags: {
|
|
942
|
+
label: "Tags",
|
|
943
|
+
placeholder: "Enter a list of tags separated by comma",
|
|
944
|
+
help: "e.g. tag1, tag2, tag3",
|
|
945
|
+
tooltip: "An optional set of strings associated with the Route for grouping and filtering."
|
|
946
|
+
},
|
|
930
947
|
host: {
|
|
931
948
|
label: "Host",
|
|
932
949
|
tooltip: "A string representing a host name, such as example.com."
|
|
@@ -1058,24 +1075,25 @@ const ln = {
|
|
|
1058
1075
|
plugin_count: "{count} plugin(s)",
|
|
1059
1076
|
confirm: "Confirm"
|
|
1060
1077
|
}
|
|
1061
|
-
},
|
|
1078
|
+
}, qo = {
|
|
1062
1079
|
title: "Associated plugins ({count})",
|
|
1063
1080
|
headers: {
|
|
1064
1081
|
plugin: "Plugin",
|
|
1065
1082
|
instance_name: "Name"
|
|
1066
1083
|
}
|
|
1067
|
-
},
|
|
1084
|
+
}, Wo = {
|
|
1068
1085
|
title: "Redis Configurations",
|
|
1069
1086
|
empty_state: {
|
|
1070
1087
|
title: "Configure a Redis Configuration",
|
|
1071
1088
|
description: "Set up shared Redis configurations for your gateway plugins to store and retrieve data — like counters or other data — needed during request processing."
|
|
1072
1089
|
}
|
|
1073
|
-
},
|
|
1090
|
+
}, Go = {
|
|
1074
1091
|
action: "New configuration",
|
|
1075
1092
|
table_headers: {
|
|
1076
1093
|
name: "Name",
|
|
1077
1094
|
type: "Type",
|
|
1078
|
-
plugins: "Plugins"
|
|
1095
|
+
plugins: "Plugins",
|
|
1096
|
+
tags: "Tags"
|
|
1079
1097
|
},
|
|
1080
1098
|
empty_state: {
|
|
1081
1099
|
description: "Set up shared Redis configurations for your gateway plugins to store and retrieve data — like counters or other data — needed during request processing.",
|
|
@@ -1088,34 +1106,34 @@ const ln = {
|
|
|
1088
1106
|
description: "Edits to your configuration will be cascaded automatically to all associated plugins."
|
|
1089
1107
|
}
|
|
1090
1108
|
}
|
|
1091
|
-
},
|
|
1092
|
-
actions:
|
|
1093
|
-
search:
|
|
1109
|
+
}, Jo = {
|
|
1110
|
+
actions: Bo,
|
|
1111
|
+
search: Fo,
|
|
1094
1112
|
delete: {
|
|
1095
1113
|
title: "Delete Redis configuration",
|
|
1096
1114
|
description: "You’re about to delete this item. Are you sure you want to proceed?",
|
|
1097
1115
|
warning: "To delete this configuration, first remove it from all associated plugins."
|
|
1098
1116
|
},
|
|
1099
|
-
errors:
|
|
1100
|
-
copy:
|
|
1101
|
-
form:
|
|
1102
|
-
linked_plugins_modal:
|
|
1103
|
-
redis:
|
|
1104
|
-
list:
|
|
1117
|
+
errors: Ho,
|
|
1118
|
+
copy: Ko,
|
|
1119
|
+
form: zo,
|
|
1120
|
+
linked_plugins_modal: qo,
|
|
1121
|
+
redis: Wo,
|
|
1122
|
+
list: Go
|
|
1105
1123
|
};
|
|
1106
|
-
function
|
|
1107
|
-
const e =
|
|
1124
|
+
function Yo() {
|
|
1125
|
+
const e = Fn("en-us", Jo);
|
|
1108
1126
|
return {
|
|
1109
1127
|
i18n: e,
|
|
1110
|
-
i18nT:
|
|
1128
|
+
i18nT: Hn(e)
|
|
1111
1129
|
// Translation component <i18n-t>
|
|
1112
1130
|
};
|
|
1113
1131
|
}
|
|
1114
1132
|
const ue = {
|
|
1115
|
-
useI18n:
|
|
1116
|
-
},
|
|
1133
|
+
useI18n: Yo
|
|
1134
|
+
}, Qo = { class: "cluster-node-items" }, Xo = /* @__PURE__ */ Y({
|
|
1117
1135
|
__name: "ClusterNodes",
|
|
1118
|
-
props: /* @__PURE__ */
|
|
1136
|
+
props: /* @__PURE__ */ Nt({
|
|
1119
1137
|
readonly: { type: Boolean }
|
|
1120
1138
|
}, {
|
|
1121
1139
|
modelValue: { required: !0 },
|
|
@@ -1129,30 +1147,30 @@ const ue = {
|
|
|
1129
1147
|
t.value.splice(a, 1);
|
|
1130
1148
|
};
|
|
1131
1149
|
return (a, f) => {
|
|
1132
|
-
const
|
|
1150
|
+
const g = D("KLabel"), s = D("KInput"), c = D("KButton");
|
|
1133
1151
|
return R(), q("div", null, [
|
|
1134
|
-
p(
|
|
1152
|
+
p(g, {
|
|
1135
1153
|
class: "required",
|
|
1136
1154
|
info: i(n)("form.fields.cluster_nodes.tooltip"),
|
|
1137
1155
|
"tooltip-attributes": { maxWidth: "400" }
|
|
1138
1156
|
}, {
|
|
1139
|
-
default:
|
|
1157
|
+
default: T(() => [
|
|
1140
1158
|
Z(B(i(n)("form.fields.cluster_nodes.title")), 1)
|
|
1141
1159
|
]),
|
|
1142
1160
|
_: 1
|
|
1143
1161
|
}, 8, ["info"]),
|
|
1144
1162
|
K("div", null, [
|
|
1145
|
-
(R(!0), q(Ke, null, ft(t.value, (
|
|
1146
|
-
key: `${
|
|
1163
|
+
(R(!0), q(Ke, null, ft(t.value, (_, h) => (R(), F(fn, {
|
|
1164
|
+
key: `${h}`,
|
|
1147
1165
|
"data-testid": "redis-cluster-nodes",
|
|
1148
1166
|
disabled: a.readonly,
|
|
1149
|
-
onRemoveItem: (b) => r(
|
|
1167
|
+
onRemoveItem: (b) => r(h)
|
|
1150
1168
|
}, {
|
|
1151
|
-
default:
|
|
1152
|
-
K("div",
|
|
1169
|
+
default: T(() => [
|
|
1170
|
+
K("div", Qo, [
|
|
1153
1171
|
p(s, {
|
|
1154
|
-
modelValue:
|
|
1155
|
-
"onUpdate:modelValue": (b) =>
|
|
1172
|
+
modelValue: _.ip,
|
|
1173
|
+
"onUpdate:modelValue": (b) => _.ip = b,
|
|
1156
1174
|
modelModifiers: { trim: !0 },
|
|
1157
1175
|
label: i(n)("form.fields.cluster_node_ip.label"),
|
|
1158
1176
|
"label-attributes": {
|
|
@@ -1164,8 +1182,8 @@ const ue = {
|
|
|
1164
1182
|
required: ""
|
|
1165
1183
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "label-attributes", "readonly"]),
|
|
1166
1184
|
p(s, {
|
|
1167
|
-
modelValue:
|
|
1168
|
-
"onUpdate:modelValue": (b) =>
|
|
1185
|
+
modelValue: _.port,
|
|
1186
|
+
"onUpdate:modelValue": (b) => _.port = b,
|
|
1169
1187
|
label: i(n)("form.fields.cluster_node_port.label"),
|
|
1170
1188
|
"label-attributes": {
|
|
1171
1189
|
info: i(n)("form.fields.cluster_node_port.tooltip"),
|
|
@@ -1185,7 +1203,7 @@ const ue = {
|
|
|
1185
1203
|
disabled: a.readonly,
|
|
1186
1204
|
onClick: o
|
|
1187
1205
|
}, {
|
|
1188
|
-
default:
|
|
1206
|
+
default: T(() => [
|
|
1189
1207
|
p(i(qt)),
|
|
1190
1208
|
K("span", null, B(i(n)("form.fields.cluster_nodes.add_button")), 1)
|
|
1191
1209
|
]),
|
|
@@ -1195,9 +1213,9 @@ const ue = {
|
|
|
1195
1213
|
]);
|
|
1196
1214
|
};
|
|
1197
1215
|
}
|
|
1198
|
-
}),
|
|
1216
|
+
}), Zo = /* @__PURE__ */ oe(Xo, [["__scopeId", "data-v-7c2d61b0"]]), ea = { class: "sentinel-node-items" }, ta = /* @__PURE__ */ Y({
|
|
1199
1217
|
__name: "SentinelNodes",
|
|
1200
|
-
props: /* @__PURE__ */
|
|
1218
|
+
props: /* @__PURE__ */ Nt({
|
|
1201
1219
|
readonly: { type: Boolean }
|
|
1202
1220
|
}, {
|
|
1203
1221
|
modelValue: { required: !0 },
|
|
@@ -1211,30 +1229,30 @@ const ue = {
|
|
|
1211
1229
|
t.value.splice(a, 1);
|
|
1212
1230
|
};
|
|
1213
1231
|
return (a, f) => {
|
|
1214
|
-
const
|
|
1232
|
+
const g = D("KLabel"), s = D("KInput"), c = D("KButton");
|
|
1215
1233
|
return R(), q("div", null, [
|
|
1216
|
-
p(
|
|
1234
|
+
p(g, {
|
|
1217
1235
|
class: "required",
|
|
1218
1236
|
info: i(n)("form.fields.sentinel_nodes.tooltip"),
|
|
1219
1237
|
"tooltip-attributes": { maxWidth: "400" }
|
|
1220
1238
|
}, {
|
|
1221
|
-
default:
|
|
1239
|
+
default: T(() => [
|
|
1222
1240
|
Z(B(i(n)("form.fields.sentinel_nodes.title")), 1)
|
|
1223
1241
|
]),
|
|
1224
1242
|
_: 1
|
|
1225
1243
|
}, 8, ["info"]),
|
|
1226
1244
|
K("div", null, [
|
|
1227
|
-
(R(!0), q(Ke, null, ft(t.value, (
|
|
1228
|
-
key:
|
|
1245
|
+
(R(!0), q(Ke, null, ft(t.value, (_, h) => (R(), F(fn, {
|
|
1246
|
+
key: _.id,
|
|
1229
1247
|
"data-testid": "redis-sentinel-nodes",
|
|
1230
1248
|
disabled: a.readonly,
|
|
1231
|
-
onRemoveItem: (b) => r(
|
|
1249
|
+
onRemoveItem: (b) => r(h)
|
|
1232
1250
|
}, {
|
|
1233
|
-
default:
|
|
1234
|
-
K("div",
|
|
1251
|
+
default: T(() => [
|
|
1252
|
+
K("div", ea, [
|
|
1235
1253
|
p(s, {
|
|
1236
|
-
modelValue:
|
|
1237
|
-
"onUpdate:modelValue": (b) =>
|
|
1254
|
+
modelValue: _.host,
|
|
1255
|
+
"onUpdate:modelValue": (b) => _.host = b,
|
|
1238
1256
|
modelModifiers: { trim: !0 },
|
|
1239
1257
|
label: i(n)("form.fields.sentinel_node_host.label"),
|
|
1240
1258
|
"label-attributes": {
|
|
@@ -1246,8 +1264,8 @@ const ue = {
|
|
|
1246
1264
|
required: ""
|
|
1247
1265
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "label-attributes", "readonly"]),
|
|
1248
1266
|
p(s, {
|
|
1249
|
-
modelValue:
|
|
1250
|
-
"onUpdate:modelValue": (b) =>
|
|
1267
|
+
modelValue: _.port,
|
|
1268
|
+
"onUpdate:modelValue": (b) => _.port = b,
|
|
1251
1269
|
label: i(n)("form.fields.sentinel_node_port.label"),
|
|
1252
1270
|
"label-attributes": {
|
|
1253
1271
|
info: i(n)("form.fields.sentinel_node_port.tooltip"),
|
|
@@ -1267,7 +1285,7 @@ const ue = {
|
|
|
1267
1285
|
disabled: a.readonly,
|
|
1268
1286
|
onClick: o
|
|
1269
1287
|
}, {
|
|
1270
|
-
default:
|
|
1288
|
+
default: T(() => [
|
|
1271
1289
|
p(i(qt)),
|
|
1272
1290
|
K("span", null, B(i(n)("form.fields.sentinel_nodes.add_button")), 1)
|
|
1273
1291
|
]),
|
|
@@ -1277,9 +1295,9 @@ const ue = {
|
|
|
1277
1295
|
]);
|
|
1278
1296
|
};
|
|
1279
1297
|
}
|
|
1280
|
-
}),
|
|
1298
|
+
}), na = /* @__PURE__ */ oe(ta, [["__scopeId", "data-v-c7c67147"]]);
|
|
1281
1299
|
var tt = /* @__PURE__ */ new WeakMap(), Dt = 0;
|
|
1282
|
-
function
|
|
1300
|
+
function ia(e) {
|
|
1283
1301
|
if (!e.length)
|
|
1284
1302
|
return "";
|
|
1285
1303
|
for (var t = "arg", n = 0; n < e.length; ++n) {
|
|
@@ -1288,33 +1306,33 @@ function na(e) {
|
|
|
1288
1306
|
}
|
|
1289
1307
|
return t;
|
|
1290
1308
|
}
|
|
1291
|
-
function
|
|
1309
|
+
function ra(e) {
|
|
1292
1310
|
if (typeof e == "function")
|
|
1293
1311
|
try {
|
|
1294
1312
|
e = e();
|
|
1295
1313
|
} catch {
|
|
1296
1314
|
e = "";
|
|
1297
1315
|
}
|
|
1298
|
-
return Array.isArray(e) ? e =
|
|
1316
|
+
return Array.isArray(e) ? e = ia(e) : e = String(e || ""), e;
|
|
1299
1317
|
}
|
|
1300
|
-
var
|
|
1318
|
+
var gt = (
|
|
1301
1319
|
/** @class */
|
|
1302
1320
|
function() {
|
|
1303
1321
|
function e(t) {
|
|
1304
1322
|
t === void 0 && (t = 0), this.items = /* @__PURE__ */ new Map(), this.ttl = t;
|
|
1305
1323
|
}
|
|
1306
1324
|
return e.prototype.serializeKey = function(t) {
|
|
1307
|
-
return
|
|
1325
|
+
return ra(t);
|
|
1308
1326
|
}, e.prototype.get = function(t) {
|
|
1309
1327
|
var n = this.serializeKey(t);
|
|
1310
1328
|
return this.items.get(n);
|
|
1311
1329
|
}, e.prototype.set = function(t, n, o) {
|
|
1312
|
-
var r = this.serializeKey(t), a = o || this.ttl, f = Date.now(),
|
|
1330
|
+
var r = this.serializeKey(t), a = o || this.ttl, f = Date.now(), g = {
|
|
1313
1331
|
data: n,
|
|
1314
1332
|
createdAt: f,
|
|
1315
1333
|
expiresAt: a ? f + a : 1 / 0
|
|
1316
1334
|
};
|
|
1317
|
-
this.dispatchExpire(a,
|
|
1335
|
+
this.dispatchExpire(a, g, r), this.items.set(r, g);
|
|
1318
1336
|
}, e.prototype.dispatchExpire = function(t, n, o) {
|
|
1319
1337
|
var r = this;
|
|
1320
1338
|
t && setTimeout(function() {
|
|
@@ -1326,21 +1344,21 @@ var _t = (
|
|
|
1326
1344
|
}, e;
|
|
1327
1345
|
}()
|
|
1328
1346
|
);
|
|
1329
|
-
function
|
|
1347
|
+
function oa() {
|
|
1330
1348
|
return typeof navigator.onLine < "u" ? navigator.onLine : !0;
|
|
1331
1349
|
}
|
|
1332
|
-
function
|
|
1350
|
+
function aa() {
|
|
1333
1351
|
return typeof document < "u" && typeof document.visibilityState < "u" ? document.visibilityState !== "hidden" : !0;
|
|
1334
1352
|
}
|
|
1335
|
-
var
|
|
1353
|
+
var la = function(e) {
|
|
1336
1354
|
return fetch(e).then(function(t) {
|
|
1337
1355
|
return t.json();
|
|
1338
1356
|
});
|
|
1339
1357
|
};
|
|
1340
1358
|
const nt = {
|
|
1341
|
-
isOnline:
|
|
1342
|
-
isDocumentVisible:
|
|
1343
|
-
fetcher:
|
|
1359
|
+
isOnline: oa,
|
|
1360
|
+
isDocumentVisible: aa,
|
|
1361
|
+
fetcher: la
|
|
1344
1362
|
};
|
|
1345
1363
|
var te = function() {
|
|
1346
1364
|
return te = Object.assign || function(e) {
|
|
@@ -1357,22 +1375,22 @@ var te = function() {
|
|
|
1357
1375
|
});
|
|
1358
1376
|
}
|
|
1359
1377
|
return new (n || (n = Promise))(function(a, f) {
|
|
1360
|
-
function _
|
|
1378
|
+
function g(_) {
|
|
1361
1379
|
try {
|
|
1362
|
-
c(o.next(
|
|
1363
|
-
} catch (
|
|
1364
|
-
f(
|
|
1380
|
+
c(o.next(_));
|
|
1381
|
+
} catch (h) {
|
|
1382
|
+
f(h);
|
|
1365
1383
|
}
|
|
1366
1384
|
}
|
|
1367
|
-
function s(
|
|
1385
|
+
function s(_) {
|
|
1368
1386
|
try {
|
|
1369
|
-
c(o.throw(
|
|
1370
|
-
} catch (
|
|
1371
|
-
f(
|
|
1387
|
+
c(o.throw(_));
|
|
1388
|
+
} catch (h) {
|
|
1389
|
+
f(h);
|
|
1372
1390
|
}
|
|
1373
1391
|
}
|
|
1374
|
-
function c(
|
|
1375
|
-
|
|
1392
|
+
function c(_) {
|
|
1393
|
+
_.done ? a(_.value) : r(_.value).then(g, s);
|
|
1376
1394
|
}
|
|
1377
1395
|
c((o = o.apply(e, t || [])).next());
|
|
1378
1396
|
});
|
|
@@ -1381,12 +1399,12 @@ var te = function() {
|
|
|
1381
1399
|
if (a[0] & 1) throw a[1];
|
|
1382
1400
|
return a[1];
|
|
1383
1401
|
}, trys: [], ops: [] }, o, r, a, f;
|
|
1384
|
-
return f = { next:
|
|
1402
|
+
return f = { next: g(0), throw: g(1), return: g(2) }, typeof Symbol == "function" && (f[Symbol.iterator] = function() {
|
|
1385
1403
|
return this;
|
|
1386
1404
|
}), f;
|
|
1387
|
-
function
|
|
1388
|
-
return function(
|
|
1389
|
-
return s([c,
|
|
1405
|
+
function g(c) {
|
|
1406
|
+
return function(_) {
|
|
1407
|
+
return s([c, _]);
|
|
1390
1408
|
};
|
|
1391
1409
|
}
|
|
1392
1410
|
function s(c) {
|
|
@@ -1427,22 +1445,22 @@ var te = function() {
|
|
|
1427
1445
|
continue;
|
|
1428
1446
|
}
|
|
1429
1447
|
c = t.call(e, n);
|
|
1430
|
-
} catch (
|
|
1431
|
-
c = [6,
|
|
1448
|
+
} catch (_) {
|
|
1449
|
+
c = [6, _], r = 0;
|
|
1432
1450
|
} finally {
|
|
1433
1451
|
o = a = 0;
|
|
1434
1452
|
}
|
|
1435
1453
|
if (c[0] & 5) throw c[1];
|
|
1436
1454
|
return { value: c[0] ? c[1] : void 0, done: !0 };
|
|
1437
1455
|
}
|
|
1438
|
-
},
|
|
1456
|
+
}, sa = function(e, t) {
|
|
1439
1457
|
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
1440
1458
|
if (!n) return e;
|
|
1441
1459
|
var o = n.call(e), r, a = [], f;
|
|
1442
1460
|
try {
|
|
1443
1461
|
for (; (t === void 0 || t-- > 0) && !(r = o.next()).done; ) a.push(r.value);
|
|
1444
|
-
} catch (
|
|
1445
|
-
f = { error:
|
|
1462
|
+
} catch (g) {
|
|
1463
|
+
f = { error: g };
|
|
1446
1464
|
} finally {
|
|
1447
1465
|
try {
|
|
1448
1466
|
r && !r.done && (n = o.return) && n.call(o);
|
|
@@ -1451,11 +1469,11 @@ var te = function() {
|
|
|
1451
1469
|
}
|
|
1452
1470
|
}
|
|
1453
1471
|
return a;
|
|
1454
|
-
},
|
|
1472
|
+
}, da = function(e, t, n) {
|
|
1455
1473
|
if (n || arguments.length === 2) for (var o = 0, r = t.length, a; o < r; o++)
|
|
1456
1474
|
(a || !(o in t)) && (a || (a = Array.prototype.slice.call(t, 0, o)), a[o] = t[o]);
|
|
1457
1475
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
1458
|
-
}, pn = new
|
|
1476
|
+
}, pn = new gt(), He = new gt(), it = new gt(), mn = {
|
|
1459
1477
|
cache: pn,
|
|
1460
1478
|
refreshInterval: 0,
|
|
1461
1479
|
ttl: 0,
|
|
@@ -1470,7 +1488,7 @@ var te = function() {
|
|
|
1470
1488
|
isOnline: nt.isOnline,
|
|
1471
1489
|
isDocumentVisible: nt.isDocumentVisible
|
|
1472
1490
|
};
|
|
1473
|
-
function
|
|
1491
|
+
function ua(e, t, n) {
|
|
1474
1492
|
var o = He.get(e);
|
|
1475
1493
|
if (o)
|
|
1476
1494
|
o.data.push(t);
|
|
@@ -1479,7 +1497,7 @@ function da(e, t, n) {
|
|
|
1479
1497
|
He.set(e, [t], n > 0 ? n + r : n);
|
|
1480
1498
|
}
|
|
1481
1499
|
}
|
|
1482
|
-
function
|
|
1500
|
+
function ca(e, t, n) {
|
|
1483
1501
|
if (n.isDocumentVisible() && !(n.errorRetryCount !== void 0 && t > n.errorRetryCount)) {
|
|
1484
1502
|
var o = Math.min(t || 0, n.errorRetryCount), r = o * n.errorRetryInterval;
|
|
1485
1503
|
setTimeout(function() {
|
|
@@ -1489,22 +1507,22 @@ function ua(e, t, n) {
|
|
|
1489
1507
|
}
|
|
1490
1508
|
var Ut = function(e, t, n, o) {
|
|
1491
1509
|
return n === void 0 && (n = pn), o === void 0 && (o = mn.ttl), he(void 0, void 0, void 0, function() {
|
|
1492
|
-
var r, a, f,
|
|
1493
|
-
return Te(this, function(
|
|
1494
|
-
switch (
|
|
1510
|
+
var r, a, f, g, s, c, _;
|
|
1511
|
+
return Te(this, function(h) {
|
|
1512
|
+
switch (h.label) {
|
|
1495
1513
|
case 0:
|
|
1496
|
-
if (!
|
|
1497
|
-
|
|
1514
|
+
if (!pa(t)) return [3, 5];
|
|
1515
|
+
h.label = 1;
|
|
1498
1516
|
case 1:
|
|
1499
|
-
return
|
|
1517
|
+
return h.trys.push([1, 3, , 4]), [4, t];
|
|
1500
1518
|
case 2:
|
|
1501
|
-
return r =
|
|
1519
|
+
return r = h.sent(), [3, 4];
|
|
1502
1520
|
case 3:
|
|
1503
|
-
return
|
|
1521
|
+
return g = h.sent(), a = g, [3, 4];
|
|
1504
1522
|
case 4:
|
|
1505
1523
|
return [3, 6];
|
|
1506
1524
|
case 5:
|
|
1507
|
-
r = t,
|
|
1525
|
+
r = t, h.label = 6;
|
|
1508
1526
|
case 6:
|
|
1509
1527
|
if (f = !1, s = { data: r, error: a, isValidating: f }, typeof r < "u")
|
|
1510
1528
|
try {
|
|
@@ -1512,29 +1530,29 @@ var Ut = function(e, t, n, o) {
|
|
|
1512
1530
|
} catch (b) {
|
|
1513
1531
|
console.error("swrv(mutate): failed to set cache", b);
|
|
1514
1532
|
}
|
|
1515
|
-
return c = He.get(e), c && c.data.length && (
|
|
1533
|
+
return c = He.get(e), c && c.data.length && (_ = c.data.filter(function(b) {
|
|
1516
1534
|
return b.key === e;
|
|
1517
|
-
}),
|
|
1535
|
+
}), _.forEach(function(b, w) {
|
|
1518
1536
|
typeof s.data < "u" && (b.data = s.data), b.error = s.error, b.isValidating = s.isValidating;
|
|
1519
|
-
var l = w ===
|
|
1520
|
-
l || delete
|
|
1521
|
-
}),
|
|
1537
|
+
var l = w === _.length - 1;
|
|
1538
|
+
l || delete _[w];
|
|
1539
|
+
}), _ = _.filter(Boolean)), [2, s];
|
|
1522
1540
|
}
|
|
1523
1541
|
});
|
|
1524
1542
|
});
|
|
1525
1543
|
};
|
|
1526
|
-
function
|
|
1544
|
+
function fa() {
|
|
1527
1545
|
for (var e = this, t = [], n = 0; n < arguments.length; n++)
|
|
1528
1546
|
t[n] = arguments[n];
|
|
1529
|
-
var o, r, a = te({}, mn), f = !1,
|
|
1547
|
+
var o, r, a = te({}, mn), f = !1, g = !1, s = vn(), c = (s == null ? void 0 : s.proxy) || s;
|
|
1530
1548
|
if (!c)
|
|
1531
1549
|
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;
|
|
1532
|
-
var
|
|
1550
|
+
var _ = (c == null ? void 0 : c.$isServer) || !1;
|
|
1533
1551
|
t.length >= 1 && (o = t[0]), t.length >= 2 && (r = t[1]), t.length > 2 && (a = te(te({}, a), t[2]));
|
|
1534
|
-
var
|
|
1552
|
+
var h = _ ? a.serverTTL : a.ttl, b = typeof o == "function" ? o : M(o);
|
|
1535
1553
|
typeof r > "u" && (r = a.fetcher);
|
|
1536
1554
|
var w = null;
|
|
1537
|
-
w || (w =
|
|
1555
|
+
w || (w = jt({
|
|
1538
1556
|
data: void 0,
|
|
1539
1557
|
error: void 0,
|
|
1540
1558
|
isValidating: !0,
|
|
@@ -1542,11 +1560,11 @@ function ca() {
|
|
|
1542
1560
|
}));
|
|
1543
1561
|
var l = function(d, k) {
|
|
1544
1562
|
return he(e, void 0, void 0, function() {
|
|
1545
|
-
var
|
|
1563
|
+
var j, x, ee, Q, z, ae, W, ce = this;
|
|
1546
1564
|
return Te(this, function(fe) {
|
|
1547
1565
|
switch (fe.label) {
|
|
1548
1566
|
case 0:
|
|
1549
|
-
return
|
|
1567
|
+
return j = w.data === void 0, x = b.value, x ? (ee = a.cache.get(x), Q = ee && ee.data, w.isValidating = !0, Q && (w.data = Q.data, w.error = Q.error), z = d || r, !z || !a.isDocumentVisible() && !j || (k == null ? void 0 : k.forceRevalidate) !== void 0 && !(k != null && k.forceRevalidate) ? (w.isValidating = !1, [
|
|
1550
1568
|
2
|
|
1551
1569
|
/*return*/
|
|
1552
1570
|
]) : ee && (ae = !!(Date.now() - ee.createdAt >= a.dedupingInterval || k != null && k.forceRevalidate), !ae) ? (w.isValidating = !1, [
|
|
@@ -1558,15 +1576,15 @@ function ca() {
|
|
|
1558
1576
|
return Te(this, function(O) {
|
|
1559
1577
|
switch (O.label) {
|
|
1560
1578
|
case 0:
|
|
1561
|
-
return G = it.get(
|
|
1579
|
+
return G = it.get(x), G ? [3, 2] : (be = Array.isArray(x) ? x : [x], pe = z.apply(void 0, da([], sa(be), !1)), it.set(x, pe, a.dedupingInterval), [4, Ut(x, pe, a.cache, h)]);
|
|
1562
1580
|
case 1:
|
|
1563
1581
|
return O.sent(), [3, 4];
|
|
1564
1582
|
case 2:
|
|
1565
|
-
return [4, Ut(
|
|
1583
|
+
return [4, Ut(x, G.data, a.cache, h)];
|
|
1566
1584
|
case 3:
|
|
1567
1585
|
O.sent(), O.label = 4;
|
|
1568
1586
|
case 4:
|
|
1569
|
-
return w.isValidating = !1, it.delete(
|
|
1587
|
+
return w.isValidating = !1, it.delete(x), w.error !== void 0 && (ye = !f && a.shouldRetryOnError && (k ? k.shouldRetryOnError : !0), ye && ca(l, k ? k.errorRetryCount : 1, a)), [
|
|
1570
1588
|
2
|
|
1571
1589
|
/*return*/
|
|
1572
1590
|
];
|
|
@@ -1642,7 +1660,7 @@ function ca() {
|
|
|
1642
1660
|
});
|
|
1643
1661
|
try {
|
|
1644
1662
|
Ie(b, function(d) {
|
|
1645
|
-
wn(b) || (b.value = d), w.key = d, w.isValidating = !!d,
|
|
1663
|
+
wn(b) || (b.value = d), w.key = d, w.isValidating = !!d, ua(b.value, w, h), !_ && !g && b.value && l(), g = !1;
|
|
1646
1664
|
}, {
|
|
1647
1665
|
immediate: !0
|
|
1648
1666
|
});
|
|
@@ -1653,10 +1671,10 @@ function ca() {
|
|
|
1653
1671
|
} });
|
|
1654
1672
|
return I;
|
|
1655
1673
|
}
|
|
1656
|
-
function
|
|
1674
|
+
function pa(e) {
|
|
1657
1675
|
return e !== null && typeof e == "object" && typeof e.then == "function";
|
|
1658
1676
|
}
|
|
1659
|
-
function
|
|
1677
|
+
function gn(e) {
|
|
1660
1678
|
return `redis-partial-links-${e}`;
|
|
1661
1679
|
}
|
|
1662
1680
|
const Ve = (e) => {
|
|
@@ -1664,18 +1682,18 @@ const Ve = (e) => {
|
|
|
1664
1682
|
return {
|
|
1665
1683
|
fetcher: async (n) => {
|
|
1666
1684
|
const { partialId: o, size: r, offset: a, query: f } = n;
|
|
1667
|
-
let
|
|
1668
|
-
e.app === "konnect" ?
|
|
1685
|
+
let g = `${e.apiBaseUrl}${Ae.links[e.app]}`;
|
|
1686
|
+
e.app === "konnect" ? g = g.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (g = g.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "")), g = g.replace(/{id}/gi, o || ""), f && (g = `${g}?${f}`);
|
|
1669
1687
|
const { data: s } = await t.get(
|
|
1670
|
-
|
|
1688
|
+
g,
|
|
1671
1689
|
{ params: { size: r, offset: a } }
|
|
1672
1690
|
);
|
|
1673
1691
|
return s;
|
|
1674
1692
|
}
|
|
1675
1693
|
};
|
|
1676
|
-
},
|
|
1677
|
-
const { partialId: t, config: n } = e, { fetcher: o } = Ve(n), r =
|
|
1678
|
-
|
|
1694
|
+
}, _n = (e) => {
|
|
1695
|
+
const { partialId: t, config: n } = e, { fetcher: o } = Ve(n), r = M([]), { data: a } = fa(
|
|
1696
|
+
gn(t),
|
|
1679
1697
|
() => o({ partialId: t }),
|
|
1680
1698
|
{
|
|
1681
1699
|
revalidateOnFocus: !1
|
|
@@ -1685,7 +1703,7 @@ const Ve = (e) => {
|
|
|
1685
1703
|
var f;
|
|
1686
1704
|
r.value = ((f = a.value) == null ? void 0 : f.data) ?? [];
|
|
1687
1705
|
}), r;
|
|
1688
|
-
},
|
|
1706
|
+
}, ma = { class: "kong-ui-entities-redis-configurations-form" }, ga = /* @__PURE__ */ Y({
|
|
1689
1707
|
__name: "RedisConfigurationForm",
|
|
1690
1708
|
props: {
|
|
1691
1709
|
config: {
|
|
@@ -1722,12 +1740,12 @@ const Ve = (e) => {
|
|
|
1722
1740
|
},
|
|
1723
1741
|
emits: ["update", "error", "loading", "cancel"],
|
|
1724
1742
|
setup(e, { emit: t }) {
|
|
1725
|
-
const n = e, o = t, { i18n: { t: r }, i18nT: a } = ue.useI18n(), f = zt(),
|
|
1726
|
-
|
|
1727
|
-
},
|
|
1743
|
+
const n = e, o = t, { i18n: { t: r }, i18nT: a } = ue.useI18n(), f = zt(), g = M(), s = M(), c = (O, m) => {
|
|
1744
|
+
g.value = O ?? "", s.value = m;
|
|
1745
|
+
}, _ = (O) => {
|
|
1728
1746
|
var m;
|
|
1729
|
-
(m = s.value) == null || m.call(s, O),
|
|
1730
|
-
},
|
|
1747
|
+
(m = s.value) == null || m.call(s, O), g.value = !1;
|
|
1748
|
+
}, h = H(() => [
|
|
1731
1749
|
{
|
|
1732
1750
|
label: r("form.options.type.host_port"),
|
|
1733
1751
|
group: ` ${r("form.options.type.open_source")}`,
|
|
@@ -1771,14 +1789,14 @@ const Ve = (e) => {
|
|
|
1771
1789
|
isEdit: I,
|
|
1772
1790
|
redisType: d,
|
|
1773
1791
|
redisTypeIsEnterprise: k,
|
|
1774
|
-
fetchUrl:
|
|
1775
|
-
submit:
|
|
1792
|
+
fetchUrl: j,
|
|
1793
|
+
submit: x,
|
|
1776
1794
|
setInitialFormValues: ee
|
|
1777
|
-
} =
|
|
1795
|
+
} = Uo({
|
|
1778
1796
|
partialId: n.partialId,
|
|
1779
1797
|
defaultRedisType: n.disabledPartialType === ne.REDIS_CE ? y.HOST_PORT_EE : y.HOST_PORT_CE,
|
|
1780
1798
|
config: n.config
|
|
1781
|
-
}), { fetcher: Q } = Ve(n.config), z =
|
|
1799
|
+
}), { fetcher: Q } = Ve(n.config), z = M(!1), ae = M(!1), W = M(0), ce = async () => {
|
|
1782
1800
|
try {
|
|
1783
1801
|
if (I && !ae.value) {
|
|
1784
1802
|
const { count: m } = await Q({ partialId: n.partialId });
|
|
@@ -1787,7 +1805,7 @@ const Ve = (e) => {
|
|
|
1787
1805
|
return;
|
|
1788
1806
|
}
|
|
1789
1807
|
}
|
|
1790
|
-
const { data: O } = await
|
|
1808
|
+
const { data: O } = await x();
|
|
1791
1809
|
o("update", O);
|
|
1792
1810
|
} catch (O) {
|
|
1793
1811
|
o("error", O);
|
|
@@ -1811,7 +1829,7 @@ const Ve = (e) => {
|
|
|
1811
1829
|
}), (O, m) => {
|
|
1812
1830
|
const Ge = D("KAlert"), $e = D("KSelect"), U = D("KInput"), ve = D("KCheckbox"), E = D("KModal");
|
|
1813
1831
|
return R(), q(Ke, null, [
|
|
1814
|
-
K("div",
|
|
1832
|
+
K("div", ma, [
|
|
1815
1833
|
p(i(Rn), {
|
|
1816
1834
|
"action-teleport-target": e.actionTeleportTarget,
|
|
1817
1835
|
"can-submit": i(S),
|
|
@@ -1819,7 +1837,7 @@ const Ve = (e) => {
|
|
|
1819
1837
|
"edit-id": e.partialId,
|
|
1820
1838
|
"entity-type": i(Ht).RedisConfiguration,
|
|
1821
1839
|
"error-message": i(l).errorMessage,
|
|
1822
|
-
"fetch-url": i(
|
|
1840
|
+
"fetch-url": i(j),
|
|
1823
1841
|
"form-fields": i(C),
|
|
1824
1842
|
"is-readonly": i(l).readonly,
|
|
1825
1843
|
"slidout-top-offset": e.slidoutTopOffset,
|
|
@@ -1829,19 +1847,19 @@ const Ve = (e) => {
|
|
|
1829
1847
|
onLoading: be,
|
|
1830
1848
|
onSubmit: ce
|
|
1831
1849
|
}, {
|
|
1832
|
-
default:
|
|
1850
|
+
default: T(() => [
|
|
1833
1851
|
W.value > 0 && i(I) ? (R(), F(Ge, {
|
|
1834
1852
|
key: 0,
|
|
1835
1853
|
appearance: "warning",
|
|
1836
1854
|
class: "warning-alert",
|
|
1837
1855
|
"data-testid": "redis-update-warning-alert"
|
|
1838
1856
|
}, {
|
|
1839
|
-
default:
|
|
1857
|
+
default: T(() => [
|
|
1840
1858
|
p(i(a), {
|
|
1841
1859
|
keypath: "form.edit_warning_modal.description",
|
|
1842
1860
|
tag: "div"
|
|
1843
1861
|
}, {
|
|
1844
|
-
pluginCount:
|
|
1862
|
+
pluginCount: T(() => [
|
|
1845
1863
|
K("b", null, B(i(r)("form.edit_warning_modal.plugin_count", { count: W.value })), 1)
|
|
1846
1864
|
]),
|
|
1847
1865
|
_: 1
|
|
@@ -1854,19 +1872,19 @@ const Ve = (e) => {
|
|
|
1854
1872
|
description: i(r)("form.sections.type.description"),
|
|
1855
1873
|
title: i(r)("form.sections.type.title")
|
|
1856
1874
|
}, {
|
|
1857
|
-
default:
|
|
1875
|
+
default: T(() => [
|
|
1858
1876
|
p($e, {
|
|
1859
1877
|
modelValue: i(d),
|
|
1860
1878
|
"onUpdate:modelValue": m[0] || (m[0] = (u) => Cn(d) ? d.value = u : null),
|
|
1861
1879
|
"data-testid": "redis-type-select",
|
|
1862
1880
|
disabled: i(I) && i(d) === i(y).HOST_PORT_CE,
|
|
1863
|
-
items:
|
|
1881
|
+
items: h.value,
|
|
1864
1882
|
"kpop-attributes": { "data-testid": "redis-type-select-popover" },
|
|
1865
1883
|
label: i(r)("form.fields.type.label"),
|
|
1866
1884
|
readonly: i(l).readonly,
|
|
1867
1885
|
required: ""
|
|
1868
1886
|
}, {
|
|
1869
|
-
"selected-item-template":
|
|
1887
|
+
"selected-item-template": T(({ item: u }) => [
|
|
1870
1888
|
Z(B(w(u)), 1)
|
|
1871
1889
|
]),
|
|
1872
1890
|
_: 1
|
|
@@ -1879,7 +1897,7 @@ const Ve = (e) => {
|
|
|
1879
1897
|
description: i(r)("form.sections.general.description"),
|
|
1880
1898
|
title: i(r)("form.sections.general.title")
|
|
1881
1899
|
}, {
|
|
1882
|
-
default:
|
|
1900
|
+
default: T(() => [
|
|
1883
1901
|
p(U, {
|
|
1884
1902
|
modelValue: i(l).fields.name,
|
|
1885
1903
|
"onUpdate:modelValue": m[1] || (m[1] = (u) => i(l).fields.name = u),
|
|
@@ -1890,7 +1908,21 @@ const Ve = (e) => {
|
|
|
1890
1908
|
placeholder: i(r)("form.fields.name.placeholder"),
|
|
1891
1909
|
readonly: i(l).readonly,
|
|
1892
1910
|
required: ""
|
|
1893
|
-
}, null, 8, ["modelValue", "disabled", "label", "placeholder", "readonly"])
|
|
1911
|
+
}, null, 8, ["modelValue", "disabled", "label", "placeholder", "readonly"]),
|
|
1912
|
+
p(U, {
|
|
1913
|
+
modelValue: i(l).fields.tags,
|
|
1914
|
+
"onUpdate:modelValue": m[2] || (m[2] = (u) => i(l).fields.tags = u),
|
|
1915
|
+
modelModifiers: { trim: !0 },
|
|
1916
|
+
"data-testid": "redis-tags-input",
|
|
1917
|
+
help: i(r)("form.fields.tags.help"),
|
|
1918
|
+
label: i(r)("form.fields.tags.label"),
|
|
1919
|
+
"label-attributes": {
|
|
1920
|
+
info: i(r)("form.fields.tags.tooltip"),
|
|
1921
|
+
tooltipAttributes: { maxWidth: "400" }
|
|
1922
|
+
},
|
|
1923
|
+
placeholder: i(r)("form.fields.tags.placeholder"),
|
|
1924
|
+
readonly: i(l).readonly
|
|
1925
|
+
}, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"])
|
|
1894
1926
|
]),
|
|
1895
1927
|
_: 1
|
|
1896
1928
|
}, 8, ["description", "title"]),
|
|
@@ -1900,10 +1932,10 @@ const Ve = (e) => {
|
|
|
1900
1932
|
description: i(r)("form.sections.sentinel_configuration.description"),
|
|
1901
1933
|
title: i(r)("form.sections.sentinel_configuration.title")
|
|
1902
1934
|
}, {
|
|
1903
|
-
default:
|
|
1935
|
+
default: T(() => [
|
|
1904
1936
|
p(U, {
|
|
1905
1937
|
modelValue: i(l).fields.config.sentinel_master,
|
|
1906
|
-
"onUpdate:modelValue": m[
|
|
1938
|
+
"onUpdate:modelValue": m[3] || (m[3] = (u) => i(l).fields.config.sentinel_master = u),
|
|
1907
1939
|
"data-testid": "redis-sentinel-master-input",
|
|
1908
1940
|
label: i(r)("form.fields.sentinel_master.label"),
|
|
1909
1941
|
"label-attributes": {
|
|
@@ -1915,7 +1947,7 @@ const Ve = (e) => {
|
|
|
1915
1947
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
1916
1948
|
p($e, {
|
|
1917
1949
|
modelValue: i(l).fields.config.sentinel_role,
|
|
1918
|
-
"onUpdate:modelValue": m[
|
|
1950
|
+
"onUpdate:modelValue": m[4] || (m[4] = (u) => i(l).fields.config.sentinel_role = u),
|
|
1919
1951
|
"data-testid": "redis-sentinel-role-select",
|
|
1920
1952
|
items: b,
|
|
1921
1953
|
"kpop-attributes": { "data-testid": "redis-sentinel-role-select-popover" },
|
|
@@ -1927,14 +1959,14 @@ const Ve = (e) => {
|
|
|
1927
1959
|
readonly: i(l).readonly,
|
|
1928
1960
|
required: ""
|
|
1929
1961
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
1930
|
-
p(
|
|
1962
|
+
p(na, {
|
|
1931
1963
|
modelValue: i(l).fields.config.sentinel_nodes,
|
|
1932
|
-
"onUpdate:modelValue": m[
|
|
1964
|
+
"onUpdate:modelValue": m[5] || (m[5] = (u) => i(l).fields.config.sentinel_nodes = u),
|
|
1933
1965
|
readonly: i(l).readonly
|
|
1934
1966
|
}, null, 8, ["modelValue", "readonly"]),
|
|
1935
1967
|
p(U, {
|
|
1936
1968
|
modelValue: i(l).fields.config.sentinel_username,
|
|
1937
|
-
"onUpdate:modelValue": m[
|
|
1969
|
+
"onUpdate:modelValue": m[6] || (m[6] = (u) => i(l).fields.config.sentinel_username = u),
|
|
1938
1970
|
modelModifiers: { trim: !0 },
|
|
1939
1971
|
label: i(r)("form.fields.sentinel_username.label"),
|
|
1940
1972
|
"label-attributes": {
|
|
@@ -1948,11 +1980,11 @@ const Ve = (e) => {
|
|
|
1948
1980
|
disabled: i(l).readonly,
|
|
1949
1981
|
update: (u) => i(l).fields.config.sentinel_username = u,
|
|
1950
1982
|
value: i(l).fields.config.sentinel_username,
|
|
1951
|
-
onOpen: m[
|
|
1983
|
+
onOpen: m[7] || (m[7] = (u, A) => c(u, A))
|
|
1952
1984
|
}, null, 8, ["disabled", "update", "value"]),
|
|
1953
1985
|
p(U, {
|
|
1954
1986
|
modelValue: i(l).fields.config.sentinel_password,
|
|
1955
|
-
"onUpdate:modelValue": m[
|
|
1987
|
+
"onUpdate:modelValue": m[8] || (m[8] = (u) => i(l).fields.config.sentinel_password = u),
|
|
1956
1988
|
modelModifiers: { trim: !0 },
|
|
1957
1989
|
label: i(r)("form.fields.sentinel_password.label"),
|
|
1958
1990
|
"label-attributes": {
|
|
@@ -1968,7 +2000,7 @@ const Ve = (e) => {
|
|
|
1968
2000
|
disabled: i(l).readonly,
|
|
1969
2001
|
update: (u) => i(l).fields.config.sentinel_password = u,
|
|
1970
2002
|
value: i(l).fields.config.sentinel_password,
|
|
1971
|
-
onOpen: m[
|
|
2003
|
+
onOpen: m[9] || (m[9] = (u, A) => c(u, A))
|
|
1972
2004
|
}, null, 8, ["disabled", "update", "value"])
|
|
1973
2005
|
]),
|
|
1974
2006
|
_: 1
|
|
@@ -1979,15 +2011,15 @@ const Ve = (e) => {
|
|
|
1979
2011
|
description: i(r)("form.sections.cluster.description"),
|
|
1980
2012
|
title: i(r)("form.sections.cluster.title")
|
|
1981
2013
|
}, {
|
|
1982
|
-
default:
|
|
1983
|
-
p(
|
|
2014
|
+
default: T(() => [
|
|
2015
|
+
p(Zo, {
|
|
1984
2016
|
modelValue: i(l).fields.config.cluster_nodes,
|
|
1985
|
-
"onUpdate:modelValue": m[
|
|
2017
|
+
"onUpdate:modelValue": m[10] || (m[10] = (u) => i(l).fields.config.cluster_nodes = u),
|
|
1986
2018
|
readonly: i(l).readonly
|
|
1987
2019
|
}, null, 8, ["modelValue", "readonly"]),
|
|
1988
2020
|
p(U, {
|
|
1989
2021
|
modelValue: i(l).fields.config.cluster_max_redirections,
|
|
1990
|
-
"onUpdate:modelValue": m[
|
|
2022
|
+
"onUpdate:modelValue": m[11] || (m[11] = (u) => i(l).fields.config.cluster_max_redirections = u),
|
|
1991
2023
|
"data-testid": "redis-cluster-max-redirections-input",
|
|
1992
2024
|
label: i(r)("form.fields.cluster_max_redirections.label"),
|
|
1993
2025
|
"label-attributes": {
|
|
@@ -2005,11 +2037,11 @@ const Ve = (e) => {
|
|
|
2005
2037
|
description: i(r)("form.sections.connection.description"),
|
|
2006
2038
|
title: i(r)("form.sections.connection.title")
|
|
2007
2039
|
}, {
|
|
2008
|
-
default:
|
|
2040
|
+
default: T(() => [
|
|
2009
2041
|
i(d) === i(y).HOST_PORT_CE || i(d) === i(y).HOST_PORT_EE ? (R(), F(U, {
|
|
2010
2042
|
key: 0,
|
|
2011
2043
|
modelValue: i(l).fields.config.host,
|
|
2012
|
-
"onUpdate:modelValue": m[
|
|
2044
|
+
"onUpdate:modelValue": m[12] || (m[12] = (u) => i(l).fields.config.host = u),
|
|
2013
2045
|
modelModifiers: { trim: !0 },
|
|
2014
2046
|
"data-testid": "redis-host-input",
|
|
2015
2047
|
label: i(r)("form.fields.host.label"),
|
|
@@ -2022,7 +2054,7 @@ const Ve = (e) => {
|
|
|
2022
2054
|
i(d) === i(y).HOST_PORT_CE || i(d) === i(y).HOST_PORT_EE ? (R(), F(U, {
|
|
2023
2055
|
key: 1,
|
|
2024
2056
|
modelValue: i(l).fields.config.port,
|
|
2025
|
-
"onUpdate:modelValue": m[
|
|
2057
|
+
"onUpdate:modelValue": m[13] || (m[13] = (u) => i(l).fields.config.port = u),
|
|
2026
2058
|
modelModifiers: { trim: !0 },
|
|
2027
2059
|
"data-testid": "redis-port-input",
|
|
2028
2060
|
label: i(r)("form.fields.port.label"),
|
|
@@ -2036,7 +2068,7 @@ const Ve = (e) => {
|
|
|
2036
2068
|
i(d) === i(y).HOST_PORT_EE ? (R(), F(ve, {
|
|
2037
2069
|
key: 2,
|
|
2038
2070
|
modelValue: i(l).fields.config.connection_is_proxied,
|
|
2039
|
-
"onUpdate:modelValue": m[
|
|
2071
|
+
"onUpdate:modelValue": m[14] || (m[14] = (u) => i(l).fields.config.connection_is_proxied = u),
|
|
2040
2072
|
"data-testid": "redis-connection-is-proxied-checkbox",
|
|
2041
2073
|
disabled: i(l).readonly,
|
|
2042
2074
|
label: i(r)("form.fields.connection_is_proxied.label"),
|
|
@@ -2048,7 +2080,7 @@ const Ve = (e) => {
|
|
|
2048
2080
|
i(d) === i(y).HOST_PORT_CE ? (R(), F(U, {
|
|
2049
2081
|
key: 3,
|
|
2050
2082
|
modelValue: i(l).fields.config.timeout,
|
|
2051
|
-
"onUpdate:modelValue": m[
|
|
2083
|
+
"onUpdate:modelValue": m[15] || (m[15] = (u) => i(l).fields.config.timeout = u),
|
|
2052
2084
|
modelModifiers: { trim: !0 },
|
|
2053
2085
|
"data-testid": "redis-timeout-input",
|
|
2054
2086
|
label: i(r)("form.fields.timeout.label"),
|
|
@@ -2061,7 +2093,7 @@ const Ve = (e) => {
|
|
|
2061
2093
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : X("", !0),
|
|
2062
2094
|
p(U, {
|
|
2063
2095
|
modelValue: i(l).fields.config.database,
|
|
2064
|
-
"onUpdate:modelValue": m[
|
|
2096
|
+
"onUpdate:modelValue": m[16] || (m[16] = (u) => i(l).fields.config.database = u),
|
|
2065
2097
|
modelModifiers: { trim: !0 },
|
|
2066
2098
|
"data-testid": "redis-database-input",
|
|
2067
2099
|
label: i(r)("form.fields.database.label"),
|
|
@@ -2074,7 +2106,7 @@ const Ve = (e) => {
|
|
|
2074
2106
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2075
2107
|
p(U, {
|
|
2076
2108
|
modelValue: i(l).fields.config.username,
|
|
2077
|
-
"onUpdate:modelValue": m[
|
|
2109
|
+
"onUpdate:modelValue": m[17] || (m[17] = (u) => i(l).fields.config.username = u),
|
|
2078
2110
|
modelModifiers: { trim: !0 },
|
|
2079
2111
|
"data-testid": "redis-username-input",
|
|
2080
2112
|
label: i(r)("form.fields.username.label"),
|
|
@@ -2089,11 +2121,11 @@ const Ve = (e) => {
|
|
|
2089
2121
|
disabled: i(l).readonly,
|
|
2090
2122
|
update: (u) => i(l).fields.config.username = u,
|
|
2091
2123
|
value: i(l).fields.config.username,
|
|
2092
|
-
onOpen: m[
|
|
2124
|
+
onOpen: m[18] || (m[18] = (u, A) => c(u, A))
|
|
2093
2125
|
}, null, 8, ["disabled", "update", "value"]),
|
|
2094
2126
|
p(U, {
|
|
2095
2127
|
modelValue: i(l).fields.config.password,
|
|
2096
|
-
"onUpdate:modelValue": m[
|
|
2128
|
+
"onUpdate:modelValue": m[19] || (m[19] = (u) => i(l).fields.config.password = u),
|
|
2097
2129
|
modelModifiers: { trim: !0 },
|
|
2098
2130
|
"data-testid": "redis-password-input",
|
|
2099
2131
|
label: i(r)("form.fields.password.label"),
|
|
@@ -2110,7 +2142,7 @@ const Ve = (e) => {
|
|
|
2110
2142
|
disabled: i(l).readonly,
|
|
2111
2143
|
update: (u) => i(l).fields.config.password = u,
|
|
2112
2144
|
value: i(l).fields.config.password,
|
|
2113
|
-
onOpen: m[
|
|
2145
|
+
onOpen: m[20] || (m[20] = (u, A) => c(u, A))
|
|
2114
2146
|
}, null, 8, ["disabled", "update", "value"])
|
|
2115
2147
|
]),
|
|
2116
2148
|
_: 1
|
|
@@ -2120,10 +2152,10 @@ const Ve = (e) => {
|
|
|
2120
2152
|
description: i(r)("form.sections.tls.description"),
|
|
2121
2153
|
title: i(r)("form.sections.tls.title")
|
|
2122
2154
|
}, {
|
|
2123
|
-
default:
|
|
2155
|
+
default: T(() => [
|
|
2124
2156
|
p(ve, {
|
|
2125
2157
|
modelValue: i(l).fields.config.ssl,
|
|
2126
|
-
"onUpdate:modelValue": m[
|
|
2158
|
+
"onUpdate:modelValue": m[21] || (m[21] = (u) => i(l).fields.config.ssl = u),
|
|
2127
2159
|
"data-testid": "redis-ssl-checkbox",
|
|
2128
2160
|
description: i(r)("form.fields.ssl.description"),
|
|
2129
2161
|
disabled: i(l).readonly,
|
|
@@ -2135,7 +2167,7 @@ const Ve = (e) => {
|
|
|
2135
2167
|
}, null, 8, ["modelValue", "description", "disabled", "label", "label-attributes"]),
|
|
2136
2168
|
p(ve, {
|
|
2137
2169
|
modelValue: i(l).fields.config.ssl_verify,
|
|
2138
|
-
"onUpdate:modelValue": m[
|
|
2170
|
+
"onUpdate:modelValue": m[22] || (m[22] = (u) => i(l).fields.config.ssl_verify = u),
|
|
2139
2171
|
"data-testid": "redis-ssl-verify-checkbox",
|
|
2140
2172
|
description: i(r)("form.fields.ssl_verify.description"),
|
|
2141
2173
|
disabled: i(l).readonly,
|
|
@@ -2147,7 +2179,7 @@ const Ve = (e) => {
|
|
|
2147
2179
|
}, null, 8, ["modelValue", "description", "disabled", "label", "label-attributes"]),
|
|
2148
2180
|
p(U, {
|
|
2149
2181
|
modelValue: i(l).fields.config.server_name,
|
|
2150
|
-
"onUpdate:modelValue": m[
|
|
2182
|
+
"onUpdate:modelValue": m[23] || (m[23] = (u) => i(l).fields.config.server_name = u),
|
|
2151
2183
|
modelModifiers: { trim: !0 },
|
|
2152
2184
|
label: i(r)("form.fields.server_name.label"),
|
|
2153
2185
|
"label-attributes": {
|
|
@@ -2165,10 +2197,10 @@ const Ve = (e) => {
|
|
|
2165
2197
|
description: i(r)("form.sections.keepalive.description"),
|
|
2166
2198
|
title: i(r)("form.sections.keepalive.title")
|
|
2167
2199
|
}, {
|
|
2168
|
-
default:
|
|
2200
|
+
default: T(() => [
|
|
2169
2201
|
p(U, {
|
|
2170
2202
|
modelValue: i(l).fields.config.keepalive_backlog,
|
|
2171
|
-
"onUpdate:modelValue": m[
|
|
2203
|
+
"onUpdate:modelValue": m[24] || (m[24] = (u) => i(l).fields.config.keepalive_backlog = u),
|
|
2172
2204
|
"data-testid": "redis-keepalive-backlog-input",
|
|
2173
2205
|
label: i(r)("form.fields.keepalive_backlog.label"),
|
|
2174
2206
|
"label-attributes": {
|
|
@@ -2180,7 +2212,7 @@ const Ve = (e) => {
|
|
|
2180
2212
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2181
2213
|
p(U, {
|
|
2182
2214
|
modelValue: i(l).fields.config.keepalive_pool_size,
|
|
2183
|
-
"onUpdate:modelValue": m[
|
|
2215
|
+
"onUpdate:modelValue": m[25] || (m[25] = (u) => i(l).fields.config.keepalive_pool_size = u),
|
|
2184
2216
|
"data-testid": "redis-keepalive-pool-size-input",
|
|
2185
2217
|
label: i(r)("form.fields.keepalive_pool_size.label"),
|
|
2186
2218
|
"label-attributes": {
|
|
@@ -2199,10 +2231,10 @@ const Ve = (e) => {
|
|
|
2199
2231
|
description: i(r)("form.sections.read_write_configuration.description"),
|
|
2200
2232
|
title: i(r)("form.sections.read_write_configuration.title")
|
|
2201
2233
|
}, {
|
|
2202
|
-
default:
|
|
2234
|
+
default: T(() => [
|
|
2203
2235
|
p(U, {
|
|
2204
2236
|
modelValue: i(l).fields.config.read_timeout,
|
|
2205
|
-
"onUpdate:modelValue": m[
|
|
2237
|
+
"onUpdate:modelValue": m[26] || (m[26] = (u) => i(l).fields.config.read_timeout = u),
|
|
2206
2238
|
"data-testid": "redis-read-timeout-input",
|
|
2207
2239
|
label: i(r)("form.fields.read_timeout.label"),
|
|
2208
2240
|
"label-attributes": {
|
|
@@ -2214,7 +2246,7 @@ const Ve = (e) => {
|
|
|
2214
2246
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2215
2247
|
p(U, {
|
|
2216
2248
|
modelValue: i(l).fields.config.send_timeout,
|
|
2217
|
-
"onUpdate:modelValue": m[
|
|
2249
|
+
"onUpdate:modelValue": m[27] || (m[27] = (u) => i(l).fields.config.send_timeout = u),
|
|
2218
2250
|
"data-testid": "redis-send-timeout-input",
|
|
2219
2251
|
label: i(r)("form.fields.send_timeout.label"),
|
|
2220
2252
|
"label-attributes": {
|
|
@@ -2226,7 +2258,7 @@ const Ve = (e) => {
|
|
|
2226
2258
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2227
2259
|
p(U, {
|
|
2228
2260
|
modelValue: i(l).fields.config.connect_timeout,
|
|
2229
|
-
"onUpdate:modelValue": m[
|
|
2261
|
+
"onUpdate:modelValue": m[28] || (m[28] = (u) => i(l).fields.config.connect_timeout = u),
|
|
2230
2262
|
"data-testid": "redis-connect-timeout-input",
|
|
2231
2263
|
label: i(r)("form.fields.connect_timeout.label"),
|
|
2232
2264
|
"label-attributes": {
|
|
@@ -2243,11 +2275,11 @@ const Ve = (e) => {
|
|
|
2243
2275
|
_: 1
|
|
2244
2276
|
}, 8, ["action-teleport-target", "can-submit", "config", "edit-id", "entity-type", "error-message", "fetch-url", "form-fields", "is-readonly", "slidout-top-offset"])
|
|
2245
2277
|
]),
|
|
2246
|
-
p(i(
|
|
2278
|
+
p(i(Un), {
|
|
2247
2279
|
config: n.config,
|
|
2248
|
-
setup:
|
|
2249
|
-
onCancel: m[
|
|
2250
|
-
onProceed:
|
|
2280
|
+
setup: g.value,
|
|
2281
|
+
onCancel: m[29] || (m[29] = () => g.value = !1),
|
|
2282
|
+
onProceed: _
|
|
2251
2283
|
}, null, 8, ["config", "setup"]),
|
|
2252
2284
|
p(E, {
|
|
2253
2285
|
"action-button-text": i(r)("form.edit_warning_modal.confirm"),
|
|
@@ -2256,15 +2288,15 @@ const Ve = (e) => {
|
|
|
2256
2288
|
"max-width": "640",
|
|
2257
2289
|
title: i(r)("form.edit_warning_modal.title"),
|
|
2258
2290
|
visible: z.value,
|
|
2259
|
-
onCancel: m[
|
|
2291
|
+
onCancel: m[30] || (m[30] = (u) => z.value = !1),
|
|
2260
2292
|
onProceed: fe
|
|
2261
2293
|
}, {
|
|
2262
|
-
default:
|
|
2294
|
+
default: T(() => [
|
|
2263
2295
|
p(i(a), {
|
|
2264
2296
|
keypath: "form.edit_warning_modal.description",
|
|
2265
2297
|
tag: "div"
|
|
2266
2298
|
}, {
|
|
2267
|
-
pluginCount:
|
|
2299
|
+
pluginCount: T(() => [
|
|
2268
2300
|
K("b", null, B(i(r)("form.edit_warning_modal.plugin_count", { count: W.value })), 1)
|
|
2269
2301
|
]),
|
|
2270
2302
|
_: 1
|
|
@@ -2275,10 +2307,10 @@ const Ve = (e) => {
|
|
|
2275
2307
|
], 64);
|
|
2276
2308
|
};
|
|
2277
2309
|
}
|
|
2278
|
-
}),
|
|
2310
|
+
}), Wa = /* @__PURE__ */ oe(ga, [["__scopeId", "data-v-2b122b08"]]), _a = "#00abd2", ba = "24px", ya = {
|
|
2279
2311
|
class: "linked-plugins",
|
|
2280
2312
|
"data-testid": "linked-plugins-inline"
|
|
2281
|
-
}, rt = 7,
|
|
2313
|
+
}, rt = 7, va = /* @__PURE__ */ Y({
|
|
2282
2314
|
__name: "LinkedPluginsInline",
|
|
2283
2315
|
props: {
|
|
2284
2316
|
config: {
|
|
@@ -2292,13 +2324,13 @@ const Ve = (e) => {
|
|
|
2292
2324
|
}
|
|
2293
2325
|
},
|
|
2294
2326
|
setup(e) {
|
|
2295
|
-
const t = e, n =
|
|
2327
|
+
const t = e, n = _n({
|
|
2296
2328
|
config: t.config,
|
|
2297
2329
|
partialId: t.partialId
|
|
2298
2330
|
});
|
|
2299
2331
|
return (o, r) => {
|
|
2300
2332
|
const a = D("KBadge");
|
|
2301
|
-
return R(), q("div",
|
|
2333
|
+
return R(), q("div", ya, [
|
|
2302
2334
|
(R(!0), q(Ke, null, ft(i(n).slice(0, rt), (f) => (R(), F(i(Wt), {
|
|
2303
2335
|
key: f.id,
|
|
2304
2336
|
name: f.name,
|
|
@@ -2308,7 +2340,7 @@ const Ve = (e) => {
|
|
|
2308
2340
|
key: 0,
|
|
2309
2341
|
appearance: "info"
|
|
2310
2342
|
}, {
|
|
2311
|
-
default:
|
|
2343
|
+
default: T(() => [
|
|
2312
2344
|
Z(" +" + B(i(n).length - rt), 1)
|
|
2313
2345
|
]),
|
|
2314
2346
|
_: 1
|
|
@@ -2316,7 +2348,7 @@ const Ve = (e) => {
|
|
|
2316
2348
|
]);
|
|
2317
2349
|
};
|
|
2318
2350
|
}
|
|
2319
|
-
}),
|
|
2351
|
+
}), ha = /* @__PURE__ */ oe(va, [["__scopeId", "data-v-6fbbce03"]]), Ta = { class: "plugin-item" }, wa = /* @__PURE__ */ Y({
|
|
2320
2352
|
__name: "PluginItem",
|
|
2321
2353
|
props: {
|
|
2322
2354
|
pluginName: {
|
|
@@ -2325,7 +2357,7 @@ const Ve = (e) => {
|
|
|
2325
2357
|
}
|
|
2326
2358
|
},
|
|
2327
2359
|
setup(e) {
|
|
2328
|
-
return (t, n) => (R(), q("div",
|
|
2360
|
+
return (t, n) => (R(), q("div", Ta, [
|
|
2329
2361
|
p(i(Wt), {
|
|
2330
2362
|
name: e.pluginName,
|
|
2331
2363
|
size: 24
|
|
@@ -2333,7 +2365,7 @@ const Ve = (e) => {
|
|
|
2333
2365
|
K("span", null, B(e.pluginName), 1)
|
|
2334
2366
|
]));
|
|
2335
2367
|
}
|
|
2336
|
-
}),
|
|
2368
|
+
}), Sa = /* @__PURE__ */ oe(wa, [["__scopeId", "data-v-d3c7b010"]]), Ea = { class: "toolbar-container" }, Ca = /* @__PURE__ */ Y({
|
|
2337
2369
|
__name: "LinkedPluginList",
|
|
2338
2370
|
props: {
|
|
2339
2371
|
config: {
|
|
@@ -2363,45 +2395,45 @@ const Ve = (e) => {
|
|
|
2363
2395
|
{ key: "name", label: r("linked_plugins_modal.headers.plugin") },
|
|
2364
2396
|
{ key: "instance_name", label: r("linked_plugins_modal.headers.instance_name") },
|
|
2365
2397
|
{ key: "actions", hideLabel: !0 }
|
|
2366
|
-
], { fetcher: f } = Ve(n.config),
|
|
2398
|
+
], { fetcher: f } = Ve(n.config), g = M(0), s = async (b) => {
|
|
2367
2399
|
const { data: w, count: l } = await f({
|
|
2368
2400
|
partialId: n.partialId,
|
|
2369
2401
|
size: b.pageSize,
|
|
2370
2402
|
offset: b.offset,
|
|
2371
2403
|
query: b.query
|
|
2372
2404
|
});
|
|
2373
|
-
|
|
2405
|
+
g.value = l;
|
|
2374
2406
|
const S = {
|
|
2375
2407
|
total: l,
|
|
2376
2408
|
data: w
|
|
2377
2409
|
};
|
|
2378
2410
|
return o("load", S), S;
|
|
2379
|
-
}, c =
|
|
2411
|
+
}, c = M(""), _ = H(() => n.config.app === "konnect" || n.isExactMatch ? {
|
|
2380
2412
|
isExactMatch: !0
|
|
2381
2413
|
} : {
|
|
2382
2414
|
isExactMatch: !1,
|
|
2383
2415
|
fields: { name: { searchable: !0 } },
|
|
2384
2416
|
schema: { name: { type: "text" } }
|
|
2385
|
-
}),
|
|
2417
|
+
}), h = (b) => {
|
|
2386
2418
|
o("view-plugin", { id: b.id, plugin: b.name });
|
|
2387
2419
|
};
|
|
2388
2420
|
return (b, w) => {
|
|
2389
2421
|
const l = D("KDropdownItem"), S = D("KTableData");
|
|
2390
2422
|
return R(), F(S, {
|
|
2391
|
-
"cache-identifier": i(
|
|
2423
|
+
"cache-identifier": i(gn)(e.partialId),
|
|
2392
2424
|
fetcher: s,
|
|
2393
2425
|
headers: a,
|
|
2394
|
-
"pagination-attributes": { totalCount:
|
|
2426
|
+
"pagination-attributes": { totalCount: g.value, disablePageJump: !0 },
|
|
2395
2427
|
"search-input": c.value
|
|
2396
2428
|
}, Ft({
|
|
2397
|
-
name:
|
|
2398
|
-
p(
|
|
2429
|
+
name: T(({ rowValue: C }) => [
|
|
2430
|
+
p(Sa, { "plugin-name": C }, null, 8, ["plugin-name"])
|
|
2399
2431
|
]),
|
|
2400
|
-
"action-items":
|
|
2432
|
+
"action-items": T(({ row: C }) => [
|
|
2401
2433
|
p(l, {
|
|
2402
|
-
onClick: (I) =>
|
|
2434
|
+
onClick: (I) => h(C)
|
|
2403
2435
|
}, {
|
|
2404
|
-
default:
|
|
2436
|
+
default: T(() => [
|
|
2405
2437
|
Z(B(i(r)("actions.view_plugin")), 1)
|
|
2406
2438
|
]),
|
|
2407
2439
|
_: 2
|
|
@@ -2411,12 +2443,12 @@ const Ve = (e) => {
|
|
|
2411
2443
|
}, [
|
|
2412
2444
|
e.filterBarEnabled ? {
|
|
2413
2445
|
name: "toolbar",
|
|
2414
|
-
fn:
|
|
2415
|
-
K("div",
|
|
2446
|
+
fn: T(() => [
|
|
2447
|
+
K("div", Ea, [
|
|
2416
2448
|
p(i(Kt), {
|
|
2417
2449
|
modelValue: c.value,
|
|
2418
2450
|
"onUpdate:modelValue": w[0] || (w[0] = (C) => c.value = C),
|
|
2419
|
-
config:
|
|
2451
|
+
config: _.value
|
|
2420
2452
|
}, null, 8, ["modelValue", "config"])
|
|
2421
2453
|
])
|
|
2422
2454
|
]),
|
|
@@ -2425,10 +2457,10 @@ const Ve = (e) => {
|
|
|
2425
2457
|
]), 1032, ["cache-identifier", "pagination-attributes", "search-input"]);
|
|
2426
2458
|
};
|
|
2427
2459
|
}
|
|
2428
|
-
}),
|
|
2460
|
+
}), Ia = /* @__PURE__ */ oe(Ca, [["__scopeId", "data-v-d6a2e2f4"]]), ka = {
|
|
2429
2461
|
class: "linked-plugins-modal",
|
|
2430
2462
|
"data-testid": "linked-plugins-modal"
|
|
2431
|
-
},
|
|
2463
|
+
}, Ra = /* @__PURE__ */ Y({
|
|
2432
2464
|
__name: "LinkedPluginListModal",
|
|
2433
2465
|
props: {
|
|
2434
2466
|
config: {
|
|
@@ -2448,28 +2480,28 @@ const Ve = (e) => {
|
|
|
2448
2480
|
},
|
|
2449
2481
|
emits: ["cancel", "proceed", "view-plugin"],
|
|
2450
2482
|
setup(e, { emit: t }) {
|
|
2451
|
-
const n = t, { i18n: { t: o } } = ue.useI18n(), r =
|
|
2483
|
+
const n = t, { i18n: { t: o } } = ue.useI18n(), r = M(0), a = H(() => o("linked_plugins_modal.title", { count: r.value })), f = () => {
|
|
2452
2484
|
n("cancel");
|
|
2453
|
-
},
|
|
2485
|
+
}, g = () => {
|
|
2454
2486
|
n("proceed");
|
|
2455
2487
|
};
|
|
2456
2488
|
return (s, c) => {
|
|
2457
|
-
const
|
|
2458
|
-
return R(), q("div",
|
|
2459
|
-
p(
|
|
2489
|
+
const _ = D("KModal");
|
|
2490
|
+
return R(), q("div", ka, [
|
|
2491
|
+
p(_, {
|
|
2460
2492
|
"action-button-text": i(o)("actions.done"),
|
|
2461
2493
|
"hide-cancel-button": "",
|
|
2462
2494
|
title: a.value,
|
|
2463
2495
|
visible: e.visible,
|
|
2464
2496
|
onCancel: f,
|
|
2465
|
-
onProceed:
|
|
2497
|
+
onProceed: g
|
|
2466
2498
|
}, {
|
|
2467
|
-
default:
|
|
2468
|
-
p(
|
|
2499
|
+
default: T(() => [
|
|
2500
|
+
p(Ia, {
|
|
2469
2501
|
config: e.config,
|
|
2470
2502
|
"partial-id": e.redisConfigurationId,
|
|
2471
|
-
onLoad: c[0] || (c[0] = ({ total:
|
|
2472
|
-
onViewPlugin: c[1] || (c[1] = (
|
|
2503
|
+
onLoad: c[0] || (c[0] = ({ total: h }) => r.value = h),
|
|
2504
|
+
onViewPlugin: c[1] || (c[1] = (h) => n("view-plugin", h))
|
|
2473
2505
|
}, null, 8, ["config", "partial-id"])
|
|
2474
2506
|
]),
|
|
2475
2507
|
_: 1
|
|
@@ -2477,7 +2509,7 @@ const Ve = (e) => {
|
|
|
2477
2509
|
]);
|
|
2478
2510
|
};
|
|
2479
2511
|
}
|
|
2480
|
-
}),
|
|
2512
|
+
}), Oa = /* @__PURE__ */ oe(Ra, [["__scopeId", "data-v-6148b8bd"]]), xa = /* @__PURE__ */ Y({
|
|
2481
2513
|
__name: "DeleteWarningModal",
|
|
2482
2514
|
props: {
|
|
2483
2515
|
visible: {
|
|
@@ -2491,8 +2523,8 @@ const Ve = (e) => {
|
|
|
2491
2523
|
o("close");
|
|
2492
2524
|
};
|
|
2493
2525
|
return (a, f) => {
|
|
2494
|
-
const
|
|
2495
|
-
return R(), F(
|
|
2526
|
+
const g = D("KModal");
|
|
2527
|
+
return R(), F(g, {
|
|
2496
2528
|
"action-button-text": i(n)("actions.close"),
|
|
2497
2529
|
"data-testid": "remove-links-modal",
|
|
2498
2530
|
"hide-cancel-button": "",
|
|
@@ -2502,14 +2534,14 @@ const Ve = (e) => {
|
|
|
2502
2534
|
onCancel: r,
|
|
2503
2535
|
onProceed: r
|
|
2504
2536
|
}, {
|
|
2505
|
-
default:
|
|
2537
|
+
default: T(() => [
|
|
2506
2538
|
Z(B(i(n)("delete.warning")), 1)
|
|
2507
2539
|
]),
|
|
2508
2540
|
_: 1
|
|
2509
2541
|
}, 8, ["action-button-text", "title", "visible"]);
|
|
2510
2542
|
};
|
|
2511
2543
|
}
|
|
2512
|
-
}),
|
|
2544
|
+
}), Aa = { class: "kong-ui-entities-partials-list" }, Pa = { class: "empty-state-icon-gateway" }, Va = /* @__PURE__ */ Y({
|
|
2513
2545
|
__name: "RedisConfigurationList",
|
|
2514
2546
|
props: {
|
|
2515
2547
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2560,10 +2592,10 @@ const Ve = (e) => {
|
|
|
2560
2592
|
setup(e, { emit: t }) {
|
|
2561
2593
|
var ve;
|
|
2562
2594
|
const n = t, o = e, r = H(() => {
|
|
2563
|
-
var u,
|
|
2564
|
-
let E = `${o.config.apiBaseUrl}${
|
|
2565
|
-
return o.config.app === "konnect" ? E = E.replace(/{controlPlaneId}/gi, ((u = o.config) == null ? void 0 : u.controlPlaneId) || "") : o.config.app === "kongManager" && (E = E.replace(/\/{workspace}/gi, (
|
|
2566
|
-
}), a =
|
|
2595
|
+
var u, A;
|
|
2596
|
+
let E = `${o.config.apiBaseUrl}${Ae.list[o.config.app]}`;
|
|
2597
|
+
return o.config.app === "konnect" ? E = E.replace(/{controlPlaneId}/gi, ((u = o.config) == null ? void 0 : u.controlPlaneId) || "") : o.config.app === "kongManager" && (E = E.replace(/\/{workspace}/gi, (A = o.config) != null && A.workspace ? `/${o.config.workspace}` : "")), E;
|
|
2598
|
+
}), a = M(!1), f = M(""), g = M(null), s = M(void 0), c = M(!1), _ = M(!1), h = M(""), b = M(!1), w = On(o.config, r.value), l = M(1), S = H(() => o.config.app !== "kongManager" || !!o.config.disableSorting), { fetcher: C, fetcherState: I } = xn(o.config, r.value), { i18n: { t: d } } = ue.useI18n(), { axiosInstance: k } = pt((ve = o.config) == null ? void 0 : ve.axiosRequestConfig), j = zt(), x = M(""), ee = H(() => {
|
|
2567
2599
|
const E = o.config.app === "konnect" || o.config.isExactMatch;
|
|
2568
2600
|
if (E)
|
|
2569
2601
|
return {
|
|
@@ -2578,7 +2610,7 @@ const Ve = (e) => {
|
|
|
2578
2610
|
},
|
|
2579
2611
|
schema: o.config.filterSchema
|
|
2580
2612
|
};
|
|
2581
|
-
}), { fetcher: Q } = Ve(o.config), z =
|
|
2613
|
+
}), { fetcher: Q } = Ve(o.config), z = M({
|
|
2582
2614
|
ctaPath: o.config.createRoute,
|
|
2583
2615
|
ctaText: void 0,
|
|
2584
2616
|
message: `${d("redis.empty_state.description")}${o.config.additionMessageForEmptyState ? ` ${o.config.additionMessageForEmptyState}` : ""}`,
|
|
@@ -2586,6 +2618,7 @@ const Ve = (e) => {
|
|
|
2586
2618
|
}), ae = {
|
|
2587
2619
|
name: { label: d("list.table_headers.name"), searchable: !0, hidable: !1, sortable: !0 },
|
|
2588
2620
|
type: { label: d("list.table_headers.type") },
|
|
2621
|
+
tags: { label: d("list.table_headers.tags") },
|
|
2589
2622
|
plugins: { label: d("list.table_headers.plugins") }
|
|
2590
2623
|
}, W = (E) => ({
|
|
2591
2624
|
label: d("actions.view"),
|
|
@@ -2597,24 +2630,24 @@ const Ve = (e) => {
|
|
|
2597
2630
|
const { count: u } = await Q({ partialId: E.id });
|
|
2598
2631
|
u > 0 ? b.value = !0 : (s.value = E, c.value = !0);
|
|
2599
2632
|
}, G = () => {
|
|
2600
|
-
|
|
2633
|
+
x.value = "";
|
|
2601
2634
|
}, be = async (E) => {
|
|
2602
|
-
var
|
|
2603
|
-
await ((
|
|
2635
|
+
var A;
|
|
2636
|
+
await ((A = o.canRetrieve) == null ? void 0 : A.call(o, E)) && j.push(o.config.getViewRoute(E.id));
|
|
2604
2637
|
}, pe = () => {
|
|
2605
2638
|
c.value = !1;
|
|
2606
2639
|
}, ye = (E) => {
|
|
2607
2640
|
f.value = E, a.value = !0;
|
|
2608
2641
|
}, O = async () => {
|
|
2609
|
-
var E, u,
|
|
2642
|
+
var E, u, A;
|
|
2610
2643
|
if ((E = s.value) != null && E.id) {
|
|
2611
|
-
|
|
2644
|
+
_.value = !0;
|
|
2612
2645
|
try {
|
|
2613
|
-
await k.delete(w(s.value.id)),
|
|
2646
|
+
await k.delete(w(s.value.id)), _.value = !1, c.value = !1, m(), n("delete:success", s.value);
|
|
2614
2647
|
} catch (J) {
|
|
2615
|
-
|
|
2648
|
+
h.value = ((A = (u = J.response) == null ? void 0 : u.data) == null ? void 0 : A.message) || J.message || d("errors.delete"), n("error", J);
|
|
2616
2649
|
} finally {
|
|
2617
|
-
|
|
2650
|
+
_.value = !1;
|
|
2618
2651
|
}
|
|
2619
2652
|
}
|
|
2620
2653
|
}, m = () => {
|
|
@@ -2631,10 +2664,10 @@ const Ve = (e) => {
|
|
|
2631
2664
|
return `${d("form.options.type.cluster")}${d("form.options.type.suffix_enterprise")}`;
|
|
2632
2665
|
}
|
|
2633
2666
|
}, $e = () => {
|
|
2634
|
-
|
|
2667
|
+
j.push(o.config.createRoute);
|
|
2635
2668
|
}, U = (E, u) => {
|
|
2636
|
-
const
|
|
2637
|
-
if (!u(
|
|
2669
|
+
const A = E.id;
|
|
2670
|
+
if (!u(A)) {
|
|
2638
2671
|
n("copy:error", {
|
|
2639
2672
|
entity: E,
|
|
2640
2673
|
field: "id",
|
|
@@ -2645,60 +2678,60 @@ const Ve = (e) => {
|
|
|
2645
2678
|
n("copy:success", {
|
|
2646
2679
|
entity: E,
|
|
2647
2680
|
field: "id",
|
|
2648
|
-
message: d("copy.success", { val:
|
|
2681
|
+
message: d("copy.success", { val: A })
|
|
2649
2682
|
});
|
|
2650
2683
|
};
|
|
2651
2684
|
return Ie(I, (E) => {
|
|
2652
|
-
var u,
|
|
2653
|
-
if (E.status ===
|
|
2654
|
-
|
|
2685
|
+
var u, A, J;
|
|
2686
|
+
if (E.status === An.Error) {
|
|
2687
|
+
g.value = {
|
|
2655
2688
|
title: d("errors.general")
|
|
2656
|
-
}, (J = (
|
|
2689
|
+
}, (J = (A = (u = E.error) == null ? void 0 : u.response) == null ? void 0 : A.data) != null && J.message && (g.value.message = E.error.response.data.message), n("error", E.error);
|
|
2657
2690
|
return;
|
|
2658
2691
|
}
|
|
2659
|
-
|
|
2692
|
+
g.value = null;
|
|
2660
2693
|
}), Ie(o.canCreate, async (E) => {
|
|
2661
2694
|
await E ? z.value.ctaText = d("actions.create") : z.value.ctaText = void 0;
|
|
2662
2695
|
}, {
|
|
2663
2696
|
immediate: !0
|
|
2664
2697
|
}), (E, u) => {
|
|
2665
|
-
const
|
|
2666
|
-
return R(), q("div",
|
|
2667
|
-
p(i(
|
|
2698
|
+
const A = D("KButton"), J = D("KDropdownItem"), bn = D("KClipboardProvider");
|
|
2699
|
+
return R(), q("div", Aa, [
|
|
2700
|
+
p(i(Pn), {
|
|
2668
2701
|
"cache-identifier": e.cacheIdentifier,
|
|
2669
2702
|
"disable-sorting": S.value,
|
|
2670
2703
|
"empty-state-options": z.value,
|
|
2671
2704
|
"enable-entity-actions": "",
|
|
2672
|
-
"error-message":
|
|
2705
|
+
"error-message": g.value,
|
|
2673
2706
|
fetcher: i(C),
|
|
2674
2707
|
"fetcher-cache-key": l.value,
|
|
2675
2708
|
"pagination-type": "offset",
|
|
2676
2709
|
"preferences-storage-key": "kong-ui-entities-redis-configuration-list",
|
|
2677
|
-
query:
|
|
2710
|
+
query: x.value,
|
|
2678
2711
|
"table-headers": ae,
|
|
2679
2712
|
onClearSearchInput: G,
|
|
2680
|
-
"onClick:row": u[2] || (u[2] = (
|
|
2713
|
+
"onClick:row": u[2] || (u[2] = (P) => be(P)),
|
|
2681
2714
|
onSort: m
|
|
2682
2715
|
}, Ft({
|
|
2683
|
-
"toolbar-filter":
|
|
2716
|
+
"toolbar-filter": T(() => [
|
|
2684
2717
|
p(i(Kt), {
|
|
2685
|
-
modelValue:
|
|
2686
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
2718
|
+
modelValue: x.value,
|
|
2719
|
+
"onUpdate:modelValue": u[0] || (u[0] = (P) => x.value = P),
|
|
2687
2720
|
config: ee.value
|
|
2688
2721
|
}, null, 8, ["modelValue", "config"])
|
|
2689
2722
|
]),
|
|
2690
|
-
"toolbar-button":
|
|
2723
|
+
"toolbar-button": T(() => [
|
|
2691
2724
|
p(i(Le), {
|
|
2692
2725
|
"auth-function": () => e.canCreate()
|
|
2693
2726
|
}, {
|
|
2694
|
-
default:
|
|
2695
|
-
p(
|
|
2727
|
+
default: T(() => [
|
|
2728
|
+
p(A, {
|
|
2696
2729
|
appearance: "primary",
|
|
2697
2730
|
"data-testid": "toolbar-add-redis-configuration",
|
|
2698
2731
|
size: "large",
|
|
2699
2732
|
to: e.config.createRoute
|
|
2700
2733
|
}, {
|
|
2701
|
-
default:
|
|
2734
|
+
default: T(() => [
|
|
2702
2735
|
p(i(Nn)),
|
|
2703
2736
|
Z(" " + B(i(d)("actions.create")), 1)
|
|
2704
2737
|
]),
|
|
@@ -2708,27 +2741,30 @@ const Ve = (e) => {
|
|
|
2708
2741
|
_: 1
|
|
2709
2742
|
}, 8, ["auth-function"])
|
|
2710
2743
|
]),
|
|
2711
|
-
name:
|
|
2712
|
-
K("b", null, B(
|
|
2744
|
+
name: T(({ rowValue: P }) => [
|
|
2745
|
+
K("b", null, B(P ?? "-"), 1)
|
|
2746
|
+
]),
|
|
2747
|
+
type: T(({ row: P }) => [
|
|
2748
|
+
Z(B(Ge(P)), 1)
|
|
2713
2749
|
]),
|
|
2714
|
-
|
|
2715
|
-
|
|
2750
|
+
tags: T(({ rowValue: P }) => [
|
|
2751
|
+
p(i(Vn), { tags: P }, null, 8, ["tags"])
|
|
2716
2752
|
]),
|
|
2717
|
-
plugins:
|
|
2718
|
-
p(
|
|
2753
|
+
plugins: T(({ row: P }) => [
|
|
2754
|
+
p(ha, {
|
|
2719
2755
|
config: e.config,
|
|
2720
|
-
"partial-id":
|
|
2721
|
-
onClick: In((Je) => ye(
|
|
2756
|
+
"partial-id": P.id,
|
|
2757
|
+
onClick: In((Je) => ye(P.id), ["stop"])
|
|
2722
2758
|
}, null, 8, ["config", "partial-id", "onClick"])
|
|
2723
2759
|
]),
|
|
2724
|
-
actions:
|
|
2760
|
+
actions: T(({ row: P }) => [
|
|
2725
2761
|
p(bn, null, {
|
|
2726
|
-
default:
|
|
2762
|
+
default: T(({ copyToClipboard: Je }) => [
|
|
2727
2763
|
p(J, {
|
|
2728
2764
|
"data-testid": "action-entity-copy-id",
|
|
2729
|
-
onClick: (
|
|
2765
|
+
onClick: (La) => U(P, Je)
|
|
2730
2766
|
}, {
|
|
2731
|
-
default:
|
|
2767
|
+
default: T(() => [
|
|
2732
2768
|
Z(B(i(d)("actions.copy_id")), 1)
|
|
2733
2769
|
]),
|
|
2734
2770
|
_: 2
|
|
@@ -2737,39 +2773,39 @@ const Ve = (e) => {
|
|
|
2737
2773
|
_: 2
|
|
2738
2774
|
}, 1024),
|
|
2739
2775
|
p(i(Le), {
|
|
2740
|
-
"auth-function": () => e.canRetrieve(
|
|
2776
|
+
"auth-function": () => e.canRetrieve(P)
|
|
2741
2777
|
}, {
|
|
2742
|
-
default:
|
|
2778
|
+
default: T(() => [
|
|
2743
2779
|
p(J, {
|
|
2744
2780
|
"data-testid": "action-entity-view",
|
|
2745
2781
|
"has-divider": "",
|
|
2746
|
-
item: W(
|
|
2782
|
+
item: W(P.id)
|
|
2747
2783
|
}, null, 8, ["item"])
|
|
2748
2784
|
]),
|
|
2749
2785
|
_: 2
|
|
2750
2786
|
}, 1032, ["auth-function"]),
|
|
2751
2787
|
p(i(Le), {
|
|
2752
|
-
"auth-function": () => e.canEdit(
|
|
2788
|
+
"auth-function": () => e.canEdit(P)
|
|
2753
2789
|
}, {
|
|
2754
|
-
default:
|
|
2790
|
+
default: T(() => [
|
|
2755
2791
|
p(J, {
|
|
2756
2792
|
"data-testid": "action-entity-edit",
|
|
2757
|
-
item: ce(
|
|
2793
|
+
item: ce(P.id)
|
|
2758
2794
|
}, null, 8, ["item"])
|
|
2759
2795
|
]),
|
|
2760
2796
|
_: 2
|
|
2761
2797
|
}, 1032, ["auth-function"]),
|
|
2762
2798
|
p(i(Le), {
|
|
2763
|
-
"auth-function": () => e.canDelete(
|
|
2799
|
+
"auth-function": () => e.canDelete(P)
|
|
2764
2800
|
}, {
|
|
2765
|
-
default:
|
|
2801
|
+
default: T(() => [
|
|
2766
2802
|
p(J, {
|
|
2767
2803
|
danger: "",
|
|
2768
2804
|
"data-testid": "action-entity-delete",
|
|
2769
2805
|
"has-divider": "",
|
|
2770
|
-
onClick: (Je) => fe(
|
|
2806
|
+
onClick: (Je) => fe(P)
|
|
2771
2807
|
}, {
|
|
2772
|
-
default:
|
|
2808
|
+
default: T(() => [
|
|
2773
2809
|
Z(B(i(d)("actions.delete")), 1)
|
|
2774
2810
|
]),
|
|
2775
2811
|
_: 2
|
|
@@ -2782,8 +2818,8 @@ const Ve = (e) => {
|
|
|
2782
2818
|
}, [
|
|
2783
2819
|
e.enableV2EmptyStates && e.config.app === "konnect" ? {
|
|
2784
2820
|
name: "empty-state",
|
|
2785
|
-
fn:
|
|
2786
|
-
p(i(
|
|
2821
|
+
fn: T(() => [
|
|
2822
|
+
p(i($n), {
|
|
2787
2823
|
"action-button-text": i(d)("list.action"),
|
|
2788
2824
|
appearance: "secondary",
|
|
2789
2825
|
"can-create": () => e.canCreate(),
|
|
@@ -2804,19 +2840,19 @@ const Ve = (e) => {
|
|
|
2804
2840
|
"onClick:create": $e,
|
|
2805
2841
|
"onClick:learnMore": u[1] || (u[1] = () => n("click:learn-more"))
|
|
2806
2842
|
}, {
|
|
2807
|
-
image:
|
|
2843
|
+
image: T(() => [
|
|
2808
2844
|
K("div", Pa, [
|
|
2809
|
-
p(i(
|
|
2845
|
+
p(i(_t), {
|
|
2810
2846
|
color: i(_a),
|
|
2811
|
-
size: i(
|
|
2847
|
+
size: i(ba)
|
|
2812
2848
|
}, null, 8, ["color", "size"])
|
|
2813
2849
|
])
|
|
2814
2850
|
]),
|
|
2815
|
-
"feature-0-icon":
|
|
2816
|
-
p(i(
|
|
2851
|
+
"feature-0-icon": T(() => [
|
|
2852
|
+
p(i(_t))
|
|
2817
2853
|
]),
|
|
2818
|
-
"feature-1-icon":
|
|
2819
|
-
p(i(
|
|
2854
|
+
"feature-1-icon": T(() => [
|
|
2855
|
+
p(i(Bn))
|
|
2820
2856
|
]),
|
|
2821
2857
|
_: 1
|
|
2822
2858
|
}, 8, ["action-button-text", "can-create", "description", "features", "learn-more", "title"])
|
|
@@ -2824,34 +2860,34 @@ const Ve = (e) => {
|
|
|
2824
2860
|
key: "0"
|
|
2825
2861
|
} : void 0
|
|
2826
2862
|
]), 1032, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query"]),
|
|
2827
|
-
p(
|
|
2863
|
+
p(xa, {
|
|
2828
2864
|
visible: b.value,
|
|
2829
|
-
onClose: u[3] || (u[3] = (
|
|
2865
|
+
onClose: u[3] || (u[3] = (P) => b.value = !1)
|
|
2830
2866
|
}, null, 8, ["visible"]),
|
|
2831
|
-
p(i(
|
|
2832
|
-
"action-pending":
|
|
2867
|
+
p(i(Ln), {
|
|
2868
|
+
"action-pending": _.value,
|
|
2833
2869
|
description: i(d)("delete.description"),
|
|
2834
2870
|
"entity-name": s.value && (s.value.name || s.value.id),
|
|
2835
|
-
"entity-type": i(
|
|
2836
|
-
error:
|
|
2871
|
+
"entity-type": i(Mn).RedisConfiguration,
|
|
2872
|
+
error: h.value,
|
|
2837
2873
|
"need-confirmation": !0,
|
|
2838
2874
|
title: i(d)("delete.title"),
|
|
2839
2875
|
visible: c.value,
|
|
2840
2876
|
onCancel: pe,
|
|
2841
2877
|
onProceed: O
|
|
2842
2878
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
|
|
2843
|
-
p(
|
|
2879
|
+
p(Oa, {
|
|
2844
2880
|
config: e.config,
|
|
2845
2881
|
"redis-configuration-id": f.value,
|
|
2846
2882
|
visible: a.value,
|
|
2847
|
-
onCancel: u[4] || (u[4] = (
|
|
2848
|
-
onProceed: u[5] || (u[5] = (
|
|
2849
|
-
onViewPlugin: u[6] || (u[6] = (
|
|
2883
|
+
onCancel: u[4] || (u[4] = (P) => a.value = !1),
|
|
2884
|
+
onProceed: u[5] || (u[5] = (P) => a.value = !1),
|
|
2885
|
+
onViewPlugin: u[6] || (u[6] = (P) => n("click:plugin", P))
|
|
2850
2886
|
}, null, 8, ["config", "redis-configuration-id", "visible"])
|
|
2851
2887
|
]);
|
|
2852
2888
|
};
|
|
2853
2889
|
}
|
|
2854
|
-
}),
|
|
2890
|
+
}), Ga = /* @__PURE__ */ oe(Va, [["__scopeId", "data-v-5063721d"]]), $a = { class: "kong-ui-consumer-group-entity-config-card" }, Ja = /* @__PURE__ */ Y({
|
|
2855
2891
|
__name: "RedisConfigurationConfigCard",
|
|
2856
2892
|
props: {
|
|
2857
2893
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2878,7 +2914,7 @@ const Ve = (e) => {
|
|
|
2878
2914
|
},
|
|
2879
2915
|
emits: ["loading", "fetch:error", "fetch:success"],
|
|
2880
2916
|
setup(e, { emit: t }) {
|
|
2881
|
-
const n = e, o = t, { i18n: { t: r } } = ue.useI18n(), a = H(() =>
|
|
2917
|
+
const n = e, o = t, { i18n: { t: r } } = ue.useI18n(), a = H(() => Ae.form[n.config.app].edit), f = M(mt), g = (l) => {
|
|
2882
2918
|
f.value = We(l), o("fetch:success", l);
|
|
2883
2919
|
}, s = H(() => {
|
|
2884
2920
|
const l = f.value === y.HOST_PORT_CE ? r("form.options.type.suffix_open_source") : r("form.options.type.suffix_enterprise");
|
|
@@ -2901,178 +2937,186 @@ const Ve = (e) => {
|
|
|
2901
2937
|
}), c = (l) => ({
|
|
2902
2938
|
id: l.id,
|
|
2903
2939
|
name: l.name,
|
|
2940
|
+
tags: l.tags,
|
|
2904
2941
|
created_at: l.created_at,
|
|
2905
2942
|
updated_at: l.updated_at,
|
|
2906
2943
|
type: l.type,
|
|
2907
2944
|
...l.config
|
|
2908
|
-
}),
|
|
2909
|
-
const { id: S, name: C, created_at: I, updated_at: d, type: k, ...
|
|
2945
|
+
}), _ = (l) => {
|
|
2946
|
+
const { id: S, name: C, created_at: I, updated_at: d, type: k, tags: j, ...x } = l;
|
|
2910
2947
|
return {
|
|
2911
2948
|
id: S,
|
|
2912
2949
|
name: C,
|
|
2950
|
+
tags: j,
|
|
2913
2951
|
created_at: I,
|
|
2914
2952
|
updated_at: d,
|
|
2915
2953
|
type: k,
|
|
2916
|
-
config:
|
|
2954
|
+
config: x
|
|
2917
2955
|
};
|
|
2918
|
-
},
|
|
2956
|
+
}, h = {
|
|
2919
2957
|
id: {},
|
|
2920
2958
|
name: {
|
|
2921
|
-
type:
|
|
2922
|
-
section:
|
|
2959
|
+
type: V.Text,
|
|
2960
|
+
section: $.Basic,
|
|
2923
2961
|
label: r("form.fields.name.label")
|
|
2924
2962
|
},
|
|
2963
|
+
tags: {
|
|
2964
|
+
type: V.BadgeTag,
|
|
2965
|
+
section: $.Basic,
|
|
2966
|
+
label: r("form.fields.tags.label"),
|
|
2967
|
+
tooltip: r("form.fields.tags.tooltip")
|
|
2968
|
+
},
|
|
2925
2969
|
updated_at: {},
|
|
2926
2970
|
created_at: {},
|
|
2927
2971
|
type: {
|
|
2928
|
-
type:
|
|
2929
|
-
section:
|
|
2972
|
+
type: V.Text,
|
|
2973
|
+
section: $.Basic,
|
|
2930
2974
|
label: r("form.fields.type.label")
|
|
2931
2975
|
},
|
|
2932
2976
|
cluster_max_redirections: {
|
|
2933
|
-
type:
|
|
2934
|
-
section:
|
|
2977
|
+
type: V.Text,
|
|
2978
|
+
section: $.Basic,
|
|
2935
2979
|
tooltip: r("form.fields.cluster_max_redirections.tooltip"),
|
|
2936
2980
|
label: r("form.fields.cluster_max_redirections.label")
|
|
2937
2981
|
},
|
|
2938
2982
|
cluster_nodes: {
|
|
2939
|
-
type:
|
|
2940
|
-
section:
|
|
2983
|
+
type: V.JsonArray,
|
|
2984
|
+
section: $.Basic,
|
|
2941
2985
|
label: r("form.fields.cluster_nodes.title"),
|
|
2942
2986
|
tooltip: r("form.fields.cluster_nodes.tooltip")
|
|
2943
2987
|
},
|
|
2944
2988
|
connect_timeout: {
|
|
2945
|
-
type:
|
|
2946
|
-
section:
|
|
2989
|
+
type: V.Text,
|
|
2990
|
+
section: $.Basic,
|
|
2947
2991
|
label: r("form.fields.connect_timeout.label"),
|
|
2948
2992
|
tooltip: r("form.fields.connect_timeout.tooltip")
|
|
2949
2993
|
},
|
|
2950
2994
|
connection_is_proxied: {
|
|
2951
|
-
type:
|
|
2952
|
-
section:
|
|
2995
|
+
type: V.Text,
|
|
2996
|
+
section: $.Basic,
|
|
2953
2997
|
label: r("form.fields.connection_is_proxied.label"),
|
|
2954
2998
|
tooltip: r("form.fields.connection_is_proxied.tooltip")
|
|
2955
2999
|
},
|
|
2956
3000
|
database: {
|
|
2957
|
-
type:
|
|
2958
|
-
section:
|
|
3001
|
+
type: V.Text,
|
|
3002
|
+
section: $.Basic,
|
|
2959
3003
|
label: r("form.fields.database.label"),
|
|
2960
3004
|
tooltip: r("form.fields.database.tooltip")
|
|
2961
3005
|
},
|
|
2962
3006
|
host: {
|
|
2963
|
-
type:
|
|
2964
|
-
section:
|
|
3007
|
+
type: V.Text,
|
|
3008
|
+
section: $.Basic,
|
|
2965
3009
|
label: r("form.fields.host.label"),
|
|
2966
3010
|
tooltip: r("form.fields.host.tooltip")
|
|
2967
3011
|
},
|
|
2968
3012
|
keepalive_backlog: {
|
|
2969
|
-
type:
|
|
2970
|
-
section:
|
|
3013
|
+
type: V.Text,
|
|
3014
|
+
section: $.Basic,
|
|
2971
3015
|
label: r("form.fields.keepalive_backlog.label"),
|
|
2972
3016
|
tooltip: r("form.fields.keepalive_backlog.tooltip")
|
|
2973
3017
|
},
|
|
2974
3018
|
keepalive_pool_size: {
|
|
2975
|
-
type:
|
|
2976
|
-
section:
|
|
3019
|
+
type: V.Text,
|
|
3020
|
+
section: $.Basic,
|
|
2977
3021
|
label: r("form.fields.keepalive_pool_size.label"),
|
|
2978
3022
|
tooltip: r("form.fields.keepalive_pool_size.tooltip")
|
|
2979
3023
|
},
|
|
2980
3024
|
password: {
|
|
2981
|
-
type:
|
|
2982
|
-
section:
|
|
3025
|
+
type: V.Redacted,
|
|
3026
|
+
section: $.Basic,
|
|
2983
3027
|
label: r("form.fields.password.label"),
|
|
2984
3028
|
tooltip: r("form.fields.password.tooltip")
|
|
2985
3029
|
},
|
|
2986
3030
|
port: {
|
|
2987
|
-
type:
|
|
2988
|
-
section:
|
|
3031
|
+
type: V.Text,
|
|
3032
|
+
section: $.Basic,
|
|
2989
3033
|
label: r("form.fields.port.label"),
|
|
2990
3034
|
tooltip: r("form.fields.port.tooltip")
|
|
2991
3035
|
},
|
|
2992
3036
|
read_timeout: {
|
|
2993
|
-
type:
|
|
2994
|
-
section:
|
|
3037
|
+
type: V.Text,
|
|
3038
|
+
section: $.Basic,
|
|
2995
3039
|
label: r("form.fields.read_timeout.label"),
|
|
2996
3040
|
tooltip: r("form.fields.read_timeout.tooltip")
|
|
2997
3041
|
},
|
|
2998
3042
|
send_timeout: {
|
|
2999
|
-
type:
|
|
3000
|
-
section:
|
|
3043
|
+
type: V.Text,
|
|
3044
|
+
section: $.Basic,
|
|
3001
3045
|
label: r("form.fields.send_timeout.label"),
|
|
3002
3046
|
tooltip: r("form.fields.send_timeout.tooltip")
|
|
3003
3047
|
},
|
|
3004
3048
|
sentinel_master: {
|
|
3005
|
-
type:
|
|
3006
|
-
section:
|
|
3049
|
+
type: V.Text,
|
|
3050
|
+
section: $.Basic,
|
|
3007
3051
|
label: r("form.fields.sentinel_master.label"),
|
|
3008
3052
|
tooltip: r("form.fields.sentinel_master.tooltip")
|
|
3009
3053
|
},
|
|
3010
3054
|
sentinel_nodes: {
|
|
3011
|
-
type:
|
|
3012
|
-
section:
|
|
3055
|
+
type: V.JsonArray,
|
|
3056
|
+
section: $.Basic,
|
|
3013
3057
|
tooltip: r("form.fields.sentinel_nodes.tooltip")
|
|
3014
3058
|
},
|
|
3015
3059
|
sentinel_password: {
|
|
3016
|
-
type:
|
|
3017
|
-
section:
|
|
3060
|
+
type: V.Redacted,
|
|
3061
|
+
section: $.Basic,
|
|
3018
3062
|
label: r("form.fields.sentinel_password.label"),
|
|
3019
3063
|
tooltip: r("form.fields.sentinel_password.tooltip")
|
|
3020
3064
|
},
|
|
3021
3065
|
sentinel_role: {
|
|
3022
|
-
type:
|
|
3023
|
-
section:
|
|
3066
|
+
type: V.Text,
|
|
3067
|
+
section: $.Basic,
|
|
3024
3068
|
label: r("form.fields.sentinel_role.label"),
|
|
3025
3069
|
tooltip: r("form.fields.sentinel_role.tooltip")
|
|
3026
3070
|
},
|
|
3027
3071
|
sentinel_username: {
|
|
3028
|
-
type:
|
|
3029
|
-
section:
|
|
3072
|
+
type: V.Text,
|
|
3073
|
+
section: $.Basic,
|
|
3030
3074
|
label: r("form.fields.sentinel_username.label"),
|
|
3031
3075
|
tooltip: r("form.fields.sentinel_username.tooltip")
|
|
3032
3076
|
},
|
|
3033
3077
|
server_name: {
|
|
3034
|
-
type:
|
|
3035
|
-
section:
|
|
3078
|
+
type: V.Text,
|
|
3079
|
+
section: $.Basic,
|
|
3036
3080
|
label: r("form.fields.server_name.label"),
|
|
3037
3081
|
tooltip: r("form.fields.server_name.tooltip")
|
|
3038
3082
|
},
|
|
3039
3083
|
ssl_verify: {
|
|
3040
|
-
type:
|
|
3041
|
-
section:
|
|
3084
|
+
type: V.Text,
|
|
3085
|
+
section: $.Basic,
|
|
3042
3086
|
label: r("form.fields.ssl_verify.label"),
|
|
3043
3087
|
tooltip: r("form.fields.ssl_verify.tooltip")
|
|
3044
3088
|
},
|
|
3045
3089
|
ssl: {
|
|
3046
|
-
type:
|
|
3047
|
-
section:
|
|
3090
|
+
type: V.Text,
|
|
3091
|
+
section: $.Basic,
|
|
3048
3092
|
label: r("form.fields.ssl.label"),
|
|
3049
3093
|
tooltip: r("form.fields.ssl.tooltip")
|
|
3050
3094
|
},
|
|
3051
3095
|
timeout: {
|
|
3052
|
-
type:
|
|
3053
|
-
section:
|
|
3096
|
+
type: V.Text,
|
|
3097
|
+
section: $.Basic,
|
|
3054
3098
|
label: r("form.fields.timeout.label"),
|
|
3055
3099
|
tooltip: r("form.fields.timeout.tooltip")
|
|
3056
3100
|
},
|
|
3057
3101
|
username: {
|
|
3058
|
-
type:
|
|
3059
|
-
section:
|
|
3102
|
+
type: V.Text,
|
|
3103
|
+
section: $.Basic,
|
|
3060
3104
|
label: r("form.fields.username.label"),
|
|
3061
3105
|
tooltip: r("form.fields.username.tooltip")
|
|
3062
3106
|
}
|
|
3063
3107
|
}, b = (l) => {
|
|
3064
|
-
const S = {}, C = Object.keys(
|
|
3108
|
+
const S = {}, C = Object.keys(h);
|
|
3065
3109
|
for (const I of C)
|
|
3066
3110
|
l.includes(I) ? S[I] = {
|
|
3067
|
-
...
|
|
3111
|
+
...h[I],
|
|
3068
3112
|
order: l.indexOf(I) + 1
|
|
3069
3113
|
} : S[I] = {
|
|
3070
|
-
...
|
|
3114
|
+
...h[I],
|
|
3071
3115
|
hidden: !0
|
|
3072
3116
|
};
|
|
3073
3117
|
return S;
|
|
3074
3118
|
}, w = H(() => {
|
|
3075
|
-
const l = ["id", "name", "type", "updated_at", "created_at"];
|
|
3119
|
+
const l = ["id", "name", "tags", "type", "updated_at", "created_at"];
|
|
3076
3120
|
switch (f.value) {
|
|
3077
3121
|
case y.HOST_PORT_CE:
|
|
3078
3122
|
return b([
|
|
@@ -3146,9 +3190,9 @@ const Ve = (e) => {
|
|
|
3146
3190
|
throw new Error("Invalid Redis type");
|
|
3147
3191
|
}
|
|
3148
3192
|
});
|
|
3149
|
-
return (l, S) => (R(), q("div",
|
|
3150
|
-
p(i(
|
|
3151
|
-
"code-block-record-formatter":
|
|
3193
|
+
return (l, S) => (R(), q("div", $a, [
|
|
3194
|
+
p(i(Dn), {
|
|
3195
|
+
"code-block-record-formatter": _,
|
|
3152
3196
|
config: e.config,
|
|
3153
3197
|
"config-card-doc": e.configCardDoc,
|
|
3154
3198
|
"config-schema": w.value,
|
|
@@ -3157,29 +3201,29 @@ const Ve = (e) => {
|
|
|
3157
3201
|
"hide-title": e.hideTitle,
|
|
3158
3202
|
"record-resolver": c,
|
|
3159
3203
|
"onFetch:error": S[0] || (S[0] = (C) => l.$emit("fetch:error", C)),
|
|
3160
|
-
"onFetch:success":
|
|
3204
|
+
"onFetch:success": g,
|
|
3161
3205
|
onLoading: S[1] || (S[1] = (C) => l.$emit("loading", C))
|
|
3162
3206
|
}, {
|
|
3163
|
-
type:
|
|
3207
|
+
type: T(() => [
|
|
3164
3208
|
K("div", null, B(s.value), 1)
|
|
3165
3209
|
]),
|
|
3166
3210
|
_: 1
|
|
3167
3211
|
}, 8, ["config", "config-card-doc", "config-schema", "entity-type", "fetch-url", "hide-title"])
|
|
3168
3212
|
]));
|
|
3169
3213
|
}
|
|
3170
|
-
}),
|
|
3171
|
-
useLinkedPlugins:
|
|
3214
|
+
}), Ya = {
|
|
3215
|
+
useLinkedPlugins: _n,
|
|
3172
3216
|
useLinkedPluginsFetcher: Ve
|
|
3173
3217
|
};
|
|
3174
3218
|
export {
|
|
3175
|
-
|
|
3176
|
-
|
|
3219
|
+
xa as DeleteWarningModal,
|
|
3220
|
+
Ia as LinkedPlugins,
|
|
3177
3221
|
ne as PartialType,
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3222
|
+
Ja as RedisConfigurationConfigCard,
|
|
3223
|
+
Wa as RedisConfigurationForm,
|
|
3224
|
+
Ga as RedisConfigurationList,
|
|
3181
3225
|
y as RedisType,
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3226
|
+
Ya as composables,
|
|
3227
|
+
za as constants,
|
|
3228
|
+
qa as helpers
|
|
3185
3229
|
};
|