@kong-ui-public/entities-gateway-services 3.8.43 → 3.8.44-pr.1820.34981fe32.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 we,
|
|
1
|
+
import { defineComponent as we, computed as h, ref as T, watch as he, onBeforeMount as Ee, resolveComponent as F, openBlock as C, createElementBlock as U, createVNode as d, unref as l, withCtx as p, createBlock as ke, Teleport as Me, createTextVNode as E, toDisplayString as b, createElementVNode as V, withModifiers as be, reactive as Ve, onMounted as xe, renderSlot as Re, createCommentVNode as $ } from "vue";
|
|
2
2
|
import { useRouter as Ie } from "vue-router";
|
|
3
3
|
import { AddIcon as Fe } from "@kong/icons";
|
|
4
4
|
import { createI18n as Ae, i18nTComponent as $e } from "@kong-ui-public/i18n";
|
|
5
|
-
import { useAxios as Te, useFetcher as Be, useDeleteUrlBuilder as De, FetcherStatus as Ge, EntityBaseTable as Le, EntityFilter as Ke, PermissionsWrapper as
|
|
5
|
+
import { useAxios as Te, useFetcher as Be, useDeleteUrlBuilder as De, FetcherStatus as Ge, EntityBaseTable as Le, EntityFilter as Ke, PermissionsWrapper as le, TableTags as qe, EntityToggleModal as Ne, EntityDeleteModal as We, EntityTypes as Oe, useErrors as je, useValidators as He, EntityBaseFormType as Ce, useGatewayFeatureSupported as Je, EntityBaseForm as ze, SupportedEntityType as Pe, EntityFormSection as Se, useHelpers as Qe, ConfigurationSchemaSection as ae, ConfigurationSchemaType as Xe, EntityBaseConfigCard as Ye } from "@kong-ui-public/entities-shared";
|
|
6
6
|
const Ze = {
|
|
7
7
|
create: "New Gateway Service",
|
|
8
8
|
serverless_create: "Add a Service",
|
|
@@ -192,11 +192,11 @@ function rt() {
|
|
|
192
192
|
}
|
|
193
193
|
function at() {
|
|
194
194
|
return {
|
|
195
|
-
getPortFromProtocol: (
|
|
196
|
-
const c = [80, 443],
|
|
197
|
-
if ((
|
|
198
|
-
return
|
|
199
|
-
switch (
|
|
195
|
+
getPortFromProtocol: (A, m) => {
|
|
196
|
+
const c = [80, 443], r = Number(m);
|
|
197
|
+
if ((r || r === 0) && !c.includes(r))
|
|
198
|
+
return r;
|
|
199
|
+
switch (A) {
|
|
200
200
|
case "grpcs":
|
|
201
201
|
case "tls":
|
|
202
202
|
case "https":
|
|
@@ -212,28 +212,28 @@ function at() {
|
|
|
212
212
|
}
|
|
213
213
|
};
|
|
214
214
|
}
|
|
215
|
-
const
|
|
215
|
+
const de = {
|
|
216
216
|
useI18n: rt,
|
|
217
217
|
usePortFromProtocol: at
|
|
218
|
-
},
|
|
218
|
+
}, ne = "/v2/control-planes/{controlPlaneId}/core-entities", ce = "/{workspace}", oe = {
|
|
219
219
|
list: {
|
|
220
220
|
konnect: {
|
|
221
|
-
all: `${
|
|
221
|
+
all: `${ne}/services`
|
|
222
222
|
},
|
|
223
223
|
kongManager: {
|
|
224
|
-
all: `${
|
|
224
|
+
all: `${ce}/services`
|
|
225
225
|
}
|
|
226
226
|
},
|
|
227
227
|
form: {
|
|
228
228
|
konnect: {
|
|
229
|
-
create: `${
|
|
230
|
-
validate: `${
|
|
231
|
-
edit: `${
|
|
229
|
+
create: `${ne}/services`,
|
|
230
|
+
validate: `${ne}/v1/schemas/json/service/validate`,
|
|
231
|
+
edit: `${ne}/services/{id}`
|
|
232
232
|
},
|
|
233
233
|
kongManager: {
|
|
234
|
-
create: `${
|
|
235
|
-
validate: `${
|
|
236
|
-
edit: `${
|
|
234
|
+
create: `${ce}/services`,
|
|
235
|
+
validate: `${ce}/schemas/services/validate`,
|
|
236
|
+
edit: `${ce}/services/{id}`
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
}, nt = { class: "kong-ui-entities-gateway-services-list" }, ct = { key: 1 }, dt = /* @__PURE__ */ we({
|
|
@@ -286,51 +286,55 @@ const ne = {
|
|
|
286
286
|
}
|
|
287
287
|
},
|
|
288
288
|
emits: ["error", "copy:success", "copy:error", "delete:success", "toggle:success"],
|
|
289
|
-
setup(n, { emit:
|
|
289
|
+
setup(n, { emit: A }) {
|
|
290
290
|
var i;
|
|
291
|
-
const m =
|
|
291
|
+
const m = A, c = n, { i18n: { t: r, formatUnixTimeStamp: M } } = de.useI18n(), N = Ie(), { axiosInstance: B } = Te((i = c.config) == null ? void 0 : i.axiosRequestConfig), a = h(() => c.config.app !== "kongManager" || !!c.config.disableSorting), S = {
|
|
292
292
|
// the Name column is non-hidable
|
|
293
|
-
name: { label:
|
|
294
|
-
...c.config.showControlPlaneColumn ? { control_plane: { label:
|
|
295
|
-
protocol: { label:
|
|
296
|
-
host: { label:
|
|
297
|
-
port: { label:
|
|
298
|
-
path: { label:
|
|
299
|
-
enabled: { label:
|
|
300
|
-
tags: { label:
|
|
301
|
-
updated_at: { label:
|
|
302
|
-
created_at: { label:
|
|
303
|
-
},
|
|
293
|
+
name: { label: r("gateway_services.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 },
|
|
294
|
+
...c.config.showControlPlaneColumn ? { control_plane: { label: r("gateway_services.list.table_headers.control_plane") } } : {},
|
|
295
|
+
protocol: { label: r("gateway_services.list.table_headers.protocol"), searchable: !0, sortable: !0 },
|
|
296
|
+
host: { label: r("gateway_services.list.table_headers.host"), searchable: !0, sortable: !0 },
|
|
297
|
+
port: { label: r("gateway_services.list.table_headers.port"), searchable: !0, sortable: !0 },
|
|
298
|
+
path: { label: r("gateway_services.list.table_headers.path"), searchable: !0, sortable: !0 },
|
|
299
|
+
enabled: { label: r("gateway_services.list.table_headers.enabled"), searchable: !0, sortable: !0 },
|
|
300
|
+
tags: { label: r("gateway_services.list.table_headers.tags"), sortable: !1 },
|
|
301
|
+
updated_at: { label: r("gateway_services.list.table_headers.updated_at"), sortable: !0 },
|
|
302
|
+
created_at: { label: r("gateway_services.list.table_headers.created_at"), sortable: !0 }
|
|
303
|
+
}, w = {
|
|
304
304
|
columnVisibility: {
|
|
305
305
|
created_at: !1
|
|
306
306
|
}
|
|
307
|
-
},
|
|
307
|
+
}, ue = S, W = h(() => {
|
|
308
308
|
var v, f;
|
|
309
|
-
let s = `${c.config.apiBaseUrl}${
|
|
309
|
+
let s = `${c.config.apiBaseUrl}${oe.list[c.config.app].all}`;
|
|
310
310
|
return c.config.app === "konnect" ? s = s.replace(/{controlPlaneId}/gi, ((v = c.config) == null ? void 0 : v.controlPlaneId) || "") : c.config.app === "kongManager" && (s = s.replace(/\/{workspace}/gi, (f = c.config) != null && f.workspace ? `/${c.config.workspace}` : "")), s;
|
|
311
|
-
}),
|
|
311
|
+
}), D = h(() => c.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${W.value}`) : new URL(W.value)), O = T(""), j = h(() => {
|
|
312
312
|
const s = c.config.app === "konnect" || c.config.isExactMatch;
|
|
313
313
|
if (s)
|
|
314
314
|
return {
|
|
315
315
|
isExactMatch: s,
|
|
316
|
-
placeholder:
|
|
316
|
+
placeholder: r(`search.placeholder.${c.config.app}`)
|
|
317
317
|
};
|
|
318
|
-
const { name: v, enabled: f, protocol: g, host: o, port: P, path: u } =
|
|
318
|
+
const { name: v, enabled: f, protocol: g, host: o, port: P, path: u } = S;
|
|
319
319
|
return {
|
|
320
320
|
isExactMatch: s,
|
|
321
321
|
fields: { name: v, enabled: f, protocol: g, host: o, port: P, path: u },
|
|
322
322
|
schema: c.config.filterSchema
|
|
323
323
|
};
|
|
324
|
-
}), {
|
|
325
|
-
|
|
324
|
+
}), {
|
|
325
|
+
fetcher: k,
|
|
326
|
+
fetcherState: z,
|
|
327
|
+
fetcherCacheKey: G
|
|
328
|
+
} = Be({ ...c.config, cacheIdentifier: c.cacheIdentifier }, W.value), fe = () => {
|
|
329
|
+
O.value = "";
|
|
326
330
|
}, e = () => {
|
|
327
|
-
|
|
328
|
-
}, _ =
|
|
331
|
+
G.value++;
|
|
332
|
+
}, _ = T(null), pe = h(() => ({
|
|
329
333
|
ctaPath: c.config.createRoute,
|
|
330
|
-
ctaText: t.value ? c.isServerless ?
|
|
331
|
-
message: `${
|
|
332
|
-
title: t.value ? c.isServerless ?
|
|
333
|
-
})),
|
|
334
|
+
ctaText: t.value ? c.isServerless ? r("actions.serverless_create") : r("actions.create") : void 0,
|
|
335
|
+
message: `${r("gateway_services.list.empty_state.description")}${c.config.additionMessageForEmptyState ? ` ${c.config.additionMessageForEmptyState}` : ""}`,
|
|
336
|
+
title: t.value ? c.isServerless ? r("gateway_services.list.empty_state.serverless_title") : r("gateway_services.list.empty_state.title") : r("gateway_services.title")
|
|
337
|
+
})), Q = T(!1), I = T(null), X = h(() => {
|
|
334
338
|
const s = {
|
|
335
339
|
action: "disable",
|
|
336
340
|
id: "",
|
|
@@ -342,21 +346,21 @@ const ne = {
|
|
|
342
346
|
}
|
|
343
347
|
return s;
|
|
344
348
|
}), L = (s) => {
|
|
345
|
-
|
|
346
|
-
},
|
|
347
|
-
|
|
348
|
-
},
|
|
349
|
+
Q.value = !0, I.value = s;
|
|
350
|
+
}, Y = () => {
|
|
351
|
+
Q.value = !1, I.value = null;
|
|
352
|
+
}, ie = async () => {
|
|
349
353
|
var g, o;
|
|
350
354
|
if (!await ((g = c.canEdit) == null ? void 0 : g.call(c, I.value)) || !I.value)
|
|
351
355
|
return;
|
|
352
|
-
const v = `${
|
|
356
|
+
const v = `${D.value.href}/${I.value.id}`, f = !I.value.enabled;
|
|
353
357
|
try {
|
|
354
|
-
const { data: P } = ((o = c.config) == null ? void 0 : o.app) === "konnect" ? await
|
|
358
|
+
const { data: P } = ((o = c.config) == null ? void 0 : o.app) === "konnect" ? await B.put(v, { ...I.value, enabled: f }) : await B.patch(v, { ...I.value, enabled: f });
|
|
355
359
|
m("toggle:success", P), I.value.enabled = f;
|
|
356
360
|
} catch (P) {
|
|
357
361
|
m("error", P);
|
|
358
362
|
}
|
|
359
|
-
},
|
|
363
|
+
}, se = (s) => {
|
|
360
364
|
c.config.getControlPlaneRoute && N.push(c.config.getControlPlaneRoute(s));
|
|
361
365
|
}, me = (s, v) => {
|
|
362
366
|
const f = s.id;
|
|
@@ -364,100 +368,100 @@ const ne = {
|
|
|
364
368
|
m("copy:error", {
|
|
365
369
|
entity: s,
|
|
366
370
|
field: "id",
|
|
367
|
-
message:
|
|
371
|
+
message: r("errors.copy")
|
|
368
372
|
});
|
|
369
373
|
return;
|
|
370
374
|
}
|
|
371
375
|
m("copy:success", {
|
|
372
376
|
entity: s,
|
|
373
377
|
field: "id",
|
|
374
|
-
message:
|
|
378
|
+
message: r("copy.success", { val: f })
|
|
375
379
|
});
|
|
376
380
|
}, ve = (s, v) => {
|
|
377
381
|
const f = JSON.stringify(s);
|
|
378
382
|
if (!v(f)) {
|
|
379
383
|
m("copy:error", {
|
|
380
384
|
entity: s,
|
|
381
|
-
message:
|
|
385
|
+
message: r("errors.copy")
|
|
382
386
|
});
|
|
383
387
|
return;
|
|
384
388
|
}
|
|
385
389
|
m("copy:success", {
|
|
386
390
|
entity: s,
|
|
387
|
-
message:
|
|
391
|
+
message: r("copy.success_brief")
|
|
388
392
|
});
|
|
389
393
|
}, ge = async (s) => {
|
|
390
394
|
var f;
|
|
391
395
|
await ((f = c.canRetrieve) == null ? void 0 : f.call(c, s)) && N.push(c.config.getViewRoute(s.id));
|
|
392
396
|
}, ye = (s) => ({
|
|
393
|
-
label:
|
|
397
|
+
label: r("actions.view"),
|
|
394
398
|
to: c.config.getViewRoute(s)
|
|
395
|
-
}),
|
|
396
|
-
label:
|
|
399
|
+
}), Z = (s) => ({
|
|
400
|
+
label: r("actions.edit"),
|
|
397
401
|
to: c.config.getEditRoute(s)
|
|
398
|
-
}), x =
|
|
399
|
-
x.value = s,
|
|
400
|
-
},
|
|
401
|
-
|
|
402
|
-
},
|
|
402
|
+
}), x = T(void 0), H = T(!1), ee = T(!1), K = T(""), _e = De(c.config, W.value), q = (s) => {
|
|
403
|
+
x.value = s, H.value = !0, K.value = "";
|
|
404
|
+
}, J = () => {
|
|
405
|
+
H.value = !1, x.value = void 0;
|
|
406
|
+
}, re = async () => {
|
|
403
407
|
var s, v, f;
|
|
404
408
|
if ((s = x.value) != null && s.id) {
|
|
405
|
-
|
|
409
|
+
ee.value = !0;
|
|
406
410
|
try {
|
|
407
|
-
await
|
|
411
|
+
await B.delete(_e(x.value.id)), m("delete:success", x.value), J(), G.value++;
|
|
408
412
|
} catch (g) {
|
|
409
|
-
K.value = ((f = (v = g.response) == null ? void 0 : v.data) == null ? void 0 : f.message) || g.message ||
|
|
413
|
+
K.value = ((f = (v = g.response) == null ? void 0 : v.data) == null ? void 0 : f.message) || g.message || r("errors.delete"), m("error", g);
|
|
410
414
|
} finally {
|
|
411
|
-
|
|
415
|
+
ee.value = !1;
|
|
412
416
|
}
|
|
413
417
|
}
|
|
414
418
|
};
|
|
415
|
-
he(
|
|
419
|
+
he(z, (s) => {
|
|
416
420
|
var v, f, g;
|
|
417
421
|
if (s.status === Ge.Error) {
|
|
418
422
|
_.value = {
|
|
419
|
-
title:
|
|
423
|
+
title: r("errors.general")
|
|
420
424
|
}, (g = (f = (v = s.error) == null ? void 0 : v.response) == null ? void 0 : f.data) != null && g.message && (_.value.message = s.error.response.data.message), m("error", s.error);
|
|
421
425
|
return;
|
|
422
426
|
}
|
|
423
427
|
_.value = null;
|
|
424
428
|
});
|
|
425
|
-
const t =
|
|
429
|
+
const t = T(!1);
|
|
426
430
|
return Ee(async () => {
|
|
427
431
|
t.value = await c.canCreate();
|
|
428
432
|
}), (s, v) => {
|
|
429
433
|
const f = F("KButton"), g = F("KBadge"), o = F("KInputSwitch"), P = F("KDropdownItem"), u = F("KClipboardProvider");
|
|
430
|
-
return
|
|
434
|
+
return C(), U("div", nt, [
|
|
431
435
|
d(l(Le), {
|
|
432
436
|
"cache-identifier": n.cacheIdentifier,
|
|
433
|
-
"default-table-preferences":
|
|
434
|
-
"disable-sorting":
|
|
437
|
+
"default-table-preferences": w,
|
|
438
|
+
"disable-sorting": a.value,
|
|
435
439
|
"empty-state-options": pe.value,
|
|
436
440
|
"enable-entity-actions": "",
|
|
437
441
|
"error-message": _.value,
|
|
438
|
-
fetcher: l(
|
|
439
|
-
"fetcher-cache-key":
|
|
442
|
+
fetcher: l(k),
|
|
443
|
+
"fetcher-cache-key": l(G),
|
|
440
444
|
"pagination-type": "offset",
|
|
441
445
|
"preferences-storage-key": "kong-ui-entities-gateway-services-list",
|
|
442
|
-
query:
|
|
443
|
-
"table-headers": l(
|
|
446
|
+
query: O.value,
|
|
447
|
+
"table-headers": l(ue),
|
|
444
448
|
onClearSearchInput: fe,
|
|
445
449
|
"onClick:row": v[2] || (v[2] = (y) => ge(y)),
|
|
446
450
|
onSort: e
|
|
447
451
|
}, {
|
|
448
452
|
"toolbar-filter": p(() => [
|
|
449
453
|
d(l(Ke), {
|
|
450
|
-
modelValue:
|
|
451
|
-
"onUpdate:modelValue": v[0] || (v[0] = (y) =>
|
|
452
|
-
config:
|
|
454
|
+
modelValue: O.value,
|
|
455
|
+
"onUpdate:modelValue": v[0] || (v[0] = (y) => O.value = y),
|
|
456
|
+
config: j.value
|
|
453
457
|
}, null, 8, ["modelValue", "config"])
|
|
454
458
|
]),
|
|
455
459
|
"toolbar-button": p(() => [
|
|
456
|
-
(
|
|
460
|
+
(C(), ke(Me, {
|
|
457
461
|
disabled: !n.useActionOutside,
|
|
458
462
|
to: "#kong-ui-app-page-header-action-button"
|
|
459
463
|
}, [
|
|
460
|
-
d(l(
|
|
464
|
+
d(l(le), {
|
|
461
465
|
"auth-function": () => n.canCreate()
|
|
462
466
|
}, {
|
|
463
467
|
default: p(() => [
|
|
@@ -469,7 +473,7 @@ const ne = {
|
|
|
469
473
|
}, {
|
|
470
474
|
default: p(() => [
|
|
471
475
|
d(l(Fe)),
|
|
472
|
-
E(" " + b(l(
|
|
476
|
+
E(" " + b(l(r)("gateway_services.list.toolbar_actions.new_gateway_service")), 1)
|
|
473
477
|
]),
|
|
474
478
|
_: 1
|
|
475
479
|
}, 8, ["size", "to"])
|
|
@@ -484,21 +488,21 @@ const ne = {
|
|
|
484
488
|
control_plane: p(({ row: y }) => {
|
|
485
489
|
var R;
|
|
486
490
|
return [
|
|
487
|
-
(R = y.x_meta) != null && R.cluster_id ? (
|
|
491
|
+
(R = y.x_meta) != null && R.cluster_id ? (C(), ke(g, {
|
|
488
492
|
key: 0,
|
|
489
493
|
tooltip: y.x_meta.cluster_id,
|
|
490
494
|
"truncation-tooltip": "",
|
|
491
|
-
onClick: be((
|
|
495
|
+
onClick: be((te) => se(y.x_meta.cluster_id), ["stop"])
|
|
492
496
|
}, {
|
|
493
497
|
default: p(() => [
|
|
494
498
|
E(b(y.x_meta.cluster_id), 1)
|
|
495
499
|
]),
|
|
496
500
|
_: 2
|
|
497
|
-
}, 1032, ["tooltip", "onClick"])) : (
|
|
501
|
+
}, 1032, ["tooltip", "onClick"])) : (C(), U("b", ct, "-"))
|
|
498
502
|
];
|
|
499
503
|
}),
|
|
500
504
|
enabled: p(({ row: y }) => [
|
|
501
|
-
d(l(
|
|
505
|
+
d(l(le), {
|
|
502
506
|
"auth-function": () => n.canEdit(y),
|
|
503
507
|
"force-show": ""
|
|
504
508
|
}, {
|
|
@@ -509,10 +513,10 @@ const ne = {
|
|
|
509
513
|
}, [
|
|
510
514
|
d(o, {
|
|
511
515
|
modelValue: y.enabled,
|
|
512
|
-
"onUpdate:modelValue": (
|
|
516
|
+
"onUpdate:modelValue": (te) => y.enabled = te,
|
|
513
517
|
"data-testid": `row-${y.id}-toggle-input`,
|
|
514
518
|
disabled: !R,
|
|
515
|
-
onClick: be((
|
|
519
|
+
onClick: be((te) => L(y), ["prevent"])
|
|
516
520
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "disabled", "onClick"])
|
|
517
521
|
])
|
|
518
522
|
]),
|
|
@@ -533,10 +537,10 @@ const ne = {
|
|
|
533
537
|
default: p(({ copyToClipboard: R }) => [
|
|
534
538
|
d(P, {
|
|
535
539
|
"data-testid": "action-entity-copy-id",
|
|
536
|
-
onClick: (
|
|
540
|
+
onClick: (te) => me(y, R)
|
|
537
541
|
}, {
|
|
538
542
|
default: p(() => [
|
|
539
|
-
E(b(l(
|
|
543
|
+
E(b(l(r)("actions.copy_id")), 1)
|
|
540
544
|
]),
|
|
541
545
|
_: 2
|
|
542
546
|
}, 1032, ["onClick"])
|
|
@@ -547,17 +551,17 @@ const ne = {
|
|
|
547
551
|
default: p(({ copyToClipboard: R }) => [
|
|
548
552
|
d(P, {
|
|
549
553
|
"data-testid": "action-entity-copy-json",
|
|
550
|
-
onClick: (
|
|
554
|
+
onClick: (te) => ve(y, R)
|
|
551
555
|
}, {
|
|
552
556
|
default: p(() => [
|
|
553
|
-
E(b(l(
|
|
557
|
+
E(b(l(r)("actions.copy_json")), 1)
|
|
554
558
|
]),
|
|
555
559
|
_: 2
|
|
556
560
|
}, 1032, ["onClick"])
|
|
557
561
|
]),
|
|
558
562
|
_: 2
|
|
559
563
|
}, 1024),
|
|
560
|
-
d(l(
|
|
564
|
+
d(l(le), {
|
|
561
565
|
"auth-function": () => n.canRetrieve(y)
|
|
562
566
|
}, {
|
|
563
567
|
default: p(() => [
|
|
@@ -569,18 +573,18 @@ const ne = {
|
|
|
569
573
|
]),
|
|
570
574
|
_: 2
|
|
571
575
|
}, 1032, ["auth-function"]),
|
|
572
|
-
d(l(
|
|
576
|
+
d(l(le), {
|
|
573
577
|
"auth-function": () => n.canEdit(y)
|
|
574
578
|
}, {
|
|
575
579
|
default: p(() => [
|
|
576
580
|
d(P, {
|
|
577
581
|
"data-testid": "action-entity-edit",
|
|
578
|
-
item:
|
|
582
|
+
item: Z(y.id)
|
|
579
583
|
}, null, 8, ["item"])
|
|
580
584
|
]),
|
|
581
585
|
_: 2
|
|
582
586
|
}, 1032, ["auth-function"]),
|
|
583
|
-
d(l(
|
|
587
|
+
d(l(le), {
|
|
584
588
|
"auth-function": () => n.canDelete(y)
|
|
585
589
|
}, {
|
|
586
590
|
default: p(() => [
|
|
@@ -591,7 +595,7 @@ const ne = {
|
|
|
591
595
|
onClick: (R) => q(y)
|
|
592
596
|
}, {
|
|
593
597
|
default: p(() => [
|
|
594
|
-
E(b(l(
|
|
598
|
+
E(b(l(r)("actions.delete.menu_label")), 1)
|
|
595
599
|
]),
|
|
596
600
|
_: 2
|
|
597
601
|
}, 1032, ["onClick"])
|
|
@@ -602,35 +606,35 @@ const ne = {
|
|
|
602
606
|
_: 1
|
|
603
607
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers"]),
|
|
604
608
|
d(l(Ne), {
|
|
605
|
-
action:
|
|
606
|
-
"entity-id":
|
|
607
|
-
"entity-name":
|
|
608
|
-
"entity-type": l(
|
|
609
|
-
"on-confirm":
|
|
610
|
-
visible:
|
|
611
|
-
onCancel:
|
|
612
|
-
onProceed:
|
|
609
|
+
action: X.value.action,
|
|
610
|
+
"entity-id": X.value.id,
|
|
611
|
+
"entity-name": X.value.name,
|
|
612
|
+
"entity-type": l(r)("glossary.gateway_services"),
|
|
613
|
+
"on-confirm": ie,
|
|
614
|
+
visible: Q.value,
|
|
615
|
+
onCancel: Y,
|
|
616
|
+
onProceed: Y
|
|
613
617
|
}, null, 8, ["action", "entity-id", "entity-name", "entity-type", "visible"]),
|
|
614
618
|
d(l(We), {
|
|
615
|
-
"action-pending":
|
|
616
|
-
description: l(
|
|
619
|
+
"action-pending": ee.value,
|
|
620
|
+
description: l(r)("actions.delete.description"),
|
|
617
621
|
"entity-name": x.value && (x.value.name || x.value.id),
|
|
618
622
|
"entity-type": l(Oe).GatewayService,
|
|
619
623
|
error: K.value,
|
|
620
|
-
title: l(
|
|
621
|
-
visible:
|
|
622
|
-
onCancel:
|
|
623
|
-
onProceed:
|
|
624
|
+
title: l(r)("actions.delete.title"),
|
|
625
|
+
visible: H.value,
|
|
626
|
+
onCancel: J,
|
|
627
|
+
onProceed: re
|
|
624
628
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
|
|
625
629
|
]);
|
|
626
630
|
};
|
|
627
631
|
}
|
|
628
|
-
}), Ue = (n,
|
|
632
|
+
}), Ue = (n, A) => {
|
|
629
633
|
const m = n.__vccOpts || n;
|
|
630
|
-
for (const [c,
|
|
631
|
-
m[c] =
|
|
634
|
+
for (const [c, r] of A)
|
|
635
|
+
m[c] = r;
|
|
632
636
|
return m;
|
|
633
|
-
}, At = /* @__PURE__ */ Ue(dt, [["__scopeId", "data-v-
|
|
637
|
+
}, At = /* @__PURE__ */ Ue(dt, [["__scopeId", "data-v-8f3c0637"]]), ut = { class: "kong-ui-entities-gateway-service-form" }, ft = { key: 0 }, pt = { class: "gateway-service-form-traffic-label" }, mt = { class: "gateway-service-form-margin-bottom" }, vt = {
|
|
634
638
|
key: 0,
|
|
635
639
|
class: "gateway-service-form-group-fields"
|
|
636
640
|
}, gt = {
|
|
@@ -674,9 +678,9 @@ const ne = {
|
|
|
674
678
|
}
|
|
675
679
|
},
|
|
676
680
|
emits: ["update", "error", "url-valid:success", "url-valid:error", "loading", "model-updated"],
|
|
677
|
-
setup(n, { expose:
|
|
678
|
-
var
|
|
679
|
-
const c = m,
|
|
681
|
+
setup(n, { expose: A, emit: m }) {
|
|
682
|
+
var re;
|
|
683
|
+
const c = m, r = n, M = T(!0), N = Ie(), { i18nT: B, i18n: { t: a } } = de.useI18n(), { getMessageFromError: S } = je(), { axiosInstance: w } = Te((re = r.config) == null ? void 0 : re.axiosRequestConfig), ue = He(), W = h(() => oe.form[r.config.app].edit), D = h(() => r.gatewayServiceId ? Ce.Edit : Ce.Create), O = T(!1), j = h(() => !!r.gatewayServiceId), k = T(j.value ? "protocol" : "url"), z = de.usePortFromProtocol(), G = T(""), fe = h(() => !!G.value), e = Ve({
|
|
680
684
|
fields: {
|
|
681
685
|
name: "",
|
|
682
686
|
protocol: "http",
|
|
@@ -712,115 +716,115 @@ const ne = {
|
|
|
712
716
|
tls_verify_enabled: !1,
|
|
713
717
|
tls_verify_value: !1,
|
|
714
718
|
tags: ""
|
|
715
|
-
}), pe =
|
|
716
|
-
gatewayInfo:
|
|
719
|
+
}), pe = r.config.app === "konnect" || Je({
|
|
720
|
+
gatewayInfo: r.config.gatewayInfo,
|
|
717
721
|
// 'ws' and 'wss' are not valid values for the protocol field in Gateway Community Edition or before Gateway Enterprise Edition 3.0
|
|
718
722
|
supportedRange: {
|
|
719
723
|
enterprise: ["3.0"]
|
|
720
724
|
}
|
|
721
|
-
}),
|
|
725
|
+
}), Q = [
|
|
722
726
|
{
|
|
723
|
-
label:
|
|
727
|
+
label: a("gateway_services.form.fields.protocol.options.http"),
|
|
724
728
|
value: "http",
|
|
725
729
|
group: "http"
|
|
726
730
|
},
|
|
727
731
|
{
|
|
728
|
-
label:
|
|
732
|
+
label: a("gateway_services.form.fields.protocol.options.https"),
|
|
729
733
|
value: "https",
|
|
730
734
|
group: "http"
|
|
731
735
|
},
|
|
732
736
|
{
|
|
733
|
-
label:
|
|
737
|
+
label: a("gateway_services.form.fields.protocol.options.tcp"),
|
|
734
738
|
value: "tcp",
|
|
735
739
|
group: "tcp"
|
|
736
740
|
},
|
|
737
741
|
{
|
|
738
|
-
label:
|
|
742
|
+
label: a("gateway_services.form.fields.protocol.options.tls"),
|
|
739
743
|
value: "tls",
|
|
740
744
|
group: "tcp"
|
|
741
745
|
},
|
|
742
746
|
{
|
|
743
|
-
label:
|
|
747
|
+
label: a("gateway_services.form.fields.protocol.options.tls_passthrough"),
|
|
744
748
|
value: "tls_passthrough",
|
|
745
749
|
group: "tcp"
|
|
746
750
|
},
|
|
747
751
|
{
|
|
748
|
-
label:
|
|
752
|
+
label: a("gateway_services.form.fields.protocol.options.grpc"),
|
|
749
753
|
value: "grpc",
|
|
750
754
|
group: "grpc"
|
|
751
755
|
},
|
|
752
756
|
{
|
|
753
|
-
label:
|
|
757
|
+
label: a("gateway_services.form.fields.protocol.options.grpcs"),
|
|
754
758
|
value: "grpcs",
|
|
755
759
|
group: "grpc"
|
|
756
760
|
},
|
|
757
761
|
...pe ? [
|
|
758
762
|
{
|
|
759
|
-
label:
|
|
763
|
+
label: a("gateway_services.form.fields.protocol.options.ws"),
|
|
760
764
|
value: "ws",
|
|
761
765
|
group: "websocket"
|
|
762
766
|
},
|
|
763
767
|
{
|
|
764
|
-
label:
|
|
768
|
+
label: a("gateway_services.form.fields.protocol.options.wss"),
|
|
765
769
|
value: "wss",
|
|
766
770
|
group: "websocket"
|
|
767
771
|
}
|
|
768
772
|
] : [],
|
|
769
773
|
{
|
|
770
|
-
label:
|
|
774
|
+
label: a("gateway_services.form.fields.protocol.options.udp"),
|
|
771
775
|
value: "udp",
|
|
772
776
|
group: "udp"
|
|
773
777
|
}
|
|
774
|
-
], I = { url: "url", protocol: "protocol" },
|
|
778
|
+
], I = { url: "url", protocol: "protocol" }, X = (t, i) => {
|
|
775
779
|
i.value;
|
|
776
|
-
}, L = (t) => t ? parseFloat(t) : 0,
|
|
780
|
+
}, L = (t) => t ? parseFloat(t) : 0, Y = () => {
|
|
777
781
|
M.value = !0, e.errorMessage = "", e.fields.host = _.host, e.fields.path = _.path, e.fields.port = _.port, e.fields.protocol = _.protocol, e.fields.url = _.url, e.fields.retries = _.retries, e.fields.connect_timeout = _.connect_timeout, e.fields.write_timeout = _.write_timeout, e.fields.read_timeout = _.read_timeout, e.fields.client_certificate = _.client_certificate, e.fields.ca_certificates = _.ca_certificates, e.fields.tls_verify_enabled = _.tls_verify_enabled, e.fields.tls_verify_value = _.tls_verify_value;
|
|
778
|
-
},
|
|
782
|
+
}, ie = () => {
|
|
779
783
|
if (e.fields.url && k.value === "url")
|
|
780
784
|
try {
|
|
781
785
|
const t = new URL(e.fields.url);
|
|
782
786
|
e.errorMessage = "", e.fields.protocol = t.protocol.slice(0, -1), e.fields.host = t.hostname, e.fields.path = t.pathname;
|
|
783
787
|
const i = Number(t.port);
|
|
784
|
-
|
|
788
|
+
O.value = !!i, e.fields.port = i || z.getPortFromProtocol(e.fields.protocol), e.errorMessage = "", c("url-valid:success");
|
|
785
789
|
} catch (t) {
|
|
786
|
-
e.errorMessage =
|
|
790
|
+
e.errorMessage = a("errors.urlErrorMessage"), c("url-valid:error", S(t));
|
|
787
791
|
}
|
|
788
792
|
else
|
|
789
793
|
c("url-valid:success"), e.errorMessage = "";
|
|
790
|
-
},
|
|
794
|
+
}, se = h(() => !["tcp", "tls", "tls_passthrough", "grpc", "grpcs", "udp"].includes(e.fields.protocol)), me = h(() => {
|
|
791
795
|
if (k.value === "url")
|
|
792
796
|
return !0;
|
|
793
797
|
const t = ["https", "wss", "tls"].includes(e.fields.protocol);
|
|
794
798
|
return k.value === "protocol" && t;
|
|
795
|
-
}), ve =
|
|
799
|
+
}), ve = h(() => {
|
|
796
800
|
if (k.value === "url")
|
|
797
801
|
return !0;
|
|
798
802
|
const t = ["https", "tls"].includes(e.fields.protocol);
|
|
799
803
|
return k.value === "protocol" && t;
|
|
800
|
-
}), ge =
|
|
804
|
+
}), ge = h(() => {
|
|
801
805
|
if (k.value === "url")
|
|
802
806
|
return !0;
|
|
803
807
|
const t = ["https", "wss", "tls"].includes(e.fields.protocol);
|
|
804
808
|
return k.value === "protocol" && t;
|
|
805
809
|
}), ye = (t) => {
|
|
806
|
-
|
|
807
|
-
},
|
|
810
|
+
G.value = ue.utf8Name(t);
|
|
811
|
+
}, Z = h(() => j.value && JSON.stringify(e.fields) !== JSON.stringify(_) || k.value === "url" && !!e.fields.url || k.value === "protocol" && !!e.fields.host), x = (t) => {
|
|
808
812
|
var i, s, v;
|
|
809
813
|
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 = ((s = t == null ? void 0 : t.ca_certificates) == null ? void 0 : s.join(",")) || "", e.fields.client_certificate = ((v = t == null ? void 0 : t.client_certificate) == null ? void 0 : v.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(_, e.fields);
|
|
810
|
-
},
|
|
811
|
-
N.push(
|
|
812
|
-
},
|
|
814
|
+
}, H = () => {
|
|
815
|
+
N.push(r.config.cancelRoute);
|
|
816
|
+
}, ee = h(() => {
|
|
813
817
|
var i, s;
|
|
814
|
-
let t = `${
|
|
815
|
-
return
|
|
816
|
-
}), K =
|
|
818
|
+
let t = `${r.config.apiBaseUrl}${oe.form[r.config.app].validate}`;
|
|
819
|
+
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, (s = r.config) != null && s.workspace ? `/${r.config.workspace}` : "")), t = t.replace(/{id}/gi, r.gatewayServiceId), t;
|
|
820
|
+
}), K = h(() => {
|
|
817
821
|
var i, s;
|
|
818
|
-
let t = `${
|
|
819
|
-
return
|
|
822
|
+
let t = `${r.config.apiBaseUrl}${oe.form[r.config.app][D.value]}`;
|
|
823
|
+
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, (s = r.config) != null && s.workspace ? `/${r.config.workspace}` : "")), t = t.replace(/{id}/gi, r.gatewayServiceId), t;
|
|
820
824
|
}), _e = (t) => {
|
|
821
825
|
let i = "";
|
|
822
826
|
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;
|
|
823
|
-
}, q =
|
|
827
|
+
}, q = h(() => {
|
|
824
828
|
var i, s, v, f;
|
|
825
829
|
const t = {
|
|
826
830
|
name: e.fields.name || null,
|
|
@@ -839,67 +843,67 @@ const ne = {
|
|
|
839
843
|
port: e.fields.port,
|
|
840
844
|
url: e.fields.url
|
|
841
845
|
};
|
|
842
|
-
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),
|
|
843
|
-
}),
|
|
846
|
+
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), se.value || (t.path = null), D.value === "create" ? k.value === "url" ? (delete t.protocol, delete t.host, delete t.path, r.config.app === "konnect" && delete t.port) : delete t.url : D.value === "edit" && delete t.url, t;
|
|
847
|
+
}), J = async () => {
|
|
844
848
|
var t, i, s, v;
|
|
845
849
|
try {
|
|
846
|
-
e.isReadonly = !0,
|
|
850
|
+
e.isReadonly = !0, ie();
|
|
847
851
|
const f = q.value;
|
|
848
852
|
_e(f);
|
|
849
853
|
let g;
|
|
850
|
-
if (await
|
|
854
|
+
if (await w.post(ee.value, f), D.value === "create" ? g = await w.post(K.value, f) : D.value === "edit" && (g = ((t = r.config) == null ? void 0 : t.app) === "konnect" ? await w.put(K.value, f) : await w.patch(K.value, f)), g) {
|
|
851
855
|
const { data: o } = g;
|
|
852
|
-
e.fields.name = (o == null ? void 0 : o.name) || "", e.fields.port = o.port ||
|
|
856
|
+
e.fields.name = (o == null ? void 0 : o.name) || "", e.fields.port = o.port || z.getPortFromProtocol(o.protocol), e.fields.protocol = (o == null ? void 0 : o.protocol) || "http", e.fields.host = (o == null ? void 0 : o.host) || "", e.fields.path = (o == null ? void 0 : o.path) || "", e.fields.url = (o == null ? void 0 : o.url) || "", e.fields.retries = o != null && o.retries || (o == null ? void 0 : o.retries) === 0 ? o == null ? void 0 : o.retries : 5, e.fields.connect_timeout = o != null && o.connect_timeout || (o == null ? void 0 : o.connect_timeout) === 0 ? o == null ? void 0 : o.connect_timeout : 6e4, e.fields.write_timeout = o != null && o.write_timeout || (o == null ? void 0 : o.write_timeout) === 0 ? o == null ? void 0 : o.write_timeout : 6e4, e.fields.read_timeout = o != null && o.read_timeout || (o == null ? void 0 : o.read_timeout) === 0 ? o == null ? void 0 : o.read_timeout : 6e4, e.fields.client_certificate = ((i = o == null ? void 0 : o.client_certificate) == null ? void 0 : i.id) || "", e.fields.ca_certificates = (s = o == null ? void 0 : o.ca_certificates) != null && s.length ? o == null ? void 0 : o.ca_certificates.join(",") : "", e.fields.tls_verify_enabled = (o == null ? void 0 : o.tls_verify) !== "" && (o == null ? void 0 : o.tls_verify) !== null && (o == null ? void 0 : o.tls_verify) !== void 0, e.fields.tls_verify_value = e.fields.tls_verify_enabled && (o == null ? void 0 : o.tls_verify), e.fields.tags = (v = o == null ? void 0 : o.tags) != null && v.length ? o.tags.join(", ") : "", Object.assign(_, e.fields), c("update", g == null ? void 0 : g.data);
|
|
853
857
|
}
|
|
854
858
|
return g;
|
|
855
859
|
} catch (f) {
|
|
856
|
-
e.errorMessage =
|
|
860
|
+
e.errorMessage = S(f), c("error", f);
|
|
857
861
|
} finally {
|
|
858
862
|
e.isReadonly = !1;
|
|
859
863
|
}
|
|
860
864
|
};
|
|
861
|
-
return he(() =>
|
|
865
|
+
return he(() => r.gatewayServiceId, () => {
|
|
862
866
|
Object.assign(e.fields, _);
|
|
863
867
|
}), he(e.fields, (t) => {
|
|
864
|
-
e.fields.port =
|
|
868
|
+
e.fields.port = z.getPortFromProtocol(t.protocol, String(t.port)), c("model-updated", q.value);
|
|
865
869
|
}), xe(() => {
|
|
866
870
|
c("model-updated", q.value);
|
|
867
|
-
}),
|
|
868
|
-
validateUrl:
|
|
871
|
+
}), A({
|
|
872
|
+
validateUrl: ie,
|
|
869
873
|
getPayload: q,
|
|
870
|
-
saveFormData:
|
|
871
|
-
canSubmit:
|
|
874
|
+
saveFormData: J,
|
|
875
|
+
canSubmit: Z,
|
|
872
876
|
initForm: x
|
|
873
877
|
}), (t, i) => {
|
|
874
878
|
const s = F("KInput"), v = F("KLabel"), f = F("KRadio"), g = F("KSelect"), o = F("KCheckbox"), P = F("KCollapse");
|
|
875
|
-
return
|
|
879
|
+
return C(), U("div", ut, [
|
|
876
880
|
d(l(ze), {
|
|
877
|
-
"can-submit":
|
|
881
|
+
"can-submit": Z.value,
|
|
878
882
|
config: n.config,
|
|
879
883
|
"edit-id": n.gatewayServiceId,
|
|
880
884
|
"entity-type": l(Pe).GatewayService,
|
|
881
885
|
"error-message": e.errorMessage,
|
|
882
|
-
"fetch-url":
|
|
886
|
+
"fetch-url": W.value,
|
|
883
887
|
"form-fields": q.value,
|
|
884
888
|
"is-readonly": e.isReadonly,
|
|
885
|
-
onCancel:
|
|
889
|
+
onCancel: H,
|
|
886
890
|
"onFetch:error": i[25] || (i[25] = (u) => t.$emit("error", u)),
|
|
887
891
|
"onFetch:success": x,
|
|
888
892
|
onLoading: i[26] || (i[26] = (u) => t.$emit("loading", u)),
|
|
889
|
-
onSubmit:
|
|
893
|
+
onSubmit: J
|
|
890
894
|
}, {
|
|
891
895
|
"form-actions": p(() => [
|
|
892
896
|
Re(t.$slots, "form-actions", {
|
|
893
|
-
canSubmit:
|
|
894
|
-
cancel:
|
|
895
|
-
submit:
|
|
897
|
+
canSubmit: Z.value,
|
|
898
|
+
cancel: H,
|
|
899
|
+
submit: J
|
|
896
900
|
}, void 0, !0)
|
|
897
901
|
]),
|
|
898
902
|
default: p(() => [
|
|
899
903
|
d(l(Se), {
|
|
900
|
-
description: l(
|
|
904
|
+
description: l(a)("gateway_services.form.sections.general.description"),
|
|
901
905
|
"hide-info-header": n.hideSectionsInfo,
|
|
902
|
-
title: l(
|
|
906
|
+
title: l(a)("gateway_services.form.sections.general.title")
|
|
903
907
|
}, {
|
|
904
908
|
default: p(() => [
|
|
905
909
|
d(s, {
|
|
@@ -909,14 +913,14 @@ const ne = {
|
|
|
909
913
|
autocomplete: "off",
|
|
910
914
|
"data-testid": "gateway-service-name-input",
|
|
911
915
|
error: fe.value,
|
|
912
|
-
"error-message":
|
|
913
|
-
label: l(
|
|
916
|
+
"error-message": G.value,
|
|
917
|
+
label: l(a)("gateway_services.form.fields.name.label"),
|
|
914
918
|
"label-attributes": {
|
|
915
|
-
info: l(
|
|
919
|
+
info: l(a)("gateway_services.form.fields.name.tooltip"),
|
|
916
920
|
tooltipAttributes: { maxWidth: "400" }
|
|
917
921
|
},
|
|
918
922
|
name: "name",
|
|
919
|
-
placeholder: l(
|
|
923
|
+
placeholder: l(a)("gateway_services.form.fields.name.placeholder"),
|
|
920
924
|
readonly: e.isReadonly,
|
|
921
925
|
type: "text",
|
|
922
926
|
onInput: ye
|
|
@@ -927,14 +931,14 @@ const ne = {
|
|
|
927
931
|
modelModifiers: { trim: !0 },
|
|
928
932
|
autocomplete: "off",
|
|
929
933
|
"data-testid": "gateway-service-tags-input",
|
|
930
|
-
help: l(
|
|
931
|
-
label: l(
|
|
934
|
+
help: l(a)("gateway_services.form.fields.tags.help"),
|
|
935
|
+
label: l(a)("gateway_services.form.fields.tags.label"),
|
|
932
936
|
"label-attributes": {
|
|
933
|
-
info: l(
|
|
937
|
+
info: l(a)("gateway_services.form.fields.tags.tooltip"),
|
|
934
938
|
tooltipAttributes: { maxWidth: "400" }
|
|
935
939
|
},
|
|
936
940
|
name: "tags",
|
|
937
|
-
placeholder: l(
|
|
941
|
+
placeholder: l(a)("gateway_services.form.fields.tags.placeholder"),
|
|
938
942
|
readonly: e.isReadonly,
|
|
939
943
|
type: "text"
|
|
940
944
|
}, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"])
|
|
@@ -942,16 +946,16 @@ const ne = {
|
|
|
942
946
|
_: 1
|
|
943
947
|
}, 8, ["description", "hide-info-header", "title"]),
|
|
944
948
|
d(l(Se), {
|
|
945
|
-
description: l(
|
|
949
|
+
description: l(a)("gateway_services.form.sections.keys.description"),
|
|
946
950
|
"hide-info-header": n.hideSectionsInfo,
|
|
947
|
-
title: l(
|
|
951
|
+
title: l(a)("gateway_services.form.sections.keys.title")
|
|
948
952
|
}, {
|
|
949
953
|
default: p(() => [
|
|
950
|
-
|
|
954
|
+
j.value ? $("", !0) : (C(), U("div", ft, [
|
|
951
955
|
V("div", pt, [
|
|
952
956
|
d(v, { required: "" }, {
|
|
953
957
|
default: p(() => [
|
|
954
|
-
E(b(l(
|
|
958
|
+
E(b(l(a)("gateway_services.form.sections.keys.checkedGroupLabel")), 1)
|
|
955
959
|
]),
|
|
956
960
|
_: 1
|
|
957
961
|
})
|
|
@@ -962,60 +966,60 @@ const ne = {
|
|
|
962
966
|
"onUpdate:modelValue": i[2] || (i[2] = (u) => k.value = u),
|
|
963
967
|
"data-testid": "gateway-service-url-radio",
|
|
964
968
|
"selected-value": I.url,
|
|
965
|
-
onChange:
|
|
969
|
+
onChange: Y
|
|
966
970
|
}, {
|
|
967
971
|
default: p(() => [
|
|
968
|
-
E(b(l(
|
|
972
|
+
E(b(l(a)("gateway_services.form.sections.keys.urlLabel")), 1)
|
|
969
973
|
]),
|
|
970
974
|
_: 1
|
|
971
975
|
}, 8, ["modelValue", "selected-value"])
|
|
972
976
|
]),
|
|
973
|
-
k.value === "url" ? (
|
|
977
|
+
k.value === "url" ? (C(), U("div", vt, [
|
|
974
978
|
d(s, {
|
|
975
979
|
modelValue: e.fields.url,
|
|
976
980
|
"onUpdate:modelValue": i[3] || (i[3] = (u) => e.fields.url = u),
|
|
977
981
|
modelModifiers: { trim: !0 },
|
|
978
982
|
class: "gateway-service-url-input gateway-service-form-margin-bottom",
|
|
979
983
|
"data-testid": "gateway-service-url-input",
|
|
980
|
-
label: l(
|
|
984
|
+
label: l(a)("gateway_services.form.fields.upstream_url.label"),
|
|
981
985
|
"label-attributes": {
|
|
982
|
-
info: n.config.app === "konnect" ? l(
|
|
986
|
+
info: n.config.app === "konnect" ? l(a)("gateway_services.form.fields.upstream_url.tooltip_for_konnect") : l(a)("gateway_services.form.fields.upstream_url.tooltip_for_km"),
|
|
983
987
|
tooltipAttributes: { maxWidth: "400" }
|
|
984
988
|
},
|
|
985
989
|
name: "url",
|
|
986
|
-
placeholder: l(
|
|
990
|
+
placeholder: l(a)("gateway_services.form.fields.upstream_url.placeholder"),
|
|
987
991
|
required: ""
|
|
988
992
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder"])
|
|
989
|
-
])) :
|
|
993
|
+
])) : $("", !0),
|
|
990
994
|
d(f, {
|
|
991
995
|
modelValue: k.value,
|
|
992
996
|
"onUpdate:modelValue": i[4] || (i[4] = (u) => k.value = u),
|
|
993
997
|
"checked-group": "protocol",
|
|
994
998
|
"data-testid": "gateway-service-protocol-radio",
|
|
995
999
|
"selected-value": I.protocol,
|
|
996
|
-
onChange:
|
|
1000
|
+
onChange: Y
|
|
997
1001
|
}, {
|
|
998
1002
|
default: p(() => [
|
|
999
|
-
E(b(l(
|
|
1003
|
+
E(b(l(a)("gateway_services.form.sections.keys.checkedGroupAltLabel")), 1)
|
|
1000
1004
|
]),
|
|
1001
1005
|
_: 1
|
|
1002
1006
|
}, 8, ["modelValue", "selected-value"])
|
|
1003
1007
|
])),
|
|
1004
|
-
k.value === "protocol" ||
|
|
1008
|
+
k.value === "protocol" || j.value ? (C(), U("div", gt, [
|
|
1005
1009
|
d(g, {
|
|
1006
1010
|
modelValue: e.fields.protocol,
|
|
1007
1011
|
"onUpdate:modelValue": i[5] || (i[5] = (u) => e.fields.protocol = u),
|
|
1008
1012
|
"data-testid": "gateway-service-protocol-select",
|
|
1009
|
-
items:
|
|
1010
|
-
label: l(
|
|
1013
|
+
items: Q,
|
|
1014
|
+
label: l(a)("gateway_services.form.fields.protocol.label"),
|
|
1011
1015
|
"label-attributes": {
|
|
1012
|
-
info: l(
|
|
1016
|
+
info: l(a)("gateway_services.form.fields.protocol.tooltip"),
|
|
1013
1017
|
tooltipAttributes: { maxWidth: "400" }
|
|
1014
1018
|
},
|
|
1015
1019
|
readonly: e.isReadonly,
|
|
1016
1020
|
required: "",
|
|
1017
1021
|
width: "100%",
|
|
1018
|
-
onSelected: i[6] || (i[6] = (u) =>
|
|
1022
|
+
onSelected: i[6] || (i[6] = (u) => X(e.fields.protocol, u))
|
|
1019
1023
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
1020
1024
|
d(s, {
|
|
1021
1025
|
modelValue: e.fields.host,
|
|
@@ -1023,31 +1027,31 @@ const ne = {
|
|
|
1023
1027
|
modelModifiers: { trim: !0 },
|
|
1024
1028
|
class: "gateway-service-form-margin-top",
|
|
1025
1029
|
"data-testid": "gateway-service-host-input",
|
|
1026
|
-
label: l(
|
|
1030
|
+
label: l(a)("gateway_services.form.fields.host.label"),
|
|
1027
1031
|
"label-attributes": {
|
|
1028
|
-
info: l(
|
|
1032
|
+
info: l(a)("gateway_services.form.fields.host.tooltip"),
|
|
1029
1033
|
tooltipAttributes: { maxWidth: "400" }
|
|
1030
1034
|
},
|
|
1031
1035
|
name: "host",
|
|
1032
|
-
placeholder: l(
|
|
1036
|
+
placeholder: l(a)("gateway_services.form.fields.host.placeholder"),
|
|
1033
1037
|
required: ""
|
|
1034
1038
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder"]),
|
|
1035
|
-
|
|
1039
|
+
se.value ? (C(), U("div", yt, [
|
|
1036
1040
|
d(s, {
|
|
1037
1041
|
modelValue: e.fields.path,
|
|
1038
1042
|
"onUpdate:modelValue": i[8] || (i[8] = (u) => e.fields.path = u),
|
|
1039
1043
|
modelModifiers: { trim: !0 },
|
|
1040
1044
|
class: "gateway-service-form-margin-top",
|
|
1041
1045
|
"data-testid": "gateway-service-path-input",
|
|
1042
|
-
label: l(
|
|
1046
|
+
label: l(a)("gateway_services.form.fields.path.label"),
|
|
1043
1047
|
"label-attributes": {
|
|
1044
|
-
info: l(
|
|
1048
|
+
info: l(a)("gateway_services.form.fields.path.tooltip"),
|
|
1045
1049
|
tooltipAttributes: { maxWidth: "400" }
|
|
1046
1050
|
},
|
|
1047
1051
|
name: "path",
|
|
1048
|
-
placeholder: l(
|
|
1052
|
+
placeholder: l(a)("gateway_services.form.fields.path.placeholder")
|
|
1049
1053
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder"])
|
|
1050
|
-
])) :
|
|
1054
|
+
])) : $("", !0),
|
|
1051
1055
|
d(s, {
|
|
1052
1056
|
modelValue: e.fields.port,
|
|
1053
1057
|
"onUpdate:modelValue": [
|
|
@@ -1058,21 +1062,21 @@ const ne = {
|
|
|
1058
1062
|
],
|
|
1059
1063
|
class: "gateway-service-form-margin-top",
|
|
1060
1064
|
"data-testid": "gateway-service-port-input",
|
|
1061
|
-
label: l(
|
|
1065
|
+
label: l(a)("gateway_services.form.fields.port.label"),
|
|
1062
1066
|
"label-attributes": {
|
|
1063
|
-
info: l(
|
|
1067
|
+
info: l(a)("gateway_services.form.fields.port.tooltip"),
|
|
1064
1068
|
tooltipAttributes: { maxWidth: "400" }
|
|
1065
1069
|
},
|
|
1066
1070
|
name: "port",
|
|
1067
1071
|
type: "number"
|
|
1068
1072
|
}, null, 8, ["modelValue", "label", "label-attributes"])
|
|
1069
|
-
])) :
|
|
1073
|
+
])) : $("", !0),
|
|
1070
1074
|
d(P, {
|
|
1071
1075
|
modelValue: M.value,
|
|
1072
1076
|
"onUpdate:modelValue": i[24] || (i[24] = (u) => M.value = u),
|
|
1073
1077
|
"data-testid": "advanced-fields-collapse",
|
|
1074
1078
|
"trigger-alignment": "leading",
|
|
1075
|
-
"trigger-label": l(
|
|
1079
|
+
"trigger-label": l(a)("gateway_services.form.sections.keys.viewAdvancedFields")
|
|
1076
1080
|
}, {
|
|
1077
1081
|
default: p(() => [
|
|
1078
1082
|
V("div", _t, [
|
|
@@ -1087,9 +1091,9 @@ const ne = {
|
|
|
1087
1091
|
],
|
|
1088
1092
|
autocomplete: "off",
|
|
1089
1093
|
"data-testid": "gateway-service-retries-input",
|
|
1090
|
-
label: l(
|
|
1094
|
+
label: l(a)("gateway_services.form.fields.retries.label"),
|
|
1091
1095
|
"label-attributes": {
|
|
1092
|
-
info: l(
|
|
1096
|
+
info: l(a)("gateway_services.form.fields.retries.tooltip"),
|
|
1093
1097
|
tooltipAttributes: { maxWidth: "400" }
|
|
1094
1098
|
},
|
|
1095
1099
|
name: "retries",
|
|
@@ -1108,9 +1112,9 @@ const ne = {
|
|
|
1108
1112
|
],
|
|
1109
1113
|
autocomplete: "off",
|
|
1110
1114
|
"data-testid": "gateway-service-connTimeout-input",
|
|
1111
|
-
label: l(
|
|
1115
|
+
label: l(a)("gateway_services.form.fields.connect_timeout.label"),
|
|
1112
1116
|
"label-attributes": {
|
|
1113
|
-
info: l(
|
|
1117
|
+
info: l(a)("gateway_services.form.fields.connect_timeout.tooltip"),
|
|
1114
1118
|
tooltipAttributes: { maxWidth: "400" }
|
|
1115
1119
|
},
|
|
1116
1120
|
name: "connTimeout",
|
|
@@ -1129,9 +1133,9 @@ const ne = {
|
|
|
1129
1133
|
],
|
|
1130
1134
|
autocomplete: "off",
|
|
1131
1135
|
"data-testid": "gateway-service-writeTimeout-input",
|
|
1132
|
-
label: l(
|
|
1136
|
+
label: l(a)("gateway_services.form.fields.write_timeout.label"),
|
|
1133
1137
|
"label-attributes": {
|
|
1134
|
-
info: l(
|
|
1138
|
+
info: l(a)("gateway_services.form.fields.write_timeout.tooltip"),
|
|
1135
1139
|
tooltipAttributes: { maxWidth: "400" }
|
|
1136
1140
|
},
|
|
1137
1141
|
name: "writeTimeout",
|
|
@@ -1150,9 +1154,9 @@ const ne = {
|
|
|
1150
1154
|
],
|
|
1151
1155
|
autocomplete: "off",
|
|
1152
1156
|
"data-testid": "gateway-service-readTimeout-input",
|
|
1153
|
-
label: l(
|
|
1157
|
+
label: l(a)("gateway_services.form.fields.read_timeout.label"),
|
|
1154
1158
|
"label-attributes": {
|
|
1155
|
-
info: l(
|
|
1159
|
+
info: l(a)("gateway_services.form.fields.read_timeout.tooltip"),
|
|
1156
1160
|
tooltipAttributes: { maxWidth: "400" }
|
|
1157
1161
|
},
|
|
1158
1162
|
name: "readTimeout",
|
|
@@ -1160,95 +1164,95 @@ const ne = {
|
|
|
1160
1164
|
type: "number"
|
|
1161
1165
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
1162
1166
|
]),
|
|
1163
|
-
me.value ? (
|
|
1167
|
+
me.value ? (C(), U("div", Vt, [
|
|
1164
1168
|
d(s, {
|
|
1165
1169
|
modelValue: e.fields.client_certificate,
|
|
1166
1170
|
"onUpdate:modelValue": i[19] || (i[19] = (u) => e.fields.client_certificate = u),
|
|
1167
1171
|
modelModifiers: { trim: !0 },
|
|
1168
1172
|
autocomplete: "off",
|
|
1169
1173
|
"data-testid": "gateway-service-clientCert-input",
|
|
1170
|
-
label: l(
|
|
1174
|
+
label: l(a)("gateway_services.form.fields.client_certificate.label"),
|
|
1171
1175
|
"label-attributes": {
|
|
1172
|
-
info: l(
|
|
1176
|
+
info: l(a)("gateway_services.form.fields.client_certificate.tooltip"),
|
|
1173
1177
|
tooltipAttributes: { maxWidth: "400" }
|
|
1174
1178
|
},
|
|
1175
1179
|
name: "clientCert",
|
|
1176
|
-
placeholder: l(
|
|
1180
|
+
placeholder: l(a)("gateway_services.form.fields.client_certificate.placeholder"),
|
|
1177
1181
|
readonly: e.isReadonly,
|
|
1178
1182
|
type: "text"
|
|
1179
1183
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"])
|
|
1180
|
-
])) :
|
|
1181
|
-
ve.value ? (
|
|
1184
|
+
])) : $("", !0),
|
|
1185
|
+
ve.value ? (C(), U("div", Ct, [
|
|
1182
1186
|
d(s, {
|
|
1183
1187
|
modelValue: e.fields.ca_certificates,
|
|
1184
1188
|
"onUpdate:modelValue": i[20] || (i[20] = (u) => e.fields.ca_certificates = u),
|
|
1185
1189
|
modelModifiers: { trim: !0 },
|
|
1186
1190
|
autocomplete: "off",
|
|
1187
1191
|
"data-testid": "gateway-service-ca-certs-input",
|
|
1188
|
-
label: l(
|
|
1192
|
+
label: l(a)("gateway_services.form.fields.ca_certificates.label"),
|
|
1189
1193
|
"label-attributes": { tooltipAttributes: { maxWidth: "400" } },
|
|
1190
|
-
placeholder: l(
|
|
1194
|
+
placeholder: l(a)("gateway_services.form.fields.ca_certificates.placeholder"),
|
|
1191
1195
|
readonly: e.isReadonly,
|
|
1192
1196
|
type: "text"
|
|
1193
1197
|
}, {
|
|
1194
1198
|
"label-tooltip": p(() => [
|
|
1195
|
-
d(l(
|
|
1199
|
+
d(l(B), {
|
|
1196
1200
|
keypath: "gateway_services.form.fields.ca_certificates.tooltip",
|
|
1197
1201
|
scope: "global"
|
|
1198
1202
|
}, {
|
|
1199
1203
|
code1: p(() => [
|
|
1200
|
-
V("code", null, b(l(
|
|
1204
|
+
V("code", null, b(l(a)("gateway_services.form.fields.ca_certificates.code1")), 1)
|
|
1201
1205
|
]),
|
|
1202
1206
|
code2: p(() => [
|
|
1203
|
-
V("code", null, b(l(
|
|
1207
|
+
V("code", null, b(l(a)("gateway_services.form.fields.ca_certificates.code2")), 1)
|
|
1204
1208
|
]),
|
|
1205
1209
|
_: 1
|
|
1206
1210
|
})
|
|
1207
1211
|
]),
|
|
1208
1212
|
_: 1
|
|
1209
1213
|
}, 8, ["modelValue", "label", "placeholder", "readonly"])
|
|
1210
|
-
])) :
|
|
1211
|
-
ge.value ? (
|
|
1214
|
+
])) : $("", !0),
|
|
1215
|
+
ge.value ? (C(), U("div", St, [
|
|
1212
1216
|
d(o, {
|
|
1213
1217
|
modelValue: e.fields.tls_verify_enabled,
|
|
1214
1218
|
"onUpdate:modelValue": i[21] || (i[21] = (u) => e.fields.tls_verify_enabled = u),
|
|
1215
1219
|
"data-testid": "gateway-service-tls-verify-checkbox",
|
|
1216
|
-
description: l(
|
|
1217
|
-
label: l(
|
|
1220
|
+
description: l(a)("gateway_services.form.fields.tls_verify_enabled.help"),
|
|
1221
|
+
label: l(a)("gateway_services.form.fields.tls_verify_enabled.label"),
|
|
1218
1222
|
"label-attributes": { tooltipAttributes: { maxWidth: "400" } }
|
|
1219
1223
|
}, {
|
|
1220
1224
|
tooltip: p(() => [
|
|
1221
|
-
d(l(
|
|
1225
|
+
d(l(B), {
|
|
1222
1226
|
keypath: "gateway_services.form.fields.tls_verify_enabled.tooltip",
|
|
1223
1227
|
scope: "global"
|
|
1224
1228
|
}, {
|
|
1225
1229
|
code1: p(() => [
|
|
1226
|
-
V("code", null, b(l(
|
|
1230
|
+
V("code", null, b(l(a)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
|
|
1227
1231
|
]),
|
|
1228
1232
|
_: 1
|
|
1229
1233
|
})
|
|
1230
1234
|
]),
|
|
1231
1235
|
_: 1
|
|
1232
1236
|
}, 8, ["modelValue", "description", "label"]),
|
|
1233
|
-
e.fields.tls_verify_enabled ? (
|
|
1237
|
+
e.fields.tls_verify_enabled ? (C(), U("div", It, [
|
|
1234
1238
|
d(f, {
|
|
1235
1239
|
modelValue: e.fields.tls_verify_value,
|
|
1236
1240
|
"onUpdate:modelValue": i[22] || (i[22] = (u) => e.fields.tls_verify_value = u),
|
|
1237
1241
|
"data-testid": "gateway-service-tls-verify-true-option",
|
|
1238
|
-
label: l(
|
|
1242
|
+
label: l(a)("gateway_services.form.fields.tls_verify_option.true.label"),
|
|
1239
1243
|
"selected-value": !0
|
|
1240
1244
|
}, null, 8, ["modelValue", "label"])
|
|
1241
|
-
])) :
|
|
1242
|
-
e.fields.tls_verify_enabled ? (
|
|
1245
|
+
])) : $("", !0),
|
|
1246
|
+
e.fields.tls_verify_enabled ? (C(), U("div", Tt, [
|
|
1243
1247
|
d(f, {
|
|
1244
1248
|
modelValue: e.fields.tls_verify_value,
|
|
1245
1249
|
"onUpdate:modelValue": i[23] || (i[23] = (u) => e.fields.tls_verify_value = u),
|
|
1246
1250
|
"data-testid": "gateway-service-tls-verify-false-option",
|
|
1247
|
-
label: l(
|
|
1251
|
+
label: l(a)("gateway_services.form.fields.tls_verify_option.false.label"),
|
|
1248
1252
|
"selected-value": !1
|
|
1249
1253
|
}, null, 8, ["modelValue", "label"])
|
|
1250
|
-
])) :
|
|
1251
|
-
])) :
|
|
1254
|
+
])) : $("", !0)
|
|
1255
|
+
])) : $("", !0)
|
|
1252
1256
|
])
|
|
1253
1257
|
]),
|
|
1254
1258
|
_: 1
|
|
@@ -1289,7 +1293,7 @@ const ne = {
|
|
|
1289
1293
|
},
|
|
1290
1294
|
emits: ["loading", "fetch:error", "fetch:success"],
|
|
1291
1295
|
setup(n) {
|
|
1292
|
-
const
|
|
1296
|
+
const A = n, { i18n: { t: m }, i18nT: c } = de.useI18n(), r = h(() => oe.form[A.config.app].edit), { getPropValue: M } = Qe(), N = (a, S) => M(a, S) === !0 ? m("gateway_services.form.fields.tls_verify_option.true.display") : m("gateway_services.form.fields.tls_verify_option.false.display"), B = T({
|
|
1293
1297
|
id: {},
|
|
1294
1298
|
name: {
|
|
1295
1299
|
tooltip: m("gateway_services.form.fields.name.tooltip")
|
|
@@ -1298,19 +1302,19 @@ const ne = {
|
|
|
1298
1302
|
updated_at: {},
|
|
1299
1303
|
created_at: {},
|
|
1300
1304
|
protocol: {
|
|
1301
|
-
section:
|
|
1305
|
+
section: ae.Basic,
|
|
1302
1306
|
tooltip: m("gateway_services.form.fields.protocol.tooltip")
|
|
1303
1307
|
},
|
|
1304
1308
|
host: {
|
|
1305
|
-
section:
|
|
1309
|
+
section: ae.Basic,
|
|
1306
1310
|
tooltip: m("gateway_services.form.fields.host.tooltip")
|
|
1307
1311
|
},
|
|
1308
1312
|
path: {
|
|
1309
|
-
section:
|
|
1313
|
+
section: ae.Basic,
|
|
1310
1314
|
tooltip: m("gateway_services.form.fields.path.tooltip")
|
|
1311
1315
|
},
|
|
1312
1316
|
port: {
|
|
1313
|
-
section:
|
|
1317
|
+
section: ae.Basic,
|
|
1314
1318
|
tooltip: m("gateway_services.form.fields.port.tooltip")
|
|
1315
1319
|
},
|
|
1316
1320
|
tags: {
|
|
@@ -1349,17 +1353,17 @@ const ne = {
|
|
|
1349
1353
|
hidden: !0
|
|
1350
1354
|
}
|
|
1351
1355
|
});
|
|
1352
|
-
return (
|
|
1356
|
+
return (a, S) => (C(), U("div", Ut, [
|
|
1353
1357
|
d(l(Ye), {
|
|
1354
1358
|
config: n.config,
|
|
1355
1359
|
"config-card-doc": n.configCardDoc,
|
|
1356
|
-
"config-schema":
|
|
1360
|
+
"config-schema": B.value,
|
|
1357
1361
|
"entity-type": l(Pe).GatewayService,
|
|
1358
|
-
"fetch-url":
|
|
1362
|
+
"fetch-url": r.value,
|
|
1359
1363
|
"hide-title": n.hideTitle,
|
|
1360
|
-
"onFetch:error":
|
|
1361
|
-
"onFetch:success":
|
|
1362
|
-
onLoading:
|
|
1364
|
+
"onFetch:error": S[0] || (S[0] = (w) => a.$emit("fetch:error", w)),
|
|
1365
|
+
"onFetch:success": S[1] || (S[1] = (w) => a.$emit("fetch:success", w)),
|
|
1366
|
+
onLoading: S[2] || (S[2] = (w) => a.$emit("loading", w))
|
|
1363
1367
|
}, {
|
|
1364
1368
|
"enabled-label-tooltip": p(() => [
|
|
1365
1369
|
d(l(c), {
|
|
@@ -1400,11 +1404,11 @@ const ne = {
|
|
|
1400
1404
|
_: 1
|
|
1401
1405
|
})
|
|
1402
1406
|
]),
|
|
1403
|
-
tls_verify: p((
|
|
1404
|
-
E(b(typeof l(M)("rowValue",
|
|
1407
|
+
tls_verify: p((w) => [
|
|
1408
|
+
E(b(typeof l(M)("rowValue", w) == "boolean" ? N("rowValue", w) : l(m)("gateway_services.form.fields.tls_verify_option.unset.display")), 1)
|
|
1405
1409
|
]),
|
|
1406
|
-
client_certificate: p((
|
|
1407
|
-
E(b(l(M)("rowValue",
|
|
1410
|
+
client_certificate: p((w) => [
|
|
1411
|
+
E(b(l(M)("rowValue", w) ? l(M)("rowValue", w).id : "–"), 1)
|
|
1408
1412
|
]),
|
|
1409
1413
|
_: 1
|
|
1410
1414
|
}, 8, ["config", "config-card-doc", "config-schema", "entity-type", "fetch-url", "hide-title"])
|