@scalar/api-client 2.5.31 → 2.5.33
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.
- package/CHANGELOG.md +33 -0
- package/dist/components/AddressBar/AddressBar.vue.js +1 -1
- package/dist/components/AddressBar/AddressBar.vue2.js +120 -128
- package/dist/components/AddressBar/AddressBarHistory.vue.js +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +57 -63
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +143 -150
- package/dist/components/CodeInput/codeVariableWidget.js +70 -75
- package/dist/components/CommandPalette/CommandActionInput.vue.js +17 -19
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +26 -27
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +53 -55
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +129 -133
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.js +1 -1
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +84 -98
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +64 -74
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +5 -11
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +164 -183
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +4 -4
- package/dist/components/DataTable/DataTableInput.vue2.js +31 -31
- package/dist/components/DataTable/DataTableInputSelect.vue.js +1 -2
- package/dist/components/EmptyState.vue.js +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +75 -84
- package/dist/components/Form/LabelInput.vue.js +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue2.js +11 -11
- package/dist/components/ImportCollection/DropEventListener.vue.js +42 -44
- package/dist/components/ImportCollection/ImportCollectionListener.vue.js +22 -23
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +141 -149
- package/dist/components/ImportCollection/ImportCollectionModal.vue3.js +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +22 -23
- package/dist/components/ImportCollection/IntegrationLogo.vue.js +12 -13
- package/dist/components/ImportCollection/PasteEventListener.vue.js +11 -12
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +69 -76
- package/dist/components/ImportCollection/utils/get-openapi-version.js +8 -8
- package/dist/components/ImportCollection/utils/import-collection.js +14 -14
- package/dist/components/OpenApiClientButton.vue.js +1 -1
- package/dist/components/OpenApiClientButton.vue2.js +10 -10
- package/dist/components/ScalarAsciiArt.vue.js +1 -1
- package/dist/components/ScalarAsciiArt.vue2.js +19 -22
- package/dist/components/Search/useSearch.js +51 -61
- package/dist/components/SectionFilter.vue.js +1 -1
- package/dist/components/SectionFilter.vue2.js +26 -29
- package/dist/components/Server/ServerDropdown.vue.js +70 -96
- package/dist/components/Server/ServerDropdownItem.vue.js +1 -1
- package/dist/components/Server/ServerDropdownItem.vue2.js +57 -67
- package/dist/components/Server/ServerSelector.vue.js +44 -55
- package/dist/components/Server/ServerVariablesForm.vue.js +36 -42
- package/dist/components/Server/ServerVariablesSelect.vue.js +6 -6
- package/dist/components/SideNav/DownloadAppButton.vue.js +1 -1
- package/dist/components/SideNav/SideNav.vue.js +68 -74
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
- package/dist/components/TopNav/TopNav.vue.js +107 -122
- package/dist/components/TopNav/TopNavItem.vue.js +1 -1
- package/dist/hooks/useFileDialog.js +12 -12
- package/dist/hooks/useResponseBody.js +14 -16
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/layouts/App/ApiClientApp.vue.js +50 -56
- package/dist/layouts/App/ApiClientApp.vue3.js +1 -1
- package/dist/layouts/App/create-api-client-app.js +19 -20
- package/dist/layouts/App/index.js +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue2.js +18 -21
- package/dist/layouts/Web/ApiClientWeb.vue.js +45 -51
- package/dist/layouts/Web/ApiClientWeb.vue3.js +1 -1
- package/dist/layouts/Web/create-api-client-web.js +19 -20
- package/dist/layouts/Web/index.js +1 -1
- package/dist/libs/create-client.js +102 -109
- package/dist/libs/env-helpers.js +3 -3
- package/dist/libs/event-bus.js +15 -15
- package/dist/libs/extractAttachmentFilename.js +5 -6
- package/dist/libs/find-request.js +9 -10
- package/dist/libs/get-request-uid-by-path-method.js +12 -12
- package/dist/libs/getOpenApiDocumentDetails.js +7 -7
- package/dist/libs/importers/curl.js +3 -3
- package/dist/libs/normalize-headers.js +9 -10
- package/dist/libs/postman.js +15 -17
- package/dist/libs/send-request/build-request-security.js +9 -10
- package/dist/libs/send-request/create-fetch-body.js +11 -12
- package/dist/libs/send-request/create-fetch-query-params.js +13 -13
- package/dist/libs/send-request/create-request-operation.js +83 -84
- package/dist/libs/send-request/decode-buffer.d.ts.map +1 -1
- package/dist/libs/send-request/set-request-cookies.js +12 -12
- package/dist/libs/string-template.js +21 -21
- package/dist/libs/validate-parameters.js +5 -8
- package/dist/plugins/plugin-manager.js +11 -17
- package/dist/store/active-entities.js +90 -117
- package/dist/store/collections.js +41 -42
- package/dist/store/import-spec.js +25 -26
- package/dist/store/request-example.js +20 -24
- package/dist/store/requests.js +63 -81
- package/dist/store/router-params.js +7 -7
- package/dist/store/security-schemes.js +35 -36
- package/dist/store/store.js +2 -2
- package/dist/store/tags.js +20 -21
- package/dist/style.css +1 -1
- package/dist/views/Collection/Collection.vue2.js +21 -22
- package/dist/views/Collection/CollectionAuthentication.vue.js +1 -1
- package/dist/views/Collection/CollectionAuthentication.vue2.js +43 -47
- package/dist/views/Collection/CollectionEnvironment.vue.js +1 -1
- package/dist/views/Collection/CollectionEnvironment.vue2.js +196 -207
- package/dist/views/Collection/CollectionInfoForm.vue.js +1 -1
- package/dist/views/Collection/CollectionInfoForm.vue2.js +34 -41
- package/dist/views/Collection/CollectionNavigation.vue.js +116 -125
- package/dist/views/Collection/CollectionOverview.vue2.js +22 -25
- package/dist/views/Collection/CollectionServerForm.vue.js +39 -45
- package/dist/views/Collection/CollectionServers.vue2.js +88 -98
- package/dist/views/Collection/CollectionSettings.vue.js +1 -1
- package/dist/views/Collection/CollectionSettings.vue2.js +101 -108
- package/dist/views/Collection/components/EnvironmentForm.vue.js +1 -1
- package/dist/views/Collection/components/EnvironmentForm.vue2.js +141 -145
- package/dist/views/Collection/components/MarkdownInput.vue.js +1 -1
- package/dist/views/Collection/components/MarkdownInput.vue2.js +1 -2
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +15 -15
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.js +15 -16
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.js +61 -64
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.js +9 -10
- package/dist/views/Cookies/CookieModal.vue.js +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +90 -93
- package/dist/views/Environment/Environment.vue2.js +267 -295
- package/dist/views/Environment/EnvironmentModal.vue.js +63 -70
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +38 -42
- package/dist/views/Request/Request.vue.js +1 -1
- package/dist/views/Request/Request.vue2.js +60 -67
- package/dist/views/Request/RequestRoot.vue.js +1 -1
- package/dist/views/Request/RequestRoot.vue2.js +78 -89
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +37 -44
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +44 -45
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +111 -127
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +120 -139
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +97 -97
- package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +287 -310
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +86 -94
- package/dist/views/Request/RequestSection/RequestParams.vue.js +37 -38
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +36 -38
- package/dist/views/Request/RequestSection/RequestSection.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +28 -31
- package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +49 -52
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +1 -1
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.js +16 -16
- package/dist/views/Request/RequestSection/helpers/getting-started.js +7 -11
- package/dist/views/Request/RequestSection/helpers/update-scheme.js +7 -8
- package/dist/views/Request/RequestSidebar.vue.js +1 -1
- package/dist/views/Request/RequestSidebar.vue2.js +199 -211
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +332 -349
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +210 -240
- package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +38 -41
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +58 -64
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +1 -2
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +20 -23
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue3.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +29 -30
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +38 -41
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +28 -29
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +128 -140
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +116 -124
- package/dist/views/Request/consts/mediaTypes.js +2 -3
- package/dist/views/Request/handle-drag.js +24 -28
- package/dist/views/Request/hooks/useOpenApiWatcher.js +26 -33
- package/dist/views/Request/libs/auth.js +37 -43
- package/dist/views/Request/libs/oauth2.js +30 -32
- package/dist/views/Request/libs/watch-mode.js +100 -103
- package/dist/views/Settings/SettingsGeneral.vue.js +206 -236
- package/package.json +22 -22
- package/dist/components/AddressBar/AddressBar.vue3.js +0 -4
- package/dist/components/AddressBar/AddressBarHistory.vue3.js +0 -4
- package/dist/components/CodeInput/CodeInput.vue3.js +0 -4
- package/dist/components/CodeInput/CodeInput.vue4.js +0 -4
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue3.js +0 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue3.js +0 -4
- package/dist/components/DataTable/DataTableInput.vue3.js +0 -4
- package/dist/components/EmptyState.vue3.js +0 -4
- package/dist/components/Form/LabelInput.vue3.js +0 -4
- package/dist/components/HttpMethod/HttpMethod.vue3.js +0 -4
- package/dist/components/ImportCollection/ImportCollectionModal.vue2.js +0 -4
- package/dist/components/OpenApiClientButton.vue3.js +0 -4
- package/dist/components/ScalarAsciiArt.vue3.js +0 -4
- package/dist/components/SectionFilter.vue3.js +0 -4
- package/dist/components/Server/ServerDropdownItem.vue3.js +0 -4
- package/dist/components/SideNav/DownloadAppButton.vue3.js +0 -4
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue3.js +0 -4
- package/dist/components/Sidebar/Sidebar.vue3.js +0 -4
- package/dist/components/Sidebar/SidebarListElement.vue3.js +0 -4
- package/dist/components/Sidebar/SidebarListElement.vue4.js +0 -4
- package/dist/components/TopNav/TopNavItem.vue3.js +0 -4
- package/dist/layouts/App/ApiClientApp.vue2.js +0 -4
- package/dist/layouts/Modal/ApiClientModal.vue3.js +0 -4
- package/dist/layouts/Web/ApiClientWeb.vue2.js +0 -4
- package/dist/style.css.js +0 -4
- package/dist/views/Collection/CollectionAuthentication.vue3.js +0 -4
- package/dist/views/Collection/CollectionEnvironment.vue3.js +0 -4
- package/dist/views/Collection/CollectionInfoForm.vue3.js +0 -4
- package/dist/views/Collection/CollectionSettings.vue3.js +0 -4
- package/dist/views/Collection/components/EnvironmentForm.vue3.js +0 -4
- package/dist/views/Collection/components/MarkdownInput.vue3.js +0 -4
- package/dist/views/Cookies/CookieModal.vue3.js +0 -4
- package/dist/views/Request/Request.vue3.js +0 -4
- package/dist/views/Request/RequestRoot.vue3.js +0 -4
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue3.js +0 -4
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue3.js +0 -4
- package/dist/views/Request/RequestSection/RequestBody.vue3.js +0 -4
- package/dist/views/Request/RequestSection/RequestCodeExample.vue3.js +0 -4
- package/dist/views/Request/RequestSection/RequestSection.vue3.js +0 -4
- package/dist/views/Request/RequestSection/RequestTable.vue3.js +0 -4
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue3.js +0 -4
- package/dist/views/Request/RequestSidebar.vue3.js +0 -4
- package/dist/views/Request/RequestSidebarItem.vue3.js +0 -4
- package/dist/views/Request/RequestSidebarItem.vue4.js +0 -4
- package/dist/views/Request/RequestSidebarItemMenu.vue3.js +0 -4
- package/dist/views/Request/RequestSubpageHeader.vue3.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseBody.vue3.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue3.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue3.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue2.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue3.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue3.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseSection.vue3.js +0 -4
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarListbox as
|
|
3
|
-
import { requestExampleParametersSchema as
|
|
4
|
-
import { canMethodHaveBody as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { useWorkspace as
|
|
12
|
-
import { useFileDialog as
|
|
13
|
-
const
|
|
1
|
+
import { defineComponent as K, computed as v, ref as Q, watch as L, createBlock as y, openBlock as f, withCtx as d, createVNode as s, createCommentVNode as Z, unref as c, createElementVNode as g, toDisplayString as w, createElementBlock as F, Fragment as I, createTextVNode as M, nextTick as _ } from "vue";
|
|
2
|
+
import { ScalarListbox as W, ScalarButton as k, ScalarIcon as T } from "@scalar/components";
|
|
3
|
+
import { requestExampleParametersSchema as z } from "@scalar/oas-utils/entities/spec";
|
|
4
|
+
import { canMethodHaveBody as ee } from "@scalar/oas-utils/helpers";
|
|
5
|
+
import ae from "../../../components/CodeInput/CodeInput.vue.js";
|
|
6
|
+
import te from "../../../components/DataTable/DataTable.vue.js";
|
|
7
|
+
import ne from "../../../components/DataTable/DataTableHeader.vue.js";
|
|
8
|
+
import R from "../../../components/DataTable/DataTableRow.vue.js";
|
|
9
|
+
import oe from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
10
|
+
import J from "./RequestTable.vue.js";
|
|
11
|
+
import { useWorkspace as le } from "../../../store/store.js";
|
|
12
|
+
import { useFileDialog as A } from "../../../hooks/useFileDialog.js";
|
|
13
|
+
const ie = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "text-c-3 flex min-h-10 w-full items-center justify-center border-t p-2 text-sm"
|
|
16
|
-
},
|
|
16
|
+
}, re = {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: "flex items-center justify-center overflow-hidden border-t p-1.5"
|
|
19
|
-
},
|
|
19
|
+
}, de = { class: "text-c-2 w-full max-w-full overflow-hidden rounded border px-1.5 py-1 text-xs whitespace-nowrap" }, ke = /* @__PURE__ */ K({
|
|
20
20
|
__name: "RequestBody",
|
|
21
21
|
props: {
|
|
22
22
|
example: {},
|
|
@@ -27,13 +27,13 @@ const me = {
|
|
|
27
27
|
title: {}
|
|
28
28
|
},
|
|
29
29
|
setup(l) {
|
|
30
|
-
const { requestExampleMutators:
|
|
30
|
+
const { requestExampleMutators: i } = le(), $ = {
|
|
31
31
|
json: "json",
|
|
32
32
|
xml: "xml",
|
|
33
33
|
yaml: "yaml",
|
|
34
34
|
edn: "edn",
|
|
35
35
|
other: "html"
|
|
36
|
-
},
|
|
36
|
+
}, b = Object.entries({
|
|
37
37
|
multipartForm: "Multipart Form",
|
|
38
38
|
formUrlEncoded: "Form URL Encoded",
|
|
39
39
|
binaryFile: "Binary File",
|
|
@@ -43,402 +43,379 @@ const me = {
|
|
|
43
43
|
edn: "EDN",
|
|
44
44
|
other: "Other",
|
|
45
45
|
none: "None"
|
|
46
|
-
}).map(([e,
|
|
46
|
+
}).map(([e, a]) => ({
|
|
47
47
|
id: e,
|
|
48
|
-
label:
|
|
49
|
-
})),
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
) ?? x[x.length - 1] ?? x[0],
|
|
48
|
+
label: a
|
|
49
|
+
})), B = v(() => {
|
|
50
|
+
const { activeBody: e, formData: a, raw: t } = l.example.body;
|
|
51
|
+
return e === "formData" ? a?.encoding === "urlencoded" ? "formUrlEncoded" : "multipartForm" : e === "binary" ? "binaryFile" : e === "raw" && t?.encoding ? t.encoding === "html" ? "other" : t.encoding : Object.keys(l.operation.requestBody?.content || {})[0] || "none";
|
|
52
|
+
}), u = v({
|
|
53
|
+
get: () => b.find(
|
|
54
|
+
(e) => e.id === B.value
|
|
55
|
+
) ?? b[b.length - 1] ?? b[0],
|
|
57
56
|
set: (e) => {
|
|
58
|
-
e
|
|
57
|
+
e?.id && O(e.id);
|
|
59
58
|
}
|
|
60
|
-
}),
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
a.splice(e, 1), d.edit(
|
|
59
|
+
}), x = Q(null), H = v(() => {
|
|
60
|
+
const e = u.value?.id;
|
|
61
|
+
return $[e] ?? "plaintext";
|
|
62
|
+
}), U = (e) => {
|
|
63
|
+
const a = m.value;
|
|
64
|
+
if (a.length > e) {
|
|
65
|
+
const t = [...a];
|
|
66
|
+
t.splice(e, 1), i.edit(
|
|
69
67
|
l.example.uid,
|
|
70
68
|
"body.formData.value",
|
|
71
|
-
|
|
69
|
+
t
|
|
72
70
|
);
|
|
73
71
|
}
|
|
74
|
-
},
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}, (((r = s[e]) == null ? void 0 : r.key) !== "" || ((f = s[e]) == null ? void 0 : f.value) !== "") && (s[e].enabled = !0), ((V = s[e]) == null ? void 0 : V.key) === "" && ((J = s[e]) == null ? void 0 : J.value) === "" && s.splice(e, 1), d.edit(
|
|
72
|
+
}, j = (e, a, t) => {
|
|
73
|
+
const o = m.value;
|
|
74
|
+
if (o.length > e) {
|
|
75
|
+
const n = [...o];
|
|
76
|
+
n[e] = {
|
|
77
|
+
...n[e],
|
|
78
|
+
value: n[e]?.value || "",
|
|
79
|
+
key: n[e]?.key || "",
|
|
80
|
+
enabled: n[e]?.enabled ?? !1,
|
|
81
|
+
[a]: t || ""
|
|
82
|
+
}, (n[e]?.key !== "" || n[e]?.value !== "") && (n[e].enabled = !0), n[e]?.key === "" && n[e]?.value === "" && n.splice(e, 1), i.edit(
|
|
86
83
|
l.example.uid,
|
|
87
84
|
"body.formData.value",
|
|
88
|
-
|
|
85
|
+
n
|
|
89
86
|
);
|
|
90
87
|
} else {
|
|
91
|
-
const
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
if (!B.value)
|
|
88
|
+
const n = [z.parse({ [a]: t })];
|
|
89
|
+
i.edit(l.example.uid, "body.formData.value", n), _(() => {
|
|
90
|
+
if (!x.value)
|
|
95
91
|
return;
|
|
96
|
-
|
|
92
|
+
x.value.querySelectorAll("input")[a === "key" ? 0 : 1]?.focus();
|
|
97
93
|
});
|
|
98
94
|
}
|
|
99
|
-
e ===
|
|
100
|
-
},
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
104
|
-
const e =
|
|
105
|
-
(!e || e.key !== "" || e.value !== "") && O();
|
|
106
|
-
}, O = () => {
|
|
107
|
-
const e = Y.parse({
|
|
95
|
+
e === o.length - 1 && C();
|
|
96
|
+
}, m = v(() => l.example.body.formData?.value ?? []), D = () => {
|
|
97
|
+
const e = m.value[m.value.length - 1];
|
|
98
|
+
(!e || e.key !== "" || e.value !== "") && C();
|
|
99
|
+
}, C = () => {
|
|
100
|
+
const e = z.parse({
|
|
108
101
|
enabled: !1
|
|
109
|
-
}),
|
|
110
|
-
l.example.body.formData ?
|
|
111
|
-
value:
|
|
102
|
+
}), a = [...m.value, e];
|
|
103
|
+
l.example.body.formData ? i.edit(l.example.uid, "body.formData.value", a) : i.edit(l.example.uid, "body.formData", {
|
|
104
|
+
value: a,
|
|
112
105
|
encoding: "form-data"
|
|
113
106
|
});
|
|
114
|
-
},
|
|
115
|
-
const
|
|
116
|
-
if (
|
|
117
|
-
const
|
|
118
|
-
|
|
107
|
+
}, E = (e, a) => {
|
|
108
|
+
const t = m.value;
|
|
109
|
+
if (t.length > e) {
|
|
110
|
+
const o = [...t];
|
|
111
|
+
o[e] && (o[e].enabled = a), i.edit(
|
|
119
112
|
l.example.uid,
|
|
120
113
|
"body.formData.value",
|
|
121
|
-
|
|
114
|
+
o
|
|
122
115
|
);
|
|
123
116
|
}
|
|
124
|
-
},
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
if (d.edit(l.example.uid, "body.activeBody", n), a && n === "raw")
|
|
163
|
-
d.edit(l.example.uid, "body.raw", {
|
|
164
|
-
encoding: a,
|
|
165
|
-
value: ((u = l.example.body.raw) == null ? void 0 : u.value) ?? ""
|
|
117
|
+
}, P = (e) => i.edit(l.example.uid, "body.raw.value", e), N = (e) => e === "multipartForm" ? {
|
|
118
|
+
activeBody: "formData",
|
|
119
|
+
encoding: "form-data",
|
|
120
|
+
header: "multipart/form-data"
|
|
121
|
+
} : e === "formUrlEncoded" ? {
|
|
122
|
+
activeBody: "formData",
|
|
123
|
+
encoding: "urlencoded",
|
|
124
|
+
header: "application/x-www-form-urlencoded"
|
|
125
|
+
} : e === "binaryFile" ? {
|
|
126
|
+
activeBody: "binary",
|
|
127
|
+
encoding: void 0,
|
|
128
|
+
header: "application/octet-stream"
|
|
129
|
+
} : e === "json" ? {
|
|
130
|
+
activeBody: "raw",
|
|
131
|
+
encoding: "json",
|
|
132
|
+
header: Object.keys(l.operation.requestBody?.content ?? {}).find((o) => o.includes("json") || o.endsWith("+json")) || "application/json"
|
|
133
|
+
} : e === "xml" ? {
|
|
134
|
+
activeBody: "raw",
|
|
135
|
+
encoding: "xml",
|
|
136
|
+
header: "application/xml"
|
|
137
|
+
} : e === "yaml" ? {
|
|
138
|
+
activeBody: "raw",
|
|
139
|
+
encoding: "yaml",
|
|
140
|
+
header: "application/yaml"
|
|
141
|
+
} : e === "edn" ? {
|
|
142
|
+
activeBody: "raw",
|
|
143
|
+
encoding: "edn",
|
|
144
|
+
header: "application/edn"
|
|
145
|
+
} : e === "other" ? {
|
|
146
|
+
activeBody: "raw",
|
|
147
|
+
encoding: "html",
|
|
148
|
+
header: "application/html"
|
|
149
|
+
} : { activeBody: "raw", encoding: void 0, header: void 0 }, O = (e) => {
|
|
150
|
+
const { activeBody: a, encoding: t, header: o } = N(e);
|
|
151
|
+
if (i.edit(l.example.uid, "body.activeBody", a), t && a === "raw")
|
|
152
|
+
i.edit(l.example.uid, "body.raw", {
|
|
153
|
+
encoding: t,
|
|
154
|
+
value: l.example.body.raw?.value ?? ""
|
|
166
155
|
});
|
|
167
|
-
else if (
|
|
168
|
-
|
|
169
|
-
encoding:
|
|
170
|
-
value:
|
|
156
|
+
else if (t && a === "formData")
|
|
157
|
+
i.edit(l.example.uid, "body.formData", {
|
|
158
|
+
encoding: t,
|
|
159
|
+
value: l.example.body.formData?.value ?? []
|
|
171
160
|
});
|
|
172
|
-
else if (!
|
|
173
|
-
const { raw:
|
|
174
|
-
|
|
161
|
+
else if (!t && a !== "binary") {
|
|
162
|
+
const { raw: p, ...G } = l.example.body;
|
|
163
|
+
i.edit(l.example.uid, "body", G);
|
|
175
164
|
}
|
|
176
|
-
const
|
|
177
|
-
(
|
|
165
|
+
const n = [...l.example.parameters.headers], r = n.findIndex(
|
|
166
|
+
(p) => p.key.toLowerCase() === "content-type"
|
|
178
167
|
);
|
|
179
|
-
if (
|
|
180
|
-
|
|
181
|
-
else if (
|
|
182
|
-
const
|
|
183
|
-
|
|
168
|
+
if (r >= 0)
|
|
169
|
+
o && n[r] ? n[r].value = o : n[r] && (a !== "raw" || e === "none") && n.splice(r, 1);
|
|
170
|
+
else if (o) {
|
|
171
|
+
const p = n[n.length - 1];
|
|
172
|
+
p && p.key === "" && p.value === "" ? n.splice(n.length - 1, 0, {
|
|
184
173
|
key: "Content-Type",
|
|
185
|
-
value:
|
|
174
|
+
value: o,
|
|
186
175
|
enabled: !0
|
|
187
|
-
}) :
|
|
176
|
+
}) : n.push({
|
|
188
177
|
key: "Content-Type",
|
|
189
|
-
value:
|
|
178
|
+
value: o,
|
|
190
179
|
enabled: !0
|
|
191
180
|
});
|
|
192
181
|
}
|
|
193
|
-
|
|
194
|
-
},
|
|
195
|
-
const { open:
|
|
196
|
-
onChange: async (
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
const r = [...v.value];
|
|
182
|
+
i.edit(l.example.uid, "parameters.headers", n);
|
|
183
|
+
}, S = async (e) => {
|
|
184
|
+
const { open: a } = A({
|
|
185
|
+
onChange: async (t) => {
|
|
186
|
+
const o = t?.[0];
|
|
187
|
+
if (o) {
|
|
188
|
+
const r = [...m.value];
|
|
201
189
|
r[e] = {
|
|
202
190
|
...r[e],
|
|
203
|
-
file:
|
|
204
|
-
value:
|
|
205
|
-
key:
|
|
191
|
+
file: o,
|
|
192
|
+
value: r[e]?.value || o.name,
|
|
193
|
+
key: r[e]?.key || o.name,
|
|
206
194
|
enabled: !0
|
|
207
|
-
},
|
|
195
|
+
}, i.edit(
|
|
208
196
|
l.example.uid,
|
|
209
197
|
"body.formData.value",
|
|
210
198
|
r
|
|
211
|
-
),
|
|
199
|
+
), D();
|
|
212
200
|
}
|
|
213
201
|
},
|
|
214
202
|
multiple: !1,
|
|
215
203
|
accept: "*/*"
|
|
216
204
|
});
|
|
217
|
-
|
|
218
|
-
},
|
|
219
|
-
function
|
|
220
|
-
const
|
|
221
|
-
|
|
205
|
+
a();
|
|
206
|
+
}, X = () => i.edit(l.example.uid, "body.binary", void 0);
|
|
207
|
+
function q(e) {
|
|
208
|
+
const a = m.value, t = [...a], o = a[e], n = o?.file;
|
|
209
|
+
a.length > 1 && (!o?.key && !o?.value || n && o?.key === n.name && o?.value === n.name) ? t.splice(e, 1) : t[e] && (t[e].file = void 0), i.edit(l.example.uid, "body.formData.value", t);
|
|
222
210
|
}
|
|
223
|
-
function
|
|
224
|
-
const { open: e } =
|
|
225
|
-
onChange: async (
|
|
226
|
-
const
|
|
227
|
-
|
|
211
|
+
function Y() {
|
|
212
|
+
const { open: e } = A({
|
|
213
|
+
onChange: async (a) => {
|
|
214
|
+
const t = a?.[0];
|
|
215
|
+
t && i.edit(l.example.uid, "body.binary", t);
|
|
228
216
|
},
|
|
229
217
|
multiple: !1,
|
|
230
218
|
accept: "*/*"
|
|
231
219
|
});
|
|
232
220
|
e();
|
|
233
221
|
}
|
|
234
|
-
|
|
235
|
-
|
|
222
|
+
L(
|
|
223
|
+
u,
|
|
236
224
|
(e) => {
|
|
237
|
-
["multipartForm", "formUrlEncoded"].includes(
|
|
225
|
+
["multipartForm", "formUrlEncoded"].includes(e?.id || "") && D();
|
|
238
226
|
},
|
|
239
227
|
{ immediate: !0 }
|
|
240
|
-
),
|
|
228
|
+
), L(
|
|
241
229
|
() => l.example.uid,
|
|
242
230
|
() => {
|
|
243
|
-
l.operation.method &&
|
|
244
|
-
|
|
245
|
-
) &&
|
|
231
|
+
l.operation.method && ee(l.operation.method) && O(B.value), ["multipartForm", "formUrlEncoded"].includes(
|
|
232
|
+
B.value
|
|
233
|
+
) && D();
|
|
246
234
|
},
|
|
247
235
|
{ immediate: !0 }
|
|
248
236
|
);
|
|
249
|
-
const
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
value: f
|
|
237
|
+
const h = v(() => {
|
|
238
|
+
const e = u.value?.id, { header: a } = N(e), t = l.operation.requestBody?.content || {}, o = a ? t[a]?.examples || {} : {};
|
|
239
|
+
return Object.entries(o).map(([n, r]) => ({
|
|
240
|
+
id: n,
|
|
241
|
+
label: n,
|
|
242
|
+
value: r
|
|
256
243
|
}));
|
|
257
|
-
}),
|
|
244
|
+
}), V = v({
|
|
258
245
|
get: () => {
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
}) ?? k.value[0];
|
|
246
|
+
const e = l.example.body.raw?.value ?? "{}", a = JSON.parse(e);
|
|
247
|
+
return h.value.find((o) => {
|
|
248
|
+
const n = o.value;
|
|
249
|
+
return JSON.stringify(n.value) === JSON.stringify(a);
|
|
250
|
+
}) ?? h.value[0];
|
|
265
251
|
},
|
|
266
252
|
set: (e) => {
|
|
267
|
-
if (e
|
|
268
|
-
const
|
|
269
|
-
if (
|
|
270
|
-
const
|
|
271
|
-
|
|
253
|
+
if (e?.id) {
|
|
254
|
+
const a = h.value.find((t) => t.id === e.id);
|
|
255
|
+
if (a) {
|
|
256
|
+
const t = a.value;
|
|
257
|
+
P(JSON.stringify(t.value, null, 2));
|
|
272
258
|
}
|
|
273
259
|
}
|
|
274
260
|
}
|
|
275
261
|
});
|
|
276
|
-
return (e,
|
|
277
|
-
title:
|
|
278
|
-
|
|
262
|
+
return (e, a) => (f(), y(oe, null, {
|
|
263
|
+
title: d(() => [
|
|
264
|
+
M(w(e.title), 1)
|
|
279
265
|
]),
|
|
280
|
-
default:
|
|
281
|
-
|
|
266
|
+
default: d(() => [
|
|
267
|
+
s(te, {
|
|
282
268
|
columns: [""],
|
|
283
269
|
presentational: ""
|
|
284
270
|
}, {
|
|
285
|
-
default:
|
|
286
|
-
|
|
287
|
-
default:
|
|
288
|
-
|
|
289
|
-
default:
|
|
290
|
-
c(
|
|
291
|
-
modelValue:
|
|
292
|
-
"onUpdate:modelValue":
|
|
293
|
-
options:
|
|
271
|
+
default: d(() => [
|
|
272
|
+
s(R, null, {
|
|
273
|
+
default: d(() => [
|
|
274
|
+
s(ne, { class: "relative col-span-full flex h-8 cursor-pointer items-center justify-between !p-0" }, {
|
|
275
|
+
default: d(() => [
|
|
276
|
+
s(c(W), {
|
|
277
|
+
modelValue: u.value,
|
|
278
|
+
"onUpdate:modelValue": a[0] || (a[0] = (t) => u.value = t),
|
|
279
|
+
options: c(b),
|
|
294
280
|
teleport: ""
|
|
295
281
|
}, {
|
|
296
|
-
default:
|
|
297
|
-
c(
|
|
282
|
+
default: d(() => [
|
|
283
|
+
s(c(k), {
|
|
298
284
|
class: "text-c-2 hover:text-c-1 flex h-full w-fit gap-1.5 px-3 font-normal",
|
|
299
285
|
fullWidth: "",
|
|
300
286
|
variant: "ghost"
|
|
301
287
|
}, {
|
|
302
|
-
default:
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
})
|
|
310
|
-
];
|
|
311
|
-
}),
|
|
288
|
+
default: d(() => [
|
|
289
|
+
g("span", null, w(u.value?.label), 1),
|
|
290
|
+
s(c(T), {
|
|
291
|
+
icon: "ChevronDown",
|
|
292
|
+
size: "md"
|
|
293
|
+
})
|
|
294
|
+
]),
|
|
312
295
|
_: 1
|
|
313
296
|
})
|
|
314
297
|
]),
|
|
315
298
|
_: 1
|
|
316
299
|
}, 8, ["modelValue", "options"]),
|
|
317
|
-
|
|
300
|
+
h.value.length > 0 ? (f(), y(c(W), {
|
|
318
301
|
key: 0,
|
|
319
|
-
modelValue:
|
|
320
|
-
"onUpdate:modelValue":
|
|
321
|
-
options:
|
|
302
|
+
modelValue: V.value,
|
|
303
|
+
"onUpdate:modelValue": a[1] || (a[1] = (t) => V.value = t),
|
|
304
|
+
options: h.value,
|
|
322
305
|
side: "left",
|
|
323
306
|
teleport: ""
|
|
324
307
|
}, {
|
|
325
|
-
default:
|
|
326
|
-
c(
|
|
308
|
+
default: d(() => [
|
|
309
|
+
s(c(k), {
|
|
327
310
|
class: "text-c-2 hover:text-c-1 flex h-full w-fit gap-1.5 px-2 font-normal",
|
|
328
311
|
fullWidth: "",
|
|
329
312
|
variant: "ghost"
|
|
330
313
|
}, {
|
|
331
|
-
default:
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
})
|
|
339
|
-
];
|
|
340
|
-
}),
|
|
314
|
+
default: d(() => [
|
|
315
|
+
g("span", null, w(V.value?.label), 1),
|
|
316
|
+
s(c(T), {
|
|
317
|
+
icon: "ChevronDown",
|
|
318
|
+
size: "md"
|
|
319
|
+
})
|
|
320
|
+
]),
|
|
341
321
|
_: 1
|
|
342
322
|
})
|
|
343
323
|
]),
|
|
344
324
|
_: 1
|
|
345
|
-
}, 8, ["modelValue", "options"])) :
|
|
325
|
+
}, 8, ["modelValue", "options"])) : Z("", !0)
|
|
346
326
|
]),
|
|
347
327
|
_: 1
|
|
348
328
|
})
|
|
349
329
|
]),
|
|
350
330
|
_: 1
|
|
351
331
|
}),
|
|
352
|
-
|
|
353
|
-
default:
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
c(y(F), {
|
|
362
|
-
class: "bg-b-2 hover:bg-b-3 text-c-2 ml-1 border-0 shadow-none",
|
|
363
|
-
size: "sm",
|
|
364
|
-
variant: "outlined",
|
|
365
|
-
onClick: I
|
|
366
|
-
}, {
|
|
367
|
-
default: m(() => n[3] || (n[3] = [
|
|
368
|
-
H(" Delete ")
|
|
369
|
-
])),
|
|
370
|
-
_: 1,
|
|
371
|
-
__: [3]
|
|
372
|
-
})
|
|
373
|
-
], 64)) : (b(), g(y(F), {
|
|
374
|
-
key: 1,
|
|
375
|
-
class: "bg-b-2 hover:bg-b-3 text-c-2 border-0 shadow-none",
|
|
332
|
+
s(R, null, {
|
|
333
|
+
default: d(() => [
|
|
334
|
+
u.value?.id === "none" ? (f(), F("div", ie, a[2] || (a[2] = [
|
|
335
|
+
g("span", null, "No Body", -1)
|
|
336
|
+
]))) : u.value?.id === "binaryFile" ? (f(), F("div", re, [
|
|
337
|
+
e.example.body.binary ? (f(), F(I, { key: 0 }, [
|
|
338
|
+
g("span", de, w(e.example.body.binary.name), 1),
|
|
339
|
+
s(c(k), {
|
|
340
|
+
class: "bg-b-2 hover:bg-b-3 text-c-2 ml-1 border-0 shadow-none",
|
|
376
341
|
size: "sm",
|
|
377
342
|
variant: "outlined",
|
|
378
|
-
onClick:
|
|
343
|
+
onClick: X
|
|
379
344
|
}, {
|
|
380
|
-
default:
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
class: "ml-1",
|
|
384
|
-
icon: "Upload",
|
|
385
|
-
size: "xs",
|
|
386
|
-
thickness: "2.5"
|
|
387
|
-
})
|
|
388
|
-
]),
|
|
345
|
+
default: d(() => a[3] || (a[3] = [
|
|
346
|
+
M(" Delete ")
|
|
347
|
+
])),
|
|
389
348
|
_: 1,
|
|
390
|
-
__: [
|
|
391
|
-
})
|
|
392
|
-
])) : ((
|
|
393
|
-
key:
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
349
|
+
__: [3]
|
|
350
|
+
})
|
|
351
|
+
], 64)) : (f(), y(c(k), {
|
|
352
|
+
key: 1,
|
|
353
|
+
class: "bg-b-2 hover:bg-b-3 text-c-2 border-0 shadow-none",
|
|
354
|
+
size: "sm",
|
|
355
|
+
variant: "outlined",
|
|
356
|
+
onClick: Y
|
|
357
|
+
}, {
|
|
358
|
+
default: d(() => [
|
|
359
|
+
a[4] || (a[4] = g("span", null, "Upload File", -1)),
|
|
360
|
+
s(c(T), {
|
|
361
|
+
class: "ml-1",
|
|
362
|
+
icon: "Upload",
|
|
363
|
+
size: "xs",
|
|
364
|
+
thickness: "2.5"
|
|
365
|
+
})
|
|
366
|
+
]),
|
|
367
|
+
_: 1,
|
|
368
|
+
__: [4]
|
|
369
|
+
}))
|
|
370
|
+
])) : u.value?.id == "multipartForm" ? (f(), y(J, {
|
|
371
|
+
key: 2,
|
|
372
|
+
ref_key: "tableWrapperRef",
|
|
373
|
+
ref: x,
|
|
374
|
+
class: "!m-0 rounded-t-none border-t-0 border-r-0 border-b-0 border-l-0 shadow-none",
|
|
375
|
+
columns: ["32px", "", "", "104px"],
|
|
376
|
+
envVariables: e.envVariables,
|
|
377
|
+
environment: e.environment,
|
|
378
|
+
items: m.value,
|
|
379
|
+
showUploadButton: "",
|
|
380
|
+
workspace: e.workspace,
|
|
381
|
+
onDeleteRow: U,
|
|
382
|
+
onRemoveFile: q,
|
|
383
|
+
onToggleRow: E,
|
|
384
|
+
onUpdateRow: j,
|
|
385
|
+
onUploadFile: S
|
|
386
|
+
}, null, 8, ["envVariables", "environment", "items", "workspace"])) : u.value?.id == "formUrlEncoded" ? (f(), y(J, {
|
|
387
|
+
key: 3,
|
|
388
|
+
ref_key: "tableWrapperRef",
|
|
389
|
+
ref: x,
|
|
390
|
+
class: "!m-0 rounded-t-none border-t-0 border-r-0 border-b-0 border-l-0 shadow-none",
|
|
391
|
+
columns: ["32px", "", "", "104px"],
|
|
392
|
+
envVariables: e.envVariables,
|
|
393
|
+
environment: e.environment,
|
|
394
|
+
items: m.value,
|
|
395
|
+
showUploadButton: "",
|
|
396
|
+
workspace: e.workspace,
|
|
397
|
+
onDeleteRow: U,
|
|
398
|
+
onRemoveFile: q,
|
|
399
|
+
onToggleRow: E,
|
|
400
|
+
onUpdateRow: j,
|
|
401
|
+
onUploadFile: S
|
|
402
|
+
}, null, 8, ["envVariables", "environment", "items", "workspace"])) : (f(), y(ae, {
|
|
403
|
+
key: 4,
|
|
404
|
+
class: "border-t px-3",
|
|
405
|
+
content: "",
|
|
406
|
+
envVariables: e.envVariables,
|
|
407
|
+
environment: e.environment,
|
|
408
|
+
language: H.value,
|
|
409
|
+
lineNumbers: "",
|
|
410
|
+
lint: "",
|
|
411
|
+
modelValue: e.example.body?.raw?.value ?? "",
|
|
412
|
+
workspace: e.workspace,
|
|
413
|
+
"onUpdate:modelValue": P
|
|
414
|
+
}, null, 8, ["envVariables", "environment", "language", "modelValue", "workspace"]))
|
|
415
|
+
]),
|
|
439
416
|
_: 1
|
|
440
417
|
}),
|
|
441
|
-
|
|
418
|
+
s(R)
|
|
442
419
|
]),
|
|
443
420
|
_: 1
|
|
444
421
|
})
|
|
@@ -448,5 +425,5 @@ const me = {
|
|
|
448
425
|
}
|
|
449
426
|
});
|
|
450
427
|
export {
|
|
451
|
-
|
|
428
|
+
ke as default
|
|
452
429
|
};
|