@kong-ui-public/entities-upstreams-targets 2.1.4 → 2.1.5
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,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as ae, ref as E, computed as F, watch as ve, renderSlot as te, createCommentVNode as Q, unref as c, useSlots as ct, onBeforeMount as et, resolveComponent as K, openBlock as b, createBlock as P, createSlots as
|
|
1
|
+
import { defineComponent as ae, ref as E, computed as F, watch as ve, renderSlot as te, createCommentVNode as Q, unref as c, useSlots as ct, onBeforeMount as et, resolveComponent as K, openBlock as b, createBlock as P, createSlots as Ae, withCtx as p, createElementVNode as x, createTextVNode as Y, toDisplayString as w, createVNode as y, createElementBlock as N, renderList as ye, Fragment as ce, normalizeClass as Oe, withModifiers as kt, withDirectives as Be, vShow as Ve, useCssVars as Kl, resolveDynamicComponent as De, normalizeProps as Rs, guardReactiveProps as Ds, mergeProps as Ct, onMounted as zs, onUnmounted as Js, normalizeStyle as jl, inject as Ws, pushScopeId as Nl, popScopeId as El, Teleport as Pl, reactive as lt } from "vue";
|
|
2
2
|
import Qs from "axios";
|
|
3
3
|
import { createI18n as Ut, i18nTComponent as Bl } from "@kong-ui-public/i18n";
|
|
4
4
|
import { MethodsArray as Ys } from "@kong/kongponents";
|
|
5
5
|
import { useRouter as $t } from "vue-router";
|
|
6
|
-
var Mt = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(Mt || {}), Ce = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(Ce || {}), He = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(He || {}),
|
|
6
|
+
var Mt = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(Mt || {}), Ce = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(Ce || {}), He = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(He || {}), se = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(se || {}), ne = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(ne || {});
|
|
7
7
|
function Kt(e = {}) {
|
|
8
8
|
return {
|
|
9
9
|
axiosInstance: Qs.create({
|
|
@@ -218,44 +218,44 @@ function cr(e, a, t, l = {
|
|
|
218
218
|
t || (t = "100");
|
|
219
219
|
const { axiosInstance: s } = Kt({
|
|
220
220
|
headers: e.requestHeaders
|
|
221
|
-
}), { i18n: { t: i } } = jt(), { debounce: o } = Gs(), d = o(async (
|
|
222
|
-
await R(
|
|
221
|
+
}), { i18n: { t: i } } = jt(), { debounce: o } = Gs(), d = o(async (A) => {
|
|
222
|
+
await R(A);
|
|
223
223
|
}, 200), n = E(!1), u = E(""), f = E(""), h = E([]), r = E([]), C = E(void 0), S = c(a);
|
|
224
224
|
let m = `${e.apiBaseUrl}${S}`;
|
|
225
225
|
e.app === "konnect" ? m = m.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (m = m.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
226
226
|
const { isValidUuid: g } = Vl(), q = async () => {
|
|
227
227
|
try {
|
|
228
228
|
n.value = !0;
|
|
229
|
-
const { data:
|
|
230
|
-
|
|
229
|
+
const { data: A } = await s.get(`${m}?size=${t}`);
|
|
230
|
+
A != null && A.next || (C.value = l.fetchedItemsKey in A ? A[l.fetchedItemsKey] : []), r.value = l.fetchedItemsKey in A ? A[l.fetchedItemsKey] : [], h.value = r.value;
|
|
231
231
|
} catch {
|
|
232
232
|
h.value = [], u.value = i("debouncedFilter.errors.fetch");
|
|
233
233
|
} finally {
|
|
234
234
|
n.value = !1;
|
|
235
235
|
}
|
|
236
|
-
}, I = E(""), R = async (
|
|
237
|
-
var
|
|
238
|
-
if (I.value !==
|
|
239
|
-
if (I.value =
|
|
236
|
+
}, I = E(""), R = async (A) => {
|
|
237
|
+
var T, D, B;
|
|
238
|
+
if (I.value !== A)
|
|
239
|
+
if (I.value = A || "", C.value === void 0)
|
|
240
240
|
try {
|
|
241
241
|
if (n.value = !0, u.value = "", f.value = "", e.app === "konnect") {
|
|
242
242
|
let O = m + "";
|
|
243
|
-
|
|
243
|
+
A && (O += `/${A}`);
|
|
244
244
|
const { data: $ } = await s.get(`${O}?size=${t}`);
|
|
245
245
|
l.fetchedItemsKey in $ ? h.value = $[l.fetchedItemsKey] : $ != null && $.id ? h.value = [$] : h.value = [];
|
|
246
|
-
} else if (
|
|
246
|
+
} else if (A) {
|
|
247
247
|
const O = [];
|
|
248
|
-
g(
|
|
249
|
-
const { data: M } = await s.get(`${m}/${
|
|
248
|
+
g(A) && l.searchKeys.includes("id") ? O.push((async () => {
|
|
249
|
+
const { data: M } = await s.get(`${m}/${A}`);
|
|
250
250
|
return [M[l.fetchedItemsKey] ?? M];
|
|
251
251
|
})()) : O.push(
|
|
252
252
|
...l.searchKeys.filter((M) => M !== "id").map(async (M) => {
|
|
253
|
-
const { data: j } = await s.get(`${m}?${M}=${
|
|
253
|
+
const { data: j } = await s.get(`${m}?${M}=${A}`);
|
|
254
254
|
return j[l.fetchedItemsKey];
|
|
255
255
|
})
|
|
256
256
|
);
|
|
257
257
|
const $ = await Promise.all(O), H = /* @__PURE__ */ new Set();
|
|
258
|
-
h.value = [], (
|
|
258
|
+
h.value = [], (T = $ == null ? void 0 : $.forEach) == null || T.call($, (M) => {
|
|
259
259
|
var j;
|
|
260
260
|
(j = M == null ? void 0 : M.forEach) == null || j.call(M, (W) => {
|
|
261
261
|
H.has(W.id) || (H.add(W.id), h.value.push(W));
|
|
@@ -269,12 +269,12 @@ function cr(e, a, t, l = {
|
|
|
269
269
|
n.value = !1;
|
|
270
270
|
}
|
|
271
271
|
else
|
|
272
|
-
n.value = !0, f.value = "",
|
|
272
|
+
n.value = !0, f.value = "", A ? (h.value = (B = C.value) == null ? void 0 : B.filter((O) => {
|
|
273
273
|
var $;
|
|
274
274
|
let H = !1;
|
|
275
275
|
for (const M of l.searchKeys) {
|
|
276
276
|
const j = typeof O[M] == "string" ? ($ = O[M]) == null ? void 0 : $.toLowerCase() : O[M];
|
|
277
|
-
j != null && j.includes(
|
|
277
|
+
j != null && j.includes(A.toLowerCase()) && (H = !0);
|
|
278
278
|
}
|
|
279
279
|
return H;
|
|
280
280
|
}), (!h.value || !h.value.length) && (f.value = i("debouncedFilter.errors.invalid"))) : h.value = C.value, n.value = !1;
|
|
@@ -491,10 +491,10 @@ const de = {
|
|
|
491
491
|
for (const [l, s] of a)
|
|
492
492
|
t[l] = s;
|
|
493
493
|
return t;
|
|
494
|
-
},
|
|
494
|
+
}, Ar = (e) => (Nl("data-v-77afb926"), e = e(), El(), e), Tr = ["aria-hidden"], Or = {
|
|
495
495
|
key: 0,
|
|
496
496
|
"data-testid": "kui-icon-svg-title"
|
|
497
|
-
}, Fr = /* @__PURE__ */
|
|
497
|
+
}, Fr = /* @__PURE__ */ Ar(() => /* @__PURE__ */ x("path", {
|
|
498
498
|
d: "M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.97917 17.8042 7.5875 17.4125C7.19583 17.0208 7 16.55 7 16V4C7 3.45 7.19583 2.97917 7.5875 2.5875C7.97917 2.19583 8.45 2 9 2H18C18.55 2 19.0208 2.19583 19.4125 2.5875C19.8042 2.97917 20 3.45 20 4V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H9ZM9 16H18V4H9V16Z",
|
|
499
499
|
fill: "currentColor"
|
|
500
500
|
}, null, -1)), qr = /* @__PURE__ */ ae({
|
|
@@ -585,12 +585,12 @@ const de = {
|
|
|
585
585
|
}, [
|
|
586
586
|
e.title ? (b(), N("title", Or, w(e.title), 1)) : Q("", !0),
|
|
587
587
|
Fr
|
|
588
|
-
], 8,
|
|
588
|
+
], 8, Tr))
|
|
589
589
|
]),
|
|
590
590
|
_: 1
|
|
591
591
|
}, 8, ["aria-hidden", "style"]));
|
|
592
592
|
}
|
|
593
|
-
}), Ur = /* @__PURE__ */ Hr(qr, [["__scopeId", "data-v-
|
|
593
|
+
}), Ur = /* @__PURE__ */ Hr(qr, [["__scopeId", "data-v-77afb926"]]), $r = "16px", Mr = { class: "kong-ui-copy-uuid" }, Kr = ["onClick"], ml = 15, jr = /* @__PURE__ */ ae({
|
|
594
594
|
__name: "CopyUuid",
|
|
595
595
|
props: {
|
|
596
596
|
uuid: {
|
|
@@ -845,9 +845,9 @@ const de = {
|
|
|
845
845
|
"1957f153": n.value && o.value ? "100%" : t.slim ? "50%" : "25%",
|
|
846
846
|
"195a372e": n.value && o.value ? "100%" : t.slim ? "50%" : "75%"
|
|
847
847
|
}));
|
|
848
|
-
const l = ct(), { i18n: { t: s, formatUnixTimeStamp: i } } = de.useI18n(), o = F(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), d = F(() => !!(t.item.tooltip || l["label-tooltip"])), n = F(() => t.item.type ===
|
|
848
|
+
const l = ct(), { i18n: { t: s, formatUnixTimeStamp: i } } = de.useI18n(), o = F(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), d = F(() => !!(t.item.tooltip || l["label-tooltip"])), n = F(() => t.item.type === se.Json || t.item.type === se.JsonArray), u = F(() => t.item.type === se.JsonArray), f = F(() => {
|
|
849
849
|
switch (t.item.type) {
|
|
850
|
-
case
|
|
850
|
+
case se.ID:
|
|
851
851
|
return {
|
|
852
852
|
tag: "CopyUuid",
|
|
853
853
|
attrs: {
|
|
@@ -860,7 +860,7 @@ const de = {
|
|
|
860
860
|
}
|
|
861
861
|
}
|
|
862
862
|
};
|
|
863
|
-
case
|
|
863
|
+
case se.IdArray:
|
|
864
864
|
return {
|
|
865
865
|
tag: "div",
|
|
866
866
|
additionalComponent: "CopyUuid",
|
|
@@ -872,7 +872,7 @@ const de = {
|
|
|
872
872
|
}
|
|
873
873
|
}
|
|
874
874
|
};
|
|
875
|
-
case
|
|
875
|
+
case se.Redacted:
|
|
876
876
|
return {
|
|
877
877
|
tag: "CopyUuid",
|
|
878
878
|
attrs: {
|
|
@@ -886,7 +886,7 @@ const de = {
|
|
|
886
886
|
}
|
|
887
887
|
}
|
|
888
888
|
};
|
|
889
|
-
case
|
|
889
|
+
case se.RedactedArray:
|
|
890
890
|
return {
|
|
891
891
|
tag: "div",
|
|
892
892
|
additionalComponent: "CopyUuid",
|
|
@@ -899,7 +899,7 @@ const de = {
|
|
|
899
899
|
}
|
|
900
900
|
}
|
|
901
901
|
};
|
|
902
|
-
case
|
|
902
|
+
case se.Date:
|
|
903
903
|
return {
|
|
904
904
|
tag: "div",
|
|
905
905
|
attrs: {
|
|
@@ -907,7 +907,7 @@ const de = {
|
|
|
907
907
|
},
|
|
908
908
|
text: i(t.item.value)
|
|
909
909
|
};
|
|
910
|
-
case
|
|
910
|
+
case se.BadgeStatus:
|
|
911
911
|
return {
|
|
912
912
|
tag: "StatusBadge",
|
|
913
913
|
attrs: {
|
|
@@ -915,17 +915,17 @@ const de = {
|
|
|
915
915
|
status: t.item.value
|
|
916
916
|
}
|
|
917
917
|
};
|
|
918
|
-
case
|
|
918
|
+
case se.BadgeTag:
|
|
919
919
|
return {
|
|
920
920
|
tag: "div",
|
|
921
921
|
additionalComponent: "KBadge"
|
|
922
922
|
};
|
|
923
|
-
case
|
|
923
|
+
case se.BadgeMethod:
|
|
924
924
|
return {
|
|
925
925
|
tag: "div",
|
|
926
926
|
additionalComponent: "KMethodBadge"
|
|
927
927
|
};
|
|
928
|
-
case
|
|
928
|
+
case se.LinkInternal:
|
|
929
929
|
return {
|
|
930
930
|
tag: "InternalLinkItem",
|
|
931
931
|
attrs: {
|
|
@@ -936,7 +936,7 @@ const de = {
|
|
|
936
936
|
}
|
|
937
937
|
}
|
|
938
938
|
};
|
|
939
|
-
case
|
|
939
|
+
case se.LinkExternal:
|
|
940
940
|
return {
|
|
941
941
|
tag: "KExternalLink",
|
|
942
942
|
attrs: {
|
|
@@ -945,7 +945,7 @@ const de = {
|
|
|
945
945
|
},
|
|
946
946
|
text: t.item.value
|
|
947
947
|
};
|
|
948
|
-
case
|
|
948
|
+
case se.Json:
|
|
949
949
|
return {
|
|
950
950
|
tag: "JsonCardItem",
|
|
951
951
|
attrs: {
|
|
@@ -953,7 +953,7 @@ const de = {
|
|
|
953
953
|
item: t.item
|
|
954
954
|
}
|
|
955
955
|
};
|
|
956
|
-
case
|
|
956
|
+
case se.JsonArray:
|
|
957
957
|
return {
|
|
958
958
|
tag: "div",
|
|
959
959
|
additionalComponent: "JsonCardItem",
|
|
@@ -980,7 +980,7 @@ const de = {
|
|
|
980
980
|
"data-testid": `${e.item.key}-label`
|
|
981
981
|
}, [
|
|
982
982
|
te(C.$slots, "label", { item: e.item }, () => [
|
|
983
|
-
y(m, { "tooltip-attributes": { maxWidth: "500px" } },
|
|
983
|
+
y(m, { "tooltip-attributes": { maxWidth: "500px" } }, Ae({
|
|
984
984
|
default: p(() => [
|
|
985
985
|
Y(w(e.item.label) + " ", 1)
|
|
986
986
|
]),
|
|
@@ -1016,10 +1016,10 @@ const de = {
|
|
|
1016
1016
|
key: 0,
|
|
1017
1017
|
"data-testid": `${e.item.key}-badge-tags`
|
|
1018
1018
|
}, [
|
|
1019
|
-
(b(!0), N(ce, null, ye(e.item.value, (R,
|
|
1020
|
-
key: `${e.item.key}-badge-tag-${
|
|
1019
|
+
(b(!0), N(ce, null, ye(e.item.value, (R, A) => (b(), P(g, {
|
|
1020
|
+
key: `${e.item.key}-badge-tag-${A}`,
|
|
1021
1021
|
class: "config-badge",
|
|
1022
|
-
"data-testid": `${e.item.key}-badge-tag-${
|
|
1022
|
+
"data-testid": `${e.item.key}-badge-tag-${A}`,
|
|
1023
1023
|
"truncation-tooltip": R
|
|
1024
1024
|
}, {
|
|
1025
1025
|
default: p(() => [
|
|
@@ -1033,9 +1033,9 @@ const de = {
|
|
|
1033
1033
|
class: "copy-uuid-array",
|
|
1034
1034
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
1035
1035
|
}, [
|
|
1036
|
-
(b(!0), N(ce, null, ye(e.item.value, (R,
|
|
1037
|
-
key: `${e.item.key}-copy-uuid-${
|
|
1038
|
-
"data-testid": `${e.item.key}-copy-uuid-${
|
|
1036
|
+
(b(!0), N(ce, null, ye(e.item.value, (R, A) => (b(), P(c(zl), Ct(f.value.childAttrs, {
|
|
1037
|
+
key: `${e.item.key}-copy-uuid-${A}`,
|
|
1038
|
+
"data-testid": `${e.item.key}-copy-uuid-${A}`,
|
|
1039
1039
|
uuid: R
|
|
1040
1040
|
}), null, 16, ["data-testid", "uuid"]))), 128))
|
|
1041
1041
|
], 8, ai)) : f.value.additionalComponent === "KMethodBadge" ? (b(), N("div", {
|
|
@@ -1043,10 +1043,10 @@ const de = {
|
|
|
1043
1043
|
class: "method-badge-array",
|
|
1044
1044
|
"data-testid": `${e.item.key}-badge-methods`
|
|
1045
1045
|
}, [
|
|
1046
|
-
(b(!0), N(ce, null, ye(e.item.value, (R,
|
|
1047
|
-
key: `${e.item.key}-badge-method-${
|
|
1046
|
+
(b(!0), N(ce, null, ye(e.item.value, (R, A) => (b(), P(q, {
|
|
1047
|
+
key: `${e.item.key}-badge-method-${A}`,
|
|
1048
1048
|
class: "config-badge",
|
|
1049
|
-
"data-testid": `${e.item.key}-badge-method-${
|
|
1049
|
+
"data-testid": `${e.item.key}-badge-method-${A}`,
|
|
1050
1050
|
"is-rounded": "",
|
|
1051
1051
|
label: R,
|
|
1052
1052
|
method: c(Ys).includes(R.toLowerCase()) ? R.toLowerCase() : "custom"
|
|
@@ -1061,9 +1061,9 @@ const de = {
|
|
|
1061
1061
|
key: 3,
|
|
1062
1062
|
"data-testid": `${t.item.key}-json-array-content`
|
|
1063
1063
|
}, [
|
|
1064
|
-
(b(!0), N(ce, null, ye(e.item.value, (R,
|
|
1065
|
-
key: `json-array-item-${
|
|
1066
|
-
index:
|
|
1064
|
+
(b(!0), N(ce, null, ye(e.item.value, (R, A) => (b(), P(Jl, {
|
|
1065
|
+
key: `json-array-item-${A}`,
|
|
1066
|
+
index: A,
|
|
1067
1067
|
"is-array-item": "",
|
|
1068
1068
|
item: R
|
|
1069
1069
|
}, null, 8, ["index", "item"]))), 128))
|
|
@@ -1333,13 +1333,13 @@ var ts = new pe("tag:yaml.org,2002:null", {
|
|
|
1333
1333
|
},
|
|
1334
1334
|
defaultStyle: "lowercase"
|
|
1335
1335
|
});
|
|
1336
|
-
function
|
|
1336
|
+
function Ai(e) {
|
|
1337
1337
|
if (e === null)
|
|
1338
1338
|
return !1;
|
|
1339
1339
|
var a = e.length;
|
|
1340
1340
|
return a === 4 && (e === "true" || e === "True" || e === "TRUE") || a === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
1341
1341
|
}
|
|
1342
|
-
function
|
|
1342
|
+
function Ti(e) {
|
|
1343
1343
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1344
1344
|
}
|
|
1345
1345
|
function Oi(e) {
|
|
@@ -1347,8 +1347,8 @@ function Oi(e) {
|
|
|
1347
1347
|
}
|
|
1348
1348
|
var as = new pe("tag:yaml.org,2002:bool", {
|
|
1349
1349
|
kind: "scalar",
|
|
1350
|
-
resolve:
|
|
1351
|
-
construct:
|
|
1350
|
+
resolve: Ai,
|
|
1351
|
+
construct: Ti,
|
|
1352
1352
|
predicate: Oi,
|
|
1353
1353
|
represent: {
|
|
1354
1354
|
lowercase: function(e) {
|
|
@@ -1756,7 +1756,7 @@ var kl = {
|
|
|
1756
1756
|
e.tagMap[l] = s;
|
|
1757
1757
|
}
|
|
1758
1758
|
};
|
|
1759
|
-
function
|
|
1759
|
+
function Te(e, a, t, l) {
|
|
1760
1760
|
var s, i, o, d;
|
|
1761
1761
|
if (a < t) {
|
|
1762
1762
|
if (d = e.input.slice(a, t), l)
|
|
@@ -1843,9 +1843,9 @@ function yn(e, a, t) {
|
|
|
1843
1843
|
break;
|
|
1844
1844
|
}
|
|
1845
1845
|
}
|
|
1846
|
-
d && (
|
|
1846
|
+
d && (Te(e, i, o, !1), Vt(e, e.line - n), i = o = e.position, d = !1), Ue(C) || (o = e.position + 1), C = e.input.charCodeAt(++e.position);
|
|
1847
1847
|
}
|
|
1848
|
-
return
|
|
1848
|
+
return Te(e, i, o, !1), e.result ? !0 : (e.kind = h, e.result = r, !1);
|
|
1849
1849
|
}
|
|
1850
1850
|
function vn(e, a) {
|
|
1851
1851
|
var t, l, s;
|
|
@@ -1853,12 +1853,12 @@ function vn(e, a) {
|
|
|
1853
1853
|
return !1;
|
|
1854
1854
|
for (e.kind = "scalar", e.result = "", e.position++, l = s = e.position; (t = e.input.charCodeAt(e.position)) !== 0; )
|
|
1855
1855
|
if (t === 39)
|
|
1856
|
-
if (
|
|
1856
|
+
if (Te(e, l, e.position, !0), t = e.input.charCodeAt(++e.position), t === 39)
|
|
1857
1857
|
l = e.position, e.position++, s = e.position;
|
|
1858
1858
|
else
|
|
1859
1859
|
return !0;
|
|
1860
1860
|
else
|
|
1861
|
-
_e(t) ? (
|
|
1861
|
+
_e(t) ? (Te(e, l, s, !0), Vt(e, oe(e, !1, a)), l = s = e.position) : e.position === e.lineStart && dt(e) ? V(e, "unexpected end of the document within a single quoted scalar") : (e.position++, s = e.position);
|
|
1862
1862
|
V(e, "unexpected end of the stream within a single quoted scalar");
|
|
1863
1863
|
}
|
|
1864
1864
|
function bn(e, a) {
|
|
@@ -1867,9 +1867,9 @@ function bn(e, a) {
|
|
|
1867
1867
|
return !1;
|
|
1868
1868
|
for (e.kind = "scalar", e.result = "", e.position++, t = l = e.position; (d = e.input.charCodeAt(e.position)) !== 0; ) {
|
|
1869
1869
|
if (d === 34)
|
|
1870
|
-
return
|
|
1870
|
+
return Te(e, t, e.position, !0), e.position++, !0;
|
|
1871
1871
|
if (d === 92) {
|
|
1872
|
-
if (
|
|
1872
|
+
if (Te(e, t, e.position, !0), d = e.input.charCodeAt(++e.position), _e(d))
|
|
1873
1873
|
oe(e, !1, a);
|
|
1874
1874
|
else if (d < 256 && bs[d])
|
|
1875
1875
|
e.result += ks[d], e.position++;
|
|
@@ -1881,7 +1881,7 @@ function bn(e, a) {
|
|
|
1881
1881
|
V(e, "unknown escape sequence");
|
|
1882
1882
|
t = l = e.position;
|
|
1883
1883
|
} else
|
|
1884
|
-
_e(d) ? (
|
|
1884
|
+
_e(d) ? (Te(e, t, l, !0), Vt(e, oe(e, !1, a)), t = l = e.position) : e.position === e.lineStart && dt(e) ? V(e, "unexpected end of the document within a double quoted scalar") : (e.position++, l = e.position);
|
|
1885
1885
|
}
|
|
1886
1886
|
V(e, "unexpected end of the stream within a double quoted scalar");
|
|
1887
1887
|
}
|
|
@@ -1943,7 +1943,7 @@ function Cn(e, a) {
|
|
|
1943
1943
|
`, n) : e.result += ue.repeat(`
|
|
1944
1944
|
`, i ? 1 + n : n), i = !0, o = !0, n = 0, t = e.position; !_e(h) && h !== 0; )
|
|
1945
1945
|
h = e.input.charCodeAt(++e.position);
|
|
1946
|
-
|
|
1946
|
+
Te(e, t, e.position, !1);
|
|
1947
1947
|
}
|
|
1948
1948
|
return !0;
|
|
1949
1949
|
}
|
|
@@ -2107,7 +2107,7 @@ function Hn(e, a, t) {
|
|
|
2107
2107
|
for (var s = 0, i = l.length; s < i; s += 1)
|
|
2108
2108
|
a(l[s]);
|
|
2109
2109
|
}
|
|
2110
|
-
function
|
|
2110
|
+
function An(e, a) {
|
|
2111
2111
|
var t = _s(e, a);
|
|
2112
2112
|
if (t.length !== 0) {
|
|
2113
2113
|
if (t.length === 1)
|
|
@@ -2115,10 +2115,10 @@ function Tn(e, a) {
|
|
|
2115
2115
|
throw new ge("expected a single document in the stream, but found more");
|
|
2116
2116
|
}
|
|
2117
2117
|
}
|
|
2118
|
-
var
|
|
2119
|
-
loadAll:
|
|
2118
|
+
var Tn = Hn, On = An, ws = {
|
|
2119
|
+
loadAll: Tn,
|
|
2120
2120
|
load: On
|
|
2121
|
-
}, Ss = Object.prototype.toString, Is = Object.prototype.hasOwnProperty, Lt = 65279, Fn = 9, Ye = 10, qn = 13, Un = 32, $n = 33, Mn = 34, wt = 35, Kn = 37, jn = 38, Nn = 39, En = 42, xs = 44, Pn = 45, nt = 58, Bn = 61, Vn = 62, Ln = 63, Rn = 64, Hs = 91,
|
|
2121
|
+
}, Ss = Object.prototype.toString, Is = Object.prototype.hasOwnProperty, Lt = 65279, Fn = 9, Ye = 10, qn = 13, Un = 32, $n = 33, Mn = 34, wt = 35, Kn = 37, jn = 38, Nn = 39, En = 42, xs = 44, Pn = 45, nt = 58, Bn = 61, Vn = 62, Ln = 63, Rn = 64, Hs = 91, As = 93, Dn = 96, Ts = 123, zn = 124, Os = 125, me = {};
|
|
2122
2122
|
me[0] = "\\0";
|
|
2123
2123
|
me[7] = "\\a";
|
|
2124
2124
|
me[8] = "\\b";
|
|
@@ -2210,11 +2210,11 @@ function Il(e, a, t) {
|
|
|
2210
2210
|
(t ? (
|
|
2211
2211
|
// c = flow-in
|
|
2212
2212
|
l
|
|
2213
|
-
) : l && e !== xs && e !== Hs && e !==
|
|
2213
|
+
) : l && e !== xs && e !== Hs && e !== As && e !== Ts && e !== Os) && e !== wt && !(a === nt && !s) || Sl(a) && !ot(a) && e === wt || a === nt && s
|
|
2214
2214
|
);
|
|
2215
2215
|
}
|
|
2216
2216
|
function eo(e) {
|
|
2217
|
-
return Ze(e) && e !== Lt && !ot(e) && e !== Pn && e !== Ln && e !== nt && e !== xs && e !== Hs && e !==
|
|
2217
|
+
return Ze(e) && e !== Lt && !ot(e) && e !== Pn && e !== Ln && e !== nt && e !== xs && e !== Hs && e !== As && e !== Ts && e !== Os && e !== wt && e !== jn && e !== En && e !== $n && e !== zn && e !== Bn && e !== Vn && e !== Nn && e !== Mn && e !== Kn && e !== Rn && e !== Dn;
|
|
2218
2218
|
}
|
|
2219
2219
|
function to(e) {
|
|
2220
2220
|
return !ot(e) && e !== nt;
|
|
@@ -2300,16 +2300,16 @@ function so(e, a) {
|
|
|
2300
2300
|
for (var t = /(\n+)([^\n]*)/g, l = function() {
|
|
2301
2301
|
var u = e.indexOf(`
|
|
2302
2302
|
`);
|
|
2303
|
-
return u = u !== -1 ? u : e.length, t.lastIndex = u,
|
|
2303
|
+
return u = u !== -1 ? u : e.length, t.lastIndex = u, Al(e.slice(0, u), a);
|
|
2304
2304
|
}(), s = e[0] === `
|
|
2305
2305
|
` || e[0] === " ", i, o; o = t.exec(e); ) {
|
|
2306
2306
|
var d = o[1], n = o[2];
|
|
2307
2307
|
i = n[0] === " ", l += d + (!s && !i && n !== "" ? `
|
|
2308
|
-
` : "") +
|
|
2308
|
+
` : "") + Al(n, a), s = i;
|
|
2309
2309
|
}
|
|
2310
2310
|
return l;
|
|
2311
2311
|
}
|
|
2312
|
-
function
|
|
2312
|
+
function Al(e, a) {
|
|
2313
2313
|
if (e === "" || e[0] === " ")
|
|
2314
2314
|
return e;
|
|
2315
2315
|
for (var t = / [^ ]/g, l, s = 0, i, o = 0, d = 0, n = ""; l = t.exec(e); )
|
|
@@ -2330,7 +2330,7 @@ function io(e, a, t) {
|
|
|
2330
2330
|
d = t[i], e.replacer && (d = e.replacer.call(t, String(i), d)), (Se(e, a, d, !1, !1) || typeof d > "u" && Se(e, a, null, !1, !1)) && (l !== "" && (l += "," + (e.condenseFlow ? "" : " ")), l += e.dump);
|
|
2331
2331
|
e.tag = s, e.dump = "[" + l + "]";
|
|
2332
2332
|
}
|
|
2333
|
-
function
|
|
2333
|
+
function Tl(e, a, t, l) {
|
|
2334
2334
|
var s = "", i = e.tag, o, d, n;
|
|
2335
2335
|
for (o = 0, d = t.length; o < d; o += 1)
|
|
2336
2336
|
n = t[o], e.replacer && (n = e.replacer.call(t, String(o), n)), (Se(e, a + 1, n, !0, !0, !1, !0) || typeof n > "u" && Se(e, a + 1, null, !0, !0, !1, !0)) && ((!l || s !== "") && (s += St(e, a)), e.dump && Ye === e.dump.charCodeAt(0) ? s += "-" : s += "- ", s += e.dump);
|
|
@@ -2382,7 +2382,7 @@ function Se(e, a, t, l, s, i, o) {
|
|
|
2382
2382
|
if (f && r && !e.usedDuplicates[h] && (e.usedDuplicates[h] = !0), d === "[object Object]")
|
|
2383
2383
|
l && Object.keys(e.dump).length !== 0 ? (oo(e, a, e.dump, s), r && (e.dump = "&ref_" + h + e.dump)) : (no(e, a, e.dump), r && (e.dump = "&ref_" + h + " " + e.dump));
|
|
2384
2384
|
else if (d === "[object Array]")
|
|
2385
|
-
l && e.dump.length !== 0 ? (e.noArrayIndent && !o && a > 0 ?
|
|
2385
|
+
l && e.dump.length !== 0 ? (e.noArrayIndent && !o && a > 0 ? Tl(e, a - 1, e.dump, s) : Tl(e, a, e.dump, s), r && (e.dump = "&ref_" + h + e.dump)) : (io(e, a, e.dump), r && (e.dump = "&ref_" + h + " " + e.dump));
|
|
2386
2386
|
else if (d === "[object String]")
|
|
2387
2387
|
e.tag !== "?" && lo(e, e.dump, a, i, n);
|
|
2388
2388
|
else {
|
|
@@ -2444,7 +2444,7 @@ var fo = pe, mo = Yl, go = es, yo = rs, vo = is, bo = Pt, ko = ws.load, Co = ws.
|
|
|
2444
2444
|
omap: hs,
|
|
2445
2445
|
seq: Zl,
|
|
2446
2446
|
str: Gl
|
|
2447
|
-
}, Io = Rt("safeLoad", "load"), xo = Rt("safeLoadAll", "loadAll"), Ho = Rt("safeDump", "dump"),
|
|
2447
|
+
}, Io = Rt("safeLoad", "load"), xo = Rt("safeLoadAll", "loadAll"), Ho = Rt("safeDump", "dump"), Ao = {
|
|
2448
2448
|
Type: fo,
|
|
2449
2449
|
Schema: mo,
|
|
2450
2450
|
FAILSAFE_SCHEMA: go,
|
|
@@ -2460,7 +2460,7 @@ var fo = pe, mo = Yl, go = es, yo = rs, vo = is, bo = Pt, ko = ws.load, Co = ws.
|
|
|
2460
2460
|
safeLoadAll: xo,
|
|
2461
2461
|
safeDump: Ho
|
|
2462
2462
|
};
|
|
2463
|
-
const
|
|
2463
|
+
const To = {
|
|
2464
2464
|
key: 0,
|
|
2465
2465
|
class: "config-card-display-form"
|
|
2466
2466
|
}, Oo = ["data-testid"], Fo = {
|
|
@@ -2502,12 +2502,12 @@ const Ao = {
|
|
|
2502
2502
|
return ve(() => a.format, (d) => {
|
|
2503
2503
|
if (d !== "structured") {
|
|
2504
2504
|
const n = JSON.parse(JSON.stringify(a.record));
|
|
2505
|
-
delete n.created_at, delete n.updated_at, d === "json" ? i.value = JSON.stringify(n, null, 2) : d === "yaml" && (o.value =
|
|
2505
|
+
delete n.created_at, delete n.updated_at, d === "json" ? i.value = JSON.stringify(n, null, 2) : d === "yaml" && (o.value = Ao.dump(n));
|
|
2506
2506
|
}
|
|
2507
2507
|
}, { immediate: !0 }), (d, n) => {
|
|
2508
2508
|
const u = K("KCodeBlock");
|
|
2509
2509
|
return b(), N(ce, null, [
|
|
2510
|
-
e.format === "structured" ? (b(), N("div",
|
|
2510
|
+
e.format === "structured" ? (b(), N("div", To, [
|
|
2511
2511
|
(b(!0), N(ce, null, ye(e.propListTypes, (f) => (b(), N("div", {
|
|
2512
2512
|
key: `config-card-details-${f}-props`,
|
|
2513
2513
|
class: Oe(`config-card-details-${f}-props`),
|
|
@@ -2517,7 +2517,7 @@ const Ao = {
|
|
|
2517
2517
|
(b(!0), N(ce, null, ye(e.propertyCollections[f], (h) => (b(), P(Nt, {
|
|
2518
2518
|
key: h.key,
|
|
2519
2519
|
item: h
|
|
2520
|
-
},
|
|
2520
|
+
}, Ae({
|
|
2521
2521
|
label: p(() => [
|
|
2522
2522
|
te(d.$slots, `${h.key}-label`, { row: h }, void 0, !0)
|
|
2523
2523
|
]),
|
|
@@ -2563,7 +2563,7 @@ const Ao = {
|
|
|
2563
2563
|
for (const [l, s] of a)
|
|
2564
2564
|
t[l] = s;
|
|
2565
2565
|
return t;
|
|
2566
|
-
}, jo = (e) => (Nl("data-v-
|
|
2566
|
+
}, jo = (e) => (Nl("data-v-4c9d405a"), e = e(), El(), e), No = ["aria-hidden"], Eo = {
|
|
2567
2567
|
key: 0,
|
|
2568
2568
|
"data-testid": "kui-icon-svg-title"
|
|
2569
2569
|
}, Po = /* @__PURE__ */ jo(() => /* @__PURE__ */ x("path", {
|
|
@@ -2662,7 +2662,7 @@ const Ao = {
|
|
|
2662
2662
|
_: 1
|
|
2663
2663
|
}, 8, ["aria-hidden", "style"]));
|
|
2664
2664
|
}
|
|
2665
|
-
}), Vo = /* @__PURE__ */ Ko(Bo, [["__scopeId", "data-v-
|
|
2665
|
+
}), Vo = /* @__PURE__ */ Ko(Bo, [["__scopeId", "data-v-4c9d405a"]]), Lo = { "data-testid": "config-card-title" }, Ro = { class: "config-card-actions" }, Do = ["href"], zo = {
|
|
2666
2666
|
key: 2,
|
|
2667
2667
|
class: "config-card-details-section"
|
|
2668
2668
|
}, Jo = {
|
|
@@ -2766,7 +2766,7 @@ const Ao = {
|
|
|
2766
2766
|
f.value = O == null ? void 0 : O.value;
|
|
2767
2767
|
}, r = {
|
|
2768
2768
|
id: {
|
|
2769
|
-
type:
|
|
2769
|
+
type: se.ID,
|
|
2770
2770
|
label: i("baseConfigCard.commonFields.id_label"),
|
|
2771
2771
|
order: 0,
|
|
2772
2772
|
section: ne.Basic
|
|
@@ -2776,24 +2776,24 @@ const Ao = {
|
|
|
2776
2776
|
section: ne.Basic
|
|
2777
2777
|
},
|
|
2778
2778
|
enabled: {
|
|
2779
|
-
type:
|
|
2779
|
+
type: se.BadgeStatus,
|
|
2780
2780
|
order: 2,
|
|
2781
2781
|
section: ne.Basic
|
|
2782
2782
|
},
|
|
2783
2783
|
updated_at: {
|
|
2784
|
-
type:
|
|
2784
|
+
type: se.Date,
|
|
2785
2785
|
label: i("baseConfigCard.commonFields.updated_at_label"),
|
|
2786
2786
|
order: 3,
|
|
2787
2787
|
section: ne.Basic
|
|
2788
2788
|
},
|
|
2789
2789
|
created_at: {
|
|
2790
|
-
type:
|
|
2790
|
+
type: se.Date,
|
|
2791
2791
|
label: i("baseConfigCard.commonFields.created_at_label"),
|
|
2792
2792
|
order: 4,
|
|
2793
2793
|
section: ne.Basic
|
|
2794
2794
|
},
|
|
2795
2795
|
tags: {
|
|
2796
|
-
type:
|
|
2796
|
+
type: se.BadgeTag,
|
|
2797
2797
|
order: -1,
|
|
2798
2798
|
// the last property displayed
|
|
2799
2799
|
section: ne.Basic
|
|
@@ -2817,7 +2817,7 @@ const Ao = {
|
|
|
2817
2817
|
key: G,
|
|
2818
2818
|
value: Z,
|
|
2819
2819
|
hidden: U.hidden || !1,
|
|
2820
|
-
type: U.type ?? ((J == null ? void 0 : J.type) ||
|
|
2820
|
+
type: U.type ?? ((J == null ? void 0 : J.type) || se.Text),
|
|
2821
2821
|
label: U.label ?? ((J == null ? void 0 : J.label) || d(G)),
|
|
2822
2822
|
tooltip: U.tooltip ?? ((J == null ? void 0 : J.tooltip) || void 0),
|
|
2823
2823
|
section: U.section ?? ((J == null ? void 0 : J.section) || ne.Advanced)
|
|
@@ -2842,7 +2842,7 @@ const Ao = {
|
|
|
2842
2842
|
key: L,
|
|
2843
2843
|
value: G,
|
|
2844
2844
|
hidden: Z.hidden || !1,
|
|
2845
|
-
type: Z.type ??
|
|
2845
|
+
type: Z.type ?? se.Text,
|
|
2846
2846
|
label: Z.label ?? d(L),
|
|
2847
2847
|
tooltip: Z.tooltip ?? void 0,
|
|
2848
2848
|
section: ne.Plugin
|
|
@@ -2855,10 +2855,10 @@ const Ao = {
|
|
|
2855
2855
|
advanced: ($ = q.value) == null ? void 0 : $.filter((j) => j.section === ne.Advanced),
|
|
2856
2856
|
plugin: (M = I.value) == null ? void 0 : M.concat((H = q.value) == null ? void 0 : H.filter((j) => j.section === ne.Plugin))
|
|
2857
2857
|
};
|
|
2858
|
-
}),
|
|
2858
|
+
}), A = F(() => {
|
|
2859
2859
|
const O = [];
|
|
2860
2860
|
return R.value.basic.length && O.push("basic"), R.value.advanced.length && O.push("advanced"), R.value.plugin.length && O.push("plugin"), O;
|
|
2861
|
-
}),
|
|
2861
|
+
}), T = (O) => !!(O.tooltip || s[`${O.key}-label-tooltip`]), D = F(() => {
|
|
2862
2862
|
var O, $;
|
|
2863
2863
|
let H = `${l.config.apiBaseUrl}${l.fetchUrl}`;
|
|
2864
2864
|
return l.config.app === "konnect" ? H = H.replace(/{controlPlaneId}/gi, ((O = l.config) == null ? void 0 : O.controlPlaneId) || "") : l.config.app === "kongManager" && (H = H.replace(/\/{workspace}/gi, ($ = l.config) != null && $.workspace ? `/${l.config.workspace}` : "")), H = H.replace(/{id}/gi, l.config.entityId), H;
|
|
@@ -2889,7 +2889,7 @@ const Ao = {
|
|
|
2889
2889
|
}
|
|
2890
2890
|
}), (O, $) => {
|
|
2891
2891
|
const H = K("KLabel"), M = K("KSelect"), j = K("KButton"), W = K("KClipboardProvider"), z = K("KSkeleton"), L = K("KEmptyState"), G = K("KCard");
|
|
2892
|
-
return b(), P(G, { class: "kong-ui-entity-base-config-card" },
|
|
2892
|
+
return b(), P(G, { class: "kong-ui-entity-base-config-card" }, Ae({
|
|
2893
2893
|
actions: p(() => [
|
|
2894
2894
|
x("div", Ro, [
|
|
2895
2895
|
te(O.$slots, "actions", {}, void 0, !0),
|
|
@@ -2964,10 +2964,10 @@ const Ao = {
|
|
|
2964
2964
|
e.config.jsonYamlEnabled ? (b(), N("div", zo, [
|
|
2965
2965
|
y(Mo, {
|
|
2966
2966
|
format: f.value,
|
|
2967
|
-
"prop-list-types":
|
|
2967
|
+
"prop-list-types": A.value,
|
|
2968
2968
|
"property-collections": R.value,
|
|
2969
2969
|
record: g.value
|
|
2970
|
-
},
|
|
2970
|
+
}, Ae({ _: 2 }, [
|
|
2971
2971
|
ye(Object.keys(O.$slots), (Z) => ({
|
|
2972
2972
|
name: Z,
|
|
2973
2973
|
fn: p(({ row: U, rowValue: J }) => [
|
|
@@ -2979,7 +2979,7 @@ const Ao = {
|
|
|
2979
2979
|
}))
|
|
2980
2980
|
]), 1032, ["format", "prop-list-types", "property-collections", "record"])
|
|
2981
2981
|
])) : (b(), N("div", Jo, [
|
|
2982
|
-
(b(!0), N(ce, null, ye(
|
|
2982
|
+
(b(!0), N(ce, null, ye(A.value, (Z) => (b(), N("div", {
|
|
2983
2983
|
key: `config-card-details-${Z}-props`,
|
|
2984
2984
|
class: Oe(`config-card-details-${Z}-props`),
|
|
2985
2985
|
"data-testid": `config-card-details-${Z}-props`
|
|
@@ -2988,7 +2988,7 @@ const Ao = {
|
|
|
2988
2988
|
(b(!0), N(ce, null, ye(R.value[Z], (U) => (b(), P(Nt, {
|
|
2989
2989
|
key: U.key,
|
|
2990
2990
|
item: U
|
|
2991
|
-
},
|
|
2991
|
+
}, Ae({
|
|
2992
2992
|
label: p(() => [
|
|
2993
2993
|
te(O.$slots, `${U.key}-label`, { row: U }, void 0, !0)
|
|
2994
2994
|
]),
|
|
@@ -3000,7 +3000,7 @@ const Ao = {
|
|
|
3000
3000
|
]),
|
|
3001
3001
|
_: 2
|
|
3002
3002
|
}, [
|
|
3003
|
-
|
|
3003
|
+
T(U) ? {
|
|
3004
3004
|
name: "label-tooltip",
|
|
3005
3005
|
fn: p(() => [
|
|
3006
3006
|
te(O.$slots, `${U.key}-label-tooltip`, { row: U }, void 0, !0)
|
|
@@ -3110,7 +3110,7 @@ const Ao = {
|
|
|
3110
3110
|
n.value = !1;
|
|
3111
3111
|
}
|
|
3112
3112
|
}), (g, q) => {
|
|
3113
|
-
const I = K("KSkeleton"), R = K("KEmptyState"),
|
|
3113
|
+
const I = K("KSkeleton"), R = K("KEmptyState"), A = K("KAlert"), T = K("KButton"), D = K("KCard");
|
|
3114
3114
|
return b(), P(D, { class: "kong-ui-entity-base-form" }, {
|
|
3115
3115
|
body: p(() => [
|
|
3116
3116
|
n.value ? (b(), P(I, {
|
|
@@ -3134,7 +3134,7 @@ const Ao = {
|
|
|
3134
3134
|
onSubmit: kt(m, ["prevent"])
|
|
3135
3135
|
}, [
|
|
3136
3136
|
te(g.$slots, "default", {}, void 0, !0),
|
|
3137
|
-
e.errorMessage ? (b(), P(
|
|
3137
|
+
e.errorMessage ? (b(), P(A, {
|
|
3138
3138
|
key: 0,
|
|
3139
3139
|
"alert-message": e.errorMessage,
|
|
3140
3140
|
appearance: "danger",
|
|
@@ -3142,7 +3142,7 @@ const Ao = {
|
|
|
3142
3142
|
}, null, 8, ["alert-message"])) : Q("", !0),
|
|
3143
3143
|
x("div", Xo, [
|
|
3144
3144
|
te(g.$slots, "form-actions", {}, () => [
|
|
3145
|
-
y(
|
|
3145
|
+
y(T, {
|
|
3146
3146
|
appearance: "secondary",
|
|
3147
3147
|
"data-testid": "form-cancel",
|
|
3148
3148
|
disabled: e.isReadonly,
|
|
@@ -3153,7 +3153,7 @@ const Ao = {
|
|
|
3153
3153
|
]),
|
|
3154
3154
|
_: 1
|
|
3155
3155
|
}, 8, ["disabled"]),
|
|
3156
|
-
y(
|
|
3156
|
+
y(T, {
|
|
3157
3157
|
appearance: "primary",
|
|
3158
3158
|
"data-testid": "form-submit",
|
|
3159
3159
|
disabled: h.value,
|
|
@@ -3360,64 +3360,64 @@ const Ao = {
|
|
|
3360
3360
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
|
|
3361
3361
|
setup(e, { emit: a }) {
|
|
3362
3362
|
const t = e, { i18n: { t: l } } = de.useI18n(), s = F(() => {
|
|
3363
|
-
var
|
|
3363
|
+
var A, T;
|
|
3364
3364
|
return typeof t.errorMessage == "string" ? {
|
|
3365
3365
|
hasError: !!t.errorMessage,
|
|
3366
3366
|
title: t.errorMessage,
|
|
3367
3367
|
message: void 0
|
|
3368
3368
|
} : {
|
|
3369
3369
|
hasError: !!t.errorMessage,
|
|
3370
|
-
title: (
|
|
3371
|
-
message: (
|
|
3370
|
+
title: (A = t.errorMessage) == null ? void 0 : A.title,
|
|
3371
|
+
message: (T = t.errorMessage) == null ? void 0 : T.message
|
|
3372
3372
|
};
|
|
3373
|
-
}), i = F(() => t.cacheIdentifier || t.preferencesStorageKey), o = (
|
|
3374
|
-
const
|
|
3375
|
-
return Object.keys(t.tableHeaders).forEach((
|
|
3376
|
-
const D = t.tableHeaders[
|
|
3377
|
-
|
|
3378
|
-
label: D.label ??
|
|
3379
|
-
key:
|
|
3373
|
+
}), i = F(() => t.cacheIdentifier || t.preferencesStorageKey), o = (A) => A.hasData || !!t.query, d = F(() => {
|
|
3374
|
+
const A = [];
|
|
3375
|
+
return Object.keys(t.tableHeaders).forEach((T) => {
|
|
3376
|
+
const D = t.tableHeaders[T];
|
|
3377
|
+
A.push({
|
|
3378
|
+
label: D.label ?? T,
|
|
3379
|
+
key: T,
|
|
3380
3380
|
sortable: D.sortable ?? !1
|
|
3381
3381
|
});
|
|
3382
|
-
}), t.enableEntityActions &&
|
|
3382
|
+
}), t.enableEntityActions && A.push({
|
|
3383
3383
|
key: "actions",
|
|
3384
3384
|
hideLabel: !0
|
|
3385
|
-
}),
|
|
3386
|
-
}), n = (
|
|
3387
|
-
"data-rowid":
|
|
3388
|
-
"data-testid":
|
|
3389
|
-
...t.rowAttributes(
|
|
3390
|
-
}), u = E({}), f = (
|
|
3391
|
-
var
|
|
3392
|
-
return (
|
|
3393
|
-
}, h = (
|
|
3394
|
-
const
|
|
3395
|
-
"data-testid":
|
|
3396
|
-
...t.cellAttributes(
|
|
3385
|
+
}), A;
|
|
3386
|
+
}), n = (A) => ({
|
|
3387
|
+
"data-rowid": A.id,
|
|
3388
|
+
"data-testid": A.name,
|
|
3389
|
+
...t.rowAttributes(A)
|
|
3390
|
+
}), u = E({}), f = (A) => {
|
|
3391
|
+
var T;
|
|
3392
|
+
return (T = u.value) == null ? void 0 : T.$el.querySelector(`[data-rowid="${A.id}"]`);
|
|
3393
|
+
}, h = (A) => {
|
|
3394
|
+
const T = {
|
|
3395
|
+
"data-testid": A.headerKey,
|
|
3396
|
+
...t.cellAttributes(A)
|
|
3397
3397
|
};
|
|
3398
|
-
return
|
|
3398
|
+
return A.colIndex === 0 && (T.style = {
|
|
3399
3399
|
maxWidth: "250px",
|
|
3400
3400
|
overflowX: "hidden",
|
|
3401
3401
|
textOverflow: "ellipsis"
|
|
3402
|
-
}),
|
|
3402
|
+
}), T;
|
|
3403
3403
|
}, r = () => {
|
|
3404
3404
|
a("empty-state-cta-clicked"), C();
|
|
3405
3405
|
}, C = () => {
|
|
3406
3406
|
a("clear-search-input");
|
|
3407
|
-
}, S = F(() => t.disableRowClick ? void 0 : (
|
|
3408
|
-
a("click:row",
|
|
3409
|
-
}), m = (
|
|
3410
|
-
a("sort",
|
|
3407
|
+
}, S = F(() => t.disableRowClick ? void 0 : (A, T) => {
|
|
3408
|
+
a("click:row", T);
|
|
3409
|
+
}), m = (A) => {
|
|
3410
|
+
a("sort", A);
|
|
3411
3411
|
}, { setTablePreferences: g, getTablePreferences: q } = Xs(), I = F(() => {
|
|
3412
|
-
const
|
|
3412
|
+
const A = q(t.preferencesStorageKey);
|
|
3413
3413
|
return {
|
|
3414
3414
|
...t.initialFetcherParams,
|
|
3415
|
-
...
|
|
3415
|
+
...A
|
|
3416
3416
|
};
|
|
3417
|
-
}), R = (
|
|
3418
|
-
t.preferencesStorageKey && g(t.preferencesStorageKey,
|
|
3417
|
+
}), R = (A) => {
|
|
3418
|
+
t.preferencesStorageKey && g(t.preferencesStorageKey, A);
|
|
3419
3419
|
};
|
|
3420
|
-
return (
|
|
3420
|
+
return (A, T) => {
|
|
3421
3421
|
const D = K("KIcon"), B = K("KButton"), O = K("KDropdown"), $ = K("KTable"), H = K("KCard");
|
|
3422
3422
|
return b(), P(H, {
|
|
3423
3423
|
class: "kong-ui-entity-base-table",
|
|
@@ -3453,14 +3453,14 @@ const Ao = {
|
|
|
3453
3453
|
"search-input": e.query,
|
|
3454
3454
|
onKtableEmptyStateCtaClicked: r,
|
|
3455
3455
|
"onRow:click": S.value,
|
|
3456
|
-
onSort:
|
|
3456
|
+
onSort: T[0] || (T[0] = (M) => m(M)),
|
|
3457
3457
|
"onUpdate:tablePreferences": R
|
|
3458
|
-
},
|
|
3458
|
+
}, Ae({
|
|
3459
3459
|
toolbar: p(({ state: M }) => [
|
|
3460
3460
|
Be(x("div", su, [
|
|
3461
|
-
te(
|
|
3462
|
-
|
|
3463
|
-
te(
|
|
3461
|
+
te(A.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3462
|
+
A.$slots["toolbar-button"] ? (b(), N("div", ru, [
|
|
3463
|
+
te(A.$slots, "toolbar-button", {}, void 0, !0)
|
|
3464
3464
|
])) : Q("", !0)
|
|
3465
3465
|
], 512), [
|
|
3466
3466
|
[Ve, o(M)]
|
|
@@ -3476,7 +3476,7 @@ const Ao = {
|
|
|
3476
3476
|
width: e.dropdownMenuWidth
|
|
3477
3477
|
}, {
|
|
3478
3478
|
items: p(() => [
|
|
3479
|
-
te(
|
|
3479
|
+
te(A.$slots, "actions", {
|
|
3480
3480
|
row: M,
|
|
3481
3481
|
rowKey: j,
|
|
3482
3482
|
rowValue: W
|
|
@@ -3512,7 +3512,7 @@ const Ao = {
|
|
|
3512
3512
|
"row-el": f(W)
|
|
3513
3513
|
}, {
|
|
3514
3514
|
default: p(() => [
|
|
3515
|
-
te(
|
|
3515
|
+
te(A.$slots, j, {
|
|
3516
3516
|
row: W,
|
|
3517
3517
|
rowKey: z,
|
|
3518
3518
|
rowValue: L
|
|
@@ -3606,7 +3606,7 @@ const Ao = {
|
|
|
3606
3606
|
class: "message",
|
|
3607
3607
|
keypath: t.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
3608
3608
|
tag: "p"
|
|
3609
|
-
},
|
|
3609
|
+
}, Ae({
|
|
3610
3610
|
entityType: p(() => [
|
|
3611
3611
|
Y(w(t.entityType), 1)
|
|
3612
3612
|
]),
|
|
@@ -3734,7 +3734,7 @@ const Ao = {
|
|
|
3734
3734
|
g && (s.value = !1), a("update:modelValue", new URLSearchParams(q).toString());
|
|
3735
3735
|
};
|
|
3736
3736
|
return (g, q) => {
|
|
3737
|
-
const I = K("KInput"), R = K("KButton"),
|
|
3737
|
+
const I = K("KInput"), R = K("KButton"), A = K("KSelect"), T = K("KMenuItem"), D = K("KMenu");
|
|
3738
3738
|
return e.config.isExactMatch ? (b(), P(I, {
|
|
3739
3739
|
key: 0,
|
|
3740
3740
|
autocomplete: "off",
|
|
@@ -3768,7 +3768,7 @@ const Ao = {
|
|
|
3768
3768
|
]),
|
|
3769
3769
|
Be(y(D, { class: "kong-ui-entity-filter-menu" }, {
|
|
3770
3770
|
body: p(() => [
|
|
3771
|
-
(b(!0), N(ce, null, ye(d.value, (B, O) => (b(), P(
|
|
3771
|
+
(b(!0), N(ce, null, ye(d.value, (B, O) => (b(), P(T, {
|
|
3772
3772
|
key: B.value,
|
|
3773
3773
|
"data-testid": B.value,
|
|
3774
3774
|
expandable: "",
|
|
@@ -3790,7 +3790,7 @@ const Ao = {
|
|
|
3790
3790
|
class: "menu-item-label",
|
|
3791
3791
|
for: f(B.value)
|
|
3792
3792
|
}, w(c(l)("filter.fieldLabel")), 9, ku),
|
|
3793
|
-
((H = ($ = e.config.schema) == null ? void 0 : $[B.value]) == null ? void 0 : H.type) === "select" ? (b(), P(
|
|
3793
|
+
((H = ($ = e.config.schema) == null ? void 0 : $[B.value]) == null ? void 0 : H.type) === "select" ? (b(), P(A, {
|
|
3794
3794
|
key: 0,
|
|
3795
3795
|
id: f(B.value),
|
|
3796
3796
|
modelValue: i.value[B.value],
|
|
@@ -3894,10 +3894,10 @@ const Ao = {
|
|
|
3894
3894
|
}, Hu = {
|
|
3895
3895
|
key: 1,
|
|
3896
3896
|
class: "form-section-description"
|
|
3897
|
-
},
|
|
3897
|
+
}, Au = {
|
|
3898
3898
|
key: 2,
|
|
3899
3899
|
class: "form-section-footer"
|
|
3900
|
-
},
|
|
3900
|
+
}, Tu = { class: "form-section-content" }, Ou = /* @__PURE__ */ ae({
|
|
3901
3901
|
__name: "EntityFormSection",
|
|
3902
3902
|
props: {
|
|
3903
3903
|
title: {
|
|
@@ -3937,11 +3937,11 @@ const Ao = {
|
|
|
3937
3937
|
x("p", null, w(e.description), 1)
|
|
3938
3938
|
], !0)
|
|
3939
3939
|
])) : Q("", !0),
|
|
3940
|
-
c(a).footer ? (b(), N("div",
|
|
3940
|
+
c(a).footer ? (b(), N("div", Au, [
|
|
3941
3941
|
te(t.$slots, "footer", {}, void 0, !0)
|
|
3942
3942
|
])) : Q("", !0)
|
|
3943
3943
|
], 2)),
|
|
3944
|
-
x("div",
|
|
3944
|
+
x("div", Tu, [
|
|
3945
3945
|
te(t.$slots, "default", {}, void 0, !0)
|
|
3946
3946
|
])
|
|
3947
3947
|
])
|
|
@@ -4695,7 +4695,7 @@ const ut = [
|
|
|
4695
4695
|
label: "599",
|
|
4696
4696
|
value: "599"
|
|
4697
4697
|
}
|
|
4698
|
-
], Ht = 10,
|
|
4698
|
+
], Ht = 10, At = 65536, Ku = 0, ju = 65535, Le = 0, Re = 255, Bs = 0, Vs = 255, Nu = 0, Eu = 65535, $l = 0, Ml = 65535, Pu = 0, Bu = 2 ** 31, Tt = ["200", "302"], Ot = ["200", "201", "202", "203", "204", "205", "206", "207", "208", "226", "300", "301", "302", "303", "304", "305", "306", "307", "308"], Ft = ["429", "404", "500", "501", "502", "503", "504", "505"], qt = ["429", "500", "503"];
|
|
4699
4699
|
function pt() {
|
|
4700
4700
|
const e = (n) => /^\d+$/.test(n), a = (n, u, f) => {
|
|
4701
4701
|
if (e(n)) {
|
|
@@ -4733,7 +4733,7 @@ function pt() {
|
|
|
4733
4733
|
headers: [{ key: "", values: "" }],
|
|
4734
4734
|
interval: "0",
|
|
4735
4735
|
successes: "5",
|
|
4736
|
-
httpStatuses:
|
|
4736
|
+
httpStatuses: Tt,
|
|
4737
4737
|
unhealthyInterval: "0",
|
|
4738
4738
|
httpFailures: "5",
|
|
4739
4739
|
tcpFailures: "5",
|
|
@@ -4756,9 +4756,9 @@ function pt() {
|
|
|
4756
4756
|
stringToNumberArray: t,
|
|
4757
4757
|
numberToStringArray: l,
|
|
4758
4758
|
upstreamsResponseToFields: (n) => {
|
|
4759
|
-
var f, h, r, C, S, m, g, q, I, R,
|
|
4759
|
+
var f, h, r, C, S, m, g, q, I, R, A, T, D, B, O, $, H, M, j, W, z, L, G, Z, U, J, ee, k, v, _, re, X, ie, he, le, fe, qe, $e, Dt, zt, Jt, Wt, Qt, Yt, Gt, Zt, Xt, ea, ta, aa, la, sa, ra, ia, na, oa, ua, ca, da, ha, pa, fa, ma, ga, ya, va, ba, ka, Ca, _a, wa, Sa, Ia, xa, Ha, Aa, Ta, Oa, Fa, qa, Ua, $a, Ma, Ka, ja, Na, Ea, Pa, Ba, Va, La, Ra, Da, za, Ja, Wa, Qa, Ya, Ga, Za, Xa, el, tl, al, ll, sl, rl, il, nl;
|
|
4760
4760
|
const u = s();
|
|
4761
|
-
return u.name = n.name || "", u.algorithm = n.algorithm || "round-robin", u.hostHeader = n.host_header || "", u.clientCertificate = n.client_certificate ? (f = n.client_certificate) == null ? void 0 : f.id : "", u.tags = ((h = n.tags) == null ? void 0 : h.join(", ")) || "", u.slots = n.slots !== null && n.slots !== void 0 ? n.slots.toString() : "10000", u.hashOn = n.hash_on || "none", u.hashFallback = n.hash_fallback || "none", u.hashOnHeader = n.hash_on_header || "", u.hashOnCookie = n.hash_on_cookie || "", u.hashOnCookiePath = n.hash_on_cookie_path || "/", u.hashOnQueryArgument = n.hash_on_query_arg || "", u.hashOnUriCapture = n.hash_on_uri_capture || "", u.hashFallbackHeader = n.hash_fallback_header || "", u.hashFallbackQueryArgument = n.hash_fallback_query_arg || "", u.hashFallbackUriCapture = n.hash_fallback_uri_capture || "", u.healthchecksThreshold = n.healthchecks.threshold !== null && n.healthchecks.threshold !== void 0 ? n.healthchecks.threshold.toString() : "", u.activeHealthSwitch = ((C = (r = n.healthchecks.active) == null ? void 0 : r.healthy) == null ? void 0 : C.interval) !== 0 || ((m = (S = n.healthchecks.active) == null ? void 0 : S.unhealthy) == null ? void 0 : m.interval) !== 0, u.activeHealthCheck.type = ((g = n.healthchecks.active) == null ? void 0 : g.type) || "http", u.activeHealthCheck.httpPath = ((q = n.healthchecks.active) == null ? void 0 : q.http_path) || "/", u.activeHealthCheck.timeout = ((I = n.healthchecks.active) == null ? void 0 : I.timeout) !== null && ((R = n.healthchecks.active) == null ? void 0 : R.timeout) !== void 0 ? (
|
|
4761
|
+
return u.name = n.name || "", u.algorithm = n.algorithm || "round-robin", u.hostHeader = n.host_header || "", u.clientCertificate = n.client_certificate ? (f = n.client_certificate) == null ? void 0 : f.id : "", u.tags = ((h = n.tags) == null ? void 0 : h.join(", ")) || "", u.slots = n.slots !== null && n.slots !== void 0 ? n.slots.toString() : "10000", u.hashOn = n.hash_on || "none", u.hashFallback = n.hash_fallback || "none", u.hashOnHeader = n.hash_on_header || "", u.hashOnCookie = n.hash_on_cookie || "", u.hashOnCookiePath = n.hash_on_cookie_path || "/", u.hashOnQueryArgument = n.hash_on_query_arg || "", u.hashOnUriCapture = n.hash_on_uri_capture || "", u.hashFallbackHeader = n.hash_fallback_header || "", u.hashFallbackQueryArgument = n.hash_fallback_query_arg || "", u.hashFallbackUriCapture = n.hash_fallback_uri_capture || "", u.healthchecksThreshold = n.healthchecks.threshold !== null && n.healthchecks.threshold !== void 0 ? n.healthchecks.threshold.toString() : "", u.activeHealthSwitch = ((C = (r = n.healthchecks.active) == null ? void 0 : r.healthy) == null ? void 0 : C.interval) !== 0 || ((m = (S = n.healthchecks.active) == null ? void 0 : S.unhealthy) == null ? void 0 : m.interval) !== 0, u.activeHealthCheck.type = ((g = n.healthchecks.active) == null ? void 0 : g.type) || "http", u.activeHealthCheck.httpPath = ((q = n.healthchecks.active) == null ? void 0 : q.http_path) || "/", u.activeHealthCheck.timeout = ((I = n.healthchecks.active) == null ? void 0 : I.timeout) !== null && ((R = n.healthchecks.active) == null ? void 0 : R.timeout) !== void 0 ? (T = (A = n.healthchecks.active) == null ? void 0 : A.timeout) == null ? void 0 : T.toString() : "", u.activeHealthCheck.concurrency = ((D = n.healthchecks.active) == null ? void 0 : D.concurrency) !== null && ((B = n.healthchecks.active) == null ? void 0 : B.concurrency) !== void 0 ? ($ = (O = n.healthchecks.active) == null ? void 0 : O.concurrency) == null ? void 0 : $.toString() : "", u.activeHealthCheck.httpsSni = ((H = n.healthchecks.active) == null ? void 0 : H.https_sni) || "", u.activeHealthCheck.verifySsl = ((M = n.healthchecks.active) == null ? void 0 : M.https_verify_certificate) || !1, u.activeHealthCheck.headers = (j = n.healthchecks.active) != null && j.headers && Object.entries((W = n.healthchecks.active) == null ? void 0 : W.headers).length > 0 ? Object.entries((z = n.healthchecks.active) == null ? void 0 : z.headers).map(([Ls, mt]) => ({ key: Ls, values: mt == null ? void 0 : mt.join(", ") })) : [{ key: "", values: "" }], u.activeHealthCheck.interval = ((G = (L = n.healthchecks.active) == null ? void 0 : L.healthy) == null ? void 0 : G.interval) !== null && ((U = (Z = n.healthchecks.active) == null ? void 0 : Z.healthy) == null ? void 0 : U.interval) !== void 0 ? (k = (ee = (J = n.healthchecks.active) == null ? void 0 : J.healthy) == null ? void 0 : ee.interval) == null ? void 0 : k.toString() : "0", u.activeHealthCheck.interval = ((_ = (v = n.healthchecks.active) == null ? void 0 : v.healthy) == null ? void 0 : _.interval) !== null && ((X = (re = n.healthchecks.active) == null ? void 0 : re.healthy) == null ? void 0 : X.interval) !== void 0 ? (le = (he = (ie = n.healthchecks.active) == null ? void 0 : ie.healthy) == null ? void 0 : he.interval) == null ? void 0 : le.toString() : "0", u.activeHealthCheck.successes = ((qe = (fe = n.healthchecks.active) == null ? void 0 : fe.healthy) == null ? void 0 : qe.successes) !== null && ((Dt = ($e = n.healthchecks.active) == null ? void 0 : $e.healthy) == null ? void 0 : Dt.successes) !== void 0 ? (Wt = (Jt = (zt = n.healthchecks.active) == null ? void 0 : zt.healthy) == null ? void 0 : Jt.successes) == null ? void 0 : Wt.toString() : "0", u.activeHealthCheck.httpStatuses = (Yt = (Qt = n.healthchecks.active) == null ? void 0 : Qt.healthy) != null && Yt.http_statuses ? l(((Zt = (Gt = n.healthchecks.active) == null ? void 0 : Gt.healthy) == null ? void 0 : Zt.http_statuses) || []) : Tt, u.activeHealthCheck.unhealthyInterval = ((ea = (Xt = n.healthchecks.active) == null ? void 0 : Xt.unhealthy) == null ? void 0 : ea.interval) !== null && ((aa = (ta = n.healthchecks.active) == null ? void 0 : ta.unhealthy) == null ? void 0 : aa.interval) !== void 0 ? (ra = (sa = (la = n.healthchecks.active) == null ? void 0 : la.unhealthy) == null ? void 0 : sa.interval) == null ? void 0 : ra.toString() : "0", u.activeHealthCheck.httpFailures = ((na = (ia = n.healthchecks.active) == null ? void 0 : ia.unhealthy) == null ? void 0 : na.http_failures) !== null && ((ua = (oa = n.healthchecks.active) == null ? void 0 : oa.unhealthy) == null ? void 0 : ua.http_failures) !== void 0 ? (ha = (da = (ca = n.healthchecks.active) == null ? void 0 : ca.unhealthy) == null ? void 0 : da.http_failures) == null ? void 0 : ha.toString() : "0", u.activeHealthCheck.unhealthyTimeouts = ((fa = (pa = n.healthchecks.active) == null ? void 0 : pa.unhealthy) == null ? void 0 : fa.timeouts) !== null && ((ga = (ma = n.healthchecks.active) == null ? void 0 : ma.unhealthy) == null ? void 0 : ga.timeouts) !== void 0 ? (ba = (va = (ya = n.healthchecks.active) == null ? void 0 : ya.unhealthy) == null ? void 0 : va.timeouts) == null ? void 0 : ba.toString() : "0", u.activeHealthCheck.unhealthyHttpStatuses = (Ca = (ka = n.healthchecks.active) == null ? void 0 : ka.unhealthy) != null && Ca.http_statuses ? l(((wa = (_a = n.healthchecks.active) == null ? void 0 : _a.unhealthy) == null ? void 0 : wa.http_statuses) || []) : Ft, u.passiveHealthSwitch = ((Ia = (Sa = n.healthchecks.passive) == null ? void 0 : Sa.healthy) == null ? void 0 : Ia.successes) !== 0 || ((Ha = (xa = n.healthchecks.passive) == null ? void 0 : xa.unhealthy) == null ? void 0 : Ha.timeouts) !== 0 || ((Ta = (Aa = n.healthchecks.passive) == null ? void 0 : Aa.unhealthy) == null ? void 0 : Ta.tcp_failures) !== 0 || ((Fa = (Oa = n.healthchecks.passive) == null ? void 0 : Oa.unhealthy) == null ? void 0 : Fa.http_failures) !== 0, u.passiveHealthCheck.type = ((qa = n.healthchecks.passive) == null ? void 0 : qa.type) || "http", u.passiveHealthCheck.successes = (($a = (Ua = n.healthchecks.passive) == null ? void 0 : Ua.healthy) == null ? void 0 : $a.successes) !== null && ((Ka = (Ma = n.healthchecks.passive) == null ? void 0 : Ma.healthy) == null ? void 0 : Ka.successes) !== void 0 ? (Ea = (Na = (ja = n.healthchecks.passive) == null ? void 0 : ja.healthy) == null ? void 0 : Na.successes) == null ? void 0 : Ea.toString() : "0", u.passiveHealthCheck.httpStatuses = (Ba = (Pa = n.healthchecks.passive) == null ? void 0 : Pa.healthy) != null && Ba.http_statuses ? l(((La = (Va = n.healthchecks.passive) == null ? void 0 : Va.healthy) == null ? void 0 : La.http_statuses) || []) : Ot, u.passiveHealthCheck.timeouts = ((Da = (Ra = n.healthchecks.passive) == null ? void 0 : Ra.unhealthy) == null ? void 0 : Da.timeouts) !== null && ((Ja = (za = n.healthchecks.passive) == null ? void 0 : za.unhealthy) == null ? void 0 : Ja.timeouts) !== void 0 ? (Ya = (Qa = (Wa = n.healthchecks.passive) == null ? void 0 : Wa.unhealthy) == null ? void 0 : Qa.timeouts) == null ? void 0 : Ya.toString() : "0", u.passiveHealthCheck.tcpFailures = ((Za = (Ga = n.healthchecks.passive) == null ? void 0 : Ga.unhealthy) == null ? void 0 : Za.tcp_failures) !== null && ((el = (Xa = n.healthchecks.passive) == null ? void 0 : Xa.unhealthy) == null ? void 0 : el.tcp_failures) !== void 0 ? (ll = (al = (tl = n.healthchecks.passive) == null ? void 0 : tl.unhealthy) == null ? void 0 : al.tcp_failures) == null ? void 0 : ll.toString() : "", u.passiveHealthCheck.unhealthyHttpStatuses = (rl = (sl = n.healthchecks.passive) == null ? void 0 : sl.unhealthy) != null && rl.http_statuses ? l(((nl = (il = n.healthchecks.passive) == null ? void 0 : il.unhealthy) == null ? void 0 : nl.http_statuses) || []) : qt, u;
|
|
4762
4762
|
},
|
|
4763
4763
|
getDefaultUpstreamFields: s,
|
|
4764
4764
|
objectsAreEqual: (n, u) => {
|
|
@@ -4899,10 +4899,10 @@ const Vu = { class: "kong-ui-entities-upstreams-list" }, Lu = { class: "upstream
|
|
|
4899
4899
|
entity: U,
|
|
4900
4900
|
message: l("upstreams.copy.success_brief")
|
|
4901
4901
|
});
|
|
4902
|
-
},
|
|
4902
|
+
}, A = async (U) => {
|
|
4903
4903
|
var ee;
|
|
4904
4904
|
await ((ee = t.canRetrieve) == null ? void 0 : ee.call(t, U)) && s.push(t.config.getViewRoute(U.id));
|
|
4905
|
-
},
|
|
4905
|
+
}, T = (U) => ({
|
|
4906
4906
|
label: l("upstreams.actions.view"),
|
|
4907
4907
|
to: t.config.getViewRoute(U)
|
|
4908
4908
|
}), D = (U) => ({
|
|
@@ -4926,11 +4926,11 @@ const Vu = { class: "kong-ui-entities-upstreams-list" }, Lu = { class: "upstream
|
|
|
4926
4926
|
}
|
|
4927
4927
|
}, L = E(!0);
|
|
4928
4928
|
ve(S, (U) => {
|
|
4929
|
-
var J, ee, k, v
|
|
4930
|
-
if (((
|
|
4929
|
+
var J, ee, k, v;
|
|
4930
|
+
if (Array.isArray((J = U == null ? void 0 : U.response) == null ? void 0 : J.data) && (L.value = U.response.data.length > 0), U.status === He.Error) {
|
|
4931
4931
|
q.value = {
|
|
4932
4932
|
title: l("upstreams.errors.general")
|
|
4933
|
-
}, (
|
|
4933
|
+
}, (v = (k = (ee = U.error) == null ? void 0 : ee.response) == null ? void 0 : k.data) != null && v.message && (q.value.message = U.error.response.data.message), a("error", U.error);
|
|
4934
4934
|
return;
|
|
4935
4935
|
}
|
|
4936
4936
|
q.value = null;
|
|
@@ -4944,7 +4944,7 @@ const Vu = { class: "kong-ui-entities-upstreams-list" }, Lu = { class: "upstream
|
|
|
4944
4944
|
return et(async () => {
|
|
4945
4945
|
await t.canCreate() && (G.value.title = l("upstreams.list.empty_state.title"), G.value.ctaText = l("upstreams.actions.create"));
|
|
4946
4946
|
}), (U, J) => {
|
|
4947
|
-
const ee = K("KButton"), k = K("KBadge"), v = K("KTruncate"), _ = K("KDropdownItem"),
|
|
4947
|
+
const ee = K("KButton"), k = K("KBadge"), v = K("KTruncate"), _ = K("KDropdownItem"), re = K("KClipboardProvider");
|
|
4948
4948
|
return b(), N("div", Vu, [
|
|
4949
4949
|
y(c(Ks), {
|
|
4950
4950
|
"cache-identifier": e.cacheIdentifier,
|
|
@@ -4961,7 +4961,7 @@ const Vu = { class: "kong-ui-entities-upstreams-list" }, Lu = { class: "upstream
|
|
|
4961
4961
|
"table-headers": c(u),
|
|
4962
4962
|
"use-action-outside": e.useActionOutside,
|
|
4963
4963
|
onClearSearchInput: m,
|
|
4964
|
-
"onClick:row": J[1] || (J[1] = (X) =>
|
|
4964
|
+
"onClick:row": J[1] || (J[1] = (X) => A(X)),
|
|
4965
4965
|
onSort: g
|
|
4966
4966
|
}, {
|
|
4967
4967
|
"toolbar-filter": p(() => [
|
|
@@ -5004,12 +5004,12 @@ const Vu = { class: "kong-ui-entities-upstreams-list" }, Lu = { class: "upstream
|
|
|
5004
5004
|
tags: p(({ rowValue: X }) => [
|
|
5005
5005
|
y(v, null, {
|
|
5006
5006
|
default: p(() => [
|
|
5007
|
-
(b(!0), N(ce, null, ye(X, (
|
|
5008
|
-
key:
|
|
5007
|
+
(b(!0), N(ce, null, ye(X, (ie) => (b(), P(k, {
|
|
5008
|
+
key: ie,
|
|
5009
5009
|
"max-width": "auto"
|
|
5010
5010
|
}, {
|
|
5011
5011
|
default: p(() => [
|
|
5012
|
-
Y(w(
|
|
5012
|
+
Y(w(ie), 1)
|
|
5013
5013
|
]),
|
|
5014
5014
|
_: 2
|
|
5015
5015
|
}, 1024))), 128))
|
|
@@ -5018,11 +5018,11 @@ const Vu = { class: "kong-ui-entities-upstreams-list" }, Lu = { class: "upstream
|
|
|
5018
5018
|
}, 1024)
|
|
5019
5019
|
]),
|
|
5020
5020
|
actions: p(({ row: X }) => [
|
|
5021
|
-
y(
|
|
5022
|
-
default: p(({ copyToClipboard:
|
|
5021
|
+
y(re, null, {
|
|
5022
|
+
default: p(({ copyToClipboard: ie }) => [
|
|
5023
5023
|
y(_, {
|
|
5024
5024
|
"data-testid": "action-entity-copy-id",
|
|
5025
|
-
onClick: (he) => I(X,
|
|
5025
|
+
onClick: (he) => I(X, ie)
|
|
5026
5026
|
}, {
|
|
5027
5027
|
default: p(() => [
|
|
5028
5028
|
Y(w(c(l)("upstreams.actions.copy_id")), 1)
|
|
@@ -5032,11 +5032,11 @@ const Vu = { class: "kong-ui-entities-upstreams-list" }, Lu = { class: "upstream
|
|
|
5032
5032
|
]),
|
|
5033
5033
|
_: 2
|
|
5034
5034
|
}, 1024),
|
|
5035
|
-
y(
|
|
5036
|
-
default: p(({ copyToClipboard:
|
|
5035
|
+
y(re, null, {
|
|
5036
|
+
default: p(({ copyToClipboard: ie }) => [
|
|
5037
5037
|
y(_, {
|
|
5038
5038
|
"data-testid": "action-entity-copy-json",
|
|
5039
|
-
onClick: (he) => R(X,
|
|
5039
|
+
onClick: (he) => R(X, ie)
|
|
5040
5040
|
}, {
|
|
5041
5041
|
default: p(() => [
|
|
5042
5042
|
Y(w(c(l)("upstreams.actions.copy_json")), 1)
|
|
@@ -5053,7 +5053,7 @@ const Vu = { class: "kong-ui-entities-upstreams-list" }, Lu = { class: "upstream
|
|
|
5053
5053
|
y(_, {
|
|
5054
5054
|
"data-testid": "action-entity-view",
|
|
5055
5055
|
"has-divider": "",
|
|
5056
|
-
item:
|
|
5056
|
+
item: T(X.id)
|
|
5057
5057
|
}, null, 8, ["item"])
|
|
5058
5058
|
]),
|
|
5059
5059
|
_: 2
|
|
@@ -5077,7 +5077,7 @@ const Vu = { class: "kong-ui-entities-upstreams-list" }, Lu = { class: "upstream
|
|
|
5077
5077
|
danger: "",
|
|
5078
5078
|
"data-testid": "action-entity-delete",
|
|
5079
5079
|
"has-divider": "",
|
|
5080
|
-
onClick: (
|
|
5080
|
+
onClick: (ie) => j(X)
|
|
5081
5081
|
}, {
|
|
5082
5082
|
default: p(() => [
|
|
5083
5083
|
Y(w(c(l)("upstreams.actions.delete")), 1)
|
|
@@ -5110,7 +5110,7 @@ const xe = (e, a) => {
|
|
|
5110
5110
|
for (const [l, s] of a)
|
|
5111
5111
|
t[l] = s;
|
|
5112
5112
|
return t;
|
|
5113
|
-
}, Vc = /* @__PURE__ */ xe(Ru, [["__scopeId", "data-v-
|
|
5113
|
+
}, Vc = /* @__PURE__ */ xe(Ru, [["__scopeId", "data-v-1082fd6a"]]), at = {
|
|
5114
5114
|
list: {
|
|
5115
5115
|
konnect: "/api/runtime_groups/{controlPlaneId}/upstreams/{upstreamId}/targets",
|
|
5116
5116
|
kongManager: "/{workspace}/upstreams/{upstreamId}/targets"
|
|
@@ -5154,16 +5154,16 @@ const xe = (e, a) => {
|
|
|
5154
5154
|
},
|
|
5155
5155
|
emits: ["update", "error", "loading", "cancel"],
|
|
5156
5156
|
setup(e, { emit: a }) {
|
|
5157
|
-
var
|
|
5157
|
+
var A;
|
|
5158
5158
|
const t = e;
|
|
5159
|
-
Kl((
|
|
5159
|
+
Kl((T) => ({
|
|
5160
5160
|
"36f73404": R.value
|
|
5161
5161
|
}));
|
|
5162
5162
|
const { i18n: { t: l } } = Ie.useI18n(), { getMessageFromError: s } = Es(), { axiosInstance: i } = ht({
|
|
5163
|
-
headers: (
|
|
5163
|
+
headers: (A = t.config) == null ? void 0 : A.requestHeaders
|
|
5164
5164
|
}), o = F(() => {
|
|
5165
|
-
var
|
|
5166
|
-
return at.form[t.config.app].edit.replace(/{upstreamId}/gi, ((
|
|
5165
|
+
var T;
|
|
5166
|
+
return at.form[t.config.app].edit.replace(/{upstreamId}/gi, ((T = t.config) == null ? void 0 : T.upstreamId) || "");
|
|
5167
5167
|
}), d = F(() => t.targetId ? Ce.Edit : Ce.Create), n = F(() => d.value === Ce.Edit ? l("targets.form.edit.title") : l("targets.form.create.title")), u = lt({
|
|
5168
5168
|
fields: {
|
|
5169
5169
|
target: "",
|
|
@@ -5181,31 +5181,31 @@ const xe = (e, a) => {
|
|
|
5181
5181
|
weight: 100,
|
|
5182
5182
|
tags: ""
|
|
5183
5183
|
}, r = F(() => {
|
|
5184
|
-
const
|
|
5185
|
-
return
|
|
5184
|
+
const T = parseInt(u.fields.weight.toString(), 10);
|
|
5185
|
+
return T < 0 || T > 65535;
|
|
5186
5186
|
}), C = F(
|
|
5187
5187
|
() => JSON.stringify(u.fields) !== JSON.stringify(f) && !!u.fields.target && !!u.fields.weight && !r.value
|
|
5188
|
-
), S = (
|
|
5188
|
+
), S = (T) => {
|
|
5189
5189
|
var D;
|
|
5190
|
-
u.fields.target = (
|
|
5190
|
+
u.fields.target = (T == null ? void 0 : T.target) || "", u.fields.weight = (T == null ? void 0 : T.weight) ?? "", u.fields.tags = ((D = T == null ? void 0 : T.tags) == null ? void 0 : D.join(", ")) || "", Object.assign(f, u.fields);
|
|
5191
5191
|
}, m = () => {
|
|
5192
5192
|
u.errorMessage = "", a("cancel");
|
|
5193
5193
|
}, g = F(() => {
|
|
5194
5194
|
var D, B;
|
|
5195
|
-
let
|
|
5196
|
-
return t.config.app === "konnect" ?
|
|
5195
|
+
let T = `${t.config.apiBaseUrl}${at.form[t.config.app].validate}`;
|
|
5196
|
+
return t.config.app === "konnect" ? T = T.replace(/{controlPlaneId}/gi, ((D = t.config) == null ? void 0 : D.controlPlaneId) || "") : t.config.app === "kongManager" && (T = T.replace(/\/{workspace}/gi, (B = t.config) != null && B.workspace ? `/${t.config.workspace}` : "")), T = T.replace(/{id}/gi, t.targetId), T;
|
|
5197
5197
|
}), q = F(() => {
|
|
5198
5198
|
var D, B, O, $;
|
|
5199
|
-
let
|
|
5200
|
-
return t.config.app === "konnect" ?
|
|
5199
|
+
let T = `${t.config.apiBaseUrl}${at.form[t.config.app][d.value]}`;
|
|
5200
|
+
return t.config.app === "konnect" ? T = T.replace(/{controlPlaneId}/gi, ((D = t.config) == null ? void 0 : D.controlPlaneId) || "").replace(/{upstreamId}/gi, ((B = t.config) == null ? void 0 : B.upstreamId) || "") : t.config.app === "kongManager" && (T = T.replace(/\/{workspace}/gi, (O = t.config) != null && O.workspace ? `/${t.config.workspace}` : "").replace(/{upstreamId}/gi, (($ = t.config) == null ? void 0 : $.upstreamId) || "")), T = T.replace(/{id}/gi, t.targetId), T;
|
|
5201
5201
|
}), I = async () => {
|
|
5202
|
-
var
|
|
5202
|
+
var T, D, B, O, $;
|
|
5203
5203
|
try {
|
|
5204
5204
|
u.isReadonly = !0, u.errorMessage = "";
|
|
5205
5205
|
const H = {
|
|
5206
5206
|
target: u.fields.target,
|
|
5207
5207
|
weight: parseInt(u.fields.weight),
|
|
5208
|
-
tags: (B = (D = (
|
|
5208
|
+
tags: (B = (D = (T = u.fields.tags) == null ? void 0 : T.split(",")) == null ? void 0 : D.map((j) => String(j || "").trim())) == null ? void 0 : B.filter((j) => j !== ""),
|
|
5209
5209
|
upstream: { id: t.config.upstreamId }
|
|
5210
5210
|
};
|
|
5211
5211
|
let M;
|
|
@@ -5221,7 +5221,7 @@ const xe = (e, a) => {
|
|
|
5221
5221
|
}, R = F(() => u.isReadonly ? "inline-flex" : "none");
|
|
5222
5222
|
return ve(() => t.targetId, () => {
|
|
5223
5223
|
Object.assign(u.fields, h);
|
|
5224
|
-
}), (
|
|
5224
|
+
}), (T, D) => {
|
|
5225
5225
|
const B = K("KInput"), O = K("KPrompt");
|
|
5226
5226
|
return b(), P(O, {
|
|
5227
5227
|
"action-button-text": c(l)("targets.form.buttons.save"),
|
|
@@ -5241,14 +5241,14 @@ const xe = (e, a) => {
|
|
|
5241
5241
|
"fetch-url": o.value,
|
|
5242
5242
|
"is-readonly": u.isReadonly,
|
|
5243
5243
|
onCancel: m,
|
|
5244
|
-
"onFetch:error": D[3] || (D[3] = ($) =>
|
|
5244
|
+
"onFetch:error": D[3] || (D[3] = ($) => T.$emit("error", $)),
|
|
5245
5245
|
"onFetch:success": S,
|
|
5246
|
-
onLoading: D[4] || (D[4] = ($) =>
|
|
5246
|
+
onLoading: D[4] || (D[4] = ($) => T.$emit("loading", $))
|
|
5247
5247
|
}, {
|
|
5248
5248
|
default: p(() => [
|
|
5249
5249
|
x("div", zu, [
|
|
5250
|
-
|
|
5251
|
-
te(
|
|
5250
|
+
T.$slots.info ? (b(), N("div", Ju, [
|
|
5251
|
+
te(T.$slots, "info", {}, void 0, !0)
|
|
5252
5252
|
])) : Q("", !0),
|
|
5253
5253
|
y(B, {
|
|
5254
5254
|
modelValue: u.fields.target,
|
|
@@ -5352,9 +5352,9 @@ const Qu = /* @__PURE__ */ xe(Wu, [["__scopeId", "data-v-d291c3d9"]]), Yu = { cl
|
|
|
5352
5352
|
weight: { label: l("targets.list.table_headers.weight"), sortable: !0 },
|
|
5353
5353
|
tags: { label: l("targets.list.table_headers.tags"), sortable: !1 }
|
|
5354
5354
|
}, u = F(() => {
|
|
5355
|
-
var v, _,
|
|
5355
|
+
var v, _, re, X;
|
|
5356
5356
|
let k = `${t.config.apiBaseUrl}${at.list[t.config.app]}`;
|
|
5357
|
-
return t.config.app === "konnect" ? k = k.replace(/{controlPlaneId}/gi, ((v = t.config) == null ? void 0 : v.controlPlaneId) || "").replace(/{upstreamId}/gi, ((_ = t.config) == null ? void 0 : _.upstreamId) || "") : t.config.app === "kongManager" && (k = k.replace(/\/{workspace}/gi, (
|
|
5357
|
+
return t.config.app === "konnect" ? k = k.replace(/{controlPlaneId}/gi, ((v = t.config) == null ? void 0 : v.controlPlaneId) || "").replace(/{upstreamId}/gi, ((_ = t.config) == null ? void 0 : _.upstreamId) || "") : t.config.app === "kongManager" && (k = k.replace(/\/{workspace}/gi, (re = t.config) != null && re.workspace ? `/${t.config.workspace}` : "").replace(/{upstreamId}/gi, ((X = t.config) == null ? void 0 : X.upstreamId) || "")), k;
|
|
5358
5358
|
}), { fetcher: f, fetcherState: h } = Ps(t.config, u.value), r = () => {
|
|
5359
5359
|
i.value++;
|
|
5360
5360
|
}, C = E(null), S = () => {
|
|
@@ -5389,29 +5389,29 @@ const Qu = /* @__PURE__ */ xe(Wu, [["__scopeId", "data-v-d291c3d9"]]), Yu = { cl
|
|
|
5389
5389
|
});
|
|
5390
5390
|
}, q = (k) => {
|
|
5391
5391
|
L.value = k, G.value = !0;
|
|
5392
|
-
}, I = (k) => t.config.app === "konnect" ? !1 : t.config.canMarkHealthy(k), R = (k) => t.config.app === "konnect" ? !1 : t.config.canMarkUnhealthy(k),
|
|
5393
|
-
|
|
5392
|
+
}, I = (k) => t.config.app === "konnect" ? !1 : t.config.canMarkHealthy(k), R = (k) => t.config.app === "konnect" ? !1 : t.config.canMarkUnhealthy(k), A = E(void 0), T = E(!1), D = E(!1), B = E(""), O = Ns(t.config, u.value), $ = (k) => {
|
|
5393
|
+
A.value = k, T.value = !0;
|
|
5394
5394
|
}, H = () => {
|
|
5395
|
-
|
|
5395
|
+
T.value = !1;
|
|
5396
5396
|
}, M = async () => {
|
|
5397
5397
|
var k, v, _;
|
|
5398
|
-
if ((k =
|
|
5398
|
+
if ((k = A.value) != null && k.id) {
|
|
5399
5399
|
D.value = !0;
|
|
5400
5400
|
try {
|
|
5401
|
-
await s.delete(O(
|
|
5402
|
-
} catch (
|
|
5403
|
-
B.value = ((_ = (v =
|
|
5401
|
+
await s.delete(O(A.value.id)), D.value = !1, T.value = !1, i.value++, a("delete:success", A.value);
|
|
5402
|
+
} catch (re) {
|
|
5403
|
+
B.value = ((_ = (v = re.response) == null ? void 0 : v.data) == null ? void 0 : _.message) || re.message || l("targets.errors.delete"), a("error", re);
|
|
5404
5404
|
} finally {
|
|
5405
5405
|
D.value = !1;
|
|
5406
5406
|
}
|
|
5407
5407
|
}
|
|
5408
5408
|
}, j = E(!0);
|
|
5409
5409
|
ve(h, (k) => {
|
|
5410
|
-
var v, _,
|
|
5411
|
-
if (((
|
|
5410
|
+
var v, _, re, X;
|
|
5411
|
+
if (Array.isArray((v = k == null ? void 0 : k.response) == null ? void 0 : v.data) && (j.value = k.response.data.length > 0), k.status === He.Error) {
|
|
5412
5412
|
C.value = {
|
|
5413
5413
|
title: l("targets.errors.general")
|
|
5414
|
-
}, (
|
|
5414
|
+
}, (X = (re = (_ = k.error) == null ? void 0 : _.response) == null ? void 0 : re.data) != null && X.message && (C.value.message = k.error.response.data.message), a("error", k.error);
|
|
5415
5415
|
return;
|
|
5416
5416
|
}
|
|
5417
5417
|
C.value = null;
|
|
@@ -5449,7 +5449,7 @@ const Qu = /* @__PURE__ */ xe(Wu, [["__scopeId", "data-v-d291c3d9"]]), Yu = { cl
|
|
|
5449
5449
|
G.value = !1, L.value = "";
|
|
5450
5450
|
};
|
|
5451
5451
|
return (k, v) => {
|
|
5452
|
-
const _ = K("KButton"),
|
|
5452
|
+
const _ = K("KButton"), re = K("KBadge"), X = K("KTruncate"), ie = K("KDropdownItem"), he = K("KClipboardProvider");
|
|
5453
5453
|
return b(), N("div", Yu, [
|
|
5454
5454
|
y(c(Ks), {
|
|
5455
5455
|
"cache-identifier": e.cacheIdentifier,
|
|
@@ -5495,13 +5495,13 @@ const Qu = /* @__PURE__ */ xe(Wu, [["__scopeId", "data-v-d291c3d9"]]), Yu = { cl
|
|
|
5495
5495
|
}, 8, ["auth-function"])
|
|
5496
5496
|
], 8, ["disabled"]))
|
|
5497
5497
|
]),
|
|
5498
|
-
target: p(({ rowValue:
|
|
5499
|
-
x("span", Gu, w(
|
|
5498
|
+
target: p(({ rowValue: le }) => [
|
|
5499
|
+
x("span", Gu, w(le), 1)
|
|
5500
5500
|
]),
|
|
5501
|
-
tags: p(({ rowValue:
|
|
5501
|
+
tags: p(({ rowValue: le }) => [
|
|
5502
5502
|
y(X, null, {
|
|
5503
5503
|
default: p(() => [
|
|
5504
|
-
(b(!0), N(ce, null, ye(
|
|
5504
|
+
(b(!0), N(ce, null, ye(le, (fe) => (b(), P(re, {
|
|
5505
5505
|
key: fe,
|
|
5506
5506
|
"max-width": "auto"
|
|
5507
5507
|
}, {
|
|
@@ -5514,12 +5514,12 @@ const Qu = /* @__PURE__ */ xe(Wu, [["__scopeId", "data-v-d291c3d9"]]), Yu = { cl
|
|
|
5514
5514
|
_: 2
|
|
5515
5515
|
}, 1024)
|
|
5516
5516
|
]),
|
|
5517
|
-
actions: p(({ row:
|
|
5517
|
+
actions: p(({ row: le }) => [
|
|
5518
5518
|
y(he, null, {
|
|
5519
5519
|
default: p(({ copyToClipboard: fe }) => [
|
|
5520
|
-
y(
|
|
5520
|
+
y(ie, {
|
|
5521
5521
|
"data-testid": "action-entity-copy-id",
|
|
5522
|
-
onClick: (qe) => m(
|
|
5522
|
+
onClick: (qe) => m(le, fe)
|
|
5523
5523
|
}, {
|
|
5524
5524
|
default: p(() => [
|
|
5525
5525
|
Y(w(c(l)("targets.actions.copy_id")), 1)
|
|
@@ -5531,9 +5531,9 @@ const Qu = /* @__PURE__ */ xe(Wu, [["__scopeId", "data-v-d291c3d9"]]), Yu = { cl
|
|
|
5531
5531
|
}, 1024),
|
|
5532
5532
|
y(he, null, {
|
|
5533
5533
|
default: p(({ copyToClipboard: fe }) => [
|
|
5534
|
-
y(
|
|
5534
|
+
y(ie, {
|
|
5535
5535
|
"data-testid": "action-entity-copy-json",
|
|
5536
|
-
onClick: (qe) => g(
|
|
5536
|
+
onClick: (qe) => g(le, fe)
|
|
5537
5537
|
}, {
|
|
5538
5538
|
default: p(() => [
|
|
5539
5539
|
Y(w(c(l)("targets.actions.copy_json")), 1)
|
|
@@ -5544,13 +5544,13 @@ const Qu = /* @__PURE__ */ xe(Wu, [["__scopeId", "data-v-d291c3d9"]]), Yu = { cl
|
|
|
5544
5544
|
_: 2
|
|
5545
5545
|
}, 1024),
|
|
5546
5546
|
y(c(we), {
|
|
5547
|
-
"auth-function": () => e.canEdit(
|
|
5547
|
+
"auth-function": () => e.canEdit(le)
|
|
5548
5548
|
}, {
|
|
5549
5549
|
default: p(() => [
|
|
5550
|
-
y(
|
|
5550
|
+
y(ie, {
|
|
5551
5551
|
"data-testid": "action-entity-edit",
|
|
5552
5552
|
"has-divider": "",
|
|
5553
|
-
onClick: (fe) => q(
|
|
5553
|
+
onClick: (fe) => q(le.id)
|
|
5554
5554
|
}, {
|
|
5555
5555
|
default: p(() => [
|
|
5556
5556
|
Y(w(c(l)("targets.actions.edit")), 1)
|
|
@@ -5561,12 +5561,12 @@ const Qu = /* @__PURE__ */ xe(Wu, [["__scopeId", "data-v-d291c3d9"]]), Yu = { cl
|
|
|
5561
5561
|
_: 2
|
|
5562
5562
|
}, 1032, ["auth-function"]),
|
|
5563
5563
|
y(c(we), {
|
|
5564
|
-
"auth-function": () => I(
|
|
5564
|
+
"auth-function": () => I(le)
|
|
5565
5565
|
}, {
|
|
5566
5566
|
default: p(() => [
|
|
5567
|
-
y(
|
|
5567
|
+
y(ie, {
|
|
5568
5568
|
"data-testid": "action-target-mark-healthy",
|
|
5569
|
-
onClick: (fe) => a("health-actions:healthy",
|
|
5569
|
+
onClick: (fe) => a("health-actions:healthy", le)
|
|
5570
5570
|
}, {
|
|
5571
5571
|
default: p(() => [
|
|
5572
5572
|
Y(w(c(l)("targets.actions.mark_healthy")), 1)
|
|
@@ -5577,12 +5577,12 @@ const Qu = /* @__PURE__ */ xe(Wu, [["__scopeId", "data-v-d291c3d9"]]), Yu = { cl
|
|
|
5577
5577
|
_: 2
|
|
5578
5578
|
}, 1032, ["auth-function"]),
|
|
5579
5579
|
y(c(we), {
|
|
5580
|
-
"auth-function": () => R(
|
|
5580
|
+
"auth-function": () => R(le)
|
|
5581
5581
|
}, {
|
|
5582
5582
|
default: p(() => [
|
|
5583
|
-
y(
|
|
5583
|
+
y(ie, {
|
|
5584
5584
|
"data-testid": "action-target-mark-unhealthy",
|
|
5585
|
-
onClick: (fe) => a("health-actions:unhealthy",
|
|
5585
|
+
onClick: (fe) => a("health-actions:unhealthy", le)
|
|
5586
5586
|
}, {
|
|
5587
5587
|
default: p(() => [
|
|
5588
5588
|
Y(w(c(l)("targets.actions.mark_unhealthy")), 1)
|
|
@@ -5593,14 +5593,14 @@ const Qu = /* @__PURE__ */ xe(Wu, [["__scopeId", "data-v-d291c3d9"]]), Yu = { cl
|
|
|
5593
5593
|
_: 2
|
|
5594
5594
|
}, 1032, ["auth-function"]),
|
|
5595
5595
|
y(c(we), {
|
|
5596
|
-
"auth-function": () => e.canDelete(
|
|
5596
|
+
"auth-function": () => e.canDelete(le)
|
|
5597
5597
|
}, {
|
|
5598
5598
|
default: p(() => [
|
|
5599
|
-
y(
|
|
5599
|
+
y(ie, {
|
|
5600
5600
|
danger: "",
|
|
5601
5601
|
"data-testid": "action-entity-delete",
|
|
5602
5602
|
"has-divider": "",
|
|
5603
|
-
onClick: (fe) => $(
|
|
5603
|
+
onClick: (fe) => $(le)
|
|
5604
5604
|
}, {
|
|
5605
5605
|
default: p(() => [
|
|
5606
5606
|
Y(w(c(l)("targets.actions.delete")), 1)
|
|
@@ -5620,7 +5620,7 @@ const Qu = /* @__PURE__ */ xe(Wu, [["__scopeId", "data-v-d291c3d9"]]), Yu = { cl
|
|
|
5620
5620
|
error: B.value,
|
|
5621
5621
|
"need-confirm": !1,
|
|
5622
5622
|
title: c(l)("targets.delete.title"),
|
|
5623
|
-
visible:
|
|
5623
|
+
visible: T.value,
|
|
5624
5624
|
onCancel: H,
|
|
5625
5625
|
onProceed: M
|
|
5626
5626
|
}, null, 8, ["action-pending", "description", "entity-type", "error", "title", "visible"]),
|
|
@@ -5630,7 +5630,7 @@ const Qu = /* @__PURE__ */ xe(Wu, [["__scopeId", "data-v-d291c3d9"]]), Yu = { cl
|
|
|
5630
5630
|
"target-id": L.value,
|
|
5631
5631
|
onCancel: J,
|
|
5632
5632
|
onUpdate: Z
|
|
5633
|
-
},
|
|
5633
|
+
}, Ae({ _: 2 }, [
|
|
5634
5634
|
k.$slots["form-info"] ? {
|
|
5635
5635
|
name: "info",
|
|
5636
5636
|
fn: p(() => [
|
|
@@ -5643,7 +5643,7 @@ const Qu = /* @__PURE__ */ xe(Wu, [["__scopeId", "data-v-d291c3d9"]]), Yu = { cl
|
|
|
5643
5643
|
};
|
|
5644
5644
|
}
|
|
5645
5645
|
});
|
|
5646
|
-
const Lc = /* @__PURE__ */ xe(Zu, [["__scopeId", "data-v-
|
|
5646
|
+
const Lc = /* @__PURE__ */ xe(Zu, [["__scopeId", "data-v-268875d2"]]), Xu = { key: 1 }, ec = /* @__PURE__ */ ae({
|
|
5647
5647
|
__name: "UpstreamsFormGeneralInfo",
|
|
5648
5648
|
props: {
|
|
5649
5649
|
config: {
|
|
@@ -5701,17 +5701,17 @@ const Lc = /* @__PURE__ */ xe(Zu, [["__scopeId", "data-v-ae107100"]]), Xu = { ke
|
|
|
5701
5701
|
}), q = F(() => {
|
|
5702
5702
|
var z;
|
|
5703
5703
|
return (z = C.value) == null ? void 0 : z.map((L) => ({ label: L.id, value: L.id }));
|
|
5704
|
-
}), I = E(""), R = E({ value: "", label: "" }),
|
|
5704
|
+
}), I = E(""), R = E({ value: "", label: "" }), A = F(() => {
|
|
5705
5705
|
var z, L;
|
|
5706
5706
|
return ((z = g.value.find((G) => G.value === I.value)) == null ? void 0 : z.label) || ((L = R.value) == null ? void 0 : L.label);
|
|
5707
|
-
}),
|
|
5707
|
+
}), T = (z) => {
|
|
5708
5708
|
S.value = z, i(z);
|
|
5709
5709
|
}, D = (z) => {
|
|
5710
5710
|
R.value = z;
|
|
5711
5711
|
}, B = () => {
|
|
5712
5712
|
R.value = { value: "", label: "" };
|
|
5713
5713
|
}, O = (z) => {
|
|
5714
|
-
I.value = z, a("update:name",
|
|
5714
|
+
I.value = z, a("update:name", A.value);
|
|
5715
5715
|
}, $ = E(!1);
|
|
5716
5716
|
return et(async () => {
|
|
5717
5717
|
var z, L;
|
|
@@ -5751,7 +5751,7 @@ const Lc = /* @__PURE__ */ xe(Zu, [["__scopeId", "data-v-ae107100"]]), Xu = { ke
|
|
|
5751
5751
|
width: "100%",
|
|
5752
5752
|
"onItem:added": D,
|
|
5753
5753
|
"onItem:removed": B,
|
|
5754
|
-
onQueryChange:
|
|
5754
|
+
onQueryChange: T,
|
|
5755
5755
|
"onUpdate:modelValue": O
|
|
5756
5756
|
}, {
|
|
5757
5757
|
"label-tooltip": p(() => [
|
|
@@ -5944,7 +5944,7 @@ const tc = /* @__PURE__ */ xe(ec, [["__scopeId", "data-v-02065a3d"]]), ft = {
|
|
|
5944
5944
|
}), ve(() => t.hashFallback, (f, h) => {
|
|
5945
5945
|
h === "header" && f !== h && a("update:hash-fallback-header", ""), h === "cookie" && f !== h && (a("update:hash-on-cookie", ""), a("update:hash-on-cookie-path", "/")), h === "query_arg" && f !== h && a("update:hash-fallback-query-argument", ""), h === "uri_capture" && f !== h && a("update:hash-fallback-uri-capture", "");
|
|
5946
5946
|
});
|
|
5947
|
-
const n = F(() => t.hashOn === "cookie" || t.hashOn === "none"), u = F(() => t.slots ? i(t.slots, Ht,
|
|
5947
|
+
const n = F(() => t.hashOn === "cookie" || t.hashOn === "none"), u = F(() => t.slots ? i(t.slots, Ht, At) ? "" : s("upstreams.form.errors.in_range") : "");
|
|
5948
5948
|
return (f, h) => {
|
|
5949
5949
|
const r = K("KExternalLink"), C = K("KSelect"), S = K("KInput"), m = K("KCard");
|
|
5950
5950
|
return b(), P(c(tt), {
|
|
@@ -5983,7 +5983,7 @@ const tc = /* @__PURE__ */ xe(ec, [["__scopeId", "data-v-02065a3d"]]), ft = {
|
|
|
5983
5983
|
"error-message": u.value,
|
|
5984
5984
|
help: c(s)("upstreams.form.fields.slots.help"),
|
|
5985
5985
|
label: c(s)("upstreams.form.fields.slots.label"),
|
|
5986
|
-
max: c(
|
|
5986
|
+
max: c(At),
|
|
5987
5987
|
min: c(Ht),
|
|
5988
5988
|
"model-value": e.slots,
|
|
5989
5989
|
readonly: e.readonly,
|
|
@@ -6365,7 +6365,7 @@ const pc = /* @__PURE__ */ xe(hc, [["__scopeId", "data-v-7fda4841"]]), fc = { ke
|
|
|
6365
6365
|
trackNewItems: u
|
|
6366
6366
|
} = Xe({ replaceId: !0 });
|
|
6367
6367
|
ve(() => t.type, (S, m) => {
|
|
6368
|
-
m === "tcp" && S !== m && a("update:tcp-failures", "5"), (m === "https" || m === "grpcs") && S !== m && (a("update:https-sni", ""), a("update:verify-ssl", !1)), m !== "tcp" && S === "tcp" && (a("update:http-path", "/"), a("update:http-statuses",
|
|
6368
|
+
m === "tcp" && S !== m && a("update:tcp-failures", "5"), (m === "https" || m === "grpcs") && S !== m && (a("update:https-sni", ""), a("update:verify-ssl", !1)), m !== "tcp" && S === "tcp" && (a("update:http-path", "/"), a("update:http-statuses", Tt), a("update:unhealthy-http-statuses", Ft));
|
|
6369
6369
|
});
|
|
6370
6370
|
const f = E([{ key: "", values: "" }]);
|
|
6371
6371
|
ve(() => t.headers, (S) => {
|
|
@@ -6382,7 +6382,7 @@ const pc = /* @__PURE__ */ xe(hc, [["__scopeId", "data-v-7fda4841"]]), fc = { ke
|
|
|
6382
6382
|
S === 0 && f.value.length === 1 ? f.value[0] = { key: "", values: "" } : f.value.splice(S, 1), h();
|
|
6383
6383
|
};
|
|
6384
6384
|
return (S, m) => {
|
|
6385
|
-
const g = K("KExternalLink"), q = K("KSelect"), I = K("KInput"), R = K("KCheckbox"),
|
|
6385
|
+
const g = K("KExternalLink"), q = K("KSelect"), I = K("KInput"), R = K("KCheckbox"), A = K("KLabel"), T = K("KIcon"), D = K("KButton"), B = K("KMultiselect"), O = K("KCard");
|
|
6386
6386
|
return b(), P(c(tt), {
|
|
6387
6387
|
class: "kong-ui-entities-upstreams-active-healthcheck",
|
|
6388
6388
|
title: c(l)("upstreams.form.active_health_check.title")
|
|
@@ -6466,7 +6466,7 @@ const pc = /* @__PURE__ */ xe(hc, [["__scopeId", "data-v-7fda4841"]]), fc = { ke
|
|
|
6466
6466
|
}, null, 8, ["disabled", "label", "model-value"])
|
|
6467
6467
|
], 64)) : Q("", !0),
|
|
6468
6468
|
(($ = e.config) == null ? void 0 : $.app) === "kongManager" ? (b(), N("div", fc, [
|
|
6469
|
-
y(
|
|
6469
|
+
y(A, {
|
|
6470
6470
|
info: c(l)("upstreams.form.fields.headers.tooltip_active"),
|
|
6471
6471
|
"tooltip-attributes": { maxWidth: "250px" }
|
|
6472
6472
|
}, {
|
|
@@ -6505,7 +6505,7 @@ const pc = /* @__PURE__ */ xe(hc, [["__scopeId", "data-v-7fda4841"]]), fc = { ke
|
|
|
6505
6505
|
onClick: (j) => C(M)
|
|
6506
6506
|
}, {
|
|
6507
6507
|
icon: p(() => [
|
|
6508
|
-
y(
|
|
6508
|
+
y(T, {
|
|
6509
6509
|
class: "delete-item",
|
|
6510
6510
|
icon: "trash"
|
|
6511
6511
|
})
|
|
@@ -6520,7 +6520,7 @@ const pc = /* @__PURE__ */ xe(hc, [["__scopeId", "data-v-7fda4841"]]), fc = { ke
|
|
|
6520
6520
|
onClick: r
|
|
6521
6521
|
}, {
|
|
6522
6522
|
icon: p(() => [
|
|
6523
|
-
y(
|
|
6523
|
+
y(T, {
|
|
6524
6524
|
color: "$kui-color-text-primary-strong",
|
|
6525
6525
|
icon: "plus",
|
|
6526
6526
|
size: "22"
|
|
@@ -6850,7 +6850,7 @@ const kc = /* @__PURE__ */ xe(bc, [["__scopeId", "data-v-0a7d6cda"]]), Cc = { cl
|
|
|
6850
6850
|
};
|
|
6851
6851
|
}
|
|
6852
6852
|
});
|
|
6853
|
-
const xc = /* @__PURE__ */ xe(Ic, [["__scopeId", "data-v-6d6854e3"]]), Hc = { class: "kong-ui-entities-upstreams-form" },
|
|
6853
|
+
const xc = /* @__PURE__ */ xe(Ic, [["__scopeId", "data-v-6d6854e3"]]), Hc = { class: "kong-ui-entities-upstreams-form" }, Ac = /* @__PURE__ */ ae({
|
|
6854
6854
|
__name: "UpstreamsForm",
|
|
6855
6855
|
props: {
|
|
6856
6856
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -6879,7 +6879,7 @@ const xc = /* @__PURE__ */ xe(Ic, [["__scopeId", "data-v-6d6854e3"]]), Hc = { cl
|
|
|
6879
6879
|
r.fields.activeHealthCheck.interval = k ? "5" : "0", r.fields.activeHealthCheck.successes = k ? "5" : "0", r.fields.activeHealthCheck.httpFailures = k ? "5" : "0", r.fields.activeHealthCheck.unhealthyInterval = k ? "5" : "0";
|
|
6880
6880
|
}, g = (k) => {
|
|
6881
6881
|
r.fields.passiveHealthCheck.timeouts = k ? "5" : "0", r.fields.passiveHealthCheck.successes = k ? "80" : "0";
|
|
6882
|
-
}, q = F(() => r.fields.slots ? l(r.fields.slots, Ht,
|
|
6882
|
+
}, q = F(() => r.fields.slots ? l(r.fields.slots, Ht, At) : !0), I = F(() => r.fields.hashOn === "header" ? !!r.fields.hashOnHeader : !0), R = F(() => r.fields.hashOn === "cookie" || r.fields.hashFallback === "cookie" ? !!r.fields.hashOnCookie : !0), A = F(() => r.fields.hashOn === "cookie" || r.fields.hashFallback === "cookie" ? !!r.fields.hashOnCookiePath : !0), T = F(() => r.fields.hashOn === "query_arg" ? !!r.fields.hashOnQueryArgument : !0), D = F(() => r.fields.hashOn === "uri_capture" ? !!r.fields.hashOnUriCapture : !0), B = F(() => r.fields.hashFallback === "header" ? !!r.fields.hashFallbackHeader : !0), O = F(() => r.fields.hashFallback === "query_arg" ? !!r.fields.hashFallbackQueryArgument : !0), $ = F(() => r.fields.hashFallback === "uri_capture" ? !!r.fields.hashFallbackUriCapture : !0), H = F(() => !!r.fields.name && q.value && I.value && R.value && A.value && T.value && D.value && B.value && O.value && $.value), M = F(() => t.upstreamId ? Ce.Edit : Ce.Create), j = F(() => {
|
|
6883
6883
|
var k, v;
|
|
6884
6884
|
return (v = Je.form[(k = t.config) == null ? void 0 : k.app]) == null ? void 0 : v.edit;
|
|
6885
6885
|
}), W = (k) => {
|
|
@@ -6892,7 +6892,7 @@ const xc = /* @__PURE__ */ xe(Ic, [["__scopeId", "data-v-6d6854e3"]]), Hc = { cl
|
|
|
6892
6892
|
}, G = (k) => {
|
|
6893
6893
|
a("error", k);
|
|
6894
6894
|
}, Z = () => {
|
|
6895
|
-
var v, _,
|
|
6895
|
+
var v, _, re, X, ie;
|
|
6896
6896
|
const k = {
|
|
6897
6897
|
name: r.fields.name,
|
|
6898
6898
|
slots: Number(r.fields.slots),
|
|
@@ -6905,11 +6905,11 @@ const xc = /* @__PURE__ */ xe(Ic, [["__scopeId", "data-v-6d6854e3"]]), Hc = { cl
|
|
|
6905
6905
|
type: r.fields.activeHealthCheck.type,
|
|
6906
6906
|
healthy: {},
|
|
6907
6907
|
unhealthy: {}
|
|
6908
|
-
}, r.fields.activeHealthCheck.timeout && (k.healthchecks.active.timeout = Number(r.fields.activeHealthCheck.timeout)), r.fields.activeHealthCheck.concurrency && (k.healthchecks.active.concurrency = Number(r.fields.activeHealthCheck.concurrency)), r.fields.activeHealthCheck.type !== "tcp" && r.fields.activeHealthCheck.httpPath && (k.healthchecks.active.http_path = r.fields.activeHealthCheck.httpPath), ((
|
|
6908
|
+
}, r.fields.activeHealthCheck.timeout && (k.healthchecks.active.timeout = Number(r.fields.activeHealthCheck.timeout)), r.fields.activeHealthCheck.concurrency && (k.healthchecks.active.concurrency = Number(r.fields.activeHealthCheck.concurrency)), r.fields.activeHealthCheck.type !== "tcp" && r.fields.activeHealthCheck.httpPath && (k.healthchecks.active.http_path = r.fields.activeHealthCheck.httpPath), ((re = t.config) == null ? void 0 : re.app) === "kongManager" && (r.fields.activeHealthCheck.headers.length === 0 ? k.healthchecks.active.headers = [] : k.healthchecks.active.headers = r.fields.activeHealthCheck.headers.reduce((he, le) => {
|
|
6909
6909
|
var fe, qe;
|
|
6910
|
-
return
|
|
6910
|
+
return le.key ? {
|
|
6911
6911
|
...he,
|
|
6912
|
-
[
|
|
6912
|
+
[le.key]: (qe = (fe = le.values.split(",")) == null ? void 0 : fe.map(($e) => String($e || "").trim())) == null ? void 0 : qe.filter(($e) => $e !== "")
|
|
6913
6913
|
} : {
|
|
6914
6914
|
...he
|
|
6915
6915
|
};
|
|
@@ -6926,7 +6926,7 @@ const xc = /* @__PURE__ */ xe(Ic, [["__scopeId", "data-v-6d6854e3"]]), Hc = { cl
|
|
|
6926
6926
|
type: r.fields.passiveHealthCheck.type,
|
|
6927
6927
|
healthy: {},
|
|
6928
6928
|
unhealthy: {}
|
|
6929
|
-
}, r.fields.passiveHealthCheck.successes && (k.healthchecks.passive.healthy.successes = Number(r.fields.passiveHealthCheck.successes)), r.fields.passiveHealthCheck.type !== "tcp" && r.fields.passiveHealthCheck.httpStatuses && (k.healthchecks.passive.healthy.http_statuses = s(r.fields.passiveHealthCheck.httpStatuses)), r.fields.passiveHealthCheck.timeouts && (k.healthchecks.passive.unhealthy.timeouts = Number(r.fields.passiveHealthCheck.timeouts)), r.fields.passiveHealthCheck.type !== "tcp" && r.fields.passiveHealthCheck.unhealthyHttpStatuses && (k.healthchecks.passive.unhealthy.http_statuses = s(r.fields.passiveHealthCheck.unhealthyHttpStatuses)), r.fields.passiveHealthCheck.type !== "tcp" && r.fields.passiveHealthCheck.httpFailures && (k.healthchecks.passive.unhealthy.http_failures = Number(r.fields.passiveHealthCheck.httpFailures)), r.fields.passiveHealthCheck.type === "tcp" && r.fields.passiveHealthCheck.tcpFailures && (k.healthchecks.passive.unhealthy.tcp_failures = Number(r.fields.passiveHealthCheck.tcpFailures))) : ((
|
|
6929
|
+
}, r.fields.passiveHealthCheck.successes && (k.healthchecks.passive.healthy.successes = Number(r.fields.passiveHealthCheck.successes)), r.fields.passiveHealthCheck.type !== "tcp" && r.fields.passiveHealthCheck.httpStatuses && (k.healthchecks.passive.healthy.http_statuses = s(r.fields.passiveHealthCheck.httpStatuses)), r.fields.passiveHealthCheck.timeouts && (k.healthchecks.passive.unhealthy.timeouts = Number(r.fields.passiveHealthCheck.timeouts)), r.fields.passiveHealthCheck.type !== "tcp" && r.fields.passiveHealthCheck.unhealthyHttpStatuses && (k.healthchecks.passive.unhealthy.http_statuses = s(r.fields.passiveHealthCheck.unhealthyHttpStatuses)), r.fields.passiveHealthCheck.type !== "tcp" && r.fields.passiveHealthCheck.httpFailures && (k.healthchecks.passive.unhealthy.http_failures = Number(r.fields.passiveHealthCheck.httpFailures)), r.fields.passiveHealthCheck.type === "tcp" && r.fields.passiveHealthCheck.tcpFailures && (k.healthchecks.passive.unhealthy.tcp_failures = Number(r.fields.passiveHealthCheck.tcpFailures))) : ((ie = t.config) == null ? void 0 : ie.app) === "kongManager" && M.value === Ce.Edit && (k.healthchecks.passive = {
|
|
6930
6930
|
type: r.fields.passiveHealthCheck.type,
|
|
6931
6931
|
healthy: {
|
|
6932
6932
|
successes: 0
|
|
@@ -6938,9 +6938,9 @@ const xc = /* @__PURE__ */ xe(Ic, [["__scopeId", "data-v-6d6854e3"]]), Hc = { cl
|
|
|
6938
6938
|
}
|
|
6939
6939
|
}), k;
|
|
6940
6940
|
}, U = (k) => {
|
|
6941
|
-
var _,
|
|
6942
|
-
let v = `${(_ = t.config) == null ? void 0 : _.apiBaseUrl}${Je.form[(
|
|
6943
|
-
return ((X = t.config) == null ? void 0 : X.app) === "konnect" ? v = v.replace(/{controlPlaneId}/gi, ((
|
|
6941
|
+
var _, re, X, ie, he, le;
|
|
6942
|
+
let v = `${(_ = t.config) == null ? void 0 : _.apiBaseUrl}${Je.form[(re = t.config) == null ? void 0 : re.app][k]}`;
|
|
6943
|
+
return ((X = t.config) == null ? void 0 : X.app) === "konnect" ? v = v.replace(/{controlPlaneId}/gi, ((ie = t.config) == null ? void 0 : ie.controlPlaneId) || "") : ((he = t.config) == null ? void 0 : he.app) === "kongManager" && (v = v.replace(/\/{workspace}/gi, (le = t.config) != null && le.workspace ? `/${t.config.workspace}` : "")), v = v.replace(/{id}/gi, t.upstreamId), v;
|
|
6944
6944
|
}, J = async () => {
|
|
6945
6945
|
var k;
|
|
6946
6946
|
try {
|
|
@@ -7081,7 +7081,7 @@ const xc = /* @__PURE__ */ xe(Ic, [["__scopeId", "data-v-6d6854e3"]]), Hc = { cl
|
|
|
7081
7081
|
]));
|
|
7082
7082
|
}
|
|
7083
7083
|
});
|
|
7084
|
-
const Rc = /* @__PURE__ */ xe(
|
|
7084
|
+
const Rc = /* @__PURE__ */ xe(Ac, [["__scopeId", "data-v-810fb7b7"]]), Tc = /* @__PURE__ */ x("code", null, "10", -1), Oc = /* @__PURE__ */ x("code", null, "65536", -1), Fc = { "data-testid": "client_certificate-plain-text" }, Dc = /* @__PURE__ */ ae({
|
|
7085
7085
|
__name: "UpstreamsConfigCard",
|
|
7086
7086
|
props: {
|
|
7087
7087
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -7151,7 +7151,7 @@ const Rc = /* @__PURE__ */ xe(Tc, [["__scopeId", "data-v-810fb7b7"]]), Ac = /* @
|
|
|
7151
7151
|
order: 13,
|
|
7152
7152
|
section: ne.Basic,
|
|
7153
7153
|
// TODO: change to JsonArray
|
|
7154
|
-
type:
|
|
7154
|
+
type: se.Json
|
|
7155
7155
|
},
|
|
7156
7156
|
tags: {
|
|
7157
7157
|
order: 14,
|
|
@@ -7307,7 +7307,7 @@ const Rc = /* @__PURE__ */ xe(Tc, [["__scopeId", "data-v-810fb7b7"]]), Ac = /* @
|
|
|
7307
7307
|
x("code", null, w(c(t)("upstreams.form.hash_tooltips.slots.consistent_hashing")), 1)
|
|
7308
7308
|
]),
|
|
7309
7309
|
min: p(() => [
|
|
7310
|
-
|
|
7310
|
+
Tc
|
|
7311
7311
|
]),
|
|
7312
7312
|
max: p(() => [
|
|
7313
7313
|
Oc
|