@kong-ui-public/entities-gateway-services 3.10.4 → 3.10.5-pr.1974.5b035dc42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as Te, computed as
|
|
2
|
-
import { useRouter as
|
|
3
|
-
import { BookIcon as
|
|
1
|
+
import { defineComponent as Te, computed as b, ref as E, watch as Ie, onBeforeMount as Le, resolveComponent as F, openBlock as S, createElementBlock as U, createVNode as d, unref as o, createSlots as Ee, withCtx as f, createBlock as ue, Teleport as Pe, createElementVNode as k, createCommentVNode as L, createTextVNode as R, toDisplayString as y, withModifiers as Se, reactive as Ue, onMounted as De, renderSlot as Ge } from "vue";
|
|
2
|
+
import { useRouter as xe } from "vue-router";
|
|
3
|
+
import { BookIcon as Re, AddIcon as Ke, ServicesIcon as qe } from "@kong/icons";
|
|
4
4
|
import { createI18n as Oe, i18nTComponent as Ne } from "@kong-ui-public/i18n";
|
|
5
|
-
import { useAxios as
|
|
5
|
+
import { useAxios as Ae, useTableState as We, useFetcher as je, useDeleteUrlBuilder as He, FetcherStatus as Je, EntityBaseTable as ze, EntityFilter as Qe, PermissionsWrapper as ie, TableTags as Xe, EntityEmptyState as Ze, EntityToggleModal as Ye, EntityDeleteModal as et, EntityTypes as tt, useErrors as ot, useValidators as lt, EntityBaseFormType as Me, useGatewayFeatureSupported as it, EntityBaseForm as st, SupportedEntityType as Fe, EntityFormSection as $e, useHelpers as rt, ConfigurationSchemaSection as fe, ConfigurationSchemaType as at, EntityBaseConfigCard as nt } from "@kong-ui-public/entities-shared";
|
|
6
6
|
const ct = {
|
|
7
7
|
create: "New gateway service",
|
|
8
8
|
serverless_create: "Add a Service",
|
|
@@ -49,7 +49,8 @@ const ct = {
|
|
|
49
49
|
empty_state_v2: {
|
|
50
50
|
create: "New gateway service",
|
|
51
51
|
title: "Configure your first gateway service",
|
|
52
|
-
|
|
52
|
+
group: "Services created in gateways within this group will automatically appear here.",
|
|
53
|
+
description: "Gateway services represent backend APIs or microservices that receive traffic routed through the gateway."
|
|
53
54
|
},
|
|
54
55
|
form: {
|
|
55
56
|
sections: {
|
|
@@ -300,8 +301,8 @@ const ve = {
|
|
|
300
301
|
},
|
|
301
302
|
emits: ["error", "click:learn-more", "copy:success", "copy:error", "delete:success", "toggle:success"],
|
|
302
303
|
setup(n, { emit: D }) {
|
|
303
|
-
var
|
|
304
|
-
const p = D, c = n, { i18n: { t: r, formatUnixTimeStamp:
|
|
304
|
+
var l;
|
|
305
|
+
const p = D, c = n, { i18n: { t: r, formatUnixTimeStamp: x } } = ve.useI18n(), N = xe(), { axiosInstance: q } = Ae((l = c.config) == null ? void 0 : l.axiosRequestConfig), { hasRecords: a, handleStateChange: P } = We(() => G.value), C = b(() => a.value && c.config.app === "konnect"), ge = b(() => !c.enableV2EmptyStates && c.config.app === "konnect"), ye = b(() => c.config.app !== "kongManager" || !!c.config.disableSorting), O = {
|
|
305
306
|
// the Name column is non-hidable
|
|
306
307
|
name: { label: r("gateway_services.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 },
|
|
307
308
|
...c.config.showControlPlaneColumn ? { control_plane: { label: r("gateway_services.list.table_headers.control_plane") } } : {},
|
|
@@ -317,37 +318,37 @@ const ve = {
|
|
|
317
318
|
columnVisibility: {
|
|
318
319
|
created_at: !1
|
|
319
320
|
}
|
|
320
|
-
}, H = O,
|
|
321
|
+
}, H = O, _ = b(() => {
|
|
321
322
|
var s, g;
|
|
322
323
|
let u = `${c.config.apiBaseUrl}${se.list[c.config.app].all}`;
|
|
323
324
|
return c.config.app === "konnect" ? u = u.replace(/{controlPlaneId}/gi, ((s = c.config) == null ? void 0 : s.controlPlaneId) || "") : c.config.app === "kongManager" && (u = u.replace(/\/{workspace}/gi, (g = c.config) != null && g.workspace ? `/${c.config.workspace}` : "")), u;
|
|
324
|
-
}), Y =
|
|
325
|
+
}), Y = b(() => c.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${_.value}`) : new URL(_.value)), G = E(""), be = b(() => {
|
|
325
326
|
const u = c.config.app === "konnect" || c.config.isExactMatch;
|
|
326
327
|
if (u)
|
|
327
328
|
return {
|
|
328
329
|
isExactMatch: u,
|
|
329
330
|
placeholder: r(`search.placeholder.${c.config.app}`)
|
|
330
331
|
};
|
|
331
|
-
const { name: s, enabled: g, protocol: I, host: Z, port:
|
|
332
|
+
const { name: s, enabled: g, protocol: I, host: Z, port: A, path: de } = O;
|
|
332
333
|
return {
|
|
333
334
|
isExactMatch: u,
|
|
334
|
-
fields: { name: s, enabled: g, protocol: I, host: Z, port:
|
|
335
|
+
fields: { name: s, enabled: g, protocol: I, host: Z, port: A, path: de },
|
|
335
336
|
schema: c.config.filterSchema
|
|
336
337
|
};
|
|
337
338
|
}), {
|
|
338
339
|
fetcher: e,
|
|
339
340
|
fetcherState: w,
|
|
340
341
|
fetcherCacheKey: ee
|
|
341
|
-
} = je({ ...c.config, cacheIdentifier: c.cacheIdentifier },
|
|
342
|
-
|
|
342
|
+
} = je({ ...c.config, cacheIdentifier: c.cacheIdentifier }, _.value), he = () => {
|
|
343
|
+
G.value = "";
|
|
343
344
|
}, re = () => {
|
|
344
345
|
ee.value++;
|
|
345
|
-
},
|
|
346
|
+
}, J = E(null), W = b(() => ({
|
|
346
347
|
ctaPath: c.config.createRoute,
|
|
347
348
|
ctaText: h.value ? c.isServerless ? r("actions.serverless_create") : r("actions.create") : void 0,
|
|
348
349
|
message: `${r("gateway_services.list.empty_state.description")}${c.config.additionMessageForEmptyState ? ` ${c.config.additionMessageForEmptyState}` : ""}`,
|
|
349
350
|
title: h.value ? c.isServerless ? r("gateway_services.list.empty_state.serverless_title") : r("gateway_services.list.empty_state.title") : r("gateway_services.title")
|
|
350
|
-
})),
|
|
351
|
+
})), z = E(!1), T = E(null), Q = b(() => {
|
|
351
352
|
const u = {
|
|
352
353
|
action: "disable",
|
|
353
354
|
id: "",
|
|
@@ -359,19 +360,19 @@ const ve = {
|
|
|
359
360
|
}
|
|
360
361
|
return u;
|
|
361
362
|
}), we = (u) => {
|
|
362
|
-
|
|
363
|
+
z.value = !0, T.value = u;
|
|
363
364
|
}, ae = () => {
|
|
364
|
-
|
|
365
|
+
z.value = !1, T.value = null;
|
|
365
366
|
}, ke = async () => {
|
|
366
367
|
var I, Z;
|
|
367
368
|
if (!await ((I = c.canEdit) == null ? void 0 : I.call(c, T.value)) || !T.value)
|
|
368
369
|
return;
|
|
369
370
|
const s = `${Y.value.href}/${T.value.id}`, g = !T.value.enabled;
|
|
370
371
|
try {
|
|
371
|
-
const { data:
|
|
372
|
-
p("toggle:success",
|
|
373
|
-
} catch (
|
|
374
|
-
p("error",
|
|
372
|
+
const { data: A } = ((Z = c.config) == null ? void 0 : Z.app) === "konnect" ? await q.put(s, { ...T.value, enabled: g }) : await q.patch(s, { ...T.value, enabled: g });
|
|
373
|
+
p("toggle:success", A), T.value.enabled = g;
|
|
374
|
+
} catch (A) {
|
|
375
|
+
p("error", A);
|
|
375
376
|
}
|
|
376
377
|
}, Ce = (u) => {
|
|
377
378
|
c.config.getControlPlaneRoute && N.push(c.config.getControlPlaneRoute(u));
|
|
@@ -409,14 +410,14 @@ const ve = {
|
|
|
409
410
|
}, Ve = (u) => ({
|
|
410
411
|
label: r("actions.view"),
|
|
411
412
|
to: c.config.getViewRoute(u)
|
|
412
|
-
}),
|
|
413
|
+
}), oe = (u) => ({
|
|
413
414
|
label: r("actions.edit"),
|
|
414
415
|
to: c.config.getEditRoute(u)
|
|
415
|
-
}), B = E(void 0),
|
|
416
|
-
B.value = u,
|
|
416
|
+
}), B = E(void 0), K = E(!1), j = E(!1), X = E(""), t = He(c.config, _.value), i = (u) => {
|
|
417
|
+
B.value = u, K.value = !0, X.value = "";
|
|
417
418
|
}, v = () => {
|
|
418
|
-
|
|
419
|
-
},
|
|
419
|
+
K.value = !1, B.value = void 0;
|
|
420
|
+
}, M = async () => {
|
|
420
421
|
var u, s, g;
|
|
421
422
|
if ((u = B.value) != null && u.id) {
|
|
422
423
|
j.value = !0;
|
|
@@ -433,47 +434,47 @@ const ve = {
|
|
|
433
434
|
};
|
|
434
435
|
Ie(w, (u) => {
|
|
435
436
|
var s, g, I;
|
|
436
|
-
if (u.status ===
|
|
437
|
-
|
|
437
|
+
if (u.status === Je.Error) {
|
|
438
|
+
J.value = {
|
|
438
439
|
title: r("errors.general")
|
|
439
|
-
}, (I = (g = (s = u.error) == null ? void 0 : s.response) == null ? void 0 : g.data) != null && I.message && (
|
|
440
|
+
}, (I = (g = (s = u.error) == null ? void 0 : s.response) == null ? void 0 : g.data) != null && I.message && (J.value.message = u.error.response.data.message), p("error", u.error);
|
|
440
441
|
return;
|
|
441
442
|
}
|
|
442
|
-
|
|
443
|
+
J.value = null;
|
|
443
444
|
});
|
|
444
445
|
const h = E(!1);
|
|
445
|
-
return
|
|
446
|
+
return Le(async () => {
|
|
446
447
|
h.value = await c.canCreate();
|
|
447
448
|
}), (u, s) => {
|
|
448
|
-
const g = F("KButton"), I = F("KBadge"), Z = F("KInputSwitch"),
|
|
449
|
+
const g = F("KButton"), I = F("KBadge"), Z = F("KInputSwitch"), A = F("KDropdownItem"), de = F("KClipboardProvider");
|
|
449
450
|
return S(), U("div", ht, [
|
|
450
|
-
d(
|
|
451
|
+
d(o(ze), {
|
|
451
452
|
"cache-identifier": n.cacheIdentifier,
|
|
452
453
|
"default-table-preferences": _e,
|
|
453
454
|
"disable-sorting": ye.value,
|
|
454
455
|
"empty-state-options": W.value,
|
|
455
456
|
"enable-entity-actions": "",
|
|
456
|
-
"error-message":
|
|
457
|
-
fetcher:
|
|
458
|
-
"fetcher-cache-key":
|
|
457
|
+
"error-message": J.value,
|
|
458
|
+
fetcher: o(e),
|
|
459
|
+
"fetcher-cache-key": o(ee),
|
|
459
460
|
"pagination-type": "offset",
|
|
460
461
|
"preferences-storage-key": "kong-ui-entities-gateway-services-list",
|
|
461
|
-
query:
|
|
462
|
-
"table-headers":
|
|
462
|
+
query: G.value,
|
|
463
|
+
"table-headers": o(H),
|
|
463
464
|
onClearSearchInput: he,
|
|
464
465
|
"onClick:row": s[5] || (s[5] = (m) => ce(m)),
|
|
465
466
|
onSort: re,
|
|
466
|
-
onState:
|
|
467
|
-
},
|
|
467
|
+
onState: o(P)
|
|
468
|
+
}, Ee({
|
|
468
469
|
"toolbar-filter": f(() => [
|
|
469
|
-
d(
|
|
470
|
-
modelValue:
|
|
471
|
-
"onUpdate:modelValue": s[0] || (s[0] = (m) =>
|
|
470
|
+
d(o(Qe), {
|
|
471
|
+
modelValue: G.value,
|
|
472
|
+
"onUpdate:modelValue": s[0] || (s[0] = (m) => G.value = m),
|
|
472
473
|
config: be.value
|
|
473
474
|
}, null, 8, ["modelValue", "config"])
|
|
474
475
|
]),
|
|
475
476
|
"toolbar-button": f(() => [
|
|
476
|
-
(S(), ue(
|
|
477
|
+
(S(), ue(Pe, {
|
|
477
478
|
disabled: !n.useActionOutside,
|
|
478
479
|
to: "#kong-ui-app-page-header-action-button"
|
|
479
480
|
}, [
|
|
@@ -487,11 +488,11 @@ const ve = {
|
|
|
487
488
|
onClick: s[1] || (s[1] = (m) => u.$emit("click:learn-more"))
|
|
488
489
|
}, {
|
|
489
490
|
default: f(() => [
|
|
490
|
-
d(
|
|
491
|
+
d(o(Re), { decorative: "" })
|
|
491
492
|
]),
|
|
492
493
|
_: 1
|
|
493
494
|
})) : L("", !0),
|
|
494
|
-
d(
|
|
495
|
+
d(o(ie), {
|
|
495
496
|
"auth-function": () => n.canCreate()
|
|
496
497
|
}, {
|
|
497
498
|
default: f(() => [
|
|
@@ -502,8 +503,8 @@ const ve = {
|
|
|
502
503
|
to: n.config.createRoute
|
|
503
504
|
}, {
|
|
504
505
|
default: f(() => [
|
|
505
|
-
d(
|
|
506
|
-
|
|
506
|
+
d(o(Ke)),
|
|
507
|
+
R(" " + y(o(r)("gateway_services.list.toolbar_actions.new_gateway_service")), 1)
|
|
507
508
|
]),
|
|
508
509
|
_: 1
|
|
509
510
|
}, 8, ["size", "to"])
|
|
@@ -514,40 +515,40 @@ const ve = {
|
|
|
514
515
|
], 8, ["disabled"]))
|
|
515
516
|
]),
|
|
516
517
|
name: f(({ rowValue: m }) => [
|
|
517
|
-
k("b", null,
|
|
518
|
+
k("b", null, y(m ?? "-"), 1)
|
|
518
519
|
]),
|
|
519
520
|
control_plane: f(({ row: m }) => {
|
|
520
|
-
var
|
|
521
|
+
var $;
|
|
521
522
|
return [
|
|
522
|
-
(
|
|
523
|
+
($ = m.x_meta) != null && $.cluster_id ? (S(), ue(I, {
|
|
523
524
|
key: 0,
|
|
524
525
|
tooltip: m.x_meta.cluster_id,
|
|
525
526
|
"truncation-tooltip": "",
|
|
526
|
-
onClick: Se((
|
|
527
|
+
onClick: Se((le) => Ce(m.x_meta.cluster_id), ["stop"])
|
|
527
528
|
}, {
|
|
528
529
|
default: f(() => [
|
|
529
|
-
|
|
530
|
+
R(y(m.x_meta.cluster_id), 1)
|
|
530
531
|
]),
|
|
531
532
|
_: 2
|
|
532
533
|
}, 1032, ["tooltip", "onClick"])) : (S(), U("b", Ct, "-"))
|
|
533
534
|
];
|
|
534
535
|
}),
|
|
535
536
|
enabled: f(({ row: m }) => [
|
|
536
|
-
d(
|
|
537
|
+
d(o(ie), {
|
|
537
538
|
"auth-function": () => n.canEdit(m),
|
|
538
539
|
"force-show": ""
|
|
539
540
|
}, {
|
|
540
|
-
default: f(({ isAllowed:
|
|
541
|
+
default: f(({ isAllowed: $ }) => [
|
|
541
542
|
k("div", {
|
|
542
543
|
onClick: s[4] || (s[4] = Se(() => {
|
|
543
544
|
}, ["stop"]))
|
|
544
545
|
}, [
|
|
545
546
|
d(Z, {
|
|
546
547
|
modelValue: m.enabled,
|
|
547
|
-
"onUpdate:modelValue": (
|
|
548
|
+
"onUpdate:modelValue": (le) => m.enabled = le,
|
|
548
549
|
"data-testid": `row-${m.id}-toggle-input`,
|
|
549
|
-
disabled:
|
|
550
|
-
onClick: Se((
|
|
550
|
+
disabled: !$,
|
|
551
|
+
onClick: Se((le) => we(m), ["prevent"])
|
|
551
552
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "disabled", "onClick"])
|
|
552
553
|
])
|
|
553
554
|
]),
|
|
@@ -555,23 +556,23 @@ const ve = {
|
|
|
555
556
|
}, 1032, ["auth-function"])
|
|
556
557
|
]),
|
|
557
558
|
tags: f(({ rowValue: m }) => [
|
|
558
|
-
d(
|
|
559
|
+
d(o(Xe), { tags: m }, null, 8, ["tags"])
|
|
559
560
|
]),
|
|
560
561
|
created_at: f(({ rowValue: m }) => [
|
|
561
|
-
|
|
562
|
+
R(y(o(x)(m)), 1)
|
|
562
563
|
]),
|
|
563
|
-
updated_at: f(({ row: m, rowValue:
|
|
564
|
-
|
|
564
|
+
updated_at: f(({ row: m, rowValue: $ }) => [
|
|
565
|
+
R(y(o(x)($ ?? m.created_at)), 1)
|
|
565
566
|
]),
|
|
566
567
|
actions: f(({ row: m }) => [
|
|
567
568
|
d(de, null, {
|
|
568
|
-
default: f(({ copyToClipboard:
|
|
569
|
-
d(
|
|
569
|
+
default: f(({ copyToClipboard: $ }) => [
|
|
570
|
+
d(A, {
|
|
570
571
|
"data-testid": "action-entity-copy-id",
|
|
571
|
-
onClick: (
|
|
572
|
+
onClick: (le) => te(m, $)
|
|
572
573
|
}, {
|
|
573
574
|
default: f(() => [
|
|
574
|
-
|
|
575
|
+
R(y(o(r)("actions.copy_id")), 1)
|
|
575
576
|
]),
|
|
576
577
|
_: 2
|
|
577
578
|
}, 1032, ["onClick"])
|
|
@@ -579,24 +580,24 @@ const ve = {
|
|
|
579
580
|
_: 2
|
|
580
581
|
}, 1024),
|
|
581
582
|
d(de, null, {
|
|
582
|
-
default: f(({ copyToClipboard:
|
|
583
|
-
d(
|
|
583
|
+
default: f(({ copyToClipboard: $ }) => [
|
|
584
|
+
d(A, {
|
|
584
585
|
"data-testid": "action-entity-copy-json",
|
|
585
|
-
onClick: (
|
|
586
|
+
onClick: (le) => ne(m, $)
|
|
586
587
|
}, {
|
|
587
588
|
default: f(() => [
|
|
588
|
-
|
|
589
|
+
R(y(o(r)("actions.copy_json")), 1)
|
|
589
590
|
]),
|
|
590
591
|
_: 2
|
|
591
592
|
}, 1032, ["onClick"])
|
|
592
593
|
]),
|
|
593
594
|
_: 2
|
|
594
595
|
}, 1024),
|
|
595
|
-
d(
|
|
596
|
+
d(o(ie), {
|
|
596
597
|
"auth-function": () => n.canRetrieve(m)
|
|
597
598
|
}, {
|
|
598
599
|
default: f(() => [
|
|
599
|
-
d(
|
|
600
|
+
d(A, {
|
|
600
601
|
"data-testid": "action-entity-view",
|
|
601
602
|
"has-divider": "",
|
|
602
603
|
item: Ve(m.id)
|
|
@@ -604,29 +605,29 @@ const ve = {
|
|
|
604
605
|
]),
|
|
605
606
|
_: 2
|
|
606
607
|
}, 1032, ["auth-function"]),
|
|
607
|
-
d(
|
|
608
|
+
d(o(ie), {
|
|
608
609
|
"auth-function": () => n.canEdit(m)
|
|
609
610
|
}, {
|
|
610
611
|
default: f(() => [
|
|
611
|
-
d(
|
|
612
|
+
d(A, {
|
|
612
613
|
"data-testid": "action-entity-edit",
|
|
613
|
-
item:
|
|
614
|
+
item: oe(m.id)
|
|
614
615
|
}, null, 8, ["item"])
|
|
615
616
|
]),
|
|
616
617
|
_: 2
|
|
617
618
|
}, 1032, ["auth-function"]),
|
|
618
|
-
d(
|
|
619
|
+
d(o(ie), {
|
|
619
620
|
"auth-function": () => n.canDelete(m)
|
|
620
621
|
}, {
|
|
621
622
|
default: f(() => [
|
|
622
|
-
d(
|
|
623
|
+
d(A, {
|
|
623
624
|
danger: "",
|
|
624
625
|
"data-testid": "action-entity-delete",
|
|
625
626
|
"has-divider": "",
|
|
626
|
-
onClick: (
|
|
627
|
+
onClick: ($) => i(m)
|
|
627
628
|
}, {
|
|
628
629
|
default: f(() => [
|
|
629
|
-
|
|
630
|
+
R(y(o(r)("actions.delete.menu_label")), 1)
|
|
630
631
|
]),
|
|
631
632
|
_: 2
|
|
632
633
|
}, 1032, ["onClick"])
|
|
@@ -636,10 +637,10 @@ const ve = {
|
|
|
636
637
|
]),
|
|
637
638
|
_: 2
|
|
638
639
|
}, [
|
|
639
|
-
!
|
|
640
|
+
!o(a) && ge.value ? {
|
|
640
641
|
name: "outside-actions",
|
|
641
642
|
fn: f(() => [
|
|
642
|
-
(S(), ue(
|
|
643
|
+
(S(), ue(Pe, {
|
|
643
644
|
disabled: !n.useActionOutside,
|
|
644
645
|
to: "#kong-ui-app-page-header-action-button"
|
|
645
646
|
}, [
|
|
@@ -651,7 +652,7 @@ const ve = {
|
|
|
651
652
|
onClick: s[2] || (s[2] = (m) => u.$emit("click:learn-more"))
|
|
652
653
|
}, {
|
|
653
654
|
default: f(() => [
|
|
654
|
-
d(
|
|
655
|
+
d(o(Re), { decorative: "" })
|
|
655
656
|
]),
|
|
656
657
|
_: 1
|
|
657
658
|
})
|
|
@@ -661,62 +662,73 @@ const ve = {
|
|
|
661
662
|
} : void 0,
|
|
662
663
|
n.enableV2EmptyStates && n.config.app === "konnect" ? {
|
|
663
664
|
name: "empty-state",
|
|
664
|
-
fn: f(() =>
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
665
|
+
fn: f(() => {
|
|
666
|
+
var m;
|
|
667
|
+
return [
|
|
668
|
+
d(o(Ze), {
|
|
669
|
+
"action-button-text": o(r)("gateway_services.empty_state_v2.create"),
|
|
670
|
+
appearance: "secondary",
|
|
671
|
+
"can-create": () => n.canCreate(),
|
|
672
|
+
"data-testid": "gateway-services-entity-empty-state",
|
|
673
|
+
description: o(r)("gateway_services.empty_state_v2.description"),
|
|
674
|
+
"learn-more": n.config.app === "konnect",
|
|
675
|
+
title: o(r)("gateway_services.empty_state_v2.title"),
|
|
676
|
+
"onClick:create": V,
|
|
677
|
+
"onClick:learnMore": s[3] || (s[3] = ($) => u.$emit("click:learn-more"))
|
|
678
|
+
}, Ee({
|
|
679
|
+
image: f(() => [
|
|
680
|
+
k("div", kt, [
|
|
681
|
+
d(o(qe), {
|
|
682
|
+
color: o(_t),
|
|
683
|
+
size: o(bt)
|
|
684
|
+
}, null, 8, ["color", "size"])
|
|
685
|
+
])
|
|
686
|
+
]),
|
|
687
|
+
_: 2
|
|
688
|
+
}, [
|
|
689
|
+
(m = n.config) != null && m.isControlPlaneGroup ? {
|
|
690
|
+
name: "message",
|
|
691
|
+
fn: f(() => [
|
|
692
|
+
R(y(o(r)("gateway_services.empty_state_v2.group")), 1)
|
|
693
|
+
]),
|
|
694
|
+
key: "0"
|
|
695
|
+
} : void 0
|
|
696
|
+
]), 1032, ["action-button-text", "can-create", "description", "learn-more", "title"])
|
|
697
|
+
];
|
|
698
|
+
}),
|
|
687
699
|
key: "1"
|
|
688
700
|
} : void 0
|
|
689
701
|
]), 1032, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "onState"]),
|
|
690
|
-
d(
|
|
702
|
+
d(o(Ye), {
|
|
691
703
|
action: Q.value.action,
|
|
692
704
|
"entity-id": Q.value.id,
|
|
693
705
|
"entity-name": Q.value.name,
|
|
694
|
-
"entity-type":
|
|
706
|
+
"entity-type": o(r)("glossary.gateway_services"),
|
|
695
707
|
"on-confirm": ke,
|
|
696
|
-
visible:
|
|
708
|
+
visible: z.value,
|
|
697
709
|
onCancel: ae,
|
|
698
710
|
onProceed: ae
|
|
699
711
|
}, null, 8, ["action", "entity-id", "entity-name", "entity-type", "visible"]),
|
|
700
|
-
d(
|
|
712
|
+
d(o(et), {
|
|
701
713
|
"action-pending": j.value,
|
|
702
|
-
description:
|
|
714
|
+
description: o(r)("actions.delete.description"),
|
|
703
715
|
"entity-name": B.value && (B.value.name || B.value.id),
|
|
704
|
-
"entity-type":
|
|
716
|
+
"entity-type": o(tt).GatewayService,
|
|
705
717
|
error: X.value,
|
|
706
|
-
title:
|
|
707
|
-
visible:
|
|
718
|
+
title: o(r)("actions.delete.title"),
|
|
719
|
+
visible: K.value,
|
|
708
720
|
onCancel: v,
|
|
709
|
-
onProceed:
|
|
721
|
+
onProceed: M
|
|
710
722
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
|
|
711
723
|
]);
|
|
712
724
|
};
|
|
713
725
|
}
|
|
714
|
-
}),
|
|
726
|
+
}), Be = (n, D) => {
|
|
715
727
|
const p = n.__vccOpts || n;
|
|
716
728
|
for (const [c, r] of D)
|
|
717
729
|
p[c] = r;
|
|
718
730
|
return p;
|
|
719
|
-
},
|
|
731
|
+
}, zt = /* @__PURE__ */ Be(Vt, [["__scopeId", "data-v-ee4f8a6d"]]), St = { class: "kong-ui-entities-gateway-service-form" }, It = { key: 0 }, Tt = { class: "gateway-service-form-traffic-label" }, Et = { class: "gateway-service-form-margin-bottom" }, Pt = {
|
|
720
732
|
key: 0,
|
|
721
733
|
class: "gateway-service-form-group-fields"
|
|
722
734
|
}, Ut = {
|
|
@@ -731,10 +743,10 @@ const ve = {
|
|
|
731
743
|
}, Dt = {
|
|
732
744
|
key: 2,
|
|
733
745
|
class: "gateway-service-form-margin-bottom"
|
|
734
|
-
},
|
|
746
|
+
}, Gt = {
|
|
735
747
|
key: 0,
|
|
736
748
|
class: "checkbox-aligned-radio"
|
|
737
|
-
},
|
|
749
|
+
}, Kt = {
|
|
738
750
|
key: 1,
|
|
739
751
|
class: "checkbox-aligned-radio"
|
|
740
752
|
}, qt = /* @__PURE__ */ Te({
|
|
@@ -762,7 +774,7 @@ const ve = {
|
|
|
762
774
|
emits: ["update", "error", "url-valid:success", "url-valid:error", "loading", "model-updated"],
|
|
763
775
|
setup(n, { expose: D, emit: p }) {
|
|
764
776
|
var X;
|
|
765
|
-
const c = p, r = n,
|
|
777
|
+
const c = p, r = n, x = E(!0), N = xe(), { i18nT: q, i18n: { t: a } } = ve.useI18n(), { getMessageFromError: P } = ot(), { axiosInstance: C } = Ae((X = r.config) == null ? void 0 : X.axiosRequestConfig), ge = lt(), ye = b(() => se.form[r.config.app].edit), O = b(() => r.gatewayServiceId ? Me.Edit : Me.Create), _e = E(!1), H = b(() => !!r.gatewayServiceId), _ = E(H.value ? "protocol" : "url"), Y = ve.usePortFromProtocol(), G = E(""), be = b(() => !!G.value), e = Ue({
|
|
766
778
|
fields: {
|
|
767
779
|
name: "",
|
|
768
780
|
protocol: "http",
|
|
@@ -782,7 +794,7 @@ const ve = {
|
|
|
782
794
|
},
|
|
783
795
|
isReadonly: !1,
|
|
784
796
|
errorMessage: ""
|
|
785
|
-
}), w =
|
|
797
|
+
}), w = Ue({
|
|
786
798
|
name: "",
|
|
787
799
|
protocol: "http",
|
|
788
800
|
host: "",
|
|
@@ -857,12 +869,12 @@ const ve = {
|
|
|
857
869
|
value: "udp",
|
|
858
870
|
group: "udp"
|
|
859
871
|
}
|
|
860
|
-
], re = { url: "url", protocol: "protocol" },
|
|
872
|
+
], re = { url: "url", protocol: "protocol" }, J = (t, i) => {
|
|
861
873
|
i.value;
|
|
862
|
-
}, W = (t) => t ? parseFloat(t) : 0,
|
|
863
|
-
|
|
874
|
+
}, W = (t) => t ? parseFloat(t) : 0, z = () => {
|
|
875
|
+
x.value = !0, e.errorMessage = "", e.fields.host = w.host, e.fields.path = w.path, e.fields.port = w.port, e.fields.protocol = w.protocol, e.fields.url = w.url, e.fields.retries = w.retries, e.fields.connect_timeout = w.connect_timeout, e.fields.write_timeout = w.write_timeout, e.fields.read_timeout = w.read_timeout, e.fields.client_certificate = w.client_certificate, e.fields.ca_certificates = w.ca_certificates, e.fields.tls_verify_enabled = w.tls_verify_enabled, e.fields.tls_verify_value = w.tls_verify_value;
|
|
864
876
|
}, T = () => {
|
|
865
|
-
if (e.fields.url &&
|
|
877
|
+
if (e.fields.url && _.value === "url")
|
|
866
878
|
try {
|
|
867
879
|
const t = new URL(e.fields.url);
|
|
868
880
|
e.errorMessage = "", e.fields.protocol = t.protocol.slice(0, -1), e.fields.host = t.hostname, e.fields.path = t.pathname;
|
|
@@ -873,44 +885,44 @@ const ve = {
|
|
|
873
885
|
}
|
|
874
886
|
else
|
|
875
887
|
c("url-valid:success"), e.errorMessage = "";
|
|
876
|
-
}, Q =
|
|
877
|
-
if (
|
|
888
|
+
}, Q = b(() => !["tcp", "tls", "tls_passthrough", "grpc", "grpcs", "udp"].includes(e.fields.protocol)), we = b(() => {
|
|
889
|
+
if (_.value === "url")
|
|
878
890
|
return !0;
|
|
879
891
|
const t = ["https", "wss", "tls"].includes(e.fields.protocol);
|
|
880
|
-
return
|
|
881
|
-
}), ae =
|
|
882
|
-
if (
|
|
892
|
+
return _.value === "protocol" && t;
|
|
893
|
+
}), ae = b(() => {
|
|
894
|
+
if (_.value === "url")
|
|
883
895
|
return !0;
|
|
884
896
|
const t = ["https", "tls"].includes(e.fields.protocol);
|
|
885
|
-
return
|
|
886
|
-
}), ke =
|
|
887
|
-
if (
|
|
897
|
+
return _.value === "protocol" && t;
|
|
898
|
+
}), ke = b(() => {
|
|
899
|
+
if (_.value === "url")
|
|
888
900
|
return !0;
|
|
889
901
|
const t = ["https", "wss", "tls"].includes(e.fields.protocol);
|
|
890
|
-
return
|
|
902
|
+
return _.value === "protocol" && t;
|
|
891
903
|
}), Ce = (t) => {
|
|
892
|
-
|
|
893
|
-
}, te =
|
|
894
|
-
var i, v,
|
|
895
|
-
e.fields.name = (t == null ? void 0 : t.name) || "", e.fields.tags = ((i = t == null ? void 0 : t.tags) == null ? void 0 : i.join(", ")) || "", e.fields.protocol = (t == null ? void 0 : t.protocol) || "http", e.fields.path = (t == null ? void 0 : t.path) || "", e.fields.read_timeout = t != null && t.read_timeout || (t == null ? void 0 : t.read_timeout) === 0 ? t == null ? void 0 : t.read_timeout : 6e4, e.fields.retries = t != null && t.retries || (t == null ? void 0 : t.retries) === 0 ? t == null ? void 0 : t.retries : 5, e.fields.host = (t == null ? void 0 : t.host) || "", e.fields.connect_timeout = t != null && t.connect_timeout || (t == null ? void 0 : t.connect_timeout) === 0 ? t == null ? void 0 : t.connect_timeout : 6e4, e.fields.tls_verify_enabled = (t == null ? void 0 : t.tls_verify) !== "" && (t == null ? void 0 : t.tls_verify) !== null && (t == null ? void 0 : t.tls_verify) !== void 0, e.fields.tls_verify_value = t != null && t.tls_verify ? t == null ? void 0 : t.tls_verify : !1, e.fields.ca_certificates = ((v = t == null ? void 0 : t.ca_certificates) == null ? void 0 : v.join(",")) || "", e.fields.client_certificate = ((
|
|
904
|
+
G.value = ge.utf8Name(t);
|
|
905
|
+
}, te = b(() => H.value && JSON.stringify(e.fields) !== JSON.stringify(w) || _.value === "url" && !!e.fields.url || _.value === "protocol" && !!e.fields.host), ne = (t) => {
|
|
906
|
+
var i, v, M;
|
|
907
|
+
e.fields.name = (t == null ? void 0 : t.name) || "", e.fields.tags = ((i = t == null ? void 0 : t.tags) == null ? void 0 : i.join(", ")) || "", e.fields.protocol = (t == null ? void 0 : t.protocol) || "http", e.fields.path = (t == null ? void 0 : t.path) || "", e.fields.read_timeout = t != null && t.read_timeout || (t == null ? void 0 : t.read_timeout) === 0 ? t == null ? void 0 : t.read_timeout : 6e4, e.fields.retries = t != null && t.retries || (t == null ? void 0 : t.retries) === 0 ? t == null ? void 0 : t.retries : 5, e.fields.host = (t == null ? void 0 : t.host) || "", e.fields.connect_timeout = t != null && t.connect_timeout || (t == null ? void 0 : t.connect_timeout) === 0 ? t == null ? void 0 : t.connect_timeout : 6e4, e.fields.tls_verify_enabled = (t == null ? void 0 : t.tls_verify) !== "" && (t == null ? void 0 : t.tls_verify) !== null && (t == null ? void 0 : t.tls_verify) !== void 0, e.fields.tls_verify_value = t != null && t.tls_verify ? t == null ? void 0 : t.tls_verify : !1, e.fields.ca_certificates = ((v = t == null ? void 0 : t.ca_certificates) == null ? void 0 : v.join(",")) || "", e.fields.client_certificate = ((M = t == null ? void 0 : t.client_certificate) == null ? void 0 : M.id) || "", e.fields.write_timeout = t != null && t.write_timeout || (t == null ? void 0 : t.write_timeout) === 0 ? t == null ? void 0 : t.write_timeout : 6e4, e.fields.port = t != null && t.port || (t == null ? void 0 : t.port) === 0 ? t == null ? void 0 : t.port : 80, Object.assign(w, e.fields);
|
|
896
908
|
}, ce = () => {
|
|
897
909
|
N.push(r.config.cancelRoute);
|
|
898
|
-
}, Ve =
|
|
910
|
+
}, Ve = b(() => {
|
|
899
911
|
var i, v;
|
|
900
912
|
let t = `${r.config.apiBaseUrl}${se.form[r.config.app].validate}`;
|
|
901
913
|
return r.config.app === "konnect" ? t = t.replace(/{controlPlaneId}/gi, ((i = r.config) == null ? void 0 : i.controlPlaneId) || "") : r.config.app === "kongManager" && (t = t.replace(/\/{workspace}/gi, (v = r.config) != null && v.workspace ? `/${r.config.workspace}` : "")), t = t.replace(/{id}/gi, r.gatewayServiceId), t;
|
|
902
|
-
}),
|
|
914
|
+
}), oe = b(() => {
|
|
903
915
|
var i, v;
|
|
904
916
|
let t = `${r.config.apiBaseUrl}${se.form[r.config.app][O.value]}`;
|
|
905
917
|
return r.config.app === "konnect" ? t = t.replace(/{controlPlaneId}/gi, ((i = r.config) == null ? void 0 : i.controlPlaneId) || "") : r.config.app === "kongManager" && (t = t.replace(/\/{workspace}/gi, (v = r.config) != null && v.workspace ? `/${r.config.workspace}` : "")), t = t.replace(/{id}/gi, r.gatewayServiceId), t;
|
|
906
918
|
}), B = (t) => {
|
|
907
919
|
let i = "";
|
|
908
920
|
t.url && (i = new URL(t.url).protocol), (["https", "wss", "tls"].includes(t.protocol) || ["https", "wss", "tls"].includes(i)) && (t.tls_verify = t.tls_verify_enabled ? t.tls_verify_value : null), delete t.tls_verify_enabled, delete t.tls_verify_value;
|
|
909
|
-
},
|
|
910
|
-
var i, v,
|
|
921
|
+
}, K = b(() => {
|
|
922
|
+
var i, v, M, V;
|
|
911
923
|
const t = {
|
|
912
924
|
name: e.fields.name || null,
|
|
913
|
-
tags: e.fields.tags ? (
|
|
925
|
+
tags: e.fields.tags ? (M = (v = (i = e.fields.tags) == null ? void 0 : i.split(",")) == null ? void 0 : v.map((h) => String(h || "").trim())) == null ? void 0 : M.filter((h) => h !== "") : null,
|
|
914
926
|
protocol: e.fields.protocol,
|
|
915
927
|
path: e.fields.path || null,
|
|
916
928
|
read_timeout: e.fields.read_timeout,
|
|
@@ -925,17 +937,17 @@ const ve = {
|
|
|
925
937
|
port: e.fields.port,
|
|
926
938
|
url: e.fields.url
|
|
927
939
|
};
|
|
928
|
-
return e.fields.client_certificate && ["https", "wss", "tls"].includes(e.fields.protocol) && (t.client_certificate = { id: e.fields.client_certificate }), e.fields.tls_verify_enabled && ["https", "wss", "tls"].includes(e.fields.protocol) && (t.tls_verify = e.fields.tls_verify_value), Q.value || (t.path = null), O.value === "create" ?
|
|
940
|
+
return e.fields.client_certificate && ["https", "wss", "tls"].includes(e.fields.protocol) && (t.client_certificate = { id: e.fields.client_certificate }), e.fields.tls_verify_enabled && ["https", "wss", "tls"].includes(e.fields.protocol) && (t.tls_verify = e.fields.tls_verify_value), Q.value || (t.path = null), O.value === "create" ? _.value === "url" ? (delete t.protocol, delete t.host, delete t.path, r.config.app === "konnect" && delete t.port) : delete t.url : O.value === "edit" && delete t.url, t;
|
|
929
941
|
}), j = async () => {
|
|
930
|
-
var t, i, v,
|
|
942
|
+
var t, i, v, M;
|
|
931
943
|
try {
|
|
932
944
|
e.isReadonly = !0, T();
|
|
933
|
-
const V =
|
|
945
|
+
const V = K.value;
|
|
934
946
|
B(V);
|
|
935
947
|
let h;
|
|
936
|
-
if (await C.post(Ve.value, V), O.value === "create" ? h = await C.post(
|
|
937
|
-
const { data:
|
|
938
|
-
e.fields.name = (
|
|
948
|
+
if (await C.post(Ve.value, V), O.value === "create" ? h = await C.post(oe.value, V) : O.value === "edit" && (h = ((t = r.config) == null ? void 0 : t.app) === "konnect" ? await C.put(oe.value, V) : await C.patch(oe.value, V)), h) {
|
|
949
|
+
const { data: l } = h;
|
|
950
|
+
e.fields.name = (l == null ? void 0 : l.name) || "", e.fields.port = l.port || Y.getPortFromProtocol(l.protocol), e.fields.protocol = (l == null ? void 0 : l.protocol) || "http", e.fields.host = (l == null ? void 0 : l.host) || "", e.fields.path = (l == null ? void 0 : l.path) || "", e.fields.url = (l == null ? void 0 : l.url) || "", e.fields.retries = l != null && l.retries || (l == null ? void 0 : l.retries) === 0 ? l == null ? void 0 : l.retries : 5, e.fields.connect_timeout = l != null && l.connect_timeout || (l == null ? void 0 : l.connect_timeout) === 0 ? l == null ? void 0 : l.connect_timeout : 6e4, e.fields.write_timeout = l != null && l.write_timeout || (l == null ? void 0 : l.write_timeout) === 0 ? l == null ? void 0 : l.write_timeout : 6e4, e.fields.read_timeout = l != null && l.read_timeout || (l == null ? void 0 : l.read_timeout) === 0 ? l == null ? void 0 : l.read_timeout : 6e4, e.fields.client_certificate = ((i = l == null ? void 0 : l.client_certificate) == null ? void 0 : i.id) || "", e.fields.ca_certificates = (v = l == null ? void 0 : l.ca_certificates) != null && v.length ? l == null ? void 0 : l.ca_certificates.join(",") : "", e.fields.tls_verify_enabled = (l == null ? void 0 : l.tls_verify) !== "" && (l == null ? void 0 : l.tls_verify) !== null && (l == null ? void 0 : l.tls_verify) !== void 0, e.fields.tls_verify_value = e.fields.tls_verify_enabled && (l == null ? void 0 : l.tls_verify), e.fields.tags = (M = l == null ? void 0 : l.tags) != null && M.length ? l.tags.join(", ") : "", Object.assign(w, e.fields), c("update", h == null ? void 0 : h.data);
|
|
939
951
|
}
|
|
940
952
|
return h;
|
|
941
953
|
} catch (V) {
|
|
@@ -947,26 +959,26 @@ const ve = {
|
|
|
947
959
|
return Ie(() => r.gatewayServiceId, () => {
|
|
948
960
|
Object.assign(e.fields, w);
|
|
949
961
|
}), Ie(e.fields, (t) => {
|
|
950
|
-
e.fields.port = Y.getPortFromProtocol(t.protocol, String(t.port)), c("model-updated",
|
|
962
|
+
e.fields.port = Y.getPortFromProtocol(t.protocol, String(t.port)), c("model-updated", K.value);
|
|
951
963
|
}), De(() => {
|
|
952
|
-
c("model-updated",
|
|
964
|
+
c("model-updated", K.value);
|
|
953
965
|
}), D({
|
|
954
966
|
validateUrl: T,
|
|
955
|
-
getPayload:
|
|
967
|
+
getPayload: K,
|
|
956
968
|
saveFormData: j,
|
|
957
969
|
canSubmit: te,
|
|
958
970
|
initForm: ne
|
|
959
971
|
}), (t, i) => {
|
|
960
|
-
const v = F("KInput"),
|
|
972
|
+
const v = F("KInput"), M = F("KLabel"), V = F("KRadio"), h = F("KSelect"), l = F("KCheckbox"), u = F("KCollapse");
|
|
961
973
|
return S(), U("div", St, [
|
|
962
|
-
d(
|
|
974
|
+
d(o(st), {
|
|
963
975
|
"can-submit": te.value,
|
|
964
976
|
config: n.config,
|
|
965
977
|
"edit-id": n.gatewayServiceId,
|
|
966
|
-
"entity-type":
|
|
978
|
+
"entity-type": o(Fe).GatewayService,
|
|
967
979
|
"error-message": e.errorMessage,
|
|
968
980
|
"fetch-url": ye.value,
|
|
969
|
-
"form-fields":
|
|
981
|
+
"form-fields": K.value,
|
|
970
982
|
"is-readonly": e.isReadonly,
|
|
971
983
|
onCancel: ce,
|
|
972
984
|
"onFetch:error": i[25] || (i[25] = (s) => t.$emit("error", s)),
|
|
@@ -975,17 +987,17 @@ const ve = {
|
|
|
975
987
|
onSubmit: j
|
|
976
988
|
}, {
|
|
977
989
|
"form-actions": f(() => [
|
|
978
|
-
|
|
990
|
+
Ge(t.$slots, "form-actions", {
|
|
979
991
|
canSubmit: te.value,
|
|
980
992
|
cancel: ce,
|
|
981
993
|
submit: j
|
|
982
994
|
}, void 0, !0)
|
|
983
995
|
]),
|
|
984
996
|
default: f(() => [
|
|
985
|
-
d(
|
|
986
|
-
description:
|
|
997
|
+
d(o($e), {
|
|
998
|
+
description: o(a)("gateway_services.form.sections.general.description"),
|
|
987
999
|
"hide-info-header": n.hideSectionsInfo,
|
|
988
|
-
title:
|
|
1000
|
+
title: o(a)("gateway_services.form.sections.general.title")
|
|
989
1001
|
}, {
|
|
990
1002
|
default: f(() => [
|
|
991
1003
|
d(v, {
|
|
@@ -995,14 +1007,14 @@ const ve = {
|
|
|
995
1007
|
autocomplete: "off",
|
|
996
1008
|
"data-testid": "gateway-service-name-input",
|
|
997
1009
|
error: be.value,
|
|
998
|
-
"error-message":
|
|
999
|
-
label:
|
|
1010
|
+
"error-message": G.value,
|
|
1011
|
+
label: o(a)("gateway_services.form.fields.name.label"),
|
|
1000
1012
|
"label-attributes": {
|
|
1001
|
-
info:
|
|
1013
|
+
info: o(a)("gateway_services.form.fields.name.tooltip"),
|
|
1002
1014
|
tooltipAttributes: { maxWidth: "400" }
|
|
1003
1015
|
},
|
|
1004
1016
|
name: "name",
|
|
1005
|
-
placeholder:
|
|
1017
|
+
placeholder: o(a)("gateway_services.form.fields.name.placeholder"),
|
|
1006
1018
|
readonly: e.isReadonly,
|
|
1007
1019
|
type: "text",
|
|
1008
1020
|
onInput: Ce
|
|
@@ -1013,95 +1025,95 @@ const ve = {
|
|
|
1013
1025
|
modelModifiers: { trim: !0 },
|
|
1014
1026
|
autocomplete: "off",
|
|
1015
1027
|
"data-testid": "gateway-service-tags-input",
|
|
1016
|
-
help:
|
|
1017
|
-
label:
|
|
1028
|
+
help: o(a)("gateway_services.form.fields.tags.help"),
|
|
1029
|
+
label: o(a)("gateway_services.form.fields.tags.label"),
|
|
1018
1030
|
"label-attributes": {
|
|
1019
|
-
info:
|
|
1031
|
+
info: o(a)("gateway_services.form.fields.tags.tooltip"),
|
|
1020
1032
|
tooltipAttributes: { maxWidth: "400" }
|
|
1021
1033
|
},
|
|
1022
1034
|
name: "tags",
|
|
1023
|
-
placeholder:
|
|
1035
|
+
placeholder: o(a)("gateway_services.form.fields.tags.placeholder"),
|
|
1024
1036
|
readonly: e.isReadonly,
|
|
1025
1037
|
type: "text"
|
|
1026
1038
|
}, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"])
|
|
1027
1039
|
]),
|
|
1028
1040
|
_: 1
|
|
1029
1041
|
}, 8, ["description", "hide-info-header", "title"]),
|
|
1030
|
-
d(
|
|
1031
|
-
description:
|
|
1042
|
+
d(o($e), {
|
|
1043
|
+
description: o(a)("gateway_services.form.sections.keys.description"),
|
|
1032
1044
|
"hide-info-header": n.hideSectionsInfo,
|
|
1033
|
-
title:
|
|
1045
|
+
title: o(a)("gateway_services.form.sections.keys.title")
|
|
1034
1046
|
}, {
|
|
1035
1047
|
default: f(() => [
|
|
1036
1048
|
H.value ? L("", !0) : (S(), U("div", It, [
|
|
1037
1049
|
k("div", Tt, [
|
|
1038
|
-
d(
|
|
1050
|
+
d(M, { required: "" }, {
|
|
1039
1051
|
default: f(() => [
|
|
1040
|
-
|
|
1052
|
+
R(y(o(a)("gateway_services.form.sections.keys.checkedGroupLabel")), 1)
|
|
1041
1053
|
]),
|
|
1042
1054
|
_: 1
|
|
1043
1055
|
})
|
|
1044
1056
|
]),
|
|
1045
1057
|
k("div", Et, [
|
|
1046
1058
|
d(V, {
|
|
1047
|
-
modelValue:
|
|
1048
|
-
"onUpdate:modelValue": i[2] || (i[2] = (s) =>
|
|
1059
|
+
modelValue: _.value,
|
|
1060
|
+
"onUpdate:modelValue": i[2] || (i[2] = (s) => _.value = s),
|
|
1049
1061
|
"data-testid": "gateway-service-url-radio",
|
|
1050
1062
|
"selected-value": re.url,
|
|
1051
|
-
onChange:
|
|
1063
|
+
onChange: z
|
|
1052
1064
|
}, {
|
|
1053
1065
|
default: f(() => [
|
|
1054
|
-
|
|
1066
|
+
R(y(o(a)("gateway_services.form.sections.keys.urlLabel")), 1)
|
|
1055
1067
|
]),
|
|
1056
1068
|
_: 1
|
|
1057
1069
|
}, 8, ["modelValue", "selected-value"])
|
|
1058
1070
|
]),
|
|
1059
|
-
|
|
1071
|
+
_.value === "url" ? (S(), U("div", Pt, [
|
|
1060
1072
|
d(v, {
|
|
1061
1073
|
modelValue: e.fields.url,
|
|
1062
1074
|
"onUpdate:modelValue": i[3] || (i[3] = (s) => e.fields.url = s),
|
|
1063
1075
|
modelModifiers: { trim: !0 },
|
|
1064
1076
|
class: "gateway-service-url-input gateway-service-form-margin-bottom",
|
|
1065
1077
|
"data-testid": "gateway-service-url-input",
|
|
1066
|
-
label:
|
|
1078
|
+
label: o(a)("gateway_services.form.fields.upstream_url.label"),
|
|
1067
1079
|
"label-attributes": {
|
|
1068
|
-
info: n.config.app === "konnect" ?
|
|
1080
|
+
info: n.config.app === "konnect" ? o(a)("gateway_services.form.fields.upstream_url.tooltip_for_konnect") : o(a)("gateway_services.form.fields.upstream_url.tooltip_for_km"),
|
|
1069
1081
|
tooltipAttributes: { maxWidth: "400" }
|
|
1070
1082
|
},
|
|
1071
1083
|
name: "url",
|
|
1072
|
-
placeholder:
|
|
1084
|
+
placeholder: o(a)("gateway_services.form.fields.upstream_url.placeholder"),
|
|
1073
1085
|
required: ""
|
|
1074
1086
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder"])
|
|
1075
1087
|
])) : L("", !0),
|
|
1076
1088
|
d(V, {
|
|
1077
|
-
modelValue:
|
|
1078
|
-
"onUpdate:modelValue": i[4] || (i[4] = (s) =>
|
|
1089
|
+
modelValue: _.value,
|
|
1090
|
+
"onUpdate:modelValue": i[4] || (i[4] = (s) => _.value = s),
|
|
1079
1091
|
"checked-group": "protocol",
|
|
1080
1092
|
"data-testid": "gateway-service-protocol-radio",
|
|
1081
1093
|
"selected-value": re.protocol,
|
|
1082
|
-
onChange:
|
|
1094
|
+
onChange: z
|
|
1083
1095
|
}, {
|
|
1084
1096
|
default: f(() => [
|
|
1085
|
-
|
|
1097
|
+
R(y(o(a)("gateway_services.form.sections.keys.checkedGroupAltLabel")), 1)
|
|
1086
1098
|
]),
|
|
1087
1099
|
_: 1
|
|
1088
1100
|
}, 8, ["modelValue", "selected-value"])
|
|
1089
1101
|
])),
|
|
1090
|
-
|
|
1102
|
+
_.value === "protocol" || H.value ? (S(), U("div", Ut, [
|
|
1091
1103
|
d(h, {
|
|
1092
1104
|
modelValue: e.fields.protocol,
|
|
1093
1105
|
"onUpdate:modelValue": i[5] || (i[5] = (s) => e.fields.protocol = s),
|
|
1094
1106
|
"data-testid": "gateway-service-protocol-select",
|
|
1095
1107
|
items: he,
|
|
1096
|
-
label:
|
|
1108
|
+
label: o(a)("gateway_services.form.fields.protocol.label"),
|
|
1097
1109
|
"label-attributes": {
|
|
1098
|
-
info:
|
|
1110
|
+
info: o(a)("gateway_services.form.fields.protocol.tooltip"),
|
|
1099
1111
|
tooltipAttributes: { maxWidth: "400" }
|
|
1100
1112
|
},
|
|
1101
1113
|
readonly: e.isReadonly,
|
|
1102
1114
|
required: "",
|
|
1103
1115
|
width: "100%",
|
|
1104
|
-
onSelected: i[6] || (i[6] = (s) =>
|
|
1116
|
+
onSelected: i[6] || (i[6] = (s) => J(e.fields.protocol, s))
|
|
1105
1117
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
1106
1118
|
d(v, {
|
|
1107
1119
|
modelValue: e.fields.host,
|
|
@@ -1109,13 +1121,13 @@ const ve = {
|
|
|
1109
1121
|
modelModifiers: { trim: !0 },
|
|
1110
1122
|
class: "gateway-service-form-margin-top",
|
|
1111
1123
|
"data-testid": "gateway-service-host-input",
|
|
1112
|
-
label:
|
|
1124
|
+
label: o(a)("gateway_services.form.fields.host.label"),
|
|
1113
1125
|
"label-attributes": {
|
|
1114
|
-
info:
|
|
1126
|
+
info: o(a)("gateway_services.form.fields.host.tooltip"),
|
|
1115
1127
|
tooltipAttributes: { maxWidth: "400" }
|
|
1116
1128
|
},
|
|
1117
1129
|
name: "host",
|
|
1118
|
-
placeholder:
|
|
1130
|
+
placeholder: o(a)("gateway_services.form.fields.host.placeholder"),
|
|
1119
1131
|
required: ""
|
|
1120
1132
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder"]),
|
|
1121
1133
|
Q.value ? (S(), U("div", Rt, [
|
|
@@ -1125,13 +1137,13 @@ const ve = {
|
|
|
1125
1137
|
modelModifiers: { trim: !0 },
|
|
1126
1138
|
class: "gateway-service-form-margin-top",
|
|
1127
1139
|
"data-testid": "gateway-service-path-input",
|
|
1128
|
-
label:
|
|
1140
|
+
label: o(a)("gateway_services.form.fields.path.label"),
|
|
1129
1141
|
"label-attributes": {
|
|
1130
|
-
info:
|
|
1142
|
+
info: o(a)("gateway_services.form.fields.path.tooltip"),
|
|
1131
1143
|
tooltipAttributes: { maxWidth: "400" }
|
|
1132
1144
|
},
|
|
1133
1145
|
name: "path",
|
|
1134
|
-
placeholder:
|
|
1146
|
+
placeholder: o(a)("gateway_services.form.fields.path.placeholder")
|
|
1135
1147
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder"])
|
|
1136
1148
|
])) : L("", !0),
|
|
1137
1149
|
d(v, {
|
|
@@ -1144,9 +1156,9 @@ const ve = {
|
|
|
1144
1156
|
],
|
|
1145
1157
|
class: "gateway-service-form-margin-top",
|
|
1146
1158
|
"data-testid": "gateway-service-port-input",
|
|
1147
|
-
label:
|
|
1159
|
+
label: o(a)("gateway_services.form.fields.port.label"),
|
|
1148
1160
|
"label-attributes": {
|
|
1149
|
-
info:
|
|
1161
|
+
info: o(a)("gateway_services.form.fields.port.tooltip"),
|
|
1150
1162
|
tooltipAttributes: { maxWidth: "400" }
|
|
1151
1163
|
},
|
|
1152
1164
|
name: "port",
|
|
@@ -1154,11 +1166,11 @@ const ve = {
|
|
|
1154
1166
|
}, null, 8, ["modelValue", "label", "label-attributes"])
|
|
1155
1167
|
])) : L("", !0),
|
|
1156
1168
|
d(u, {
|
|
1157
|
-
modelValue:
|
|
1158
|
-
"onUpdate:modelValue": i[24] || (i[24] = (s) =>
|
|
1169
|
+
modelValue: x.value,
|
|
1170
|
+
"onUpdate:modelValue": i[24] || (i[24] = (s) => x.value = s),
|
|
1159
1171
|
"data-testid": "advanced-fields-collapse",
|
|
1160
1172
|
"trigger-alignment": "leading",
|
|
1161
|
-
"trigger-label":
|
|
1173
|
+
"trigger-label": o(a)("gateway_services.form.sections.keys.viewAdvancedFields")
|
|
1162
1174
|
}, {
|
|
1163
1175
|
default: f(() => [
|
|
1164
1176
|
k("div", Mt, [
|
|
@@ -1173,9 +1185,9 @@ const ve = {
|
|
|
1173
1185
|
],
|
|
1174
1186
|
autocomplete: "off",
|
|
1175
1187
|
"data-testid": "gateway-service-retries-input",
|
|
1176
|
-
label:
|
|
1188
|
+
label: o(a)("gateway_services.form.fields.retries.label"),
|
|
1177
1189
|
"label-attributes": {
|
|
1178
|
-
info:
|
|
1190
|
+
info: o(a)("gateway_services.form.fields.retries.tooltip"),
|
|
1179
1191
|
tooltipAttributes: { maxWidth: "400" }
|
|
1180
1192
|
},
|
|
1181
1193
|
name: "retries",
|
|
@@ -1194,9 +1206,9 @@ const ve = {
|
|
|
1194
1206
|
],
|
|
1195
1207
|
autocomplete: "off",
|
|
1196
1208
|
"data-testid": "gateway-service-connTimeout-input",
|
|
1197
|
-
label:
|
|
1209
|
+
label: o(a)("gateway_services.form.fields.connect_timeout.label"),
|
|
1198
1210
|
"label-attributes": {
|
|
1199
|
-
info:
|
|
1211
|
+
info: o(a)("gateway_services.form.fields.connect_timeout.tooltip"),
|
|
1200
1212
|
tooltipAttributes: { maxWidth: "400" }
|
|
1201
1213
|
},
|
|
1202
1214
|
name: "connTimeout",
|
|
@@ -1215,9 +1227,9 @@ const ve = {
|
|
|
1215
1227
|
],
|
|
1216
1228
|
autocomplete: "off",
|
|
1217
1229
|
"data-testid": "gateway-service-writeTimeout-input",
|
|
1218
|
-
label:
|
|
1230
|
+
label: o(a)("gateway_services.form.fields.write_timeout.label"),
|
|
1219
1231
|
"label-attributes": {
|
|
1220
|
-
info:
|
|
1232
|
+
info: o(a)("gateway_services.form.fields.write_timeout.tooltip"),
|
|
1221
1233
|
tooltipAttributes: { maxWidth: "400" }
|
|
1222
1234
|
},
|
|
1223
1235
|
name: "writeTimeout",
|
|
@@ -1236,9 +1248,9 @@ const ve = {
|
|
|
1236
1248
|
],
|
|
1237
1249
|
autocomplete: "off",
|
|
1238
1250
|
"data-testid": "gateway-service-readTimeout-input",
|
|
1239
|
-
label:
|
|
1251
|
+
label: o(a)("gateway_services.form.fields.read_timeout.label"),
|
|
1240
1252
|
"label-attributes": {
|
|
1241
|
-
info:
|
|
1253
|
+
info: o(a)("gateway_services.form.fields.read_timeout.tooltip"),
|
|
1242
1254
|
tooltipAttributes: { maxWidth: "400" }
|
|
1243
1255
|
},
|
|
1244
1256
|
name: "readTimeout",
|
|
@@ -1253,13 +1265,13 @@ const ve = {
|
|
|
1253
1265
|
modelModifiers: { trim: !0 },
|
|
1254
1266
|
autocomplete: "off",
|
|
1255
1267
|
"data-testid": "gateway-service-clientCert-input",
|
|
1256
|
-
label:
|
|
1268
|
+
label: o(a)("gateway_services.form.fields.client_certificate.label"),
|
|
1257
1269
|
"label-attributes": {
|
|
1258
|
-
info:
|
|
1270
|
+
info: o(a)("gateway_services.form.fields.client_certificate.tooltip"),
|
|
1259
1271
|
tooltipAttributes: { maxWidth: "400" }
|
|
1260
1272
|
},
|
|
1261
1273
|
name: "clientCert",
|
|
1262
|
-
placeholder:
|
|
1274
|
+
placeholder: o(a)("gateway_services.form.fields.client_certificate.placeholder"),
|
|
1263
1275
|
readonly: e.isReadonly,
|
|
1264
1276
|
type: "text"
|
|
1265
1277
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"])
|
|
@@ -1271,22 +1283,22 @@ const ve = {
|
|
|
1271
1283
|
modelModifiers: { trim: !0 },
|
|
1272
1284
|
autocomplete: "off",
|
|
1273
1285
|
"data-testid": "gateway-service-ca-certs-input",
|
|
1274
|
-
label:
|
|
1286
|
+
label: o(a)("gateway_services.form.fields.ca_certificates.label"),
|
|
1275
1287
|
"label-attributes": { tooltipAttributes: { maxWidth: "400" } },
|
|
1276
|
-
placeholder:
|
|
1288
|
+
placeholder: o(a)("gateway_services.form.fields.ca_certificates.placeholder"),
|
|
1277
1289
|
readonly: e.isReadonly,
|
|
1278
1290
|
type: "text"
|
|
1279
1291
|
}, {
|
|
1280
1292
|
"label-tooltip": f(() => [
|
|
1281
|
-
d(
|
|
1293
|
+
d(o(q), {
|
|
1282
1294
|
keypath: "gateway_services.form.fields.ca_certificates.tooltip",
|
|
1283
1295
|
scope: "global"
|
|
1284
1296
|
}, {
|
|
1285
1297
|
code1: f(() => [
|
|
1286
|
-
k("code", null,
|
|
1298
|
+
k("code", null, y(o(a)("gateway_services.form.fields.ca_certificates.code1")), 1)
|
|
1287
1299
|
]),
|
|
1288
1300
|
code2: f(() => [
|
|
1289
|
-
k("code", null,
|
|
1301
|
+
k("code", null, y(o(a)("gateway_services.form.fields.ca_certificates.code2")), 1)
|
|
1290
1302
|
]),
|
|
1291
1303
|
_: 1
|
|
1292
1304
|
})
|
|
@@ -1295,42 +1307,42 @@ const ve = {
|
|
|
1295
1307
|
}, 8, ["modelValue", "label", "placeholder", "readonly"])
|
|
1296
1308
|
])) : L("", !0),
|
|
1297
1309
|
ke.value ? (S(), U("div", Dt, [
|
|
1298
|
-
d(
|
|
1310
|
+
d(l, {
|
|
1299
1311
|
modelValue: e.fields.tls_verify_enabled,
|
|
1300
1312
|
"onUpdate:modelValue": i[21] || (i[21] = (s) => e.fields.tls_verify_enabled = s),
|
|
1301
1313
|
"data-testid": "gateway-service-tls-verify-checkbox",
|
|
1302
|
-
description:
|
|
1303
|
-
label:
|
|
1314
|
+
description: o(a)("gateway_services.form.fields.tls_verify_enabled.help"),
|
|
1315
|
+
label: o(a)("gateway_services.form.fields.tls_verify_enabled.label"),
|
|
1304
1316
|
"label-attributes": { tooltipAttributes: { maxWidth: "400" } }
|
|
1305
1317
|
}, {
|
|
1306
1318
|
tooltip: f(() => [
|
|
1307
|
-
d(
|
|
1319
|
+
d(o(q), {
|
|
1308
1320
|
keypath: "gateway_services.form.fields.tls_verify_enabled.tooltip",
|
|
1309
1321
|
scope: "global"
|
|
1310
1322
|
}, {
|
|
1311
1323
|
code1: f(() => [
|
|
1312
|
-
k("code", null,
|
|
1324
|
+
k("code", null, y(o(a)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
|
|
1313
1325
|
]),
|
|
1314
1326
|
_: 1
|
|
1315
1327
|
})
|
|
1316
1328
|
]),
|
|
1317
1329
|
_: 1
|
|
1318
1330
|
}, 8, ["modelValue", "description", "label"]),
|
|
1319
|
-
e.fields.tls_verify_enabled ? (S(), U("div",
|
|
1331
|
+
e.fields.tls_verify_enabled ? (S(), U("div", Gt, [
|
|
1320
1332
|
d(V, {
|
|
1321
1333
|
modelValue: e.fields.tls_verify_value,
|
|
1322
1334
|
"onUpdate:modelValue": i[22] || (i[22] = (s) => e.fields.tls_verify_value = s),
|
|
1323
1335
|
"data-testid": "gateway-service-tls-verify-true-option",
|
|
1324
|
-
label:
|
|
1336
|
+
label: o(a)("gateway_services.form.fields.tls_verify_option.true.label"),
|
|
1325
1337
|
"selected-value": !0
|
|
1326
1338
|
}, null, 8, ["modelValue", "label"])
|
|
1327
1339
|
])) : L("", !0),
|
|
1328
|
-
e.fields.tls_verify_enabled ? (S(), U("div",
|
|
1340
|
+
e.fields.tls_verify_enabled ? (S(), U("div", Kt, [
|
|
1329
1341
|
d(V, {
|
|
1330
1342
|
modelValue: e.fields.tls_verify_value,
|
|
1331
1343
|
"onUpdate:modelValue": i[23] || (i[23] = (s) => e.fields.tls_verify_value = s),
|
|
1332
1344
|
"data-testid": "gateway-service-tls-verify-false-option",
|
|
1333
|
-
label:
|
|
1345
|
+
label: o(a)("gateway_services.form.fields.tls_verify_option.false.label"),
|
|
1334
1346
|
"selected-value": !1
|
|
1335
1347
|
}, null, 8, ["modelValue", "label"])
|
|
1336
1348
|
])) : L("", !0)
|
|
@@ -1348,7 +1360,7 @@ const ve = {
|
|
|
1348
1360
|
]);
|
|
1349
1361
|
};
|
|
1350
1362
|
}
|
|
1351
|
-
}), Qt = /* @__PURE__ */
|
|
1363
|
+
}), Qt = /* @__PURE__ */ Be(qt, [["__scopeId", "data-v-35e0db56"]]), Ot = { class: "kong-ui-gateway-service-entity-config-card" }, Xt = /* @__PURE__ */ Te({
|
|
1352
1364
|
__name: "GatewayServiceConfigCard",
|
|
1353
1365
|
props: {
|
|
1354
1366
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -1375,7 +1387,7 @@ const ve = {
|
|
|
1375
1387
|
},
|
|
1376
1388
|
emits: ["loading", "fetch:error", "fetch:success"],
|
|
1377
1389
|
setup(n) {
|
|
1378
|
-
const D = n, { i18n: { t: p }, i18nT: c } = ve.useI18n(), r =
|
|
1390
|
+
const D = n, { i18n: { t: p }, i18nT: c } = ve.useI18n(), r = b(() => se.form[D.config.app].edit), { getPropValue: x } = rt(), N = (a, P) => x(a, P) === !0 ? p("gateway_services.form.fields.tls_verify_option.true.display") : p("gateway_services.form.fields.tls_verify_option.false.display"), q = E({
|
|
1379
1391
|
id: {},
|
|
1380
1392
|
name: {
|
|
1381
1393
|
tooltip: p("gateway_services.form.fields.name.tooltip")
|
|
@@ -1436,11 +1448,11 @@ const ve = {
|
|
|
1436
1448
|
}
|
|
1437
1449
|
});
|
|
1438
1450
|
return (a, P) => (S(), U("div", Ot, [
|
|
1439
|
-
d(
|
|
1451
|
+
d(o(nt), {
|
|
1440
1452
|
config: n.config,
|
|
1441
1453
|
"config-card-doc": n.configCardDoc,
|
|
1442
1454
|
"config-schema": q.value,
|
|
1443
|
-
"entity-type":
|
|
1455
|
+
"entity-type": o(Fe).GatewayService,
|
|
1444
1456
|
"fetch-url": r.value,
|
|
1445
1457
|
"hide-title": n.hideTitle,
|
|
1446
1458
|
"onFetch:error": P[0] || (P[0] = (C) => a.$emit("fetch:error", C)),
|
|
@@ -1448,49 +1460,49 @@ const ve = {
|
|
|
1448
1460
|
onLoading: P[2] || (P[2] = (C) => a.$emit("loading", C))
|
|
1449
1461
|
}, {
|
|
1450
1462
|
"enabled-label-tooltip": f(() => [
|
|
1451
|
-
d(
|
|
1463
|
+
d(o(c), {
|
|
1452
1464
|
keypath: "gateway_services.form.fields.enabled.tooltip",
|
|
1453
1465
|
scope: "global"
|
|
1454
1466
|
}, {
|
|
1455
1467
|
false: f(() => [
|
|
1456
|
-
k("code", null,
|
|
1468
|
+
k("code", null, y(o(p)("gateway_services.form.fields.enabled.false")), 1)
|
|
1457
1469
|
]),
|
|
1458
1470
|
true: f(() => [
|
|
1459
|
-
k("code", null,
|
|
1471
|
+
k("code", null, y(o(p)("gateway_services.form.fields.enabled.true")), 1)
|
|
1460
1472
|
]),
|
|
1461
1473
|
_: 1
|
|
1462
1474
|
})
|
|
1463
1475
|
]),
|
|
1464
1476
|
"ca_certificates-label-tooltip": f(() => [
|
|
1465
|
-
d(
|
|
1477
|
+
d(o(c), {
|
|
1466
1478
|
keypath: "gateway_services.form.fields.ca_certificates.tooltip",
|
|
1467
1479
|
scope: "global"
|
|
1468
1480
|
}, {
|
|
1469
1481
|
code1: f(() => [
|
|
1470
|
-
k("code", null,
|
|
1482
|
+
k("code", null, y(o(p)("gateway_services.form.fields.ca_certificates.code1")), 1)
|
|
1471
1483
|
]),
|
|
1472
1484
|
code2: f(() => [
|
|
1473
|
-
k("code", null,
|
|
1485
|
+
k("code", null, y(o(p)("gateway_services.form.fields.ca_certificates.code2")), 1)
|
|
1474
1486
|
]),
|
|
1475
1487
|
_: 1
|
|
1476
1488
|
})
|
|
1477
1489
|
]),
|
|
1478
1490
|
"tls_verify-label-tooltip": f(() => [
|
|
1479
|
-
d(
|
|
1491
|
+
d(o(c), {
|
|
1480
1492
|
keypath: "gateway_services.form.fields.tls_verify_enabled.tooltip",
|
|
1481
1493
|
scope: "global"
|
|
1482
1494
|
}, {
|
|
1483
1495
|
code1: f(() => [
|
|
1484
|
-
k("code", null,
|
|
1496
|
+
k("code", null, y(o(p)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
|
|
1485
1497
|
]),
|
|
1486
1498
|
_: 1
|
|
1487
1499
|
})
|
|
1488
1500
|
]),
|
|
1489
1501
|
tls_verify: f((C) => [
|
|
1490
|
-
|
|
1502
|
+
R(y(typeof o(x)("rowValue", C) == "boolean" ? N("rowValue", C) : o(p)("gateway_services.form.fields.tls_verify_option.unset.display")), 1)
|
|
1491
1503
|
]),
|
|
1492
1504
|
client_certificate: f((C) => [
|
|
1493
|
-
|
|
1505
|
+
R(y(o(x)("rowValue", C) ? o(x)("rowValue", C).id : "–"), 1)
|
|
1494
1506
|
]),
|
|
1495
1507
|
_: 1
|
|
1496
1508
|
}, 8, ["config", "config-card-doc", "config-schema", "entity-type", "fetch-url", "hide-title"])
|
|
@@ -1500,5 +1512,5 @@ const ve = {
|
|
|
1500
1512
|
export {
|
|
1501
1513
|
Xt as GatewayServiceConfigCard,
|
|
1502
1514
|
Qt as GatewayServiceForm,
|
|
1503
|
-
|
|
1515
|
+
zt as GatewayServiceList
|
|
1504
1516
|
};
|