@scalar/api-client 2.3.19 → 2.3.20
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 +28 -0
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +132 -120
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +138 -125
- package/dist/components/ImportCollection/utils/import-collection.d.ts.map +1 -1
- package/dist/components/ImportCollection/utils/import-collection.js +17 -14
- package/dist/hooks/useClientConfig.d.ts +3 -3
- package/dist/hooks/useClientConfig.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts +16 -19
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.js +10 -8
- package/dist/layouts/Modal/create-api-client-modal.d.ts +32 -38
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +16 -19
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +16 -19
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/store/active-entities.d.ts +1 -1
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/import-spec.d.ts +1 -1
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/import-spec.js +7 -6
- package/dist/store/store.d.ts +16 -19
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/workspace.d.ts +10 -10
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Collection/CollectionAuthentication.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionAuthentication.vue.js +2 -2
- package/dist/views/Collection/CollectionAuthentication.vue2.js +22 -19
- package/dist/views/Collection/CollectionSettings.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionSettings.vue.js +1 -1
- package/dist/views/Collection/CollectionSettings.vue2.js +1 -1
- package/dist/views/Collection/components/MarkdownInput.vue.d.ts.map +1 -1
- package/dist/views/Collection/components/MarkdownInput.vue.js +2 -2
- package/dist/views/Collection/components/MarkdownInput.vue2.js +11 -11
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +29 -30
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +3 -3
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +33 -32
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +129 -126
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +3 -3
- package/dist/views/Request/RequestSidebarItem.vue2.js +235 -241
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +12 -12
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +1 -1
- 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 +9 -9
- package/dist/views/Request/hooks/useOpenApiWatcher.js +34 -34
- package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.js +2 -0
- package/package.json +12 -12
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as ee, computed as h, ref as
|
|
1
|
+
import { defineComponent as ee, computed as h, ref as ne, watch as $, openBlock as b, createBlock as g, withCtx as m, createTextVNode as H, toDisplayString as F, createVNode as c, unref as v, createElementVNode as k, createCommentVNode as ae, createElementBlock as j, Fragment as te, nextTick as oe } from "vue";
|
|
2
2
|
import { ScalarListbox as X, ScalarButton as D, ScalarIcon as C } from "@scalar/components";
|
|
3
3
|
import { requestExampleParametersSchema as Y } from "@scalar/oas-utils/entities/spec";
|
|
4
4
|
import { canMethodHaveBody as le } from "@scalar/oas-utils/helpers";
|
|
5
5
|
import ie from "../../../components/CodeInput/CodeInput.vue.js";
|
|
6
6
|
import re from "../../../components/DataTable/DataTable.vue.js";
|
|
7
7
|
import de from "../../../components/DataTable/DataTableHeader.vue.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
8
|
+
import E from "../../../components/DataTable/DataTableRow.vue.js";
|
|
9
|
+
import se from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
10
10
|
import G from "./RequestTable.vue.js";
|
|
11
|
-
import { useWorkspace as
|
|
11
|
+
import { useWorkspace as ue } from "../../../store/store.js";
|
|
12
12
|
import { useFileDialog as K } from "../../../hooks/useFileDialog.js";
|
|
13
13
|
const me = {
|
|
14
14
|
key: 0,
|
|
@@ -27,7 +27,7 @@ const me = {
|
|
|
27
27
|
title: {}
|
|
28
28
|
},
|
|
29
29
|
setup(l) {
|
|
30
|
-
const { requestExampleMutators: d } =
|
|
30
|
+
const { requestExampleMutators: d } = ue(), Q = {
|
|
31
31
|
json: "json",
|
|
32
32
|
xml: "xml",
|
|
33
33
|
yaml: "yaml",
|
|
@@ -43,124 +43,127 @@ const me = {
|
|
|
43
43
|
edn: "EDN",
|
|
44
44
|
other: "Other",
|
|
45
45
|
none: "None"
|
|
46
|
-
}).map(([e,
|
|
46
|
+
}).map(([e, n]) => ({
|
|
47
47
|
id: e,
|
|
48
|
-
label:
|
|
49
|
-
})),
|
|
48
|
+
label: n
|
|
49
|
+
})), T = h(() => {
|
|
50
50
|
var o;
|
|
51
|
-
const { activeBody: e, formData:
|
|
52
|
-
return e === "formData" ? (
|
|
51
|
+
const { activeBody: e, formData: n, raw: a } = l.example.body;
|
|
52
|
+
return e === "formData" ? (n == null ? void 0 : n.encoding) === "urlencoded" ? "formUrlEncoded" : "multipartForm" : e === "binary" ? "binaryFile" : e === "raw" && (a != null && a.encoding) ? a.encoding === "html" ? "other" : a.encoding : Object.keys(((o = l.operation.requestBody) == null ? void 0 : o.content) || {})[0] || "none";
|
|
53
53
|
}), p = h({
|
|
54
54
|
get: () => x.find(
|
|
55
|
-
(e) => e.id ===
|
|
55
|
+
(e) => e.id === T.value
|
|
56
56
|
) ?? x[x.length - 1] ?? x[0],
|
|
57
57
|
set: (e) => {
|
|
58
|
-
e != null && e.id &&
|
|
58
|
+
e != null && e.id && M(e.id);
|
|
59
59
|
}
|
|
60
|
-
}), B =
|
|
61
|
-
var
|
|
62
|
-
const e = (
|
|
60
|
+
}), B = ne(null), Z = h(() => {
|
|
61
|
+
var n;
|
|
62
|
+
const e = (n = p.value) == null ? void 0 : n.id;
|
|
63
63
|
return Q[e] ?? "plaintext";
|
|
64
64
|
});
|
|
65
65
|
function P() {
|
|
66
66
|
console.log("deleteRow");
|
|
67
67
|
}
|
|
68
|
-
const N = (e,
|
|
69
|
-
var o, i,
|
|
68
|
+
const N = (e, n, a) => {
|
|
69
|
+
var o, i, u, r, f, V, J;
|
|
70
70
|
const t = y.value;
|
|
71
71
|
if (t.length > e) {
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
...
|
|
75
|
-
value: ((o =
|
|
76
|
-
key: ((i =
|
|
77
|
-
enabled: ((
|
|
78
|
-
[
|
|
79
|
-
}, (((r =
|
|
72
|
+
const s = [...t];
|
|
73
|
+
s[e] = {
|
|
74
|
+
...s[e],
|
|
75
|
+
value: ((o = s[e]) == null ? void 0 : o.value) || "",
|
|
76
|
+
key: ((i = s[e]) == null ? void 0 : i.key) || "",
|
|
77
|
+
enabled: ((u = s[e]) == null ? void 0 : u.enabled) ?? !1,
|
|
78
|
+
[n]: a || ""
|
|
79
|
+
}, (((r = s[e]) == null ? void 0 : r.key) !== "" || ((f = s[e]) == null ? void 0 : f.value) !== "") && (s[e].enabled = !0), ((V = s[e]) == null ? void 0 : V.key) === "" && ((J = s[e]) == null ? void 0 : J.value) === "" && s.splice(e, 1), d.edit(
|
|
80
80
|
l.example.uid,
|
|
81
81
|
"body.formData.value",
|
|
82
|
-
|
|
82
|
+
s
|
|
83
83
|
);
|
|
84
84
|
} else {
|
|
85
|
-
const
|
|
86
|
-
d.edit(l.example.uid, "body.formData.value",
|
|
87
|
-
var
|
|
85
|
+
const s = [Y.parse({ [n]: a })];
|
|
86
|
+
d.edit(l.example.uid, "body.formData.value", s), oe(() => {
|
|
87
|
+
var A;
|
|
88
88
|
if (!B.value)
|
|
89
89
|
return;
|
|
90
|
-
(
|
|
90
|
+
(A = B.value.querySelectorAll("input")[n === "key" ? 0 : 1]) == null || A.focus();
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
e === t.length - 1 && O();
|
|
94
94
|
}, y = h(() => {
|
|
95
95
|
var e;
|
|
96
96
|
return ((e = l.example.body.formData) == null ? void 0 : e.value) ?? [];
|
|
97
|
-
}),
|
|
97
|
+
}), R = () => {
|
|
98
98
|
const e = y.value[y.value.length - 1];
|
|
99
99
|
(!e || e.key !== "" || e.value !== "") && O();
|
|
100
100
|
}, O = () => {
|
|
101
101
|
const e = Y.parse({
|
|
102
102
|
enabled: !1
|
|
103
|
-
}),
|
|
104
|
-
l.example.body.formData ? d.edit(l.example.uid, "body.formData.value",
|
|
105
|
-
value:
|
|
103
|
+
}), n = [...y.value, e];
|
|
104
|
+
l.example.body.formData ? d.edit(l.example.uid, "body.formData.value", n) : d.edit(l.example.uid, "body.formData", {
|
|
105
|
+
value: n,
|
|
106
106
|
encoding: "form-data"
|
|
107
107
|
});
|
|
108
|
-
}, S = (e,
|
|
109
|
-
const
|
|
110
|
-
if (
|
|
111
|
-
const t = [...
|
|
112
|
-
t[e] && (t[e].enabled =
|
|
108
|
+
}, S = (e, n) => {
|
|
109
|
+
const a = y.value;
|
|
110
|
+
if (a.length > e) {
|
|
111
|
+
const t = [...a];
|
|
112
|
+
t[e] && (t[e].enabled = n), d.edit(
|
|
113
113
|
l.example.uid,
|
|
114
114
|
"body.formData.value",
|
|
115
115
|
t
|
|
116
116
|
);
|
|
117
117
|
}
|
|
118
|
-
}, q = (e) => d.edit(l.example.uid, "body.raw.value", e),
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
118
|
+
}, q = (e) => d.edit(l.example.uid, "body.raw.value", e), L = (e) => {
|
|
119
|
+
var n;
|
|
120
|
+
return e === "multipartForm" ? {
|
|
121
|
+
activeBody: "formData",
|
|
122
|
+
encoding: "form-data",
|
|
123
|
+
header: "multipart/form-data"
|
|
124
|
+
} : e === "formUrlEncoded" ? {
|
|
125
|
+
activeBody: "formData",
|
|
126
|
+
encoding: "urlencoded",
|
|
127
|
+
header: "application/x-www-form-urlencoded"
|
|
128
|
+
} : e === "binaryFile" ? {
|
|
129
|
+
activeBody: "binary",
|
|
130
|
+
encoding: void 0,
|
|
131
|
+
header: "application/octet-stream"
|
|
132
|
+
} : e === "json" ? {
|
|
133
|
+
activeBody: "raw",
|
|
134
|
+
encoding: "json",
|
|
135
|
+
header: Object.keys(((n = l.operation.requestBody) == null ? void 0 : n.content) ?? {}).find((o) => o.includes("json") || o.endsWith("+json")) || "application/json"
|
|
136
|
+
} : e === "xml" ? {
|
|
137
|
+
activeBody: "raw",
|
|
138
|
+
encoding: "xml",
|
|
139
|
+
header: "application/xml"
|
|
140
|
+
} : e === "yaml" ? {
|
|
141
|
+
activeBody: "raw",
|
|
142
|
+
encoding: "yaml",
|
|
143
|
+
header: "application/yaml"
|
|
144
|
+
} : e === "edn" ? {
|
|
145
|
+
activeBody: "raw",
|
|
146
|
+
encoding: "edn",
|
|
147
|
+
header: "application/edn"
|
|
148
|
+
} : e === "other" ? {
|
|
149
|
+
activeBody: "raw",
|
|
150
|
+
encoding: "html",
|
|
151
|
+
header: "application/html"
|
|
152
|
+
} : { activeBody: "raw", encoding: void 0, header: void 0 };
|
|
153
|
+
}, M = (e) => {
|
|
154
|
+
var u, r;
|
|
155
|
+
const { activeBody: n, encoding: a, header: t } = L(e);
|
|
156
|
+
if (d.edit(l.example.uid, "body.activeBody", n), a && n === "raw")
|
|
154
157
|
d.edit(l.example.uid, "body.raw", {
|
|
155
|
-
encoding:
|
|
156
|
-
value: ((
|
|
158
|
+
encoding: a,
|
|
159
|
+
value: ((u = l.example.body.raw) == null ? void 0 : u.value) ?? ""
|
|
157
160
|
});
|
|
158
|
-
else if (
|
|
161
|
+
else if (a && n === "formData")
|
|
159
162
|
d.edit(l.example.uid, "body.formData", {
|
|
160
|
-
encoding:
|
|
163
|
+
encoding: a,
|
|
161
164
|
value: ((r = l.example.body.formData) == null ? void 0 : r.value) ?? []
|
|
162
165
|
});
|
|
163
|
-
else if (!
|
|
166
|
+
else if (!a && n !== "binary") {
|
|
164
167
|
const { raw: f, ...V } = l.example.body;
|
|
165
168
|
d.edit(l.example.uid, "body", V);
|
|
166
169
|
}
|
|
@@ -168,7 +171,7 @@ const me = {
|
|
|
168
171
|
(f) => f.key.toLowerCase() === "content-type"
|
|
169
172
|
);
|
|
170
173
|
if (i >= 0)
|
|
171
|
-
t && o[i] ? o[i].value = t : o[i] && (
|
|
174
|
+
t && o[i] ? o[i].value = t : o[i] && (n !== "raw" || e === "none") && o.splice(i, 1);
|
|
172
175
|
else if (t) {
|
|
173
176
|
const f = o[o.length - 1];
|
|
174
177
|
f && f.key === "" && f.value === "" ? o.splice(o.length - 1, 0, {
|
|
@@ -182,11 +185,11 @@ const me = {
|
|
|
182
185
|
});
|
|
183
186
|
}
|
|
184
187
|
d.edit(l.example.uid, "parameters.headers", o);
|
|
185
|
-
},
|
|
186
|
-
const { open:
|
|
187
|
-
onChange: async (
|
|
188
|
+
}, W = async (e) => {
|
|
189
|
+
const { open: n } = K({
|
|
190
|
+
onChange: async (a) => {
|
|
188
191
|
var o, i;
|
|
189
|
-
const t =
|
|
192
|
+
const t = a == null ? void 0 : a[0];
|
|
190
193
|
if (t) {
|
|
191
194
|
const r = [...y.value];
|
|
192
195
|
r[e] = {
|
|
@@ -199,47 +202,47 @@ const me = {
|
|
|
199
202
|
l.example.uid,
|
|
200
203
|
"body.formData.value",
|
|
201
204
|
r
|
|
202
|
-
),
|
|
205
|
+
), R();
|
|
203
206
|
}
|
|
204
207
|
},
|
|
205
208
|
multiple: !1,
|
|
206
209
|
accept: "*/*"
|
|
207
210
|
});
|
|
208
|
-
|
|
211
|
+
n();
|
|
209
212
|
}, I = () => d.edit(l.example.uid, "body.binary", void 0);
|
|
210
213
|
function z(e) {
|
|
211
|
-
const
|
|
212
|
-
|
|
214
|
+
const n = y.value, a = [...n], t = n[e], o = t == null ? void 0 : t.file;
|
|
215
|
+
n.length > 1 && (!(t != null && t.key) && !(t != null && t.value) || o && (t == null ? void 0 : t.key) === o.name && (t == null ? void 0 : t.value) === o.name) ? a.splice(e, 1) : a[e] && (a[e].file = void 0), d.edit(l.example.uid, "body.formData.value", a);
|
|
213
216
|
}
|
|
214
217
|
function _() {
|
|
215
218
|
const { open: e } = K({
|
|
216
|
-
onChange: async (
|
|
217
|
-
const
|
|
218
|
-
|
|
219
|
+
onChange: async (n) => {
|
|
220
|
+
const a = n == null ? void 0 : n[0];
|
|
221
|
+
a && d.edit(l.example.uid, "body.binary", a);
|
|
219
222
|
},
|
|
220
223
|
multiple: !1,
|
|
221
224
|
accept: "*/*"
|
|
222
225
|
});
|
|
223
226
|
e();
|
|
224
227
|
}
|
|
225
|
-
|
|
228
|
+
$(
|
|
226
229
|
p,
|
|
227
230
|
(e) => {
|
|
228
|
-
["multipartForm", "formUrlEncoded"].includes((e == null ? void 0 : e.id) || "") &&
|
|
231
|
+
["multipartForm", "formUrlEncoded"].includes((e == null ? void 0 : e.id) || "") && R();
|
|
229
232
|
},
|
|
230
233
|
{ immediate: !0 }
|
|
231
|
-
),
|
|
234
|
+
), $(
|
|
232
235
|
() => l.example.uid,
|
|
233
236
|
() => {
|
|
234
|
-
l.operation.method && le(l.operation.method) &&
|
|
235
|
-
|
|
236
|
-
) &&
|
|
237
|
+
l.operation.method && le(l.operation.method) && M(T.value), ["multipartForm", "formUrlEncoded"].includes(
|
|
238
|
+
T.value
|
|
239
|
+
) && R();
|
|
237
240
|
},
|
|
238
241
|
{ immediate: !0 }
|
|
239
242
|
);
|
|
240
243
|
const w = h(() => {
|
|
241
|
-
var o, i,
|
|
242
|
-
const e = (o = p.value) == null ? void 0 : o.id, { header:
|
|
244
|
+
var o, i, u;
|
|
245
|
+
const e = (o = p.value) == null ? void 0 : o.id, { header: n } = L(e), a = ((i = l.operation.requestBody) == null ? void 0 : i.content) || {}, t = n ? ((u = a[n]) == null ? void 0 : u.examples) || {} : {};
|
|
243
246
|
return Object.entries(t).map(([r, f]) => ({
|
|
244
247
|
id: r,
|
|
245
248
|
label: r,
|
|
@@ -248,23 +251,23 @@ const me = {
|
|
|
248
251
|
}), U = h({
|
|
249
252
|
get: () => {
|
|
250
253
|
var t;
|
|
251
|
-
const e = ((t = l.example.body.raw) == null ? void 0 : t.value) ?? "{}",
|
|
254
|
+
const e = ((t = l.example.body.raw) == null ? void 0 : t.value) ?? "{}", n = JSON.parse(e);
|
|
252
255
|
return w.value.find((o) => {
|
|
253
256
|
const i = o.value;
|
|
254
|
-
return JSON.stringify(i.value) === JSON.stringify(
|
|
257
|
+
return JSON.stringify(i.value) === JSON.stringify(n);
|
|
255
258
|
}) ?? w.value[0];
|
|
256
259
|
},
|
|
257
260
|
set: (e) => {
|
|
258
261
|
if (e != null && e.id) {
|
|
259
|
-
const
|
|
260
|
-
if (
|
|
261
|
-
const
|
|
262
|
-
q(JSON.stringify(
|
|
262
|
+
const n = w.value.find((a) => a.id === e.id);
|
|
263
|
+
if (n) {
|
|
264
|
+
const a = n.value;
|
|
265
|
+
q(JSON.stringify(a.value, null, 2));
|
|
263
266
|
}
|
|
264
267
|
}
|
|
265
268
|
}
|
|
266
269
|
});
|
|
267
|
-
return (e,
|
|
270
|
+
return (e, n) => (b(), g(se, null, {
|
|
268
271
|
title: m(() => [
|
|
269
272
|
H(F(e.title), 1)
|
|
270
273
|
]),
|
|
@@ -274,13 +277,13 @@ const me = {
|
|
|
274
277
|
presentational: ""
|
|
275
278
|
}, {
|
|
276
279
|
default: m(() => [
|
|
277
|
-
c(
|
|
280
|
+
c(E, null, {
|
|
278
281
|
default: m(() => [
|
|
279
282
|
c(de, { class: "relative col-span-full flex h-8 cursor-pointer items-center justify-between !p-0" }, {
|
|
280
283
|
default: m(() => [
|
|
281
284
|
c(v(X), {
|
|
282
285
|
modelValue: p.value,
|
|
283
|
-
"onUpdate:modelValue":
|
|
286
|
+
"onUpdate:modelValue": n[0] || (n[0] = (a) => p.value = a),
|
|
284
287
|
options: v(x),
|
|
285
288
|
teleport: ""
|
|
286
289
|
}, {
|
|
@@ -291,9 +294,9 @@ const me = {
|
|
|
291
294
|
variant: "ghost"
|
|
292
295
|
}, {
|
|
293
296
|
default: m(() => {
|
|
294
|
-
var
|
|
297
|
+
var a;
|
|
295
298
|
return [
|
|
296
|
-
k("span", null, F((
|
|
299
|
+
k("span", null, F((a = p.value) == null ? void 0 : a.label), 1),
|
|
297
300
|
c(v(C), {
|
|
298
301
|
icon: "ChevronDown",
|
|
299
302
|
size: "md"
|
|
@@ -308,7 +311,7 @@ const me = {
|
|
|
308
311
|
w.value.length > 0 ? (b(), g(v(X), {
|
|
309
312
|
key: 0,
|
|
310
313
|
modelValue: U.value,
|
|
311
|
-
"onUpdate:modelValue":
|
|
314
|
+
"onUpdate:modelValue": n[1] || (n[1] = (a) => U.value = a),
|
|
312
315
|
options: w.value,
|
|
313
316
|
side: "left",
|
|
314
317
|
teleport: ""
|
|
@@ -320,9 +323,9 @@ const me = {
|
|
|
320
323
|
variant: "ghost"
|
|
321
324
|
}, {
|
|
322
325
|
default: m(() => {
|
|
323
|
-
var
|
|
326
|
+
var a;
|
|
324
327
|
return [
|
|
325
|
-
k("span", null, F((
|
|
328
|
+
k("span", null, F((a = U.value) == null ? void 0 : a.label), 1),
|
|
326
329
|
c(v(C), {
|
|
327
330
|
icon: "ChevronDown",
|
|
328
331
|
size: "md"
|
|
@@ -333,21 +336,21 @@ const me = {
|
|
|
333
336
|
})
|
|
334
337
|
]),
|
|
335
338
|
_: 1
|
|
336
|
-
}, 8, ["modelValue", "options"])) :
|
|
339
|
+
}, 8, ["modelValue", "options"])) : ae("", !0)
|
|
337
340
|
]),
|
|
338
341
|
_: 1
|
|
339
342
|
})
|
|
340
343
|
]),
|
|
341
344
|
_: 1
|
|
342
345
|
}),
|
|
343
|
-
c(
|
|
346
|
+
c(E, null, {
|
|
344
347
|
default: m(() => {
|
|
345
|
-
var
|
|
348
|
+
var a, t, o, i, u, r;
|
|
346
349
|
return [
|
|
347
|
-
((
|
|
350
|
+
((a = p.value) == null ? void 0 : a.id) === "none" ? (b(), j("div", me, n[2] || (n[2] = [
|
|
348
351
|
k("span", null, "No Body", -1)
|
|
349
|
-
]))) : ((t = p.value) == null ? void 0 : t.id) === "binaryFile" ? (b(),
|
|
350
|
-
e.example.body.binary ? (b(),
|
|
352
|
+
]))) : ((t = p.value) == null ? void 0 : t.id) === "binaryFile" ? (b(), j("div", ce, [
|
|
353
|
+
e.example.body.binary ? (b(), j(te, { key: 0 }, [
|
|
351
354
|
k("span", fe, F(e.example.body.binary.name), 1),
|
|
352
355
|
c(v(D), {
|
|
353
356
|
class: "bg-b-2 hover:bg-b-3 text-c-2 ml-1 border-0 shadow-none",
|
|
@@ -355,7 +358,7 @@ const me = {
|
|
|
355
358
|
variant: "outlined",
|
|
356
359
|
onClick: I
|
|
357
360
|
}, {
|
|
358
|
-
default: m(() =>
|
|
361
|
+
default: m(() => n[3] || (n[3] = [
|
|
359
362
|
H(" Delete ")
|
|
360
363
|
])),
|
|
361
364
|
_: 1
|
|
@@ -368,7 +371,7 @@ const me = {
|
|
|
368
371
|
onClick: _
|
|
369
372
|
}, {
|
|
370
373
|
default: m(() => [
|
|
371
|
-
|
|
374
|
+
n[4] || (n[4] = k("span", null, "Upload File", -1)),
|
|
372
375
|
c(v(C), {
|
|
373
376
|
class: "ml-1",
|
|
374
377
|
icon: "Upload",
|
|
@@ -393,7 +396,7 @@ const me = {
|
|
|
393
396
|
onRemoveFile: z,
|
|
394
397
|
onToggleRow: S,
|
|
395
398
|
onUpdateRow: N,
|
|
396
|
-
onUploadFile:
|
|
399
|
+
onUploadFile: W
|
|
397
400
|
}, null, 8, ["envVariables", "environment", "items", "workspace"])) : ((i = p.value) == null ? void 0 : i.id) == "formUrlEncoded" ? (b(), g(G, {
|
|
398
401
|
key: 3,
|
|
399
402
|
ref_key: "tableWrapperRef",
|
|
@@ -409,7 +412,7 @@ const me = {
|
|
|
409
412
|
onRemoveFile: z,
|
|
410
413
|
onToggleRow: S,
|
|
411
414
|
onUpdateRow: N,
|
|
412
|
-
onUploadFile:
|
|
415
|
+
onUploadFile: W
|
|
413
416
|
}, null, 8, ["envVariables", "environment", "items", "workspace"])) : (b(), g(ie, {
|
|
414
417
|
key: 4,
|
|
415
418
|
class: "border-t-1/2 px-1",
|
|
@@ -419,7 +422,7 @@ const me = {
|
|
|
419
422
|
language: Z.value,
|
|
420
423
|
lineNumbers: "",
|
|
421
424
|
lint: "",
|
|
422
|
-
modelValue: ((r = (
|
|
425
|
+
modelValue: ((r = (u = e.example.body) == null ? void 0 : u.raw) == null ? void 0 : r.value) ?? "",
|
|
423
426
|
workspace: e.workspace,
|
|
424
427
|
"onUpdate:modelValue": q
|
|
425
428
|
}, null, 8, ["envVariables", "environment", "language", "modelValue", "workspace"]))
|
|
@@ -427,7 +430,7 @@ const me = {
|
|
|
427
430
|
}),
|
|
428
431
|
_: 1
|
|
429
432
|
}),
|
|
430
|
-
c(
|
|
433
|
+
c(E)
|
|
431
434
|
]),
|
|
432
435
|
_: 1
|
|
433
436
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"AA6sBA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAG1B,OAAO,EAAY,QAAQ,EAAO,MAAM,KAAK,CAAA;AAU7C,OAAO,KAAK,EAAe,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAIzE,KAAK,WAAW,GAAG;IACjB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAA;IAC3C,oEAAoE;IACpE,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,0DAA0D;IAC1D,GAAG,EAAE,MAAM,CAAA;IACX,2CAA2C;IAC3C,QAAQ,EAAE,eAAe,CAAA;CAC1B,CAAC;AA4VF,iBAAS,cAAc;WAoxBT,OAAO,IAA6B;;oBA9lCpC,IAAI;;oBAAJ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAjElB,KA1pBmB;;;;;;;oCA0pBnB,KAtpBO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4xB4D,GAAE,8CAC9C,GAAG,yBAAyB,GAAG,6DACpC,GACjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2hCA;AAqCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;kFAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAUpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import t from "./RequestSidebarItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const a = /* @__PURE__ */ e(t, [["__scopeId", "data-v-5ceed67f"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as default
|
|
8
8
|
};
|