@scalar/api-client 2.3.14 → 2.3.16
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 +16 -0
- package/dist/components/DataTable/DataTable.vue.d.ts +2 -0
- package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.vue.js +17 -15
- package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCell.vue.js +6 -9
- package/dist/components/ImportCollection/ImportCollectionListener.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionListener.vue.js +68 -23
- package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +41 -54
- package/dist/components/ImportCollection/utils/import-collection.d.ts +12 -0
- package/dist/components/ImportCollection/utils/import-collection.d.ts.map +1 -0
- package/dist/components/ImportCollection/utils/import-collection.js +29 -0
- package/dist/components/ImportCollection/utils/workspace-store-is-empty.d.ts +6 -0
- package/dist/components/ImportCollection/utils/workspace-store-is-empty.d.ts.map +1 -0
- package/dist/components/ImportCollection/utils/workspace-store-is-empty.js +7 -0
- package/dist/components/ScalarAsciiArt.vue.d.ts.map +1 -1
- package/dist/components/ScalarAsciiArt.vue.js +1 -1
- package/dist/components/ScalarAsciiArt.vue2.js +11 -8
- package/dist/components/ScalarHotkey.test.d.ts +2 -0
- package/dist/components/ScalarHotkey.test.d.ts.map +1 -0
- package/dist/components/ScalarHotkey.vue.d.ts.map +1 -1
- package/dist/components/ScalarHotkey.vue.js +34 -11
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +2 -2
- package/dist/views/Request/Request.vue2.js +39 -36
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +3 -3
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +2 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +4 -1
- 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 +4 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +1 -0
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +19 -16
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +67 -64
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +1 -0
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +123 -126
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +1 -1
- package/dist/views/Request/RequestSidebar.vue2.js +72 -69
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +53 -35
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts +5 -0
- 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 +56 -59
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +53 -35
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +5 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +40 -34
- package/package.json +7 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestSidebar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-762394bf"]]);
|
|
5
5
|
export {
|
|
6
6
|
f as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
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, openBlock as
|
|
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, openBlock as r, createElementBlock as b, Fragment as $, withDirectives as K, createVNode as p, unref as t, normalizeClass as g, createSlots as we, withCtx as d, createElementVNode as n, createBlock as u, createCommentVNode as v, toDisplayString as B, isRef as Ie, withKeys as q, withModifiers as S, vShow as U, renderList as G, createTextVNode as M, nextTick as Ce } from "vue";
|
|
2
2
|
import { ScalarIcon as P, ScalarSearchInput as De, ScalarSearchResultList as $e, ScalarSearchResultItem as qe, ScalarButton as Me } from "@scalar/components";
|
|
3
3
|
import { LibraryIcon as Pe } from "@scalar/icons";
|
|
4
4
|
import { useToasts as Te } from "@scalar/use-toasts";
|
|
@@ -31,7 +31,10 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
31
31
|
}, ot = {
|
|
32
32
|
key: 1,
|
|
33
33
|
class: "contents"
|
|
34
|
-
}, st = {
|
|
34
|
+
}, st = {
|
|
35
|
+
key: 0,
|
|
36
|
+
class: "empty-sidebar-item-content px-2.5 py-2.5"
|
|
37
|
+
}, at = { class: "rabbit-ascii relative m-auto mt-2 h-[68px] w-[60px]" }, Mt = /* @__PURE__ */ ge({
|
|
35
38
|
__name: "RequestSidebar",
|
|
36
39
|
emits: ["newTab", "clearDrafts"],
|
|
37
40
|
setup(rt, { emit: Q }) {
|
|
@@ -46,14 +49,14 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
46
49
|
activeRequest: te,
|
|
47
50
|
activeWorkspaceRequests: E,
|
|
48
51
|
activeWorkspace: oe
|
|
49
|
-
} = Ae(), { findRequestParents: se, events: R, requestMutators: L, requests:
|
|
52
|
+
} = Ae(), { findRequestParents: se, events: R, requestMutators: L, requests: x } = _, { handleDragEnd: ae, isDroppable: re } = Ke(
|
|
50
53
|
oe,
|
|
51
54
|
_
|
|
52
55
|
), { replace: N } = _e(), le = () => {
|
|
53
56
|
R.commandPalette.emit({
|
|
54
57
|
commandName: "Import from OpenAPI/Swagger/Postman/cURL"
|
|
55
58
|
});
|
|
56
|
-
}, O = Se(), { toast: ne } = Te(),
|
|
59
|
+
}, O = Se(), { toast: ne } = Te(), k = ke({ open: !1 }), m = Re(!1);
|
|
57
60
|
H(
|
|
58
61
|
te,
|
|
59
62
|
(s) => {
|
|
@@ -64,18 +67,18 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
64
67
|
{ immediate: !0 }
|
|
65
68
|
);
|
|
66
69
|
const {
|
|
67
|
-
searchText:
|
|
68
|
-
searchResultsWithPlaceholderResults:
|
|
69
|
-
selectedSearchResult:
|
|
70
|
+
searchText: h,
|
|
71
|
+
searchResultsWithPlaceholderResults: w,
|
|
72
|
+
selectedSearchResult: I,
|
|
70
73
|
onSearchResultClick: ie,
|
|
71
74
|
fuseSearch: ue,
|
|
72
|
-
searchInputRef:
|
|
75
|
+
searchInputRef: C,
|
|
73
76
|
searchResultRefs: ce,
|
|
74
77
|
navigateSearchResults: z,
|
|
75
78
|
selectSearchResult: de
|
|
76
79
|
} = Oe(), F = (s) => {
|
|
77
80
|
var e;
|
|
78
|
-
s && (s.toggleSidebar && ee(), s.focusRequestSearch && ((e =
|
|
81
|
+
s && (s.toggleSidebar && ee(), s.focusRequestSearch && ((e = C.value) == null || e.focus()));
|
|
79
82
|
};
|
|
80
83
|
ye(() => R.hotKeys.on(F)), xe(() => {
|
|
81
84
|
R.hotKeys.off(F);
|
|
@@ -95,8 +98,8 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
95
98
|
),
|
|
96
99
|
(s, e) => {
|
|
97
100
|
s.forEach((o, a) => {
|
|
98
|
-
var
|
|
99
|
-
if (i !== "modal" && o !== e[a] && ((f = (
|
|
101
|
+
var l, f, W;
|
|
102
|
+
if (i !== "modal" && o !== e[a] && ((f = (l = c.value[a]) == null ? void 0 : l.info) == null ? void 0 : f.title) !== "Drafts" && c.value[a]) {
|
|
100
103
|
const A = c.value[a];
|
|
101
104
|
if (!A)
|
|
102
105
|
return;
|
|
@@ -108,14 +111,14 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
108
111
|
);
|
|
109
112
|
const fe = D(() => {
|
|
110
113
|
var f;
|
|
111
|
-
const s =
|
|
114
|
+
const s = w.value;
|
|
112
115
|
if (!s.length)
|
|
113
116
|
return "No results found";
|
|
114
|
-
const e = (f = s[
|
|
117
|
+
const e = (f = s[I.value]) == null ? void 0 : f.item;
|
|
115
118
|
if (!e)
|
|
116
119
|
return "No result selected";
|
|
117
|
-
const o =
|
|
118
|
-
return `${o}Selected: ${
|
|
120
|
+
const o = h.value.length ? `${s.length} result${s.length === 1 ? "" : "s"} found, ` : "", a = `, HTTP Method ${e.httpVerb}, Path ${e.path}`, l = `${e.title} ${a}`;
|
|
121
|
+
return `${o}Selected: ${l}`;
|
|
119
122
|
}), pe = () => {
|
|
120
123
|
const s = c.value.find(
|
|
121
124
|
(o) => {
|
|
@@ -124,7 +127,7 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
124
127
|
}
|
|
125
128
|
);
|
|
126
129
|
if (s && s.requests.forEach((o) => {
|
|
127
|
-
|
|
130
|
+
x[o] && L.delete(x[o], s.uid);
|
|
128
131
|
}), E.value.length) {
|
|
129
132
|
const o = c.value[0], a = o == null ? void 0 : o.requests[0];
|
|
130
133
|
a && N({
|
|
@@ -143,29 +146,29 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
143
146
|
}));
|
|
144
147
|
}
|
|
145
148
|
}, ve = () => {
|
|
146
|
-
m.value = !m.value, m.value || (
|
|
149
|
+
m.value = !m.value, m.value || (h.value = ""), m.value && Ce(() => {
|
|
147
150
|
var s;
|
|
148
|
-
return (s =
|
|
151
|
+
return (s = C.value) == null ? void 0 : s.focus();
|
|
149
152
|
});
|
|
150
|
-
},
|
|
153
|
+
}, y = D(
|
|
151
154
|
() => Ue(
|
|
152
155
|
c.value,
|
|
153
156
|
E.value,
|
|
154
|
-
|
|
157
|
+
x
|
|
155
158
|
)
|
|
156
159
|
), he = D(() => i === "modal" && V.value ? [V.value] : c.value);
|
|
157
|
-
return (s, e) => (
|
|
160
|
+
return (s, e) => (r(), b($, null, [
|
|
158
161
|
K(p(t(je), {
|
|
159
|
-
class:
|
|
162
|
+
class: g([t(T) ? "sidebar-active-width" : ""])
|
|
160
163
|
}, we({
|
|
161
164
|
content: d(() => [
|
|
162
165
|
n("div", Xe, [
|
|
163
166
|
n("div", {
|
|
164
|
-
class:
|
|
167
|
+
class: g(["size-8", { "xl:hidden": t(i) !== "modal" }])
|
|
165
168
|
}, null, 2),
|
|
166
|
-
t(i) !== "modal" ? (
|
|
167
|
-
t(i) !== "modal" ? (
|
|
168
|
-
t(i) !== "modal" ? (
|
|
169
|
+
t(i) !== "modal" ? (r(), u(t(Je), { key: 0 })) : v("", !0),
|
|
170
|
+
t(i) !== "modal" ? (r(), b("span", Ye, " / ")) : v("", !0),
|
|
171
|
+
t(i) !== "modal" ? (r(), u(Le, { key: 2 })) : v("", !0),
|
|
169
172
|
n("button", {
|
|
170
173
|
"aria-pressed": m.value,
|
|
171
174
|
class: "ml-auto",
|
|
@@ -182,54 +185,54 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
182
185
|
K(n("div", tt, [
|
|
183
186
|
p(t(De), {
|
|
184
187
|
ref_key: "searchInputRef",
|
|
185
|
-
ref:
|
|
186
|
-
modelValue: t(
|
|
187
|
-
"onUpdate:modelValue": e[0] || (e[0] = (o) => Ie(
|
|
188
|
+
ref: C,
|
|
189
|
+
modelValue: t(h),
|
|
190
|
+
"onUpdate:modelValue": e[0] || (e[0] = (o) => Ie(h) ? h.value = o : null),
|
|
188
191
|
"aria-controls": t(O),
|
|
189
192
|
label: fe.value,
|
|
190
193
|
sidebar: "",
|
|
191
194
|
onInput: t(ue),
|
|
192
195
|
onKeydown: [
|
|
193
|
-
e[1] || (e[1] = q(
|
|
194
|
-
e[2] || (e[2] = q(
|
|
195
|
-
e[3] || (e[3] = q(
|
|
196
|
+
e[1] || (e[1] = q(S((o) => t(z)("down"), ["stop"]), ["down"])),
|
|
197
|
+
e[2] || (e[2] = q(S((o) => t(de)(), ["stop"]), ["enter"])),
|
|
198
|
+
e[3] || (e[3] = q(S((o) => t(z)("up"), ["stop"]), ["up"]))
|
|
196
199
|
]
|
|
197
200
|
}, null, 8, ["modelValue", "aria-controls", "label", "onInput"])
|
|
198
201
|
], 512), [
|
|
199
202
|
[U, m.value]
|
|
200
203
|
]),
|
|
201
204
|
n("div", {
|
|
202
|
-
class:
|
|
205
|
+
class: g(["gap-1/2 flex flex-1 flex-col overflow-visible overflow-y-auto px-3 pb-3 pt-0", [
|
|
203
206
|
{
|
|
204
207
|
"pb-14": t(i) !== "modal"
|
|
205
208
|
},
|
|
206
209
|
{
|
|
207
|
-
"h-[calc(100%-273.5px)]":
|
|
210
|
+
"h-[calc(100%-273.5px)]": y.value
|
|
208
211
|
}
|
|
209
212
|
]]),
|
|
210
|
-
onDragenter: e[6] || (e[6] =
|
|
213
|
+
onDragenter: e[6] || (e[6] = S(() => {
|
|
211
214
|
}, ["prevent"])),
|
|
212
|
-
onDragover: e[7] || (e[7] =
|
|
215
|
+
onDragover: e[7] || (e[7] = S(() => {
|
|
213
216
|
}, ["prevent"]))
|
|
214
217
|
}, [
|
|
215
|
-
t(
|
|
218
|
+
t(h) ? (r(), u(t($e), {
|
|
216
219
|
key: 0,
|
|
217
220
|
id: t(O),
|
|
218
221
|
"aria-label": "Search Results",
|
|
219
222
|
class: "gap-px",
|
|
220
|
-
noResults: !t(
|
|
223
|
+
noResults: !t(w).length
|
|
221
224
|
}, {
|
|
222
225
|
default: d(() => [
|
|
223
|
-
(
|
|
226
|
+
(r(!0), b($, null, G(t(w), (o, a) => (r(), u(t(qe), {
|
|
224
227
|
id: `#search-input-${o.item.id}`,
|
|
225
228
|
key: o.refIndex,
|
|
226
229
|
ref_for: !0,
|
|
227
|
-
ref: (
|
|
228
|
-
active: t(
|
|
230
|
+
ref: (l) => t(ce)[a] = l,
|
|
231
|
+
active: t(I) === a,
|
|
229
232
|
class: "px-2",
|
|
230
233
|
href: o.item.link,
|
|
231
|
-
onClick:
|
|
232
|
-
onFocus: (
|
|
234
|
+
onClick: S((l) => t(ie)(o), ["prevent"]),
|
|
235
|
+
onFocus: (l) => I.value = a
|
|
233
236
|
}, {
|
|
234
237
|
addon: d(() => [
|
|
235
238
|
e[9] || (e[9] = n("span", { class: "sr-only" }, "HTTP Method:", -1)),
|
|
@@ -245,35 +248,35 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
245
248
|
}, 1032, ["id", "active", "href", "onClick", "onFocus"]))), 128))
|
|
246
249
|
]),
|
|
247
250
|
_: 1
|
|
248
|
-
}, 8, ["id", "noResults"])) : (
|
|
249
|
-
(
|
|
251
|
+
}, 8, ["id", "noResults"])) : (r(), b("nav", ot, [
|
|
252
|
+
(r(!0), b($, null, G(he.value, (o) => {
|
|
250
253
|
var a;
|
|
251
|
-
return
|
|
254
|
+
return r(), u(Ge, {
|
|
252
255
|
key: o.uid,
|
|
253
256
|
isDraggable: t(i) !== "modal" && ((a = o.info) == null ? void 0 : a.title) !== "Drafts",
|
|
254
257
|
isDroppable: t(re),
|
|
255
|
-
menuItem:
|
|
258
|
+
menuItem: k,
|
|
256
259
|
parentUids: [],
|
|
257
260
|
uid: o.uid,
|
|
258
|
-
onNewTab: e[4] || (e[4] = (
|
|
261
|
+
onNewTab: e[4] || (e[4] = (l, f) => X("newTab", { name: l, uid: f })),
|
|
259
262
|
onOnDragEnd: t(ae),
|
|
260
|
-
onOpenMenu: e[5] || (e[5] = (
|
|
263
|
+
onOpenMenu: e[5] || (e[5] = (l) => Object.assign(k, l))
|
|
261
264
|
}, {
|
|
262
265
|
leftIcon: d(() => {
|
|
263
|
-
var
|
|
266
|
+
var l;
|
|
264
267
|
return [
|
|
265
|
-
((
|
|
268
|
+
((l = o.info) == null ? void 0 : l.title) === "Drafts" ? (r(), u(t(P), {
|
|
266
269
|
key: 0,
|
|
267
270
|
class: "text-sidebar-c-2 group-hover:hidden",
|
|
268
271
|
icon: "Scribble",
|
|
269
272
|
thickness: "2.25"
|
|
270
|
-
})) : (
|
|
273
|
+
})) : (r(), u(t(Pe), {
|
|
271
274
|
key: 1,
|
|
272
275
|
class: "text-sidebar-c-2 size-3.5 min-w-3.5 stroke-2 group-hover:hidden",
|
|
273
276
|
src: o["x-scalar-icon"] || "interface-content-folder"
|
|
274
277
|
}, null, 8, ["src"])),
|
|
275
278
|
n("div", {
|
|
276
|
-
class:
|
|
279
|
+
class: g({
|
|
277
280
|
"rotate-90": t(Y)[o.uid]
|
|
278
281
|
})
|
|
279
282
|
}, [
|
|
@@ -293,11 +296,11 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
293
296
|
]),
|
|
294
297
|
button: d(() => [
|
|
295
298
|
n("div", {
|
|
296
|
-
class:
|
|
297
|
-
"empty-sidebar-item":
|
|
299
|
+
class: g({
|
|
300
|
+
"empty-sidebar-item": y.value
|
|
298
301
|
})
|
|
299
302
|
}, [
|
|
300
|
-
|
|
303
|
+
y.value ? (r(), b("div", st, [
|
|
301
304
|
n("div", at, [
|
|
302
305
|
p(j, {
|
|
303
306
|
art: t(Ve),
|
|
@@ -312,11 +315,11 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
312
315
|
n("b", { class: "font-medium" }, "Let's Get Started"),
|
|
313
316
|
n("p", { class: "mt-2" }, " Create request, folder, collection or import from OpenAPI/Postman ")
|
|
314
317
|
], -1))
|
|
315
|
-
]),
|
|
316
|
-
t(i) !== "modal" ? (
|
|
317
|
-
key:
|
|
318
|
-
class:
|
|
319
|
-
"flex opacity-100":
|
|
318
|
+
])) : v("", !0),
|
|
319
|
+
t(i) !== "modal" ? (r(), u(t(Me), {
|
|
320
|
+
key: 1,
|
|
321
|
+
class: g(["mb-1.5 hidden h-fit w-full p-1.5 opacity-0", {
|
|
322
|
+
"flex opacity-100": y.value
|
|
320
323
|
}]),
|
|
321
324
|
onClick: le
|
|
322
325
|
}, {
|
|
@@ -324,9 +327,9 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
324
327
|
M(" Import Collection ")
|
|
325
328
|
])),
|
|
326
329
|
_: 1
|
|
327
|
-
}, 8, ["class"])) :
|
|
328
|
-
t(i) !== "modal" ? (
|
|
329
|
-
key:
|
|
330
|
+
}, 8, ["class"])) : v("", !0),
|
|
331
|
+
t(i) !== "modal" ? (r(), u(ze, {
|
|
332
|
+
key: 2,
|
|
330
333
|
click: t(R).commandPalette.emit,
|
|
331
334
|
hotkey: "K"
|
|
332
335
|
}, {
|
|
@@ -334,7 +337,7 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
334
337
|
M(" Add Item ")
|
|
335
338
|
])),
|
|
336
339
|
_: 1
|
|
337
|
-
}, 8, ["click"])) :
|
|
340
|
+
}, 8, ["click"])) : v("", !0)
|
|
338
341
|
], 2)
|
|
339
342
|
]),
|
|
340
343
|
_: 2
|
|
@@ -347,13 +350,13 @@ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye
|
|
|
347
350
|
]), 1032, ["class"]), [
|
|
348
351
|
[U, t(T)]
|
|
349
352
|
]),
|
|
350
|
-
t(i) !== "modal" &&
|
|
353
|
+
t(i) !== "modal" && k ? (r(), u(Be, {
|
|
351
354
|
key: 0,
|
|
352
|
-
menuItem:
|
|
355
|
+
menuItem: k,
|
|
353
356
|
onClearDrafts: pe,
|
|
354
|
-
onCloseMenu: e[8] || (e[8] = (o) =>
|
|
357
|
+
onCloseMenu: e[8] || (e[8] = (o) => k.open = !1),
|
|
355
358
|
onToggleWatchMode: me
|
|
356
|
-
}, null, 8, ["menuItem"])) :
|
|
359
|
+
}, null, 8, ["menuItem"])) : v("", !0)
|
|
357
360
|
], 64));
|
|
358
361
|
}
|
|
359
362
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestHeaders.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/RequestHeaders.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestHeaders.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/RequestHeaders.vue"],"names":[],"mappings":"AAgFA,KAAK,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAA;AAEhE,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB,CAAC;;AAiLF,wBAOG"}
|
|
@@ -1,68 +1,86 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { defineComponent as y, openBlock as r, createBlock as f, withCtx as e, createTextVNode as n, createElementBlock as l, createVNode as a, unref as u, Fragment as i, renderList as b, toDisplayString as c } from "vue";
|
|
2
|
+
import g from "../../../components/DataTable/DataTable.vue.js";
|
|
3
|
+
import p from "../../../components/DataTable/DataTableRow.vue.js";
|
|
4
|
+
import _ from "../../../components/DataTable/DataTableText.vue.js";
|
|
5
|
+
import k from "../../../components/HelpfulLink.vue.js";
|
|
6
6
|
import w from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
7
|
-
import { httpHeaders as
|
|
8
|
-
|
|
7
|
+
import { httpHeaders as h } from "../../../data/httpHeaders.js";
|
|
8
|
+
import x from "../../../components/DataTable/DataTableHeader.vue.js";
|
|
9
|
+
const H = {
|
|
9
10
|
key: 0,
|
|
10
11
|
class: "max-h-[calc(100%-32px)] overflow-y-auto border-t"
|
|
11
|
-
},
|
|
12
|
+
}, C = {
|
|
12
13
|
key: 1,
|
|
13
14
|
class: "text-c-3 bg-b-1 flex min-h-12 items-center justify-center rounded border px-4 text-sm"
|
|
14
|
-
},
|
|
15
|
+
}, D = /* @__PURE__ */ y({
|
|
15
16
|
__name: "RequestHeaders",
|
|
16
17
|
props: {
|
|
17
18
|
headers: {}
|
|
18
19
|
},
|
|
19
|
-
setup(
|
|
20
|
-
const
|
|
21
|
-
(
|
|
20
|
+
setup(v) {
|
|
21
|
+
const m = (s) => h.find(
|
|
22
|
+
(t) => t.name.toLowerCase() === s.toLowerCase()
|
|
22
23
|
);
|
|
23
|
-
return (
|
|
24
|
+
return (s, t) => (r(), f(w, {
|
|
24
25
|
class: "overflow-auto",
|
|
25
26
|
defaultOpen: !1,
|
|
26
|
-
itemCount:
|
|
27
|
+
itemCount: s.headers.length
|
|
27
28
|
}, {
|
|
28
|
-
title:
|
|
29
|
-
|
|
29
|
+
title: e(() => t[0] || (t[0] = [
|
|
30
|
+
n("Request Headers")
|
|
30
31
|
])),
|
|
31
|
-
default:
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
default: e(() => [
|
|
33
|
+
s.headers.length ? (r(), l("div", H, [
|
|
34
|
+
a(g, {
|
|
34
35
|
columns: ["minmax(auto, min-content)", "minmax(50%, 1fr)"],
|
|
35
36
|
scroll: ""
|
|
36
37
|
}, {
|
|
37
|
-
default:
|
|
38
|
-
(
|
|
39
|
-
|
|
38
|
+
default: e(() => [
|
|
39
|
+
a(p, { class: "sr-only !block" }, {
|
|
40
|
+
default: e(() => [
|
|
41
|
+
a(u(x), null, {
|
|
42
|
+
default: e(() => t[1] || (t[1] = [
|
|
43
|
+
n("Header Key")
|
|
44
|
+
])),
|
|
45
|
+
_: 1
|
|
46
|
+
}),
|
|
47
|
+
a(u(x), null, {
|
|
48
|
+
default: e(() => t[2] || (t[2] = [
|
|
49
|
+
n("Header Value")
|
|
50
|
+
])),
|
|
51
|
+
_: 1
|
|
52
|
+
})
|
|
53
|
+
]),
|
|
54
|
+
_: 1
|
|
55
|
+
}),
|
|
56
|
+
(r(!0), l(i, null, b(s.headers, (o) => (r(), f(p, {
|
|
57
|
+
key: o.name,
|
|
40
58
|
class: "group/row text-c-1"
|
|
41
59
|
}, {
|
|
42
|
-
default:
|
|
43
|
-
|
|
44
|
-
default:
|
|
60
|
+
default: e(() => [
|
|
61
|
+
a(_, { class: "z-1 bg-b-1 sticky left-0 max-w-48 group-first/row:border-t-0" }, {
|
|
62
|
+
default: e(() => {
|
|
45
63
|
var d;
|
|
46
64
|
return [
|
|
47
|
-
typeof ((d =
|
|
65
|
+
typeof ((d = m(o.name)) == null ? void 0 : d.url) == "string" ? (r(), f(k, {
|
|
48
66
|
key: 0,
|
|
49
67
|
class: "decoration-c-3",
|
|
50
|
-
href:
|
|
68
|
+
href: m(o.name).url
|
|
51
69
|
}, {
|
|
52
|
-
default:
|
|
53
|
-
|
|
70
|
+
default: e(() => [
|
|
71
|
+
n(c(o.name), 1)
|
|
54
72
|
]),
|
|
55
73
|
_: 2
|
|
56
|
-
}, 1032, ["href"])) : (
|
|
57
|
-
|
|
74
|
+
}, 1032, ["href"])) : (r(), l(i, { key: 1 }, [
|
|
75
|
+
n(c(o.name), 1)
|
|
58
76
|
], 64))
|
|
59
77
|
];
|
|
60
78
|
}),
|
|
61
79
|
_: 2
|
|
62
80
|
}, 1024),
|
|
63
|
-
|
|
81
|
+
a(_, {
|
|
64
82
|
class: "z-0 group-first/row:border-t-0",
|
|
65
|
-
text:
|
|
83
|
+
text: o.value
|
|
66
84
|
}, null, 8, ["text"])
|
|
67
85
|
]),
|
|
68
86
|
_: 2
|
|
@@ -70,12 +88,12 @@ const b = {
|
|
|
70
88
|
]),
|
|
71
89
|
_: 1
|
|
72
90
|
})
|
|
73
|
-
])) : (
|
|
91
|
+
])) : (r(), l("div", C, " No Headers "))
|
|
74
92
|
]),
|
|
75
93
|
_: 1
|
|
76
94
|
}, 8, ["itemCount"]));
|
|
77
95
|
}
|
|
78
96
|
});
|
|
79
97
|
export {
|
|
80
|
-
|
|
98
|
+
D as default
|
|
81
99
|
};
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
+
import type { Collection, Operation } from '@scalar/oas-utils/entities/spec';
|
|
2
|
+
import type { Workspace } from '@scalar/oas-utils/entities/workspace';
|
|
1
3
|
type __VLS_Props = {
|
|
4
|
+
collection: Collection;
|
|
5
|
+
operation: Operation;
|
|
6
|
+
workspace: Workspace;
|
|
2
7
|
numWorkspaceRequests: number;
|
|
3
8
|
};
|
|
4
9
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
@@ -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":"AAoKA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAA;AAC5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAcrE,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,SAAS,EAAE,SAAS,CAAA;IACpB,SAAS,EAAE,SAAS,CAAA;IACpB,oBAAoB,EAAE,MAAM,CAAA;CAC7B,CAAC;;AAkNF,wBAOG"}
|
|
@@ -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 s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-464c4989"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|