@scalar/api-client 2.3.30 → 2.3.32
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 +36 -0
- package/dist/components/AddressBar/AddressBar.vue2.js +3 -3
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +1 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +1 -1
- package/dist/components/CodeInput/codeVariableWidget.js +4 -4
- package/dist/components/CommandPalette/CommandActionForm.vue.js +2 -2
- package/dist/components/CommandPalette/CommandActionInput.vue.js +2 -2
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +2 -2
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +6 -6
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +5 -5
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +7 -7
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +7 -7
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +6 -6
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +4 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +5 -5
- package/dist/components/CommandPalette/WatchModeToggle.vue.js +2 -2
- package/dist/components/DataTable/DataTable.vue.js +5 -5
- package/dist/components/DataTable/DataTableCell.vue.js +2 -2
- package/dist/components/DataTable/DataTableCheckbox.vue.js +2 -2
- package/dist/components/DataTable/DataTableHeader.vue.js +2 -2
- package/dist/components/DataTable/DataTableInput.vue2.js +9 -9
- package/dist/components/DataTable/DataTableInputSelect.vue.js +5 -5
- package/dist/components/DataTable/DataTableRow.vue.js +2 -2
- package/dist/components/DataTable/DataTableText.vue.js +2 -2
- package/dist/components/DataTable/index.js +14 -14
- package/dist/components/EmptyState.vue2.js +2 -2
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +12 -12
- package/dist/components/Form/Form.vue.js +4 -4
- package/dist/components/Form/LabelInput.vue2.js +4 -4
- package/dist/components/HelpfulLink.vue.js +2 -2
- package/dist/components/HttpMethod/HttpMethod.vue2.js +3 -3
- package/dist/components/IconSelector.vue.js +5 -5
- package/dist/components/ImportCollection/DropEventListener.vue.js +3 -3
- package/dist/components/ImportCollection/ImportCollectionListener.vue.js +2 -2
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +3 -3
- package/dist/components/ImportCollection/IntegrationLogo.vue.js +2 -2
- package/dist/components/ImportCollection/PrefetchError.vue.js +4 -4
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +10 -10
- package/dist/components/OpenApiClientButton.vue2.js +4 -4
- package/dist/components/ScalarAsciiArt.vue2.js +3 -3
- package/dist/components/ScalarHotkey.vue.js +2 -2
- package/dist/components/SectionFilter.vue2.js +1 -1
- package/dist/components/SectionFilterButton.vue.js +2 -2
- package/dist/components/Server/ServerDropdown.vue.js +21 -21
- package/dist/components/Server/ServerDropdownItem.vue2.js +4 -4
- package/dist/components/Server/ServerSelector.vue.js +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.js +4 -4
- package/dist/components/Server/ServerVariablesSelect.vue.js +1 -1
- package/dist/components/Server/ServerVariablesTextbox.vue.js +2 -2
- package/dist/components/Server/index.js +6 -6
- package/dist/components/SideNav/DownloadAppButton.vue2.js +5 -5
- package/dist/components/SideNav/SideHelp.vue.js +2 -2
- package/dist/components/SideNav/SideNav.vue.js +5 -5
- package/dist/components/SideNav/SideNavGroup.vue.js +2 -2
- package/dist/components/SideNav/SideNavLink.vue.js +4 -4
- package/dist/components/SideNav/SideNavRouterLink.vue.js +2 -2
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +2 -2
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +2 -2
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js +2 -2
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +4 -4
- package/dist/components/Sidebar/SidebarButton.vue.js +3 -3
- package/dist/components/Sidebar/SidebarList.vue.js +2 -2
- package/dist/components/Sidebar/SidebarListElement.vue2.js +9 -9
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +1 -1
- package/dist/components/Sidebar/SidebarToggle.vue.js +3 -3
- package/dist/components/TopNav/TopNav.vue.js +2 -2
- package/dist/components/TopNav/TopNavItem.vue2.js +20 -20
- package/dist/components/ViewLayout/ViewLayout.vue.js +2 -2
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +7 -7
- package/dist/components/ViewLayout/ViewLayoutContent.vue.js +2 -2
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +3 -3
- package/dist/hooks/useClientConfig.d.ts +3 -3
- package/dist/layouts/App/ApiClientApp.vue.js +10 -10
- package/dist/layouts/App/MainLayout.vue.js +2 -2
- package/dist/layouts/App/create-api-client-app.d.ts +2 -2
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/App/index.js +5 -4
- package/dist/layouts/Modal/ApiClientModal.vue2.js +2 -2
- package/dist/layouts/Modal/create-api-client-modal.d.ts +4 -4
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.js +6 -6
- package/dist/layouts/Web/create-api-client-web.d.ts +2 -2
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +2 -2
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/router.js +4 -4
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/active-entities.js +1 -1
- package/dist/store/import-spec.js +3 -3
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/store.d.ts +2 -2
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +37 -42
- package/dist/store/workspace.d.ts +2 -2
- package/dist/style.css +1 -1
- package/dist/views/Collection/Collection.vue2.js +2 -2
- package/dist/views/Collection/CollectionAuthentication.vue2.js +5 -5
- package/dist/views/Collection/CollectionCookies.vue2.js +2 -2
- package/dist/views/Collection/CollectionEnvironment.vue2.js +2 -2
- package/dist/views/Collection/CollectionInfoForm.vue2.js +2 -2
- package/dist/views/Collection/CollectionNavigation.vue.js +1 -1
- package/dist/views/Collection/CollectionOverview.vue2.js +3 -3
- package/dist/views/Collection/CollectionScripts.vue2.js +2 -2
- package/dist/views/Collection/CollectionServerForm.vue.js +1 -1
- package/dist/views/Collection/CollectionServers.vue2.js +3 -3
- package/dist/views/Collection/CollectionSettings.vue2.js +4 -4
- package/dist/views/Collection/CollectionSync.vue2.js +2 -2
- package/dist/views/Collection/components/MarkdownInput.vue2.js +1 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts +2 -0
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +16 -14
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts +3 -1
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.js +74 -31
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts +3 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.js +8 -6
- package/dist/views/Components/CodeSnippet/index.js +8 -8
- package/dist/views/Cookies/CookieForm.vue.js +2 -2
- package/dist/views/Cookies/CookieModal.vue2.js +2 -2
- package/dist/views/Cookies/Cookies.vue2.js +6 -6
- package/dist/views/Environment/Environment.vue2.js +7 -7
- package/dist/views/Environment/EnvironmentColorModal.vue.js +2 -2
- package/dist/views/Environment/EnvironmentColors.vue.js +1 -1
- package/dist/views/Environment/EnvironmentModal.vue.js +7 -7
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +10 -10
- package/dist/views/Request/Request.vue2.js +1 -1
- package/dist/views/Request/RequestRoot.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +5 -5
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +10 -10
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +11 -11
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts +2 -0
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +56 -61
- package/dist/views/Request/RequestSection/RequestParams.vue.js +13 -13
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +5 -5
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +3 -3
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +23 -22
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +7 -7
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +9 -9
- package/dist/views/Request/RequestSidebar.vue2.js +25 -25
- package/dist/views/Request/RequestSidebarItem.vue2.js +25 -25
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +5 -5
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +5 -5
- package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js +7 -7
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +6 -6
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +4 -4
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +15 -15
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +5 -5
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +2 -2
- package/dist/views/Request/consts/mediaTypes.d.ts.map +1 -1
- package/dist/views/Request/consts/mediaTypes.js +1 -0
- package/dist/views/Request/libs/oauth2.d.ts +1 -1
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Settings/Settings.vue2.js +3 -3
- package/dist/views/Settings/SettingsGeneral.vue.js +1 -1
- package/dist/views/Settings/components/SettingsAppearance.vue.js +10 -10
- package/dist/views/Settings/components/SettingsSection.vue.js +4 -4
- package/package.json +19 -19
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as ge, useId as Se, reactive as ke, ref as Re, watch as H, onMounted as ye, onBeforeUnmount as xe, computed as D,
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as ge, useId as Se, reactive as ke, ref as Re, watch as H, onMounted as ye, onBeforeUnmount as xe, computed as D, createElementBlock as b, openBlock as r, Fragment as $, withDirectives as K, createBlock as u, createCommentVNode as p, createVNode as v, unref as t, normalizeClass as g, createSlots as we, withCtx as d, createElementVNode as n, createTextVNode as q, toDisplayString as B, withKeys as M, withModifiers as S, isRef as Ie, vShow as U, renderList as G, nextTick as Ce } from "vue";
|
|
2
|
+
import { ScalarButton as De, ScalarIcon as P, ScalarSearchInput as $e, ScalarSearchResultList as qe, ScalarSearchResultItem as Me } from "@scalar/components";
|
|
3
3
|
import { LibraryIcon as Pe } from "@scalar/icons/library";
|
|
4
4
|
import { useToasts as Te } from "@scalar/use-toasts";
|
|
5
5
|
import { useRouter as _e } from "vue-router";
|
|
@@ -158,7 +158,7 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
158
158
|
)
|
|
159
159
|
), he = D(() => i === "modal" && V.value ? [V.value] : c.value);
|
|
160
160
|
return (s, e) => (r(), b($, null, [
|
|
161
|
-
K(
|
|
161
|
+
K(v(t(je), {
|
|
162
162
|
class: g([t(T) ? "sidebar-active-width" : ""])
|
|
163
163
|
}, we({
|
|
164
164
|
content: d(() => [
|
|
@@ -166,9 +166,9 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
166
166
|
n("div", {
|
|
167
167
|
class: g(["size-8", { "xl:hidden": t(i) !== "modal" }])
|
|
168
168
|
}, null, 2),
|
|
169
|
-
t(i) !== "modal" ? (r(), u(t(Je), { key: 0 })) :
|
|
170
|
-
t(i) !== "modal" ? (r(), b("span", Ye, " / ")) :
|
|
171
|
-
t(i) !== "modal" ? (r(), u(Le, { key: 2 })) :
|
|
169
|
+
t(i) !== "modal" ? (r(), u(t(Je), { key: 0 })) : p("", !0),
|
|
170
|
+
t(i) !== "modal" ? (r(), b("span", Ye, " / ")) : p("", !0),
|
|
171
|
+
t(i) !== "modal" ? (r(), u(Le, { key: 2 })) : p("", !0),
|
|
172
172
|
n("button", {
|
|
173
173
|
"aria-pressed": m.value,
|
|
174
174
|
class: "ml-auto",
|
|
@@ -176,14 +176,14 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
176
176
|
onClick: ve
|
|
177
177
|
}, [
|
|
178
178
|
n("span", et, B(m.value ? "Hide" : "Show") + " search ", 1),
|
|
179
|
-
|
|
179
|
+
v(t(P), {
|
|
180
180
|
class: "text-c-3 hover:bg-b-2 p-1.75 max-h-8 max-w-8 rounded-lg text-sm",
|
|
181
181
|
icon: "Search"
|
|
182
182
|
})
|
|
183
183
|
], 8, Ze)
|
|
184
184
|
]),
|
|
185
185
|
K(n("div", tt, [
|
|
186
|
-
|
|
186
|
+
v(t($e), {
|
|
187
187
|
ref_key: "searchInputRef",
|
|
188
188
|
ref: C,
|
|
189
189
|
modelValue: t(h),
|
|
@@ -193,9 +193,9 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
193
193
|
sidebar: "",
|
|
194
194
|
onInput: t(ue),
|
|
195
195
|
onKeydown: [
|
|
196
|
-
e[1] || (e[1] =
|
|
197
|
-
e[2] || (e[2] =
|
|
198
|
-
e[3] || (e[3] =
|
|
196
|
+
e[1] || (e[1] = M(S((o) => t(z)("down"), ["stop"]), ["down"])),
|
|
197
|
+
e[2] || (e[2] = M(S((o) => t(de)(), ["stop"]), ["enter"])),
|
|
198
|
+
e[3] || (e[3] = M(S((o) => t(z)("up"), ["stop"]), ["up"]))
|
|
199
199
|
]
|
|
200
200
|
}, null, 8, ["modelValue", "aria-controls", "label", "onInput"])
|
|
201
201
|
], 512), [
|
|
@@ -215,7 +215,7 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
215
215
|
onDragover: e[7] || (e[7] = S(() => {
|
|
216
216
|
}, ["prevent"]))
|
|
217
217
|
}, [
|
|
218
|
-
t(h) ? (r(), u(t(
|
|
218
|
+
t(h) ? (r(), u(t(qe), {
|
|
219
219
|
key: 0,
|
|
220
220
|
id: t(O),
|
|
221
221
|
"aria-label": "Search Results",
|
|
@@ -223,7 +223,7 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
223
223
|
noResults: !t(w).length
|
|
224
224
|
}, {
|
|
225
225
|
default: d(() => [
|
|
226
|
-
(r(!0), b($, null, G(t(w), (o, a) => (r(), u(t(
|
|
226
|
+
(r(!0), b($, null, G(t(w), (o, a) => (r(), u(t(Me), {
|
|
227
227
|
id: `#search-input-${o.item.id}`,
|
|
228
228
|
key: o.refIndex,
|
|
229
229
|
ref_for: !0,
|
|
@@ -236,13 +236,13 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
236
236
|
}, {
|
|
237
237
|
addon: d(() => [
|
|
238
238
|
e[9] || (e[9] = n("span", { class: "sr-only" }, "HTTP Method:", -1)),
|
|
239
|
-
|
|
239
|
+
v(Ne, {
|
|
240
240
|
class: "font-bold",
|
|
241
241
|
method: o.item.httpVerb ?? "get"
|
|
242
242
|
}, null, 8, ["method"])
|
|
243
243
|
]),
|
|
244
244
|
default: d(() => [
|
|
245
|
-
|
|
245
|
+
q(B(o.item.title) + " ", 1)
|
|
246
246
|
]),
|
|
247
247
|
_: 2
|
|
248
248
|
}, 1032, ["id", "active", "href", "onClick", "onFocus"]))), 128))
|
|
@@ -280,7 +280,7 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
280
280
|
"rotate-90": t(Y)[o.uid]
|
|
281
281
|
})
|
|
282
282
|
}, [
|
|
283
|
-
|
|
283
|
+
v(t(P), {
|
|
284
284
|
class: "text-c-3 hover:text-c-1 hidden text-sm group-hover:block",
|
|
285
285
|
icon: "ChevronRight",
|
|
286
286
|
size: "md"
|
|
@@ -302,11 +302,11 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
302
302
|
}, [
|
|
303
303
|
y.value ? (r(), b("div", st, [
|
|
304
304
|
n("div", at, [
|
|
305
|
-
|
|
305
|
+
v(j, {
|
|
306
306
|
art: t(Ve),
|
|
307
307
|
class: "rabbitsit font-bold"
|
|
308
308
|
}, null, 8, ["art"]),
|
|
309
|
-
|
|
309
|
+
v(j, {
|
|
310
310
|
art: t(Ee),
|
|
311
311
|
class: "rabbitjump absolute left-0 top-0 font-bold"
|
|
312
312
|
}, null, 8, ["art"])
|
|
@@ -315,8 +315,8 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
315
315
|
n("b", { class: "font-medium" }, "Let's Get Started"),
|
|
316
316
|
n("p", { class: "mt-2" }, " Create request, folder, collection or import from OpenAPI/Postman ")
|
|
317
317
|
], -1))
|
|
318
|
-
])) :
|
|
319
|
-
t(i) !== "modal" ? (r(), u(t(
|
|
318
|
+
])) : p("", !0),
|
|
319
|
+
t(i) !== "modal" ? (r(), u(t(De), {
|
|
320
320
|
key: 1,
|
|
321
321
|
class: g(["mb-1.5 hidden h-fit w-full p-1.5 opacity-0", {
|
|
322
322
|
"flex opacity-100": y.value
|
|
@@ -324,20 +324,20 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
324
324
|
onClick: le
|
|
325
325
|
}, {
|
|
326
326
|
default: d(() => e[11] || (e[11] = [
|
|
327
|
-
|
|
327
|
+
q(" Import Collection ")
|
|
328
328
|
])),
|
|
329
329
|
_: 1
|
|
330
|
-
}, 8, ["class"])) :
|
|
330
|
+
}, 8, ["class"])) : p("", !0),
|
|
331
331
|
t(i) !== "modal" ? (r(), u(ze, {
|
|
332
332
|
key: 2,
|
|
333
333
|
click: t(R).commandPalette.emit,
|
|
334
334
|
hotkey: "K"
|
|
335
335
|
}, {
|
|
336
336
|
title: d(() => e[12] || (e[12] = [
|
|
337
|
-
|
|
337
|
+
q(" Add Item ")
|
|
338
338
|
])),
|
|
339
339
|
_: 1
|
|
340
|
-
}, 8, ["click"])) :
|
|
340
|
+
}, 8, ["click"])) : p("", !0)
|
|
341
341
|
], 2)
|
|
342
342
|
]),
|
|
343
343
|
_: 2
|
|
@@ -356,7 +356,7 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
356
356
|
onClearDrafts: pe,
|
|
357
357
|
onCloseMenu: e[8] || (e[8] = (o) => k.open = !1),
|
|
358
358
|
onToggleWatchMode: me
|
|
359
|
-
}, null, 8, ["menuItem"])) :
|
|
359
|
+
}, null, 8, ["menuItem"])) : p("", !0)
|
|
360
360
|
], 64));
|
|
361
361
|
}
|
|
362
362
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as me, useCssVars as ve, computed as b, ref as ge, resolveComponent as be,
|
|
1
|
+
import { defineComponent as me, useCssVars as ve, computed as b, ref as ge, resolveComponent as be, createElementBlock as M, createCommentVNode as f, openBlock as d, normalizeClass as h, unref as n, createVNode as v, withCtx as c, createBlock as m, withModifiers as k, createElementVNode as s, toDisplayString as C, createTextVNode as N, renderSlot as Z, Fragment as he, renderList as ye, nextTick as xe } from "vue";
|
|
2
2
|
import { ScalarButton as q, ScalarIcon as y, ScalarSidebarGroupToggle as _, ScalarTooltip as ee } from "@scalar/components";
|
|
3
3
|
import { Draggable as we } from "@scalar/draggable";
|
|
4
4
|
import { shouldIgnoreEntity as te } from "@scalar/oas-utils/helpers";
|
|
@@ -182,7 +182,7 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
182
182
|
default: c(() => {
|
|
183
183
|
var a;
|
|
184
184
|
return [
|
|
185
|
-
(i.value.entity.type === "request" || i.value.entity.type === "requestExample") && i.value.to ? (d(),
|
|
185
|
+
(i.value.entity.type === "request" || i.value.entity.type === "requestExample") && i.value.to ? (d(), m(n(ie), {
|
|
186
186
|
key: 0,
|
|
187
187
|
class: "group no-underline",
|
|
188
188
|
to: i.value.to,
|
|
@@ -203,7 +203,7 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
203
203
|
s("span", Te, C(i.value.title || "Untitled"), 1),
|
|
204
204
|
s("div", ze, [
|
|
205
205
|
s("div", Me, [
|
|
206
|
-
n(p) !== "modal" ? (d(),
|
|
206
|
+
n(p) !== "modal" ? (d(), m(n(q), {
|
|
207
207
|
key: 0,
|
|
208
208
|
class: h(["hover:bg-b-3 hidden aspect-square h-fit px-0.5 py-0 opacity-0 group-hover:flex group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100", {
|
|
209
209
|
flex: ((g = (u = e.menuItem) == null ? void 0 : u.item) == null ? void 0 : g.entity.uid) === i.value.entity.uid && e.menuItem.open
|
|
@@ -228,23 +228,23 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
228
228
|
})
|
|
229
229
|
]),
|
|
230
230
|
_: 1
|
|
231
|
-
}, 8, ["class"])) :
|
|
231
|
+
}, 8, ["class"])) : f("", !0)
|
|
232
232
|
]),
|
|
233
233
|
s("span", $e, [
|
|
234
234
|
t[13] || (t[13] = N(" ")),
|
|
235
235
|
t[14] || (t[14] = s("span", { class: "sr-only" }, "HTTP Method:", -1)),
|
|
236
|
-
i.value.method ? (d(),
|
|
236
|
+
i.value.method ? (d(), m(n(Ce), {
|
|
237
237
|
key: 0,
|
|
238
238
|
class: "font-bold",
|
|
239
239
|
method: i.value.method
|
|
240
|
-
}, null, 8, ["method"])) :
|
|
240
|
+
}, null, 8, ["method"])) : f("", !0)
|
|
241
241
|
])
|
|
242
242
|
])
|
|
243
243
|
], 2)
|
|
244
244
|
];
|
|
245
245
|
}),
|
|
246
246
|
_: 1
|
|
247
|
-
}, 8, ["to"])) : (n(p) !== "modal" || e.parentUids.length) && i.value.entity.type === "collection" && i.value.to ? (d(),
|
|
247
|
+
}, 8, ["to"])) : (n(p) !== "modal" || e.parentUids.length) && i.value.entity.type === "collection" && i.value.to ? (d(), m(n(ie), {
|
|
248
248
|
key: 1,
|
|
249
249
|
"aria-expanded": !!n(D)[i.value.entity.uid],
|
|
250
250
|
class: h(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 no-underline focus-visible:z-10", [
|
|
@@ -280,7 +280,7 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
280
280
|
hidden: !e.menuItem.open || ((o = e.menuItem.item) == null ? void 0 : o.entity.uid) !== i.value.entity.uid
|
|
281
281
|
}])
|
|
282
282
|
}, [
|
|
283
|
-
n(p) !== "modal" && !T.value || T.value && K.value ? (d(),
|
|
283
|
+
n(p) !== "modal" && !T.value || T.value && K.value ? (d(), m(n(q), {
|
|
284
284
|
key: 0,
|
|
285
285
|
class: "hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",
|
|
286
286
|
size: "sm",
|
|
@@ -302,8 +302,8 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
302
302
|
})
|
|
303
303
|
]),
|
|
304
304
|
_: 1
|
|
305
|
-
})) :
|
|
306
|
-
n(p) !== "modal" ? (d(),
|
|
305
|
+
})) : f("", !0),
|
|
306
|
+
n(p) !== "modal" ? (d(), m(n(q), {
|
|
307
307
|
key: 1,
|
|
308
308
|
class: "hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",
|
|
309
309
|
size: "sm",
|
|
@@ -318,9 +318,9 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
318
318
|
})
|
|
319
319
|
]),
|
|
320
320
|
_: 1
|
|
321
|
-
})) :
|
|
321
|
+
})) : f("", !0)
|
|
322
322
|
], 2),
|
|
323
|
-
i.value.watchMode ? (d(),
|
|
323
|
+
i.value.watchMode ? (d(), m(n(ee), {
|
|
324
324
|
key: 0,
|
|
325
325
|
side: "right",
|
|
326
326
|
sideOffset: 12
|
|
@@ -341,7 +341,7 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
341
341
|
])
|
|
342
342
|
]),
|
|
343
343
|
_: 1
|
|
344
|
-
})) :
|
|
344
|
+
})) : f("", !0),
|
|
345
345
|
t[16] || (t[16] = s("span", null, " ", -1))
|
|
346
346
|
])
|
|
347
347
|
])
|
|
@@ -373,7 +373,7 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
373
373
|
hidden: !e.menuItem.open || ((a = e.menuItem.item) == null ? void 0 : a.entity.uid) !== i.value.entity.uid
|
|
374
374
|
}])
|
|
375
375
|
}, [
|
|
376
|
-
n(p) !== "modal" && !T.value || T.value && K.value ? (d(),
|
|
376
|
+
n(p) !== "modal" && !T.value || T.value && K.value ? (d(), m(n(q), {
|
|
377
377
|
key: 0,
|
|
378
378
|
class: "hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",
|
|
379
379
|
size: "sm",
|
|
@@ -395,8 +395,8 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
395
395
|
})
|
|
396
396
|
]),
|
|
397
397
|
_: 1
|
|
398
|
-
})) :
|
|
399
|
-
n(p) !== "modal" ? (d(),
|
|
398
|
+
})) : f("", !0),
|
|
399
|
+
n(p) !== "modal" ? (d(), m(n(q), {
|
|
400
400
|
key: 1,
|
|
401
401
|
class: "hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",
|
|
402
402
|
size: "sm",
|
|
@@ -411,9 +411,9 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
411
411
|
})
|
|
412
412
|
]),
|
|
413
413
|
_: 1
|
|
414
|
-
})) :
|
|
414
|
+
})) : f("", !0)
|
|
415
415
|
], 2),
|
|
416
|
-
i.value.watchMode ? (d(),
|
|
416
|
+
i.value.watchMode ? (d(), m(n(ee), {
|
|
417
417
|
key: 0,
|
|
418
418
|
side: "right",
|
|
419
419
|
sideOffset: 12
|
|
@@ -434,13 +434,13 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
434
434
|
])
|
|
435
435
|
]),
|
|
436
436
|
_: 1
|
|
437
|
-
})) :
|
|
437
|
+
})) : f("", !0),
|
|
438
438
|
t[18] || (t[18] = s("span", null, " ", -1))
|
|
439
439
|
])
|
|
440
440
|
])
|
|
441
|
-
], 10, Ne)) :
|
|
441
|
+
], 10, Ne)) : f("", !0),
|
|
442
442
|
ue.value ? (d(), M("ul", Ge, [
|
|
443
|
-
(d(!0), M(he, null, ye(i.value.children, (o) => (d(),
|
|
443
|
+
(d(!0), M(he, null, ye(i.value.children, (o) => (d(), m(r, {
|
|
444
444
|
key: o,
|
|
445
445
|
isDraggable: !n(S)[o],
|
|
446
446
|
isDroppable: pe,
|
|
@@ -451,7 +451,7 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
451
451
|
onOnDragEnd: t[9] || (t[9] = (...u) => e.$emit("onDragEnd", ...u)),
|
|
452
452
|
onOpenMenu: t[10] || (t[10] = (u) => e.$emit("openMenu", u))
|
|
453
453
|
}, null, 8, ["isDraggable", "menuItem", "parentUids", "uid"]))), 128)),
|
|
454
|
-
i.value.children.length === 0 ? (d(),
|
|
454
|
+
i.value.children.length === 0 ? (d(), m(n(q), {
|
|
455
455
|
key: 0,
|
|
456
456
|
class: h(["text-c-1 hover:bg-b-2 flex h-8 w-full justify-start gap-1.5 py-0 text-xs", e.parentUids.length ? "pl-9" : ""]),
|
|
457
457
|
variant: "ghost",
|
|
@@ -465,13 +465,13 @@ const Te = { class: "line-clamp-1 w-full break-all pl-2 font-medium" }, ze = { c
|
|
|
465
465
|
t[19] || (t[19] = s("span", null, "Add Request", -1))
|
|
466
466
|
]),
|
|
467
467
|
_: 1
|
|
468
|
-
}, 8, ["class"])) :
|
|
469
|
-
])) :
|
|
468
|
+
}, 8, ["class"])) : f("", !0)
|
|
469
|
+
])) : f("", !0)
|
|
470
470
|
];
|
|
471
471
|
}),
|
|
472
472
|
_: 3
|
|
473
473
|
}, 8, ["id", "ceiling", "floor", "isDraggable", "isDroppable", "parentIds"])
|
|
474
|
-
], 2)) :
|
|
474
|
+
], 2)) : f("", !0);
|
|
475
475
|
};
|
|
476
476
|
}
|
|
477
477
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as H, ref as J, watch as O, onMounted as Q, onBeforeUnmount as X, computed as Y,
|
|
1
|
+
import { defineComponent as H, ref as J, watch as O, onMounted as Q, onBeforeUnmount as X, computed as Y, createElementBlock as R, openBlock as s, Fragment as h, createBlock as d, createCommentVNode as c, createVNode as m, unref as n, withCtx as r, withKeys as Z, createElementVNode as g, createTextVNode as S, toDisplayString as _ } from "vue";
|
|
2
2
|
import { useModal as W, ScalarFloating as ee, ScalarDropdownMenu as te, ScalarDropdownButton as y, ScalarIcon as M, ScalarModal as b } from "@scalar/components";
|
|
3
3
|
import { useRouter as ne } from "vue-router";
|
|
4
4
|
import T from "../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as g,
|
|
1
|
+
import { defineComponent as g, createElementBlock as l, openBlock as r, createElementVNode as i, createVNode as m, createCommentVNode as s, unref as o, normalizeClass as k, createBlock as v } from "vue";
|
|
2
2
|
import { ScalarIcon as p } from "@scalar/components";
|
|
3
3
|
import { useRouter as C } from "vue-router";
|
|
4
4
|
import w from "../../components/AddressBar/AddressBar.vue.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as y,
|
|
1
|
+
import { defineComponent as y, createBlock as f, openBlock as r, withCtx as e, createElementBlock as l, createVNode as a, unref as d, createTextVNode as n, Fragment as i, renderList as g, toDisplayString as c } from "vue";
|
|
2
2
|
import k from "../../../components/DataTable/DataTable.vue.js";
|
|
3
3
|
import p from "../../../components/DataTable/DataTableRow.vue.js";
|
|
4
4
|
import _ from "../../../components/DataTable/DataTableText.vue.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as C, ref as N, computed as m, toRef as w,
|
|
1
|
+
import { defineComponent as C, ref as N, computed as m, toRef as w, createBlock as n, openBlock as o, createSlots as T, withCtx as d, createElementBlock as $, createCommentVNode as s, createElementVNode as g, toDisplayString as _, unref as a, createTextVNode as x, createVNode as E } from "vue";
|
|
2
2
|
import P from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
3
3
|
import { useResponseBody as S } from "../../../hooks/useResponseBody.js";
|
|
4
4
|
import U from "./ResponseBodyDownload.vue.js";
|
|
@@ -33,14 +33,14 @@ const z = {
|
|
|
33
33
|
layout: t.layout
|
|
34
34
|
}, T({
|
|
35
35
|
title: d(() => [
|
|
36
|
-
|
|
36
|
+
x(_(t.title), 1)
|
|
37
37
|
]),
|
|
38
38
|
default: d(() => {
|
|
39
39
|
var f, v, y, h;
|
|
40
40
|
return [
|
|
41
41
|
t.data ? (o(), $("div", z, [
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
g("div", A, [
|
|
43
|
+
g("span", G, _(a(u).essence), 1),
|
|
44
44
|
p.value ? (o(), n(I, {
|
|
45
45
|
key: 0,
|
|
46
46
|
modelValue: r.value,
|
|
@@ -61,7 +61,7 @@ const z = {
|
|
|
61
61
|
}, null, 8, ["alpha", "mode", "src", "type"])) : s("", !0),
|
|
62
62
|
!((y = e.value) != null && y.raw) && !((h = e.value) != null && h.preview) ? (o(), n(j, { key: 2 }, {
|
|
63
63
|
default: d(() => i[1] || (i[1] = [
|
|
64
|
-
|
|
64
|
+
x(" Binary file ")
|
|
65
65
|
])),
|
|
66
66
|
_: 1
|
|
67
67
|
})) : s("", !0)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as l, computed as p,
|
|
1
|
+
import { defineComponent as l, computed as p, createElementBlock as a, openBlock as i, withModifiers as d, createVNode as m, createElementVNode as s, unref as f } from "vue";
|
|
2
2
|
import { ScalarIcon as c } from "@scalar/components";
|
|
3
3
|
import { mediaTypes as u } from "../consts/mediaTypes.js";
|
|
4
4
|
const x = ["download", "href"], k = /* @__PURE__ */ l({
|
|
@@ -14,7 +14,7 @@ const x = ["download", "href"], k = /* @__PURE__ */ l({
|
|
|
14
14
|
const o = ((e = u[n.type ?? ""]) == null ? void 0 : e.extension) ?? ".unknown";
|
|
15
15
|
return n.filename ? n.filename : `response${o}`;
|
|
16
16
|
});
|
|
17
|
-
return (o, e) => (
|
|
17
|
+
return (o, e) => (i(), a("a", {
|
|
18
18
|
class: "text-c-3 text-xxs hover:bg-b-3 no-underlin flex items-center gap-1 rounded px-1.5 py-0.5",
|
|
19
19
|
download: `${r.value}`,
|
|
20
20
|
href: o.href,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock as t, openBlock as o, createElementVNode as s, renderSlot as c } from "vue";
|
|
2
2
|
import n from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
3
|
const r = {}, d = { class: "flex justify-center px-2 py-3" }, f = { class: "text-c-3 p-2 text-sm" };
|
|
4
4
|
function l(e, _) {
|
|
5
|
-
return
|
|
5
|
+
return o(), t("div", d, [
|
|
6
6
|
s("div", f, [
|
|
7
7
|
c(e.$slots, "default")
|
|
8
8
|
])
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as d, ref as p, watch as i,
|
|
1
|
+
import { defineComponent as d, ref as p, watch as i, createElementBlock as l, createBlock as y, openBlock as s, normalizeClass as a, createElementVNode as n, withCtx as f, createTextVNode as m } from "vue";
|
|
2
2
|
import v from "./ResponseBodyInfo.vue.js";
|
|
3
3
|
const c = ["src"], k = ["src", "type"], w = ["src", "type"], B = ["data", "type"], $ = /* @__PURE__ */ d({
|
|
4
4
|
__name: "ResponseBodyPreview",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as m, ref as f, toRef as c,
|
|
1
|
+
import { defineComponent as m, ref as f, toRef as c, createElementBlock as l, openBlock as i, createCommentVNode as y, createElementVNode as e, unref as a, createVNode as b } from "vue";
|
|
2
2
|
import { ScalarIcon as v } from "@scalar/components";
|
|
3
3
|
import { prettyPrintJson as C } from "@scalar/oas-utils/helpers";
|
|
4
4
|
import { useCodeMirror as g } from "@scalar/use-codemirror";
|
|
@@ -27,20 +27,20 @@ const k = { class: "body-raw grid min-h-0 overflow-hidden p-px outline-none has-
|
|
|
27
27
|
var t;
|
|
28
28
|
return ((t = p.value) == null ? void 0 : t.state.doc.toString()) || "";
|
|
29
29
|
};
|
|
30
|
-
return (t, o) => (
|
|
31
|
-
s() ? (
|
|
30
|
+
return (t, o) => (i(), l("div", k, [
|
|
31
|
+
s() ? (i(), l("div", w, [
|
|
32
32
|
e("button", {
|
|
33
33
|
class: "copy-button",
|
|
34
34
|
type: "button",
|
|
35
35
|
onClick: o[0] || (o[0] = (R) => a(u)(s()))
|
|
36
36
|
}, [
|
|
37
37
|
o[1] || (o[1] = e("span", { class: "sr-only" }, "Copy content", -1)),
|
|
38
|
-
|
|
38
|
+
b(a(v), {
|
|
39
39
|
icon: "Clipboard",
|
|
40
40
|
size: "md"
|
|
41
41
|
})
|
|
42
42
|
])
|
|
43
|
-
])) :
|
|
43
|
+
])) : y("", !0),
|
|
44
44
|
e("div", x, [
|
|
45
45
|
e("div", {
|
|
46
46
|
ref_key: "codeMirrorRef",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as y, ref as i, watch as _, nextTick as w, onMounted as h, onBeforeUnmount as k,
|
|
1
|
+
import { defineComponent as y, ref as i, watch as _, nextTick as w, onMounted as h, onBeforeUnmount as k, createBlock as L, openBlock as s, withCtx as p, createElementVNode as l, createElementBlock as d, createCommentVNode as c, toDisplayString as g, unref as u, createVNode as B } from "vue";
|
|
2
2
|
import { useLoadingState as S, ScalarLoading as b } from "@scalar/components";
|
|
3
3
|
import C from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
4
4
|
const T = { class: "flex w-full items-center justify-between" }, E = {
|
|
@@ -46,13 +46,13 @@ const T = { class: "flex w-full items-center justify-between" }, E = {
|
|
|
46
46
|
title: p(() => [
|
|
47
47
|
l("div", T, [
|
|
48
48
|
t[1] || (t[1] = l("div", null, "Body", -1)),
|
|
49
|
-
|
|
50
|
-
B(
|
|
51
|
-
loadingState:
|
|
49
|
+
u(e).isLoading ? (s(), d("div", E, [
|
|
50
|
+
B(u(b), {
|
|
51
|
+
loadingState: u(e),
|
|
52
52
|
size: "xs"
|
|
53
53
|
}, null, 8, ["loadingState"]),
|
|
54
54
|
t[0] || (t[0] = l("span", { class: "text-c-2" }, " Listening… ", -1))
|
|
55
|
-
])) :
|
|
55
|
+
])) : c("", !0)
|
|
56
56
|
])
|
|
57
57
|
]),
|
|
58
58
|
default: p(() => [
|
|
@@ -61,8 +61,8 @@ const T = { class: "flex w-full items-center justify-between" }, E = {
|
|
|
61
61
|
ref: r,
|
|
62
62
|
class: "text-xxs font-code leading-2 h-full overflow-auto whitespace-pre-wrap"
|
|
63
63
|
}, [
|
|
64
|
-
a.value ? (s(),
|
|
65
|
-
o.value ? (s(),
|
|
64
|
+
a.value ? (s(), d("div", N, g(a.value.message), 1)) : c("", !0),
|
|
65
|
+
o.value ? (s(), d("div", V, g(o.value), 1)) : c("", !0)
|
|
66
66
|
], 512)
|
|
67
67
|
]),
|
|
68
68
|
_: 1
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as u,
|
|
1
|
+
import { defineComponent as u, createElementBlock as r, openBlock as d, createElementVNode as o, withModifiers as l, normalizeClass as n } from "vue";
|
|
2
2
|
const a = { class: "text-c-3 text-xxs -my-1 flex justify-center gap-0.5 rounded p-0.5" }, i = /* @__PURE__ */ u({
|
|
3
3
|
__name: "ResponseBodyToggle",
|
|
4
4
|
props: {
|
|
@@ -6,16 +6,16 @@ const a = { class: "text-c-3 text-xxs -my-1 flex justify-center gap-0.5 rounded
|
|
|
6
6
|
},
|
|
7
7
|
emits: ["update:modelValue"],
|
|
8
8
|
setup(p) {
|
|
9
|
-
return (e, t) => (
|
|
9
|
+
return (e, t) => (d(), r("div", a, [
|
|
10
10
|
o("button", {
|
|
11
|
-
class:
|
|
11
|
+
class: n(["hover:bg-b-3 rounded px-1", { "bg-b-3 text-c-1 cursor-default": e.modelValue }]),
|
|
12
12
|
type: "button",
|
|
13
|
-
onClick: t[0] || (t[0] =
|
|
13
|
+
onClick: t[0] || (t[0] = l((s) => e.$emit("update:modelValue", !0), ["stop"]))
|
|
14
14
|
}, " Preview ", 2),
|
|
15
15
|
o("button", {
|
|
16
|
-
class:
|
|
16
|
+
class: n(["hover:bg-b-3 rounded px-1", { "bg-b-3 text-c-1 cursor-default": !e.modelValue }]),
|
|
17
17
|
type: "button",
|
|
18
|
-
onClick: t[1] || (t[1] =
|
|
18
|
+
onClick: t[1] || (t[1] = l((s) => e.$emit("update:modelValue", !1), ["stop"]))
|
|
19
19
|
}, " Raw ", 2)
|
|
20
20
|
]));
|
|
21
21
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as c, computed as p, toRef as a,
|
|
1
|
+
import { defineComponent as c, computed as p, toRef as a, createBlock as f, openBlock as x, createSlots as u, withCtx as r, createElementVNode as h, createVNode as s, unref as e, createTextVNode as y } from "vue";
|
|
2
2
|
import { ScalarVirtualText as b } from "@scalar/components";
|
|
3
3
|
import { formatJsonOrYamlString as g } from "@scalar/oas-utils/helpers";
|
|
4
4
|
import _ from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
@@ -16,12 +16,12 @@ const R = /* @__PURE__ */ c({
|
|
|
16
16
|
data: a(o, "data"),
|
|
17
17
|
headers: a(o, "headers")
|
|
18
18
|
});
|
|
19
|
-
return (w, t) => (
|
|
19
|
+
return (w, t) => (x(), f(_, { class: "!max-h-100% response-body-virtual overflow-x-auto" }, u({
|
|
20
20
|
title: r(() => [
|
|
21
|
-
t[0] || (t[0] =
|
|
21
|
+
t[0] || (t[0] = y("Body"))
|
|
22
22
|
]),
|
|
23
23
|
default: r(() => [
|
|
24
|
-
t[1] || (t[1] =
|
|
24
|
+
t[1] || (t[1] = h("div", { class: "font-code text-xxs border-1/2 rounded-t border-b-0 px-2.5 py-1.5" }, " This response body is massive! Syntax highlighting won’t work here. ", -1)),
|
|
25
25
|
s(e(b), {
|
|
26
26
|
containerClass: "custom-scroll scalar-code-block border-1/2 rounded-b flex flex-1 max-h-screen",
|
|
27
27
|
contentClass: "language-plaintext whitespace-pre font-code text-base",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as c,
|
|
1
|
+
import { defineComponent as c, createBlock as r, openBlock as e, withCtx as t, createElementBlock as n, Fragment as a, renderList as f, createVNode as i, createTextVNode as p } from "vue";
|
|
2
2
|
import u from "../../../components/DataTable/DataTable.vue.js";
|
|
3
3
|
import _ from "../../../components/DataTable/DataTableRow.vue.js";
|
|
4
4
|
import m from "../../../components/DataTable/DataTableText.vue.js";
|
|
@@ -14,7 +14,7 @@ const d = {
|
|
|
14
14
|
setup(x) {
|
|
15
15
|
return (s, l) => (e(), r(k, { defaultOpen: !1 }, {
|
|
16
16
|
title: t(() => l[0] || (l[0] = [
|
|
17
|
-
|
|
17
|
+
p("Cookies")
|
|
18
18
|
])),
|
|
19
19
|
default: t(() => [
|
|
20
20
|
(e(), n(a, { key: 0 }, [
|
|
@@ -24,7 +24,7 @@ const d = {
|
|
|
24
24
|
columns: ["", ""]
|
|
25
25
|
}, {
|
|
26
26
|
default: t(() => [
|
|
27
|
-
(e(!0), n(a, null,
|
|
27
|
+
(e(!0), n(a, null, f(s.cookies, (o) => (e(), r(_, {
|
|
28
28
|
key: o.name
|
|
29
29
|
}, {
|
|
30
30
|
default: t(() => [
|