@scalar/api-client 2.0.39 → 2.0.41
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 +24 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +2 -2
- package/dist/components/AddressBar/AddressBar.vue2.js +1 -1
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts.map +1 -1
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +11 -11
- package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/Search/SearchButton.vue.d.ts.map +1 -1
- package/dist/components/Search/SearchButton.vue.js +5 -28
- package/dist/components/Search/SearchButton.vue2.js +28 -2
- package/dist/components/SideNav/SideHelp.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideHelp.vue.js +26 -28
- 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 +5 -5
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +6 -6
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +14 -10
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +4 -4
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts +20 -20
- package/dist/layouts/Modal/create-api-client-modal.d.ts +40 -40
- package/dist/libs/create-client.d.ts +20 -20
- package/dist/libs/sendRequest.d.ts.map +1 -1
- package/dist/libs/sendRequest.js +87 -70
- package/dist/store/workspace.d.ts +64 -64
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +129 -132
- 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 +206 -146
- package/dist/views/Request/RequestSidebarItem.vue.d.ts +4 -4
- 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 +105 -92
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +44 -44
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts +3 -17
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +89 -5
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +2 -37
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts +18 -0
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +34 -0
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue2.js +4 -0
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.d.ts +12 -0
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.js +14 -0
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts +23 -0
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +7 -0
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +65 -0
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts +19 -0
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +7 -0
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +29 -0
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.d.ts +20 -0
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +25 -0
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue2.js +4 -0
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +61 -63
- package/dist/views/Request/consts/index.d.ts +2 -0
- package/dist/views/Request/consts/index.d.ts.map +1 -1
- package/dist/views/Request/consts/index.js +6 -3
- package/dist/views/Request/consts/mediaTypes.d.ts +16 -0
- package/dist/views/Request/consts/mediaTypes.d.ts.map +1 -0
- package/dist/views/Request/consts/mediaTypes.js +108 -0
- package/package.json +9 -7
|
@@ -1,219 +1,279 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { commandPaletteBus as
|
|
10
|
-
import { useWorkspace as
|
|
11
|
-
import
|
|
1
|
+
import { defineComponent as oe, ref as re, watch as se, onMounted as ie, onBeforeUnmount as le, openBlock as b, createElementBlock as S, Fragment as V, createElementVNode as h, normalizeClass as x, createVNode as n, unref as i, createCommentVNode as U, withCtx as v, withDirectives as ae, createSlots as ne, withModifiers as $, renderList as de, createBlock as R, createTextVNode as ce, vShow as ue, pushScopeId as me, popScopeId as fe } from "vue";
|
|
2
|
+
import pe from "../../components/AddressBar/AddressBar.vue.js";
|
|
3
|
+
import ve from "../../components/Search/SearchButton.vue.js";
|
|
4
|
+
import he from "../../components/Search/SearchModal.vue.js";
|
|
5
|
+
import be from "../../components/Sidebar/SidebarButton.vue.js";
|
|
6
|
+
import xe from "../../components/Sidebar/SidebarToggle.vue.js";
|
|
7
|
+
import ge from "../../components/ViewLayout/ViewLayout.vue.js";
|
|
8
|
+
import ye from "../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
9
|
+
import { commandPaletteBus as N } from "../../libs/eventBusses/command-palette.js";
|
|
10
|
+
import { useWorkspace as we } from "../../store/workspace.js";
|
|
11
|
+
import _e from "./RequestSection/RequestSection.vue.js";
|
|
12
12
|
/* empty css */
|
|
13
|
-
import
|
|
14
|
-
import { useModal as
|
|
15
|
-
import { REQUEST_METHODS as
|
|
16
|
-
import { isMacOS as
|
|
17
|
-
import { useMagicKeys as
|
|
18
|
-
import
|
|
19
|
-
import
|
|
13
|
+
import ke from "./ResponseSection/ResponseSection.vue.js";
|
|
14
|
+
import { useModal as Se, ScalarIcon as C } from "@scalar/components";
|
|
15
|
+
import { REQUEST_METHODS as Ue } from "@scalar/oas-utils/helpers";
|
|
16
|
+
import { isMacOS as F } from "@scalar/use-tooltip";
|
|
17
|
+
import { useMagicKeys as Re, useEventListener as Ce } from "@vueuse/core";
|
|
18
|
+
import Oe from "./RequestSidebarItem.vue.js";
|
|
19
|
+
import De from "../../components/Sidebar/Sidebar.vue.js";
|
|
20
20
|
/* empty css */
|
|
21
|
-
import
|
|
22
|
-
import { useSidebar as
|
|
23
|
-
import { sendRequest as
|
|
24
|
-
import { executeRequestBus as
|
|
25
|
-
const
|
|
21
|
+
import Me from "./components/WorkspaceDropdown.vue.js";
|
|
22
|
+
import { useSidebar as qe } from "../../hooks/useSidebar.js";
|
|
23
|
+
import { sendRequest as Be } from "../../libs/sendRequest.js";
|
|
24
|
+
import { executeRequestBus as P } from "../../libs/eventBusses/executeRequestBus.js";
|
|
25
|
+
const Ee = (y) => (me("data-v-b7d1e57f"), y = y(), fe(), y), Ie = { class: "lg:min-h-header flex items-center w-full justify-center p-1 flex-wrap t-app__top-container" }, Ve = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 w-6/12" }, $e = /* @__PURE__ */ Ee(() => /* @__PURE__ */ h("a", {
|
|
26
26
|
class: "text-c-2 text-sm font-medium gitbook-show ml-.5 hover:text-c-1 border p-1 rounded hover:bg-b-3",
|
|
27
27
|
href: "https://scalar.com/",
|
|
28
28
|
target: "_blank"
|
|
29
|
-
}, " Powered by Scalar.com ", -1)),
|
|
29
|
+
}, " Powered by Scalar.com ", -1)), Ne = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 justify-end w-6/12" }, nt = /* @__PURE__ */ oe({
|
|
30
30
|
__name: "Request",
|
|
31
|
-
setup(
|
|
32
|
-
var
|
|
31
|
+
setup(y) {
|
|
32
|
+
var I;
|
|
33
33
|
const {
|
|
34
|
-
activeExample:
|
|
35
|
-
activeRequest:
|
|
36
|
-
activeSecuritySchemes:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
cookies:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
34
|
+
activeExample: w,
|
|
35
|
+
activeRequest: u,
|
|
36
|
+
activeSecuritySchemes: W,
|
|
37
|
+
activeWorkspace: a,
|
|
38
|
+
activeWorkspaceCollections: z,
|
|
39
|
+
activeWorkspaceServers: L,
|
|
40
|
+
activeWorkspaceRequests: T,
|
|
41
|
+
collectionMutators: O,
|
|
42
|
+
collections: m,
|
|
43
|
+
cookies: j,
|
|
44
|
+
environments: A,
|
|
45
|
+
findRequestFolders: H,
|
|
46
|
+
folders: g,
|
|
47
|
+
folderMutators: D,
|
|
48
|
+
modalState: J,
|
|
49
|
+
requestMutators: K,
|
|
50
|
+
workspaceMutators: M
|
|
51
|
+
} = we(), { collapsedSidebarFolders: Q, setCollapsedSidebarFolder: G } = qe(), q = Se(), f = re(!((I = a.value) != null && I.isReadOnly));
|
|
52
|
+
se(
|
|
53
|
+
u,
|
|
54
|
+
(e) => {
|
|
55
|
+
e && H(e.uid).forEach(
|
|
56
|
+
(t) => G(t, !0)
|
|
57
|
+
);
|
|
58
|
+
},
|
|
59
|
+
{ immediate: !0 }
|
|
60
|
+
);
|
|
61
|
+
const B = async () => {
|
|
62
|
+
var d;
|
|
63
|
+
if (!u.value || !w.value) {
|
|
47
64
|
console.warn(
|
|
48
65
|
"There is no request active at the moment. Please select one then try again."
|
|
49
66
|
);
|
|
50
67
|
return;
|
|
51
68
|
}
|
|
52
|
-
let
|
|
53
|
-
const
|
|
54
|
-
(
|
|
69
|
+
let e = w.value.url;
|
|
70
|
+
const t = Object.values(A).reduce(
|
|
71
|
+
(c, s) => {
|
|
55
72
|
try {
|
|
56
|
-
return { ...
|
|
73
|
+
return { ...c, ...JSON.parse(s.raw) };
|
|
57
74
|
} catch {
|
|
58
|
-
return
|
|
75
|
+
return c;
|
|
59
76
|
}
|
|
60
77
|
},
|
|
61
78
|
{}
|
|
62
|
-
),
|
|
63
|
-
|
|
64
|
-
if (
|
|
65
|
-
return
|
|
66
|
-
}),
|
|
67
|
-
const { request:
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
(
|
|
73
|
-
|
|
79
|
+
), o = /\{\{(.*?)\}\}/g;
|
|
80
|
+
e = e.replace(o, (c, s) => (L.value.forEach((p) => {
|
|
81
|
+
if (p.url === s)
|
|
82
|
+
return s;
|
|
83
|
+
}), t[s] || s));
|
|
84
|
+
const { request: r, response: l } = await Be(
|
|
85
|
+
u.value,
|
|
86
|
+
w.value,
|
|
87
|
+
e,
|
|
88
|
+
W.value,
|
|
89
|
+
(d = a.value) == null ? void 0 : d.proxyUrl,
|
|
90
|
+
j
|
|
74
91
|
);
|
|
75
|
-
|
|
76
|
-
...
|
|
92
|
+
r && l ? K.edit(u.value.uid, "history", [
|
|
93
|
+
...u.value.history,
|
|
77
94
|
{
|
|
78
|
-
request:
|
|
79
|
-
response:
|
|
95
|
+
request: r,
|
|
96
|
+
response: l,
|
|
80
97
|
timestamp: Date.now()
|
|
81
98
|
}
|
|
82
99
|
]) : console.warn("No response or request was returned");
|
|
83
100
|
};
|
|
84
|
-
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
101
|
+
ie(() => P.on(B)), le(() => P.off(B));
|
|
102
|
+
const E = (e, t) => {
|
|
103
|
+
m[e] ? O.edit(e, "childUids", t) : g[e] && D.edit(e, "childUids", t);
|
|
104
|
+
}, X = (e, t) => {
|
|
105
|
+
if (!e || !t) return;
|
|
106
|
+
const { id: o, parentId: r } = e, { id: l, parentId: d, offset: c } = t;
|
|
107
|
+
if (r ? m[r] ? O.edit(
|
|
108
|
+
r,
|
|
109
|
+
"childUids",
|
|
110
|
+
m[r].childUids.filter(
|
|
111
|
+
(s) => s !== o
|
|
112
|
+
)
|
|
113
|
+
) : g[r] && D.edit(
|
|
114
|
+
r,
|
|
115
|
+
"childUids",
|
|
116
|
+
g[r].childUids.filter((s) => s !== o)
|
|
117
|
+
) : M.edit(
|
|
118
|
+
a.value.uid,
|
|
119
|
+
"collectionUids",
|
|
120
|
+
a.value.collectionUids.filter((s) => s !== o)
|
|
121
|
+
), c === 2) {
|
|
122
|
+
const s = m[l] || g[l];
|
|
123
|
+
E(l, [...s.childUids, o]);
|
|
124
|
+
} else if (d) {
|
|
125
|
+
const p = [...(m[d] || g[d]).childUids], k = p.findIndex((te) => l === te) ?? 0;
|
|
126
|
+
p.splice(k + c, 0, o), E(d, p);
|
|
127
|
+
} else {
|
|
128
|
+
const s = [...a.value.collectionUids], p = s.findIndex((k) => l === k) ?? 0;
|
|
129
|
+
s.splice(p + c, 0, o), M.edit(
|
|
130
|
+
a.value.uid,
|
|
131
|
+
"collectionUids",
|
|
132
|
+
s
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
}, Y = () => N.emit(), _ = Re();
|
|
136
|
+
Ce(document, "keydown", (e) => {
|
|
137
|
+
(F() ? _.meta.value : _.ctrl.value) && e.key === "b" && (f.value = !f.value), !a.value.isReadOnly && (F() ? _.meta.value : _.ctrl.value) && e.key === "k" && N.emit();
|
|
89
138
|
});
|
|
90
|
-
const
|
|
91
|
-
if (!
|
|
92
|
-
const { method:
|
|
93
|
-
return
|
|
139
|
+
const Z = () => {
|
|
140
|
+
if (!u.value) return "";
|
|
141
|
+
const { method: e } = u.value;
|
|
142
|
+
return Ue[e].backgroundColor;
|
|
143
|
+
}, ee = (e, t) => {
|
|
144
|
+
var o, r, l;
|
|
145
|
+
return !(a.value.isReadOnly || !m[e.id] && t.offset !== 2 || m[e.id] && ((l = (r = (o = m[t.id]) == null ? void 0 : o.spec) == null ? void 0 : r.info) == null ? void 0 : l.title) === "Drafts");
|
|
94
146
|
};
|
|
95
|
-
return (
|
|
96
|
-
|
|
97
|
-
class: x(["flex flex-1 flex-col rounded rounded-b-none rounded-r-none pt-0 h-full client-wrapper-bg-color relative",
|
|
147
|
+
return (e, t) => (b(), S(V, null, [
|
|
148
|
+
h("div", {
|
|
149
|
+
class: x(["flex flex-1 flex-col rounded rounded-b-none rounded-r-none pt-0 h-full client-wrapper-bg-color relative", Z()])
|
|
98
150
|
}, [
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
modelValue:
|
|
103
|
-
"onUpdate:modelValue":
|
|
151
|
+
h("div", Ie, [
|
|
152
|
+
h("div", Ve, [
|
|
153
|
+
n(xe, {
|
|
154
|
+
modelValue: f.value,
|
|
155
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => f.value = o),
|
|
104
156
|
class: "gitbook-hidden"
|
|
105
157
|
}, null, 8, ["modelValue"]),
|
|
106
|
-
|
|
158
|
+
$e
|
|
107
159
|
]),
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
160
|
+
n(pe),
|
|
161
|
+
h("div", Ne, [
|
|
162
|
+
i(a).isReadOnly ? (b(), S("button", {
|
|
111
163
|
key: 0,
|
|
112
164
|
class: "text-c-3 hover:bg-b-3 active:text-c-1 p-2 rounded",
|
|
113
165
|
type: "button",
|
|
114
|
-
onClick:
|
|
166
|
+
onClick: t[1] || (t[1] = (o) => i(J).hide())
|
|
115
167
|
}, [
|
|
116
|
-
|
|
168
|
+
n(i(C), {
|
|
117
169
|
icon: "Close",
|
|
118
170
|
size: "lg",
|
|
119
171
|
thickness: "1.75"
|
|
120
172
|
})
|
|
121
|
-
])) :
|
|
173
|
+
])) : U("", !0)
|
|
122
174
|
])
|
|
123
175
|
]),
|
|
124
|
-
|
|
125
|
-
default:
|
|
126
|
-
|
|
127
|
-
class: x([
|
|
128
|
-
},
|
|
129
|
-
content:
|
|
130
|
-
|
|
131
|
-
onOpenSearchModal:
|
|
176
|
+
n(ge, null, {
|
|
177
|
+
default: v(() => [
|
|
178
|
+
ae(n(i(De), {
|
|
179
|
+
class: x([f.value ? "sidebar-active-width" : ""])
|
|
180
|
+
}, ne({
|
|
181
|
+
content: v(() => [
|
|
182
|
+
n(ve, {
|
|
183
|
+
onOpenSearchModal: t[2] || (t[2] = (o) => i(q).show())
|
|
132
184
|
}),
|
|
133
|
-
|
|
134
|
-
class: "custom-scroll flex flex-1 flex-col overflow-visible px-3 pb-
|
|
135
|
-
|
|
185
|
+
h("div", {
|
|
186
|
+
class: x(["custom-scroll flex flex-1 flex-col overflow-visible px-3 pb-3 pt-0", {
|
|
187
|
+
"pb-14": !i(a).isReadOnly
|
|
188
|
+
}]),
|
|
189
|
+
onDragenter: t[3] || (t[3] = $(() => {
|
|
136
190
|
}, ["prevent"])),
|
|
137
|
-
onDragover:
|
|
191
|
+
onDragover: t[4] || (t[4] = $(() => {
|
|
138
192
|
}, ["prevent"]))
|
|
139
193
|
}, [
|
|
140
|
-
(
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
194
|
+
(b(!0), S(V, null, de(i(z), (o) => {
|
|
195
|
+
var r, l;
|
|
196
|
+
return b(), R(Oe, {
|
|
197
|
+
key: o.uid,
|
|
198
|
+
isDraggable: !i(a).isReadOnly && ((l = (r = o.spec) == null ? void 0 : r.info) == null ? void 0 : l.title) !== "Drafts",
|
|
199
|
+
isDroppable: ee,
|
|
200
|
+
item: o,
|
|
201
|
+
parentUids: [],
|
|
202
|
+
onOnDragEnd: X
|
|
203
|
+
}, {
|
|
204
|
+
leftIcon: v(() => [
|
|
205
|
+
n(i(C), {
|
|
206
|
+
class: "text-sidebar-c-2 text-sm group-hover:hidden",
|
|
207
|
+
icon: "CodeFolder",
|
|
208
|
+
size: "sm",
|
|
209
|
+
thickness: "2"
|
|
210
|
+
}),
|
|
211
|
+
h("div", {
|
|
212
|
+
class: x({
|
|
213
|
+
"rotate-90": i(Q)[o.uid]
|
|
214
|
+
})
|
|
215
|
+
}, [
|
|
216
|
+
n(i(C), {
|
|
217
|
+
class: "text-c-3 hidden text-sm group-hover:block",
|
|
218
|
+
icon: "ChevronRight",
|
|
219
|
+
size: "sm"
|
|
220
|
+
})
|
|
221
|
+
], 2)
|
|
222
|
+
]),
|
|
223
|
+
_: 2
|
|
224
|
+
}, 1032, ["isDraggable", "item"]);
|
|
225
|
+
}), 128))
|
|
226
|
+
], 34)
|
|
170
227
|
]),
|
|
171
|
-
button:
|
|
172
|
-
|
|
228
|
+
button: v(() => [
|
|
229
|
+
i(a).isReadOnly ? U("", !0) : (b(), R(be, {
|
|
173
230
|
key: 0,
|
|
174
|
-
|
|
231
|
+
class: x({
|
|
232
|
+
"empty-sidebar-item": i(T).length === 1
|
|
233
|
+
}),
|
|
234
|
+
click: Y
|
|
175
235
|
}, {
|
|
176
|
-
title:
|
|
177
|
-
|
|
236
|
+
title: v(() => [
|
|
237
|
+
ce("Add Item")
|
|
178
238
|
]),
|
|
179
239
|
_: 1
|
|
180
|
-
}))
|
|
240
|
+
}, 8, ["class"]))
|
|
181
241
|
]),
|
|
182
242
|
_: 2
|
|
183
243
|
}, [
|
|
184
|
-
|
|
244
|
+
i(a).isReadOnly ? void 0 : {
|
|
185
245
|
name: "header",
|
|
186
|
-
fn:
|
|
187
|
-
|
|
246
|
+
fn: v(() => [
|
|
247
|
+
n(i(Me))
|
|
188
248
|
]),
|
|
189
249
|
key: "0"
|
|
190
250
|
}
|
|
191
251
|
]), 1032, ["class"]), [
|
|
192
|
-
[
|
|
252
|
+
[ue, f.value]
|
|
193
253
|
]),
|
|
194
|
-
|
|
254
|
+
i(w) ? (b(), R(ye, {
|
|
195
255
|
key: 0,
|
|
196
|
-
class: x(["flex-1", [
|
|
256
|
+
class: x(["flex-1", [f.value ? "sidebar-active-hide-layout" : ""]])
|
|
197
257
|
}, {
|
|
198
|
-
default:
|
|
199
|
-
var
|
|
258
|
+
default: v(() => {
|
|
259
|
+
var o, r, l, d, c;
|
|
200
260
|
return [
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
response: (
|
|
261
|
+
n(_e),
|
|
262
|
+
n(ke, {
|
|
263
|
+
response: (c = (d = (o = i(u)) == null ? void 0 : o.history) == null ? void 0 : d[((l = (r = i(u)) == null ? void 0 : r.history) == null ? void 0 : l.length) - 1]) == null ? void 0 : c.response
|
|
204
264
|
}, null, 8, ["response"])
|
|
205
265
|
];
|
|
206
266
|
}),
|
|
207
267
|
_: 1
|
|
208
|
-
}, 8, ["class"])) :
|
|
268
|
+
}, 8, ["class"])) : U("", !0)
|
|
209
269
|
]),
|
|
210
270
|
_: 1
|
|
211
271
|
})
|
|
212
272
|
], 2),
|
|
213
|
-
|
|
273
|
+
n(he, { modalState: i(q) }, null, 8, ["modalState"])
|
|
214
274
|
], 64));
|
|
215
275
|
}
|
|
216
276
|
});
|
|
217
277
|
export {
|
|
218
|
-
|
|
278
|
+
nt as default
|
|
219
279
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type DraggingItem, type HoveredItem } from '@scalar/draggable';
|
|
1
|
+
import { type DraggableProps, type DraggingItem, type HoveredItem } from '@scalar/draggable';
|
|
2
2
|
import type { Collection } from '@scalar/oas-utils/entities/workspace/collection';
|
|
3
3
|
import type { Folder } from '@scalar/oas-utils/entities/workspace/folder';
|
|
4
4
|
import type { Request, RequestExample } from '@scalar/oas-utils/entities/workspace/spec';
|
|
@@ -19,7 +19,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
19
19
|
*
|
|
20
20
|
* @default false
|
|
21
21
|
*/
|
|
22
|
-
isDroppable?:
|
|
22
|
+
isDroppable?: DraggableProps["isDroppable"];
|
|
23
23
|
/** Both inidicate the level and provide a way to traverse upwards */
|
|
24
24
|
parentUids: string[];
|
|
25
25
|
item: Collection | Folder | Request | RequestExample;
|
|
@@ -41,7 +41,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
41
41
|
*
|
|
42
42
|
* @default false
|
|
43
43
|
*/
|
|
44
|
-
isDroppable?:
|
|
44
|
+
isDroppable?: DraggableProps["isDroppable"];
|
|
45
45
|
/** Both inidicate the level and provide a way to traverse upwards */
|
|
46
46
|
parentUids: string[];
|
|
47
47
|
item: Collection | Folder | Request | RequestExample;
|
|
@@ -52,8 +52,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
52
52
|
}>>> & {
|
|
53
53
|
onOnDragEnd?: ((draggingItem: DraggingItem, hoveredItem: HoveredItem) => any) | undefined;
|
|
54
54
|
}, {
|
|
55
|
+
isDroppable: boolean | ((draggingItem: DraggingItem, hoveredItem: HoveredItem) => boolean);
|
|
55
56
|
isDraggable: boolean;
|
|
56
|
-
isDroppable: boolean;
|
|
57
57
|
}, {}>;
|
|
58
58
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
59
59
|
export default _default;
|
|
@@ -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":"AA+TA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAA;AACjF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6CAA6C,CAAA;AACzE,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACf,MAAM,2CAA2C,CAAA;AAgKlD,iBAAS,cAAc;gBA7HT,IAAI;;gBAAJ,IAAI;EAycjB;AACD,QAAA,MAAM,eAAe;IApejB;;;;OAIG;kBACW,OAAO;IACrB;;;;OAIG;kBACW,cAAc,CAAC,aAAa,CAAC;IAC3C,qEAAqE;gBACzD,MAAM,EAAE;UACd,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,cAAc;;;;;;;;IAdpD;;;;OAIG;kBACW,OAAO;IACrB;;;;OAIG;kBACW,cAAc,CAAC,aAAa,CAAC;IAC3C,qEAAqE;gBACzD,MAAM,EAAE;UACd,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,cAAc;;;;;;;;;iBATtC,OAAO;MAsevB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,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,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 o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-0285aba2"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
p as default
|
|
8
8
|
};
|