@scalar/api-client 2.1.46 → 2.1.48
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.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +2 -2
- package/dist/components/AddressBar/AddressBar.vue2.js +6 -6
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +32 -26
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +14 -9
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +4 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +15 -10
- package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.vue.js +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +17 -12
- package/dist/components/ImportCollection/DropEventListener.vue.d.ts +2 -2
- package/dist/components/ImportCollection/DropEventListener.vue.js +6 -6
- package/dist/components/ImportCollection/ImportCollectionListener.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionListener.vue.js +22 -21
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts +1 -0
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +87 -74
- package/dist/components/ImportCollection/PasteEventListener.vue.d.ts +2 -2
- package/dist/components/ImportCollection/PasteEventListener.vue.js +5 -5
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts +2 -2
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.js +10 -5
- package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +43 -33
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +1 -0
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +31 -21
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +17 -17
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.js +14 -13
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts +1 -3
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
- package/dist/layouts/Modal/ApiClientModal.vue2.js +11 -11
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.js +11 -10
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +22 -10
- package/dist/router.d.ts +4 -41
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +18 -149
- package/dist/routes.d.ts +150 -0
- package/dist/routes.d.ts.map +1 -0
- package/dist/routes.js +182 -0
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/router-params.js +1 -1
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +90 -90
- package/dist/style.css +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +20 -15
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +7 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +71 -71
- package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +18 -18
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItem.vue2.js +46 -33
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +6 -6
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue2.js +26 -21
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +5 -97
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +97 -2
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +8 -8
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +61 -55
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +95 -64
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +60 -50
- package/dist/views/Request/types/sidebar-item.d.ts +2 -1
- package/dist/views/Request/types/sidebar-item.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +12 -7
- package/package.json +7 -7
- package/dist/components/SubpageHeader.vue.d.ts +0 -18
- package/dist/components/SubpageHeader.vue.d.ts.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as ne, useCssVars as se, computed as c, ref as re, resolveComponent as le, openBlock as p, createElementBlock as k, normalizeClass as f, unref as n, createVNode as h, withCtx as g, createBlock as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { defineComponent as ne, useCssVars as se, computed as c, ref as re, resolveComponent as le, openBlock as p, createElementBlock as k, normalizeClass as f, unref as n, createVNode as h, withCtx as g, createBlock as b, withModifiers as M, createElementVNode as a, toDisplayString as T, createCommentVNode as v, createTextVNode as P, renderSlot as ae, Fragment as oe, renderList as ue } from "vue";
|
|
2
|
+
import { ScalarButton as I, ScalarIcon as y, ScalarTooltip as de } from "@scalar/components";
|
|
3
|
+
import { Draggable as pe } from "@scalar/draggable";
|
|
4
|
+
import { RouterLink as fe } from "vue-router";
|
|
5
|
+
import { PathId as me } from "../../routes.js";
|
|
6
6
|
import ce from "../../components/HttpMethod/HttpMethod.vue.js";
|
|
7
7
|
import { useSidebar as ge } from "../../hooks/useSidebar.js";
|
|
8
|
-
import { getModifiers as
|
|
9
|
-
import { useWorkspace as
|
|
8
|
+
import { getModifiers as be } from "../../libs/hot-keys.js";
|
|
9
|
+
import { useWorkspace as ve } from "../../store/store.js";
|
|
10
10
|
const he = { class: "flex flex-row gap-1 items-center" }, ye = { class: "relative" }, xe = { class: "flex items-start" }, we = ["aria-expanded"], ke = { class: "flex h-5 items-center justify-center max-w-[14px]" }, Ue = { class: "flex flex-1 flex-row justify-between editable-sidebar-hover" }, qe = { class: "relative flex h-fit" }, De = { class: "grid gap-1.5 pointer-events-none max-w-10 w-content shadow-lg rounded bg-b-1 z-100 p-2 text-xxs leading-5 z-10 text-c-1" }, Ce = { class: "flex items-center text-c-2" }, Re = { class: "text-pretty break-all" }, Me = { key: 2 }, j = "hover:bg-sidebar-active-b indent-padding-left", je = /* @__PURE__ */ ne({
|
|
11
11
|
__name: "RequestSidebarItem",
|
|
12
12
|
props: {
|
|
@@ -19,18 +19,18 @@ const he = { class: "flex flex-row gap-1 items-center" }, ye = { class: "relativ
|
|
|
19
19
|
emits: ["onDragEnd", "newTab", "openMenu"],
|
|
20
20
|
setup(B, { emit: V }) {
|
|
21
21
|
se((e) => ({
|
|
22
|
-
"
|
|
23
|
-
|
|
22
|
+
"9b98f448": K.value,
|
|
23
|
+
"27ad5b3c": Q.value
|
|
24
24
|
}));
|
|
25
25
|
const s = B, W = V, {
|
|
26
26
|
activeCollection: A,
|
|
27
|
-
activeRequest:
|
|
27
|
+
activeRequest: E,
|
|
28
28
|
activeRouterParams: F,
|
|
29
29
|
activeWorkspace: x,
|
|
30
30
|
collections: U,
|
|
31
31
|
tags: Y,
|
|
32
32
|
isReadOnly: m,
|
|
33
|
-
requests:
|
|
33
|
+
requests: $,
|
|
34
34
|
requestExamples: q,
|
|
35
35
|
collectionMutators: D,
|
|
36
36
|
tagMutators: S,
|
|
@@ -38,9 +38,9 @@ const he = { class: "flex flex-row gap-1 items-center" }, ye = { class: "relativ
|
|
|
38
38
|
requestExampleMutators: N,
|
|
39
39
|
router: H,
|
|
40
40
|
events: L
|
|
41
|
-
} =
|
|
41
|
+
} = ve(), { collapsedSidebarFolders: C, toggleSidebarFolder: G } = ge(), i = c(() => {
|
|
42
42
|
var l, d;
|
|
43
|
-
const e = U[s.uid], t = Y[s.uid], r =
|
|
43
|
+
const e = U[s.uid], t = Y[s.uid], r = $[s.uid], o = q[s.uid];
|
|
44
44
|
return e ? {
|
|
45
45
|
title: ((l = e.info) == null ? void 0 : l.title) ?? "Unknown title",
|
|
46
46
|
entity: e,
|
|
@@ -64,7 +64,13 @@ const he = { class: "flex flex-row gap-1 items-center" }, ye = { class: "relativ
|
|
|
64
64
|
delete: () => S.delete(t, s.parentUids[0])
|
|
65
65
|
} : r ? {
|
|
66
66
|
title: r.summary ?? [r.method, r.path].join(" - "),
|
|
67
|
-
link:
|
|
67
|
+
link: {
|
|
68
|
+
name: "request",
|
|
69
|
+
params: {
|
|
70
|
+
workspace: x.value.uid,
|
|
71
|
+
request: r.uid
|
|
72
|
+
}
|
|
73
|
+
},
|
|
68
74
|
method: r.method,
|
|
69
75
|
entity: r,
|
|
70
76
|
resourceTitle: "Request",
|
|
@@ -74,8 +80,15 @@ const he = { class: "flex flex-row gap-1 items-center" }, ye = { class: "relativ
|
|
|
74
80
|
delete: () => z.delete(r, s.parentUids[0])
|
|
75
81
|
} : {
|
|
76
82
|
title: o.name,
|
|
77
|
-
link:
|
|
78
|
-
|
|
83
|
+
link: {
|
|
84
|
+
name: "request.examples",
|
|
85
|
+
params: {
|
|
86
|
+
workspace: x.value.uid,
|
|
87
|
+
request: o.requestUid,
|
|
88
|
+
examples: o.uid
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
method: (d = $[o.requestUid]) == null ? void 0 : d.method,
|
|
79
92
|
entity: o,
|
|
80
93
|
resourceTitle: "Example",
|
|
81
94
|
warning: "This cannot be undone. You’re about to delete the example from the request.",
|
|
@@ -88,12 +101,12 @@ const he = { class: "flex flex-row gap-1 items-center" }, ye = { class: "relativ
|
|
|
88
101
|
), K = c(() => s.parentUids.length ? m.value ? `${(s.parentUids.length - 1) * 12}px` : `${s.parentUids.length * 12}px` : "12px"), Q = c(() => s.parentUids.length ? m.value ? `${(s.parentUids.length - 1) * 12}px` : `${s.parentUids.length * 12}px` : "0px"), X = c(
|
|
89
102
|
() => {
|
|
90
103
|
var e;
|
|
91
|
-
return C[s.uid] || ((e =
|
|
104
|
+
return C[s.uid] || ((e = E.value) == null ? void 0 : e.uid) === s.uid && i.value.entity.examples.length > 1;
|
|
92
105
|
}
|
|
93
106
|
), Z = c(
|
|
94
107
|
() => {
|
|
95
108
|
var e;
|
|
96
|
-
return F.value[
|
|
109
|
+
return F.value[me.Request] === "default" && ((e = E.value) == null ? void 0 : e.uid) === s.uid;
|
|
97
110
|
}
|
|
98
111
|
), R = re(null), O = c(() => {
|
|
99
112
|
let e = 0.5, t = 0.5;
|
|
@@ -101,7 +114,7 @@ const he = { class: "flex flex-row gap-1 items-center" }, ye = { class: "relativ
|
|
|
101
114
|
const { draggingItem: r } = R.value;
|
|
102
115
|
return !U[r == null ? void 0 : r.id] && i.value.entity.type === "collection" ? (e = 1, t = 0) : i.value.entity.type === "tag" && (e = 0.8, t = 0.2), { ceiling: e, floor: t };
|
|
103
116
|
}), _ = (e, t) => !(x.value.isReadOnly || q[t.id] || U[e.id]), ee = (e, t) => {
|
|
104
|
-
e && (
|
|
117
|
+
e && (be(["default"]).some((l) => e[l]) ? W("newTab", t.title || "", t.entity.uid) : t.link && H.push(t.link));
|
|
105
118
|
};
|
|
106
119
|
function te() {
|
|
107
120
|
L.commandPalette.emit({
|
|
@@ -123,7 +136,7 @@ const he = { class: "flex flex-row gap-1 items-center" }, ye = { class: "relativ
|
|
|
123
136
|
n(m) && e.parentUids.length > 1 || !n(m) && e.parentUids.length ? "before:bg-border before:pointer-events-none before:z-1 before:absolute before:left-[calc(.75rem_+_.5px)] before:top-0 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 indent-border-line-offset" : ""
|
|
124
137
|
]])
|
|
125
138
|
}, [
|
|
126
|
-
h(n(
|
|
139
|
+
h(n(pe), {
|
|
127
140
|
id: i.value.entity.uid,
|
|
128
141
|
ref_key: "draggableRef",
|
|
129
142
|
ref: R,
|
|
@@ -138,7 +151,7 @@ const he = { class: "flex flex-row gap-1 items-center" }, ye = { class: "relativ
|
|
|
138
151
|
default: g(() => {
|
|
139
152
|
var o;
|
|
140
153
|
return [
|
|
141
|
-
i.value.link ? (p(),
|
|
154
|
+
i.value.link ? (p(), b(n(fe), {
|
|
142
155
|
key: 0,
|
|
143
156
|
class: "group no-underline",
|
|
144
157
|
to: i.value.link,
|
|
@@ -163,7 +176,7 @@ const he = { class: "flex flex-row gap-1 items-center" }, ye = { class: "relativ
|
|
|
163
176
|
}, T(i.value.title), 3),
|
|
164
177
|
a("div", he, [
|
|
165
178
|
a("div", ye, [
|
|
166
|
-
n(m) ?
|
|
179
|
+
n(m) ? v("", !0) : (p(), b(n(I), {
|
|
167
180
|
key: 0,
|
|
168
181
|
class: f(["px-0.5 py-0 hover:bg-b-3 opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100 absolute -translate-y-1/2 right-0 aspect-square inset-y-2/4 h-fit", {
|
|
169
182
|
flex: ((u = (d = e.menuItem) == null ? void 0 : d.item) == null ? void 0 : u.entity.uid) === i.value.entity.uid && e.menuItem.open
|
|
@@ -193,11 +206,11 @@ const he = { class: "flex flex-row gap-1 items-center" }, ye = { class: "relativ
|
|
|
193
206
|
a("span", xe, [
|
|
194
207
|
t[9] || (t[9] = P(" ")),
|
|
195
208
|
t[10] || (t[10] = a("span", { class: "sr-only" }, "HTTP Method:", -1)),
|
|
196
|
-
i.value.method ? (p(),
|
|
209
|
+
i.value.method ? (p(), b(n(ce), {
|
|
197
210
|
key: 0,
|
|
198
211
|
class: "font-bold",
|
|
199
212
|
method: i.value.method
|
|
200
|
-
}, null, 8, ["method"])) :
|
|
213
|
+
}, null, 8, ["method"])) : v("", !0)
|
|
201
214
|
])
|
|
202
215
|
])
|
|
203
216
|
], 2)
|
|
@@ -235,7 +248,7 @@ const he = { class: "flex flex-row gap-1 items-center" }, ye = { class: "relativ
|
|
|
235
248
|
}])
|
|
236
249
|
}, T(i.value.title), 3),
|
|
237
250
|
a("div", qe, [
|
|
238
|
-
!n(m) && !J.value ? (p(),
|
|
251
|
+
!n(m) && !J.value ? (p(), b(n(I), {
|
|
239
252
|
key: 0,
|
|
240
253
|
class: f(["px-0.5 py-0 hover:bg-b-3 opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100 absolute -translate-y-1/2 right-0 aspect-square inset-y-2/4 h-fit", {
|
|
241
254
|
flex: ((o = e.menuItem.item) == null ? void 0 : o.entity.uid) === i.value.entity.uid && e.menuItem.open,
|
|
@@ -260,8 +273,8 @@ const he = { class: "flex flex-row gap-1 items-center" }, ye = { class: "relativ
|
|
|
260
273
|
})
|
|
261
274
|
]),
|
|
262
275
|
_: 1
|
|
263
|
-
}, 8, ["class"])) :
|
|
264
|
-
i.value.watchMode ? (p(),
|
|
276
|
+
}, 8, ["class"])) : v("", !0),
|
|
277
|
+
i.value.watchMode ? (p(), b(n(de), {
|
|
265
278
|
key: 1,
|
|
266
279
|
side: "right",
|
|
267
280
|
sideOffset: 12
|
|
@@ -282,13 +295,13 @@ const he = { class: "flex flex-row gap-1 items-center" }, ye = { class: "relativ
|
|
|
282
295
|
])
|
|
283
296
|
]),
|
|
284
297
|
_: 1
|
|
285
|
-
})) :
|
|
298
|
+
})) : v("", !0),
|
|
286
299
|
t[12] || (t[12] = a("span", null, " ", -1))
|
|
287
300
|
])
|
|
288
301
|
])
|
|
289
|
-
], 8, we)) :
|
|
302
|
+
], 8, we)) : v("", !0),
|
|
290
303
|
X.value ? (p(), k("ul", Me, [
|
|
291
|
-
(p(!0), k(oe, null, ue(i.value.children, (l) => (p(),
|
|
304
|
+
(p(!0), k(oe, null, ue(i.value.children, (l) => (p(), b(r, {
|
|
292
305
|
key: l,
|
|
293
306
|
isDraggable: !n(q)[l],
|
|
294
307
|
isDroppable: _,
|
|
@@ -299,7 +312,7 @@ const he = { class: "flex flex-row gap-1 items-center" }, ye = { class: "relativ
|
|
|
299
312
|
onOnDragEnd: t[5] || (t[5] = (...d) => e.$emit("onDragEnd", ...d)),
|
|
300
313
|
onOpenMenu: t[6] || (t[6] = (d) => e.$emit("openMenu", d))
|
|
301
314
|
}, null, 8, ["isDraggable", "menuItem", "parentUids", "uid"]))), 128)),
|
|
302
|
-
i.value.children.length === 0 ? (p(),
|
|
315
|
+
i.value.children.length === 0 ? (p(), b(n(I), {
|
|
303
316
|
key: 0,
|
|
304
317
|
class: f(["mb-[.5px] flex gap-1.5 h-8 text-c-1 py-0 justify-start text-xs w-full hover:bg-b-2", e.parentUids.length ? "pl-9" : ""]),
|
|
305
318
|
variant: "ghost",
|
|
@@ -314,8 +327,8 @@ const he = { class: "flex flex-row gap-1 items-center" }, ye = { class: "relativ
|
|
|
314
327
|
t[13] || (t[13] = a("span", null, "Add Request", -1))
|
|
315
328
|
]),
|
|
316
329
|
_: 1
|
|
317
|
-
}, 8, ["class"])) :
|
|
318
|
-
])) :
|
|
330
|
+
}, 8, ["class"])) : v("", !0)
|
|
331
|
+
])) : v("", !0)
|
|
319
332
|
];
|
|
320
333
|
}),
|
|
321
334
|
_: 3
|
|
@@ -2,9 +2,9 @@ import { defineComponent as L, ref as P, watch as K, onMounted as F, onBeforeUnm
|
|
|
2
2
|
import J from "../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
|
|
3
3
|
import O from "../../components/Sidebar/Actions/EditSidebarListCollection.vue.js";
|
|
4
4
|
import Q from "../../components/Sidebar/Actions/EditSidebarListElement.vue.js";
|
|
5
|
-
import {
|
|
6
|
-
import { useModal as z, ScalarDropdown as X, ScalarDropdownItem as g, ScalarIcon as v, ScalarModal as S } from "@scalar/components";
|
|
5
|
+
import { useModal as b, ScalarDropdown as X, ScalarDropdownItem as g, ScalarIcon as v, ScalarModal as z } from "@scalar/components";
|
|
7
6
|
import { useRouter as Y } from "vue-router";
|
|
7
|
+
import { PathId as S } from "../../routes.js";
|
|
8
8
|
import { useWorkspace as Z } from "../../store/store.js";
|
|
9
9
|
const ae = /* @__PURE__ */ L({
|
|
10
10
|
__name: "RequestSidebarItemMenu",
|
|
@@ -13,7 +13,7 @@ const ae = /* @__PURE__ */ L({
|
|
|
13
13
|
},
|
|
14
14
|
emits: ["closeMenu", "toggleWatchMode"],
|
|
15
15
|
setup(q, { emit: x }) {
|
|
16
|
-
const a = q, $ = x, { replace: E } = Y(), { activeWorkspace: h, activeRouterParams: C, events: B } = Z(), d =
|
|
16
|
+
const a = q, $ = x, { replace: E } = Y(), { activeWorkspace: h, activeRouterParams: C, events: B } = Z(), d = b(), I = b(), T = () => {
|
|
17
17
|
var e;
|
|
18
18
|
return B.commandPalette.emit({
|
|
19
19
|
commandName: "Add Example",
|
|
@@ -26,7 +26,7 @@ const ae = /* @__PURE__ */ L({
|
|
|
26
26
|
(m = a.menuItem.item) == null || m.edit(e, t), d.hide();
|
|
27
27
|
}, U = () => {
|
|
28
28
|
var e, t, m;
|
|
29
|
-
(e = a.menuItem.item) == null || e.delete(), C.value[
|
|
29
|
+
(e = a.menuItem.item) == null || e.delete(), C.value[S.Request] === ((t = a.menuItem.item) == null ? void 0 : t.entity.uid) && E(`/workspace/${h.value.uid}/request/default`), C.value[S.Examples] === ((m = a.menuItem.item) == null ? void 0 : m.entity.uid) && E(`/workspace/${h.value}/request/default`), I.hide();
|
|
30
30
|
}, f = P(null);
|
|
31
31
|
K([() => a.menuItem.open, f], async ([e]) => {
|
|
32
32
|
var t, m;
|
|
@@ -132,7 +132,7 @@ const ae = /* @__PURE__ */ L({
|
|
|
132
132
|
}),
|
|
133
133
|
_: 1
|
|
134
134
|
}, 8, ["targetRef"])) : M("", !0),
|
|
135
|
-
o(n(
|
|
135
|
+
o(n(z), {
|
|
136
136
|
size: "xxs",
|
|
137
137
|
state: n(I),
|
|
138
138
|
title: `Delete ${(m = e.menuItem.item) == null ? void 0 : m.resourceTitle}`
|
|
@@ -150,7 +150,7 @@ const ae = /* @__PURE__ */ L({
|
|
|
150
150
|
}),
|
|
151
151
|
_: 1
|
|
152
152
|
}, 8, ["state", "title"]),
|
|
153
|
-
o(n(
|
|
153
|
+
o(n(z), {
|
|
154
154
|
size: "xxs",
|
|
155
155
|
state: n(d),
|
|
156
156
|
title: `Edit ${(W = e.menuItem.item) == null ? void 0 : W.resourceTitle}`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestSubpageHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSubpageHeader.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestSubpageHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSubpageHeader.vue"],"names":[],"mappings":"AA+GA,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,OAAO,CAAA;CACpB,CAAC;;;;;;;;;;AAyPF,wBAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./RequestSubpageHeader.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-1e708e85"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,49 +1,54 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as y, openBlock as l, createElementBlock as a, createElementVNode as n, createVNode as s, normalizeClass as c, unref as t, createBlock as d, createCommentVNode as i } from "vue";
|
|
2
|
+
import k from "../../components/AddressBar/AddressBar.vue.js";
|
|
3
|
+
import C from "../../components/EnvironmentSelector/EnvironmentSelector.vue.js";
|
|
4
|
+
import x from "../../components/Sidebar/SidebarToggle.vue.js";
|
|
5
5
|
import { ScalarIcon as g } from "@scalar/components";
|
|
6
|
-
import
|
|
6
|
+
import V from "./components/WorkspaceDropdown.vue.js";
|
|
7
7
|
import v from "../../components/OpenApiClientButton.vue.js";
|
|
8
8
|
import { useWorkspace as w } from "../../store/store.js";
|
|
9
|
-
|
|
9
|
+
import { useLayout as h } from "../../hooks/useLayout.js";
|
|
10
|
+
const $ = { class: "lg:min-h-header flex items-center w-full justify-center p-2 pt-2 lg:pt-1 lg:p-1 flex-wrap t-app__top-container border-b-1/2" }, B = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 lg:mb-0 mb-2 lg:flex-1 w-6/12" }, R = { class: "flex flex-row items-center gap-1 lg:px-2.5 lg:mb-0 mb-2 lg:flex-1 justify-end w-6/12" }, H = /* @__PURE__ */ y({
|
|
10
11
|
__name: "RequestSubpageHeader",
|
|
11
12
|
props: {
|
|
12
13
|
modelValue: { type: Boolean },
|
|
13
14
|
isReadonly: { type: Boolean }
|
|
14
15
|
},
|
|
15
16
|
emits: ["update:modelValue", "hideModal", "importCurl"],
|
|
16
|
-
setup(
|
|
17
|
-
const { activeCollection: m } = w();
|
|
17
|
+
setup(S) {
|
|
18
|
+
const { activeCollection: m } = w(), { layout: b } = h();
|
|
18
19
|
return (o, e) => {
|
|
19
20
|
var p, u, f;
|
|
20
|
-
return l(),
|
|
21
|
-
n("div",
|
|
22
|
-
s(
|
|
23
|
-
class: "gitbook-hidden",
|
|
21
|
+
return l(), a("div", $, [
|
|
22
|
+
n("div", B, [
|
|
23
|
+
s(x, {
|
|
24
|
+
class: c(["gitbook-hidden", [
|
|
25
|
+
"xl:hidden",
|
|
26
|
+
{ "xl:!flex": !o.modelValue },
|
|
27
|
+
{ "!flex": t(b) === "modal" }
|
|
28
|
+
]]),
|
|
24
29
|
modelValue: o.modelValue,
|
|
25
30
|
"onUpdate:modelValue": e[0] || (e[0] = (r) => o.$emit("update:modelValue", r))
|
|
26
|
-
}, null, 8, ["modelValue"]),
|
|
27
|
-
o.isReadonly ? i("", !0) : (l(),
|
|
31
|
+
}, null, 8, ["class", "modelValue"]),
|
|
32
|
+
o.isReadonly ? i("", !0) : (l(), d(t(V), { key: 0 })),
|
|
28
33
|
e[4] || (e[4] = n("a", {
|
|
29
34
|
class: "text-c-2 text-sm font-medium gitbook-show ml-.5 hover:text-c-1 border p-1 rounded hover:bg-b-3",
|
|
30
35
|
href: "https://scalar.com/",
|
|
31
36
|
target: "_blank"
|
|
32
37
|
}, " Powered by Scalar.com ", -1))
|
|
33
38
|
]),
|
|
34
|
-
s(
|
|
39
|
+
s(k, {
|
|
35
40
|
onImportCurl: e[1] || (e[1] = (r) => o.$emit("importCurl", r))
|
|
36
41
|
}),
|
|
37
|
-
n("div",
|
|
38
|
-
o.isReadonly ? i("", !0) : (l(),
|
|
39
|
-
o.isReadonly && ((p = t(m)) != null && p.documentUrl) ? (l(),
|
|
42
|
+
n("div", R, [
|
|
43
|
+
o.isReadonly ? i("", !0) : (l(), d(C, { key: 0 })),
|
|
44
|
+
o.isReadonly && ((p = t(m)) != null && p.documentUrl) ? (l(), d(t(v), {
|
|
40
45
|
key: 1,
|
|
41
46
|
buttonSource: "modal",
|
|
42
47
|
class: "gitbook-hidden !w-fit lg:-mr-1",
|
|
43
48
|
integration: (u = t(m)) == null ? void 0 : u.integration,
|
|
44
49
|
url: (f = t(m)) == null ? void 0 : f.documentUrl
|
|
45
50
|
}, null, 8, ["integration", "url"])) : i("", !0),
|
|
46
|
-
o.isReadonly ? (l(),
|
|
51
|
+
o.isReadonly ? (l(), a("button", {
|
|
47
52
|
key: 2,
|
|
48
53
|
class: "app-exit-button p-2 rounded-full fixed right-2 top-2 gitbook-hidden",
|
|
49
54
|
type: "button",
|
|
@@ -56,7 +61,7 @@ const V = { class: "lg:min-h-header flex items-center w-full justify-center p-2
|
|
|
56
61
|
}),
|
|
57
62
|
e[5] || (e[5] = n("span", { class: "sr-only" }, "Close Client", -1))
|
|
58
63
|
])) : i("", !0),
|
|
59
|
-
o.isReadonly ? (l(),
|
|
64
|
+
o.isReadonly ? (l(), a("button", {
|
|
60
65
|
key: 3,
|
|
61
66
|
class: "text-c-1 hover:bg-b-2 active:text-c-1 p-2 rounded -mr-1.5 gitbook-show",
|
|
62
67
|
type: "button",
|
|
@@ -75,5 +80,5 @@ const V = { class: "lg:min-h-header flex items-center w-full justify-center p-2
|
|
|
75
80
|
}
|
|
76
81
|
});
|
|
77
82
|
export {
|
|
78
|
-
|
|
83
|
+
H as default
|
|
79
84
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBody.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ResponseBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBody.vue"],"names":[],"mappings":"AA6HA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,EAAE,CAAA;CAC9D,CAAC;;AAsMF,wBAOG"}
|
|
@@ -1,99 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import S from "./ResponseBodyDownload.vue.js";
|
|
6
|
-
import P from "./ResponseBodyInfo.vue.js";
|
|
7
|
-
import $ from "./ResponseBodyPreview.vue.js";
|
|
8
|
-
import E from "./ResponseBodyRaw.vue.js";
|
|
9
|
-
import F from "./ResponseBodyToggle.vue.js";
|
|
10
|
-
import { mediaTypes as D } from "../consts/mediaTypes.js";
|
|
11
|
-
const I = {
|
|
12
|
-
key: 0,
|
|
13
|
-
class: "mx-1 border-1/2 flex flex-col rounded bg-b-1"
|
|
14
|
-
}, J = { class: "flex justify-between items-center border-b-1/2 px-3 py-1.5" }, M = { class: "text-xxs leading-3 font-code" }, Z = /* @__PURE__ */ L({
|
|
15
|
-
__name: "ResponseBody",
|
|
16
|
-
props: {
|
|
17
|
-
title: {},
|
|
18
|
-
data: {},
|
|
19
|
-
headers: {}
|
|
20
|
-
},
|
|
21
|
-
setup(h) {
|
|
22
|
-
const a = h, B = (e) => e instanceof Blob, d = U(!0), p = n(
|
|
23
|
-
() => {
|
|
24
|
-
var e;
|
|
25
|
-
return !!((e = o.value) != null && e.raw && o.value.preview);
|
|
26
|
-
}
|
|
27
|
-
), R = n(() => d.value || !p.value), _ = n(() => !d.value || !p.value), r = n(() => {
|
|
28
|
-
var t;
|
|
29
|
-
const e = ((t = a.headers.find((l) => l.name.toLowerCase() === "content-type")) == null ? void 0 : t.value) ?? "";
|
|
30
|
-
return new N(e);
|
|
31
|
-
}), k = n(() => {
|
|
32
|
-
var t;
|
|
33
|
-
const e = ((t = a.headers.find(
|
|
34
|
-
(l) => l.name.toLowerCase() === "content-disposition"
|
|
35
|
-
)) == null ? void 0 : t.value) ?? "";
|
|
36
|
-
return T(e);
|
|
37
|
-
}), o = n(() => D[r.value.essence]), u = n(() => B(a.data) ? URL.createObjectURL(a.data) : typeof a.data == "string" ? URL.createObjectURL(
|
|
38
|
-
new Blob([a.data], { type: r.value.toString() })
|
|
39
|
-
) : a.data instanceof Object && Object.keys(a.data).length ? URL.createObjectURL(
|
|
40
|
-
new Blob([JSON.stringify(a.data)], {
|
|
41
|
-
type: r.value.toString()
|
|
42
|
-
})
|
|
43
|
-
) : "");
|
|
44
|
-
return (e, t) => (s(), i(O, null, V({
|
|
45
|
-
title: m(() => [
|
|
46
|
-
w(g(e.title), 1)
|
|
47
|
-
]),
|
|
48
|
-
default: m(() => {
|
|
49
|
-
var l, v, f, y;
|
|
50
|
-
return [
|
|
51
|
-
e.data ? (s(), j("div", I, [
|
|
52
|
-
b("div", J, [
|
|
53
|
-
b("span", M, g(r.value.essence), 1),
|
|
54
|
-
p.value ? (s(), i(F, {
|
|
55
|
-
key: 0,
|
|
56
|
-
modelValue: d.value,
|
|
57
|
-
"onUpdate:modelValue": t[0] || (t[0] = (x) => d.value = x)
|
|
58
|
-
}, null, 8, ["modelValue"])) : c("", !0)
|
|
59
|
-
]),
|
|
60
|
-
(l = o.value) != null && l.raw && _.value ? (s(), i(E, {
|
|
61
|
-
key: u.value,
|
|
62
|
-
content: e.data,
|
|
63
|
-
language: o.value.language
|
|
64
|
-
}, null, 8, ["content", "language"])) : c("", !0),
|
|
65
|
-
(v = o.value) != null && v.preview && R.value ? (s(), i($, {
|
|
66
|
-
key: u.value,
|
|
67
|
-
alpha: o.value.alpha,
|
|
68
|
-
mode: o.value.preview,
|
|
69
|
-
src: u.value,
|
|
70
|
-
type: r.value.essence
|
|
71
|
-
}, null, 8, ["alpha", "mode", "src", "type"])) : c("", !0),
|
|
72
|
-
!((f = o.value) != null && f.raw) && !((y = o.value) != null && y.preview) ? (s(), i(P, { key: 2 }, {
|
|
73
|
-
default: m(() => t[1] || (t[1] = [
|
|
74
|
-
w(" Binary file ")
|
|
75
|
-
])),
|
|
76
|
-
_: 1
|
|
77
|
-
})) : c("", !0)
|
|
78
|
-
])) : c("", !0)
|
|
79
|
-
];
|
|
80
|
-
}),
|
|
81
|
-
_: 2
|
|
82
|
-
}, [
|
|
83
|
-
e.data && u.value ? {
|
|
84
|
-
name: "actions",
|
|
85
|
-
fn: m(() => [
|
|
86
|
-
C(S, {
|
|
87
|
-
filename: k.value,
|
|
88
|
-
href: u.value,
|
|
89
|
-
type: r.value.essence
|
|
90
|
-
}, null, 8, ["filename", "href", "type"])
|
|
91
|
-
]),
|
|
92
|
-
key: "0"
|
|
93
|
-
} : void 0
|
|
94
|
-
]), 1024));
|
|
95
|
-
}
|
|
96
|
-
});
|
|
1
|
+
import o from "./ResponseBody.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-cb6b7a57"]]);
|
|
97
5
|
export {
|
|
98
|
-
|
|
6
|
+
a as default
|
|
99
7
|
};
|
|
@@ -1,4 +1,99 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as L, ref as U, computed as n, openBlock as s, createBlock as u, createSlots as V, withCtx as m, createTextVNode as w, toDisplayString as g, createElementBlock as j, createElementVNode as h, createCommentVNode as c, createVNode as C } from "vue";
|
|
2
|
+
import O from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
3
|
+
import { extractFilename as T } from "../../../libs/extractAttachmentFilename.js";
|
|
4
|
+
import N from "whatwg-mimetype";
|
|
5
|
+
import S from "./ResponseBodyDownload.vue.js";
|
|
6
|
+
import P from "./ResponseBodyInfo.vue.js";
|
|
7
|
+
import $ from "./ResponseBodyPreview.vue.js";
|
|
8
|
+
import E from "./ResponseBodyRaw.vue.js";
|
|
9
|
+
import F from "./ResponseBodyToggle.vue.js";
|
|
10
|
+
import { mediaTypes as D } from "../consts/mediaTypes.js";
|
|
11
|
+
const I = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "max-h-[calc(100%-32px)] border-1/2 flex flex-col rounded bg-b-1 overflow-hidden"
|
|
14
|
+
}, J = { class: "flex justify-between items-center border-b-1/2 px-3 py-1.5" }, M = { class: "text-xxs leading-3 font-code" }, Z = /* @__PURE__ */ L({
|
|
15
|
+
__name: "ResponseBody",
|
|
16
|
+
props: {
|
|
17
|
+
title: {},
|
|
18
|
+
data: {},
|
|
19
|
+
headers: {}
|
|
20
|
+
},
|
|
21
|
+
setup(b) {
|
|
22
|
+
const a = b, x = (e) => e instanceof Blob, d = U(!0), p = n(
|
|
23
|
+
() => {
|
|
24
|
+
var e;
|
|
25
|
+
return !!((e = o.value) != null && e.raw && o.value.preview);
|
|
26
|
+
}
|
|
27
|
+
), B = n(() => d.value || !p.value), R = n(() => !d.value || !p.value), r = n(() => {
|
|
28
|
+
var t;
|
|
29
|
+
const e = ((t = a.headers.find((l) => l.name.toLowerCase() === "content-type")) == null ? void 0 : t.value) ?? "";
|
|
30
|
+
return new N(e);
|
|
31
|
+
}), _ = n(() => {
|
|
32
|
+
var t;
|
|
33
|
+
const e = ((t = a.headers.find(
|
|
34
|
+
(l) => l.name.toLowerCase() === "content-disposition"
|
|
35
|
+
)) == null ? void 0 : t.value) ?? "";
|
|
36
|
+
return T(e);
|
|
37
|
+
}), o = n(() => D[r.value.essence]), i = n(() => x(a.data) ? URL.createObjectURL(a.data) : typeof a.data == "string" ? URL.createObjectURL(
|
|
38
|
+
new Blob([a.data], { type: r.value.toString() })
|
|
39
|
+
) : a.data instanceof Object && Object.keys(a.data).length ? URL.createObjectURL(
|
|
40
|
+
new Blob([JSON.stringify(a.data)], {
|
|
41
|
+
type: r.value.toString()
|
|
42
|
+
})
|
|
43
|
+
) : "");
|
|
44
|
+
return (e, t) => (s(), u(O, { class: "max-h-content overflow-x-auto" }, V({
|
|
45
|
+
title: m(() => [
|
|
46
|
+
w(g(e.title), 1)
|
|
47
|
+
]),
|
|
48
|
+
default: m(() => {
|
|
49
|
+
var l, v, f, y;
|
|
50
|
+
return [
|
|
51
|
+
e.data ? (s(), j("div", I, [
|
|
52
|
+
h("div", J, [
|
|
53
|
+
h("span", M, g(r.value.essence), 1),
|
|
54
|
+
p.value ? (s(), u(F, {
|
|
55
|
+
key: 0,
|
|
56
|
+
modelValue: d.value,
|
|
57
|
+
"onUpdate:modelValue": t[0] || (t[0] = (k) => d.value = k)
|
|
58
|
+
}, null, 8, ["modelValue"])) : c("", !0)
|
|
59
|
+
]),
|
|
60
|
+
(l = o.value) != null && l.raw && R.value ? (s(), u(E, {
|
|
61
|
+
key: i.value,
|
|
62
|
+
content: e.data,
|
|
63
|
+
language: o.value.language
|
|
64
|
+
}, null, 8, ["content", "language"])) : c("", !0),
|
|
65
|
+
(v = o.value) != null && v.preview && B.value ? (s(), u($, {
|
|
66
|
+
key: i.value,
|
|
67
|
+
alpha: o.value.alpha,
|
|
68
|
+
mode: o.value.preview,
|
|
69
|
+
src: i.value,
|
|
70
|
+
type: r.value.essence
|
|
71
|
+
}, null, 8, ["alpha", "mode", "src", "type"])) : c("", !0),
|
|
72
|
+
!((f = o.value) != null && f.raw) && !((y = o.value) != null && y.preview) ? (s(), u(P, { key: 2 }, {
|
|
73
|
+
default: m(() => t[1] || (t[1] = [
|
|
74
|
+
w(" Binary file ")
|
|
75
|
+
])),
|
|
76
|
+
_: 1
|
|
77
|
+
})) : c("", !0)
|
|
78
|
+
])) : c("", !0)
|
|
79
|
+
];
|
|
80
|
+
}),
|
|
81
|
+
_: 2
|
|
82
|
+
}, [
|
|
83
|
+
e.data && i.value ? {
|
|
84
|
+
name: "actions",
|
|
85
|
+
fn: m(() => [
|
|
86
|
+
C(S, {
|
|
87
|
+
filename: _.value,
|
|
88
|
+
href: i.value,
|
|
89
|
+
type: r.value.essence
|
|
90
|
+
}, null, 8, ["filename", "href", "type"])
|
|
91
|
+
]),
|
|
92
|
+
key: "0"
|
|
93
|
+
} : void 0
|
|
94
|
+
]), 1024));
|
|
95
|
+
}
|
|
96
|
+
});
|
|
2
97
|
export {
|
|
3
|
-
|
|
98
|
+
Z as default
|
|
4
99
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseBodyVirtual.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBodyVirtual.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ResponseBodyVirtual.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBodyVirtual.vue"],"names":[],"mappings":"AA6CA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAA;CAChB,CAAC;;AAwFF,wBAOG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as s, computed as l, openBlock as a, createBlock as i, withCtx as t, createTextVNode as
|
|
2
|
-
import
|
|
3
|
-
import { ScalarVirtualText as
|
|
1
|
+
import { defineComponent as s, computed as l, openBlock as a, createBlock as i, withCtx as t, createTextVNode as c, createElementVNode as d, createVNode as m, unref as p } from "vue";
|
|
2
|
+
import x from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
3
|
+
import { ScalarVirtualText as u } from "@scalar/components";
|
|
4
4
|
import { formatJsonOrYamlString as f } from "@scalar/oas-utils/helpers";
|
|
5
5
|
const V = /* @__PURE__ */ s({
|
|
6
6
|
__name: "ResponseBodyVirtual",
|
|
@@ -9,14 +9,14 @@ const V = /* @__PURE__ */ s({
|
|
|
9
9
|
},
|
|
10
10
|
setup(o) {
|
|
11
11
|
const r = o, n = l(() => f(r.content));
|
|
12
|
-
return (b, e) => (a(), i(
|
|
12
|
+
return (b, e) => (a(), i(x, { class: "!max-h-[calc(100%-32px)] response-body-virtual" }, {
|
|
13
13
|
title: t(() => e[0] || (e[0] = [
|
|
14
|
-
|
|
14
|
+
c("Body")
|
|
15
15
|
])),
|
|
16
16
|
default: t(() => [
|
|
17
|
-
e[1] || (e[1] =
|
|
18
|
-
p(
|
|
19
|
-
containerClass: "custom-scroll scalar-code-block border-1/2 rounded-b flex flex-1",
|
|
17
|
+
e[1] || (e[1] = d("div", { class: "mx-1 py-1.5 px-2.5 font-code text-xxs border-1/2 rounded-t border-b-0" }, " This response body is massive! Syntax highlighting won’t work here. ", -1)),
|
|
18
|
+
m(p(u), {
|
|
19
|
+
containerClass: "custom-scroll scalar-code-block border-1/2 rounded-b flex flex-1 mx-1",
|
|
20
20
|
contentClass: "hljs language-plaintext",
|
|
21
21
|
lineHeight: 20,
|
|
22
22
|
text: n.value
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseCookies.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseCookies.vue"],"names":[],"mappings":"AA2CA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,EAAE,CAAA;CAC9D,CAAC;;
|
|
1
|
+
{"version":3,"file":"ResponseCookies.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseCookies.vue"],"names":[],"mappings":"AA2CA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,EAAE,CAAA;CAC9D,CAAC;;AAoHF,wBAOG"}
|
|
@@ -5,7 +5,7 @@ import m from "../../../components/DataTable/DataTableText.vue.js";
|
|
|
5
5
|
import k from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
6
6
|
const x = {
|
|
7
7
|
key: 1,
|
|
8
|
-
class: "text-c-3 px-4 text-sm border border-1/2 rounded min-h-12 justify-center flex items-center bg-b-1
|
|
8
|
+
class: "text-c-3 px-4 text-sm border border-1/2 rounded min-h-12 justify-center flex items-center bg-b-1"
|
|
9
9
|
}, N = /* @__PURE__ */ f({
|
|
10
10
|
__name: "ResponseCookies",
|
|
11
11
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseEmpty.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseEmpty.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ResponseEmpty.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseEmpty.vue"],"names":[],"mappings":";AA4PA,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ResponseEmpty.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0fc4c4e0"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|