@kong-ui-public/entities-redis-configurations 1.3.5 → 1.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
import { computed as H, reactive as
|
|
1
|
+
import { computed as H, reactive as Ut, ref as $, watch as ke, defineComponent as Q, resolveComponent as D, createElementBlock as q, openBlock as k, createVNode as m, withCtx as E, renderSlot as _n, unref as i, mergeModels as Nt, useModel as jt, createElementVNode as K, createTextVNode as te, toDisplayString as B, Fragment as qe, renderList as pt, createBlock as F, getCurrentInstance as bn, onMounted as yn, onUnmounted as vn, isReadonly as hn, toRefs as Tn, onBeforeMount as wn, createCommentVNode as ee, isRef as Sn, createSlots as En, withModifiers as Cn, Teleport 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
|
|
5
|
-
import { VaultSecretPickerProvider as Ue, VaultSecretPicker as
|
|
6
|
-
import { useRouter as
|
|
7
|
-
import { TrashIcon as
|
|
8
|
-
import { createI18n as
|
|
9
|
-
import { PluginIcon as
|
|
10
|
-
var T = /* @__PURE__ */ ((e) => (e[e.HOST_PORT_CE = 0] = "HOST_PORT_CE", e[e.HOST_PORT_EE = 1] = "HOST_PORT_EE", e[e.SENTINEL = 2] = "SENTINEL", e[e.CLUSTER = 3] = "CLUSTER", e))(T || {}), Y = /* @__PURE__ */ ((e) => (e.REDIS_CE = "redis-ce", e.REDIS_EE = "redis-ee", e))(Y || {}),
|
|
11
|
-
function
|
|
12
|
-
var t =
|
|
4
|
+
import { useAxios as mt, useErrors as Rn, EntityBaseFormType as Xe, EntityBaseForm as kn, SupportedEntityType as Bt, EntityFormSection as ue, EntityFilter as Ft, useDeleteUrlBuilder as On, useFetcher as xn, FetcherStatus as Pn, EntityBaseTable as An, EntityEmptyState as Vn, PermissionsWrapper as De, TableTags as $n, EntityDeleteModal as Ln, EntityTypes as Mn, ConfigurationSchemaSection as x, ConfigurationSchemaType as P, EntityBaseConfigCard as Dn } from "@kong-ui-public/entities-shared";
|
|
5
|
+
import { VaultSecretPickerProvider as Ue, VaultSecretPicker as Un } from "@kong-ui-public/entities-vaults";
|
|
6
|
+
import { useRouter as Ht } from "vue-router";
|
|
7
|
+
import { TrashIcon as Nn, AddCircleIcon as Kt, RefreshIcon as jn, ClipboardIcon as Bn, DeployIcon as Fn, AddIcon as Hn } from "@kong/icons";
|
|
8
|
+
import { createI18n as Kn, i18nTComponent as zn } from "@kong-ui-public/i18n";
|
|
9
|
+
import { PluginIcon as zt } from "@kong-ui-public/entities-plugins-icon";
|
|
10
|
+
var T = /* @__PURE__ */ ((e) => (e[e.HOST_PORT_CE = 0] = "HOST_PORT_CE", e[e.HOST_PORT_EE = 1] = "HOST_PORT_EE", e[e.SENTINEL = 2] = "SENTINEL", e[e.CLUSTER = 3] = "CLUSTER", e))(T || {}), Y = /* @__PURE__ */ ((e) => (e.REDIS_CE = "redis-ce", e.REDIS_EE = "redis-ee", e))(Y || {}), qt = typeof global == "object" && global && global.Object === Object && global, qn = typeof self == "object" && self && self.Object === Object && self, re = qt || qn || Function("return this")(), Ee = re.Symbol, Wt = Object.prototype, Wn = Wt.hasOwnProperty, Gn = Wt.toString, Ie = Ee ? Ee.toStringTag : void 0;
|
|
11
|
+
function Jn(e) {
|
|
12
|
+
var t = Wn.call(e, Ie), n = e[Ie];
|
|
13
13
|
try {
|
|
14
14
|
e[Ie] = void 0;
|
|
15
15
|
var o = !0;
|
|
16
16
|
} catch {
|
|
17
17
|
}
|
|
18
|
-
var r =
|
|
18
|
+
var r = Gn.call(e);
|
|
19
19
|
return o && (t ? e[Ie] = n : delete e[Ie]), r;
|
|
20
20
|
}
|
|
21
|
-
var
|
|
22
|
-
function
|
|
23
|
-
return
|
|
21
|
+
var Yn = Object.prototype, Qn = Yn.toString;
|
|
22
|
+
function Xn(e) {
|
|
23
|
+
return Qn.call(e);
|
|
24
24
|
}
|
|
25
|
-
var
|
|
25
|
+
var Zn = "[object Null]", ei = "[object Undefined]", _t = Ee ? Ee.toStringTag : void 0;
|
|
26
26
|
function $e(e) {
|
|
27
|
-
return e == null ? e === void 0 ?
|
|
27
|
+
return e == null ? e === void 0 ? ei : Zn : _t && _t in Object(e) ? Jn(e) : Xn(e);
|
|
28
28
|
}
|
|
29
29
|
function Oe(e) {
|
|
30
30
|
return e != null && typeof e == "object";
|
|
31
31
|
}
|
|
32
|
-
var
|
|
33
|
-
function
|
|
32
|
+
var Fe = Array.isArray;
|
|
33
|
+
function Gt(e) {
|
|
34
34
|
var t = typeof e;
|
|
35
35
|
return e != null && (t == "object" || t == "function");
|
|
36
36
|
}
|
|
37
|
-
var
|
|
38
|
-
function
|
|
39
|
-
if (!
|
|
37
|
+
var ti = "[object AsyncFunction]", ni = "[object Function]", ii = "[object GeneratorFunction]", ri = "[object Proxy]";
|
|
38
|
+
function Jt(e) {
|
|
39
|
+
if (!Gt(e))
|
|
40
40
|
return !1;
|
|
41
41
|
var t = $e(e);
|
|
42
|
-
return t ==
|
|
42
|
+
return t == ni || t == ii || t == ti || t == ri;
|
|
43
43
|
}
|
|
44
|
-
var
|
|
45
|
-
var e = /[^.]+$/.exec(
|
|
44
|
+
var Ze = re["__core-js_shared__"], bt = function() {
|
|
45
|
+
var e = /[^.]+$/.exec(Ze && Ze.keys && Ze.keys.IE_PROTO || "");
|
|
46
46
|
return e ? "Symbol(src)_1." + e : "";
|
|
47
47
|
}();
|
|
48
|
-
function
|
|
49
|
-
return !!
|
|
48
|
+
function oi(e) {
|
|
49
|
+
return !!bt && bt in e;
|
|
50
50
|
}
|
|
51
|
-
var
|
|
51
|
+
var ai = Function.prototype, li = ai.toString;
|
|
52
52
|
function _e(e) {
|
|
53
53
|
if (e != null) {
|
|
54
54
|
try {
|
|
55
|
-
return
|
|
55
|
+
return li.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 si = /[\\^$.*+?()[\]{}|]/g, di = /^\[object .+?Constructor\]$/, ui = Function.prototype, ci = Object.prototype, fi = ui.toString, pi = ci.hasOwnProperty, mi = RegExp(
|
|
66
|
+
"^" + fi.call(pi).replace(si, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
67
67
|
);
|
|
68
|
-
function
|
|
69
|
-
if (!
|
|
68
|
+
function gi(e) {
|
|
69
|
+
if (!Gt(e) || oi(e))
|
|
70
70
|
return !1;
|
|
71
|
-
var t =
|
|
71
|
+
var t = Jt(e) ? mi : di;
|
|
72
72
|
return t.test(_e(e));
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function _i(e, t) {
|
|
75
75
|
return e == null ? void 0 : e[t];
|
|
76
76
|
}
|
|
77
77
|
function Ce(e, t) {
|
|
78
|
-
var n =
|
|
79
|
-
return
|
|
78
|
+
var n = _i(e, t);
|
|
79
|
+
return gi(n) ? n : void 0;
|
|
80
80
|
}
|
|
81
|
-
var
|
|
82
|
-
function
|
|
81
|
+
var lt = Ce(re, "WeakMap"), bi = 9007199254740991, yi = /^(?:0|[1-9]\d*)$/;
|
|
82
|
+
function vi(e, t) {
|
|
83
83
|
var n = typeof e;
|
|
84
|
-
return t = t ??
|
|
84
|
+
return t = t ?? bi, !!t && (n == "number" || n != "symbol" && yi.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function Yt(e, t) {
|
|
87
87
|
return e === t || e !== e && t !== t;
|
|
88
88
|
}
|
|
89
|
-
var
|
|
90
|
-
function
|
|
91
|
-
return typeof e == "number" && e > -1 && e % 1 == 0 && e <=
|
|
89
|
+
var hi = 9007199254740991;
|
|
90
|
+
function Qt(e) {
|
|
91
|
+
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= hi;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
94
|
-
return e != null &&
|
|
93
|
+
function Ti(e) {
|
|
94
|
+
return e != null && Qt(e.length) && !Jt(e);
|
|
95
95
|
}
|
|
96
|
-
var
|
|
97
|
-
function
|
|
98
|
-
var t = e && e.constructor, n = typeof t == "function" && t.prototype ||
|
|
96
|
+
var wi = Object.prototype;
|
|
97
|
+
function Si(e) {
|
|
98
|
+
var t = e && e.constructor, n = typeof t == "function" && t.prototype || wi;
|
|
99
99
|
return e === n;
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function Ei(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
|
|
107
|
-
function
|
|
108
|
-
return Oe(e) && $e(e) ==
|
|
106
|
+
var Ci = "[object Arguments]";
|
|
107
|
+
function yt(e) {
|
|
108
|
+
return Oe(e) && $e(e) == Ci;
|
|
109
109
|
}
|
|
110
|
-
var
|
|
110
|
+
var Xt = Object.prototype, Ii = Xt.hasOwnProperty, Ri = Xt.propertyIsEnumerable, ki = yt(/* @__PURE__ */ function() {
|
|
111
111
|
return arguments;
|
|
112
|
-
}()) ?
|
|
113
|
-
return Oe(e) &&
|
|
112
|
+
}()) ? yt : function(e) {
|
|
113
|
+
return Oe(e) && Ii.call(e, "callee") && !Ri.call(e, "callee");
|
|
114
114
|
};
|
|
115
|
-
function
|
|
115
|
+
function Oi() {
|
|
116
116
|
return !1;
|
|
117
117
|
}
|
|
118
|
-
var
|
|
119
|
-
A[Gi] = A[Ji] = A[Yi] = A[Qi] = A[Xi] = A[Zi] = A[er] = A[tr] =
|
|
120
|
-
A[Vi] = A[
|
|
121
|
-
function
|
|
122
|
-
return Oe(e) &&
|
|
118
|
+
var Zt = typeof exports == "object" && exports && !exports.nodeType && exports, vt = Zt && typeof module == "object" && module && !module.nodeType && module, xi = vt && vt.exports === Zt, ht = xi ? re.Buffer : void 0, Pi = ht ? ht.isBuffer : void 0, st = Pi || Oi, Ai = "[object Arguments]", Vi = "[object Array]", $i = "[object Boolean]", Li = "[object Date]", Mi = "[object Error]", Di = "[object Function]", Ui = "[object Map]", Ni = "[object Number]", ji = "[object Object]", Bi = "[object RegExp]", Fi = "[object Set]", Hi = "[object String]", Ki = "[object WeakMap]", zi = "[object ArrayBuffer]", qi = "[object DataView]", Wi = "[object Float32Array]", Gi = "[object Float64Array]", Ji = "[object Int8Array]", Yi = "[object Int16Array]", Qi = "[object Int32Array]", Xi = "[object Uint8Array]", Zi = "[object Uint8ClampedArray]", er = "[object Uint16Array]", tr = "[object Uint32Array]", A = {};
|
|
119
|
+
A[Wi] = A[Gi] = A[Ji] = A[Yi] = A[Qi] = A[Xi] = A[Zi] = A[er] = A[tr] = !0;
|
|
120
|
+
A[Ai] = A[Vi] = A[zi] = A[$i] = A[qi] = A[Li] = A[Mi] = A[Di] = A[Ui] = A[Ni] = A[ji] = A[Bi] = A[Fi] = A[Hi] = A[Ki] = !1;
|
|
121
|
+
function nr(e) {
|
|
122
|
+
return Oe(e) && Qt(e.length) && !!A[$e(e)];
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function ir(e) {
|
|
125
125
|
return function(t) {
|
|
126
126
|
return e(t);
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
|
-
var
|
|
129
|
+
var en = typeof exports == "object" && exports && !exports.nodeType && exports, Re = en && typeof module == "object" && module && !module.nodeType && module, rr = Re && Re.exports === en, et = rr && qt.process, Tt = function() {
|
|
130
130
|
try {
|
|
131
131
|
var e = Re && Re.require && Re.require("util").types;
|
|
132
|
-
return e ||
|
|
132
|
+
return e || et && et.binding && et.binding("util");
|
|
133
133
|
} catch {
|
|
134
134
|
}
|
|
135
|
-
}(),
|
|
136
|
-
function
|
|
137
|
-
var n =
|
|
135
|
+
}(), wt = Tt && Tt.isTypedArray, tn = wt ? ir(wt) : nr, or = Object.prototype, ar = or.hasOwnProperty;
|
|
136
|
+
function lr(e, t) {
|
|
137
|
+
var n = Fe(e), o = !n && ki(e), r = !n && !o && st(e), a = !n && !o && !r && tn(e), p = n || o || r || a, _ = p ? Ei(e.length, String) : [], l = _.length;
|
|
138
138
|
for (var u in e)
|
|
139
|
-
|
|
139
|
+
ar.call(e, u) && !(p && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
140
140
|
(u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
141
141
|
r && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
142
142
|
a && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
|
|
143
|
-
|
|
143
|
+
vi(u, l))) && _.push(u);
|
|
144
144
|
return _;
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function sr(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 dr = sr(Object.keys, Object), ur = Object.prototype, cr = ur.hasOwnProperty;
|
|
152
|
+
function fr(e) {
|
|
153
|
+
if (!Si(e))
|
|
154
|
+
return dr(e);
|
|
155
155
|
var t = [];
|
|
156
156
|
for (var n in Object(e))
|
|
157
|
-
|
|
157
|
+
cr.call(e, n) && n != "constructor" && t.push(n);
|
|
158
158
|
return t;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
161
|
-
return
|
|
160
|
+
function pr(e) {
|
|
161
|
+
return Ti(e) ? lr(e) : fr(e);
|
|
162
162
|
}
|
|
163
163
|
var xe = Ce(Object, "create");
|
|
164
|
-
function
|
|
164
|
+
function mr() {
|
|
165
165
|
this.__data__ = xe ? xe(null) : {}, this.size = 0;
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function gr(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 _r = "__lodash_hash_undefined__", br = Object.prototype, yr = br.hasOwnProperty;
|
|
172
|
+
function vr(e) {
|
|
173
173
|
var t = this.__data__;
|
|
174
174
|
if (xe) {
|
|
175
175
|
var n = t[e];
|
|
176
|
-
return n ===
|
|
176
|
+
return n === _r ? void 0 : n;
|
|
177
177
|
}
|
|
178
|
-
return
|
|
178
|
+
return yr.call(t, e) ? t[e] : void 0;
|
|
179
179
|
}
|
|
180
|
-
var
|
|
181
|
-
function
|
|
180
|
+
var hr = Object.prototype, Tr = hr.hasOwnProperty;
|
|
181
|
+
function wr(e) {
|
|
182
182
|
var t = this.__data__;
|
|
183
|
-
return xe ? t[e] !== void 0 :
|
|
183
|
+
return xe ? t[e] !== void 0 : Tr.call(t, e);
|
|
184
184
|
}
|
|
185
|
-
var
|
|
186
|
-
function
|
|
185
|
+
var Sr = "__lodash_hash_undefined__";
|
|
186
|
+
function Er(e, t) {
|
|
187
187
|
var n = this.__data__;
|
|
188
|
-
return this.size += this.has(e) ? 0 : 1, n[e] = xe && t === void 0 ?
|
|
188
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = xe && t === void 0 ? Sr : t, this;
|
|
189
189
|
}
|
|
190
190
|
function ge(e) {
|
|
191
191
|
var t = -1, n = e == null ? 0 : e.length;
|
|
@@ -194,37 +194,37 @@ function ge(e) {
|
|
|
194
194
|
this.set(o[0], o[1]);
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
ge.prototype.clear =
|
|
198
|
-
ge.prototype.delete =
|
|
199
|
-
ge.prototype.get =
|
|
200
|
-
ge.prototype.has =
|
|
201
|
-
ge.prototype.set =
|
|
202
|
-
function
|
|
197
|
+
ge.prototype.clear = mr;
|
|
198
|
+
ge.prototype.delete = gr;
|
|
199
|
+
ge.prototype.get = vr;
|
|
200
|
+
ge.prototype.has = wr;
|
|
201
|
+
ge.prototype.set = Er;
|
|
202
|
+
function Cr() {
|
|
203
203
|
this.__data__ = [], this.size = 0;
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function We(e, t) {
|
|
206
206
|
for (var n = e.length; n--; )
|
|
207
|
-
if (
|
|
207
|
+
if (Yt(e[n][0], t))
|
|
208
208
|
return n;
|
|
209
209
|
return -1;
|
|
210
210
|
}
|
|
211
|
-
var
|
|
212
|
-
function
|
|
213
|
-
var t = this.__data__, n =
|
|
211
|
+
var Ir = Array.prototype, Rr = Ir.splice;
|
|
212
|
+
function kr(e) {
|
|
213
|
+
var t = this.__data__, n = We(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() : Rr.call(t, n, 1), --this.size, !0;
|
|
218
218
|
}
|
|
219
|
-
function
|
|
220
|
-
var t = this.__data__, n =
|
|
219
|
+
function Or(e) {
|
|
220
|
+
var t = this.__data__, n = We(t, e);
|
|
221
221
|
return n < 0 ? void 0 : t[n][1];
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
return
|
|
223
|
+
function xr(e) {
|
|
224
|
+
return We(this.__data__, e) > -1;
|
|
225
225
|
}
|
|
226
|
-
function
|
|
227
|
-
var n = this.__data__, o =
|
|
226
|
+
function Pr(e, t) {
|
|
227
|
+
var n = this.__data__, o = We(n, e);
|
|
228
228
|
return o < 0 ? (++this.size, n.push([e, t])) : n[o][1] = t, this;
|
|
229
229
|
}
|
|
230
230
|
function oe(e) {
|
|
@@ -234,39 +234,39 @@ function oe(e) {
|
|
|
234
234
|
this.set(o[0], o[1]);
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
|
-
oe.prototype.clear =
|
|
238
|
-
oe.prototype.delete =
|
|
239
|
-
oe.prototype.get =
|
|
240
|
-
oe.prototype.has =
|
|
241
|
-
oe.prototype.set =
|
|
237
|
+
oe.prototype.clear = Cr;
|
|
238
|
+
oe.prototype.delete = kr;
|
|
239
|
+
oe.prototype.get = Or;
|
|
240
|
+
oe.prototype.has = xr;
|
|
241
|
+
oe.prototype.set = Pr;
|
|
242
242
|
var Pe = Ce(re, "Map");
|
|
243
|
-
function
|
|
243
|
+
function Ar() {
|
|
244
244
|
this.size = 0, this.__data__ = {
|
|
245
245
|
hash: new ge(),
|
|
246
246
|
map: new (Pe || oe)(),
|
|
247
247
|
string: new ge()
|
|
248
248
|
};
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function Vr(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
|
-
function
|
|
254
|
+
function Ge(e, t) {
|
|
255
255
|
var n = e.__data__;
|
|
256
|
-
return
|
|
256
|
+
return Vr(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
257
257
|
}
|
|
258
|
-
function
|
|
259
|
-
var t =
|
|
258
|
+
function $r(e) {
|
|
259
|
+
var t = Ge(this, e).delete(e);
|
|
260
260
|
return this.size -= t ? 1 : 0, t;
|
|
261
261
|
}
|
|
262
|
-
function
|
|
263
|
-
return
|
|
262
|
+
function Lr(e) {
|
|
263
|
+
return Ge(this, e).get(e);
|
|
264
264
|
}
|
|
265
|
-
function
|
|
266
|
-
return
|
|
265
|
+
function Mr(e) {
|
|
266
|
+
return Ge(this, e).has(e);
|
|
267
267
|
}
|
|
268
|
-
function
|
|
269
|
-
var n =
|
|
268
|
+
function Dr(e, t) {
|
|
269
|
+
var n = Ge(this, e), o = n.size;
|
|
270
270
|
return n.set(e, t), this.size += n.size == o ? 0 : 1, this;
|
|
271
271
|
}
|
|
272
272
|
function be(e) {
|
|
@@ -276,35 +276,35 @@ function be(e) {
|
|
|
276
276
|
this.set(o[0], o[1]);
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
|
-
be.prototype.clear =
|
|
280
|
-
be.prototype.delete =
|
|
281
|
-
be.prototype.get =
|
|
282
|
-
be.prototype.has =
|
|
283
|
-
be.prototype.set =
|
|
284
|
-
function
|
|
279
|
+
be.prototype.clear = Ar;
|
|
280
|
+
be.prototype.delete = $r;
|
|
281
|
+
be.prototype.get = Lr;
|
|
282
|
+
be.prototype.has = Mr;
|
|
283
|
+
be.prototype.set = Dr;
|
|
284
|
+
function Ur(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 Nr() {
|
|
290
290
|
this.__data__ = new oe(), this.size = 0;
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function jr(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 Br(e) {
|
|
297
297
|
return this.__data__.get(e);
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function Fr(e) {
|
|
300
300
|
return this.__data__.has(e);
|
|
301
301
|
}
|
|
302
|
-
var
|
|
303
|
-
function
|
|
302
|
+
var Hr = 200;
|
|
303
|
+
function Kr(e, t) {
|
|
304
304
|
var n = this.__data__;
|
|
305
305
|
if (n instanceof oe) {
|
|
306
306
|
var o = n.__data__;
|
|
307
|
-
if (!Pe || o.length <
|
|
307
|
+
if (!Pe || o.length < Hr - 1)
|
|
308
308
|
return o.push([e, t]), this.size = ++n.size, this;
|
|
309
309
|
n = this.__data__ = new be(o);
|
|
310
310
|
}
|
|
@@ -314,83 +314,83 @@ function fe(e) {
|
|
|
314
314
|
var t = this.__data__ = new oe(e);
|
|
315
315
|
this.size = t.size;
|
|
316
316
|
}
|
|
317
|
-
fe.prototype.clear =
|
|
318
|
-
fe.prototype.delete =
|
|
319
|
-
fe.prototype.get =
|
|
320
|
-
fe.prototype.has =
|
|
321
|
-
fe.prototype.set =
|
|
322
|
-
function
|
|
317
|
+
fe.prototype.clear = Nr;
|
|
318
|
+
fe.prototype.delete = jr;
|
|
319
|
+
fe.prototype.get = Br;
|
|
320
|
+
fe.prototype.has = Fr;
|
|
321
|
+
fe.prototype.set = Kr;
|
|
322
|
+
function zr(e, t) {
|
|
323
323
|
for (var n = -1, o = e == null ? 0 : e.length, r = 0, a = []; ++n < o; ) {
|
|
324
324
|
var p = e[n];
|
|
325
325
|
t(p, n, e) && (a[r++] = p);
|
|
326
326
|
}
|
|
327
327
|
return a;
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function qr() {
|
|
330
330
|
return [];
|
|
331
331
|
}
|
|
332
|
-
var
|
|
333
|
-
return e == null ? [] : (e = Object(e),
|
|
334
|
-
return
|
|
332
|
+
var Wr = Object.prototype, Gr = Wr.propertyIsEnumerable, St = Object.getOwnPropertySymbols, Jr = St ? function(e) {
|
|
333
|
+
return e == null ? [] : (e = Object(e), zr(St(e), function(t) {
|
|
334
|
+
return Gr.call(e, t);
|
|
335
335
|
}));
|
|
336
|
-
} :
|
|
337
|
-
function
|
|
336
|
+
} : qr;
|
|
337
|
+
function Yr(e, t, n) {
|
|
338
338
|
var o = t(e);
|
|
339
|
-
return
|
|
339
|
+
return Fe(e) ? o : Ur(o, n(e));
|
|
340
340
|
}
|
|
341
|
-
function
|
|
342
|
-
return
|
|
341
|
+
function Et(e) {
|
|
342
|
+
return Yr(e, pr, Jr);
|
|
343
343
|
}
|
|
344
|
-
var
|
|
345
|
-
(
|
|
346
|
-
var t = $e(e), n = t ==
|
|
344
|
+
var dt = Ce(re, "DataView"), ut = Ce(re, "Promise"), ct = Ce(re, "Set"), Ct = "[object Map]", Qr = "[object Object]", It = "[object Promise]", Rt = "[object Set]", kt = "[object WeakMap]", Ot = "[object DataView]", Xr = _e(dt), Zr = _e(Pe), eo = _e(ut), to = _e(ct), no = _e(lt), ce = $e;
|
|
345
|
+
(dt && ce(new dt(new ArrayBuffer(1))) != Ot || Pe && ce(new Pe()) != Ct || ut && ce(ut.resolve()) != It || ct && ce(new ct()) != Rt || lt && ce(new lt()) != kt) && (ce = function(e) {
|
|
346
|
+
var t = $e(e), n = t == Qr ? e.constructor : void 0, o = n ? _e(n) : "";
|
|
347
347
|
if (o)
|
|
348
348
|
switch (o) {
|
|
349
|
+
case Xr:
|
|
350
|
+
return Ot;
|
|
349
351
|
case Zr:
|
|
350
|
-
return
|
|
352
|
+
return Ct;
|
|
351
353
|
case eo:
|
|
352
354
|
return It;
|
|
353
355
|
case to:
|
|
354
356
|
return Rt;
|
|
355
357
|
case no:
|
|
356
358
|
return kt;
|
|
357
|
-
case io:
|
|
358
|
-
return Ot;
|
|
359
359
|
}
|
|
360
360
|
return t;
|
|
361
361
|
});
|
|
362
|
-
var
|
|
363
|
-
function
|
|
364
|
-
return this.__data__.set(e,
|
|
362
|
+
var xt = re.Uint8Array, io = "__lodash_hash_undefined__";
|
|
363
|
+
function ro(e) {
|
|
364
|
+
return this.__data__.set(e, io), this;
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function oo(e) {
|
|
367
367
|
return this.__data__.has(e);
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function He(e) {
|
|
370
370
|
var t = -1, n = e == null ? 0 : e.length;
|
|
371
371
|
for (this.__data__ = new be(); ++t < n; )
|
|
372
372
|
this.add(e[t]);
|
|
373
373
|
}
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
function
|
|
374
|
+
He.prototype.add = He.prototype.push = ro;
|
|
375
|
+
He.prototype.has = oo;
|
|
376
|
+
function ao(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 lo(e, t) {
|
|
383
383
|
return e.has(t);
|
|
384
384
|
}
|
|
385
|
-
var
|
|
386
|
-
function
|
|
387
|
-
var p = n &
|
|
385
|
+
var so = 1, uo = 2;
|
|
386
|
+
function nn(e, t, n, o, r, a) {
|
|
387
|
+
var p = n & so, _ = e.length, l = t.length;
|
|
388
388
|
if (_ != l && !(p && l > _))
|
|
389
389
|
return !1;
|
|
390
390
|
var u = a.get(e), y = a.get(t);
|
|
391
391
|
if (u && y)
|
|
392
392
|
return u == t && y == e;
|
|
393
|
-
var w = -1, b = !0, S = n &
|
|
393
|
+
var w = -1, b = !0, S = n & uo ? new He() : void 0;
|
|
394
394
|
for (a.set(e, t), a.set(t, e); ++w < _; ) {
|
|
395
395
|
var v = e[w], s = t[w];
|
|
396
396
|
if (o)
|
|
@@ -402,8 +402,8 @@ function rn(e, t, n, o, r, a) {
|
|
|
402
402
|
break;
|
|
403
403
|
}
|
|
404
404
|
if (S) {
|
|
405
|
-
if (!
|
|
406
|
-
if (!
|
|
405
|
+
if (!ao(t, function(V, f) {
|
|
406
|
+
if (!lo(S, f) && (v === V || r(v, V, n, o, a)))
|
|
407
407
|
return S.push(f);
|
|
408
408
|
})) {
|
|
409
409
|
b = !1;
|
|
@@ -416,62 +416,62 @@ function rn(e, t, n, o, r, a) {
|
|
|
416
416
|
}
|
|
417
417
|
return a.delete(e), a.delete(t), b;
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function co(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 fo(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 po = 1, mo = 2, go = "[object Boolean]", _o = "[object Date]", bo = "[object Error]", yo = "[object Map]", vo = "[object Number]", ho = "[object RegExp]", To = "[object Set]", wo = "[object String]", So = "[object Symbol]", Eo = "[object ArrayBuffer]", Co = "[object DataView]", Pt = Ee ? Ee.prototype : void 0, tt = Pt ? Pt.valueOf : void 0;
|
|
432
|
+
function Io(e, t, n, o, r, a, p) {
|
|
433
433
|
switch (n) {
|
|
434
|
-
case
|
|
434
|
+
case Co:
|
|
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
|
|
438
|
+
case Eo:
|
|
439
|
+
return !(e.byteLength != t.byteLength || !a(new xt(e), new xt(t)));
|
|
440
|
+
case go:
|
|
440
441
|
case _o:
|
|
442
|
+
case vo:
|
|
443
|
+
return Yt(+e, +t);
|
|
441
444
|
case bo:
|
|
445
|
+
return e.name == t.name && e.message == t.message;
|
|
442
446
|
case ho:
|
|
443
|
-
|
|
447
|
+
case wo:
|
|
448
|
+
return e == t + "";
|
|
444
449
|
case yo:
|
|
445
|
-
|
|
450
|
+
var _ = co;
|
|
446
451
|
case To:
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
case vo:
|
|
450
|
-
var _ = fo;
|
|
451
|
-
case wo:
|
|
452
|
-
var l = o & mo;
|
|
453
|
-
if (_ || (_ = po), e.size != t.size && !l)
|
|
452
|
+
var l = o & po;
|
|
453
|
+
if (_ || (_ = fo), e.size != t.size && !l)
|
|
454
454
|
return !1;
|
|
455
455
|
var u = p.get(e);
|
|
456
456
|
if (u)
|
|
457
457
|
return u == t;
|
|
458
|
-
o |=
|
|
459
|
-
var y =
|
|
458
|
+
o |= mo, p.set(e, t);
|
|
459
|
+
var y = nn(_(e), _(t), o, r, a, p);
|
|
460
460
|
return p.delete(e), y;
|
|
461
|
-
case
|
|
462
|
-
if (
|
|
463
|
-
return
|
|
461
|
+
case So:
|
|
462
|
+
if (tt)
|
|
463
|
+
return tt.call(e) == tt.call(t);
|
|
464
464
|
}
|
|
465
465
|
return !1;
|
|
466
466
|
}
|
|
467
|
-
var
|
|
468
|
-
function
|
|
469
|
-
var p = n &
|
|
467
|
+
var Ro = 1, ko = Object.prototype, Oo = ko.hasOwnProperty;
|
|
468
|
+
function xo(e, t, n, o, r, a) {
|
|
469
|
+
var p = n & Ro, _ = Et(e), l = _.length, u = Et(t), y = u.length;
|
|
470
470
|
if (l != y && !p)
|
|
471
471
|
return !1;
|
|
472
472
|
for (var w = l; w--; ) {
|
|
473
473
|
var b = _[w];
|
|
474
|
-
if (!(p ? b in t :
|
|
474
|
+
if (!(p ? b in t : Oo.call(t, b)))
|
|
475
475
|
return !1;
|
|
476
476
|
}
|
|
477
477
|
var S = a.get(e), v = a.get(t);
|
|
@@ -496,63 +496,67 @@ function Po(e, t, n, o, r, a) {
|
|
|
496
496
|
}
|
|
497
497
|
return a.delete(e), a.delete(t), s;
|
|
498
498
|
}
|
|
499
|
-
var
|
|
500
|
-
function
|
|
501
|
-
var p =
|
|
502
|
-
l = l ==
|
|
499
|
+
var Po = 1, At = "[object Arguments]", Vt = "[object Array]", Ne = "[object Object]", Ao = Object.prototype, $t = Ao.hasOwnProperty;
|
|
500
|
+
function Vo(e, t, n, o, r, a) {
|
|
501
|
+
var p = Fe(e), _ = Fe(t), l = p ? Vt : ce(e), u = _ ? Vt : ce(t);
|
|
502
|
+
l = l == At ? Ne : l, u = u == At ? Ne : u;
|
|
503
503
|
var y = l == Ne, w = u == Ne, b = l == u;
|
|
504
|
-
if (b &&
|
|
505
|
-
if (!
|
|
504
|
+
if (b && st(e)) {
|
|
505
|
+
if (!st(t))
|
|
506
506
|
return !1;
|
|
507
507
|
p = !0, y = !1;
|
|
508
508
|
}
|
|
509
509
|
if (b && !y)
|
|
510
|
-
return a || (a = new fe()), p ||
|
|
511
|
-
if (!(n &
|
|
512
|
-
var S = y &&
|
|
510
|
+
return a || (a = new fe()), p || tn(e) ? nn(e, t, n, o, r, a) : Io(e, t, l, n, o, r, a);
|
|
511
|
+
if (!(n & Po)) {
|
|
512
|
+
var S = y && $t.call(e, "__wrapped__"), v = w && $t.call(t, "__wrapped__");
|
|
513
513
|
if (S || v) {
|
|
514
514
|
var s = S ? e.value() : e, I = v ? t.value() : t;
|
|
515
515
|
return a || (a = new fe()), r(s, I, n, o, a);
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
|
-
return b ? (a || (a = new fe()),
|
|
518
|
+
return b ? (a || (a = new fe()), xo(e, t, n, o, r, a)) : !1;
|
|
519
519
|
}
|
|
520
|
-
function
|
|
521
|
-
return e === t ? !0 : e == null || t == null || !Oe(e) && !Oe(t) ? e !== e && t !== t :
|
|
520
|
+
function rn(e, t, n, o, r) {
|
|
521
|
+
return e === t ? !0 : e == null || t == null || !Oe(e) && !Oe(t) ? e !== e && t !== t : Vo(e, t, n, o, rn, r);
|
|
522
522
|
}
|
|
523
|
-
function
|
|
524
|
-
return
|
|
523
|
+
function $o(e, t) {
|
|
524
|
+
return rn(e, t);
|
|
525
525
|
}
|
|
526
|
-
|
|
527
|
-
for (
|
|
528
|
-
j.push((
|
|
529
|
-
function
|
|
526
|
+
const j = [];
|
|
527
|
+
for (let e = 0; e < 256; ++e)
|
|
528
|
+
j.push((e + 256).toString(16).slice(1));
|
|
529
|
+
function Lo(e, t = 0) {
|
|
530
530
|
return (j[e[t + 0]] + j[e[t + 1]] + j[e[t + 2]] + j[e[t + 3]] + "-" + j[e[t + 4]] + j[e[t + 5]] + "-" + j[e[t + 6]] + j[e[t + 7]] + "-" + j[e[t + 8]] + j[e[t + 9]] + "-" + j[e[t + 10]] + j[e[t + 11]] + j[e[t + 12]] + j[e[t + 13]] + j[e[t + 14]] + j[e[t + 15]]).toLowerCase();
|
|
531
531
|
}
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
532
|
+
let nt;
|
|
533
|
+
const Mo = new Uint8Array(16);
|
|
534
|
+
function Do() {
|
|
535
|
+
if (!nt) {
|
|
536
|
+
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
537
|
+
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
538
|
+
nt = crypto.getRandomValues.bind(crypto);
|
|
539
|
+
}
|
|
540
|
+
return nt(Mo);
|
|
537
541
|
}
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
if (Mt.randomUUID && !e)
|
|
544
|
-
return Mt.randomUUID();
|
|
542
|
+
const Uo = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Lt = { randomUUID: Uo };
|
|
543
|
+
function No(e, t, n) {
|
|
544
|
+
var r;
|
|
545
|
+
if (Lt.randomUUID && !e)
|
|
546
|
+
return Lt.randomUUID();
|
|
545
547
|
e = e || {};
|
|
546
|
-
|
|
547
|
-
|
|
548
|
+
const o = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? Do();
|
|
549
|
+
if (o.length < 16)
|
|
550
|
+
throw new Error("Random bytes length must be >= 16");
|
|
551
|
+
return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, Lo(o);
|
|
548
552
|
}
|
|
549
|
-
const
|
|
553
|
+
const on = {
|
|
550
554
|
ip: "127.0.0.1",
|
|
551
555
|
port: 6379
|
|
552
|
-
},
|
|
556
|
+
}, an = {
|
|
553
557
|
host: "127.0.0.1",
|
|
554
558
|
port: 6379
|
|
555
|
-
}, Se = T.HOST_PORT_EE,
|
|
559
|
+
}, Se = T.HOST_PORT_EE, ln = {
|
|
556
560
|
port: 6379,
|
|
557
561
|
host: "127.0.0.1",
|
|
558
562
|
database: 0,
|
|
@@ -574,19 +578,19 @@ const an = {
|
|
|
574
578
|
cluster_max_redirections: 0,
|
|
575
579
|
connection_is_proxied: !1,
|
|
576
580
|
timeout: 2e3
|
|
577
|
-
},
|
|
581
|
+
}, Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
578
582
|
__proto__: null,
|
|
579
|
-
DEFAULT_CLUSTER_NODE:
|
|
580
|
-
DEFAULT_FIELDS:
|
|
583
|
+
DEFAULT_CLUSTER_NODE: on,
|
|
584
|
+
DEFAULT_FIELDS: ln,
|
|
581
585
|
DEFAULT_REDIS_TYPE: Se,
|
|
582
|
-
DEFAULT_SENTINEL_NODE:
|
|
583
|
-
}, Symbol.toStringTag, { value: "Module" })), Ae = (e) => ({ ...e, id:
|
|
586
|
+
DEFAULT_SENTINEL_NODE: an
|
|
587
|
+
}, Symbol.toStringTag, { value: "Module" })), Ae = (e) => ({ ...e, id: No() }), ft = (e) => {
|
|
584
588
|
const { id: t, ...n } = e;
|
|
585
589
|
return n;
|
|
586
|
-
},
|
|
590
|
+
}, sn = () => Ae(an), dn = () => Ae(on), Je = (e) => {
|
|
587
591
|
var t, n;
|
|
588
592
|
return e.type === Y.REDIS_CE ? T.HOST_PORT_CE : (t = e.config.sentinel_nodes) != null && t.length ? T.SENTINEL : (n = e.config.cluster_nodes) != null && n.length ? T.CLUSTER : T.HOST_PORT_EE;
|
|
589
|
-
},
|
|
593
|
+
}, Ke = (e) => e === T.HOST_PORT_CE ? Y.REDIS_CE : Y.REDIS_EE, h = {
|
|
590
594
|
int(e, t) {
|
|
591
595
|
return e == null ? t : parseInt(e.toString(), 10);
|
|
592
596
|
},
|
|
@@ -595,13 +599,13 @@ const an = {
|
|
|
595
599
|
},
|
|
596
600
|
removeIdClusterNodes(e) {
|
|
597
601
|
return e.map((t) => ({
|
|
598
|
-
...
|
|
602
|
+
...ft(t),
|
|
599
603
|
port: h.int(t.port)
|
|
600
604
|
}));
|
|
601
605
|
},
|
|
602
606
|
removeIdFromSentinelNodes(e) {
|
|
603
607
|
return e.map((t) => ({
|
|
604
|
-
...
|
|
608
|
+
...ft(t),
|
|
605
609
|
port: h.int(t.port)
|
|
606
610
|
}));
|
|
607
611
|
},
|
|
@@ -623,51 +627,51 @@ const an = {
|
|
|
623
627
|
arrayToString(e, t = ", ") {
|
|
624
628
|
return e ? e.join(t) : "";
|
|
625
629
|
}
|
|
626
|
-
},
|
|
630
|
+
}, Ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
627
631
|
__proto__: null,
|
|
628
|
-
genDefaultClusterNode:
|
|
629
|
-
genDefaultSentinelNode:
|
|
630
|
-
getRedisType:
|
|
631
|
-
mapRedisTypeToPartialType:
|
|
632
|
+
genDefaultClusterNode: dn,
|
|
633
|
+
genDefaultSentinelNode: sn,
|
|
634
|
+
getRedisType: Je,
|
|
635
|
+
mapRedisTypeToPartialType: Ke,
|
|
632
636
|
shallowCopyWithId: Ae,
|
|
633
|
-
shallowCopyWithoutId:
|
|
637
|
+
shallowCopyWithoutId: ft,
|
|
634
638
|
standardize: h
|
|
635
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
639
|
+
}, Symbol.toStringTag, { value: "Module" })), je = "/v2/control-planes/{controlPlaneId}/core-entities", Be = "/{workspace}", Ve = {
|
|
636
640
|
list: {
|
|
637
|
-
konnect: `${
|
|
638
|
-
kongManager: `${
|
|
641
|
+
konnect: `${je}/partials`,
|
|
642
|
+
kongManager: `${Be}/partials`
|
|
639
643
|
},
|
|
640
644
|
form: {
|
|
641
645
|
konnect: {
|
|
642
|
-
create: `${
|
|
643
|
-
edit: `${
|
|
646
|
+
create: `${je}/partials`,
|
|
647
|
+
edit: `${je}/partials/{id}`
|
|
644
648
|
},
|
|
645
649
|
kongManager: {
|
|
646
|
-
create: `${
|
|
647
|
-
edit: `${
|
|
650
|
+
create: `${Be}/partials`,
|
|
651
|
+
edit: `${Be}/partials/{id}`
|
|
648
652
|
}
|
|
649
653
|
},
|
|
650
654
|
links: {
|
|
651
|
-
konnect: `${
|
|
652
|
-
kongManager: `${
|
|
655
|
+
konnect: `${je}/partials/{id}/links`,
|
|
656
|
+
kongManager: `${Be}/partials/{id}/links`
|
|
653
657
|
}
|
|
654
|
-
},
|
|
655
|
-
const { partialId: t, config: n, defaultRedisType: o = Se } = e, r = !!t, { axiosInstance: a } =
|
|
658
|
+
}, jo = (e) => {
|
|
659
|
+
const { partialId: t, config: n, defaultRedisType: o = Se } = e, r = !!t, { axiosInstance: a } = mt(n.axiosRequestConfig), { getMessageFromError: p } = Rn(), _ = H(() => t ? Xe.Edit : Xe.Create), l = Ut({
|
|
656
660
|
fields: {
|
|
657
661
|
name: "",
|
|
658
662
|
tags: "",
|
|
659
|
-
type:
|
|
660
|
-
config: JSON.parse(JSON.stringify(
|
|
663
|
+
type: Ke(o),
|
|
664
|
+
config: JSON.parse(JSON.stringify(ln))
|
|
661
665
|
},
|
|
662
666
|
readonly: !1,
|
|
663
667
|
errorMessage: ""
|
|
664
668
|
}), u = $(), y = $(o), w = H(() => y.value === T.HOST_PORT_EE || y.value === T.CLUSTER || y.value === T.SENTINEL);
|
|
665
669
|
ke(y, (f) => {
|
|
666
|
-
l.fields.type =
|
|
670
|
+
l.fields.type = Ke(f);
|
|
667
671
|
});
|
|
668
672
|
const b = H(() => {
|
|
669
673
|
var c;
|
|
670
|
-
if (r &&
|
|
674
|
+
if (r && $o(u.value, S.value) || !l.fields.name.length)
|
|
671
675
|
return !1;
|
|
672
676
|
const { config: f } = l.fields;
|
|
673
677
|
switch (y.value) {
|
|
@@ -816,7 +820,7 @@ const an = {
|
|
|
816
820
|
return n.app === "konnect" && (f = {
|
|
817
821
|
...f,
|
|
818
822
|
config: h.removeNullValues(f.config)
|
|
819
|
-
}), _.value ===
|
|
823
|
+
}), _.value === Xe.Create ? await a.post(v.value, f) : n.app === "konnect" ? await a.put(v.value, f) : await a.patch(v.value, f);
|
|
820
824
|
} catch (f) {
|
|
821
825
|
throw l.errorMessage = p(f), l.readonly = !1, f;
|
|
822
826
|
}
|
|
@@ -827,10 +831,10 @@ const an = {
|
|
|
827
831
|
l.fields.config,
|
|
828
832
|
h.removeNullValues(f.config)
|
|
829
833
|
// remove null values if data, so they can be replaced with default values
|
|
830
|
-
), l.fields.config.sentinel_nodes = h.addIdToSentinelNodes(f.config.sentinel_nodes ?? []), l.fields.config.cluster_nodes = h.addIdToClusterNodes(f.config.cluster_nodes ?? []), l.fields.name = f.name, l.fields.type = f.type, l.fields.tags = h.arrayToString(f.tags), y.value =
|
|
834
|
+
), l.fields.config.sentinel_nodes = h.addIdToSentinelNodes(f.config.sentinel_nodes ?? []), l.fields.config.cluster_nodes = h.addIdToClusterNodes(f.config.cluster_nodes ?? []), l.fields.name = f.name, l.fields.type = f.type, l.fields.tags = h.arrayToString(f.tags), y.value = Je(f), u.value = JSON.parse(JSON.stringify(S.value));
|
|
831
835
|
}
|
|
832
836
|
};
|
|
833
|
-
},
|
|
837
|
+
}, Bo = { class: "array-card-container" }, Fo = /* @__PURE__ */ Q({
|
|
834
838
|
__name: "FieldArrayCardContainer",
|
|
835
839
|
props: {
|
|
836
840
|
model: {
|
|
@@ -854,10 +858,10 @@ const an = {
|
|
|
854
858
|
setup(e) {
|
|
855
859
|
return (t, n) => {
|
|
856
860
|
const o = D("KCard"), r = D("KButton");
|
|
857
|
-
return k(), q("div",
|
|
861
|
+
return k(), q("div", Bo, [
|
|
858
862
|
m(o, { class: "card" }, {
|
|
859
863
|
default: E(() => [
|
|
860
|
-
|
|
864
|
+
_n(t.$slots, "default", {}, void 0, !0)
|
|
861
865
|
]),
|
|
862
866
|
_: 3
|
|
863
867
|
}),
|
|
@@ -868,7 +872,7 @@ const an = {
|
|
|
868
872
|
onClick: n[0] || (n[0] = (a) => t.$emit("remove-item"))
|
|
869
873
|
}, {
|
|
870
874
|
default: E(() => [
|
|
871
|
-
m(i(
|
|
875
|
+
m(i(Nn))
|
|
872
876
|
]),
|
|
873
877
|
_: 1
|
|
874
878
|
}, 8, ["disabled"])
|
|
@@ -880,7 +884,7 @@ const an = {
|
|
|
880
884
|
for (const [o, r] of t)
|
|
881
885
|
n[o] = r;
|
|
882
886
|
return n;
|
|
883
|
-
},
|
|
887
|
+
}, un = /* @__PURE__ */ ae(Fo, [["__scopeId", "data-v-a0b2e4fb"]]), Ho = {
|
|
884
888
|
create: "New Redis Configuration",
|
|
885
889
|
copy_id: "Copy ID",
|
|
886
890
|
copy_json: "Copy JSON",
|
|
@@ -891,17 +895,17 @@ const an = {
|
|
|
891
895
|
loading: "Loading...",
|
|
892
896
|
view_plugin: "View Plugin",
|
|
893
897
|
close: "Close"
|
|
894
|
-
},
|
|
898
|
+
}, Ko = {
|
|
895
899
|
placeholder: "Filter by name",
|
|
896
900
|
placeholder_for_exact_match: "Filter by exact ID",
|
|
897
901
|
no_results: "No results found"
|
|
898
|
-
},
|
|
902
|
+
}, zo = {
|
|
899
903
|
copy: "Failed to copy to clipboard",
|
|
900
904
|
general: "Redis configuration could not be retrieved",
|
|
901
905
|
delete: "The redis configuration could not be deleted at this time."
|
|
902
|
-
},
|
|
906
|
+
}, qo = {
|
|
903
907
|
success: "Copied {val} to clipboard"
|
|
904
|
-
},
|
|
908
|
+
}, Wo = {
|
|
905
909
|
sections: {
|
|
906
910
|
type: {
|
|
907
911
|
title: "Redis type",
|
|
@@ -1081,19 +1085,19 @@ const an = {
|
|
|
1081
1085
|
plugin_count: "{count} plugin(s)",
|
|
1082
1086
|
confirm: "Confirm"
|
|
1083
1087
|
}
|
|
1084
|
-
},
|
|
1088
|
+
}, Go = {
|
|
1085
1089
|
title: "Associated plugins ({count})",
|
|
1086
1090
|
headers: {
|
|
1087
1091
|
plugin: "Plugin",
|
|
1088
1092
|
instance_name: "Name"
|
|
1089
1093
|
}
|
|
1090
|
-
},
|
|
1094
|
+
}, Jo = {
|
|
1091
1095
|
title: "Redis Configurations",
|
|
1092
1096
|
empty_state: {
|
|
1093
1097
|
title: "Configure a Redis Configuration",
|
|
1094
1098
|
description: "Set up shared Redis configurations for your gateway plugins to store and retrieve data — like counters or other data — needed during request processing."
|
|
1095
1099
|
}
|
|
1096
|
-
},
|
|
1100
|
+
}, Yo = {
|
|
1097
1101
|
action: "New configuration",
|
|
1098
1102
|
table_headers: {
|
|
1099
1103
|
name: "Name",
|
|
@@ -1112,34 +1116,34 @@ const an = {
|
|
|
1112
1116
|
description: "Edits to your configuration will be cascaded automatically to all associated plugins."
|
|
1113
1117
|
}
|
|
1114
1118
|
}
|
|
1115
|
-
},
|
|
1116
|
-
actions:
|
|
1117
|
-
search:
|
|
1119
|
+
}, Qo = {
|
|
1120
|
+
actions: Ho,
|
|
1121
|
+
search: Ko,
|
|
1118
1122
|
delete: {
|
|
1119
1123
|
title: "Delete Redis configuration",
|
|
1120
1124
|
description: "You’re about to delete this item. Are you sure you want to proceed?",
|
|
1121
1125
|
warning: "To delete this configuration, first remove it from all associated plugins."
|
|
1122
1126
|
},
|
|
1123
|
-
errors:
|
|
1124
|
-
copy:
|
|
1125
|
-
form:
|
|
1126
|
-
linked_plugins_modal:
|
|
1127
|
-
redis:
|
|
1128
|
-
list:
|
|
1127
|
+
errors: zo,
|
|
1128
|
+
copy: qo,
|
|
1129
|
+
form: Wo,
|
|
1130
|
+
linked_plugins_modal: Go,
|
|
1131
|
+
redis: Jo,
|
|
1132
|
+
list: Yo
|
|
1129
1133
|
};
|
|
1130
|
-
function
|
|
1131
|
-
const e =
|
|
1134
|
+
function Xo() {
|
|
1135
|
+
const e = Kn("en-us", Qo);
|
|
1132
1136
|
return {
|
|
1133
1137
|
i18n: e,
|
|
1134
|
-
i18nT:
|
|
1138
|
+
i18nT: zn(e)
|
|
1135
1139
|
// Translation component <i18n-t>
|
|
1136
1140
|
};
|
|
1137
1141
|
}
|
|
1138
1142
|
const pe = {
|
|
1139
|
-
useI18n:
|
|
1140
|
-
},
|
|
1143
|
+
useI18n: Xo
|
|
1144
|
+
}, Zo = { class: "cluster-node-items" }, ea = /* @__PURE__ */ Q({
|
|
1141
1145
|
__name: "ClusterNodes",
|
|
1142
|
-
props: /* @__PURE__ */
|
|
1146
|
+
props: /* @__PURE__ */ Nt({
|
|
1143
1147
|
readonly: { type: Boolean }
|
|
1144
1148
|
}, {
|
|
1145
1149
|
modelValue: { required: !0 },
|
|
@@ -1147,8 +1151,8 @@ const pe = {
|
|
|
1147
1151
|
}),
|
|
1148
1152
|
emits: ["update:modelValue"],
|
|
1149
1153
|
setup(e) {
|
|
1150
|
-
const t =
|
|
1151
|
-
t.value.push(
|
|
1154
|
+
const t = jt(e, "modelValue"), { i18n: { t: n } } = pe.useI18n(), o = () => {
|
|
1155
|
+
t.value.push(dn());
|
|
1152
1156
|
}, r = (a) => {
|
|
1153
1157
|
t.value.splice(a, 1);
|
|
1154
1158
|
};
|
|
@@ -1166,14 +1170,14 @@ const pe = {
|
|
|
1166
1170
|
_: 1
|
|
1167
1171
|
}, 8, ["info"]),
|
|
1168
1172
|
K("div", null, [
|
|
1169
|
-
(k(!0), q(
|
|
1173
|
+
(k(!0), q(qe, null, pt(t.value, (y, w) => (k(), F(un, {
|
|
1170
1174
|
key: `${w}`,
|
|
1171
1175
|
"data-testid": "redis-cluster-nodes",
|
|
1172
1176
|
disabled: a.readonly,
|
|
1173
1177
|
onRemoveItem: (b) => r(w)
|
|
1174
1178
|
}, {
|
|
1175
1179
|
default: E(() => [
|
|
1176
|
-
K("div",
|
|
1180
|
+
K("div", Zo, [
|
|
1177
1181
|
m(l, {
|
|
1178
1182
|
modelValue: y.ip,
|
|
1179
1183
|
"onUpdate:modelValue": (b) => y.ip = b,
|
|
@@ -1210,7 +1214,7 @@ const pe = {
|
|
|
1210
1214
|
onClick: o
|
|
1211
1215
|
}, {
|
|
1212
1216
|
default: E(() => [
|
|
1213
|
-
m(i(
|
|
1217
|
+
m(i(Kt)),
|
|
1214
1218
|
K("span", null, B(i(n)("form.fields.cluster_nodes.add_button")), 1)
|
|
1215
1219
|
]),
|
|
1216
1220
|
_: 1
|
|
@@ -1219,9 +1223,9 @@ const pe = {
|
|
|
1219
1223
|
]);
|
|
1220
1224
|
};
|
|
1221
1225
|
}
|
|
1222
|
-
}),
|
|
1226
|
+
}), ta = /* @__PURE__ */ ae(ea, [["__scopeId", "data-v-776a626d"]]), na = { class: "sentinel-node-items" }, ia = /* @__PURE__ */ Q({
|
|
1223
1227
|
__name: "SentinelNodes",
|
|
1224
|
-
props: /* @__PURE__ */
|
|
1228
|
+
props: /* @__PURE__ */ Nt({
|
|
1225
1229
|
readonly: { type: Boolean }
|
|
1226
1230
|
}, {
|
|
1227
1231
|
modelValue: { required: !0 },
|
|
@@ -1229,8 +1233,8 @@ const pe = {
|
|
|
1229
1233
|
}),
|
|
1230
1234
|
emits: ["update:modelValue"],
|
|
1231
1235
|
setup(e) {
|
|
1232
|
-
const t =
|
|
1233
|
-
t.value.push(
|
|
1236
|
+
const t = jt(e, "modelValue"), { i18n: { t: n } } = pe.useI18n(), o = () => {
|
|
1237
|
+
t.value.push(sn());
|
|
1234
1238
|
}, r = (a) => {
|
|
1235
1239
|
t.value.splice(a, 1);
|
|
1236
1240
|
};
|
|
@@ -1248,14 +1252,14 @@ const pe = {
|
|
|
1248
1252
|
_: 1
|
|
1249
1253
|
}, 8, ["info"]),
|
|
1250
1254
|
K("div", null, [
|
|
1251
|
-
(k(!0), q(
|
|
1255
|
+
(k(!0), q(qe, null, pt(t.value, (y, w) => (k(), F(un, {
|
|
1252
1256
|
key: y.id,
|
|
1253
1257
|
"data-testid": "redis-sentinel-nodes",
|
|
1254
1258
|
disabled: a.readonly,
|
|
1255
1259
|
onRemoveItem: (b) => r(w)
|
|
1256
1260
|
}, {
|
|
1257
1261
|
default: E(() => [
|
|
1258
|
-
K("div",
|
|
1262
|
+
K("div", na, [
|
|
1259
1263
|
m(l, {
|
|
1260
1264
|
modelValue: y.host,
|
|
1261
1265
|
"onUpdate:modelValue": (b) => y.host = b,
|
|
@@ -1292,7 +1296,7 @@ const pe = {
|
|
|
1292
1296
|
onClick: o
|
|
1293
1297
|
}, {
|
|
1294
1298
|
default: E(() => [
|
|
1295
|
-
m(i(
|
|
1299
|
+
m(i(Kt)),
|
|
1296
1300
|
K("span", null, B(i(n)("form.fields.sentinel_nodes.add_button")), 1)
|
|
1297
1301
|
]),
|
|
1298
1302
|
_: 1
|
|
@@ -1301,34 +1305,34 @@ const pe = {
|
|
|
1301
1305
|
]);
|
|
1302
1306
|
};
|
|
1303
1307
|
}
|
|
1304
|
-
}),
|
|
1305
|
-
var
|
|
1306
|
-
function
|
|
1308
|
+
}), ra = /* @__PURE__ */ ae(ia, [["__scopeId", "data-v-cd1c07e2"]]);
|
|
1309
|
+
var it = /* @__PURE__ */ new WeakMap(), Mt = 0;
|
|
1310
|
+
function oa(e) {
|
|
1307
1311
|
if (!e.length)
|
|
1308
1312
|
return "";
|
|
1309
1313
|
for (var t = "arg", n = 0; n < e.length; ++n) {
|
|
1310
1314
|
var o = void 0;
|
|
1311
|
-
e[n] === null || typeof e[n] != "object" && typeof e[n] != "function" ? typeof e[n] == "string" ? o = '"' + e[n] + '"' : o = String(e[n]) :
|
|
1315
|
+
e[n] === null || typeof e[n] != "object" && typeof e[n] != "function" ? typeof e[n] == "string" ? o = '"' + e[n] + '"' : o = String(e[n]) : it.has(e[n]) ? o = it.get(e[n]) : (o = Mt, it.set(e[n], Mt++)), t += "@" + o;
|
|
1312
1316
|
}
|
|
1313
1317
|
return t;
|
|
1314
1318
|
}
|
|
1315
|
-
function
|
|
1319
|
+
function aa(e) {
|
|
1316
1320
|
if (typeof e == "function")
|
|
1317
1321
|
try {
|
|
1318
1322
|
e = e();
|
|
1319
1323
|
} catch {
|
|
1320
1324
|
e = "";
|
|
1321
1325
|
}
|
|
1322
|
-
return Array.isArray(e) ? e =
|
|
1326
|
+
return Array.isArray(e) ? e = oa(e) : e = String(e || ""), e;
|
|
1323
1327
|
}
|
|
1324
|
-
var
|
|
1328
|
+
var gt = (
|
|
1325
1329
|
/** @class */
|
|
1326
1330
|
function() {
|
|
1327
1331
|
function e(t) {
|
|
1328
1332
|
t === void 0 && (t = 0), this.items = /* @__PURE__ */ new Map(), this.ttl = t;
|
|
1329
1333
|
}
|
|
1330
1334
|
return e.prototype.serializeKey = function(t) {
|
|
1331
|
-
return
|
|
1335
|
+
return aa(t);
|
|
1332
1336
|
}, e.prototype.get = function(t) {
|
|
1333
1337
|
var n = this.serializeKey(t);
|
|
1334
1338
|
return this.items.get(n);
|
|
@@ -1350,21 +1354,21 @@ var _t = (
|
|
|
1350
1354
|
}, e;
|
|
1351
1355
|
}()
|
|
1352
1356
|
);
|
|
1353
|
-
function
|
|
1357
|
+
function la() {
|
|
1354
1358
|
return typeof navigator.onLine < "u" ? navigator.onLine : !0;
|
|
1355
1359
|
}
|
|
1356
|
-
function
|
|
1360
|
+
function sa() {
|
|
1357
1361
|
return typeof document < "u" && typeof document.visibilityState < "u" ? document.visibilityState !== "hidden" : !0;
|
|
1358
1362
|
}
|
|
1359
|
-
var
|
|
1363
|
+
var da = function(e) {
|
|
1360
1364
|
return fetch(e).then(function(t) {
|
|
1361
1365
|
return t.json();
|
|
1362
1366
|
});
|
|
1363
1367
|
};
|
|
1364
|
-
const
|
|
1365
|
-
isOnline:
|
|
1366
|
-
isDocumentVisible:
|
|
1367
|
-
fetcher:
|
|
1368
|
+
const rt = {
|
|
1369
|
+
isOnline: la,
|
|
1370
|
+
isDocumentVisible: sa,
|
|
1371
|
+
fetcher: da
|
|
1368
1372
|
};
|
|
1369
1373
|
var ie = function() {
|
|
1370
1374
|
return ie = Object.assign || function(e) {
|
|
@@ -1459,7 +1463,7 @@ var ie = function() {
|
|
|
1459
1463
|
if (u[0] & 5) throw u[1];
|
|
1460
1464
|
return { value: u[0] ? u[1] : void 0, done: !0 };
|
|
1461
1465
|
}
|
|
1462
|
-
},
|
|
1466
|
+
}, ua = function(e, t) {
|
|
1463
1467
|
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
1464
1468
|
if (!n) return e;
|
|
1465
1469
|
var o = n.call(e), r, a = [], p;
|
|
@@ -1475,12 +1479,12 @@ var ie = function() {
|
|
|
1475
1479
|
}
|
|
1476
1480
|
}
|
|
1477
1481
|
return a;
|
|
1478
|
-
},
|
|
1482
|
+
}, ca = function(e, t, n) {
|
|
1479
1483
|
if (n || arguments.length === 2) for (var o = 0, r = t.length, a; o < r; o++)
|
|
1480
1484
|
(a || !(o in t)) && (a || (a = Array.prototype.slice.call(t, 0, o)), a[o] = t[o]);
|
|
1481
1485
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
1482
|
-
},
|
|
1483
|
-
cache:
|
|
1486
|
+
}, cn = new gt(), ze = new gt(), ot = new gt(), fn = {
|
|
1487
|
+
cache: cn,
|
|
1484
1488
|
refreshInterval: 0,
|
|
1485
1489
|
ttl: 0,
|
|
1486
1490
|
serverTTL: 1e3,
|
|
@@ -1490,20 +1494,20 @@ var ie = function() {
|
|
|
1490
1494
|
shouldRetryOnError: !0,
|
|
1491
1495
|
errorRetryInterval: 5e3,
|
|
1492
1496
|
errorRetryCount: 5,
|
|
1493
|
-
fetcher:
|
|
1494
|
-
isOnline:
|
|
1495
|
-
isDocumentVisible:
|
|
1497
|
+
fetcher: rt.fetcher,
|
|
1498
|
+
isOnline: rt.isOnline,
|
|
1499
|
+
isDocumentVisible: rt.isDocumentVisible
|
|
1496
1500
|
};
|
|
1497
|
-
function
|
|
1498
|
-
var o =
|
|
1501
|
+
function fa(e, t, n) {
|
|
1502
|
+
var o = ze.get(e);
|
|
1499
1503
|
if (o)
|
|
1500
1504
|
o.data.push(t);
|
|
1501
1505
|
else {
|
|
1502
1506
|
var r = 5e3;
|
|
1503
|
-
|
|
1507
|
+
ze.set(e, [t], n > 0 ? n + r : n);
|
|
1504
1508
|
}
|
|
1505
1509
|
}
|
|
1506
|
-
function
|
|
1510
|
+
function pa(e, t, n) {
|
|
1507
1511
|
if (n.isDocumentVisible() && !(n.errorRetryCount !== void 0 && t > n.errorRetryCount)) {
|
|
1508
1512
|
var o = Math.min(t || 0, n.errorRetryCount), r = o * n.errorRetryInterval;
|
|
1509
1513
|
setTimeout(function() {
|
|
@@ -1511,13 +1515,13 @@ function ma(e, t, n) {
|
|
|
1511
1515
|
}, r);
|
|
1512
1516
|
}
|
|
1513
1517
|
}
|
|
1514
|
-
var
|
|
1515
|
-
return n === void 0 && (n =
|
|
1518
|
+
var Dt = function(e, t, n, o) {
|
|
1519
|
+
return n === void 0 && (n = cn), o === void 0 && (o = fn.ttl), Te(void 0, void 0, void 0, function() {
|
|
1516
1520
|
var r, a, p, _, l, u, y;
|
|
1517
1521
|
return we(this, function(w) {
|
|
1518
1522
|
switch (w.label) {
|
|
1519
1523
|
case 0:
|
|
1520
|
-
if (!
|
|
1524
|
+
if (!ga(t)) return [3, 5];
|
|
1521
1525
|
w.label = 1;
|
|
1522
1526
|
case 1:
|
|
1523
1527
|
return w.trys.push([1, 3, , 4]), [4, t];
|
|
@@ -1536,7 +1540,7 @@ var Ut = function(e, t, n, o) {
|
|
|
1536
1540
|
} catch (b) {
|
|
1537
1541
|
console.error("swrv(mutate): failed to set cache", b);
|
|
1538
1542
|
}
|
|
1539
|
-
return u =
|
|
1543
|
+
return u = ze.get(e), u && u.data.length && (y = u.data.filter(function(b) {
|
|
1540
1544
|
return b.key === e;
|
|
1541
1545
|
}), y.forEach(function(b, S) {
|
|
1542
1546
|
typeof l.data < "u" && (b.data = l.data), b.error = l.error, b.isValidating = l.isValidating, b.isLoading = l.isValidating;
|
|
@@ -1547,10 +1551,10 @@ var Ut = function(e, t, n, o) {
|
|
|
1547
1551
|
});
|
|
1548
1552
|
});
|
|
1549
1553
|
};
|
|
1550
|
-
function
|
|
1554
|
+
function ma() {
|
|
1551
1555
|
for (var e = this, t = [], n = 0; n < arguments.length; n++)
|
|
1552
1556
|
t[n] = arguments[n];
|
|
1553
|
-
var o, r, a = ie({},
|
|
1557
|
+
var o, r, a = ie({}, fn), p = !1, _ = !1, l = bn(), u = (l == null ? void 0 : l.proxy) || l;
|
|
1554
1558
|
if (!u)
|
|
1555
1559
|
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;
|
|
1556
1560
|
var y = (u == null ? void 0 : u.$isServer) || !1;
|
|
@@ -1558,7 +1562,7 @@ function ga() {
|
|
|
1558
1562
|
var w = y ? a.serverTTL : a.ttl, b = typeof o == "function" ? o : $(o);
|
|
1559
1563
|
typeof r > "u" && (r = a.fetcher);
|
|
1560
1564
|
var S = null;
|
|
1561
|
-
S || (S =
|
|
1565
|
+
S || (S = Ut({
|
|
1562
1566
|
data: void 0,
|
|
1563
1567
|
error: void 0,
|
|
1564
1568
|
isValidating: !0,
|
|
@@ -1583,15 +1587,15 @@ function ga() {
|
|
|
1583
1587
|
return we(this, function(de) {
|
|
1584
1588
|
switch (de.label) {
|
|
1585
1589
|
case 0:
|
|
1586
|
-
return G =
|
|
1590
|
+
return G = ot.get(L), G ? [3, 2] : (ye = Array.isArray(L) ? L : [L], me = le.apply(void 0, ca([], ua(ye), !1)), ot.set(L, me, a.dedupingInterval), [4, Dt(L, me, a.cache, w)]);
|
|
1587
1591
|
case 1:
|
|
1588
1592
|
return de.sent(), [3, 4];
|
|
1589
1593
|
case 2:
|
|
1590
|
-
return [4,
|
|
1594
|
+
return [4, Dt(L, G.data, a.cache, w)];
|
|
1591
1595
|
case 3:
|
|
1592
1596
|
de.sent(), de.label = 4;
|
|
1593
1597
|
case 4:
|
|
1594
|
-
return S.isValidating = !1, S.isLoading = !1,
|
|
1598
|
+
return S.isValidating = !1, S.isLoading = !1, ot.delete(L), S.error !== void 0 && (ve = !p && a.shouldRetryOnError && (c ? c.shouldRetryOnError : !0), ve && pa(v, c ? c.errorRetryCount : 1, a)), [
|
|
1595
1599
|
2
|
|
1596
1600
|
/*return*/
|
|
1597
1601
|
];
|
|
@@ -1637,7 +1641,7 @@ function ga() {
|
|
|
1637
1641
|
});
|
|
1638
1642
|
});
|
|
1639
1643
|
}, I = null;
|
|
1640
|
-
|
|
1644
|
+
yn(function() {
|
|
1641
1645
|
var f = function() {
|
|
1642
1646
|
return Te(e, void 0, void 0, function() {
|
|
1643
1647
|
return we(this, function(c) {
|
|
@@ -1658,34 +1662,34 @@ function ga() {
|
|
|
1658
1662
|
});
|
|
1659
1663
|
};
|
|
1660
1664
|
a.refreshInterval && (I = setTimeout(f, a.refreshInterval)), a.revalidateOnFocus && (document.addEventListener("visibilitychange", s, !1), window.addEventListener("focus", s, !1));
|
|
1661
|
-
}),
|
|
1665
|
+
}), vn(function() {
|
|
1662
1666
|
p = !0, I && clearTimeout(I), a.revalidateOnFocus && (document.removeEventListener("visibilitychange", s, !1), window.removeEventListener("focus", s, !1));
|
|
1663
|
-
var f =
|
|
1667
|
+
var f = ze.get(b.value);
|
|
1664
1668
|
f && (f.data = f.data.filter(function(c) {
|
|
1665
1669
|
return c !== S;
|
|
1666
1670
|
}));
|
|
1667
1671
|
});
|
|
1668
1672
|
try {
|
|
1669
1673
|
ke(b, function(f) {
|
|
1670
|
-
|
|
1674
|
+
hn(b) || (b.value = f), S.key = f, S.isValidating = !!f, fa(b.value, S, w), !y && !_ && b.value && v(), _ = !1;
|
|
1671
1675
|
}, {
|
|
1672
1676
|
immediate: !0
|
|
1673
1677
|
});
|
|
1674
1678
|
} catch {
|
|
1675
1679
|
}
|
|
1676
|
-
var V = ie(ie({},
|
|
1680
|
+
var V = ie(ie({}, Tn(S)), { mutate: function(f, c) {
|
|
1677
1681
|
return v(f, ie(ie({}, c), { forceRevalidate: !0 }));
|
|
1678
1682
|
} });
|
|
1679
1683
|
return V;
|
|
1680
1684
|
}
|
|
1681
|
-
function
|
|
1685
|
+
function ga(e) {
|
|
1682
1686
|
return e !== null && typeof e == "object" && typeof e.then == "function";
|
|
1683
1687
|
}
|
|
1684
|
-
function
|
|
1688
|
+
function pn(e) {
|
|
1685
1689
|
return `redis-partial-links-${e}`;
|
|
1686
1690
|
}
|
|
1687
1691
|
const Le = (e) => {
|
|
1688
|
-
const { axiosInstance: t } =
|
|
1692
|
+
const { axiosInstance: t } = mt(e.axiosRequestConfig);
|
|
1689
1693
|
return {
|
|
1690
1694
|
fetcher: async (n) => {
|
|
1691
1695
|
const { partialId: o, size: r, offset: a, query: p } = n;
|
|
@@ -1698,9 +1702,9 @@ const Le = (e) => {
|
|
|
1698
1702
|
return l;
|
|
1699
1703
|
}
|
|
1700
1704
|
};
|
|
1701
|
-
},
|
|
1702
|
-
const { partialId: t, config: n } = e, { fetcher: o } = Le(n), r = $([]), { data: a } =
|
|
1703
|
-
|
|
1705
|
+
}, mn = (e) => {
|
|
1706
|
+
const { partialId: t, config: n } = e, { fetcher: o } = Le(n), r = $([]), { data: a } = ma(
|
|
1707
|
+
pn(t),
|
|
1704
1708
|
() => o({ partialId: t }),
|
|
1705
1709
|
{
|
|
1706
1710
|
revalidateOnFocus: !1
|
|
@@ -1710,7 +1714,7 @@ const Le = (e) => {
|
|
|
1710
1714
|
var p;
|
|
1711
1715
|
r.value = ((p = a.value) == null ? void 0 : p.data) ?? [];
|
|
1712
1716
|
}), r;
|
|
1713
|
-
},
|
|
1717
|
+
}, _a = { class: "kong-ui-entities-redis-configurations-form" }, ba = /* @__PURE__ */ Q({
|
|
1714
1718
|
__name: "RedisConfigurationForm",
|
|
1715
1719
|
props: {
|
|
1716
1720
|
config: {
|
|
@@ -1747,7 +1751,7 @@ const Le = (e) => {
|
|
|
1747
1751
|
},
|
|
1748
1752
|
emits: ["update", "error", "loading", "cancel"],
|
|
1749
1753
|
setup(e, { emit: t }) {
|
|
1750
|
-
const n = e, o = t, { i18n: { t: r }, i18nT: a } = pe.useI18n(), p =
|
|
1754
|
+
const n = e, o = t, { i18n: { t: r }, i18nT: a } = pe.useI18n(), p = Ht(), _ = $(), l = $(), u = (M, g) => {
|
|
1751
1755
|
_.value = M ?? "", l.value = g;
|
|
1752
1756
|
}, y = (M) => {
|
|
1753
1757
|
var g;
|
|
@@ -1788,7 +1792,7 @@ const Le = (e) => {
|
|
|
1788
1792
|
], S = (M) => {
|
|
1789
1793
|
const g = M.value === T.HOST_PORT_CE ? r("form.options.type.suffix_open_source") : r("form.options.type.suffix_enterprise");
|
|
1790
1794
|
return `${M.label}${g}`;
|
|
1791
|
-
}, v = () => n.disabledPartialType &&
|
|
1795
|
+
}, v = () => n.disabledPartialType && Ke(Se) === n.disabledPartialType ? n.disabledPartialType === Y.REDIS_CE ? T.HOST_PORT_EE : T.HOST_PORT_CE : Se, {
|
|
1792
1796
|
form: s,
|
|
1793
1797
|
canSubmit: I,
|
|
1794
1798
|
payload: V,
|
|
@@ -1798,7 +1802,7 @@ const Le = (e) => {
|
|
|
1798
1802
|
fetchUrl: L,
|
|
1799
1803
|
submit: z,
|
|
1800
1804
|
setInitialFormValues: X
|
|
1801
|
-
} =
|
|
1805
|
+
} = jo({
|
|
1802
1806
|
partialId: n.partialId,
|
|
1803
1807
|
defaultRedisType: v(),
|
|
1804
1808
|
config: n.config
|
|
@@ -1827,21 +1831,21 @@ const Le = (e) => {
|
|
|
1827
1831
|
}, de = (M) => {
|
|
1828
1832
|
X(M);
|
|
1829
1833
|
};
|
|
1830
|
-
return
|
|
1834
|
+
return wn(async () => {
|
|
1831
1835
|
if (f) {
|
|
1832
1836
|
const { count: M } = await le({ partialId: n.partialId });
|
|
1833
1837
|
Z.value = M;
|
|
1834
1838
|
}
|
|
1835
1839
|
}), (M, g) => {
|
|
1836
|
-
const
|
|
1837
|
-
return k(), q(
|
|
1838
|
-
K("div",
|
|
1839
|
-
m(i(
|
|
1840
|
+
const Ye = D("KAlert"), Me = D("KSelect"), U = D("KInput"), he = D("KCheckbox"), C = D("KModal");
|
|
1841
|
+
return k(), q(qe, null, [
|
|
1842
|
+
K("div", _a, [
|
|
1843
|
+
m(i(kn), {
|
|
1840
1844
|
"action-teleport-target": e.actionTeleportTarget,
|
|
1841
1845
|
"can-submit": i(I),
|
|
1842
1846
|
config: e.config,
|
|
1843
1847
|
"edit-id": e.partialId,
|
|
1844
|
-
"entity-type": i(
|
|
1848
|
+
"entity-type": i(Bt).RedisConfiguration,
|
|
1845
1849
|
"error-message": i(s).errorMessage,
|
|
1846
1850
|
"fetch-url": i(L),
|
|
1847
1851
|
"form-fields": i(V),
|
|
@@ -1854,7 +1858,7 @@ const Le = (e) => {
|
|
|
1854
1858
|
onSubmit: se
|
|
1855
1859
|
}, {
|
|
1856
1860
|
default: E(() => [
|
|
1857
|
-
Z.value > 0 && i(f) ? (k(), F(
|
|
1861
|
+
Z.value > 0 && i(f) ? (k(), F(Ye, {
|
|
1858
1862
|
key: 0,
|
|
1859
1863
|
appearance: "warning",
|
|
1860
1864
|
class: "warning-alert",
|
|
@@ -1881,7 +1885,7 @@ const Le = (e) => {
|
|
|
1881
1885
|
default: E(() => [
|
|
1882
1886
|
m(Me, {
|
|
1883
1887
|
modelValue: i(c),
|
|
1884
|
-
"onUpdate:modelValue": g[0] || (g[0] = (d) =>
|
|
1888
|
+
"onUpdate:modelValue": g[0] || (g[0] = (d) => Sn(c) ? c.value = d : null),
|
|
1885
1889
|
"data-testid": "redis-type-select",
|
|
1886
1890
|
disabled: i(f) && i(c) === i(T).HOST_PORT_CE,
|
|
1887
1891
|
items: w.value,
|
|
@@ -1965,7 +1969,7 @@ const Le = (e) => {
|
|
|
1965
1969
|
readonly: i(s).readonly,
|
|
1966
1970
|
required: ""
|
|
1967
1971
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
1968
|
-
m(
|
|
1972
|
+
m(ra, {
|
|
1969
1973
|
modelValue: i(s).fields.config.sentinel_nodes,
|
|
1970
1974
|
"onUpdate:modelValue": g[5] || (g[5] = (d) => i(s).fields.config.sentinel_nodes = d),
|
|
1971
1975
|
readonly: i(s).readonly
|
|
@@ -2018,7 +2022,7 @@ const Le = (e) => {
|
|
|
2018
2022
|
title: i(r)("form.sections.cluster.title")
|
|
2019
2023
|
}, {
|
|
2020
2024
|
default: E(() => [
|
|
2021
|
-
m(
|
|
2025
|
+
m(ta, {
|
|
2022
2026
|
modelValue: i(s).fields.config.cluster_nodes,
|
|
2023
2027
|
"onUpdate:modelValue": g[10] || (g[10] = (d) => i(s).fields.config.cluster_nodes = d),
|
|
2024
2028
|
readonly: i(s).readonly
|
|
@@ -2281,7 +2285,7 @@ const Le = (e) => {
|
|
|
2281
2285
|
_: 1
|
|
2282
2286
|
}, 8, ["action-teleport-target", "can-submit", "config", "edit-id", "entity-type", "error-message", "fetch-url", "form-fields", "is-readonly", "slidout-top-offset"])
|
|
2283
2287
|
]),
|
|
2284
|
-
m(i(
|
|
2288
|
+
m(i(Un), {
|
|
2285
2289
|
config: n.config,
|
|
2286
2290
|
setup: _.value,
|
|
2287
2291
|
onCancel: g[29] || (g[29] = () => _.value = !1),
|
|
@@ -2313,10 +2317,10 @@ const Le = (e) => {
|
|
|
2313
2317
|
], 64);
|
|
2314
2318
|
};
|
|
2315
2319
|
}
|
|
2316
|
-
}),
|
|
2320
|
+
}), Ya = /* @__PURE__ */ ae(ba, [["__scopeId", "data-v-6f2877e0"]]), ya = "#00abd2", va = "24px", ha = {
|
|
2317
2321
|
class: "linked-plugins",
|
|
2318
2322
|
"data-testid": "linked-plugins-inline"
|
|
2319
|
-
},
|
|
2323
|
+
}, at = 7, Ta = /* @__PURE__ */ Q({
|
|
2320
2324
|
__name: "LinkedPluginsInline",
|
|
2321
2325
|
props: {
|
|
2322
2326
|
config: {
|
|
@@ -2330,45 +2334,45 @@ const Le = (e) => {
|
|
|
2330
2334
|
}
|
|
2331
2335
|
},
|
|
2332
2336
|
setup(e) {
|
|
2333
|
-
const t = e, n =
|
|
2337
|
+
const t = e, n = mn({
|
|
2334
2338
|
config: t.config,
|
|
2335
2339
|
partialId: t.partialId
|
|
2336
2340
|
});
|
|
2337
2341
|
return (o, r) => {
|
|
2338
2342
|
const a = D("KBadge");
|
|
2339
|
-
return k(), q("div",
|
|
2340
|
-
(k(!0), q(
|
|
2343
|
+
return k(), q("div", ha, [
|
|
2344
|
+
(k(!0), q(qe, null, pt(i(n).slice(0, at), (p) => (k(), F(i(zt), {
|
|
2341
2345
|
key: p.id,
|
|
2342
2346
|
name: p.name,
|
|
2343
2347
|
size: 24
|
|
2344
2348
|
}, null, 8, ["name"]))), 128)),
|
|
2345
|
-
i(n).length -
|
|
2349
|
+
i(n).length - at > 0 ? (k(), F(a, {
|
|
2346
2350
|
key: 0,
|
|
2347
2351
|
appearance: "info"
|
|
2348
2352
|
}, {
|
|
2349
2353
|
default: E(() => [
|
|
2350
|
-
te(" +" + B(i(n).length -
|
|
2354
|
+
te(" +" + B(i(n).length - at), 1)
|
|
2351
2355
|
]),
|
|
2352
2356
|
_: 1
|
|
2353
2357
|
})) : ee("", !0)
|
|
2354
2358
|
]);
|
|
2355
2359
|
};
|
|
2356
2360
|
}
|
|
2357
|
-
}),
|
|
2361
|
+
}), wa = /* @__PURE__ */ ae(Ta, [["__scopeId", "data-v-c39556bc"]]), Sa = { class: "plugin-item" }, Ea = /* @__PURE__ */ Q({
|
|
2358
2362
|
__name: "PluginItem",
|
|
2359
2363
|
props: {
|
|
2360
2364
|
pluginName: {}
|
|
2361
2365
|
},
|
|
2362
2366
|
setup(e) {
|
|
2363
|
-
return (t, n) => (k(), q("div",
|
|
2364
|
-
m(i(
|
|
2367
|
+
return (t, n) => (k(), q("div", Sa, [
|
|
2368
|
+
m(i(zt), {
|
|
2365
2369
|
name: t.pluginName,
|
|
2366
2370
|
size: 24
|
|
2367
2371
|
}, null, 8, ["name"]),
|
|
2368
2372
|
K("span", null, B(t.pluginName), 1)
|
|
2369
2373
|
]));
|
|
2370
2374
|
}
|
|
2371
|
-
}),
|
|
2375
|
+
}), Ca = /* @__PURE__ */ ae(Ea, [["__scopeId", "data-v-de964dc4"]]), Ia = { class: "toolbar-container" }, Ra = /* @__PURE__ */ Q({
|
|
2372
2376
|
__name: "LinkedPluginList",
|
|
2373
2377
|
props: {
|
|
2374
2378
|
config: {
|
|
@@ -2423,15 +2427,15 @@ const Le = (e) => {
|
|
|
2423
2427
|
return (b, S) => {
|
|
2424
2428
|
const v = D("KDropdownItem"), s = D("KTableData");
|
|
2425
2429
|
return k(), F(s, {
|
|
2426
|
-
"cache-identifier": i(
|
|
2430
|
+
"cache-identifier": i(pn)(e.partialId),
|
|
2427
2431
|
fetcher: l,
|
|
2428
2432
|
headers: a,
|
|
2429
2433
|
"hide-pagination-when-optional": "",
|
|
2430
2434
|
"pagination-attributes": { totalCount: _.value, disablePageJump: !0 },
|
|
2431
2435
|
"search-input": u.value
|
|
2432
|
-
},
|
|
2436
|
+
}, En({
|
|
2433
2437
|
name: E(({ rowValue: I }) => [
|
|
2434
|
-
m(
|
|
2438
|
+
m(Ca, { "plugin-name": I }, null, 8, ["plugin-name"])
|
|
2435
2439
|
]),
|
|
2436
2440
|
"action-items": E(({ row: I }) => [
|
|
2437
2441
|
m(v, {
|
|
@@ -2448,8 +2452,8 @@ const Le = (e) => {
|
|
|
2448
2452
|
e.filterBarEnabled ? {
|
|
2449
2453
|
name: "toolbar",
|
|
2450
2454
|
fn: E(() => [
|
|
2451
|
-
K("div",
|
|
2452
|
-
m(i(
|
|
2455
|
+
K("div", Ia, [
|
|
2456
|
+
m(i(Ft), {
|
|
2453
2457
|
modelValue: u.value,
|
|
2454
2458
|
"onUpdate:modelValue": S[0] || (S[0] = (I) => u.value = I),
|
|
2455
2459
|
config: y.value
|
|
@@ -2461,10 +2465,10 @@ const Le = (e) => {
|
|
|
2461
2465
|
]), 1032, ["cache-identifier", "pagination-attributes", "search-input"]);
|
|
2462
2466
|
};
|
|
2463
2467
|
}
|
|
2464
|
-
}),
|
|
2468
|
+
}), ka = /* @__PURE__ */ ae(Ra, [["__scopeId", "data-v-50856d03"]]), Oa = {
|
|
2465
2469
|
class: "linked-plugins-modal",
|
|
2466
2470
|
"data-testid": "linked-plugins-modal"
|
|
2467
|
-
},
|
|
2471
|
+
}, xa = /* @__PURE__ */ Q({
|
|
2468
2472
|
__name: "LinkedPluginListModal",
|
|
2469
2473
|
props: {
|
|
2470
2474
|
config: {
|
|
@@ -2491,7 +2495,7 @@ const Le = (e) => {
|
|
|
2491
2495
|
};
|
|
2492
2496
|
return (l, u) => {
|
|
2493
2497
|
const y = D("KModal");
|
|
2494
|
-
return k(), q("div",
|
|
2498
|
+
return k(), q("div", Oa, [
|
|
2495
2499
|
m(y, {
|
|
2496
2500
|
"action-button-text": i(o)("actions.done"),
|
|
2497
2501
|
"hide-cancel-button": "",
|
|
@@ -2501,7 +2505,7 @@ const Le = (e) => {
|
|
|
2501
2505
|
onProceed: _
|
|
2502
2506
|
}, {
|
|
2503
2507
|
default: E(() => [
|
|
2504
|
-
m(
|
|
2508
|
+
m(ka, {
|
|
2505
2509
|
config: e.config,
|
|
2506
2510
|
"partial-id": e.redisConfigurationId,
|
|
2507
2511
|
onLoad: u[0] || (u[0] = ({ total: w }) => r.value = w),
|
|
@@ -2513,7 +2517,7 @@ const Le = (e) => {
|
|
|
2513
2517
|
]);
|
|
2514
2518
|
};
|
|
2515
2519
|
}
|
|
2516
|
-
}),
|
|
2520
|
+
}), Pa = /* @__PURE__ */ ae(xa, [["__scopeId", "data-v-6148b8bd"]]), Aa = /* @__PURE__ */ Q({
|
|
2517
2521
|
__name: "DeleteWarningModal",
|
|
2518
2522
|
props: {
|
|
2519
2523
|
visible: {
|
|
@@ -2545,7 +2549,7 @@ const Le = (e) => {
|
|
|
2545
2549
|
}, 8, ["action-button-text", "title", "visible"]);
|
|
2546
2550
|
};
|
|
2547
2551
|
}
|
|
2548
|
-
}),
|
|
2552
|
+
}), Va = { class: "kong-ui-entities-partials-list" }, $a = { class: "empty-state-icon-gateway" }, La = 1e3, Ma = /* @__PURE__ */ Q({
|
|
2549
2553
|
__name: "RedisConfigurationList",
|
|
2550
2554
|
props: {
|
|
2551
2555
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2596,12 +2600,12 @@ const Le = (e) => {
|
|
|
2596
2600
|
var d, R;
|
|
2597
2601
|
let C = `${o.config.apiBaseUrl}${Ve.list[o.config.app]}`;
|
|
2598
2602
|
return o.config.app === "konnect" ? C = C.replace(/{controlPlaneId}/gi, ((d = o.config) == null ? void 0 : d.controlPlaneId) || "") : o.config.app === "kongManager" && (C = C.replace(/\/{workspace}/gi, (R = o.config) != null && R.workspace ? `/${o.config.workspace}` : "")), C;
|
|
2599
|
-
}), a = $(!1), p = $(""), _ = $(null), l = $(void 0), u = $(!1), y = $(!1), w = $(""), b = $(!1), S =
|
|
2603
|
+
}), a = $(!1), p = $(""), _ = $(null), l = $(void 0), u = $(!1), y = $(!1), w = $(""), b = $(!1), S = On(o.config, r.value), v = $(1), s = H(() => o.config.app !== "kongManager" || !!o.config.disableSorting), { fetcher: I, fetcherState: V } = xn(o.config, r);
|
|
2600
2604
|
async function f(C) {
|
|
2601
|
-
const d = await I({ ...C, pageSize:
|
|
2605
|
+
const d = await I({ ...C, pageSize: La });
|
|
2602
2606
|
return d.data = d.data.filter((R) => R.type === Y.REDIS_CE || R.type === Y.REDIS_EE), d;
|
|
2603
2607
|
}
|
|
2604
|
-
const { i18n: { t: c } } = pe.useI18n(), { axiosInstance: N } =
|
|
2608
|
+
const { i18n: { t: c } } = pe.useI18n(), { axiosInstance: N } = mt((he = o.config) == null ? void 0 : he.axiosRequestConfig), L = Ht(), z = $(""), X = H(() => {
|
|
2605
2609
|
const C = o.config.app === "konnect" || o.config.isExactMatch;
|
|
2606
2610
|
if (C)
|
|
2607
2611
|
return {
|
|
@@ -2658,8 +2662,8 @@ const Le = (e) => {
|
|
|
2658
2662
|
}
|
|
2659
2663
|
}, g = () => {
|
|
2660
2664
|
v.value++;
|
|
2661
|
-
},
|
|
2662
|
-
switch (
|
|
2665
|
+
}, Ye = (C) => {
|
|
2666
|
+
switch (Je(C)) {
|
|
2663
2667
|
case T.HOST_PORT_CE:
|
|
2664
2668
|
return `${c("form.options.type.host_port")}${c("form.options.type.suffix_open_source")}`;
|
|
2665
2669
|
case T.HOST_PORT_EE:
|
|
@@ -2689,7 +2693,7 @@ const Le = (e) => {
|
|
|
2689
2693
|
};
|
|
2690
2694
|
return ke(V, (C) => {
|
|
2691
2695
|
var d, R, J;
|
|
2692
|
-
if (C.status ===
|
|
2696
|
+
if (C.status === Pn.Error) {
|
|
2693
2697
|
_.value = {
|
|
2694
2698
|
title: c("errors.general")
|
|
2695
2699
|
}, (J = (R = (d = C.error) == null ? void 0 : d.response) == null ? void 0 : R.data) != null && J.message && (_.value.message = C.error.response.data.message), n("error", C.error);
|
|
@@ -2701,9 +2705,9 @@ const Le = (e) => {
|
|
|
2701
2705
|
}, {
|
|
2702
2706
|
immediate: !0
|
|
2703
2707
|
}), (C, d) => {
|
|
2704
|
-
const R = D("KButton"), J = D("KDropdownItem"),
|
|
2705
|
-
return k(), q("div",
|
|
2706
|
-
m(i(
|
|
2708
|
+
const R = D("KButton"), J = D("KDropdownItem"), gn = D("KClipboardProvider");
|
|
2709
|
+
return k(), q("div", Va, [
|
|
2710
|
+
m(i(An), {
|
|
2707
2711
|
"cache-identifier": e.cacheIdentifier,
|
|
2708
2712
|
"disable-sorting": s.value,
|
|
2709
2713
|
"empty-state-options": W.value,
|
|
@@ -2720,14 +2724,14 @@ const Le = (e) => {
|
|
|
2720
2724
|
onSort: g
|
|
2721
2725
|
}, {
|
|
2722
2726
|
"toolbar-filter": E(() => [
|
|
2723
|
-
m(i(
|
|
2727
|
+
m(i(Ft), {
|
|
2724
2728
|
modelValue: z.value,
|
|
2725
2729
|
"onUpdate:modelValue": d[0] || (d[0] = (O) => z.value = O),
|
|
2726
2730
|
config: X.value
|
|
2727
2731
|
}, null, 8, ["modelValue", "config"])
|
|
2728
2732
|
]),
|
|
2729
2733
|
"toolbar-button": E(() => [
|
|
2730
|
-
(k(), F(
|
|
2734
|
+
(k(), F(In, {
|
|
2731
2735
|
disabled: !e.useActionOutside,
|
|
2732
2736
|
to: "#kong-ui-app-page-header-action-button"
|
|
2733
2737
|
}, [
|
|
@@ -2740,7 +2744,7 @@ const Le = (e) => {
|
|
|
2740
2744
|
to: e.config.createRoute
|
|
2741
2745
|
}, {
|
|
2742
2746
|
default: E(() => [
|
|
2743
|
-
m(i(
|
|
2747
|
+
m(i(Hn)),
|
|
2744
2748
|
te(" " + B(i(c)("actions.create")), 1)
|
|
2745
2749
|
]),
|
|
2746
2750
|
_: 1
|
|
@@ -2754,24 +2758,24 @@ const Le = (e) => {
|
|
|
2754
2758
|
K("b", null, B(O ?? "-"), 1)
|
|
2755
2759
|
]),
|
|
2756
2760
|
type: E(({ row: O }) => [
|
|
2757
|
-
te(B(
|
|
2761
|
+
te(B(Ye(O)), 1)
|
|
2758
2762
|
]),
|
|
2759
2763
|
tags: E(({ rowValue: O }) => [
|
|
2760
|
-
m(i(
|
|
2764
|
+
m(i($n), { tags: O }, null, 8, ["tags"])
|
|
2761
2765
|
]),
|
|
2762
2766
|
plugins: E(({ row: O }) => [
|
|
2763
|
-
m(
|
|
2767
|
+
m(wa, {
|
|
2764
2768
|
config: e.config,
|
|
2765
2769
|
"partial-id": O.id,
|
|
2766
|
-
onClick:
|
|
2770
|
+
onClick: Cn((Qe) => de(O.id), ["stop"])
|
|
2767
2771
|
}, null, 8, ["config", "partial-id", "onClick"])
|
|
2768
2772
|
]),
|
|
2769
2773
|
actions: E(({ row: O }) => [
|
|
2770
|
-
m(
|
|
2771
|
-
default: E(({ copyToClipboard:
|
|
2774
|
+
m(gn, null, {
|
|
2775
|
+
default: E(({ copyToClipboard: Qe }) => [
|
|
2772
2776
|
m(J, {
|
|
2773
2777
|
"data-testid": "action-entity-copy-id",
|
|
2774
|
-
onClick: (
|
|
2778
|
+
onClick: (Ua) => U(O, Qe)
|
|
2775
2779
|
}, {
|
|
2776
2780
|
default: E(() => [
|
|
2777
2781
|
te(B(i(c)("actions.copy_id")), 1)
|
|
@@ -2812,7 +2816,7 @@ const Le = (e) => {
|
|
|
2812
2816
|
danger: "",
|
|
2813
2817
|
"data-testid": "action-entity-delete",
|
|
2814
2818
|
"has-divider": "",
|
|
2815
|
-
onClick: (
|
|
2819
|
+
onClick: (Qe) => G(O)
|
|
2816
2820
|
}, {
|
|
2817
2821
|
default: E(() => [
|
|
2818
2822
|
te(B(i(c)("actions.delete")), 1)
|
|
@@ -2824,7 +2828,7 @@ const Le = (e) => {
|
|
|
2824
2828
|
}, 1032, ["auth-function"])
|
|
2825
2829
|
]),
|
|
2826
2830
|
"empty-state": E(() => [
|
|
2827
|
-
m(i(
|
|
2831
|
+
m(i(Vn), {
|
|
2828
2832
|
"action-button-text": i(c)("list.action"),
|
|
2829
2833
|
appearance: "secondary",
|
|
2830
2834
|
"can-create": () => e.canCreate(),
|
|
@@ -2845,33 +2849,33 @@ const Le = (e) => {
|
|
|
2845
2849
|
"onClick:learnMore": d[1] || (d[1] = () => n("click:learn-more"))
|
|
2846
2850
|
}, {
|
|
2847
2851
|
image: E(() => [
|
|
2848
|
-
K("div",
|
|
2849
|
-
m(i(
|
|
2850
|
-
color: i(
|
|
2851
|
-
size: i(
|
|
2852
|
+
K("div", $a, [
|
|
2853
|
+
m(i(Fn), {
|
|
2854
|
+
color: i(ya),
|
|
2855
|
+
size: i(va)
|
|
2852
2856
|
}, null, 8, ["color", "size"])
|
|
2853
2857
|
])
|
|
2854
2858
|
]),
|
|
2855
2859
|
"feature-0-icon": E(() => [
|
|
2856
|
-
m(i(
|
|
2860
|
+
m(i(Bn))
|
|
2857
2861
|
]),
|
|
2858
2862
|
"feature-1-icon": E(() => [
|
|
2859
|
-
m(i(
|
|
2863
|
+
m(i(jn))
|
|
2860
2864
|
]),
|
|
2861
2865
|
_: 1
|
|
2862
2866
|
}, 8, ["action-button-text", "can-create", "description", "features", "title"])
|
|
2863
2867
|
]),
|
|
2864
2868
|
_: 1
|
|
2865
2869
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher-cache-key", "query"]),
|
|
2866
|
-
m(
|
|
2870
|
+
m(Aa, {
|
|
2867
2871
|
visible: b.value,
|
|
2868
2872
|
onClose: d[3] || (d[3] = (O) => b.value = !1)
|
|
2869
2873
|
}, null, 8, ["visible"]),
|
|
2870
|
-
m(i(
|
|
2874
|
+
m(i(Ln), {
|
|
2871
2875
|
"action-pending": y.value,
|
|
2872
2876
|
description: i(c)("delete.description"),
|
|
2873
2877
|
"entity-name": l.value && (l.value.name || l.value.id),
|
|
2874
|
-
"entity-type": i(
|
|
2878
|
+
"entity-type": i(Mn).RedisConfiguration,
|
|
2875
2879
|
error: w.value,
|
|
2876
2880
|
"need-confirmation": !0,
|
|
2877
2881
|
title: i(c)("delete.title"),
|
|
@@ -2879,7 +2883,7 @@ const Le = (e) => {
|
|
|
2879
2883
|
onCancel: ve,
|
|
2880
2884
|
onProceed: M
|
|
2881
2885
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
|
|
2882
|
-
m(
|
|
2886
|
+
m(Pa, {
|
|
2883
2887
|
config: e.config,
|
|
2884
2888
|
"redis-configuration-id": p.value,
|
|
2885
2889
|
visible: a.value,
|
|
@@ -2890,7 +2894,7 @@ const Le = (e) => {
|
|
|
2890
2894
|
]);
|
|
2891
2895
|
};
|
|
2892
2896
|
}
|
|
2893
|
-
}),
|
|
2897
|
+
}), Qa = /* @__PURE__ */ ae(Ma, [["__scopeId", "data-v-7d07fb48"]]), Da = { class: "kong-ui-consumer-group-entity-config-card" }, Xa = /* @__PURE__ */ Q({
|
|
2894
2898
|
__name: "RedisConfigurationConfigCard",
|
|
2895
2899
|
props: {
|
|
2896
2900
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2918,7 +2922,7 @@ const Le = (e) => {
|
|
|
2918
2922
|
emits: ["loading", "fetch:error", "fetch:success"],
|
|
2919
2923
|
setup(e, { emit: t }) {
|
|
2920
2924
|
const n = e, o = t, { i18n: { t: r } } = pe.useI18n(), a = H(() => Ve.form[n.config.app].edit), p = $(Se), _ = (v) => {
|
|
2921
|
-
p.value =
|
|
2925
|
+
p.value = Je(v), o("fetch:success", v);
|
|
2922
2926
|
}, l = H(() => {
|
|
2923
2927
|
const v = p.value === T.HOST_PORT_CE ? r("form.options.type.suffix_open_source") : r("form.options.type.suffix_enterprise");
|
|
2924
2928
|
let s = "";
|
|
@@ -3193,13 +3197,13 @@ const Le = (e) => {
|
|
|
3193
3197
|
throw new Error("Invalid Redis type");
|
|
3194
3198
|
}
|
|
3195
3199
|
});
|
|
3196
|
-
return (v, s) => (k(), q("div",
|
|
3197
|
-
m(i(
|
|
3200
|
+
return (v, s) => (k(), q("div", Da, [
|
|
3201
|
+
m(i(Dn), {
|
|
3198
3202
|
"code-block-record-formatter": y,
|
|
3199
3203
|
config: e.config,
|
|
3200
3204
|
"config-card-doc": e.configCardDoc,
|
|
3201
3205
|
"config-schema": S.value,
|
|
3202
|
-
"entity-type": i(
|
|
3206
|
+
"entity-type": i(Bt).RedisConfiguration,
|
|
3203
3207
|
"fetch-url": a.value,
|
|
3204
3208
|
"hide-title": e.hideTitle,
|
|
3205
3209
|
"record-resolver": u,
|
|
@@ -3214,19 +3218,19 @@ const Le = (e) => {
|
|
|
3214
3218
|
}, 8, ["config", "config-card-doc", "config-schema", "entity-type", "fetch-url", "hide-title"])
|
|
3215
3219
|
]));
|
|
3216
3220
|
}
|
|
3217
|
-
}),
|
|
3218
|
-
useLinkedPlugins:
|
|
3221
|
+
}), Za = {
|
|
3222
|
+
useLinkedPlugins: mn,
|
|
3219
3223
|
useLinkedPluginsFetcher: Le
|
|
3220
3224
|
};
|
|
3221
3225
|
export {
|
|
3222
|
-
|
|
3223
|
-
|
|
3226
|
+
Aa as DeleteWarningModal,
|
|
3227
|
+
ka as LinkedPlugins,
|
|
3224
3228
|
Y as PartialType,
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3229
|
+
Xa as RedisConfigurationConfigCard,
|
|
3230
|
+
Ya as RedisConfigurationForm,
|
|
3231
|
+
Qa as RedisConfigurationList,
|
|
3228
3232
|
T as RedisType,
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3233
|
+
Za as composables,
|
|
3234
|
+
Ga as constants,
|
|
3235
|
+
Ja as helpers
|
|
3232
3236
|
};
|