@kong-ui-public/entities-gateway-services 1.3.2 → 1.3.3
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,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as le, ref as L, computed as $, resolveComponent as j, openBlock as h, createBlock as K, Teleport as Wi, createVNode as
|
|
1
|
+
import { defineComponent as le, ref as L, computed as $, resolveComponent as j, openBlock as h, createBlock as K, Teleport as Wi, createVNode as C, withCtx as v, unref as m, createTextVNode as D, toDisplayString as O, createElementVNode as V, watch as we, renderSlot as Q, createCommentVNode as q, useSlots as tt, onBeforeMount as gt, createSlots as Ae, createElementBlock as A, renderList as ve, Fragment as he, normalizeClass as $e, withModifiers as Le, withDirectives as ze, vShow as Ye, useCssVars as Zi, resolveDynamicComponent as qe, normalizeProps as Qi, guardReactiveProps as Xi, mergeProps as ct, onMounted as Xt, onUnmounted as ea, normalizeStyle as ta, inject as ia, pushScopeId as aa, popScopeId as oa, reactive as Tt } from "vue";
|
|
2
2
|
import { useRouter as vt } from "vue-router";
|
|
3
3
|
import { createI18n as ht, i18nTComponent as ei } from "@kong-ui-public/i18n";
|
|
4
4
|
import ra from "axios";
|
|
@@ -189,7 +189,7 @@ function ya() {
|
|
|
189
189
|
return {
|
|
190
190
|
getPortFromProtocol: (i, t) => {
|
|
191
191
|
const a = [80, 443], o = Number(t);
|
|
192
|
-
if (o && !a.includes(o))
|
|
192
|
+
if ((o || o === 0) && !a.includes(o))
|
|
193
193
|
return o;
|
|
194
194
|
switch (i) {
|
|
195
195
|
case "grpcs":
|
|
@@ -398,12 +398,12 @@ function Ta(e, i, t, a = {
|
|
|
398
398
|
}), { i18n: { t: r } } = _t(), { debounce: l } = ga(), n = l(async (s) => {
|
|
399
399
|
await S(s);
|
|
400
400
|
}, 200), c = L(!1), d = L(""), f = L(""), p = L([]), b = L(void 0), _ = m(i);
|
|
401
|
-
let
|
|
402
|
-
e.app === "konnect" ?
|
|
401
|
+
let k = `${e.apiBaseUrl}${_}`;
|
|
402
|
+
e.app === "konnect" ? k = k.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (k = k.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
403
403
|
const x = async () => {
|
|
404
404
|
try {
|
|
405
405
|
c.value = !0;
|
|
406
|
-
const { data: s } = await o.get(`${
|
|
406
|
+
const { data: s } = await o.get(`${k}?size=${t}`);
|
|
407
407
|
s != null && s.next || (b.value = a.fetchedItemsKey in s ? s[a.fetchedItemsKey] : []), p.value = a.fetchedItemsKey in s ? s[a.fetchedItemsKey] : [];
|
|
408
408
|
} catch {
|
|
409
409
|
p.value = [], d.value = r("debouncedFilter.errors.fetch");
|
|
@@ -416,7 +416,7 @@ function Ta(e, i, t, a = {
|
|
|
416
416
|
if (y.value = s || "", b.value === void 0)
|
|
417
417
|
try {
|
|
418
418
|
c.value = !0, d.value = "", f.value = "";
|
|
419
|
-
let N =
|
|
419
|
+
let N = k + "";
|
|
420
420
|
s && (N += `/${s}`);
|
|
421
421
|
const { data: ie } = await o.get(`${N}?size=${t}`);
|
|
422
422
|
a.fetchedItemsKey in ie ? p.value = ie[a.fetchedItemsKey] : ie != null && ie.id ? p.value = [ie] : p.value = [];
|
|
@@ -490,8 +490,8 @@ function ii(e, i) {
|
|
|
490
490
|
const { page: n, pageSize: c, offset: d, sortColumnKey: f, sortColumnOrder: p, query: b } = l;
|
|
491
491
|
try {
|
|
492
492
|
let _ = new URL(r.value.href);
|
|
493
|
-
return o.value && b ? (_.search = "", _ = new URL(`${_.href}/${b}/`)) : (o.value || new URLSearchParams(b).forEach((
|
|
494
|
-
_.searchParams.append(x,
|
|
493
|
+
return o.value && b ? (_.search = "", _ = new URL(`${_.href}/${b}/`)) : (o.value || new URLSearchParams(b).forEach((k, x) => {
|
|
494
|
+
_.searchParams.append(x, k);
|
|
495
495
|
}), f && _.searchParams.append("sort_by", f), p === "desc" && _.searchParams.append("sort_desc", "1"), _.searchParams.append("size", String(c))), d && n !== 1 && _.searchParams.append("offset", String(d)), _.href;
|
|
496
496
|
} catch (_) {
|
|
497
497
|
return console.error("RouteList(fetcher)", _), a.value;
|
|
@@ -693,14 +693,14 @@ const ue = {
|
|
|
693
693
|
}), l.value ? f(a("message.fail")) : i("error", t.uuid);
|
|
694
694
|
return;
|
|
695
695
|
}
|
|
696
|
-
const _ = t.uuid.length > Ft,
|
|
696
|
+
const _ = t.uuid.length > Ft, k = t.format === "hidden" || t.format === "redacted" ? a("message.success.prefix") : `"${t.uuid.substring(0, Ft) + (_ ? "..." : "")}"`;
|
|
697
697
|
typeof o == "function" && o({
|
|
698
698
|
type: "success",
|
|
699
|
-
message: `${
|
|
699
|
+
message: `${k}${a("message.success.content")}`
|
|
700
700
|
}), l.value ? f(t.successTooltip) : i("success", t.uuid);
|
|
701
701
|
};
|
|
702
702
|
return (b, _) => {
|
|
703
|
-
const
|
|
703
|
+
const k = j("KIcon"), x = j("KClipboardProvider");
|
|
704
704
|
return h(), A("div", Da, [
|
|
705
705
|
e.format !== "hidden" ? (h(), K(qe(e.idTooltip ? "KTooltip" : "div"), ct({ key: 0 }, r.value, { "data-testid": "copy-id" }), {
|
|
706
706
|
default: v(() => [
|
|
@@ -716,7 +716,7 @@ const ue = {
|
|
|
716
716
|
}, 16)) : q("", !0),
|
|
717
717
|
(h(), K(qe(e.tooltip ? "KTooltip" : "div"), ct(c.value, { class: "uuid-icon-wrapper" }), {
|
|
718
718
|
default: v(() => [
|
|
719
|
-
|
|
719
|
+
C(x, null, {
|
|
720
720
|
default: v(({ copyToClipboard: y }) => [
|
|
721
721
|
V("span", {
|
|
722
722
|
"data-testid": "copy-to-clipboard",
|
|
@@ -724,7 +724,7 @@ const ue = {
|
|
|
724
724
|
tabindex: "0",
|
|
725
725
|
onClick: Le((S) => p(y), ["stop"])
|
|
726
726
|
}, [
|
|
727
|
-
k
|
|
727
|
+
C(k, {
|
|
728
728
|
class: "uuid-icon",
|
|
729
729
|
color: e.iconColor,
|
|
730
730
|
"hide-title": !!e.tooltip || void 0,
|
|
@@ -812,7 +812,7 @@ const ue = {
|
|
|
812
812
|
return (t, a) => {
|
|
813
813
|
const o = j("KButton");
|
|
814
814
|
return h(), A("div", null, [
|
|
815
|
-
|
|
815
|
+
C(o, {
|
|
816
816
|
appearance: "btn-link",
|
|
817
817
|
class: "navigation-button",
|
|
818
818
|
onClick: a[0] || (a[0] = (r) => t.$emit("navigation-click", e.item))
|
|
@@ -1005,14 +1005,14 @@ const ue = {
|
|
|
1005
1005
|
}
|
|
1006
1006
|
});
|
|
1007
1007
|
return (p, b) => {
|
|
1008
|
-
const _ = j("KLabel"),
|
|
1008
|
+
const _ = j("KLabel"), k = j("KBadge"), x = j("KMethodBadge");
|
|
1009
1009
|
return h(), A("div", oo, [
|
|
1010
1010
|
V("div", {
|
|
1011
1011
|
class: "config-card-details-label",
|
|
1012
1012
|
"data-testid": `${e.item.key}-label`
|
|
1013
1013
|
}, [
|
|
1014
1014
|
Q(p.$slots, "label", { item: e.item }, () => [
|
|
1015
|
-
|
|
1015
|
+
C(_, { "tooltip-attributes": { maxWidth: "500px" } }, Ae({
|
|
1016
1016
|
default: v(() => [
|
|
1017
1017
|
D(O(e.item.label) + " ", 1)
|
|
1018
1018
|
]),
|
|
@@ -1048,7 +1048,7 @@ const ue = {
|
|
|
1048
1048
|
key: 0,
|
|
1049
1049
|
"data-testid": `${e.item.key}-badge-tags`
|
|
1050
1050
|
}, [
|
|
1051
|
-
(h(!0), A(he, null, ve(e.item.value, (y, S) => (h(), K(
|
|
1051
|
+
(h(!0), A(he, null, ve(e.item.value, (y, S) => (h(), K(k, {
|
|
1052
1052
|
key: `${e.item.key}-badge-tag-${S}`,
|
|
1053
1053
|
class: "config-badge",
|
|
1054
1054
|
"data-testid": `${e.item.key}-badge-tag-${S}`,
|
|
@@ -1910,7 +1910,7 @@ function $r(e, i) {
|
|
|
1910
1910
|
M(e, "unexpected end of the stream within a double quoted scalar");
|
|
1911
1911
|
}
|
|
1912
1912
|
function Mr(e, i) {
|
|
1913
|
-
var t = !0, a, o, r, l = e.tag, n, c = e.anchor, d, f, p, b, _,
|
|
1913
|
+
var t = !0, a, o, r, l = e.tag, n, c = e.anchor, d, f, p, b, _, k = /* @__PURE__ */ Object.create(null), x, y, S, s;
|
|
1914
1914
|
if (s = e.input.charCodeAt(e.position), s === 91)
|
|
1915
1915
|
f = 93, _ = !1, n = [];
|
|
1916
1916
|
else if (s === 123)
|
|
@@ -1920,7 +1920,7 @@ function Mr(e, i) {
|
|
|
1920
1920
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = n), s = e.input.charCodeAt(++e.position); s !== 0; ) {
|
|
1921
1921
|
if (ne(e, !0, i), s = e.input.charCodeAt(e.position), s === f)
|
|
1922
1922
|
return e.position++, e.tag = l, e.anchor = c, e.kind = _ ? "mapping" : "sequence", e.result = n, !0;
|
|
1923
|
-
t ? s === 44 && M(e, "expected the node content, but found ','") : M(e, "missed comma between flow collection entries"), y = x = S = null, p = b = !1, s === 63 && (d = e.input.charCodeAt(e.position + 1), ge(d) && (p = b = !0, e.position++, ne(e, !0, i))), a = e.line, o = e.lineStart, r = e.position, Pe(e, i, We, !1, !0), y = e.tag, x = e.result, ne(e, !0, i), s = e.input.charCodeAt(e.position), (b || e.line === a) && s === 58 && (p = !0, s = e.input.charCodeAt(++e.position), ne(e, !0, i), Pe(e, i, We, !1, !0), S = e.result), _ ? Fe(e, n,
|
|
1923
|
+
t ? s === 44 && M(e, "expected the node content, but found ','") : M(e, "missed comma between flow collection entries"), y = x = S = null, p = b = !1, s === 63 && (d = e.input.charCodeAt(e.position + 1), ge(d) && (p = b = !0, e.position++, ne(e, !0, i))), a = e.line, o = e.lineStart, r = e.position, Pe(e, i, We, !1, !0), y = e.tag, x = e.result, ne(e, !0, i), s = e.input.charCodeAt(e.position), (b || e.line === a) && s === 58 && (p = !0, s = e.input.charCodeAt(++e.position), ne(e, !0, i), Pe(e, i, We, !1, !0), S = e.result), _ ? Fe(e, n, k, y, x, S, a, o, r) : p ? n.push(Fe(e, null, k, y, x, S, a, o, r)) : n.push(x), ne(e, !0, i), s = e.input.charCodeAt(e.position), s === 44 ? (t = !0, s = e.input.charCodeAt(++e.position)) : t = !1;
|
|
1924
1924
|
}
|
|
1925
1925
|
M(e, "unexpected end of the stream within a flow collection");
|
|
1926
1926
|
}
|
|
@@ -1988,12 +1988,12 @@ function Ut(e, i) {
|
|
|
1988
1988
|
return n ? (e.tag = a, e.anchor = o, e.kind = "sequence", e.result = r, !0) : !1;
|
|
1989
1989
|
}
|
|
1990
1990
|
function Er(e, i, t) {
|
|
1991
|
-
var a, o, r, l, n, c, d = e.tag, f = e.anchor, p = {}, b = /* @__PURE__ */ Object.create(null), _ = null,
|
|
1991
|
+
var a, o, r, l, n, c, d = e.tag, f = e.anchor, p = {}, b = /* @__PURE__ */ Object.create(null), _ = null, k = null, x = null, y = !1, S = !1, s;
|
|
1992
1992
|
if (e.firstTabInLine !== -1)
|
|
1993
1993
|
return !1;
|
|
1994
1994
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = p), s = e.input.charCodeAt(e.position); s !== 0; ) {
|
|
1995
1995
|
if (!y && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, M(e, "tab characters must not be used in indentation")), a = e.input.charCodeAt(e.position + 1), r = e.line, (s === 63 || s === 58) && ge(a))
|
|
1996
|
-
s === 63 ? (y && (Fe(e, p, b, _,
|
|
1996
|
+
s === 63 ? (y && (Fe(e, p, b, _, k, null, l, n, c), _ = k = x = null), S = !0, y = !0, o = !0) : y ? (y = !1, o = !0) : M(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, s = a;
|
|
1997
1997
|
else {
|
|
1998
1998
|
if (l = e.line, n = e.lineStart, c = e.position, !Pe(e, t, Ti, !1, !0))
|
|
1999
1999
|
break;
|
|
@@ -2001,7 +2001,7 @@ function Er(e, i, t) {
|
|
|
2001
2001
|
for (s = e.input.charCodeAt(e.position); Te(s); )
|
|
2002
2002
|
s = e.input.charCodeAt(++e.position);
|
|
2003
2003
|
if (s === 58)
|
|
2004
|
-
s = e.input.charCodeAt(++e.position), ge(s) || M(e, "a whitespace character is expected after the key-value separator within a block mapping"), y && (Fe(e, p, b, _,
|
|
2004
|
+
s = e.input.charCodeAt(++e.position), ge(s) || M(e, "a whitespace character is expected after the key-value separator within a block mapping"), y && (Fe(e, p, b, _, k, null, l, n, c), _ = k = x = null), S = !0, y = !1, o = !1, _ = e.tag, k = e.result;
|
|
2005
2005
|
else if (S)
|
|
2006
2006
|
M(e, "can not read an implicit mapping pair; a colon is missed");
|
|
2007
2007
|
else
|
|
@@ -2011,12 +2011,12 @@ function Er(e, i, t) {
|
|
|
2011
2011
|
else
|
|
2012
2012
|
return e.tag = d, e.anchor = f, !0;
|
|
2013
2013
|
}
|
|
2014
|
-
if ((e.line === r || e.lineIndent > i) && (y && (l = e.line, n = e.lineStart, c = e.position), Pe(e, i, Ze, !0, o) && (y ?
|
|
2014
|
+
if ((e.line === r || e.lineIndent > i) && (y && (l = e.line, n = e.lineStart, c = e.position), Pe(e, i, Ze, !0, o) && (y ? k = e.result : x = e.result), y || (Fe(e, p, b, _, k, x, l, n, c), _ = k = x = null), ne(e, !0, -1), s = e.input.charCodeAt(e.position)), (e.line === r || e.lineIndent > i) && s !== 0)
|
|
2015
2015
|
M(e, "bad indentation of a mapping entry");
|
|
2016
2016
|
else if (e.lineIndent < i)
|
|
2017
2017
|
break;
|
|
2018
2018
|
}
|
|
2019
|
-
return y && Fe(e, p, b, _,
|
|
2019
|
+
return y && Fe(e, p, b, _, k, null, l, n, c), S && (e.tag = d, e.anchor = f, e.kind = "mapping", e.result = p), S;
|
|
2020
2020
|
}
|
|
2021
2021
|
function Vr(e) {
|
|
2022
2022
|
var i, t = !1, a = !1, o, r, l;
|
|
@@ -2057,7 +2057,7 @@ function Fr(e) {
|
|
|
2057
2057
|
return e.position === i && M(e, "name of an alias node must contain at least one character"), t = e.input.slice(i, e.position), Ie.call(e.anchorMap, t) || M(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], ne(e, !0, -1), !0;
|
|
2058
2058
|
}
|
|
2059
2059
|
function Pe(e, i, t, a, o) {
|
|
2060
|
-
var r, l, n, c = 1, d = !1, f = !1, p, b, _,
|
|
2060
|
+
var r, l, n, c = 1, d = !1, f = !1, p, b, _, k, x, y;
|
|
2061
2061
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, r = l = n = Ze === t || $i === t, a && ne(e, !0, -1) && (d = !0, e.lineIndent > i ? c = 1 : e.lineIndent === i ? c = 0 : e.lineIndent < i && (c = -1)), c === 1)
|
|
2062
2062
|
for (; Vr(e) || jr(e); )
|
|
2063
2063
|
ne(e, !0, -1) ? (d = !0, n = r, e.lineIndent > i ? c = 1 : e.lineIndent === i ? c = 0 : e.lineIndent < i && (c = -1)) : n = !1;
|
|
@@ -2065,20 +2065,20 @@ function Pe(e, i, t, a, o) {
|
|
|
2065
2065
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2066
2066
|
else if (e.tag === "?") {
|
|
2067
2067
|
for (e.result !== null && e.kind !== "scalar" && M(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), p = 0, b = e.implicitTypes.length; p < b; p += 1)
|
|
2068
|
-
if (
|
|
2069
|
-
e.result =
|
|
2068
|
+
if (k = e.implicitTypes[p], k.resolve(e.result)) {
|
|
2069
|
+
e.result = k.construct(e.result), e.tag = k.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2070
2070
|
break;
|
|
2071
2071
|
}
|
|
2072
2072
|
} else if (e.tag !== "!") {
|
|
2073
2073
|
if (Ie.call(e.typeMap[e.kind || "fallback"], e.tag))
|
|
2074
|
-
|
|
2074
|
+
k = e.typeMap[e.kind || "fallback"][e.tag];
|
|
2075
2075
|
else
|
|
2076
|
-
for (
|
|
2076
|
+
for (k = null, _ = e.typeMap.multi[e.kind || "fallback"], p = 0, b = _.length; p < b; p += 1)
|
|
2077
2077
|
if (e.tag.slice(0, _[p].tag.length) === _[p].tag) {
|
|
2078
|
-
|
|
2078
|
+
k = _[p];
|
|
2079
2079
|
break;
|
|
2080
2080
|
}
|
|
2081
|
-
|
|
2081
|
+
k || M(e, "unknown tag !<" + e.tag + ">"), e.result !== null && k.kind !== e.kind && M(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + k.kind + '", not "' + e.kind + '"'), k.resolve(e.result, e.tag) ? (e.result = k.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : M(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
2082
2082
|
}
|
|
2083
2083
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || f;
|
|
2084
2084
|
}
|
|
@@ -2253,7 +2253,7 @@ function Di(e) {
|
|
|
2253
2253
|
}
|
|
2254
2254
|
var Gi = 1, mt = 2, Hi = 3, zi = 4, Ve = 5;
|
|
2255
2255
|
function fn(e, i, t, a, o, r, l, n) {
|
|
2256
|
-
var c, d = 0, f = null, p = !1, b = !1, _ = a !== -1,
|
|
2256
|
+
var c, d = 0, f = null, p = !1, b = !1, _ = a !== -1, k = -1, x = dn(Ne(e, 0)) && pn(Ne(e, e.length - 1));
|
|
2257
2257
|
if (i || l)
|
|
2258
2258
|
for (c = 0; c < e.length; d >= 65536 ? c += 2 : c++) {
|
|
2259
2259
|
if (d = Ne(e, c), !Ge(d))
|
|
@@ -2264,12 +2264,12 @@ function fn(e, i, t, a, o, r, l, n) {
|
|
|
2264
2264
|
for (c = 0; c < e.length; d >= 65536 ? c += 2 : c++) {
|
|
2265
2265
|
if (d = Ne(e, c), d === Re)
|
|
2266
2266
|
p = !0, _ && (b = b || // Foldable line = too long, and not more-indented.
|
|
2267
|
-
c -
|
|
2267
|
+
c - k - 1 > a && e[k + 1] !== " ", k = c);
|
|
2268
2268
|
else if (!Ge(d))
|
|
2269
2269
|
return Ve;
|
|
2270
2270
|
x = x && Gt(d, f, n), f = d;
|
|
2271
2271
|
}
|
|
2272
|
-
b = b || _ && c -
|
|
2272
|
+
b = b || _ && c - k - 1 > a && e[k + 1] !== " ";
|
|
2273
2273
|
}
|
|
2274
2274
|
return !p && !b ? x && !l && !o(e) ? Gi : r === De ? Ve : mt : t > 9 && Di(e) ? Ve : l ? r === De ? Ve : mt : b ? zi : Hi;
|
|
2275
2275
|
}
|
|
@@ -2561,7 +2561,7 @@ const Nn = {
|
|
|
2561
2561
|
], 10, Kn))), 128))
|
|
2562
2562
|
])) : q("", !0),
|
|
2563
2563
|
e.format === "json" ? (h(), A("div", Un, [
|
|
2564
|
-
|
|
2564
|
+
C(d, {
|
|
2565
2565
|
id: "config-card-codeblock",
|
|
2566
2566
|
code: r.value,
|
|
2567
2567
|
language: "json",
|
|
@@ -2569,7 +2569,7 @@ const Nn = {
|
|
|
2569
2569
|
}, null, 8, ["code"])
|
|
2570
2570
|
])) : q("", !0),
|
|
2571
2571
|
e.format === "yaml" ? (h(), A("div", Rn, [
|
|
2572
|
-
|
|
2572
|
+
C(d, {
|
|
2573
2573
|
id: "config-card-codeblock",
|
|
2574
2574
|
code: l.value,
|
|
2575
2575
|
language: "yaml",
|
|
@@ -2820,7 +2820,7 @@ const Nn = {
|
|
|
2820
2820
|
// the last property displayed
|
|
2821
2821
|
section: fe.Basic
|
|
2822
2822
|
}
|
|
2823
|
-
}, _ = L(!1),
|
|
2823
|
+
}, _ = L(!1), k = L(!1), x = L(""), y = L(), S = $(() => {
|
|
2824
2824
|
var T, U, B;
|
|
2825
2825
|
if (!y.value)
|
|
2826
2826
|
return [];
|
|
@@ -2890,7 +2890,7 @@ const Nn = {
|
|
|
2890
2890
|
return we(_, (T) => {
|
|
2891
2891
|
i("loading", T);
|
|
2892
2892
|
}, { immediate: !0 }), gt(async () => {
|
|
2893
|
-
|
|
2893
|
+
k.value = !1, _.value = !0;
|
|
2894
2894
|
try {
|
|
2895
2895
|
const { data: T } = await c.get(ie.value);
|
|
2896
2896
|
if (a.dataKey)
|
|
@@ -2905,7 +2905,7 @@ const Nn = {
|
|
|
2905
2905
|
}), i("fetch:success", T);
|
|
2906
2906
|
} catch (T) {
|
|
2907
2907
|
const U = l(T);
|
|
2908
|
-
x.value = U.startsWith("code") ? r("baseConfigCard.errors.load") : U,
|
|
2908
|
+
x.value = U.startsWith("code") ? r("baseConfigCard.errors.load") : U, k.value = !0, i("fetch:error", T);
|
|
2909
2909
|
} finally {
|
|
2910
2910
|
_.value = !1;
|
|
2911
2911
|
}
|
|
@@ -2944,14 +2944,14 @@ const Nn = {
|
|
|
2944
2944
|
rel: "noopener",
|
|
2945
2945
|
target: "_blank"
|
|
2946
2946
|
}, [
|
|
2947
|
-
|
|
2947
|
+
C(m(Qn), { size: m(ao) }, null, 8, ["size"])
|
|
2948
2948
|
], 8, tl)
|
|
2949
2949
|
]),
|
|
2950
2950
|
_: 1
|
|
2951
2951
|
})) : q("", !0),
|
|
2952
2952
|
e.config.jsonYamlEnabled ? q("", !0) : (h(), K(H, { key: 3 }, {
|
|
2953
2953
|
default: v(({ copyToClipboard: Z }) => [
|
|
2954
|
-
!_.value && !
|
|
2954
|
+
!_.value && !k.value ? (h(), K(X, {
|
|
2955
2955
|
key: 0,
|
|
2956
2956
|
appearance: "btn-link",
|
|
2957
2957
|
"data-testid": "json-copy-button",
|
|
@@ -2973,7 +2973,7 @@ const Nn = {
|
|
|
2973
2973
|
"data-testid": "config-card-loader",
|
|
2974
2974
|
"table-columns": 2,
|
|
2975
2975
|
type: "table"
|
|
2976
|
-
})) :
|
|
2976
|
+
})) : k.value ? (h(), K(z, {
|
|
2977
2977
|
key: 1,
|
|
2978
2978
|
"data-testid": "config-card-fetch-error",
|
|
2979
2979
|
"is-error": ""
|
|
@@ -2984,7 +2984,7 @@ const Nn = {
|
|
|
2984
2984
|
_: 1
|
|
2985
2985
|
})) : q("", !0),
|
|
2986
2986
|
e.config.jsonYamlEnabled ? (h(), A("div", il, [
|
|
2987
|
-
|
|
2987
|
+
C(Gn, {
|
|
2988
2988
|
format: f.value,
|
|
2989
2989
|
"prop-list-types": R.value,
|
|
2990
2990
|
"property-collections": I.value,
|
|
@@ -3111,8 +3111,8 @@ const Nn = {
|
|
|
3111
3111
|
let s = `${a.config.apiBaseUrl}${a.fetchUrl}`;
|
|
3112
3112
|
return a.config.app === "konnect" ? s = s.replace(/{controlPlaneId}/gi, ((y = a.config) == null ? void 0 : y.controlPlaneId) || "") : a.config.app === "kongManager" && (s = s.replace(/\/{workspace}/gi, (S = a.config) != null && S.workspace ? `/${a.config.workspace}` : "")), s = s.replace(/{id}/gi, a.editId), s;
|
|
3113
3113
|
}), _ = () => {
|
|
3114
|
-
a.config.cancelRoute ? o.push(a.config.cancelRoute) :
|
|
3115
|
-
},
|
|
3114
|
+
a.config.cancelRoute ? o.push(a.config.cancelRoute) : k();
|
|
3115
|
+
}, k = () => {
|
|
3116
3116
|
i("cancel");
|
|
3117
3117
|
}, x = () => {
|
|
3118
3118
|
p.value || i("submit");
|
|
@@ -3152,7 +3152,7 @@ const Nn = {
|
|
|
3152
3152
|
}, 8, ["cta-text"])) : (h(), A("form", {
|
|
3153
3153
|
key: 2,
|
|
3154
3154
|
"data-testid": "form-content",
|
|
3155
|
-
onReset: Le(
|
|
3155
|
+
onReset: Le(k, ["prevent"]),
|
|
3156
3156
|
onSubmit: Le(x, ["prevent"])
|
|
3157
3157
|
}, [
|
|
3158
3158
|
Q(y.$slots, "default", {}, void 0, !0),
|
|
@@ -3164,7 +3164,7 @@ const Nn = {
|
|
|
3164
3164
|
}, null, 8, ["alert-message"])) : q("", !0),
|
|
3165
3165
|
V("div", cl, [
|
|
3166
3166
|
Q(y.$slots, "form-actions", {}, () => [
|
|
3167
|
-
|
|
3167
|
+
C(N, {
|
|
3168
3168
|
appearance: "outline",
|
|
3169
3169
|
"data-testid": "form-cancel",
|
|
3170
3170
|
disabled: e.isReadonly,
|
|
@@ -3175,7 +3175,7 @@ const Nn = {
|
|
|
3175
3175
|
]),
|
|
3176
3176
|
_: 1
|
|
3177
3177
|
}, 8, ["disabled"]),
|
|
3178
|
-
|
|
3178
|
+
C(N, {
|
|
3179
3179
|
appearance: "primary",
|
|
3180
3180
|
"data-testid": "form-submit",
|
|
3181
3181
|
disabled: p.value,
|
|
@@ -3238,7 +3238,7 @@ const Nn = {
|
|
|
3238
3238
|
}
|
|
3239
3239
|
},
|
|
3240
3240
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3241
|
-
),
|
|
3241
|
+
), k = $(() => o.value ? d.value > f.value : !1);
|
|
3242
3242
|
return Xt(() => {
|
|
3243
3243
|
n();
|
|
3244
3244
|
}), ea(() => {
|
|
@@ -3251,8 +3251,8 @@ const Nn = {
|
|
|
3251
3251
|
class: "content-wrapper"
|
|
3252
3252
|
}, [
|
|
3253
3253
|
o.value ? (h(), A("span", pl, [
|
|
3254
|
-
|
|
3255
|
-
disabled: !
|
|
3254
|
+
C(S, {
|
|
3255
|
+
disabled: !k.value,
|
|
3256
3256
|
label: p.value,
|
|
3257
3257
|
"max-width": "300",
|
|
3258
3258
|
placement: "bottomStart"
|
|
@@ -3409,7 +3409,7 @@ const Nn = {
|
|
|
3409
3409
|
i("clear-search-input");
|
|
3410
3410
|
}, _ = (I, R) => {
|
|
3411
3411
|
i("click:row", R);
|
|
3412
|
-
},
|
|
3412
|
+
}, k = (I) => {
|
|
3413
3413
|
i("sort", I);
|
|
3414
3414
|
}, { setTablePreferences: x, getTablePreferences: y } = ha(), S = $(() => {
|
|
3415
3415
|
const I = y(t.preferencesStorageKey);
|
|
@@ -3427,7 +3427,7 @@ const Nn = {
|
|
|
3427
3427
|
title: e.title
|
|
3428
3428
|
}, {
|
|
3429
3429
|
body: v(() => [
|
|
3430
|
-
|
|
3430
|
+
C(T, {
|
|
3431
3431
|
ref_key: "tableRefs",
|
|
3432
3432
|
ref: c,
|
|
3433
3433
|
"cache-identifier": o.value,
|
|
@@ -3455,7 +3455,7 @@ const Nn = {
|
|
|
3455
3455
|
"search-input": e.query,
|
|
3456
3456
|
onKtableEmptyStateCtaClicked: p,
|
|
3457
3457
|
"onRow:click": _,
|
|
3458
|
-
onSort: R[0] || (R[0] = (B) =>
|
|
3458
|
+
onSort: R[0] || (R[0] = (B) => k(B)),
|
|
3459
3459
|
"onUpdate:tablePreferences": s
|
|
3460
3460
|
}, Ae({
|
|
3461
3461
|
toolbar: v(({ state: B }) => [
|
|
@@ -3473,7 +3473,7 @@ const Nn = {
|
|
|
3473
3473
|
class: "actions-container",
|
|
3474
3474
|
"data-testid": B.name
|
|
3475
3475
|
}, [
|
|
3476
|
-
|
|
3476
|
+
C(J, {
|
|
3477
3477
|
"kpop-attributes": { placement: "bottomEnd" },
|
|
3478
3478
|
width: e.dropdownMenuWidth
|
|
3479
3479
|
}, {
|
|
@@ -3485,13 +3485,13 @@ const Nn = {
|
|
|
3485
3485
|
}, void 0, !0)
|
|
3486
3486
|
]),
|
|
3487
3487
|
default: v(() => [
|
|
3488
|
-
|
|
3488
|
+
C(ie, {
|
|
3489
3489
|
class: "actions-trigger",
|
|
3490
3490
|
"data-testid": "overflow-actions-button",
|
|
3491
3491
|
size: "small"
|
|
3492
3492
|
}, {
|
|
3493
3493
|
icon: v(() => [
|
|
3494
|
-
|
|
3494
|
+
C(N, {
|
|
3495
3495
|
color: m(to),
|
|
3496
3496
|
icon: "more",
|
|
3497
3497
|
size: "16"
|
|
@@ -3509,7 +3509,7 @@ const Nn = {
|
|
|
3509
3509
|
ve(e.tableHeaders, (B, G) => ({
|
|
3510
3510
|
name: G,
|
|
3511
3511
|
fn: v(({ row: X, rowKey: H, rowValue: W }) => [
|
|
3512
|
-
|
|
3512
|
+
C(ml, {
|
|
3513
3513
|
"key-name": String(G),
|
|
3514
3514
|
"row-el": d(X)
|
|
3515
3515
|
}, {
|
|
@@ -3597,14 +3597,14 @@ const Nn = {
|
|
|
3597
3597
|
}, {
|
|
3598
3598
|
"body-content": v(() => [
|
|
3599
3599
|
e.error ? (h(), A("div", _l, [
|
|
3600
|
-
|
|
3600
|
+
C(d, { appearance: "danger" }, {
|
|
3601
3601
|
alertMessage: v(() => [
|
|
3602
3602
|
D(O(e.error), 1)
|
|
3603
3603
|
]),
|
|
3604
3604
|
_: 1
|
|
3605
3605
|
})
|
|
3606
3606
|
])) : q("", !0),
|
|
3607
|
-
|
|
3607
|
+
C(m(a), {
|
|
3608
3608
|
class: "message",
|
|
3609
3609
|
keypath: t.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
3610
3610
|
tag: "p"
|
|
@@ -3729,7 +3729,7 @@ const Nn = {
|
|
|
3729
3729
|
...r.value,
|
|
3730
3730
|
[y]: ""
|
|
3731
3731
|
}, x();
|
|
3732
|
-
},
|
|
3732
|
+
}, k = () => {
|
|
3733
3733
|
r.value = {}, x(!0);
|
|
3734
3734
|
}, x = (y = !1) => {
|
|
3735
3735
|
const S = Object.keys(r.value).reduce((s, I) => (r.value[I] && (s[I] = `${r.value[I]}`), s), {});
|
|
@@ -3747,11 +3747,11 @@ const Nn = {
|
|
|
3747
3747
|
"onUpdate:modelValue": d
|
|
3748
3748
|
}, {
|
|
3749
3749
|
icon: v(() => [
|
|
3750
|
-
|
|
3750
|
+
C($l)
|
|
3751
3751
|
]),
|
|
3752
3752
|
_: 1
|
|
3753
3753
|
}, 8, ["model-value", "placeholder"])) : (h(), A("div", Ml, [
|
|
3754
|
-
|
|
3754
|
+
C(I, {
|
|
3755
3755
|
appearance: "btn-link",
|
|
3756
3756
|
"data-testid": "filter-button",
|
|
3757
3757
|
icon: "filter",
|
|
@@ -3768,7 +3768,7 @@ const Nn = {
|
|
|
3768
3768
|
}, null, 512), [
|
|
3769
3769
|
[Ye, o.value]
|
|
3770
3770
|
]),
|
|
3771
|
-
ze(
|
|
3771
|
+
ze(C(ie, { class: "kong-ui-entity-filter-menu" }, {
|
|
3772
3772
|
body: v(() => [
|
|
3773
3773
|
(h(!0), A(he, null, ve(n.value, (J, T) => (h(), K(N, {
|
|
3774
3774
|
key: J.value,
|
|
@@ -3812,7 +3812,7 @@ const Nn = {
|
|
|
3812
3812
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
3813
3813
|
]),
|
|
3814
3814
|
V("div", Fl, [
|
|
3815
|
-
|
|
3815
|
+
C(I, {
|
|
3816
3816
|
appearance: "btn-link",
|
|
3817
3817
|
"data-testid": "apply-filter",
|
|
3818
3818
|
size: "small",
|
|
@@ -3823,7 +3823,7 @@ const Nn = {
|
|
|
3823
3823
|
]),
|
|
3824
3824
|
_: 1
|
|
3825
3825
|
}),
|
|
3826
|
-
|
|
3826
|
+
C(I, {
|
|
3827
3827
|
appearance: "btn-link",
|
|
3828
3828
|
"data-testid": "clear-filter",
|
|
3829
3829
|
size: "small",
|
|
@@ -3841,7 +3841,7 @@ const Nn = {
|
|
|
3841
3841
|
}, 1032, ["data-testid", "last-menu-item"]))), 128))
|
|
3842
3842
|
]),
|
|
3843
3843
|
actionButton: v(() => [
|
|
3844
|
-
|
|
3844
|
+
C(I, { onClick: k }, {
|
|
3845
3845
|
default: v(() => [
|
|
3846
3846
|
D(O(m(a)("filter.clearAllButtonText")), 1)
|
|
3847
3847
|
]),
|
|
@@ -3906,7 +3906,7 @@ const Nn = {
|
|
|
3906
3906
|
return (f, p) => {
|
|
3907
3907
|
const b = j("KPrompt");
|
|
3908
3908
|
return h(), K(Wi, { to: "body" }, [
|
|
3909
|
-
|
|
3909
|
+
C(b, {
|
|
3910
3910
|
"action-button-text": n.value,
|
|
3911
3911
|
"action-pending": r.value,
|
|
3912
3912
|
"data-testid": `${e.entityType}-${e.entityId}-toggle-prompt`,
|
|
@@ -3917,7 +3917,7 @@ const Nn = {
|
|
|
3917
3917
|
onProceed: d
|
|
3918
3918
|
}, {
|
|
3919
3919
|
"body-content": v(() => [
|
|
3920
|
-
|
|
3920
|
+
C(m(o), {
|
|
3921
3921
|
keypath: `toggleModal.${t.action}.message`,
|
|
3922
3922
|
scope: "global"
|
|
3923
3923
|
}, {
|
|
@@ -4094,7 +4094,7 @@ const Wl = { class: "kong-ui-entities-gateway-services-list" }, Zl = { key: 1 },
|
|
|
4094
4094
|
fields: { name: u, enabled: g, protocol: P, host: re, port: oe, path: ce },
|
|
4095
4095
|
schema: t.config.filterSchema
|
|
4096
4096
|
};
|
|
4097
|
-
}), { fetcher:
|
|
4097
|
+
}), { fetcher: k, fetcherState: x } = zl(t.config, f.value), y = () => {
|
|
4098
4098
|
b.value = "";
|
|
4099
4099
|
}, S = () => {
|
|
4100
4100
|
l.value++;
|
|
@@ -4195,16 +4195,16 @@ const Wl = { class: "kong-ui-entities-gateway-services-list" }, Zl = { key: 1 },
|
|
|
4195
4195
|
return gt(async () => {
|
|
4196
4196
|
Ce.value = await t.canCreate();
|
|
4197
4197
|
}), (F, u) => {
|
|
4198
|
-
const g = j("KButton"), P = j("KInputSwitch"), re = j("KBadge"), oe = j("KTruncate"), ce = j("KDropdownItem"),
|
|
4198
|
+
const g = j("KButton"), P = j("KInputSwitch"), re = j("KBadge"), oe = j("KTruncate"), ce = j("KDropdownItem"), w = j("KClipboardProvider");
|
|
4199
4199
|
return h(), A("div", Wl, [
|
|
4200
|
-
|
|
4200
|
+
C(m(bl), {
|
|
4201
4201
|
"cache-identifier": e.cacheIdentifier,
|
|
4202
4202
|
"disable-pagination-page-jump": "",
|
|
4203
4203
|
"disable-sorting": n.value,
|
|
4204
4204
|
"empty-state-options": I.value,
|
|
4205
4205
|
"enable-entity-actions": "",
|
|
4206
4206
|
"error-message": s.value,
|
|
4207
|
-
fetcher: m(
|
|
4207
|
+
fetcher: m(k),
|
|
4208
4208
|
"fetcher-cache-key": l.value,
|
|
4209
4209
|
"pagination-type": "offset",
|
|
4210
4210
|
"preferences-storage-key": "kong-ui-entities-gateway-services-list",
|
|
@@ -4215,18 +4215,18 @@ const Wl = { class: "kong-ui-entities-gateway-services-list" }, Zl = { key: 1 },
|
|
|
4215
4215
|
onSort: S
|
|
4216
4216
|
}, {
|
|
4217
4217
|
"toolbar-filter": v(() => [
|
|
4218
|
-
|
|
4218
|
+
C(m(Pl), {
|
|
4219
4219
|
modelValue: b.value,
|
|
4220
4220
|
"onUpdate:modelValue": u[0] || (u[0] = (Y) => b.value = Y),
|
|
4221
4221
|
config: _.value
|
|
4222
4222
|
}, null, 8, ["modelValue", "config"])
|
|
4223
4223
|
]),
|
|
4224
4224
|
"toolbar-button": v(() => [
|
|
4225
|
-
|
|
4225
|
+
C(m(Be), {
|
|
4226
4226
|
"auth-function": () => e.canCreate()
|
|
4227
4227
|
}, {
|
|
4228
4228
|
default: v(() => [
|
|
4229
|
-
|
|
4229
|
+
C(g, {
|
|
4230
4230
|
appearance: "primary",
|
|
4231
4231
|
icon: "plus",
|
|
4232
4232
|
to: e.config.createRoute
|
|
@@ -4244,7 +4244,7 @@ const Wl = { class: "kong-ui-entities-gateway-services-list" }, Zl = { key: 1 },
|
|
|
4244
4244
|
V("b", null, O(Y ?? "-"), 1)
|
|
4245
4245
|
]),
|
|
4246
4246
|
enabled: v(({ row: Y }) => [
|
|
4247
|
-
|
|
4247
|
+
C(m(Be), {
|
|
4248
4248
|
"auth-function": () => e.canEdit(Y),
|
|
4249
4249
|
"force-show": ""
|
|
4250
4250
|
}, {
|
|
@@ -4253,7 +4253,7 @@ const Wl = { class: "kong-ui-entities-gateway-services-list" }, Zl = { key: 1 },
|
|
|
4253
4253
|
onClick: u[1] || (u[1] = Le(() => {
|
|
4254
4254
|
}, ["stop"]))
|
|
4255
4255
|
}, [
|
|
4256
|
-
|
|
4256
|
+
C(P, {
|
|
4257
4257
|
modelValue: Y.enabled,
|
|
4258
4258
|
"onUpdate:modelValue": (He) => Y.enabled = He,
|
|
4259
4259
|
"data-testid": `row-${Y.id}-toggle-input`,
|
|
@@ -4284,9 +4284,9 @@ const Wl = { class: "kong-ui-entities-gateway-services-list" }, Zl = { key: 1 },
|
|
|
4284
4284
|
}, 1024)) : (h(), A("span", Zl, "-"))
|
|
4285
4285
|
]),
|
|
4286
4286
|
actions: v(({ row: Y }) => [
|
|
4287
|
-
|
|
4287
|
+
C(w, null, {
|
|
4288
4288
|
default: v(({ copyToClipboard: E }) => [
|
|
4289
|
-
|
|
4289
|
+
C(ce, {
|
|
4290
4290
|
"data-testid": "action-entity-copy-id",
|
|
4291
4291
|
onClick: (He) => B(Y, E)
|
|
4292
4292
|
}, {
|
|
@@ -4298,9 +4298,9 @@ const Wl = { class: "kong-ui-entities-gateway-services-list" }, Zl = { key: 1 },
|
|
|
4298
4298
|
]),
|
|
4299
4299
|
_: 2
|
|
4300
4300
|
}, 1024),
|
|
4301
|
-
|
|
4301
|
+
C(w, null, {
|
|
4302
4302
|
default: v(({ copyToClipboard: E }) => [
|
|
4303
|
-
|
|
4303
|
+
C(ce, {
|
|
4304
4304
|
"data-testid": "action-entity-copy-json",
|
|
4305
4305
|
onClick: (He) => G(Y, E)
|
|
4306
4306
|
}, {
|
|
@@ -4312,11 +4312,11 @@ const Wl = { class: "kong-ui-entities-gateway-services-list" }, Zl = { key: 1 },
|
|
|
4312
4312
|
]),
|
|
4313
4313
|
_: 2
|
|
4314
4314
|
}, 1024),
|
|
4315
|
-
|
|
4315
|
+
C(m(Be), {
|
|
4316
4316
|
"auth-function": () => e.canRetrieve(Y)
|
|
4317
4317
|
}, {
|
|
4318
4318
|
default: v(() => [
|
|
4319
|
-
|
|
4319
|
+
C(ce, {
|
|
4320
4320
|
"data-testid": "action-entity-view",
|
|
4321
4321
|
"has-divider": "",
|
|
4322
4322
|
item: H(Y.id)
|
|
@@ -4324,22 +4324,22 @@ const Wl = { class: "kong-ui-entities-gateway-services-list" }, Zl = { key: 1 },
|
|
|
4324
4324
|
]),
|
|
4325
4325
|
_: 2
|
|
4326
4326
|
}, 1032, ["auth-function"]),
|
|
4327
|
-
|
|
4327
|
+
C(m(Be), {
|
|
4328
4328
|
"auth-function": () => e.canEdit(Y)
|
|
4329
4329
|
}, {
|
|
4330
4330
|
default: v(() => [
|
|
4331
|
-
|
|
4331
|
+
C(ce, {
|
|
4332
4332
|
"data-testid": "action-entity-edit",
|
|
4333
4333
|
item: W(Y.id)
|
|
4334
4334
|
}, null, 8, ["item"])
|
|
4335
4335
|
]),
|
|
4336
4336
|
_: 2
|
|
4337
4337
|
}, 1032, ["auth-function"]),
|
|
4338
|
-
|
|
4338
|
+
C(m(Be), {
|
|
4339
4339
|
"auth-function": () => e.canDelete(Y)
|
|
4340
4340
|
}, {
|
|
4341
4341
|
default: v(() => [
|
|
4342
|
-
|
|
4342
|
+
C(ce, {
|
|
4343
4343
|
"data-testid": "action-entity-delete",
|
|
4344
4344
|
"has-divider": "",
|
|
4345
4345
|
"is-dangerous": "",
|
|
@@ -4356,7 +4356,7 @@ const Wl = { class: "kong-ui-entities-gateway-services-list" }, Zl = { key: 1 },
|
|
|
4356
4356
|
]),
|
|
4357
4357
|
_: 1
|
|
4358
4358
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers"]),
|
|
4359
|
-
|
|
4359
|
+
C(m(Bl), {
|
|
4360
4360
|
action: ie.value.action,
|
|
4361
4361
|
"entity-id": ie.value.id,
|
|
4362
4362
|
"entity-name": ie.value.name,
|
|
@@ -4366,7 +4366,7 @@ const Wl = { class: "kong-ui-entities-gateway-services-list" }, Zl = { key: 1 },
|
|
|
4366
4366
|
onCanceled: T,
|
|
4367
4367
|
onProceed: T
|
|
4368
4368
|
}, null, 8, ["action", "entity-id", "entity-name", "entity-type", "visible"]),
|
|
4369
|
-
|
|
4369
|
+
C(m(Cl), {
|
|
4370
4370
|
"action-pending": Z.value,
|
|
4371
4371
|
description: m(a)("actions.delete.description"),
|
|
4372
4372
|
"entity-name": z.value && (z.value.name || z.value.id),
|
|
@@ -4428,7 +4428,7 @@ const Ji = (e, i) => {
|
|
|
4428
4428
|
var F;
|
|
4429
4429
|
const a = e, o = L(!0), r = vt(), { i18nT: l, i18n: { t: n } } = Je.useI18n(), { getMessageFromError: c } = Hl(), { axiosInstance: d } = Yi({
|
|
4430
4430
|
headers: (F = a.config) == null ? void 0 : F.requestHeaders
|
|
4431
|
-
}), f = $(() => Ke.form[a.config.app].edit), p = $(() => a.gatewayServiceId ? ut.Edit : ut.Create), b = L(!1), _ = $(() => !!a.gatewayServiceId),
|
|
4431
|
+
}), f = $(() => Ke.form[a.config.app].edit), p = $(() => a.gatewayServiceId ? ut.Edit : ut.Create), b = L(!1), _ = $(() => !!a.gatewayServiceId), k = L(_.value ? "protocol" : "url"), x = Je.usePortFromProtocol(), y = L(""), S = $(() => !!y.value), s = Tt({
|
|
4432
4432
|
fields: {
|
|
4433
4433
|
name: "",
|
|
4434
4434
|
protocol: "http",
|
|
@@ -4528,7 +4528,7 @@ const Ji = (e, i) => {
|
|
|
4528
4528
|
}, T = (u) => u ? parseFloat(u) : 0, U = () => {
|
|
4529
4529
|
o.value = !0, s.errorMessage = "", s.fields.host = I.host, s.fields.path = I.path, s.fields.port = I.port, s.fields.protocol = I.protocol, s.fields.url = I.url, s.fields.retries = I.retries, s.fields.connect_timeout = I.connect_timeout, s.fields.write_timeout = I.write_timeout, s.fields.read_timeout = I.read_timeout, s.fields.client_certificate = I.client_certificate, s.fields.ca_certificates = I.ca_certificates, s.fields.tls_verify_enabled = I.tls_verify_enabled, s.fields.tls_verify_value = I.tls_verify_value;
|
|
4530
4530
|
}, B = () => {
|
|
4531
|
-
if (s.fields.url &&
|
|
4531
|
+
if (s.fields.url && k.value === "url")
|
|
4532
4532
|
try {
|
|
4533
4533
|
const u = new URL(s.fields.url);
|
|
4534
4534
|
s.errorMessage = "", s.fields.protocol = u.protocol.slice(0, -1), s.fields.host = u.hostname, s.fields.path = u.pathname;
|
|
@@ -4540,25 +4540,25 @@ const Ji = (e, i) => {
|
|
|
4540
4540
|
else
|
|
4541
4541
|
t("url-valid:success"), s.errorMessage = "";
|
|
4542
4542
|
}, G = $(() => !["tcp", "tls", "tls_passthrough", "grpc", "grpcs", "udp"].includes(s.fields.protocol)), X = $(() => {
|
|
4543
|
-
if (
|
|
4543
|
+
if (k.value === "url")
|
|
4544
4544
|
return !0;
|
|
4545
4545
|
const u = ["https", "wss", "tls"].includes(s.fields.protocol);
|
|
4546
|
-
return
|
|
4546
|
+
return k.value === "protocol" && u;
|
|
4547
4547
|
}), H = $(() => {
|
|
4548
|
-
if (
|
|
4548
|
+
if (k.value === "url")
|
|
4549
4549
|
return !0;
|
|
4550
4550
|
const u = ["https", "tls"].includes(s.fields.protocol);
|
|
4551
|
-
return
|
|
4551
|
+
return k.value === "protocol" && u;
|
|
4552
4552
|
}), W = $(() => {
|
|
4553
|
-
if (
|
|
4553
|
+
if (k.value === "url")
|
|
4554
4554
|
return !0;
|
|
4555
4555
|
const u = ["https", "wss", "tls"].includes(s.fields.protocol);
|
|
4556
|
-
return
|
|
4556
|
+
return k.value === "protocol" && u;
|
|
4557
4557
|
}), z = (u) => new RegExp("^[0-9a-zA-Z.\\-_~]*$").test(u) ? "" : n("errors.validationNameError"), ae = (u) => {
|
|
4558
4558
|
y.value = z(u);
|
|
4559
|
-
}, Z = $(() => _.value && JSON.stringify(s.fields) !== JSON.stringify(I) ||
|
|
4559
|
+
}, Z = $(() => _.value && JSON.stringify(s.fields) !== JSON.stringify(I) || k.value === "url" && !!s.fields.url || k.value === "protocol" && !!s.fields.host), ee = (u) => {
|
|
4560
4560
|
var g, P, re;
|
|
4561
|
-
s.fields.name = (u == null ? void 0 : u.name) || "", s.fields.tags = ((g = u == null ? void 0 : u.tags) == null ? void 0 : g.join(",")) || "", s.fields.protocol = (u == null ? void 0 : u.protocol) || "http", s.fields.path = (u == null ? void 0 : u.path) || "", s.fields.read_timeout = (
|
|
4561
|
+
s.fields.name = (u == null ? void 0 : u.name) || "", s.fields.tags = ((g = u == null ? void 0 : u.tags) == null ? void 0 : g.join(",")) || "", s.fields.protocol = (u == null ? void 0 : u.protocol) || "http", s.fields.path = (u == null ? void 0 : u.path) || "", s.fields.read_timeout = u != null && u.read_timeout || (u == null ? void 0 : u.read_timeout) === 0 ? u == null ? void 0 : u.read_timeout : 6e4, s.fields.retries = u != null && u.retries || (u == null ? void 0 : u.retries) === 0 ? u == null ? void 0 : u.retries : 5, s.fields.host = (u == null ? void 0 : u.host) || "", s.fields.connect_timeout = u != null && u.connect_timeout || (u == null ? void 0 : u.connect_timeout) === 0 ? u == null ? void 0 : u.connect_timeout : 6e4, s.fields.tls_verify_enabled = (u == null ? void 0 : u.tls_verify) !== "" && (u == null ? void 0 : u.tls_verify) !== null && (u == null ? void 0 : u.tls_verify) !== void 0, s.fields.tls_verify_value = u != null && u.tls_verify ? u == null ? void 0 : u.tls_verify : !1, s.fields.ca_certificates = ((P = u == null ? void 0 : u.ca_certificates) == null ? void 0 : P.join(",")) || "", s.fields.client_certificate = ((re = u == null ? void 0 : u.client_certificate) == null ? void 0 : re.id) || "", s.fields.write_timeout = u != null && u.write_timeout || (u == null ? void 0 : u.write_timeout) === 0 ? u == null ? void 0 : u.write_timeout : 6e4, s.fields.port = u != null && u.port || (u == null ? void 0 : u.port) === 0 ? u == null ? void 0 : u.port : 80, Object.assign(I, s.fields);
|
|
4562
4562
|
}, de = () => {
|
|
4563
4563
|
r.push(a.config.cancelRoute);
|
|
4564
4564
|
}, at = $(() => {
|
|
@@ -4591,7 +4591,7 @@ const Ji = (e, i) => {
|
|
|
4591
4591
|
port: s.fields.port,
|
|
4592
4592
|
url: s.fields.url
|
|
4593
4593
|
};
|
|
4594
|
-
return s.fields.client_certificate && ["https", "wss", "tls"].includes(s.fields.protocol) && (u.client_certificate = { id: s.fields.client_certificate }), s.fields.tls_verify_enabled && ["https", "wss", "tls"].includes(s.fields.protocol) && (u.tls_verify = s.fields.tls_verify_value), G.value || (u.path = null), p.value === "create" ?
|
|
4594
|
+
return s.fields.client_certificate && ["https", "wss", "tls"].includes(s.fields.protocol) && (u.client_certificate = { id: s.fields.client_certificate }), s.fields.tls_verify_enabled && ["https", "wss", "tls"].includes(s.fields.protocol) && (u.tls_verify = s.fields.tls_verify_value), G.value || (u.path = null), p.value === "create" ? k.value === "url" ? (delete u.protocol, delete u.host, delete u.path, a.config.app === "konnect" && delete u.port) : delete u.url : p.value === "edit" && delete u.url, u;
|
|
4595
4595
|
}, Oe = async () => {
|
|
4596
4596
|
var u, g, P, re;
|
|
4597
4597
|
try {
|
|
@@ -4599,8 +4599,8 @@ const Ji = (e, i) => {
|
|
|
4599
4599
|
const oe = Ce();
|
|
4600
4600
|
let ce;
|
|
4601
4601
|
if (ot(oe), await d.post(at.value, oe), p.value === "create" ? ce = await d.post(Me.value, oe) : p.value === "edit" && (ce = ((u = a.config) == null ? void 0 : u.app) === "konnect" ? await d.put(Me.value, oe) : await d.patch(Me.value, oe)), ce) {
|
|
4602
|
-
const { data:
|
|
4603
|
-
s.fields.name = (
|
|
4602
|
+
const { data: w } = ce;
|
|
4603
|
+
s.fields.name = (w == null ? void 0 : w.name) || "", s.fields.port = w.port || x.getPortFromProtocol(w.protocol), s.fields.protocol = (w == null ? void 0 : w.protocol) || "http", s.fields.host = (w == null ? void 0 : w.host) || "", s.fields.path = (w == null ? void 0 : w.path) || "", s.fields.url = (w == null ? void 0 : w.url) || "", s.fields.retries = w != null && w.retries || (w == null ? void 0 : w.retries) === 0 ? w == null ? void 0 : w.retries : 5, s.fields.connect_timeout = w != null && w.connect_timeout || (w == null ? void 0 : w.connect_timeout) === 0 ? w == null ? void 0 : w.connect_timeout : 6e4, s.fields.write_timeout = w != null && w.write_timeout || (w == null ? void 0 : w.write_timeout) === 0 ? w == null ? void 0 : w.write_timeout : 6e4, s.fields.read_timeout = w != null && w.read_timeout || (w == null ? void 0 : w.read_timeout) === 0 ? w == null ? void 0 : w.read_timeout : 6e4, s.fields.client_certificate = ((g = w == null ? void 0 : w.client_certificate) == null ? void 0 : g.id) || "", s.fields.ca_certificates = (P = w == null ? void 0 : w.ca_certificates) != null && P.length ? w == null ? void 0 : w.ca_certificates.join(",") : "", s.fields.tls_verify_enabled = (w == null ? void 0 : w.tls_verify) !== "" && (w == null ? void 0 : w.tls_verify) !== null && (w == null ? void 0 : w.tls_verify) !== void 0, s.fields.tls_verify_value = s.fields.tls_verify_enabled && (w == null ? void 0 : w.tls_verify), s.fields.tags = (re = w == null ? void 0 : w.tags) != null && re.length ? w == null ? void 0 : w.tags.join(",") : "", Object.assign(I, s.fields), t("update", ce == null ? void 0 : ce.data);
|
|
4604
4604
|
}
|
|
4605
4605
|
return ce;
|
|
4606
4606
|
} catch (oe) {
|
|
@@ -4621,9 +4621,9 @@ const Ji = (e, i) => {
|
|
|
4621
4621
|
saveFormData: Oe,
|
|
4622
4622
|
canSubmit: Z
|
|
4623
4623
|
}), (u, g) => {
|
|
4624
|
-
const P = j("KInput"), re = j("KLabel"), oe = j("KRadio"), ce = j("KSelect"),
|
|
4624
|
+
const P = j("KInput"), re = j("KLabel"), oe = j("KRadio"), ce = j("KSelect"), w = j("KCheckbox"), Y = j("KCollapse");
|
|
4625
4625
|
return h(), A("div", Xl, [
|
|
4626
|
-
|
|
4626
|
+
C(m(dl), {
|
|
4627
4627
|
"can-submit": Z.value,
|
|
4628
4628
|
config: e.config,
|
|
4629
4629
|
"edit-id": e.gatewayServiceId,
|
|
@@ -4644,13 +4644,13 @@ const Ji = (e, i) => {
|
|
|
4644
4644
|
}, void 0, !0)
|
|
4645
4645
|
]),
|
|
4646
4646
|
default: v(() => [
|
|
4647
|
-
|
|
4647
|
+
C(m(Qt), {
|
|
4648
4648
|
description: m(n)("gateway_services.form.sections.general.description"),
|
|
4649
4649
|
"hide-info-header": e.hideSectionsInfo,
|
|
4650
4650
|
title: m(n)("gateway_services.form.sections.general.title")
|
|
4651
4651
|
}, {
|
|
4652
4652
|
default: v(() => [
|
|
4653
|
-
|
|
4653
|
+
C(P, {
|
|
4654
4654
|
modelValue: s.fields.name,
|
|
4655
4655
|
"onUpdate:modelValue": g[0] || (g[0] = (E) => s.fields.name = E),
|
|
4656
4656
|
modelModifiers: { trim: !0 },
|
|
@@ -4666,7 +4666,7 @@ const Ji = (e, i) => {
|
|
|
4666
4666
|
type: "text",
|
|
4667
4667
|
onInput: ae
|
|
4668
4668
|
}, null, 8, ["modelValue", "error-message", "has-error", "label", "label-attributes", "placeholder", "readonly"]),
|
|
4669
|
-
|
|
4669
|
+
C(P, {
|
|
4670
4670
|
modelValue: s.fields.tags,
|
|
4671
4671
|
"onUpdate:modelValue": g[1] || (g[1] = (E) => s.fields.tags = E),
|
|
4672
4672
|
modelModifiers: { trim: !0 },
|
|
@@ -4683,7 +4683,7 @@ const Ji = (e, i) => {
|
|
|
4683
4683
|
]),
|
|
4684
4684
|
_: 1
|
|
4685
4685
|
}, 8, ["description", "hide-info-header", "title"]),
|
|
4686
|
-
|
|
4686
|
+
C(m(Qt), {
|
|
4687
4687
|
description: m(n)("gateway_services.form.sections.keys.description"),
|
|
4688
4688
|
"hide-info-header": e.hideSectionsInfo,
|
|
4689
4689
|
title: m(n)("gateway_services.form.sections.keys.title")
|
|
@@ -4691,7 +4691,7 @@ const Ji = (e, i) => {
|
|
|
4691
4691
|
default: v(() => [
|
|
4692
4692
|
_.value ? q("", !0) : (h(), A("div", es, [
|
|
4693
4693
|
V("div", ts, [
|
|
4694
|
-
|
|
4694
|
+
C(re, { required: "" }, {
|
|
4695
4695
|
default: v(() => [
|
|
4696
4696
|
D(O(m(n)("gateway_services.form.sections.keys.checkedGroupLabel")), 1)
|
|
4697
4697
|
]),
|
|
@@ -4699,15 +4699,15 @@ const Ji = (e, i) => {
|
|
|
4699
4699
|
})
|
|
4700
4700
|
]),
|
|
4701
4701
|
V("div", is, [
|
|
4702
|
-
|
|
4703
|
-
modelValue:
|
|
4704
|
-
"onUpdate:modelValue": g[2] || (g[2] = (E) =>
|
|
4702
|
+
C(oe, {
|
|
4703
|
+
modelValue: k.value,
|
|
4704
|
+
"onUpdate:modelValue": g[2] || (g[2] = (E) => k.value = E),
|
|
4705
4705
|
"data-testid": "gateway-service-url-radio",
|
|
4706
4706
|
"selected-value": ie.url,
|
|
4707
4707
|
onChange: U
|
|
4708
4708
|
}, {
|
|
4709
4709
|
default: v(() => [
|
|
4710
|
-
|
|
4710
|
+
C(re, {
|
|
4711
4711
|
class: "gateway-service-url-radio-label",
|
|
4712
4712
|
info: m(n)("gateway_services.form.fields.upstream_url.tooltip"),
|
|
4713
4713
|
required: ""
|
|
@@ -4721,8 +4721,8 @@ const Ji = (e, i) => {
|
|
|
4721
4721
|
_: 1
|
|
4722
4722
|
}, 8, ["modelValue", "selected-value"])
|
|
4723
4723
|
]),
|
|
4724
|
-
|
|
4725
|
-
|
|
4724
|
+
k.value === "url" ? (h(), A("div", as, [
|
|
4725
|
+
C(P, {
|
|
4726
4726
|
modelValue: s.fields.url,
|
|
4727
4727
|
"onUpdate:modelValue": g[3] || (g[3] = (E) => s.fields.url = E),
|
|
4728
4728
|
modelModifiers: { trim: !0 },
|
|
@@ -4734,16 +4734,16 @@ const Ji = (e, i) => {
|
|
|
4734
4734
|
tooltip: m(n)("gateway_services.form.fields.upstream_url.tooltip")
|
|
4735
4735
|
}, null, 8, ["modelValue", "placeholder", "tooltip"])
|
|
4736
4736
|
])) : q("", !0),
|
|
4737
|
-
|
|
4738
|
-
modelValue:
|
|
4739
|
-
"onUpdate:modelValue": g[4] || (g[4] = (E) =>
|
|
4737
|
+
C(oe, {
|
|
4738
|
+
modelValue: k.value,
|
|
4739
|
+
"onUpdate:modelValue": g[4] || (g[4] = (E) => k.value = E),
|
|
4740
4740
|
"checked-group": "protocol",
|
|
4741
4741
|
"data-testid": "gateway-service-protocol-radio",
|
|
4742
4742
|
"selected-value": ie.protocol,
|
|
4743
4743
|
onChange: U
|
|
4744
4744
|
}, {
|
|
4745
4745
|
default: v(() => [
|
|
4746
|
-
|
|
4746
|
+
C(re, { class: "gateway-service-protocol-radio-label" }, {
|
|
4747
4747
|
default: v(() => [
|
|
4748
4748
|
D(O(m(n)("gateway_services.form.sections.keys.checkedGroupAltLabel")), 1)
|
|
4749
4749
|
]),
|
|
@@ -4753,8 +4753,8 @@ const Ji = (e, i) => {
|
|
|
4753
4753
|
_: 1
|
|
4754
4754
|
}, 8, ["modelValue", "selected-value"])
|
|
4755
4755
|
])),
|
|
4756
|
-
|
|
4757
|
-
|
|
4756
|
+
k.value === "protocol" || _.value ? (h(), A("div", os, [
|
|
4757
|
+
C(ce, {
|
|
4758
4758
|
modelValue: s.fields.protocol,
|
|
4759
4759
|
"onUpdate:modelValue": g[5] || (g[5] = (E) => s.fields.protocol = E),
|
|
4760
4760
|
appearance: "select",
|
|
@@ -4769,7 +4769,7 @@ const Ji = (e, i) => {
|
|
|
4769
4769
|
width: "100%",
|
|
4770
4770
|
onSelected: g[6] || (g[6] = (E) => J(s.fields.protocol, E))
|
|
4771
4771
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
4772
|
-
|
|
4772
|
+
C(P, {
|
|
4773
4773
|
modelValue: s.fields.host,
|
|
4774
4774
|
"onUpdate:modelValue": g[7] || (g[7] = (E) => s.fields.host = E),
|
|
4775
4775
|
modelModifiers: { trim: !0 },
|
|
@@ -4784,7 +4784,7 @@ const Ji = (e, i) => {
|
|
|
4784
4784
|
required: ""
|
|
4785
4785
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder"]),
|
|
4786
4786
|
G.value ? (h(), A("div", rs, [
|
|
4787
|
-
|
|
4787
|
+
C(P, {
|
|
4788
4788
|
modelValue: s.fields.path,
|
|
4789
4789
|
"onUpdate:modelValue": g[8] || (g[8] = (E) => s.fields.path = E),
|
|
4790
4790
|
modelModifiers: { trim: !0 },
|
|
@@ -4798,7 +4798,7 @@ const Ji = (e, i) => {
|
|
|
4798
4798
|
placeholder: m(n)("gateway_services.form.fields.path.placeholder")
|
|
4799
4799
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder"])
|
|
4800
4800
|
])) : q("", !0),
|
|
4801
|
-
|
|
4801
|
+
C(P, {
|
|
4802
4802
|
modelValue: s.fields.port,
|
|
4803
4803
|
"onUpdate:modelValue": [
|
|
4804
4804
|
g[9] || (g[9] = (E) => s.fields.port = E),
|
|
@@ -4817,7 +4817,7 @@ const Ji = (e, i) => {
|
|
|
4817
4817
|
type: "number"
|
|
4818
4818
|
}, null, 8, ["modelValue", "label", "label-attributes", "tooltip"])
|
|
4819
4819
|
])) : q("", !0),
|
|
4820
|
-
|
|
4820
|
+
C(Y, {
|
|
4821
4821
|
modelValue: o.value,
|
|
4822
4822
|
"onUpdate:modelValue": g[24] || (g[24] = (E) => o.value = E),
|
|
4823
4823
|
"data-testid": "advanced-fields-collapse",
|
|
@@ -4827,7 +4827,7 @@ const Ji = (e, i) => {
|
|
|
4827
4827
|
default: v(() => [
|
|
4828
4828
|
V("div", ns, [
|
|
4829
4829
|
V("div", ls, [
|
|
4830
|
-
|
|
4830
|
+
C(P, {
|
|
4831
4831
|
modelValue: s.fields.retries,
|
|
4832
4832
|
"onUpdate:modelValue": [
|
|
4833
4833
|
g[11] || (g[11] = (E) => s.fields.retries = E),
|
|
@@ -4845,7 +4845,7 @@ const Ji = (e, i) => {
|
|
|
4845
4845
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
4846
4846
|
]),
|
|
4847
4847
|
V("div", ss, [
|
|
4848
|
-
|
|
4848
|
+
C(P, {
|
|
4849
4849
|
modelValue: s.fields.connect_timeout,
|
|
4850
4850
|
"onUpdate:modelValue": [
|
|
4851
4851
|
g[13] || (g[13] = (E) => s.fields.connect_timeout = E),
|
|
@@ -4863,7 +4863,7 @@ const Ji = (e, i) => {
|
|
|
4863
4863
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
4864
4864
|
]),
|
|
4865
4865
|
V("div", cs, [
|
|
4866
|
-
|
|
4866
|
+
C(P, {
|
|
4867
4867
|
modelValue: s.fields.write_timeout,
|
|
4868
4868
|
"onUpdate:modelValue": [
|
|
4869
4869
|
g[15] || (g[15] = (E) => s.fields.write_timeout = E),
|
|
@@ -4881,7 +4881,7 @@ const Ji = (e, i) => {
|
|
|
4881
4881
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
4882
4882
|
]),
|
|
4883
4883
|
V("div", us, [
|
|
4884
|
-
|
|
4884
|
+
C(P, {
|
|
4885
4885
|
modelValue: s.fields.read_timeout,
|
|
4886
4886
|
"onUpdate:modelValue": [
|
|
4887
4887
|
g[17] || (g[17] = (E) => s.fields.read_timeout = E),
|
|
@@ -4899,7 +4899,7 @@ const Ji = (e, i) => {
|
|
|
4899
4899
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
4900
4900
|
]),
|
|
4901
4901
|
X.value ? (h(), A("div", ds, [
|
|
4902
|
-
|
|
4902
|
+
C(P, {
|
|
4903
4903
|
modelValue: s.fields.client_certificate,
|
|
4904
4904
|
"onUpdate:modelValue": g[19] || (g[19] = (E) => s.fields.client_certificate = E),
|
|
4905
4905
|
modelModifiers: { trim: !0 },
|
|
@@ -4914,7 +4914,7 @@ const Ji = (e, i) => {
|
|
|
4914
4914
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"])
|
|
4915
4915
|
])) : q("", !0),
|
|
4916
4916
|
H.value ? (h(), A("div", ps, [
|
|
4917
|
-
|
|
4917
|
+
C(P, {
|
|
4918
4918
|
modelValue: s.fields.ca_certificates,
|
|
4919
4919
|
"onUpdate:modelValue": g[20] || (g[20] = (E) => s.fields.ca_certificates = E),
|
|
4920
4920
|
modelModifiers: { trim: !0 },
|
|
@@ -4926,7 +4926,7 @@ const Ji = (e, i) => {
|
|
|
4926
4926
|
type: "text"
|
|
4927
4927
|
}, {
|
|
4928
4928
|
"label-tooltip": v(() => [
|
|
4929
|
-
|
|
4929
|
+
C(m(l), {
|
|
4930
4930
|
keypath: "gateway_services.form.fields.ca_certificates.tooltip",
|
|
4931
4931
|
scope: "global"
|
|
4932
4932
|
}, {
|
|
@@ -4943,7 +4943,7 @@ const Ji = (e, i) => {
|
|
|
4943
4943
|
}, 8, ["modelValue", "label", "placeholder", "readonly"])
|
|
4944
4944
|
])) : q("", !0),
|
|
4945
4945
|
W.value ? (h(), A("div", fs, [
|
|
4946
|
-
|
|
4946
|
+
C(w, {
|
|
4947
4947
|
modelValue: s.fields.tls_verify_enabled,
|
|
4948
4948
|
"onUpdate:modelValue": g[21] || (g[21] = (E) => s.fields.tls_verify_enabled = E),
|
|
4949
4949
|
"data-testid": "gateway-service-tls-verify-checkbox",
|
|
@@ -4951,7 +4951,7 @@ const Ji = (e, i) => {
|
|
|
4951
4951
|
label: m(n)("gateway_services.form.fields.tls_verify_enabled.label")
|
|
4952
4952
|
}, {
|
|
4953
4953
|
tooltip: v(() => [
|
|
4954
|
-
|
|
4954
|
+
C(m(l), {
|
|
4955
4955
|
keypath: "gateway_services.form.fields.tls_verify_enabled.tooltip",
|
|
4956
4956
|
scope: "global"
|
|
4957
4957
|
}, {
|
|
@@ -4964,7 +4964,7 @@ const Ji = (e, i) => {
|
|
|
4964
4964
|
_: 1
|
|
4965
4965
|
}, 8, ["modelValue", "description", "label"]),
|
|
4966
4966
|
s.fields.tls_verify_enabled ? (h(), A("div", ms, [
|
|
4967
|
-
|
|
4967
|
+
C(oe, {
|
|
4968
4968
|
modelValue: s.fields.tls_verify_value,
|
|
4969
4969
|
"onUpdate:modelValue": g[22] || (g[22] = (E) => s.fields.tls_verify_value = E),
|
|
4970
4970
|
"data-testid": "gateway-service-tls-verify-true-option",
|
|
@@ -4973,7 +4973,7 @@ const Ji = (e, i) => {
|
|
|
4973
4973
|
}, null, 8, ["modelValue", "label"])
|
|
4974
4974
|
])) : q("", !0),
|
|
4975
4975
|
s.fields.tls_verify_enabled ? (h(), A("div", ys, [
|
|
4976
|
-
|
|
4976
|
+
C(oe, {
|
|
4977
4977
|
modelValue: s.fields.tls_verify_value,
|
|
4978
4978
|
"onUpdate:modelValue": g[23] || (g[23] = (E) => s.fields.tls_verify_value = E),
|
|
4979
4979
|
"data-testid": "gateway-service-tls-verify-false-option",
|
|
@@ -4996,7 +4996,7 @@ const Ji = (e, i) => {
|
|
|
4996
4996
|
};
|
|
4997
4997
|
}
|
|
4998
4998
|
});
|
|
4999
|
-
const As = /* @__PURE__ */ Ji(gs, [["__scopeId", "data-v-
|
|
4999
|
+
const As = /* @__PURE__ */ Ji(gs, [["__scopeId", "data-v-93f8eab9"]]), vs = { class: "kong-ui-gateway-service-entity-config-card" }, Ts = /* @__PURE__ */ le({
|
|
5000
5000
|
__name: "GatewayServiceConfigCard",
|
|
5001
5001
|
props: {
|
|
5002
5002
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -5084,7 +5084,7 @@ const As = /* @__PURE__ */ Ji(gs, [["__scopeId", "data-v-02a1f1c7"]]), vs = { cl
|
|
|
5084
5084
|
}
|
|
5085
5085
|
});
|
|
5086
5086
|
return (c, d) => (h(), A("div", vs, [
|
|
5087
|
-
|
|
5087
|
+
C(m(ll), {
|
|
5088
5088
|
config: e.config,
|
|
5089
5089
|
"config-card-doc": e.configCardDoc,
|
|
5090
5090
|
"config-schema": n.value,
|
|
@@ -5096,7 +5096,7 @@ const As = /* @__PURE__ */ Ji(gs, [["__scopeId", "data-v-02a1f1c7"]]), vs = { cl
|
|
|
5096
5096
|
onLoading: d[3] || (d[3] = (f) => c.$emit("loading", f))
|
|
5097
5097
|
}, {
|
|
5098
5098
|
"enabled-label-tooltip": v(() => [
|
|
5099
|
-
|
|
5099
|
+
C(m(a), {
|
|
5100
5100
|
keypath: "gateway_services.form.fields.enabled.tooltip",
|
|
5101
5101
|
scope: "global"
|
|
5102
5102
|
}, {
|
|
@@ -5110,7 +5110,7 @@ const As = /* @__PURE__ */ Ji(gs, [["__scopeId", "data-v-02a1f1c7"]]), vs = { cl
|
|
|
5110
5110
|
})
|
|
5111
5111
|
]),
|
|
5112
5112
|
"ca_certificates-label-tooltip": v(() => [
|
|
5113
|
-
|
|
5113
|
+
C(m(a), {
|
|
5114
5114
|
keypath: "gateway_services.form.fields.ca_certificates.tooltip",
|
|
5115
5115
|
scope: "global"
|
|
5116
5116
|
}, {
|
|
@@ -5124,7 +5124,7 @@ const As = /* @__PURE__ */ Ji(gs, [["__scopeId", "data-v-02a1f1c7"]]), vs = { cl
|
|
|
5124
5124
|
})
|
|
5125
5125
|
]),
|
|
5126
5126
|
"tls_verify-label-tooltip": v(() => [
|
|
5127
|
-
|
|
5127
|
+
C(m(a), {
|
|
5128
5128
|
keypath: "gateway_services.form.fields.tls_verify_enabled.tooltip",
|
|
5129
5129
|
scope: "global"
|
|
5130
5130
|
}, {
|