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