@scalar/api-client 2.3.15 → 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 +8 -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 +2 -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/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 +58 -58
- 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/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/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 +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Request.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/Request.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Request.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/Request.vue"],"names":[],"mappings":"AAsIA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAA;AASnF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAA;AASrF,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC1B,0BAA0B,EAAE,0BAA0B,CAAA;IACtD,aAAa,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAA;CACzC,CAAC;;;cAG4C,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AAsNjE,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Request.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d620d52d"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as E, computed as U, unref as e, openBlock as
|
|
1
|
+
import { defineComponent as E, computed as U, unref as e, openBlock as s, createElementBlock as f, normalizeClass as k, createElementVNode as P, createVNode as c, isRef as W, withCtx as y, createBlock as u, createCommentVNode as H } from "vue";
|
|
2
2
|
import S from "../../components/EmptyState.vue.js";
|
|
3
3
|
import L from "../../components/ViewLayout/ViewLayout.vue.js";
|
|
4
4
|
import N from "../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
@@ -22,19 +22,19 @@ const O = { class: "flex h-full" }, T = {
|
|
|
22
22
|
},
|
|
23
23
|
emits: ["newTab"],
|
|
24
24
|
setup($) {
|
|
25
|
-
const { events: R } = b(), { isSidebarOpen:
|
|
26
|
-
activeCollection:
|
|
27
|
-
activeExample:
|
|
28
|
-
activeRequest:
|
|
29
|
-
activeWorkspace:
|
|
30
|
-
activeServer:
|
|
31
|
-
activeEnvVariables:
|
|
25
|
+
const { events: R } = b(), { isSidebarOpen: a } = g(), q = b(), { layout: h } = M(), {
|
|
26
|
+
activeCollection: r,
|
|
27
|
+
activeExample: m,
|
|
28
|
+
activeRequest: l,
|
|
29
|
+
activeWorkspace: i,
|
|
30
|
+
activeServer: p,
|
|
31
|
+
activeEnvVariables: d,
|
|
32
32
|
activeEnvironment: v,
|
|
33
33
|
activeWorkspaceRequests: x
|
|
34
34
|
} = I(), { modalState: C, requestHistory: V } = q, w = U(
|
|
35
35
|
() => V.findLast((o) => {
|
|
36
36
|
var t;
|
|
37
|
-
return o.request.uid === ((t =
|
|
37
|
+
return o.request.uid === ((t = m.value) == null ? void 0 : t.uid);
|
|
38
38
|
})
|
|
39
39
|
);
|
|
40
40
|
function _(o) {
|
|
@@ -43,55 +43,58 @@ const O = { class: "flex h-full" }, T = {
|
|
|
43
43
|
commandName: "Import from cURL",
|
|
44
44
|
metaData: {
|
|
45
45
|
parsedCurl: B(o),
|
|
46
|
-
collectionUid: (t =
|
|
46
|
+
collectionUid: (t = r.value) == null ? void 0 : t.uid
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
-
return (o, t) => e(
|
|
50
|
+
return (o, t) => e(r) && e(i) ? (s(), f("div", {
|
|
51
51
|
key: 0,
|
|
52
52
|
class: k(["bg-b-1 relative z-0 flex h-full flex-1 flex-col overflow-hidden pt-0", {
|
|
53
53
|
"!mb-0 !mr-0 !border-0": e(h) === "modal"
|
|
54
54
|
}])
|
|
55
55
|
}, [
|
|
56
56
|
P("div", O, [
|
|
57
|
-
e(
|
|
58
|
-
|
|
59
|
-
modelValue: e(
|
|
60
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
61
|
-
collection: e(
|
|
62
|
-
envVariables: e(
|
|
57
|
+
e(l) ? (s(), f("div", T, [
|
|
58
|
+
c(A, {
|
|
59
|
+
modelValue: e(a),
|
|
60
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => W(a) ? a.value = n : null),
|
|
61
|
+
collection: e(r),
|
|
62
|
+
envVariables: e(d),
|
|
63
63
|
environment: e(v),
|
|
64
|
-
operation: e(
|
|
65
|
-
server: e(
|
|
66
|
-
workspace: e(
|
|
64
|
+
operation: e(l),
|
|
65
|
+
server: e(p),
|
|
66
|
+
workspace: e(i),
|
|
67
67
|
onHideModal: t[1] || (t[1] = () => e(C).hide()),
|
|
68
68
|
onImportCurl: _
|
|
69
69
|
}, null, 8, ["modelValue", "collection", "envVariables", "environment", "operation", "server", "workspace"]),
|
|
70
|
-
|
|
70
|
+
c(L, null, {
|
|
71
71
|
default: y(() => [
|
|
72
|
-
e(
|
|
72
|
+
e(m) ? (s(), u(N, {
|
|
73
73
|
key: 0,
|
|
74
|
-
class: k(["flex-1", [e(
|
|
74
|
+
class: k(["flex-1", [e(a) ? "sidebar-active-hide-layout" : ""]])
|
|
75
75
|
}, {
|
|
76
76
|
default: y(() => {
|
|
77
|
-
var
|
|
77
|
+
var n;
|
|
78
78
|
return [
|
|
79
|
-
|
|
80
|
-
collection: e(
|
|
81
|
-
envVariables: e(
|
|
79
|
+
c(z, {
|
|
80
|
+
collection: e(r),
|
|
81
|
+
envVariables: e(d),
|
|
82
82
|
environment: e(v),
|
|
83
|
-
example: e(
|
|
83
|
+
example: e(m),
|
|
84
84
|
invalidParams: o.invalidParams,
|
|
85
|
-
operation: e(
|
|
85
|
+
operation: e(l),
|
|
86
86
|
selectedSecuritySchemeUids: o.selectedSecuritySchemeUids,
|
|
87
|
-
server: e(
|
|
88
|
-
workspace: e(
|
|
87
|
+
server: e(p),
|
|
88
|
+
workspace: e(i)
|
|
89
89
|
}, null, 8, ["collection", "envVariables", "environment", "example", "invalidParams", "operation", "selectedSecuritySchemeUids", "server", "workspace"]),
|
|
90
|
-
|
|
90
|
+
c(D, {
|
|
91
|
+
collection: e(r),
|
|
92
|
+
operation: e(l),
|
|
93
|
+
workspace: e(i),
|
|
91
94
|
requestResult: o.requestResult,
|
|
92
95
|
numWorkspaceRequests: e(x).length,
|
|
93
|
-
response: (
|
|
94
|
-
}, null, 8, ["requestResult", "numWorkspaceRequests", "response"])
|
|
96
|
+
response: (n = w.value) == null ? void 0 : n.response
|
|
97
|
+
}, null, 8, ["collection", "operation", "workspace", "requestResult", "numWorkspaceRequests", "response"])
|
|
95
98
|
];
|
|
96
99
|
}),
|
|
97
100
|
_: 1
|
|
@@ -99,9 +102,9 @@ const O = { class: "flex h-full" }, T = {
|
|
|
99
102
|
]),
|
|
100
103
|
_: 1
|
|
101
104
|
})
|
|
102
|
-
])) : (
|
|
105
|
+
])) : (s(), u(S, { key: 1 }))
|
|
103
106
|
])
|
|
104
|
-
], 2)) : (
|
|
107
|
+
], 2)) : (s(), u(S, { key: 1 }));
|
|
105
108
|
}
|
|
106
109
|
});
|
|
107
110
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestSection.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestSection.vue"],"names":[],"mappings":"AAiUA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAA;AACnF,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,cAAc,EACd,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AASrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAU1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,OAAO,EAAE,cAAc,CAAA;IACvB,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;IACpB,0BAA0B,EAAE,0BAA0B,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AAmVF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestSection.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d51a3a93"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarErrorBoundary as
|
|
3
|
-
import { canMethodHaveBody as f, isDefined as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { matchesDomain as
|
|
7
|
-
import
|
|
1
|
+
import { defineComponent as H, computed as p, useId as w, ref as N, watch as I, openBlock as m, createBlock as V, withCtx as d, createElementVNode as v, unref as n, createElementBlock as c, createCommentVNode as A, toDisplayString as K, createVNode as t, withDirectives as i, vShow as s } from "vue";
|
|
2
|
+
import { ScalarErrorBoundary as U } from "@scalar/components";
|
|
3
|
+
import { canMethodHaveBody as f, isDefined as D, REGEX as q } from "@scalar/oas-utils/helpers";
|
|
4
|
+
import Q from "../../../components/SectionFilter.vue.js";
|
|
5
|
+
import $ from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
6
|
+
import { matchesDomain as L } from "../../../libs/send-request/set-request-cookies.js";
|
|
7
|
+
import j from "./RequestBody.vue.js";
|
|
8
8
|
import y from "./RequestParams.vue.js";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { useWorkspace as
|
|
13
|
-
import { useLayout as
|
|
14
|
-
const
|
|
15
|
-
key: 0,
|
|
16
|
-
class: "pointer-events-auto absolute left-0 top-0 h-full w-full cursor-text opacity-0",
|
|
17
|
-
for: "requestname"
|
|
18
|
-
}, X = ["placeholder", "value"], J = {
|
|
9
|
+
import F from "./RequestPathParams.vue.js";
|
|
10
|
+
import M from "./RequestAuth/RequestAuth.vue.js";
|
|
11
|
+
import T from "./RequestCodeExample.vue.js";
|
|
12
|
+
import { useWorkspace as W } from "../../../store/store.js";
|
|
13
|
+
import { useLayout as z } from "../../../hooks/useLayout.js";
|
|
14
|
+
const G = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:pr-24" }, X = ["for"], J = ["id", "placeholder", "value"], Y = {
|
|
19
15
|
key: 2,
|
|
20
16
|
class: "text-c-1 flex h-8 items-center"
|
|
21
|
-
},
|
|
17
|
+
}, Z = ["id", "role"], pe = /* @__PURE__ */ H({
|
|
22
18
|
__name: "RequestSection",
|
|
23
19
|
props: {
|
|
24
20
|
collection: {},
|
|
@@ -32,40 +28,40 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
32
28
|
workspace: {}
|
|
33
29
|
},
|
|
34
30
|
setup(l) {
|
|
35
|
-
const
|
|
31
|
+
const P = [
|
|
36
32
|
"Auth",
|
|
37
33
|
"Variables",
|
|
38
34
|
"Cookies",
|
|
39
35
|
"Headers",
|
|
40
36
|
"Query",
|
|
41
37
|
"Body"
|
|
42
|
-
], { requestMutators:
|
|
43
|
-
const e = /* @__PURE__ */ new Set(["All", ...
|
|
38
|
+
], { requestMutators: S, cookies: g, securitySchemes: B } = W(), { layout: u } = z(), h = p(() => {
|
|
39
|
+
const e = /* @__PURE__ */ new Set(["All", ...P]);
|
|
44
40
|
return l.example.parameters.path.length || e.delete("Variables"), f(l.operation.method ?? "get") || e.delete("Body"), k.value && e.delete("Auth"), [...e];
|
|
45
41
|
}), r = p(
|
|
46
42
|
() => Object.fromEntries(
|
|
47
|
-
h.value.map((e) => [e,
|
|
43
|
+
h.value.map((e) => [e, w()])
|
|
48
44
|
)
|
|
49
45
|
), k = p(
|
|
50
46
|
() => {
|
|
51
47
|
var e;
|
|
52
48
|
return u === "modal" && ((e = l.operation.security) == null ? void 0 : e.length) === 0;
|
|
53
49
|
}
|
|
54
|
-
), a =
|
|
55
|
-
|
|
50
|
+
), a = N("All");
|
|
51
|
+
I(
|
|
56
52
|
() => l.operation,
|
|
57
53
|
(e) => {
|
|
58
54
|
a.value === "Body" && e && !f(e.method) && (a.value = "All");
|
|
59
55
|
}
|
|
60
56
|
);
|
|
61
|
-
const
|
|
57
|
+
const C = (e) => {
|
|
62
58
|
const o = e.target;
|
|
63
|
-
|
|
64
|
-
},
|
|
65
|
-
() => (l.workspace.cookies ?? []).map((e) =>
|
|
59
|
+
S.edit(l.operation.uid, "summary", o.value);
|
|
60
|
+
}, R = p(
|
|
61
|
+
() => (l.workspace.cookies ?? []).map((e) => g[e]).filter(D).filter((e) => e.name).filter(
|
|
66
62
|
(e) => {
|
|
67
63
|
var o;
|
|
68
|
-
return
|
|
64
|
+
return L(((o = l.server) == null ? void 0 : o.url) || l.operation.path, e.domain);
|
|
69
65
|
}
|
|
70
66
|
).map((e) => ({
|
|
71
67
|
key: e.name,
|
|
@@ -78,36 +74,40 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
78
74
|
},
|
|
79
75
|
enabled: !0
|
|
80
76
|
}))
|
|
81
|
-
),
|
|
82
|
-
return (e, o) => (m(),
|
|
77
|
+
), E = () => l.operation.summary ? l.operation.summary : l.operation.path.replace(q.PROTOCOL, "") ? l.operation.path.replace(q.PROTOCOL, "") : "Request Name", b = w();
|
|
78
|
+
return (e, o) => (m(), V($, {
|
|
83
79
|
"aria-label": `Request: ${e.operation.summary}`
|
|
84
80
|
}, {
|
|
85
|
-
title:
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
81
|
+
title: d(() => [
|
|
82
|
+
v("div", G, [
|
|
83
|
+
n(u) !== "modal" ? (m(), c("label", {
|
|
84
|
+
key: 0,
|
|
85
|
+
class: "pointer-events-auto absolute left-0 top-0 h-full w-full cursor-text opacity-0",
|
|
86
|
+
for: n(b)
|
|
87
|
+
}, null, 8, X)) : A("", !0),
|
|
88
|
+
n(u) !== "modal" ? (m(), c("input", {
|
|
89
89
|
key: 1,
|
|
90
|
-
id:
|
|
90
|
+
id: n(b),
|
|
91
91
|
class: "text-c-1 group-hover-input pl-1.25 md:-ml-1.25 pointer-events-auto relative z-10 -ml-0.5 h-8 w-full rounded has-[:focus-visible]:outline",
|
|
92
|
-
placeholder:
|
|
92
|
+
placeholder: E(),
|
|
93
93
|
value: e.operation.summary,
|
|
94
|
-
onInput:
|
|
95
|
-
}, null, 40,
|
|
94
|
+
onInput: C
|
|
95
|
+
}, null, 40, J)) : (m(), c("span", Y, K(e.operation.summary), 1))
|
|
96
96
|
]),
|
|
97
|
-
|
|
97
|
+
t(Q, {
|
|
98
98
|
modelValue: a.value,
|
|
99
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
99
|
+
"onUpdate:modelValue": o[0] || (o[0] = (O) => a.value = O),
|
|
100
100
|
filterIds: r.value,
|
|
101
101
|
filters: h.value
|
|
102
102
|
}, null, 8, ["modelValue", "filterIds", "filters"])
|
|
103
103
|
]),
|
|
104
|
-
default:
|
|
105
|
-
|
|
104
|
+
default: d(() => [
|
|
105
|
+
v("div", {
|
|
106
106
|
id: r.value.All,
|
|
107
107
|
class: "request-section-content custom-scroll relative flex flex-1 flex-col divide-y",
|
|
108
108
|
role: a.value === "All" ? "tabpanel" : "none"
|
|
109
109
|
}, [
|
|
110
|
-
e.collection && e.workspace && (
|
|
110
|
+
e.collection && e.workspace && (n(u) !== "modal" || Object.keys(n(B) ?? {}).length) ? i((m(), V(M, {
|
|
111
111
|
key: 0,
|
|
112
112
|
id: r.value.Auth,
|
|
113
113
|
class: "request-section-content-auth border-b-0",
|
|
@@ -126,8 +126,8 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
126
126
|
s,
|
|
127
127
|
!k.value && (a.value === "All" || a.value === "Auth")
|
|
128
128
|
]
|
|
129
|
-
]) :
|
|
130
|
-
i(
|
|
129
|
+
]) : A("", !0),
|
|
130
|
+
i(t(F, {
|
|
131
131
|
id: r.value.Variables,
|
|
132
132
|
class: "request-section-content-path-params",
|
|
133
133
|
envVariables: e.envVariables,
|
|
@@ -145,7 +145,7 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
145
145
|
(a.value === "All" || a.value === "Variables") && e.example.parameters.path.length
|
|
146
146
|
]
|
|
147
147
|
]),
|
|
148
|
-
i(
|
|
148
|
+
i(t(y, {
|
|
149
149
|
id: r.value.Cookies,
|
|
150
150
|
class: "request-section-content-cookies",
|
|
151
151
|
envVariables: e.envVariables,
|
|
@@ -155,7 +155,7 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
155
155
|
label: "Cookie",
|
|
156
156
|
operation: e.operation,
|
|
157
157
|
paramKey: "cookies",
|
|
158
|
-
readOnlyEntries:
|
|
158
|
+
readOnlyEntries: R.value,
|
|
159
159
|
role: a.value === "All" ? "none" : "tabpanel",
|
|
160
160
|
title: "Cookies",
|
|
161
161
|
workspace: e.workspace,
|
|
@@ -163,7 +163,7 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
163
163
|
}, null, 8, ["id", "envVariables", "environment", "example", "invalidParams", "operation", "readOnlyEntries", "role", "workspace"]), [
|
|
164
164
|
[s, a.value === "All" || a.value === "Cookies"]
|
|
165
165
|
]),
|
|
166
|
-
i(
|
|
166
|
+
i(t(y, {
|
|
167
167
|
id: r.value.Headers,
|
|
168
168
|
class: "request-section-content-headers",
|
|
169
169
|
envVariables: e.envVariables,
|
|
@@ -179,7 +179,7 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
179
179
|
}, null, 8, ["id", "envVariables", "environment", "example", "invalidParams", "operation", "role", "workspace"]), [
|
|
180
180
|
[s, a.value === "All" || a.value === "Headers"]
|
|
181
181
|
]),
|
|
182
|
-
i(
|
|
182
|
+
i(t(y, {
|
|
183
183
|
id: r.value.Query,
|
|
184
184
|
class: "request-section-content-query",
|
|
185
185
|
envVariables: e.envVariables,
|
|
@@ -195,7 +195,7 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
195
195
|
}, null, 8, ["id", "envVariables", "environment", "example", "invalidParams", "operation", "role", "workspace"]), [
|
|
196
196
|
[s, a.value === "All" || a.value === "Query"]
|
|
197
197
|
]),
|
|
198
|
-
i(
|
|
198
|
+
i(t(j, {
|
|
199
199
|
id: r.value.Body,
|
|
200
200
|
class: "request-section-content-body",
|
|
201
201
|
envVariables: e.envVariables,
|
|
@@ -208,13 +208,13 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
208
208
|
}, null, 8, ["id", "envVariables", "environment", "example", "operation", "role", "workspace"]), [
|
|
209
209
|
[
|
|
210
210
|
s,
|
|
211
|
-
e.operation.method && (a.value === "All" || a.value === "Body") &&
|
|
211
|
+
e.operation.method && (a.value === "All" || a.value === "Body") && n(f)(e.operation.method)
|
|
212
212
|
]
|
|
213
213
|
]),
|
|
214
|
-
o[1] || (o[1] =
|
|
215
|
-
n(
|
|
216
|
-
default:
|
|
217
|
-
|
|
214
|
+
o[1] || (o[1] = v("div", { class: "-my-0.25 flex flex-grow" }, null, -1)),
|
|
215
|
+
t(n(U), null, {
|
|
216
|
+
default: d(() => [
|
|
217
|
+
t(T, {
|
|
218
218
|
class: "request-section-content-code-example",
|
|
219
219
|
collection: e.collection,
|
|
220
220
|
example: e.example,
|
|
@@ -225,12 +225,12 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
225
225
|
]),
|
|
226
226
|
_: 1
|
|
227
227
|
})
|
|
228
|
-
], 8,
|
|
228
|
+
], 8, Z)
|
|
229
229
|
]),
|
|
230
230
|
_: 1
|
|
231
231
|
}, 8, ["aria-label"]));
|
|
232
232
|
}
|
|
233
233
|
});
|
|
234
234
|
export {
|
|
235
|
-
|
|
235
|
+
pe as default
|
|
236
236
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebar.vue"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"RequestSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebar.vue"],"names":[],"mappings":";;;cA4jBuC,MAAM;aAAO,MAAM;;;;;cAAnB,MAAM;aAAO,MAAM;;;AAoyB1D,wBAMG"}
|
|
@@ -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
|
};
|