@scalar/api-client 2.1.2 → 2.1.4
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 +21 -0
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServer.vue.js +58 -58
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/send-request.d.ts.map +1 -1
- package/dist/libs/send-request.js +63 -62
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +77 -73
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +0 -4
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +214 -162
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +38 -37
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +5 -8
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +2 -2
- package/dist/views/Request/RequestSidebar.vue2.js +164 -153
- package/dist/views/Request/RequestSidebarItem.vue.d.ts +7 -0
- 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 +230 -263
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +8 -30
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +131 -81
- package/dist/views/Request/types/index.d.ts +2 -0
- package/dist/views/Request/types/index.d.ts.map +1 -0
- package/dist/views/Request/types/index.js +1 -0
- package/dist/views/Request/types/sidebar-item.d.ts +23 -0
- package/dist/views/Request/types/sidebar-item.d.ts.map +1 -0
- package/package.json +11 -6
|
@@ -1,36 +1,30 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as G, computed as w, ref as K, watch as N, openBlock as p, createBlock as b, withCtx as u, createTextVNode as S, toDisplayString as B, createVNode as s, unref as c, createElementVNode as x, createElementBlock as D, Fragment as Q, nextTick as Z } from "vue";
|
|
2
|
+
import I from "../../../components/CodeInput/CodeInput.vue.js";
|
|
3
|
+
import ee from "../../../components/DataTable/DataTable.vue.js";
|
|
4
|
+
import ae from "../../../components/DataTable/DataTableHeader.vue.js";
|
|
5
5
|
import R from "../../../components/DataTable/DataTableRow.vue.js";
|
|
6
|
-
import
|
|
7
|
-
import { ScalarListbox as
|
|
8
|
-
import { requestExampleParametersSchema as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
class: "text-c-3 flex min-h-14 w-full items-center justify-center rounded border border-dashed text-center text-base"
|
|
15
|
-
}, ne = /* @__PURE__ */ b("span", null, "No Body", -1), le = [
|
|
16
|
-
ne
|
|
17
|
-
], re = {
|
|
6
|
+
import te from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
7
|
+
import { ScalarListbox as oe, ScalarButton as F, ScalarIcon as q } from "@scalar/components";
|
|
8
|
+
import { requestExampleParametersSchema as L } from "@scalar/oas-utils/entities/spec";
|
|
9
|
+
import { canMethodHaveBody as ne } from "@scalar/oas-utils/helpers";
|
|
10
|
+
import M from "./RequestTable.vue.js";
|
|
11
|
+
import { useWorkspace as le } from "../../../store/store.js";
|
|
12
|
+
import { useFileDialog as W } from "../../../hooks/useFileDialog.js";
|
|
13
|
+
const re = {
|
|
18
14
|
key: 0,
|
|
19
15
|
class: "text-c-3 flex min-h-10 w-full items-center justify-center p-2 text-sm"
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
],
|
|
16
|
+
}, de = /* @__PURE__ */ x("span", null, "No Body", -1), ie = [
|
|
17
|
+
de
|
|
18
|
+
], ue = {
|
|
23
19
|
key: 1,
|
|
24
20
|
class: "flex items-center justify-center p-1.5 overflow-hidden"
|
|
25
|
-
}, se = { class: "text-c-2 text-xs w-full border rounded p-1 max-w-full overflow-hidden whitespace-nowrap" }, ce = /* @__PURE__ */
|
|
21
|
+
}, se = { class: "text-c-2 text-xs w-full border rounded p-1 max-w-full overflow-hidden whitespace-nowrap" }, ce = /* @__PURE__ */ x("span", null, "Upload File", -1), Fe = /* @__PURE__ */ G({
|
|
26
22
|
__name: "RequestBody",
|
|
27
23
|
props: {
|
|
28
|
-
title: {}
|
|
29
|
-
body: {},
|
|
30
|
-
formData: {}
|
|
24
|
+
title: {}
|
|
31
25
|
},
|
|
32
26
|
setup(me) {
|
|
33
|
-
const { activeRequest:
|
|
27
|
+
const { activeRequest: i, activeExample: a, requestExampleMutators: r } = le(), A = {
|
|
34
28
|
json: "json",
|
|
35
29
|
xml: "xml",
|
|
36
30
|
yaml: "yaml",
|
|
@@ -49,104 +43,155 @@ const ae = {
|
|
|
49
43
|
}).map(([e, o]) => ({
|
|
50
44
|
id: e,
|
|
51
45
|
label: o
|
|
52
|
-
})),
|
|
46
|
+
})), k = w(() => {
|
|
53
47
|
var e, o;
|
|
54
|
-
return
|
|
55
|
-
}),
|
|
48
|
+
return a.value ? a.value.body.activeBody === "formData" ? ((e = a.value.body.formData) == null ? void 0 : e.encoding) === "urlencoded" ? "formUrlEncoded" : "multipartForm" : a.value.body.activeBody === "binary" ? "binaryFile" : a.value.body.activeBody === "raw" && ((o = a.value.body.raw) != null && o.encoding) ? a.value.body.raw.encoding === "html" ? "other" : a.value.body.raw.encoding : "none" : "none";
|
|
49
|
+
}), m = w({
|
|
56
50
|
get: () => h.find(
|
|
57
|
-
(e) => e.id ===
|
|
51
|
+
(e) => e.id === k.value
|
|
58
52
|
) ?? h[h.length - 1],
|
|
59
53
|
set: (e) => {
|
|
60
|
-
e != null && e.id &&
|
|
54
|
+
e != null && e.id && E(e.id);
|
|
61
55
|
}
|
|
62
|
-
}), g =
|
|
63
|
-
const e =
|
|
64
|
-
return
|
|
56
|
+
}), g = K(null), z = w(() => {
|
|
57
|
+
const e = m.value.id;
|
|
58
|
+
return A[e] ?? "plaintext";
|
|
65
59
|
});
|
|
66
60
|
function U() {
|
|
67
61
|
console.log("deleteRow");
|
|
68
62
|
}
|
|
69
|
-
const
|
|
70
|
-
if (!
|
|
71
|
-
const
|
|
72
|
-
if (
|
|
73
|
-
const n = [...
|
|
74
|
-
n[e] = { ...n[e], [o]:
|
|
75
|
-
|
|
63
|
+
const T = (e, o, t) => {
|
|
64
|
+
if (!i.value || !a.value) return;
|
|
65
|
+
const l = v.value;
|
|
66
|
+
if (l.length > e) {
|
|
67
|
+
const n = [...l];
|
|
68
|
+
n[e] = { ...n[e], [o]: t }, (n[e].key !== "" || n[e].value !== "") && (n[e].enabled = !0), n[e].key === "" && n[e].value === "" && n.splice(e, 1), r.edit(
|
|
69
|
+
a.value.uid,
|
|
76
70
|
"body.formData.value",
|
|
77
71
|
n
|
|
78
72
|
);
|
|
79
73
|
} else {
|
|
80
|
-
const n = [
|
|
81
|
-
|
|
82
|
-
|
|
74
|
+
const n = [L.parse({ [o]: t })];
|
|
75
|
+
r.edit(
|
|
76
|
+
a.value.uid,
|
|
83
77
|
"body.formData.value",
|
|
84
78
|
n
|
|
85
|
-
),
|
|
86
|
-
var
|
|
79
|
+
), Z(() => {
|
|
80
|
+
var y;
|
|
87
81
|
if (!g.value) return;
|
|
88
|
-
(
|
|
82
|
+
(y = g.value.querySelectorAll("input")[o === "key" ? 0 : 1]) == null || y.focus();
|
|
89
83
|
});
|
|
90
84
|
}
|
|
91
|
-
},
|
|
85
|
+
}, v = w(
|
|
92
86
|
() => {
|
|
93
|
-
var e, o,
|
|
94
|
-
return ((
|
|
87
|
+
var e, o, t;
|
|
88
|
+
return ((t = (o = (e = a.value) == null ? void 0 : e.body) == null ? void 0 : o.formData) == null ? void 0 : t.value) ?? [];
|
|
95
89
|
}
|
|
96
|
-
),
|
|
97
|
-
if (!
|
|
98
|
-
const e =
|
|
90
|
+
), O = () => v.value.length === 0 && _(), _ = () => {
|
|
91
|
+
if (!i.value || !a.value) return;
|
|
92
|
+
const e = L.parse({
|
|
99
93
|
enabled: !1
|
|
100
|
-
}), o = [...
|
|
101
|
-
|
|
102
|
-
|
|
94
|
+
}), o = [...v.value, e];
|
|
95
|
+
a.value.body.formData ? r.edit(
|
|
96
|
+
a.value.uid,
|
|
103
97
|
"body.formData.value",
|
|
104
98
|
o
|
|
105
|
-
) :
|
|
99
|
+
) : r.edit(a.value.uid, "body.formData", {
|
|
106
100
|
value: o,
|
|
107
101
|
encoding: "form-data"
|
|
108
102
|
});
|
|
109
|
-
},
|
|
110
|
-
if (!
|
|
111
|
-
const
|
|
112
|
-
if (
|
|
113
|
-
const
|
|
114
|
-
|
|
115
|
-
|
|
103
|
+
}, P = (e, o) => {
|
|
104
|
+
if (!i.value || !a.value) return;
|
|
105
|
+
const t = v.value;
|
|
106
|
+
if (t.length > e) {
|
|
107
|
+
const l = [...t];
|
|
108
|
+
l[e].enabled = o, r.edit(
|
|
109
|
+
a.value.uid,
|
|
116
110
|
"body.formData.value",
|
|
117
|
-
|
|
111
|
+
l
|
|
118
112
|
);
|
|
119
113
|
}
|
|
120
|
-
},
|
|
121
|
-
!
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
114
|
+
}, $ = (e) => {
|
|
115
|
+
!i.value || !a.value || r.edit(a.value.uid, "body.raw.value", e);
|
|
116
|
+
}, H = (e) => e === "multipartForm" ? {
|
|
117
|
+
activeBody: "formData",
|
|
118
|
+
encoding: "form-data",
|
|
119
|
+
header: "multipart/form-data"
|
|
120
|
+
} : e === "formUrlEncoded" ? {
|
|
121
|
+
activeBody: "formData",
|
|
122
|
+
encoding: "urlencoded",
|
|
123
|
+
header: "application/x-www-form-urlencoded"
|
|
124
|
+
} : e === "binaryFile" ? {
|
|
125
|
+
activeBody: "binary",
|
|
126
|
+
encoding: void 0,
|
|
127
|
+
header: "application/octet-stream"
|
|
128
|
+
} : e === "json" ? {
|
|
129
|
+
activeBody: "raw",
|
|
130
|
+
encoding: "json",
|
|
131
|
+
header: "application/json"
|
|
132
|
+
} : e === "xml" ? {
|
|
133
|
+
activeBody: "raw",
|
|
134
|
+
encoding: "xml",
|
|
135
|
+
header: "application/xml"
|
|
136
|
+
} : e === "yaml" ? {
|
|
137
|
+
activeBody: "raw",
|
|
138
|
+
encoding: "yaml",
|
|
139
|
+
header: "application/yaml"
|
|
140
|
+
} : e === "edn" ? {
|
|
141
|
+
activeBody: "raw",
|
|
142
|
+
encoding: "edn",
|
|
143
|
+
header: "application/edn"
|
|
144
|
+
} : e === "other" ? {
|
|
145
|
+
activeBody: "raw",
|
|
146
|
+
encoding: "html",
|
|
147
|
+
header: "application/html"
|
|
148
|
+
} : { activeBody: "raw", encoding: void 0, header: void 0 }, E = (e) => {
|
|
149
|
+
var f, y;
|
|
150
|
+
if (!a.value) return;
|
|
151
|
+
const { activeBody: o, encoding: t, header: l } = H(e);
|
|
152
|
+
if (r.edit(
|
|
153
|
+
a.value.uid,
|
|
134
154
|
"body.activeBody",
|
|
135
155
|
o
|
|
156
|
+
), t && o === "raw")
|
|
157
|
+
r.edit(a.value.uid, "body.raw", {
|
|
158
|
+
encoding: t,
|
|
159
|
+
value: ((f = a.value.body.raw) == null ? void 0 : f.value) ?? ""
|
|
160
|
+
});
|
|
161
|
+
else if (t && o === "formData")
|
|
162
|
+
r.edit(a.value.uid, "body.formData", {
|
|
163
|
+
encoding: t,
|
|
164
|
+
value: ((y = a.value.body.formData) == null ? void 0 : y.value) ?? []
|
|
165
|
+
});
|
|
166
|
+
else if (!t) {
|
|
167
|
+
const { raw: V, ...Y } = a.value.body;
|
|
168
|
+
r.edit(a.value.uid, "body", Y);
|
|
169
|
+
}
|
|
170
|
+
const n = [...a.value.parameters.headers], d = n.findIndex(
|
|
171
|
+
(V) => V.key.toLowerCase() === "content-type"
|
|
172
|
+
);
|
|
173
|
+
d >= 0 ? l ? n[d].value = l : n.splice(d, 1) : l && n.unshift({
|
|
174
|
+
key: "Content-Type",
|
|
175
|
+
value: l,
|
|
176
|
+
enabled: !0
|
|
177
|
+
}), r.edit(
|
|
178
|
+
a.value.uid,
|
|
179
|
+
"parameters.headers",
|
|
180
|
+
n
|
|
136
181
|
);
|
|
137
|
-
},
|
|
138
|
-
const { open: o } =
|
|
139
|
-
onChange: async (
|
|
140
|
-
const
|
|
141
|
-
if (
|
|
142
|
-
const
|
|
143
|
-
|
|
144
|
-
...
|
|
145
|
-
file:
|
|
146
|
-
},
|
|
147
|
-
|
|
182
|
+
}, C = async (e) => {
|
|
183
|
+
const { open: o } = W({
|
|
184
|
+
onChange: async (t) => {
|
|
185
|
+
const l = t == null ? void 0 : t[0];
|
|
186
|
+
if (l && i.value && a.value) {
|
|
187
|
+
const d = [...v.value];
|
|
188
|
+
d[e] = {
|
|
189
|
+
...d[e],
|
|
190
|
+
file: l
|
|
191
|
+
}, r.edit(
|
|
192
|
+
a.value.uid,
|
|
148
193
|
"body.formData.value",
|
|
149
|
-
|
|
194
|
+
d
|
|
150
195
|
);
|
|
151
196
|
}
|
|
152
197
|
},
|
|
@@ -156,28 +201,28 @@ const ae = {
|
|
|
156
201
|
o();
|
|
157
202
|
};
|
|
158
203
|
function J() {
|
|
159
|
-
!
|
|
204
|
+
!i.value || !a.value || r.edit(a.value.uid, "body.binary", void 0);
|
|
160
205
|
}
|
|
161
|
-
function
|
|
162
|
-
if (!
|
|
163
|
-
const
|
|
164
|
-
|
|
165
|
-
...
|
|
206
|
+
function j(e) {
|
|
207
|
+
if (!i.value || !a.value) return;
|
|
208
|
+
const t = [...v.value];
|
|
209
|
+
t[e] = {
|
|
210
|
+
...t[e],
|
|
166
211
|
file: void 0
|
|
167
|
-
},
|
|
168
|
-
|
|
212
|
+
}, r.edit(
|
|
213
|
+
a.value.uid,
|
|
169
214
|
"body.formData.value",
|
|
170
|
-
|
|
215
|
+
t
|
|
171
216
|
);
|
|
172
217
|
}
|
|
173
218
|
function X() {
|
|
174
|
-
const { open: e } =
|
|
219
|
+
const { open: e } = W({
|
|
175
220
|
onChange: async (o) => {
|
|
176
|
-
const
|
|
177
|
-
|
|
178
|
-
|
|
221
|
+
const t = o == null ? void 0 : o[0];
|
|
222
|
+
t && i.value && a.value && r.edit(
|
|
223
|
+
a.value.uid,
|
|
179
224
|
"body.binary",
|
|
180
|
-
|
|
225
|
+
t
|
|
181
226
|
);
|
|
182
227
|
},
|
|
183
228
|
multiple: !1,
|
|
@@ -185,45 +230,52 @@ const ae = {
|
|
|
185
230
|
});
|
|
186
231
|
e();
|
|
187
232
|
}
|
|
188
|
-
return
|
|
189
|
-
|
|
233
|
+
return N(
|
|
234
|
+
m,
|
|
190
235
|
(e) => {
|
|
191
|
-
["multipartForm", "formUrlEncoded"].includes(e == null ? void 0 : e.id) &&
|
|
236
|
+
["multipartForm", "formUrlEncoded"].includes(e == null ? void 0 : e.id) && O();
|
|
237
|
+
},
|
|
238
|
+
{ immediate: !0 }
|
|
239
|
+
), N(
|
|
240
|
+
() => {
|
|
241
|
+
var e;
|
|
242
|
+
return (e = a.value) == null ? void 0 : e.uid;
|
|
243
|
+
},
|
|
244
|
+
() => {
|
|
245
|
+
var e;
|
|
246
|
+
(e = i.value) != null && e.method && ne(i.value.method) && E(k.value);
|
|
192
247
|
},
|
|
193
248
|
{ immediate: !0 }
|
|
194
|
-
), (e, o) => (
|
|
195
|
-
title:
|
|
196
|
-
|
|
249
|
+
), (e, o) => (p(), b(te, null, {
|
|
250
|
+
title: u(() => [
|
|
251
|
+
S(B(e.title), 1)
|
|
197
252
|
]),
|
|
198
|
-
default:
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
c(i(te), {
|
|
209
|
-
modelValue: s.value,
|
|
210
|
-
"onUpdate:modelValue": o[0] || (o[0] = (a) => s.value = a),
|
|
253
|
+
default: u(() => [
|
|
254
|
+
s(ee, { columns: [""] }, {
|
|
255
|
+
default: u(() => [
|
|
256
|
+
s(R, null, {
|
|
257
|
+
default: u(() => [
|
|
258
|
+
s(ae, { class: "relative col-span-full flex h-8 cursor-pointer items-center px-[2.25px] py-[2.25px]" }, {
|
|
259
|
+
default: u(() => [
|
|
260
|
+
s(c(oe), {
|
|
261
|
+
modelValue: m.value,
|
|
262
|
+
"onUpdate:modelValue": o[0] || (o[0] = (t) => m.value = t),
|
|
211
263
|
class: "text-xxs w-full",
|
|
212
264
|
fullWidth: "",
|
|
213
|
-
options:
|
|
265
|
+
options: c(h),
|
|
214
266
|
teleport: ""
|
|
215
267
|
}, {
|
|
216
|
-
default:
|
|
217
|
-
c(
|
|
268
|
+
default: u(() => [
|
|
269
|
+
s(c(F), {
|
|
218
270
|
class: "flex gap-1.5 h-auto px-1.5 text-c-2 font-normal hover:text-c-1",
|
|
219
271
|
fullWidth: "",
|
|
220
272
|
variant: "ghost"
|
|
221
273
|
}, {
|
|
222
|
-
default:
|
|
223
|
-
var
|
|
274
|
+
default: u(() => {
|
|
275
|
+
var t;
|
|
224
276
|
return [
|
|
225
|
-
|
|
226
|
-
c(
|
|
277
|
+
x("span", null, B((t = m.value) == null ? void 0 : t.label), 1),
|
|
278
|
+
s(c(q), {
|
|
227
279
|
icon: "ChevronDown",
|
|
228
280
|
size: "xs",
|
|
229
281
|
thickness: "2.5"
|
|
@@ -241,34 +293,34 @@ const ae = {
|
|
|
241
293
|
]),
|
|
242
294
|
_: 1
|
|
243
295
|
}),
|
|
244
|
-
|
|
245
|
-
default:
|
|
246
|
-
var
|
|
296
|
+
s(R, null, {
|
|
297
|
+
default: u(() => {
|
|
298
|
+
var t, l, n, d, f;
|
|
247
299
|
return [
|
|
248
|
-
|
|
249
|
-
(
|
|
250
|
-
|
|
251
|
-
c(
|
|
300
|
+
m.value.id === "none" ? (p(), D("div", re, ie)) : m.value.id === "binaryFile" ? (p(), D("div", ue, [
|
|
301
|
+
(t = c(a)) != null && t.body.binary ? (p(), D(Q, { key: 0 }, [
|
|
302
|
+
x("span", se, B(((l = c(a)) == null ? void 0 : l.body.binary).name), 1),
|
|
303
|
+
s(c(F), {
|
|
252
304
|
class: "bg-b-2 hover:bg-b-3 border-0 text-c-2 ml-1 shadow-none",
|
|
253
305
|
size: "sm",
|
|
254
306
|
variant: "outlined",
|
|
255
307
|
onClick: J
|
|
256
308
|
}, {
|
|
257
|
-
default:
|
|
258
|
-
|
|
309
|
+
default: u(() => [
|
|
310
|
+
S(" Delete ")
|
|
259
311
|
]),
|
|
260
312
|
_: 1
|
|
261
313
|
})
|
|
262
|
-
], 64)) : (
|
|
314
|
+
], 64)) : (p(), b(c(F), {
|
|
263
315
|
key: 1,
|
|
264
316
|
class: "bg-b-2 hover:bg-b-3 border-0 text-c-2 shadow-none",
|
|
265
317
|
size: "sm",
|
|
266
318
|
variant: "outlined",
|
|
267
319
|
onClick: X
|
|
268
320
|
}, {
|
|
269
|
-
default:
|
|
321
|
+
default: u(() => [
|
|
270
322
|
ce,
|
|
271
|
-
c(
|
|
323
|
+
s(c(q), {
|
|
272
324
|
class: "ml-1",
|
|
273
325
|
icon: "UploadSimple",
|
|
274
326
|
size: "xs",
|
|
@@ -277,56 +329,56 @@ const ae = {
|
|
|
277
329
|
]),
|
|
278
330
|
_: 1
|
|
279
331
|
}))
|
|
280
|
-
])) :
|
|
332
|
+
])) : m.value.id == "multipartForm" ? (p(), b(M, {
|
|
281
333
|
key: 2,
|
|
282
334
|
ref_key: "tableWrapperRef",
|
|
283
335
|
ref: g,
|
|
284
336
|
class: "!m-0 rounded-t-none shadow-none border-l-0 border-r-0 border-t-0 border-b-0",
|
|
285
337
|
columns: ["32px", "", "", "61px"],
|
|
286
|
-
items:
|
|
338
|
+
items: v.value,
|
|
287
339
|
showUploadButton: "",
|
|
288
|
-
onAddRow:
|
|
340
|
+
onAddRow: _,
|
|
289
341
|
onDeleteRow: U,
|
|
290
|
-
onRemoveFile:
|
|
291
|
-
onToggleRow:
|
|
292
|
-
onUpdateRow:
|
|
293
|
-
onUploadFile:
|
|
294
|
-
}, null, 8, ["items"])) :
|
|
342
|
+
onRemoveFile: j,
|
|
343
|
+
onToggleRow: P,
|
|
344
|
+
onUpdateRow: T,
|
|
345
|
+
onUploadFile: C
|
|
346
|
+
}, null, 8, ["items"])) : m.value.id == "formUrlEncoded" ? (p(), b(M, {
|
|
295
347
|
key: 3,
|
|
296
348
|
ref_key: "tableWrapperRef",
|
|
297
349
|
ref: g,
|
|
298
350
|
class: "!m-0 rounded-t-none border-t-0 shadow-none border-l-0 border-r-0 border-t-0 border-b-0",
|
|
299
351
|
columns: ["32px", "", "", "61px"],
|
|
300
|
-
items:
|
|
352
|
+
items: v.value,
|
|
301
353
|
showUploadButton: "",
|
|
302
|
-
onAddRow:
|
|
354
|
+
onAddRow: _,
|
|
303
355
|
onDeleteRow: U,
|
|
304
|
-
onRemoveFile:
|
|
305
|
-
onToggleRow:
|
|
306
|
-
onUpdateRow:
|
|
307
|
-
onUploadFile:
|
|
308
|
-
}, null, 8, ["items"])) : (
|
|
356
|
+
onRemoveFile: j,
|
|
357
|
+
onToggleRow: P,
|
|
358
|
+
onUpdateRow: T,
|
|
359
|
+
onUploadFile: C
|
|
360
|
+
}, null, 8, ["items"])) : (p(), b(I, {
|
|
309
361
|
key: 4,
|
|
310
362
|
content: "",
|
|
311
|
-
language:
|
|
363
|
+
language: z.value,
|
|
312
364
|
lineNumbers: "",
|
|
313
365
|
lint: "",
|
|
314
|
-
modelValue: ((
|
|
315
|
-
"onUpdate:modelValue":
|
|
366
|
+
modelValue: ((f = (d = (n = c(a)) == null ? void 0 : n.body) == null ? void 0 : d.raw) == null ? void 0 : f.value) ?? "",
|
|
367
|
+
"onUpdate:modelValue": $
|
|
316
368
|
}, null, 8, ["language", "modelValue"]))
|
|
317
369
|
];
|
|
318
370
|
}),
|
|
319
371
|
_: 1
|
|
320
372
|
}),
|
|
321
|
-
|
|
373
|
+
s(R)
|
|
322
374
|
]),
|
|
323
375
|
_: 1
|
|
324
|
-
})
|
|
376
|
+
})
|
|
325
377
|
]),
|
|
326
378
|
_: 1
|
|
327
379
|
}));
|
|
328
380
|
}
|
|
329
381
|
});
|
|
330
382
|
export {
|
|
331
|
-
|
|
383
|
+
Fe as default
|
|
332
384
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestPathParams.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestPathParams.vue"],"names":[],"mappings":"AAsIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;;
|
|
1
|
+
{"version":3,"file":"RequestPathParams.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestPathParams.vue"],"names":[],"mappings":"AAsIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;;WAO5D,MAAM;cACH,MAAM,cAAc,CAAC,YAAY,CAAC;;WADrC,MAAM;cACH,MAAM,cAAc,CAAC,YAAY,CAAC;;AAkM9C,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|