@kong-ui-public/entities-gateway-services 3.8.44-pr.1820.aaa69e15d.0 → 3.8.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useRouter as
|
|
3
|
-
import { AddIcon as
|
|
4
|
-
import { createI18n as
|
|
5
|
-
import { useAxios as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as we, ref as C, computed as w, watch as he, onBeforeMount as Ee, resolveComponent as F, openBlock as S, 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 D } from "vue";
|
|
2
|
+
import { useRouter as Ie } from "vue-router";
|
|
3
|
+
import { AddIcon as Fe } from "@kong/icons";
|
|
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 ee, 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 se, ConfigurationSchemaType as Xe, EntityBaseConfigCard as Ye } from "@kong-ui-public/entities-shared";
|
|
6
|
+
const Ze = {
|
|
7
7
|
create: "New Gateway Service",
|
|
8
8
|
serverless_create: "Add a Service",
|
|
9
9
|
copy_id: "Copy ID",
|
|
@@ -16,12 +16,12 @@ const tt = {
|
|
|
16
16
|
description: "Deleting this Gateway Service will also remove any associated plugins. This action cannot be reversed.",
|
|
17
17
|
menu_label: "Delete"
|
|
18
18
|
}
|
|
19
|
-
},
|
|
19
|
+
}, et = {
|
|
20
20
|
placeholder: {
|
|
21
21
|
konnect: "Filter by name",
|
|
22
22
|
kongManager: "Filter by exact name or ID"
|
|
23
23
|
}
|
|
24
|
-
},
|
|
24
|
+
}, tt = {
|
|
25
25
|
title: "Gateway Services",
|
|
26
26
|
list: {
|
|
27
27
|
toolbar_actions: {
|
|
@@ -164,39 +164,39 @@ const tt = {
|
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
},
|
|
167
|
+
}, lt = {
|
|
168
168
|
general: "Gateway Services could not be retrieved",
|
|
169
169
|
delete: "The gateway service could not be deleted at this time.",
|
|
170
170
|
copy: "Failed to copy to clipboard",
|
|
171
171
|
urlErrorMessage: "Error: invalid URL"
|
|
172
|
-
},
|
|
172
|
+
}, ot = {
|
|
173
173
|
success: "Copied {val} to clipboard",
|
|
174
174
|
success_brief: "Successfully copied to clipboard"
|
|
175
|
-
},
|
|
175
|
+
}, it = {
|
|
176
176
|
gateway_services: "gateway services"
|
|
177
|
-
},
|
|
178
|
-
actions:
|
|
179
|
-
search:
|
|
180
|
-
gateway_services:
|
|
181
|
-
errors:
|
|
182
|
-
copy:
|
|
183
|
-
glossary:
|
|
177
|
+
}, st = {
|
|
178
|
+
actions: Ze,
|
|
179
|
+
search: et,
|
|
180
|
+
gateway_services: tt,
|
|
181
|
+
errors: lt,
|
|
182
|
+
copy: ot,
|
|
183
|
+
glossary: it
|
|
184
184
|
};
|
|
185
|
-
function
|
|
186
|
-
const
|
|
185
|
+
function rt() {
|
|
186
|
+
const n = Ae("en-us", st);
|
|
187
187
|
return {
|
|
188
|
-
i18n:
|
|
189
|
-
i18nT:
|
|
188
|
+
i18n: n,
|
|
189
|
+
i18nT: $e(n)
|
|
190
190
|
// Translation component <i18n-t>
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function at() {
|
|
194
194
|
return {
|
|
195
|
-
getPortFromProtocol: (
|
|
196
|
-
const
|
|
197
|
-
if ((
|
|
198
|
-
return
|
|
199
|
-
switch (
|
|
195
|
+
getPortFromProtocol: ($, m) => {
|
|
196
|
+
const c = [80, 443], a = Number(m);
|
|
197
|
+
if ((a || a === 0) && !c.includes(a))
|
|
198
|
+
return a;
|
|
199
|
+
switch ($) {
|
|
200
200
|
case "grpcs":
|
|
201
201
|
case "tls":
|
|
202
202
|
case "https":
|
|
@@ -212,38 +212,38 @@ function ct() {
|
|
|
212
212
|
}
|
|
213
213
|
};
|
|
214
214
|
}
|
|
215
|
-
const
|
|
216
|
-
useI18n:
|
|
217
|
-
usePortFromProtocol:
|
|
218
|
-
},
|
|
215
|
+
const ne = {
|
|
216
|
+
useI18n: rt,
|
|
217
|
+
usePortFromProtocol: at
|
|
218
|
+
}, re = "/v2/control-planes/{controlPlaneId}/core-entities", ae = "/{workspace}", te = {
|
|
219
219
|
list: {
|
|
220
220
|
konnect: {
|
|
221
|
-
all: `${
|
|
221
|
+
all: `${re}/services`
|
|
222
222
|
},
|
|
223
223
|
kongManager: {
|
|
224
|
-
all: `${
|
|
224
|
+
all: `${ae}/services`
|
|
225
225
|
}
|
|
226
226
|
},
|
|
227
227
|
form: {
|
|
228
228
|
konnect: {
|
|
229
|
-
create: `${
|
|
230
|
-
validate: `${
|
|
231
|
-
edit: `${
|
|
229
|
+
create: `${re}/services`,
|
|
230
|
+
validate: `${re}/v1/schemas/json/service/validate`,
|
|
231
|
+
edit: `${re}/services/{id}`
|
|
232
232
|
},
|
|
233
233
|
kongManager: {
|
|
234
|
-
create: `${
|
|
235
|
-
validate: `${
|
|
236
|
-
edit: `${
|
|
234
|
+
create: `${ae}/services`,
|
|
235
|
+
validate: `${ae}/schemas/services/validate`,
|
|
236
|
+
edit: `${ae}/services/{id}`
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
|
-
},
|
|
239
|
+
}, nt = { class: "kong-ui-entities-gateway-services-list" }, ct = { key: 1 }, dt = /* @__PURE__ */ we({
|
|
240
240
|
__name: "GatewayServiceList",
|
|
241
241
|
props: {
|
|
242
242
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
243
243
|
config: {
|
|
244
244
|
type: Object,
|
|
245
245
|
required: !0,
|
|
246
|
-
validator: (
|
|
246
|
+
validator: (n) => !(!n || !["konnect", "kongManager"].includes(n == null ? void 0 : n.app) || !n.createRoute || !n.getViewRoute || !n.getEditRoute || n.app === "kongManager" && !n.isExactMatch && !n.filterSchema)
|
|
247
247
|
},
|
|
248
248
|
// used to override the default identifier for the cache entry
|
|
249
249
|
cacheIdentifier: {
|
|
@@ -286,194 +286,190 @@ const pe = {
|
|
|
286
286
|
}
|
|
287
287
|
},
|
|
288
288
|
emits: ["error", "copy:success", "copy:error", "delete:success", "toggle:success"],
|
|
289
|
-
setup(
|
|
290
|
-
var
|
|
291
|
-
const
|
|
289
|
+
setup(n, { emit: $ }) {
|
|
290
|
+
var i;
|
|
291
|
+
const m = $, c = n, { i18n: { t: a, formatUnixTimeStamp: M } } = ne.useI18n(), N = Ie(), { axiosInstance: G } = Te((i = c.config) == null ? void 0 : i.axiosRequestConfig), r = C(1), T = w(() => c.config.app !== "kongManager" || !!c.config.disableSorting), h = {
|
|
292
292
|
// the Name column is non-hidable
|
|
293
|
-
name: { label:
|
|
294
|
-
...
|
|
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: a("gateway_services.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 },
|
|
294
|
+
...c.config.showControlPlaneColumn ? { control_plane: { label: a("gateway_services.list.table_headers.control_plane") } } : {},
|
|
295
|
+
protocol: { label: a("gateway_services.list.table_headers.protocol"), searchable: !0, sortable: !0 },
|
|
296
|
+
host: { label: a("gateway_services.list.table_headers.host"), searchable: !0, sortable: !0 },
|
|
297
|
+
port: { label: a("gateway_services.list.table_headers.port"), searchable: !0, sortable: !0 },
|
|
298
|
+
path: { label: a("gateway_services.list.table_headers.path"), searchable: !0, sortable: !0 },
|
|
299
|
+
enabled: { label: a("gateway_services.list.table_headers.enabled"), searchable: !0, sortable: !0 },
|
|
300
|
+
tags: { label: a("gateway_services.list.table_headers.tags"), sortable: !1 },
|
|
301
|
+
updated_at: { label: a("gateway_services.list.table_headers.updated_at"), sortable: !0 },
|
|
302
|
+
created_at: { label: a("gateway_services.list.table_headers.created_at"), sortable: !0 }
|
|
303
|
+
}, ce = {
|
|
304
304
|
columnVisibility: {
|
|
305
305
|
created_at: !1
|
|
306
306
|
}
|
|
307
|
-
},
|
|
308
|
-
var
|
|
309
|
-
let
|
|
310
|
-
return
|
|
311
|
-
}),
|
|
312
|
-
const
|
|
313
|
-
if (
|
|
307
|
+
}, de = h, A = w(() => {
|
|
308
|
+
var v, f;
|
|
309
|
+
let s = `${c.config.apiBaseUrl}${te.list[c.config.app].all}`;
|
|
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
|
+
}), ue = w(() => c.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${A.value}`) : new URL(A.value)), B = C(""), k = w(() => {
|
|
312
|
+
const s = c.config.app === "konnect" || c.config.isExactMatch;
|
|
313
|
+
if (s)
|
|
314
314
|
return {
|
|
315
|
-
isExactMatch:
|
|
316
|
-
placeholder:
|
|
315
|
+
isExactMatch: s,
|
|
316
|
+
placeholder: a(`search.placeholder.${c.config.app}`)
|
|
317
317
|
};
|
|
318
|
-
const { name:
|
|
318
|
+
const { name: v, enabled: f, protocol: g, host: o, port: P, path: u } = h;
|
|
319
319
|
return {
|
|
320
|
-
isExactMatch:
|
|
321
|
-
fields: { name:
|
|
322
|
-
schema:
|
|
320
|
+
isExactMatch: s,
|
|
321
|
+
fields: { name: v, enabled: f, protocol: g, host: o, port: P, path: u },
|
|
322
|
+
schema: c.config.filterSchema
|
|
323
323
|
};
|
|
324
|
-
}),
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
} =
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
message: `${s("gateway_services.list.empty_state.description")}${d.config.additionMessageForEmptyState ? ` ${d.config.additionMessageForEmptyState}` : ""}`,
|
|
336
|
-
title: i.value ? d.isServerless ? s("gateway_services.list.empty_state.serverless_title") : s("gateway_services.list.empty_state.title") : s("gateway_services.title")
|
|
337
|
-
})), H = I(!1), T = I(null), A = b(() => {
|
|
338
|
-
const n = {
|
|
324
|
+
}), { fetcher: j, fetcherState: H } = Be(c.config, A.value), fe = () => {
|
|
325
|
+
B.value = "";
|
|
326
|
+
}, e = () => {
|
|
327
|
+
r.value++;
|
|
328
|
+
}, _ = C(null), pe = w(() => ({
|
|
329
|
+
ctaPath: c.config.createRoute,
|
|
330
|
+
ctaText: t.value ? c.isServerless ? a("actions.serverless_create") : a("actions.create") : void 0,
|
|
331
|
+
message: `${a("gateway_services.list.empty_state.description")}${c.config.additionMessageForEmptyState ? ` ${c.config.additionMessageForEmptyState}` : ""}`,
|
|
332
|
+
title: t.value ? c.isServerless ? a("gateway_services.list.empty_state.serverless_title") : a("gateway_services.list.empty_state.title") : a("gateway_services.title")
|
|
333
|
+
})), J = C(!1), I = C(null), z = w(() => {
|
|
334
|
+
const s = {
|
|
339
335
|
action: "disable",
|
|
340
336
|
id: "",
|
|
341
337
|
name: ""
|
|
342
338
|
};
|
|
343
|
-
if (
|
|
344
|
-
const { enabled:
|
|
345
|
-
|
|
339
|
+
if (I.value) {
|
|
340
|
+
const { enabled: v, id: f, name: g } = I.value;
|
|
341
|
+
s.action = v ? "disable" : "enable", s.id = f, s.name = g || f;
|
|
346
342
|
}
|
|
347
|
-
return
|
|
348
|
-
}),
|
|
349
|
-
|
|
350
|
-
},
|
|
351
|
-
|
|
352
|
-
},
|
|
353
|
-
var
|
|
354
|
-
if (!await ((
|
|
343
|
+
return s;
|
|
344
|
+
}), L = (s) => {
|
|
345
|
+
J.value = !0, I.value = s;
|
|
346
|
+
}, Q = () => {
|
|
347
|
+
J.value = !1, I.value = null;
|
|
348
|
+
}, le = async () => {
|
|
349
|
+
var g, o;
|
|
350
|
+
if (!await ((g = c.canEdit) == null ? void 0 : g.call(c, I.value)) || !I.value)
|
|
355
351
|
return;
|
|
356
|
-
const
|
|
352
|
+
const v = `${ue.value.href}/${I.value.id}`, f = !I.value.enabled;
|
|
357
353
|
try {
|
|
358
|
-
const { data:
|
|
359
|
-
|
|
360
|
-
} catch (
|
|
361
|
-
|
|
354
|
+
const { data: P } = ((o = c.config) == null ? void 0 : o.app) === "konnect" ? await G.put(v, { ...I.value, enabled: f }) : await G.patch(v, { ...I.value, enabled: f });
|
|
355
|
+
m("toggle:success", P), I.value.enabled = f;
|
|
356
|
+
} catch (P) {
|
|
357
|
+
m("error", P);
|
|
362
358
|
}
|
|
363
|
-
},
|
|
364
|
-
|
|
365
|
-
},
|
|
366
|
-
const
|
|
367
|
-
if (!f
|
|
368
|
-
|
|
369
|
-
entity:
|
|
359
|
+
}, oe = (s) => {
|
|
360
|
+
c.config.getControlPlaneRoute && N.push(c.config.getControlPlaneRoute(s));
|
|
361
|
+
}, me = (s, v) => {
|
|
362
|
+
const f = s.id;
|
|
363
|
+
if (!v(f)) {
|
|
364
|
+
m("copy:error", {
|
|
365
|
+
entity: s,
|
|
370
366
|
field: "id",
|
|
371
|
-
message:
|
|
367
|
+
message: a("errors.copy")
|
|
372
368
|
});
|
|
373
369
|
return;
|
|
374
370
|
}
|
|
375
|
-
|
|
376
|
-
entity:
|
|
371
|
+
m("copy:success", {
|
|
372
|
+
entity: s,
|
|
377
373
|
field: "id",
|
|
378
|
-
message:
|
|
374
|
+
message: a("copy.success", { val: f })
|
|
379
375
|
});
|
|
380
|
-
},
|
|
381
|
-
const
|
|
382
|
-
if (!f
|
|
383
|
-
|
|
384
|
-
entity:
|
|
385
|
-
message:
|
|
376
|
+
}, ve = (s, v) => {
|
|
377
|
+
const f = JSON.stringify(s);
|
|
378
|
+
if (!v(f)) {
|
|
379
|
+
m("copy:error", {
|
|
380
|
+
entity: s,
|
|
381
|
+
message: a("errors.copy")
|
|
386
382
|
});
|
|
387
383
|
return;
|
|
388
384
|
}
|
|
389
|
-
|
|
390
|
-
entity:
|
|
391
|
-
message:
|
|
385
|
+
m("copy:success", {
|
|
386
|
+
entity: s,
|
|
387
|
+
message: a("copy.success_brief")
|
|
392
388
|
});
|
|
393
|
-
},
|
|
394
|
-
var
|
|
395
|
-
await ((
|
|
396
|
-
},
|
|
397
|
-
label:
|
|
398
|
-
to:
|
|
399
|
-
}),
|
|
400
|
-
label:
|
|
401
|
-
to:
|
|
402
|
-
}),
|
|
403
|
-
|
|
404
|
-
},
|
|
405
|
-
|
|
406
|
-
},
|
|
407
|
-
var
|
|
408
|
-
if ((
|
|
409
|
-
|
|
389
|
+
}, ge = async (s) => {
|
|
390
|
+
var f;
|
|
391
|
+
await ((f = c.canRetrieve) == null ? void 0 : f.call(c, s)) && N.push(c.config.getViewRoute(s.id));
|
|
392
|
+
}, ye = (s) => ({
|
|
393
|
+
label: a("actions.view"),
|
|
394
|
+
to: c.config.getViewRoute(s)
|
|
395
|
+
}), X = (s) => ({
|
|
396
|
+
label: a("actions.edit"),
|
|
397
|
+
to: c.config.getEditRoute(s)
|
|
398
|
+
}), x = C(void 0), W = C(!1), Y = C(!1), K = C(""), _e = De(c.config, A.value), q = (s) => {
|
|
399
|
+
x.value = s, W.value = !0, K.value = "";
|
|
400
|
+
}, O = () => {
|
|
401
|
+
W.value = !1, x.value = void 0;
|
|
402
|
+
}, ie = async () => {
|
|
403
|
+
var s, v, f;
|
|
404
|
+
if ((s = x.value) != null && s.id) {
|
|
405
|
+
Y.value = !0;
|
|
410
406
|
try {
|
|
411
|
-
await
|
|
412
|
-
} catch (
|
|
413
|
-
|
|
407
|
+
await G.delete(_e(x.value.id)), m("delete:success", x.value), O(), r.value++;
|
|
408
|
+
} catch (g) {
|
|
409
|
+
K.value = ((f = (v = g.response) == null ? void 0 : v.data) == null ? void 0 : f.message) || g.message || a("errors.delete"), m("error", g);
|
|
414
410
|
} finally {
|
|
415
|
-
|
|
411
|
+
Y.value = !1;
|
|
416
412
|
}
|
|
417
413
|
}
|
|
418
414
|
};
|
|
419
|
-
|
|
420
|
-
var
|
|
421
|
-
if (
|
|
422
|
-
|
|
423
|
-
title:
|
|
424
|
-
}, (
|
|
415
|
+
he(H, (s) => {
|
|
416
|
+
var v, f, g;
|
|
417
|
+
if (s.status === Ge.Error) {
|
|
418
|
+
_.value = {
|
|
419
|
+
title: a("errors.general")
|
|
420
|
+
}, (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);
|
|
425
421
|
return;
|
|
426
422
|
}
|
|
427
|
-
|
|
423
|
+
_.value = null;
|
|
428
424
|
});
|
|
429
|
-
const
|
|
430
|
-
return
|
|
431
|
-
|
|
432
|
-
}), (
|
|
433
|
-
const
|
|
434
|
-
return
|
|
435
|
-
|
|
436
|
-
"cache-identifier":
|
|
437
|
-
"default-table-preferences":
|
|
438
|
-
"disable-sorting":
|
|
439
|
-
"empty-state-options":
|
|
425
|
+
const t = C(!1);
|
|
426
|
+
return Ee(async () => {
|
|
427
|
+
t.value = await c.canCreate();
|
|
428
|
+
}), (s, v) => {
|
|
429
|
+
const f = F("KButton"), g = F("KBadge"), o = F("KInputSwitch"), P = F("KDropdownItem"), u = F("KClipboardProvider");
|
|
430
|
+
return S(), U("div", nt, [
|
|
431
|
+
d(l(Le), {
|
|
432
|
+
"cache-identifier": n.cacheIdentifier,
|
|
433
|
+
"default-table-preferences": ce,
|
|
434
|
+
"disable-sorting": T.value,
|
|
435
|
+
"empty-state-options": pe.value,
|
|
440
436
|
"enable-entity-actions": "",
|
|
441
|
-
"error-message":
|
|
442
|
-
fetcher:
|
|
443
|
-
"fetcher-cache-key":
|
|
437
|
+
"error-message": _.value,
|
|
438
|
+
fetcher: l(j),
|
|
439
|
+
"fetcher-cache-key": r.value,
|
|
444
440
|
"pagination-type": "offset",
|
|
445
|
-
"preferences-storage-key":
|
|
446
|
-
query:
|
|
447
|
-
"table-headers":
|
|
448
|
-
onClearSearchInput:
|
|
449
|
-
"onClick:row":
|
|
450
|
-
onSort:
|
|
441
|
+
"preferences-storage-key": "kong-ui-entities-gateway-services-list",
|
|
442
|
+
query: B.value,
|
|
443
|
+
"table-headers": l(de),
|
|
444
|
+
onClearSearchInput: fe,
|
|
445
|
+
"onClick:row": v[2] || (v[2] = (y) => ge(y)),
|
|
446
|
+
onSort: e
|
|
451
447
|
}, {
|
|
452
|
-
"toolbar-filter":
|
|
453
|
-
|
|
454
|
-
modelValue:
|
|
455
|
-
"onUpdate:modelValue":
|
|
456
|
-
config:
|
|
448
|
+
"toolbar-filter": p(() => [
|
|
449
|
+
d(l(Ke), {
|
|
450
|
+
modelValue: B.value,
|
|
451
|
+
"onUpdate:modelValue": v[0] || (v[0] = (y) => B.value = y),
|
|
452
|
+
config: k.value
|
|
457
453
|
}, null, 8, ["modelValue", "config"])
|
|
458
454
|
]),
|
|
459
|
-
"toolbar-button":
|
|
460
|
-
(
|
|
461
|
-
disabled: !
|
|
455
|
+
"toolbar-button": p(() => [
|
|
456
|
+
(S(), ke(Me, {
|
|
457
|
+
disabled: !n.useActionOutside,
|
|
462
458
|
to: "#kong-ui-app-page-header-action-button"
|
|
463
459
|
}, [
|
|
464
|
-
|
|
465
|
-
"auth-function": () =>
|
|
460
|
+
d(l(ee), {
|
|
461
|
+
"auth-function": () => n.canCreate()
|
|
466
462
|
}, {
|
|
467
|
-
default:
|
|
468
|
-
|
|
463
|
+
default: p(() => [
|
|
464
|
+
d(f, {
|
|
469
465
|
appearance: "primary",
|
|
470
466
|
"data-testid": "toolbar-add-gateway-service",
|
|
471
|
-
size:
|
|
472
|
-
to:
|
|
467
|
+
size: n.useActionOutside ? "medium" : "large",
|
|
468
|
+
to: n.config.createRoute
|
|
473
469
|
}, {
|
|
474
|
-
default:
|
|
475
|
-
|
|
476
|
-
|
|
470
|
+
default: p(() => [
|
|
471
|
+
d(l(Fe)),
|
|
472
|
+
E(" " + b(l(a)("gateway_services.list.toolbar_actions.new_gateway_service")), 1)
|
|
477
473
|
]),
|
|
478
474
|
_: 1
|
|
479
475
|
}, 8, ["size", "to"])
|
|
@@ -482,120 +478,120 @@ const pe = {
|
|
|
482
478
|
}, 8, ["auth-function"])
|
|
483
479
|
], 8, ["disabled"]))
|
|
484
480
|
]),
|
|
485
|
-
name:
|
|
486
|
-
V("b", null,
|
|
481
|
+
name: p(({ rowValue: y }) => [
|
|
482
|
+
V("b", null, b(y ?? "-"), 1)
|
|
487
483
|
]),
|
|
488
|
-
control_plane:
|
|
489
|
-
var
|
|
484
|
+
control_plane: p(({ row: y }) => {
|
|
485
|
+
var R;
|
|
490
486
|
return [
|
|
491
|
-
(
|
|
487
|
+
(R = y.x_meta) != null && R.cluster_id ? (S(), ke(g, {
|
|
492
488
|
key: 0,
|
|
493
|
-
tooltip:
|
|
489
|
+
tooltip: y.x_meta.cluster_id,
|
|
494
490
|
"truncation-tooltip": "",
|
|
495
|
-
onClick:
|
|
491
|
+
onClick: be((Z) => oe(y.x_meta.cluster_id), ["stop"])
|
|
496
492
|
}, {
|
|
497
|
-
default:
|
|
498
|
-
|
|
493
|
+
default: p(() => [
|
|
494
|
+
E(b(y.x_meta.cluster_id), 1)
|
|
499
495
|
]),
|
|
500
496
|
_: 2
|
|
501
|
-
}, 1032, ["tooltip", "onClick"])) : (
|
|
497
|
+
}, 1032, ["tooltip", "onClick"])) : (S(), U("b", ct, "-"))
|
|
502
498
|
];
|
|
503
499
|
}),
|
|
504
|
-
enabled:
|
|
505
|
-
|
|
506
|
-
"auth-function": () =>
|
|
500
|
+
enabled: p(({ row: y }) => [
|
|
501
|
+
d(l(ee), {
|
|
502
|
+
"auth-function": () => n.canEdit(y),
|
|
507
503
|
"force-show": ""
|
|
508
504
|
}, {
|
|
509
|
-
default:
|
|
505
|
+
default: p(({ isAllowed: R }) => [
|
|
510
506
|
V("div", {
|
|
511
|
-
onClick:
|
|
507
|
+
onClick: v[1] || (v[1] = be(() => {
|
|
512
508
|
}, ["stop"]))
|
|
513
509
|
}, [
|
|
514
|
-
|
|
515
|
-
modelValue:
|
|
516
|
-
"onUpdate:modelValue": (
|
|
517
|
-
"data-testid": `row-${
|
|
518
|
-
disabled: !
|
|
519
|
-
onClick:
|
|
510
|
+
d(o, {
|
|
511
|
+
modelValue: y.enabled,
|
|
512
|
+
"onUpdate:modelValue": (Z) => y.enabled = Z,
|
|
513
|
+
"data-testid": `row-${y.id}-toggle-input`,
|
|
514
|
+
disabled: !R,
|
|
515
|
+
onClick: be((Z) => L(y), ["prevent"])
|
|
520
516
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "disabled", "onClick"])
|
|
521
517
|
])
|
|
522
518
|
]),
|
|
523
519
|
_: 2
|
|
524
520
|
}, 1032, ["auth-function"])
|
|
525
521
|
]),
|
|
526
|
-
tags:
|
|
527
|
-
|
|
522
|
+
tags: p(({ rowValue: y }) => [
|
|
523
|
+
d(l(qe), { tags: y }, null, 8, ["tags"])
|
|
528
524
|
]),
|
|
529
|
-
created_at:
|
|
530
|
-
|
|
525
|
+
created_at: p(({ rowValue: y }) => [
|
|
526
|
+
E(b(l(M)(y)), 1)
|
|
531
527
|
]),
|
|
532
|
-
updated_at:
|
|
533
|
-
|
|
528
|
+
updated_at: p(({ row: y, rowValue: R }) => [
|
|
529
|
+
E(b(l(M)(R ?? y.created_at)), 1)
|
|
534
530
|
]),
|
|
535
|
-
actions:
|
|
536
|
-
u
|
|
537
|
-
default:
|
|
538
|
-
|
|
531
|
+
actions: p(({ row: y }) => [
|
|
532
|
+
d(u, null, {
|
|
533
|
+
default: p(({ copyToClipboard: R }) => [
|
|
534
|
+
d(P, {
|
|
539
535
|
"data-testid": "action-entity-copy-id",
|
|
540
|
-
onClick: (
|
|
536
|
+
onClick: (Z) => me(y, R)
|
|
541
537
|
}, {
|
|
542
|
-
default:
|
|
543
|
-
|
|
538
|
+
default: p(() => [
|
|
539
|
+
E(b(l(a)("actions.copy_id")), 1)
|
|
544
540
|
]),
|
|
545
541
|
_: 2
|
|
546
542
|
}, 1032, ["onClick"])
|
|
547
543
|
]),
|
|
548
544
|
_: 2
|
|
549
545
|
}, 1024),
|
|
550
|
-
u
|
|
551
|
-
default:
|
|
552
|
-
|
|
546
|
+
d(u, null, {
|
|
547
|
+
default: p(({ copyToClipboard: R }) => [
|
|
548
|
+
d(P, {
|
|
553
549
|
"data-testid": "action-entity-copy-json",
|
|
554
|
-
onClick: (
|
|
550
|
+
onClick: (Z) => ve(y, R)
|
|
555
551
|
}, {
|
|
556
|
-
default:
|
|
557
|
-
|
|
552
|
+
default: p(() => [
|
|
553
|
+
E(b(l(a)("actions.copy_json")), 1)
|
|
558
554
|
]),
|
|
559
555
|
_: 2
|
|
560
556
|
}, 1032, ["onClick"])
|
|
561
557
|
]),
|
|
562
558
|
_: 2
|
|
563
559
|
}, 1024),
|
|
564
|
-
|
|
565
|
-
"auth-function": () =>
|
|
560
|
+
d(l(ee), {
|
|
561
|
+
"auth-function": () => n.canRetrieve(y)
|
|
566
562
|
}, {
|
|
567
|
-
default:
|
|
568
|
-
|
|
563
|
+
default: p(() => [
|
|
564
|
+
d(P, {
|
|
569
565
|
"data-testid": "action-entity-view",
|
|
570
566
|
"has-divider": "",
|
|
571
|
-
item:
|
|
567
|
+
item: ye(y.id)
|
|
572
568
|
}, null, 8, ["item"])
|
|
573
569
|
]),
|
|
574
570
|
_: 2
|
|
575
571
|
}, 1032, ["auth-function"]),
|
|
576
|
-
|
|
577
|
-
"auth-function": () =>
|
|
572
|
+
d(l(ee), {
|
|
573
|
+
"auth-function": () => n.canEdit(y)
|
|
578
574
|
}, {
|
|
579
|
-
default:
|
|
580
|
-
|
|
575
|
+
default: p(() => [
|
|
576
|
+
d(P, {
|
|
581
577
|
"data-testid": "action-entity-edit",
|
|
582
|
-
item:
|
|
578
|
+
item: X(y.id)
|
|
583
579
|
}, null, 8, ["item"])
|
|
584
580
|
]),
|
|
585
581
|
_: 2
|
|
586
582
|
}, 1032, ["auth-function"]),
|
|
587
|
-
|
|
588
|
-
"auth-function": () =>
|
|
583
|
+
d(l(ee), {
|
|
584
|
+
"auth-function": () => n.canDelete(y)
|
|
589
585
|
}, {
|
|
590
|
-
default:
|
|
591
|
-
|
|
586
|
+
default: p(() => [
|
|
587
|
+
d(P, {
|
|
592
588
|
danger: "",
|
|
593
589
|
"data-testid": "action-entity-delete",
|
|
594
590
|
"has-divider": "",
|
|
595
|
-
onClick: (
|
|
591
|
+
onClick: (R) => q(y)
|
|
596
592
|
}, {
|
|
597
|
-
default:
|
|
598
|
-
|
|
593
|
+
default: p(() => [
|
|
594
|
+
E(b(l(a)("actions.delete.menu_label")), 1)
|
|
599
595
|
]),
|
|
600
596
|
_: 2
|
|
601
597
|
}, 1032, ["onClick"])
|
|
@@ -605,64 +601,64 @@ const pe = {
|
|
|
605
601
|
]),
|
|
606
602
|
_: 1
|
|
607
603
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers"]),
|
|
608
|
-
|
|
609
|
-
action:
|
|
610
|
-
"entity-id":
|
|
611
|
-
"entity-name":
|
|
612
|
-
"entity-type":
|
|
613
|
-
"on-confirm":
|
|
614
|
-
visible:
|
|
615
|
-
onCancel:
|
|
616
|
-
onProceed:
|
|
604
|
+
d(l(Ne), {
|
|
605
|
+
action: z.value.action,
|
|
606
|
+
"entity-id": z.value.id,
|
|
607
|
+
"entity-name": z.value.name,
|
|
608
|
+
"entity-type": l(a)("glossary.gateway_services"),
|
|
609
|
+
"on-confirm": le,
|
|
610
|
+
visible: J.value,
|
|
611
|
+
onCancel: Q,
|
|
612
|
+
onProceed: Q
|
|
617
613
|
}, null, 8, ["action", "entity-id", "entity-name", "entity-type", "visible"]),
|
|
618
|
-
|
|
619
|
-
"action-pending":
|
|
620
|
-
description:
|
|
621
|
-
"entity-name":
|
|
622
|
-
"entity-type":
|
|
623
|
-
error:
|
|
624
|
-
title:
|
|
625
|
-
visible:
|
|
626
|
-
onCancel:
|
|
627
|
-
onProceed:
|
|
614
|
+
d(l(We), {
|
|
615
|
+
"action-pending": Y.value,
|
|
616
|
+
description: l(a)("actions.delete.description"),
|
|
617
|
+
"entity-name": x.value && (x.value.name || x.value.id),
|
|
618
|
+
"entity-type": l(Oe).GatewayService,
|
|
619
|
+
error: K.value,
|
|
620
|
+
title: l(a)("actions.delete.title"),
|
|
621
|
+
visible: W.value,
|
|
622
|
+
onCancel: O,
|
|
623
|
+
onProceed: ie
|
|
628
624
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
|
|
629
625
|
]);
|
|
630
626
|
};
|
|
631
627
|
}
|
|
632
|
-
}),
|
|
633
|
-
const
|
|
634
|
-
for (const [
|
|
635
|
-
|
|
636
|
-
return
|
|
637
|
-
},
|
|
628
|
+
}), Ue = (n, $) => {
|
|
629
|
+
const m = n.__vccOpts || n;
|
|
630
|
+
for (const [c, a] of $)
|
|
631
|
+
m[c] = a;
|
|
632
|
+
return m;
|
|
633
|
+
}, At = /* @__PURE__ */ Ue(dt, [["__scopeId", "data-v-9d0e0123"]]), 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 = {
|
|
638
634
|
key: 0,
|
|
639
635
|
class: "gateway-service-form-group-fields"
|
|
640
|
-
},
|
|
636
|
+
}, gt = {
|
|
641
637
|
key: 1,
|
|
642
638
|
class: "gateway-service-form-group-fields"
|
|
643
|
-
},
|
|
639
|
+
}, yt = { key: 0 }, _t = { class: "gateway-service-form-margin-top" }, bt = { class: "gateway-service-form-margin-bottom" }, ht = { class: "gateway-service-form-margin-bottom" }, wt = { class: "gateway-service-form-margin-bottom" }, kt = { class: "gateway-service-form-margin-bottom" }, Vt = {
|
|
644
640
|
key: 0,
|
|
645
641
|
class: "gateway-service-form-margin-bottom"
|
|
646
|
-
},
|
|
642
|
+
}, Ct = {
|
|
647
643
|
key: 1,
|
|
648
644
|
class: "gateway-service-form-margin-bottom"
|
|
649
|
-
},
|
|
645
|
+
}, St = {
|
|
650
646
|
key: 2,
|
|
651
647
|
class: "gateway-service-form-margin-bottom"
|
|
652
|
-
},
|
|
648
|
+
}, It = {
|
|
653
649
|
key: 0,
|
|
654
650
|
class: "checkbox-aligned-radio"
|
|
655
|
-
},
|
|
651
|
+
}, Tt = {
|
|
656
652
|
key: 1,
|
|
657
653
|
class: "checkbox-aligned-radio"
|
|
658
|
-
},
|
|
654
|
+
}, Pt = /* @__PURE__ */ we({
|
|
659
655
|
__name: "GatewayServiceForm",
|
|
660
656
|
props: {
|
|
661
657
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
662
658
|
config: {
|
|
663
659
|
type: Object,
|
|
664
660
|
required: !0,
|
|
665
|
-
validator: (
|
|
661
|
+
validator: (n) => !(!n || !["konnect", "kongManager"].includes(n == null ? void 0 : n.app) || n.app === "konnect" && !n.controlPlaneId || n.app === "kongManager" && typeof n.workspace != "string" || !n.cancelRoute)
|
|
666
662
|
},
|
|
667
663
|
/** If a valid Gateway Service ID is provided, it will put the form in Edit mode instead of Create */
|
|
668
664
|
gatewayServiceId: {
|
|
@@ -678,9 +674,9 @@ const pe = {
|
|
|
678
674
|
}
|
|
679
675
|
},
|
|
680
676
|
emits: ["update", "error", "url-valid:success", "url-valid:error", "loading", "model-updated"],
|
|
681
|
-
setup(
|
|
682
|
-
var
|
|
683
|
-
const
|
|
677
|
+
setup(n, { expose: $, emit: m }) {
|
|
678
|
+
var ie;
|
|
679
|
+
const c = m, a = n, M = C(!0), N = Ie(), { i18nT: G, i18n: { t: r } } = ne.useI18n(), { getMessageFromError: T } = je(), { axiosInstance: h } = Te((ie = a.config) == null ? void 0 : ie.axiosRequestConfig), ce = He(), de = w(() => te.form[a.config.app].edit), A = w(() => a.gatewayServiceId ? Ce.Edit : Ce.Create), ue = C(!1), B = w(() => !!a.gatewayServiceId), k = C(B.value ? "protocol" : "url"), j = ne.usePortFromProtocol(), H = C(""), fe = w(() => !!H.value), e = Ve({
|
|
684
680
|
fields: {
|
|
685
681
|
name: "",
|
|
686
682
|
protocol: "http",
|
|
@@ -700,7 +696,7 @@ const pe = {
|
|
|
700
696
|
},
|
|
701
697
|
isReadonly: !1,
|
|
702
698
|
errorMessage: ""
|
|
703
|
-
}),
|
|
699
|
+
}), _ = Ve({
|
|
704
700
|
name: "",
|
|
705
701
|
protocol: "http",
|
|
706
702
|
host: "",
|
|
@@ -716,13 +712,13 @@ const pe = {
|
|
|
716
712
|
tls_verify_enabled: !1,
|
|
717
713
|
tls_verify_value: !1,
|
|
718
714
|
tags: ""
|
|
719
|
-
}),
|
|
720
|
-
gatewayInfo:
|
|
715
|
+
}), pe = a.config.app === "konnect" || Je({
|
|
716
|
+
gatewayInfo: a.config.gatewayInfo,
|
|
721
717
|
// 'ws' and 'wss' are not valid values for the protocol field in Gateway Community Edition or before Gateway Enterprise Edition 3.0
|
|
722
718
|
supportedRange: {
|
|
723
719
|
enterprise: ["3.0"]
|
|
724
720
|
}
|
|
725
|
-
}),
|
|
721
|
+
}), J = [
|
|
726
722
|
{
|
|
727
723
|
label: r("gateway_services.form.fields.protocol.options.http"),
|
|
728
724
|
value: "http",
|
|
@@ -758,7 +754,7 @@ const pe = {
|
|
|
758
754
|
value: "grpcs",
|
|
759
755
|
group: "grpc"
|
|
760
756
|
},
|
|
761
|
-
...
|
|
757
|
+
...pe ? [
|
|
762
758
|
{
|
|
763
759
|
label: r("gateway_services.form.fields.protocol.options.ws"),
|
|
764
760
|
value: "ws",
|
|
@@ -775,60 +771,60 @@ const pe = {
|
|
|
775
771
|
value: "udp",
|
|
776
772
|
group: "udp"
|
|
777
773
|
}
|
|
778
|
-
],
|
|
774
|
+
], I = { url: "url", protocol: "protocol" }, z = (t, i) => {
|
|
779
775
|
i.value;
|
|
780
|
-
},
|
|
781
|
-
|
|
782
|
-
},
|
|
783
|
-
if (e.fields.url &&
|
|
776
|
+
}, L = (t) => t ? parseFloat(t) : 0, Q = () => {
|
|
777
|
+
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
|
+
}, le = () => {
|
|
779
|
+
if (e.fields.url && k.value === "url")
|
|
784
780
|
try {
|
|
785
781
|
const t = new URL(e.fields.url);
|
|
786
782
|
e.errorMessage = "", e.fields.protocol = t.protocol.slice(0, -1), e.fields.host = t.hostname, e.fields.path = t.pathname;
|
|
787
783
|
const i = Number(t.port);
|
|
788
|
-
|
|
784
|
+
ue.value = !!i, e.fields.port = i || j.getPortFromProtocol(e.fields.protocol), e.errorMessage = "", c("url-valid:success");
|
|
789
785
|
} catch (t) {
|
|
790
|
-
e.errorMessage = r("errors.urlErrorMessage"),
|
|
786
|
+
e.errorMessage = r("errors.urlErrorMessage"), c("url-valid:error", T(t));
|
|
791
787
|
}
|
|
792
788
|
else
|
|
793
|
-
|
|
794
|
-
},
|
|
795
|
-
if (
|
|
789
|
+
c("url-valid:success"), e.errorMessage = "";
|
|
790
|
+
}, oe = w(() => !["tcp", "tls", "tls_passthrough", "grpc", "grpcs", "udp"].includes(e.fields.protocol)), me = w(() => {
|
|
791
|
+
if (k.value === "url")
|
|
796
792
|
return !0;
|
|
797
793
|
const t = ["https", "wss", "tls"].includes(e.fields.protocol);
|
|
798
|
-
return
|
|
799
|
-
}),
|
|
800
|
-
if (
|
|
794
|
+
return k.value === "protocol" && t;
|
|
795
|
+
}), ve = w(() => {
|
|
796
|
+
if (k.value === "url")
|
|
801
797
|
return !0;
|
|
802
798
|
const t = ["https", "tls"].includes(e.fields.protocol);
|
|
803
|
-
return
|
|
804
|
-
}),
|
|
805
|
-
if (
|
|
799
|
+
return k.value === "protocol" && t;
|
|
800
|
+
}), ge = w(() => {
|
|
801
|
+
if (k.value === "url")
|
|
806
802
|
return !0;
|
|
807
803
|
const t = ["https", "wss", "tls"].includes(e.fields.protocol);
|
|
808
|
-
return
|
|
809
|
-
}),
|
|
810
|
-
|
|
811
|
-
},
|
|
812
|
-
var i,
|
|
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 = ((
|
|
814
|
-
},
|
|
815
|
-
|
|
816
|
-
},
|
|
817
|
-
var i,
|
|
818
|
-
let t = `${
|
|
819
|
-
return
|
|
820
|
-
}),
|
|
821
|
-
var i,
|
|
822
|
-
let t = `${
|
|
823
|
-
return
|
|
824
|
-
}),
|
|
804
|
+
return k.value === "protocol" && t;
|
|
805
|
+
}), ye = (t) => {
|
|
806
|
+
H.value = ce.utf8Name(t);
|
|
807
|
+
}, X = w(() => B.value && JSON.stringify(e.fields) !== JSON.stringify(_) || k.value === "url" && !!e.fields.url || k.value === "protocol" && !!e.fields.host), x = (t) => {
|
|
808
|
+
var i, s, v;
|
|
809
|
+
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
|
+
}, W = () => {
|
|
811
|
+
N.push(a.config.cancelRoute);
|
|
812
|
+
}, Y = w(() => {
|
|
813
|
+
var i, s;
|
|
814
|
+
let t = `${a.config.apiBaseUrl}${te.form[a.config.app].validate}`;
|
|
815
|
+
return a.config.app === "konnect" ? t = t.replace(/{controlPlaneId}/gi, ((i = a.config) == null ? void 0 : i.controlPlaneId) || "") : a.config.app === "kongManager" && (t = t.replace(/\/{workspace}/gi, (s = a.config) != null && s.workspace ? `/${a.config.workspace}` : "")), t = t.replace(/{id}/gi, a.gatewayServiceId), t;
|
|
816
|
+
}), K = w(() => {
|
|
817
|
+
var i, s;
|
|
818
|
+
let t = `${a.config.apiBaseUrl}${te.form[a.config.app][A.value]}`;
|
|
819
|
+
return a.config.app === "konnect" ? t = t.replace(/{controlPlaneId}/gi, ((i = a.config) == null ? void 0 : i.controlPlaneId) || "") : a.config.app === "kongManager" && (t = t.replace(/\/{workspace}/gi, (s = a.config) != null && s.workspace ? `/${a.config.workspace}` : "")), t = t.replace(/{id}/gi, a.gatewayServiceId), t;
|
|
820
|
+
}), _e = (t) => {
|
|
825
821
|
let i = "";
|
|
826
822
|
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;
|
|
827
|
-
},
|
|
828
|
-
var i,
|
|
823
|
+
}, q = w(() => {
|
|
824
|
+
var i, s, v, f;
|
|
829
825
|
const t = {
|
|
830
826
|
name: e.fields.name || null,
|
|
831
|
-
tags: e.fields.tags ? (
|
|
827
|
+
tags: e.fields.tags ? (v = (s = (i = e.fields.tags) == null ? void 0 : i.split(",")) == null ? void 0 : s.map((g) => String(g || "").trim())) == null ? void 0 : v.filter((g) => g !== "") : null,
|
|
832
828
|
protocol: e.fields.protocol,
|
|
833
829
|
path: e.fields.path || null,
|
|
834
830
|
read_timeout: e.fields.read_timeout,
|
|
@@ -837,263 +833,263 @@ const pe = {
|
|
|
837
833
|
connect_timeout: e.fields.connect_timeout,
|
|
838
834
|
tls_verify_value: e.fields.tls_verify_value,
|
|
839
835
|
tls_verify_enabled: e.fields.tls_verify_enabled,
|
|
840
|
-
ca_certificates: e.fields.ca_certificates ? (f = e.fields.ca_certificates) == null ? void 0 : f.split(",").filter((
|
|
836
|
+
ca_certificates: e.fields.ca_certificates ? (f = e.fields.ca_certificates) == null ? void 0 : f.split(",").filter((g) => g !== "") : null,
|
|
841
837
|
client_certificate: e.fields.client_certificate ? { id: e.fields.client_certificate } : null,
|
|
842
838
|
write_timeout: e.fields.write_timeout,
|
|
843
839
|
port: e.fields.port,
|
|
844
840
|
url: e.fields.url
|
|
845
841
|
};
|
|
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),
|
|
847
|
-
}),
|
|
848
|
-
var t, i,
|
|
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), oe.value || (t.path = null), A.value === "create" ? k.value === "url" ? (delete t.protocol, delete t.host, delete t.path, a.config.app === "konnect" && delete t.port) : delete t.url : A.value === "edit" && delete t.url, t;
|
|
843
|
+
}), O = async () => {
|
|
844
|
+
var t, i, s, v;
|
|
849
845
|
try {
|
|
850
|
-
e.isReadonly = !0,
|
|
851
|
-
const f =
|
|
852
|
-
|
|
853
|
-
let
|
|
854
|
-
if (await
|
|
855
|
-
const { data:
|
|
856
|
-
e.fields.name = (
|
|
846
|
+
e.isReadonly = !0, le();
|
|
847
|
+
const f = q.value;
|
|
848
|
+
_e(f);
|
|
849
|
+
let g;
|
|
850
|
+
if (await h.post(Y.value, f), A.value === "create" ? g = await h.post(K.value, f) : A.value === "edit" && (g = ((t = a.config) == null ? void 0 : t.app) === "konnect" ? await h.put(K.value, f) : await h.patch(K.value, f)), g) {
|
|
851
|
+
const { data: o } = g;
|
|
852
|
+
e.fields.name = (o == null ? void 0 : o.name) || "", e.fields.port = o.port || j.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);
|
|
857
853
|
}
|
|
858
|
-
return
|
|
854
|
+
return g;
|
|
859
855
|
} catch (f) {
|
|
860
|
-
e.errorMessage =
|
|
856
|
+
e.errorMessage = T(f), c("error", f);
|
|
861
857
|
} finally {
|
|
862
858
|
e.isReadonly = !1;
|
|
863
859
|
}
|
|
864
860
|
};
|
|
865
|
-
return
|
|
866
|
-
Object.assign(e.fields,
|
|
867
|
-
}),
|
|
868
|
-
e.fields.port =
|
|
869
|
-
}),
|
|
870
|
-
|
|
871
|
-
}),
|
|
872
|
-
validateUrl:
|
|
873
|
-
getPayload:
|
|
874
|
-
saveFormData:
|
|
875
|
-
canSubmit:
|
|
876
|
-
initForm:
|
|
861
|
+
return he(() => a.gatewayServiceId, () => {
|
|
862
|
+
Object.assign(e.fields, _);
|
|
863
|
+
}), he(e.fields, (t) => {
|
|
864
|
+
e.fields.port = j.getPortFromProtocol(t.protocol, String(t.port)), c("model-updated", q.value);
|
|
865
|
+
}), xe(() => {
|
|
866
|
+
c("model-updated", q.value);
|
|
867
|
+
}), $({
|
|
868
|
+
validateUrl: le,
|
|
869
|
+
getPayload: q,
|
|
870
|
+
saveFormData: O,
|
|
871
|
+
canSubmit: X,
|
|
872
|
+
initForm: x
|
|
877
873
|
}), (t, i) => {
|
|
878
|
-
const
|
|
879
|
-
return
|
|
880
|
-
|
|
881
|
-
"can-submit":
|
|
882
|
-
config:
|
|
883
|
-
"edit-id":
|
|
884
|
-
"entity-type":
|
|
874
|
+
const s = F("KInput"), v = F("KLabel"), f = F("KRadio"), g = F("KSelect"), o = F("KCheckbox"), P = F("KCollapse");
|
|
875
|
+
return S(), U("div", ut, [
|
|
876
|
+
d(l(ze), {
|
|
877
|
+
"can-submit": X.value,
|
|
878
|
+
config: n.config,
|
|
879
|
+
"edit-id": n.gatewayServiceId,
|
|
880
|
+
"entity-type": l(Pe).GatewayService,
|
|
885
881
|
"error-message": e.errorMessage,
|
|
886
|
-
"fetch-url":
|
|
887
|
-
"form-fields":
|
|
882
|
+
"fetch-url": de.value,
|
|
883
|
+
"form-fields": q.value,
|
|
888
884
|
"is-readonly": e.isReadonly,
|
|
889
|
-
onCancel:
|
|
890
|
-
"onFetch:error": i[25] || (i[25] = (
|
|
891
|
-
"onFetch:success":
|
|
892
|
-
onLoading: i[26] || (i[26] = (
|
|
893
|
-
onSubmit:
|
|
885
|
+
onCancel: W,
|
|
886
|
+
"onFetch:error": i[25] || (i[25] = (u) => t.$emit("error", u)),
|
|
887
|
+
"onFetch:success": x,
|
|
888
|
+
onLoading: i[26] || (i[26] = (u) => t.$emit("loading", u)),
|
|
889
|
+
onSubmit: O
|
|
894
890
|
}, {
|
|
895
|
-
"form-actions":
|
|
896
|
-
|
|
897
|
-
canSubmit:
|
|
898
|
-
cancel:
|
|
899
|
-
submit:
|
|
891
|
+
"form-actions": p(() => [
|
|
892
|
+
Re(t.$slots, "form-actions", {
|
|
893
|
+
canSubmit: X.value,
|
|
894
|
+
cancel: W,
|
|
895
|
+
submit: O
|
|
900
896
|
}, void 0, !0)
|
|
901
897
|
]),
|
|
902
|
-
default:
|
|
903
|
-
|
|
904
|
-
description:
|
|
905
|
-
"hide-info-header":
|
|
906
|
-
title:
|
|
898
|
+
default: p(() => [
|
|
899
|
+
d(l(Se), {
|
|
900
|
+
description: l(r)("gateway_services.form.sections.general.description"),
|
|
901
|
+
"hide-info-header": n.hideSectionsInfo,
|
|
902
|
+
title: l(r)("gateway_services.form.sections.general.title")
|
|
907
903
|
}, {
|
|
908
|
-
default:
|
|
909
|
-
|
|
904
|
+
default: p(() => [
|
|
905
|
+
d(s, {
|
|
910
906
|
modelValue: e.fields.name,
|
|
911
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
907
|
+
"onUpdate:modelValue": i[0] || (i[0] = (u) => e.fields.name = u),
|
|
912
908
|
modelModifiers: { trim: !0 },
|
|
913
909
|
autocomplete: "off",
|
|
914
910
|
"data-testid": "gateway-service-name-input",
|
|
915
|
-
error:
|
|
916
|
-
"error-message":
|
|
917
|
-
label:
|
|
911
|
+
error: fe.value,
|
|
912
|
+
"error-message": H.value,
|
|
913
|
+
label: l(r)("gateway_services.form.fields.name.label"),
|
|
918
914
|
"label-attributes": {
|
|
919
|
-
info:
|
|
915
|
+
info: l(r)("gateway_services.form.fields.name.tooltip"),
|
|
920
916
|
tooltipAttributes: { maxWidth: "400" }
|
|
921
917
|
},
|
|
922
918
|
name: "name",
|
|
923
|
-
placeholder:
|
|
919
|
+
placeholder: l(r)("gateway_services.form.fields.name.placeholder"),
|
|
924
920
|
readonly: e.isReadonly,
|
|
925
921
|
type: "text",
|
|
926
|
-
onInput:
|
|
922
|
+
onInput: ye
|
|
927
923
|
}, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes", "placeholder", "readonly"]),
|
|
928
|
-
|
|
924
|
+
d(s, {
|
|
929
925
|
modelValue: e.fields.tags,
|
|
930
|
-
"onUpdate:modelValue": i[1] || (i[1] = (
|
|
926
|
+
"onUpdate:modelValue": i[1] || (i[1] = (u) => e.fields.tags = u),
|
|
931
927
|
modelModifiers: { trim: !0 },
|
|
932
928
|
autocomplete: "off",
|
|
933
929
|
"data-testid": "gateway-service-tags-input",
|
|
934
|
-
help:
|
|
935
|
-
label:
|
|
930
|
+
help: l(r)("gateway_services.form.fields.tags.help"),
|
|
931
|
+
label: l(r)("gateway_services.form.fields.tags.label"),
|
|
936
932
|
"label-attributes": {
|
|
937
|
-
info:
|
|
933
|
+
info: l(r)("gateway_services.form.fields.tags.tooltip"),
|
|
938
934
|
tooltipAttributes: { maxWidth: "400" }
|
|
939
935
|
},
|
|
940
936
|
name: "tags",
|
|
941
|
-
placeholder:
|
|
937
|
+
placeholder: l(r)("gateway_services.form.fields.tags.placeholder"),
|
|
942
938
|
readonly: e.isReadonly,
|
|
943
939
|
type: "text"
|
|
944
940
|
}, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"])
|
|
945
941
|
]),
|
|
946
942
|
_: 1
|
|
947
943
|
}, 8, ["description", "hide-info-header", "title"]),
|
|
948
|
-
|
|
949
|
-
description:
|
|
950
|
-
"hide-info-header":
|
|
951
|
-
title:
|
|
944
|
+
d(l(Se), {
|
|
945
|
+
description: l(r)("gateway_services.form.sections.keys.description"),
|
|
946
|
+
"hide-info-header": n.hideSectionsInfo,
|
|
947
|
+
title: l(r)("gateway_services.form.sections.keys.title")
|
|
952
948
|
}, {
|
|
953
|
-
default:
|
|
954
|
-
|
|
955
|
-
V("div",
|
|
956
|
-
|
|
957
|
-
default:
|
|
958
|
-
|
|
949
|
+
default: p(() => [
|
|
950
|
+
B.value ? D("", !0) : (S(), U("div", ft, [
|
|
951
|
+
V("div", pt, [
|
|
952
|
+
d(v, { required: "" }, {
|
|
953
|
+
default: p(() => [
|
|
954
|
+
E(b(l(r)("gateway_services.form.sections.keys.checkedGroupLabel")), 1)
|
|
959
955
|
]),
|
|
960
956
|
_: 1
|
|
961
957
|
})
|
|
962
958
|
]),
|
|
963
|
-
V("div",
|
|
964
|
-
|
|
965
|
-
modelValue:
|
|
966
|
-
"onUpdate:modelValue": i[2] || (i[2] = (
|
|
959
|
+
V("div", mt, [
|
|
960
|
+
d(f, {
|
|
961
|
+
modelValue: k.value,
|
|
962
|
+
"onUpdate:modelValue": i[2] || (i[2] = (u) => k.value = u),
|
|
967
963
|
"data-testid": "gateway-service-url-radio",
|
|
968
|
-
"selected-value":
|
|
969
|
-
onChange:
|
|
964
|
+
"selected-value": I.url,
|
|
965
|
+
onChange: Q
|
|
970
966
|
}, {
|
|
971
|
-
default:
|
|
972
|
-
|
|
967
|
+
default: p(() => [
|
|
968
|
+
E(b(l(r)("gateway_services.form.sections.keys.urlLabel")), 1)
|
|
973
969
|
]),
|
|
974
970
|
_: 1
|
|
975
971
|
}, 8, ["modelValue", "selected-value"])
|
|
976
972
|
]),
|
|
977
|
-
|
|
978
|
-
|
|
973
|
+
k.value === "url" ? (S(), U("div", vt, [
|
|
974
|
+
d(s, {
|
|
979
975
|
modelValue: e.fields.url,
|
|
980
|
-
"onUpdate:modelValue": i[3] || (i[3] = (
|
|
976
|
+
"onUpdate:modelValue": i[3] || (i[3] = (u) => e.fields.url = u),
|
|
981
977
|
modelModifiers: { trim: !0 },
|
|
982
978
|
class: "gateway-service-url-input gateway-service-form-margin-bottom",
|
|
983
979
|
"data-testid": "gateway-service-url-input",
|
|
984
|
-
label:
|
|
980
|
+
label: l(r)("gateway_services.form.fields.upstream_url.label"),
|
|
985
981
|
"label-attributes": {
|
|
986
|
-
info:
|
|
982
|
+
info: n.config.app === "konnect" ? l(r)("gateway_services.form.fields.upstream_url.tooltip_for_konnect") : l(r)("gateway_services.form.fields.upstream_url.tooltip_for_km"),
|
|
987
983
|
tooltipAttributes: { maxWidth: "400" }
|
|
988
984
|
},
|
|
989
985
|
name: "url",
|
|
990
|
-
placeholder:
|
|
986
|
+
placeholder: l(r)("gateway_services.form.fields.upstream_url.placeholder"),
|
|
991
987
|
required: ""
|
|
992
988
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder"])
|
|
993
|
-
])) :
|
|
994
|
-
|
|
995
|
-
modelValue:
|
|
996
|
-
"onUpdate:modelValue": i[4] || (i[4] = (
|
|
989
|
+
])) : D("", !0),
|
|
990
|
+
d(f, {
|
|
991
|
+
modelValue: k.value,
|
|
992
|
+
"onUpdate:modelValue": i[4] || (i[4] = (u) => k.value = u),
|
|
997
993
|
"checked-group": "protocol",
|
|
998
994
|
"data-testid": "gateway-service-protocol-radio",
|
|
999
|
-
"selected-value":
|
|
1000
|
-
onChange:
|
|
995
|
+
"selected-value": I.protocol,
|
|
996
|
+
onChange: Q
|
|
1001
997
|
}, {
|
|
1002
|
-
default:
|
|
1003
|
-
|
|
998
|
+
default: p(() => [
|
|
999
|
+
E(b(l(r)("gateway_services.form.sections.keys.checkedGroupAltLabel")), 1)
|
|
1004
1000
|
]),
|
|
1005
1001
|
_: 1
|
|
1006
1002
|
}, 8, ["modelValue", "selected-value"])
|
|
1007
1003
|
])),
|
|
1008
|
-
|
|
1009
|
-
|
|
1004
|
+
k.value === "protocol" || B.value ? (S(), U("div", gt, [
|
|
1005
|
+
d(g, {
|
|
1010
1006
|
modelValue: e.fields.protocol,
|
|
1011
|
-
"onUpdate:modelValue": i[5] || (i[5] = (
|
|
1007
|
+
"onUpdate:modelValue": i[5] || (i[5] = (u) => e.fields.protocol = u),
|
|
1012
1008
|
"data-testid": "gateway-service-protocol-select",
|
|
1013
|
-
items:
|
|
1014
|
-
label:
|
|
1009
|
+
items: J,
|
|
1010
|
+
label: l(r)("gateway_services.form.fields.protocol.label"),
|
|
1015
1011
|
"label-attributes": {
|
|
1016
|
-
info:
|
|
1012
|
+
info: l(r)("gateway_services.form.fields.protocol.tooltip"),
|
|
1017
1013
|
tooltipAttributes: { maxWidth: "400" }
|
|
1018
1014
|
},
|
|
1019
1015
|
readonly: e.isReadonly,
|
|
1020
1016
|
required: "",
|
|
1021
1017
|
width: "100%",
|
|
1022
|
-
onSelected: i[6] || (i[6] = (
|
|
1018
|
+
onSelected: i[6] || (i[6] = (u) => z(e.fields.protocol, u))
|
|
1023
1019
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
1024
|
-
|
|
1020
|
+
d(s, {
|
|
1025
1021
|
modelValue: e.fields.host,
|
|
1026
|
-
"onUpdate:modelValue": i[7] || (i[7] = (
|
|
1022
|
+
"onUpdate:modelValue": i[7] || (i[7] = (u) => e.fields.host = u),
|
|
1027
1023
|
modelModifiers: { trim: !0 },
|
|
1028
1024
|
class: "gateway-service-form-margin-top",
|
|
1029
1025
|
"data-testid": "gateway-service-host-input",
|
|
1030
|
-
label:
|
|
1026
|
+
label: l(r)("gateway_services.form.fields.host.label"),
|
|
1031
1027
|
"label-attributes": {
|
|
1032
|
-
info:
|
|
1028
|
+
info: l(r)("gateway_services.form.fields.host.tooltip"),
|
|
1033
1029
|
tooltipAttributes: { maxWidth: "400" }
|
|
1034
1030
|
},
|
|
1035
1031
|
name: "host",
|
|
1036
|
-
placeholder:
|
|
1032
|
+
placeholder: l(r)("gateway_services.form.fields.host.placeholder"),
|
|
1037
1033
|
required: ""
|
|
1038
1034
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder"]),
|
|
1039
|
-
|
|
1040
|
-
|
|
1035
|
+
oe.value ? (S(), U("div", yt, [
|
|
1036
|
+
d(s, {
|
|
1041
1037
|
modelValue: e.fields.path,
|
|
1042
|
-
"onUpdate:modelValue": i[8] || (i[8] = (
|
|
1038
|
+
"onUpdate:modelValue": i[8] || (i[8] = (u) => e.fields.path = u),
|
|
1043
1039
|
modelModifiers: { trim: !0 },
|
|
1044
1040
|
class: "gateway-service-form-margin-top",
|
|
1045
1041
|
"data-testid": "gateway-service-path-input",
|
|
1046
|
-
label:
|
|
1042
|
+
label: l(r)("gateway_services.form.fields.path.label"),
|
|
1047
1043
|
"label-attributes": {
|
|
1048
|
-
info:
|
|
1044
|
+
info: l(r)("gateway_services.form.fields.path.tooltip"),
|
|
1049
1045
|
tooltipAttributes: { maxWidth: "400" }
|
|
1050
1046
|
},
|
|
1051
1047
|
name: "path",
|
|
1052
|
-
placeholder:
|
|
1048
|
+
placeholder: l(r)("gateway_services.form.fields.path.placeholder")
|
|
1053
1049
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder"])
|
|
1054
|
-
])) :
|
|
1055
|
-
|
|
1050
|
+
])) : D("", !0),
|
|
1051
|
+
d(s, {
|
|
1056
1052
|
modelValue: e.fields.port,
|
|
1057
1053
|
"onUpdate:modelValue": [
|
|
1058
|
-
i[9] || (i[9] = (
|
|
1054
|
+
i[9] || (i[9] = (u) => e.fields.port = u),
|
|
1059
1055
|
i[10] || (i[10] = () => {
|
|
1060
|
-
e.fields.port =
|
|
1056
|
+
e.fields.port = L(e.fields.port + "");
|
|
1061
1057
|
})
|
|
1062
1058
|
],
|
|
1063
1059
|
class: "gateway-service-form-margin-top",
|
|
1064
1060
|
"data-testid": "gateway-service-port-input",
|
|
1065
|
-
label:
|
|
1061
|
+
label: l(r)("gateway_services.form.fields.port.label"),
|
|
1066
1062
|
"label-attributes": {
|
|
1067
|
-
info:
|
|
1063
|
+
info: l(r)("gateway_services.form.fields.port.tooltip"),
|
|
1068
1064
|
tooltipAttributes: { maxWidth: "400" }
|
|
1069
1065
|
},
|
|
1070
1066
|
name: "port",
|
|
1071
1067
|
type: "number"
|
|
1072
1068
|
}, null, 8, ["modelValue", "label", "label-attributes"])
|
|
1073
|
-
])) :
|
|
1074
|
-
|
|
1075
|
-
modelValue:
|
|
1076
|
-
"onUpdate:modelValue": i[24] || (i[24] = (
|
|
1069
|
+
])) : D("", !0),
|
|
1070
|
+
d(P, {
|
|
1071
|
+
modelValue: M.value,
|
|
1072
|
+
"onUpdate:modelValue": i[24] || (i[24] = (u) => M.value = u),
|
|
1077
1073
|
"data-testid": "advanced-fields-collapse",
|
|
1078
1074
|
"trigger-alignment": "leading",
|
|
1079
|
-
"trigger-label":
|
|
1075
|
+
"trigger-label": l(r)("gateway_services.form.sections.keys.viewAdvancedFields")
|
|
1080
1076
|
}, {
|
|
1081
|
-
default:
|
|
1082
|
-
V("div",
|
|
1083
|
-
V("div",
|
|
1084
|
-
|
|
1077
|
+
default: p(() => [
|
|
1078
|
+
V("div", _t, [
|
|
1079
|
+
V("div", bt, [
|
|
1080
|
+
d(s, {
|
|
1085
1081
|
modelValue: e.fields.retries,
|
|
1086
1082
|
"onUpdate:modelValue": [
|
|
1087
|
-
i[11] || (i[11] = (
|
|
1083
|
+
i[11] || (i[11] = (u) => e.fields.retries = u),
|
|
1088
1084
|
i[12] || (i[12] = () => {
|
|
1089
|
-
e.fields.retries =
|
|
1085
|
+
e.fields.retries = L(e.fields.retries + "");
|
|
1090
1086
|
})
|
|
1091
1087
|
],
|
|
1092
1088
|
autocomplete: "off",
|
|
1093
1089
|
"data-testid": "gateway-service-retries-input",
|
|
1094
|
-
label:
|
|
1090
|
+
label: l(r)("gateway_services.form.fields.retries.label"),
|
|
1095
1091
|
"label-attributes": {
|
|
1096
|
-
info:
|
|
1092
|
+
info: l(r)("gateway_services.form.fields.retries.tooltip"),
|
|
1097
1093
|
tooltipAttributes: { maxWidth: "400" }
|
|
1098
1094
|
},
|
|
1099
1095
|
name: "retries",
|
|
@@ -1101,20 +1097,20 @@ const pe = {
|
|
|
1101
1097
|
type: "number"
|
|
1102
1098
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
1103
1099
|
]),
|
|
1104
|
-
V("div",
|
|
1105
|
-
|
|
1100
|
+
V("div", ht, [
|
|
1101
|
+
d(s, {
|
|
1106
1102
|
modelValue: e.fields.connect_timeout,
|
|
1107
1103
|
"onUpdate:modelValue": [
|
|
1108
|
-
i[13] || (i[13] = (
|
|
1104
|
+
i[13] || (i[13] = (u) => e.fields.connect_timeout = u),
|
|
1109
1105
|
i[14] || (i[14] = () => {
|
|
1110
|
-
e.fields.connect_timeout =
|
|
1106
|
+
e.fields.connect_timeout = L(e.fields.connect_timeout + "");
|
|
1111
1107
|
})
|
|
1112
1108
|
],
|
|
1113
1109
|
autocomplete: "off",
|
|
1114
1110
|
"data-testid": "gateway-service-connTimeout-input",
|
|
1115
|
-
label:
|
|
1111
|
+
label: l(r)("gateway_services.form.fields.connect_timeout.label"),
|
|
1116
1112
|
"label-attributes": {
|
|
1117
|
-
info:
|
|
1113
|
+
info: l(r)("gateway_services.form.fields.connect_timeout.tooltip"),
|
|
1118
1114
|
tooltipAttributes: { maxWidth: "400" }
|
|
1119
1115
|
},
|
|
1120
1116
|
name: "connTimeout",
|
|
@@ -1122,20 +1118,20 @@ const pe = {
|
|
|
1122
1118
|
type: "number"
|
|
1123
1119
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
1124
1120
|
]),
|
|
1125
|
-
V("div",
|
|
1126
|
-
|
|
1121
|
+
V("div", wt, [
|
|
1122
|
+
d(s, {
|
|
1127
1123
|
modelValue: e.fields.write_timeout,
|
|
1128
1124
|
"onUpdate:modelValue": [
|
|
1129
|
-
i[15] || (i[15] = (
|
|
1125
|
+
i[15] || (i[15] = (u) => e.fields.write_timeout = u),
|
|
1130
1126
|
i[16] || (i[16] = () => {
|
|
1131
|
-
e.fields.write_timeout =
|
|
1127
|
+
e.fields.write_timeout = L(e.fields.write_timeout + "");
|
|
1132
1128
|
})
|
|
1133
1129
|
],
|
|
1134
1130
|
autocomplete: "off",
|
|
1135
1131
|
"data-testid": "gateway-service-writeTimeout-input",
|
|
1136
|
-
label:
|
|
1132
|
+
label: l(r)("gateway_services.form.fields.write_timeout.label"),
|
|
1137
1133
|
"label-attributes": {
|
|
1138
|
-
info:
|
|
1134
|
+
info: l(r)("gateway_services.form.fields.write_timeout.tooltip"),
|
|
1139
1135
|
tooltipAttributes: { maxWidth: "400" }
|
|
1140
1136
|
},
|
|
1141
1137
|
name: "writeTimeout",
|
|
@@ -1143,20 +1139,20 @@ const pe = {
|
|
|
1143
1139
|
type: "number"
|
|
1144
1140
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
1145
1141
|
]),
|
|
1146
|
-
V("div",
|
|
1147
|
-
|
|
1142
|
+
V("div", kt, [
|
|
1143
|
+
d(s, {
|
|
1148
1144
|
modelValue: e.fields.read_timeout,
|
|
1149
1145
|
"onUpdate:modelValue": [
|
|
1150
|
-
i[17] || (i[17] = (
|
|
1146
|
+
i[17] || (i[17] = (u) => e.fields.read_timeout = u),
|
|
1151
1147
|
i[18] || (i[18] = () => {
|
|
1152
|
-
e.fields.read_timeout =
|
|
1148
|
+
e.fields.read_timeout = L(e.fields.read_timeout + "");
|
|
1153
1149
|
})
|
|
1154
1150
|
],
|
|
1155
1151
|
autocomplete: "off",
|
|
1156
1152
|
"data-testid": "gateway-service-readTimeout-input",
|
|
1157
|
-
label:
|
|
1153
|
+
label: l(r)("gateway_services.form.fields.read_timeout.label"),
|
|
1158
1154
|
"label-attributes": {
|
|
1159
|
-
info:
|
|
1155
|
+
info: l(r)("gateway_services.form.fields.read_timeout.tooltip"),
|
|
1160
1156
|
tooltipAttributes: { maxWidth: "400" }
|
|
1161
1157
|
},
|
|
1162
1158
|
name: "readTimeout",
|
|
@@ -1164,95 +1160,95 @@ const pe = {
|
|
|
1164
1160
|
type: "number"
|
|
1165
1161
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
1166
1162
|
]),
|
|
1167
|
-
|
|
1168
|
-
|
|
1163
|
+
me.value ? (S(), U("div", Vt, [
|
|
1164
|
+
d(s, {
|
|
1169
1165
|
modelValue: e.fields.client_certificate,
|
|
1170
|
-
"onUpdate:modelValue": i[19] || (i[19] = (
|
|
1166
|
+
"onUpdate:modelValue": i[19] || (i[19] = (u) => e.fields.client_certificate = u),
|
|
1171
1167
|
modelModifiers: { trim: !0 },
|
|
1172
1168
|
autocomplete: "off",
|
|
1173
1169
|
"data-testid": "gateway-service-clientCert-input",
|
|
1174
|
-
label:
|
|
1170
|
+
label: l(r)("gateway_services.form.fields.client_certificate.label"),
|
|
1175
1171
|
"label-attributes": {
|
|
1176
|
-
info:
|
|
1172
|
+
info: l(r)("gateway_services.form.fields.client_certificate.tooltip"),
|
|
1177
1173
|
tooltipAttributes: { maxWidth: "400" }
|
|
1178
1174
|
},
|
|
1179
1175
|
name: "clientCert",
|
|
1180
|
-
placeholder:
|
|
1176
|
+
placeholder: l(r)("gateway_services.form.fields.client_certificate.placeholder"),
|
|
1181
1177
|
readonly: e.isReadonly,
|
|
1182
1178
|
type: "text"
|
|
1183
1179
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"])
|
|
1184
|
-
])) :
|
|
1185
|
-
|
|
1186
|
-
|
|
1180
|
+
])) : D("", !0),
|
|
1181
|
+
ve.value ? (S(), U("div", Ct, [
|
|
1182
|
+
d(s, {
|
|
1187
1183
|
modelValue: e.fields.ca_certificates,
|
|
1188
|
-
"onUpdate:modelValue": i[20] || (i[20] = (
|
|
1184
|
+
"onUpdate:modelValue": i[20] || (i[20] = (u) => e.fields.ca_certificates = u),
|
|
1189
1185
|
modelModifiers: { trim: !0 },
|
|
1190
1186
|
autocomplete: "off",
|
|
1191
1187
|
"data-testid": "gateway-service-ca-certs-input",
|
|
1192
|
-
label:
|
|
1188
|
+
label: l(r)("gateway_services.form.fields.ca_certificates.label"),
|
|
1193
1189
|
"label-attributes": { tooltipAttributes: { maxWidth: "400" } },
|
|
1194
|
-
placeholder:
|
|
1190
|
+
placeholder: l(r)("gateway_services.form.fields.ca_certificates.placeholder"),
|
|
1195
1191
|
readonly: e.isReadonly,
|
|
1196
1192
|
type: "text"
|
|
1197
1193
|
}, {
|
|
1198
|
-
"label-tooltip":
|
|
1199
|
-
|
|
1194
|
+
"label-tooltip": p(() => [
|
|
1195
|
+
d(l(G), {
|
|
1200
1196
|
keypath: "gateway_services.form.fields.ca_certificates.tooltip",
|
|
1201
1197
|
scope: "global"
|
|
1202
1198
|
}, {
|
|
1203
|
-
code1:
|
|
1204
|
-
V("code", null,
|
|
1199
|
+
code1: p(() => [
|
|
1200
|
+
V("code", null, b(l(r)("gateway_services.form.fields.ca_certificates.code1")), 1)
|
|
1205
1201
|
]),
|
|
1206
|
-
code2:
|
|
1207
|
-
V("code", null,
|
|
1202
|
+
code2: p(() => [
|
|
1203
|
+
V("code", null, b(l(r)("gateway_services.form.fields.ca_certificates.code2")), 1)
|
|
1208
1204
|
]),
|
|
1209
1205
|
_: 1
|
|
1210
1206
|
})
|
|
1211
1207
|
]),
|
|
1212
1208
|
_: 1
|
|
1213
1209
|
}, 8, ["modelValue", "label", "placeholder", "readonly"])
|
|
1214
|
-
])) :
|
|
1215
|
-
|
|
1216
|
-
|
|
1210
|
+
])) : D("", !0),
|
|
1211
|
+
ge.value ? (S(), U("div", St, [
|
|
1212
|
+
d(o, {
|
|
1217
1213
|
modelValue: e.fields.tls_verify_enabled,
|
|
1218
|
-
"onUpdate:modelValue": i[21] || (i[21] = (
|
|
1214
|
+
"onUpdate:modelValue": i[21] || (i[21] = (u) => e.fields.tls_verify_enabled = u),
|
|
1219
1215
|
"data-testid": "gateway-service-tls-verify-checkbox",
|
|
1220
|
-
description:
|
|
1221
|
-
label:
|
|
1216
|
+
description: l(r)("gateway_services.form.fields.tls_verify_enabled.help"),
|
|
1217
|
+
label: l(r)("gateway_services.form.fields.tls_verify_enabled.label"),
|
|
1222
1218
|
"label-attributes": { tooltipAttributes: { maxWidth: "400" } }
|
|
1223
1219
|
}, {
|
|
1224
|
-
tooltip:
|
|
1225
|
-
|
|
1220
|
+
tooltip: p(() => [
|
|
1221
|
+
d(l(G), {
|
|
1226
1222
|
keypath: "gateway_services.form.fields.tls_verify_enabled.tooltip",
|
|
1227
1223
|
scope: "global"
|
|
1228
1224
|
}, {
|
|
1229
|
-
code1:
|
|
1230
|
-
V("code", null,
|
|
1225
|
+
code1: p(() => [
|
|
1226
|
+
V("code", null, b(l(r)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
|
|
1231
1227
|
]),
|
|
1232
1228
|
_: 1
|
|
1233
1229
|
})
|
|
1234
1230
|
]),
|
|
1235
1231
|
_: 1
|
|
1236
1232
|
}, 8, ["modelValue", "description", "label"]),
|
|
1237
|
-
e.fields.tls_verify_enabled ? (
|
|
1238
|
-
|
|
1233
|
+
e.fields.tls_verify_enabled ? (S(), U("div", It, [
|
|
1234
|
+
d(f, {
|
|
1239
1235
|
modelValue: e.fields.tls_verify_value,
|
|
1240
|
-
"onUpdate:modelValue": i[22] || (i[22] = (
|
|
1236
|
+
"onUpdate:modelValue": i[22] || (i[22] = (u) => e.fields.tls_verify_value = u),
|
|
1241
1237
|
"data-testid": "gateway-service-tls-verify-true-option",
|
|
1242
|
-
label:
|
|
1238
|
+
label: l(r)("gateway_services.form.fields.tls_verify_option.true.label"),
|
|
1243
1239
|
"selected-value": !0
|
|
1244
1240
|
}, null, 8, ["modelValue", "label"])
|
|
1245
|
-
])) :
|
|
1246
|
-
e.fields.tls_verify_enabled ? (
|
|
1247
|
-
|
|
1241
|
+
])) : D("", !0),
|
|
1242
|
+
e.fields.tls_verify_enabled ? (S(), U("div", Tt, [
|
|
1243
|
+
d(f, {
|
|
1248
1244
|
modelValue: e.fields.tls_verify_value,
|
|
1249
|
-
"onUpdate:modelValue": i[23] || (i[23] = (
|
|
1245
|
+
"onUpdate:modelValue": i[23] || (i[23] = (u) => e.fields.tls_verify_value = u),
|
|
1250
1246
|
"data-testid": "gateway-service-tls-verify-false-option",
|
|
1251
|
-
label:
|
|
1247
|
+
label: l(r)("gateway_services.form.fields.tls_verify_option.false.label"),
|
|
1252
1248
|
"selected-value": !1
|
|
1253
1249
|
}, null, 8, ["modelValue", "label"])
|
|
1254
|
-
])) :
|
|
1255
|
-
])) :
|
|
1250
|
+
])) : D("", !0)
|
|
1251
|
+
])) : D("", !0)
|
|
1256
1252
|
])
|
|
1257
1253
|
]),
|
|
1258
1254
|
_: 1
|
|
@@ -1266,14 +1262,14 @@ const pe = {
|
|
|
1266
1262
|
]);
|
|
1267
1263
|
};
|
|
1268
1264
|
}
|
|
1269
|
-
}),
|
|
1265
|
+
}), $t = /* @__PURE__ */ Ue(Pt, [["__scopeId", "data-v-35e0db56"]]), Ut = { class: "kong-ui-gateway-service-entity-config-card" }, Bt = /* @__PURE__ */ we({
|
|
1270
1266
|
__name: "GatewayServiceConfigCard",
|
|
1271
1267
|
props: {
|
|
1272
1268
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
1273
1269
|
config: {
|
|
1274
1270
|
type: Object,
|
|
1275
1271
|
required: !0,
|
|
1276
|
-
validator: (
|
|
1272
|
+
validator: (n) => !(!n || !["konnect", "kongManager"].includes(n == null ? void 0 : n.app) || n.app === "konnect" && !n.controlPlaneId || n.app === "kongManager" && typeof n.workspace != "string" || !n.entityId)
|
|
1277
1273
|
},
|
|
1278
1274
|
/**
|
|
1279
1275
|
* External link for documentation that determines visibility of Documentation button
|
|
@@ -1292,123 +1288,123 @@ const pe = {
|
|
|
1292
1288
|
}
|
|
1293
1289
|
},
|
|
1294
1290
|
emits: ["loading", "fetch:error", "fetch:success"],
|
|
1295
|
-
setup(
|
|
1296
|
-
const
|
|
1291
|
+
setup(n) {
|
|
1292
|
+
const $ = n, { i18n: { t: m }, i18nT: c } = ne.useI18n(), a = w(() => te.form[$.config.app].edit), { getPropValue: M } = Qe(), N = (r, T) => M(r, T) === !0 ? m("gateway_services.form.fields.tls_verify_option.true.display") : m("gateway_services.form.fields.tls_verify_option.false.display"), G = C({
|
|
1297
1293
|
id: {},
|
|
1298
1294
|
name: {
|
|
1299
|
-
tooltip:
|
|
1295
|
+
tooltip: m("gateway_services.form.fields.name.tooltip")
|
|
1300
1296
|
},
|
|
1301
1297
|
enabled: {},
|
|
1302
1298
|
updated_at: {},
|
|
1303
1299
|
created_at: {},
|
|
1304
1300
|
protocol: {
|
|
1305
|
-
section:
|
|
1306
|
-
tooltip:
|
|
1301
|
+
section: se.Basic,
|
|
1302
|
+
tooltip: m("gateway_services.form.fields.protocol.tooltip")
|
|
1307
1303
|
},
|
|
1308
1304
|
host: {
|
|
1309
|
-
section:
|
|
1310
|
-
tooltip:
|
|
1305
|
+
section: se.Basic,
|
|
1306
|
+
tooltip: m("gateway_services.form.fields.host.tooltip")
|
|
1311
1307
|
},
|
|
1312
1308
|
path: {
|
|
1313
|
-
section:
|
|
1314
|
-
tooltip:
|
|
1309
|
+
section: se.Basic,
|
|
1310
|
+
tooltip: m("gateway_services.form.fields.path.tooltip")
|
|
1315
1311
|
},
|
|
1316
1312
|
port: {
|
|
1317
|
-
section:
|
|
1318
|
-
tooltip:
|
|
1313
|
+
section: se.Basic,
|
|
1314
|
+
tooltip: m("gateway_services.form.fields.port.tooltip")
|
|
1319
1315
|
},
|
|
1320
1316
|
tags: {
|
|
1321
|
-
tooltip:
|
|
1317
|
+
tooltip: m("gateway_services.form.fields.tags.tooltip")
|
|
1322
1318
|
},
|
|
1323
1319
|
// advanced fields
|
|
1324
1320
|
retries: {
|
|
1325
1321
|
order: 1,
|
|
1326
|
-
tooltip:
|
|
1322
|
+
tooltip: m("gateway_services.form.fields.retries.tooltip")
|
|
1327
1323
|
},
|
|
1328
1324
|
connect_timeout: {
|
|
1329
1325
|
order: 2,
|
|
1330
|
-
tooltip:
|
|
1326
|
+
tooltip: m("gateway_services.form.fields.connect_timeout.tooltip")
|
|
1331
1327
|
},
|
|
1332
1328
|
write_timeout: {
|
|
1333
1329
|
order: 3,
|
|
1334
|
-
tooltip:
|
|
1330
|
+
tooltip: m("gateway_services.form.fields.write_timeout.tooltip")
|
|
1335
1331
|
},
|
|
1336
1332
|
read_timeout: {
|
|
1337
1333
|
order: 4,
|
|
1338
|
-
tooltip:
|
|
1334
|
+
tooltip: m("gateway_services.form.fields.read_timeout.tooltip")
|
|
1339
1335
|
},
|
|
1340
1336
|
client_certificate: {
|
|
1341
1337
|
order: 5,
|
|
1342
|
-
tooltip:
|
|
1338
|
+
tooltip: m("gateway_services.form.fields.client_certificate.tooltip")
|
|
1343
1339
|
},
|
|
1344
1340
|
ca_certificates: {
|
|
1345
|
-
type:
|
|
1346
|
-
label:
|
|
1341
|
+
type: Xe.BadgeTag,
|
|
1342
|
+
label: m("gateway_services.form.fields.ca_certificates.label"),
|
|
1347
1343
|
order: 6
|
|
1348
1344
|
},
|
|
1349
1345
|
tls_verify: {
|
|
1350
|
-
label:
|
|
1346
|
+
label: m("gateway_services.form.fields.tls_verify_enabled.label")
|
|
1351
1347
|
},
|
|
1352
1348
|
tls_verify_depth: {
|
|
1353
1349
|
hidden: !0
|
|
1354
1350
|
}
|
|
1355
1351
|
});
|
|
1356
|
-
return (r,
|
|
1357
|
-
|
|
1358
|
-
config:
|
|
1359
|
-
"config-card-doc":
|
|
1360
|
-
"config-schema":
|
|
1361
|
-
"entity-type":
|
|
1362
|
-
"fetch-url":
|
|
1363
|
-
"hide-title":
|
|
1364
|
-
"onFetch:error":
|
|
1365
|
-
"onFetch:success":
|
|
1366
|
-
onLoading:
|
|
1352
|
+
return (r, T) => (S(), U("div", Ut, [
|
|
1353
|
+
d(l(Ye), {
|
|
1354
|
+
config: n.config,
|
|
1355
|
+
"config-card-doc": n.configCardDoc,
|
|
1356
|
+
"config-schema": G.value,
|
|
1357
|
+
"entity-type": l(Pe).GatewayService,
|
|
1358
|
+
"fetch-url": a.value,
|
|
1359
|
+
"hide-title": n.hideTitle,
|
|
1360
|
+
"onFetch:error": T[0] || (T[0] = (h) => r.$emit("fetch:error", h)),
|
|
1361
|
+
"onFetch:success": T[1] || (T[1] = (h) => r.$emit("fetch:success", h)),
|
|
1362
|
+
onLoading: T[2] || (T[2] = (h) => r.$emit("loading", h))
|
|
1367
1363
|
}, {
|
|
1368
|
-
"enabled-label-tooltip":
|
|
1369
|
-
|
|
1364
|
+
"enabled-label-tooltip": p(() => [
|
|
1365
|
+
d(l(c), {
|
|
1370
1366
|
keypath: "gateway_services.form.fields.enabled.tooltip",
|
|
1371
1367
|
scope: "global"
|
|
1372
1368
|
}, {
|
|
1373
|
-
false:
|
|
1374
|
-
V("code", null,
|
|
1369
|
+
false: p(() => [
|
|
1370
|
+
V("code", null, b(l(m)("gateway_services.form.fields.enabled.false")), 1)
|
|
1375
1371
|
]),
|
|
1376
|
-
true:
|
|
1377
|
-
V("code", null,
|
|
1372
|
+
true: p(() => [
|
|
1373
|
+
V("code", null, b(l(m)("gateway_services.form.fields.enabled.true")), 1)
|
|
1378
1374
|
]),
|
|
1379
1375
|
_: 1
|
|
1380
1376
|
})
|
|
1381
1377
|
]),
|
|
1382
|
-
"ca_certificates-label-tooltip":
|
|
1383
|
-
|
|
1378
|
+
"ca_certificates-label-tooltip": p(() => [
|
|
1379
|
+
d(l(c), {
|
|
1384
1380
|
keypath: "gateway_services.form.fields.ca_certificates.tooltip",
|
|
1385
1381
|
scope: "global"
|
|
1386
1382
|
}, {
|
|
1387
|
-
code1:
|
|
1388
|
-
V("code", null,
|
|
1383
|
+
code1: p(() => [
|
|
1384
|
+
V("code", null, b(l(m)("gateway_services.form.fields.ca_certificates.code1")), 1)
|
|
1389
1385
|
]),
|
|
1390
|
-
code2:
|
|
1391
|
-
V("code", null,
|
|
1386
|
+
code2: p(() => [
|
|
1387
|
+
V("code", null, b(l(m)("gateway_services.form.fields.ca_certificates.code2")), 1)
|
|
1392
1388
|
]),
|
|
1393
1389
|
_: 1
|
|
1394
1390
|
})
|
|
1395
1391
|
]),
|
|
1396
|
-
"tls_verify-label-tooltip":
|
|
1397
|
-
|
|
1392
|
+
"tls_verify-label-tooltip": p(() => [
|
|
1393
|
+
d(l(c), {
|
|
1398
1394
|
keypath: "gateway_services.form.fields.tls_verify_enabled.tooltip",
|
|
1399
1395
|
scope: "global"
|
|
1400
1396
|
}, {
|
|
1401
|
-
code1:
|
|
1402
|
-
V("code", null,
|
|
1397
|
+
code1: p(() => [
|
|
1398
|
+
V("code", null, b(l(m)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
|
|
1403
1399
|
]),
|
|
1404
1400
|
_: 1
|
|
1405
1401
|
})
|
|
1406
1402
|
]),
|
|
1407
|
-
tls_verify:
|
|
1408
|
-
|
|
1403
|
+
tls_verify: p((h) => [
|
|
1404
|
+
E(b(typeof l(M)("rowValue", h) == "boolean" ? N("rowValue", h) : l(m)("gateway_services.form.fields.tls_verify_option.unset.display")), 1)
|
|
1409
1405
|
]),
|
|
1410
|
-
client_certificate:
|
|
1411
|
-
|
|
1406
|
+
client_certificate: p((h) => [
|
|
1407
|
+
E(b(l(M)("rowValue", h) ? l(M)("rowValue", h).id : "–"), 1)
|
|
1412
1408
|
]),
|
|
1413
1409
|
_: 1
|
|
1414
1410
|
}, 8, ["config", "config-card-doc", "config-schema", "entity-type", "fetch-url", "hide-title"])
|
|
@@ -1416,7 +1412,7 @@ const pe = {
|
|
|
1416
1412
|
}
|
|
1417
1413
|
});
|
|
1418
1414
|
export {
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1415
|
+
Bt as GatewayServiceConfigCard,
|
|
1416
|
+
$t as GatewayServiceForm,
|
|
1417
|
+
At as GatewayServiceList
|
|
1422
1418
|
};
|