@scalar/api-client 2.1.8 → 2.1.10
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 +18 -0
- package/dist/assets/rabbit.ascii.js +11 -0
- package/dist/assets/rabbitjump.ascii.js +11 -0
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +7 -7
- package/dist/components/ContextBar.vue.d.ts.map +1 -1
- package/dist/components/ContextBar.vue.js +2 -2
- package/dist/components/ContextBar.vue2.js +22 -13
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +1 -1
- package/dist/components/IconSelector.vue.d.ts.map +1 -1
- package/dist/components/IconSelector.vue.js +4 -3
- package/dist/components/ScalarAsciiArt.vue.d.ts.map +1 -1
- package/dist/components/ScalarAsciiArt.vue.js +1 -1
- package/dist/components/ScalarAsciiArt.vue2.js +10 -10
- package/dist/components/SideNav/SideHelp.vue.js +1 -1
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +2 -2
- package/dist/components/SideNav/SideNav.vue2.js +19 -22
- package/dist/components/SideNav/SideNavLink.vue.d.ts +0 -2
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +19 -21
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +24 -26
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +1 -1
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +4 -4
- package/dist/layouts/App/create-api-client-app.d.ts +2 -2
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +4 -4
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.js +19 -17
- package/dist/libs/create-client.d.ts +7 -18
- 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 +1 -1
- package/dist/store/import-spec.d.ts +3 -2
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/import-spec.js +34 -26
- package/dist/store/store.d.ts +4 -4
- package/dist/style.css +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +74 -80
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +86 -92
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +1 -1
- package/dist/views/Request/Request.vue2.js +26 -26
- 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 +88 -80
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +45 -45
- 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 +131 -108
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +21 -21
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts +2 -2
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +14 -18
- 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 +8 -5
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +33 -33
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +48 -54
- package/package.json +3 -7
- package/dist/components/Search/SearchButton.vue.d.ts +0 -7
- package/dist/components/Search/SearchButton.vue.d.ts.map +0 -1
- package/dist/components/Search/SearchModal.vue.d.ts +0 -17
- package/dist/components/Search/SearchModal.vue.d.ts.map +0 -1
- package/dist/components/Search/SearchModal.vue.js +0 -7
- package/dist/components/Search/SearchModal.vue2.js +0 -142
- package/dist/components/Search/index.d.ts +0 -3
- package/dist/components/Search/index.d.ts.map +0 -1
- package/dist/components/Search/index.js +0 -4
- package/dist/components/SideNav/WorkspaceProfileIcon.vue.js +0 -31
- package/dist/components/SideNav/WorkspaceProfileIcon.vue3.js +0 -5
- package/dist/components/SubpageHeader.vue.js +0 -7
- package/dist/components/SubpageHeader.vue2.js +0 -34
|
@@ -1,156 +1,163 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { useModal as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
1
|
+
import { defineComponent as F, ref as A, computed as b, openBlock as d, createBlock as $, withCtx as n, createElementVNode as i, toDisplayString as D, createVNode as a, unref as c, createElementBlock as x, Fragment as q, renderList as z, createTextVNode as E, withModifiers as H, Teleport as K, createCommentVNode as L, pushScopeId as P, popScopeId as G } from "vue";
|
|
2
|
+
import J from "../../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
3
|
+
import { useModal as Q, ScalarComboboxMultiselect as X, ScalarButton as Y, ScalarIcon as V } from "@scalar/components";
|
|
4
|
+
import { nanoid as Z } from "nanoid";
|
|
5
|
+
import ee from "./DeleteRequestAuthModal.vue.js";
|
|
6
|
+
import te from "./RequestExampleAuth.vue.js";
|
|
7
|
+
import { displaySchemeFormatter as M, createSchemeValueSet as le } from "../../libs/auth.js";
|
|
8
|
+
import { ADD_AUTH_OPTIONS as oe } from "../../consts/new-auth-options.js";
|
|
9
|
+
import se from "../../../../components/DataTable/DataTable.vue.js";
|
|
10
|
+
import ae from "../../../../components/DataTable/DataTableRow.vue.js";
|
|
11
|
+
import ce from "../../../../components/DataTable/DataTableHeader.vue.js";
|
|
12
|
+
import { useWorkspace as ie } from "../../../../store/store.js";
|
|
13
|
+
const y = (v) => (P("data-v-b2a5825f"), v = v(), G(), v), re = { class: "flex gap-1" }, ne = /* @__PURE__ */ y(() => /* @__PURE__ */ i("div", { class: "text-c-2 h-8 flex min-w-[120px] items-center border-r-1/2 pr-0 pl-2" }, " Auth Type ", -1)), ue = {
|
|
13
14
|
key: 0,
|
|
14
15
|
class: "flex relative scroll-timeline-x w-full"
|
|
15
|
-
},
|
|
16
|
+
}, de = /* @__PURE__ */ y(() => /* @__PURE__ */ i("div", { class: "fade-left" }, null, -1)), me = { class: "flex flex-1 gap-0.75 mr-1.5 items-center" }, pe = /* @__PURE__ */ y(() => /* @__PURE__ */ i("div", null, "Hello World", -1)), fe = /* @__PURE__ */ y(() => /* @__PURE__ */ i("div", { class: "fade-right" }, null, -1)), he = {
|
|
16
17
|
key: 1,
|
|
17
18
|
class: "pl-2"
|
|
18
|
-
},
|
|
19
|
+
}, De = /* @__PURE__ */ F({
|
|
19
20
|
__name: "RequestAuth",
|
|
20
21
|
props: {
|
|
21
22
|
title: {}
|
|
22
23
|
},
|
|
23
|
-
setup(
|
|
24
|
+
setup(v) {
|
|
24
25
|
const {
|
|
25
|
-
activeCollection:
|
|
26
|
-
activeRequest:
|
|
27
|
-
collectionMutators:
|
|
26
|
+
activeCollection: u,
|
|
27
|
+
activeRequest: r,
|
|
28
|
+
collectionMutators: I,
|
|
28
29
|
isReadOnly: g,
|
|
29
30
|
requestMutators: k,
|
|
30
|
-
securitySchemes:
|
|
31
|
-
securitySchemeMutators:
|
|
32
|
-
} =
|
|
33
|
-
var o,
|
|
34
|
-
const e = (
|
|
31
|
+
securitySchemes: _,
|
|
32
|
+
securitySchemeMutators: O
|
|
33
|
+
} = ie(), R = A(null), S = Q(), C = A(void 0), w = `combobox-${Z()}`, T = b(() => {
|
|
34
|
+
var o, p, f;
|
|
35
|
+
const e = (p = (o = r.value) == null ? void 0 : o.security) == null ? void 0 : p.filter(
|
|
35
36
|
(s) => Object.keys(s).length
|
|
36
37
|
);
|
|
37
38
|
return ((g.value && (e != null && e.length) ? e.map((s) => {
|
|
38
|
-
var
|
|
39
|
+
var h;
|
|
39
40
|
const l = Object.keys(s)[0];
|
|
40
|
-
return ((
|
|
41
|
-
}) : (
|
|
42
|
-
}), U =
|
|
41
|
+
return ((h = Object.values(_).find((W) => W.nameKey === l)) == null ? void 0 : h.uid) ?? "";
|
|
42
|
+
}) : (f = u.value) == null ? void 0 : f.securitySchemes) ?? []).map((s) => _[s]).filter((s) => s);
|
|
43
|
+
}), U = b(
|
|
43
44
|
() => {
|
|
44
|
-
const e =
|
|
45
|
+
const e = T.value.map(
|
|
45
46
|
(t) => M(t)
|
|
46
47
|
);
|
|
47
48
|
return g.value ? e : [
|
|
48
49
|
{ label: "Select auth", options: e },
|
|
49
50
|
{
|
|
50
51
|
label: "Add new auth",
|
|
51
|
-
options:
|
|
52
|
+
options: oe
|
|
52
53
|
}
|
|
53
54
|
];
|
|
54
55
|
}
|
|
55
|
-
),
|
|
56
|
+
), m = b(
|
|
56
57
|
() => {
|
|
57
58
|
var e;
|
|
58
|
-
return ((e =
|
|
59
|
-
(t) => M(
|
|
59
|
+
return ((e = r.value) == null ? void 0 : e.selectedSecuritySchemeUids.map(
|
|
60
|
+
(t) => M(_[t])
|
|
60
61
|
)) ?? [];
|
|
61
62
|
}
|
|
62
63
|
);
|
|
63
|
-
function
|
|
64
|
-
var
|
|
65
|
-
if (!((
|
|
64
|
+
function N(e) {
|
|
65
|
+
var f, s;
|
|
66
|
+
if (!((f = u.value) != null && f.uid) || !((s = r.value) != null && s.uid)) return;
|
|
66
67
|
const t = e.find((l) => l.payload), o = e.filter((l) => !l.payload).map(({ id: l }) => l);
|
|
67
68
|
if (t != null && t.payload) {
|
|
68
|
-
const l =
|
|
69
|
+
const l = O.add(
|
|
69
70
|
t.payload,
|
|
70
|
-
|
|
71
|
+
u.value.uid
|
|
71
72
|
);
|
|
72
73
|
o.push(l.uid);
|
|
73
74
|
}
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
const p = o.filter((l) => !u.value.auth[l]);
|
|
76
|
+
I.edit(
|
|
77
|
+
u.value.uid,
|
|
77
78
|
"auth",
|
|
78
|
-
|
|
79
|
+
p.reduce((l, h) => (l[h] = le(_[h]), l), u.value.auth)
|
|
79
80
|
), k.edit(
|
|
80
|
-
|
|
81
|
+
r.value.uid,
|
|
81
82
|
"selectedSecuritySchemeUids",
|
|
82
83
|
o
|
|
83
84
|
);
|
|
84
85
|
}
|
|
85
|
-
const
|
|
86
|
-
|
|
86
|
+
const j = (e) => r.value && k.edit(
|
|
87
|
+
r.value.uid,
|
|
87
88
|
"selectedSecuritySchemeUids",
|
|
88
|
-
|
|
89
|
+
r.value.selectedSecuritySchemeUids.filter(
|
|
89
90
|
(t) => t !== e
|
|
90
91
|
)
|
|
91
92
|
);
|
|
92
|
-
function
|
|
93
|
-
|
|
93
|
+
function B(e) {
|
|
94
|
+
C.value = e, S.show();
|
|
94
95
|
}
|
|
95
|
-
return (e, t) => (
|
|
96
|
+
return (e, t) => (d(), $(J, {
|
|
96
97
|
class: "group/params",
|
|
97
|
-
itemCount:
|
|
98
|
+
itemCount: m.value.length
|
|
98
99
|
}, {
|
|
99
100
|
title: n(() => [
|
|
100
|
-
|
|
101
|
+
i("div", re, D(e.title), 1)
|
|
101
102
|
]),
|
|
102
103
|
default: n(() => [
|
|
103
|
-
|
|
104
|
-
a(c(
|
|
104
|
+
i("form", null, [
|
|
105
|
+
a(c(se), {
|
|
105
106
|
class: "flex-1",
|
|
106
107
|
columns: [""]
|
|
107
108
|
}, {
|
|
108
109
|
default: n(() => [
|
|
109
|
-
a(c(
|
|
110
|
+
a(c(ae), null, {
|
|
110
111
|
default: n(() => [
|
|
111
|
-
a(c(
|
|
112
|
+
a(c(ce), { class: "relative col-span-full cursor-pointer py-[0px] px-[0px] flex items-center" }, {
|
|
112
113
|
default: n(() => [
|
|
113
|
-
a(c(
|
|
114
|
+
a(c(X), {
|
|
114
115
|
ref_key: "comboboxRef",
|
|
115
|
-
ref:
|
|
116
|
+
ref: R,
|
|
116
117
|
class: "text-xs w-full",
|
|
117
118
|
fullWidth: "",
|
|
118
119
|
isDeletable: "",
|
|
119
|
-
modelValue:
|
|
120
|
+
modelValue: m.value,
|
|
120
121
|
multiple: "",
|
|
121
122
|
options: U.value,
|
|
122
123
|
style: { "margin-left": "120px" },
|
|
123
|
-
teleport:
|
|
124
|
-
onDelete:
|
|
125
|
-
"onUpdate:modelValue":
|
|
124
|
+
teleport: `#${w}`,
|
|
125
|
+
onDelete: B,
|
|
126
|
+
"onUpdate:modelValue": N
|
|
126
127
|
}, {
|
|
127
128
|
default: n(() => [
|
|
128
|
-
a(c(
|
|
129
|
+
a(c(Y), {
|
|
129
130
|
class: "h-auto py-0 px-0 text-c-2 hover:text-c-1 font-normal justify-start",
|
|
130
131
|
fullWidth: "",
|
|
131
132
|
variant: "ghost"
|
|
132
133
|
}, {
|
|
133
134
|
default: n(() => [
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
(
|
|
135
|
+
ne,
|
|
136
|
+
m.value.length ? (d(), x("div", ue, [
|
|
137
|
+
de,
|
|
138
|
+
i("div", me, [
|
|
139
|
+
(d(!0), x(q, null, z(m.value, (o) => (d(), x("span", {
|
|
139
140
|
key: o.id,
|
|
140
141
|
class: "cm-pill flex items-center mx-0 h-fit"
|
|
141
142
|
}, [
|
|
142
|
-
|
|
143
|
-
a(c(
|
|
143
|
+
E(D(o.label) + " ", 1),
|
|
144
|
+
a(c(V), {
|
|
144
145
|
class: "ml-1 cursor-pointer text-c-3 hover:text-c-1",
|
|
145
146
|
icon: "Close",
|
|
146
147
|
size: "xs",
|
|
147
|
-
onClick:
|
|
148
|
+
onClick: H((p) => j(o.id), ["stop"])
|
|
148
149
|
}, null, 8, ["onClick"])
|
|
149
150
|
]))), 128))
|
|
150
151
|
]),
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
152
|
+
m.value.length ? (d(), $(K, {
|
|
153
|
+
key: 0,
|
|
154
|
+
to: "body"
|
|
155
|
+
}, [
|
|
156
|
+
pe
|
|
157
|
+
])) : L("", !0),
|
|
158
|
+
fe
|
|
159
|
+
])) : (d(), x("div", he, " None ")),
|
|
160
|
+
a(c(V), {
|
|
154
161
|
class: "min-w-3 ml-auto mr-2.5",
|
|
155
162
|
icon: "ChevronDown",
|
|
156
163
|
size: "xs"
|
|
@@ -160,22 +167,23 @@ const b = (h) => (K("data-v-cdda9bac"), h = h(), H(), h), se = { class: "flex ga
|
|
|
160
167
|
})
|
|
161
168
|
]),
|
|
162
169
|
_: 1
|
|
163
|
-
}, 8, ["modelValue", "options"])
|
|
170
|
+
}, 8, ["modelValue", "options", "teleport"])
|
|
164
171
|
]),
|
|
165
172
|
_: 1
|
|
166
173
|
})
|
|
167
174
|
]),
|
|
168
175
|
_: 1
|
|
169
176
|
}),
|
|
170
|
-
a(
|
|
177
|
+
a(te)
|
|
171
178
|
]),
|
|
172
179
|
_: 1
|
|
173
180
|
}),
|
|
174
|
-
a(
|
|
175
|
-
scheme:
|
|
176
|
-
state: c(
|
|
177
|
-
onClose: t[0] || (t[0] = (o) => c(
|
|
178
|
-
}, null, 8, ["scheme", "state"])
|
|
181
|
+
a(ee, {
|
|
182
|
+
scheme: C.value,
|
|
183
|
+
state: c(S),
|
|
184
|
+
onClose: t[0] || (t[0] = (o) => c(S).hide())
|
|
185
|
+
}, null, 8, ["scheme", "state"]),
|
|
186
|
+
i("div", { id: w })
|
|
179
187
|
])
|
|
180
188
|
]),
|
|
181
189
|
_: 1
|
|
@@ -183,5 +191,5 @@ const b = (h) => (K("data-v-cdda9bac"), h = h(), H(), h), se = { class: "flex ga
|
|
|
183
191
|
}
|
|
184
192
|
});
|
|
185
193
|
export {
|
|
186
|
-
|
|
194
|
+
De as default
|
|
187
195
|
};
|
|
@@ -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":";AAuaA,wBAKG"}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { ScalarIcon as
|
|
8
|
-
import { canMethodHaveBody as
|
|
9
|
-
import
|
|
10
|
-
import { useWorkspace as
|
|
11
|
-
const
|
|
1
|
+
import { defineComponent as B, computed as _, ref as g, watch as R, openBlock as m, createBlock as C, withCtx as x, createVNode as n, unref as a, createElementVNode as A, createTextVNode as w, createElementBlock as d, createCommentVNode as H, toDisplayString as N, withDirectives as r, vShow as u } from "vue";
|
|
2
|
+
import V from "../../../components/ContextBar.vue.js";
|
|
3
|
+
import b from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
4
|
+
import E from "./RequestBody.vue.js";
|
|
5
|
+
import v from "./RequestParams.vue.js";
|
|
6
|
+
import K from "./RequestPathParams.vue.js";
|
|
7
|
+
import { ScalarIcon as $ } from "@scalar/components";
|
|
8
|
+
import { canMethodHaveBody as f } from "@scalar/oas-utils/helpers";
|
|
9
|
+
import Q from "./RequestAuth/RequestAuth.vue.js";
|
|
10
|
+
import { useWorkspace as D } from "../../../store/store.js";
|
|
11
|
+
const I = { class: "flex-1 flex gap-1 items-center lg:pr-24 pointer-events-none" }, M = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "absolute w-full h-full top-0 left-0 pointer-events-auto opacity-0 cursor-text",
|
|
14
14
|
for: "requestname"
|
|
15
|
-
},
|
|
15
|
+
}, P = ["value"], z = {
|
|
16
16
|
key: 2,
|
|
17
17
|
class: "text-c-2"
|
|
18
|
-
},
|
|
18
|
+
}, L = { class: "request-section-content custom-scroll flex flex-1 flex-col px-2 xl:px-5 py-2.5" }, ee = /* @__PURE__ */ B({
|
|
19
19
|
__name: "RequestSection",
|
|
20
|
-
setup(
|
|
21
|
-
const { activeRequest: o, activeExample:
|
|
20
|
+
setup(O) {
|
|
21
|
+
const { activeRequest: o, activeExample: h, isReadOnly: p, requestMutators: k } = D(), q = _(() => {
|
|
22
22
|
var l, s;
|
|
23
23
|
const t = /* @__PURE__ */ new Set([
|
|
24
24
|
"Query",
|
|
@@ -29,91 +29,91 @@ const M = { class: "flex-1 flex gap-1 items-center pointer-events-none" }, P = {
|
|
|
29
29
|
"Body",
|
|
30
30
|
"All"
|
|
31
31
|
]);
|
|
32
|
-
return (l =
|
|
33
|
-
}),
|
|
32
|
+
return (l = h.value) != null && l.parameters.path.length || t.delete("Request"), f(((s = o.value) == null ? void 0 : s.method) ?? "get") || t.delete("Body"), y.value && t.delete("Auth"), [...t];
|
|
33
|
+
}), y = _(
|
|
34
34
|
() => {
|
|
35
35
|
var t, l;
|
|
36
|
-
return
|
|
36
|
+
return p.value && ((l = (t = o.value) == null ? void 0 : t.security) == null ? void 0 : l.length) === 0;
|
|
37
37
|
}
|
|
38
38
|
), e = g("All");
|
|
39
|
-
|
|
40
|
-
e.value === "Body" && t && !
|
|
39
|
+
R(o, (t) => {
|
|
40
|
+
e.value === "Body" && t && !f(t.method) && (e.value = "All");
|
|
41
41
|
});
|
|
42
42
|
const S = (t) => {
|
|
43
43
|
if (!o.value) return;
|
|
44
44
|
const l = t.target;
|
|
45
45
|
k.edit(o.value.uid, "summary", l.value);
|
|
46
46
|
};
|
|
47
|
-
return (t, l) => (
|
|
47
|
+
return (t, l) => (m(), C(b, null, {
|
|
48
48
|
title: x(() => {
|
|
49
49
|
var s, i;
|
|
50
50
|
return [
|
|
51
|
-
n(a(
|
|
51
|
+
n(a($), {
|
|
52
52
|
class: "text-c-3 mr-2 pointer-events-none",
|
|
53
53
|
icon: "ExternalLink",
|
|
54
54
|
size: "sm",
|
|
55
55
|
thickness: "2.5"
|
|
56
56
|
}),
|
|
57
|
-
A("div",
|
|
58
|
-
|
|
59
|
-
a(
|
|
60
|
-
a(
|
|
57
|
+
A("div", I, [
|
|
58
|
+
w(" Request "),
|
|
59
|
+
a(p) ? H("", !0) : (m(), d("label", M)),
|
|
60
|
+
a(p) ? (m(), d("span", z, N((i = a(o)) == null ? void 0 : i.summary), 1)) : (m(), d("input", {
|
|
61
61
|
key: 1,
|
|
62
62
|
id: "requestname",
|
|
63
63
|
class: "outline-none border-0 text-c-2 rounded pointer-events-auto relative w-full",
|
|
64
64
|
placeholder: "Request Name",
|
|
65
65
|
value: (s = a(o)) == null ? void 0 : s.summary,
|
|
66
66
|
onInput: S
|
|
67
|
-
}, null, 40,
|
|
68
|
-
])
|
|
67
|
+
}, null, 40, P))
|
|
68
|
+
]),
|
|
69
|
+
n(V, {
|
|
70
|
+
activeSection: e.value,
|
|
71
|
+
sections: q.value,
|
|
72
|
+
onSetActiveSection: l[0] || (l[0] = (c) => e.value = c)
|
|
73
|
+
}, null, 8, ["activeSection", "sections"])
|
|
69
74
|
];
|
|
70
75
|
}),
|
|
71
76
|
default: x(() => {
|
|
72
|
-
var s, i,
|
|
77
|
+
var s, i, c;
|
|
73
78
|
return [
|
|
74
|
-
A("div",
|
|
75
|
-
n(
|
|
76
|
-
activeSection: e.value,
|
|
77
|
-
sections: q.value,
|
|
78
|
-
onSetActiveSection: l[0] || (l[0] = (B) => e.value = B)
|
|
79
|
-
}, null, 8, ["activeSection", "sections"]),
|
|
80
|
-
r(n(D, { title: "Authentication" }, null, 512), [
|
|
79
|
+
A("div", L, [
|
|
80
|
+
r(n(Q, { title: "Authentication" }, null, 512), [
|
|
81
81
|
[
|
|
82
82
|
u,
|
|
83
|
-
!
|
|
83
|
+
!y.value && (e.value === "All" || e.value === "Auth")
|
|
84
84
|
]
|
|
85
85
|
]),
|
|
86
|
-
r(n(
|
|
86
|
+
r(n(K, {
|
|
87
87
|
paramKey: "path",
|
|
88
88
|
title: "Path Variables"
|
|
89
89
|
}, null, 512), [
|
|
90
90
|
[
|
|
91
91
|
u,
|
|
92
|
-
(e.value === "All" || e.value === "Request") && ((
|
|
92
|
+
(e.value === "All" || e.value === "Request") && ((c = (i = (s = a(h)) == null ? void 0 : s.parameters) == null ? void 0 : i.path) == null ? void 0 : c.length)
|
|
93
93
|
]
|
|
94
94
|
]),
|
|
95
|
-
r(n(
|
|
95
|
+
r(n(v, {
|
|
96
96
|
paramKey: "cookies",
|
|
97
97
|
title: "Cookies"
|
|
98
98
|
}, null, 512), [
|
|
99
99
|
[u, e.value === "All" || e.value === "Cookies"]
|
|
100
100
|
]),
|
|
101
|
-
r(n(
|
|
101
|
+
r(n(v, {
|
|
102
102
|
paramKey: "headers",
|
|
103
103
|
title: "Headers"
|
|
104
104
|
}, null, 512), [
|
|
105
105
|
[u, e.value === "All" || e.value === "Headers"]
|
|
106
106
|
]),
|
|
107
|
-
r(n(
|
|
107
|
+
r(n(v, {
|
|
108
108
|
paramKey: "query",
|
|
109
109
|
title: "Query Parameters"
|
|
110
110
|
}, null, 512), [
|
|
111
111
|
[u, e.value === "All" || e.value === "Query"]
|
|
112
112
|
]),
|
|
113
|
-
r(n(
|
|
113
|
+
r(n(E, { title: "Body" }, null, 512), [
|
|
114
114
|
[
|
|
115
115
|
u,
|
|
116
|
-
a(o) && (e.value === "All" || e.value === "Body") && a(
|
|
116
|
+
a(o) && (e.value === "All" || e.value === "Body") && a(f)(a(o).method)
|
|
117
117
|
]
|
|
118
118
|
])
|
|
119
119
|
])
|
|
@@ -124,5 +124,5 @@ const M = { class: "flex-1 flex gap-1 items-center pointer-events-none" }, P = {
|
|
|
124
124
|
}
|
|
125
125
|
});
|
|
126
126
|
export {
|
|
127
|
-
|
|
127
|
+
ee as default
|
|
128
128
|
};
|
|
@@ -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":";iBAgVe,OAAO;gBACR,OAAO;;;;cAMkB,MAAM;aAAO,MAAM;;;iBAP3C,OAAO;gBACR,OAAO;;;cAMkB,MAAM;aAAO,MAAM;;;;AAklB1D,wBAOG;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"}
|
|
@@ -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
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-07523d65"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|