@scalar/api-client 2.2.56 → 2.2.57
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 +33 -0
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +53 -54
- package/dist/components/CodeInput/CodeInput.vue.d.ts +1 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +3 -19
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +154 -129
- package/dist/components/DataTable/DataTableInput.vue.d.ts +4 -4
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarToggle.vue.js +17 -16
- package/dist/layouts/App/create-api-client-app.d.ts +62 -52
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +120 -100
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.js +1 -2
- package/dist/layouts/Web/create-api-client-web.d.ts +62 -52
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +64 -58
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +82 -80
- package/dist/libs/extractAttachmentFilename.d.ts.map +1 -1
- package/dist/libs/extractAttachmentFilename.js +8 -7
- package/dist/libs/find-request.d.ts +1 -1
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/libs/hot-keys.d.ts.map +1 -1
- package/dist/libs/hot-keys.js +9 -8
- package/dist/libs/send-request/create-request-operation.test.d.ts +3 -2
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/store/active-entities.d.ts +4 -3
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/import-spec.d.ts +3 -3
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/import-spec.js +4 -1
- package/dist/store/request-example.d.ts +22 -12
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/requests.d.ts +13 -13
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/security-schemes.d.ts +6 -6
- package/dist/store/store.d.ts +92 -67
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +12 -12
- package/dist/store/workspace.d.ts +12 -12
- package/dist/store/workspace.d.ts.map +1 -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/RequestRoot.test.d.ts +2 -0
- package/dist/views/Request/RequestRoot.test.d.ts.map +1 -0
- package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestRoot.vue.js +2 -2
- package/dist/views/Request/RequestRoot.vue2.js +72 -60
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +113 -107
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +37 -37
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +55 -51
- 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 +171 -166
- 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 +187 -180
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue.js +2 -2
- package/dist/views/Request/RequestSubpageHeader.vue2.js +41 -49
- 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 +62 -45
- package/package.json +12 -12
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +0 -15
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +0 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +0 -176
- package/dist/components/CommandPalette/CommandPaletteRequest.vue2.js +0 -4
|
@@ -1,115 +1,118 @@
|
|
|
1
|
-
import { defineComponent as ve, useId as
|
|
2
|
-
import { ScalarIcon as
|
|
3
|
-
import { LibraryIcon as
|
|
4
|
-
import { useToasts as
|
|
1
|
+
import { defineComponent as ve, useId as be, reactive as ge, ref as Se, watch as W, onMounted as ke, onBeforeUnmount as Re, computed as A, openBlock as l, createElementBlock as k, Fragment as D, withDirectives as H, createVNode as p, unref as t, normalizeClass as v, createSlots as ye, withCtx as d, createElementVNode as n, createBlock as u, createCommentVNode as b, toDisplayString as K, isRef as xe, withKeys as $, withModifiers as g, vShow as B, renderList as U, createTextVNode as q, nextTick as we } from "vue";
|
|
2
|
+
import { ScalarIcon as M, ScalarSearchInput as Ie, ScalarSearchResultList as Ce, ScalarSearchResultItem as De, ScalarButton as $e } from "@scalar/components";
|
|
3
|
+
import { LibraryIcon as qe } from "@scalar/icons";
|
|
4
|
+
import { useToasts as Me } from "@scalar/use-toasts";
|
|
5
5
|
import { useRouter as Pe } from "vue-router";
|
|
6
6
|
import Te from "../../assets/rabbit.ascii.js";
|
|
7
7
|
import _e from "../../assets/rabbitjump.ascii.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { useSearch as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import Ue from "
|
|
23
|
-
import Ge from "
|
|
24
|
-
import je from "
|
|
25
|
-
|
|
26
|
-
const Qe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Xe = {
|
|
8
|
+
import Ve from "../../components/EnvironmentSelector/EnvironmentSelector.vue.js";
|
|
9
|
+
import Ee from "../../components/HttpMethod/HttpMethod.vue.js";
|
|
10
|
+
import G from "../../components/ScalarAsciiArt.vue.js";
|
|
11
|
+
import { useSearch as Le } from "../../components/Search/useSearch.js";
|
|
12
|
+
import Ne from "../../components/Sidebar/SidebarButton.vue.js";
|
|
13
|
+
import { useLayout as Oe } from "../../hooks/useLayout.js";
|
|
14
|
+
import { useSidebar as ze } from "../../hooks/useSidebar.js";
|
|
15
|
+
import { PathId as j } from "../../routes.js";
|
|
16
|
+
import { useActiveEntities as Fe } from "../../store/active-entities.js";
|
|
17
|
+
import { createInitialRequest as We } from "../../store/requests.js";
|
|
18
|
+
import { dragHandlerFactory as Ae } from "./handle-drag.js";
|
|
19
|
+
import He from "./RequestSidebarItemMenu.vue.js";
|
|
20
|
+
import { isGettingStarted as Ke } from "./RequestSection/helpers/getting-started.js";
|
|
21
|
+
import Be from "./RequestSidebarItem.vue.js";
|
|
22
|
+
import Ue from "../../components/Sidebar/Sidebar.vue.js";
|
|
23
|
+
import Ge from "./components/WorkspaceDropdown.vue.js";
|
|
24
|
+
import { useWorkspace as je } from "../../store/store.js";
|
|
25
|
+
const Je = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Qe = {
|
|
27
26
|
key: 1,
|
|
28
27
|
class: "text-c-3"
|
|
29
|
-
}, Ye = {
|
|
28
|
+
}, Xe = ["aria-pressed"], Ye = { class: "sr-only" }, Ze = {
|
|
30
29
|
class: "search-button-fade sticky top-12 z-10 px-3 py-2.5 pt-0 focus-within:z-20",
|
|
31
30
|
role: "search"
|
|
32
|
-
},
|
|
31
|
+
}, et = {
|
|
33
32
|
key: 1,
|
|
34
33
|
class: "contents"
|
|
35
|
-
},
|
|
34
|
+
}, tt = { class: "empty-sidebar-item-content px-2.5 py-2.5" }, ot = { class: "rabbit-ascii relative m-auto mt-2 h-[68px] w-[60px]" }, $t = /* @__PURE__ */ ve({
|
|
36
35
|
__name: "RequestSidebar",
|
|
37
36
|
emits: ["newTab", "clearDrafts"],
|
|
38
|
-
setup(
|
|
39
|
-
const
|
|
40
|
-
collapsedSidebarFolders:
|
|
37
|
+
setup(st, { emit: J }) {
|
|
38
|
+
const Q = J, {
|
|
39
|
+
collapsedSidebarFolders: X,
|
|
41
40
|
isSidebarOpen: P,
|
|
42
|
-
setCollapsedSidebarFolder:
|
|
43
|
-
toggleSidebarOpen:
|
|
44
|
-
} =
|
|
41
|
+
setCollapsedSidebarFolder: Y,
|
|
42
|
+
toggleSidebarOpen: Z
|
|
43
|
+
} = ze(), { layout: i } = Oe(), T = je(), {
|
|
45
44
|
activeWorkspaceCollections: c,
|
|
46
|
-
activeRequest:
|
|
45
|
+
activeRequest: ee,
|
|
47
46
|
activeWorkspaceRequests: _,
|
|
48
|
-
activeWorkspace:
|
|
49
|
-
} =
|
|
50
|
-
|
|
47
|
+
activeWorkspace: te
|
|
48
|
+
} = Fe(), { findRequestParents: oe, events: R, requestMutators: V, requests: y } = T, { handleDragEnd: se, isDroppable: ae } = Ae(
|
|
49
|
+
te,
|
|
51
50
|
T
|
|
52
|
-
), { replace:
|
|
53
|
-
|
|
51
|
+
), { replace: E } = Pe(), re = () => {
|
|
52
|
+
R.commandPalette.emit({
|
|
54
53
|
commandName: "Import from OpenAPI/Swagger/Postman/cURL"
|
|
55
54
|
});
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
}, L = be(), { toast: le } = Me(), S = ge({ open: !1 }), m = Se(!1);
|
|
56
|
+
W(
|
|
57
|
+
ee,
|
|
59
58
|
(s) => {
|
|
60
|
-
s &&
|
|
61
|
-
(
|
|
59
|
+
s && oe(s).forEach(
|
|
60
|
+
(e) => Y(e, !0)
|
|
62
61
|
);
|
|
63
62
|
},
|
|
64
63
|
{ immediate: !0 }
|
|
65
64
|
);
|
|
66
65
|
const {
|
|
67
|
-
searchText:
|
|
68
|
-
searchResultsWithPlaceholderResults:
|
|
66
|
+
searchText: h,
|
|
67
|
+
searchResultsWithPlaceholderResults: x,
|
|
69
68
|
selectedSearchResult: w,
|
|
70
|
-
onSearchResultClick:
|
|
71
|
-
fuseSearch:
|
|
69
|
+
onSearchResultClick: ne,
|
|
70
|
+
fuseSearch: ie,
|
|
72
71
|
searchInputRef: I,
|
|
73
|
-
searchResultRefs:
|
|
74
|
-
navigateSearchResults:
|
|
75
|
-
selectSearchResult:
|
|
76
|
-
} =
|
|
77
|
-
var
|
|
78
|
-
s && (s.toggleSidebar &&
|
|
72
|
+
searchResultRefs: ue,
|
|
73
|
+
navigateSearchResults: N,
|
|
74
|
+
selectSearchResult: ce
|
|
75
|
+
} = Le(), O = (s) => {
|
|
76
|
+
var e;
|
|
77
|
+
s && (s.toggleSidebar && Z(), s.focusRequestSearch && ((e = I.value) == null || e.focus()));
|
|
79
78
|
};
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
ke(() => R.hotKeys.on(O)), Re(() => {
|
|
80
|
+
R.hotKeys.off(O);
|
|
82
81
|
});
|
|
83
|
-
const
|
|
82
|
+
const de = (s) => {
|
|
84
83
|
if (s != null && s.documentUrl) {
|
|
85
84
|
s.watchMode = !s.watchMode;
|
|
86
|
-
const
|
|
85
|
+
const e = c.value.find(
|
|
87
86
|
(o) => o.uid === s.entity.uid
|
|
88
87
|
);
|
|
89
|
-
|
|
88
|
+
e && (e.watchMode = s.watchMode);
|
|
90
89
|
}
|
|
91
90
|
};
|
|
92
|
-
|
|
91
|
+
W(
|
|
93
92
|
() => c.value.map(
|
|
94
93
|
(s) => s.watchMode
|
|
95
94
|
),
|
|
96
|
-
(s,
|
|
95
|
+
(s, e) => {
|
|
97
96
|
s.forEach((o, a) => {
|
|
98
|
-
var
|
|
99
|
-
if (i !== "modal" && o !==
|
|
97
|
+
var r, f, z;
|
|
98
|
+
if (i !== "modal" && o !== e[a] && ((f = (r = c.value[a]) == null ? void 0 : r.info) == null ? void 0 : f.title) !== "Drafts" && c.value[a]) {
|
|
100
99
|
const F = c.value[a];
|
|
101
100
|
if (!F) return;
|
|
102
|
-
const
|
|
103
|
-
|
|
101
|
+
const he = `${(z = F.info) == null ? void 0 : z.title}: Watch Mode ${o ? "enabled" : "disabled"}`;
|
|
102
|
+
le(he, "info");
|
|
104
103
|
}
|
|
105
104
|
});
|
|
106
105
|
}
|
|
107
106
|
);
|
|
108
|
-
const
|
|
109
|
-
var
|
|
110
|
-
const s =
|
|
111
|
-
|
|
112
|
-
|
|
107
|
+
const me = A(() => {
|
|
108
|
+
var f;
|
|
109
|
+
const s = x.value;
|
|
110
|
+
if (!s.length) return "No results found";
|
|
111
|
+
const e = (f = s[w.value]) == null ? void 0 : f.item;
|
|
112
|
+
if (!e) return "No result selected";
|
|
113
|
+
const o = h.value.length ? `${s.length} result${s.length === 1 ? "" : "s"} found, ` : "", a = `, HTTP Method ${e.httpVerb}, Path ${e.path}`, r = `${e.title} ${a}`;
|
|
114
|
+
return `${o}Selected: ${r}`;
|
|
115
|
+
}), fe = () => {
|
|
113
116
|
const s = c.value.find(
|
|
114
117
|
(o) => {
|
|
115
118
|
var a;
|
|
@@ -117,158 +120,160 @@ const Qe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Xe
|
|
|
117
120
|
}
|
|
118
121
|
);
|
|
119
122
|
if (s && s.requests.forEach((o) => {
|
|
120
|
-
|
|
123
|
+
y[o] && V.delete(y[o], s.uid);
|
|
121
124
|
}), _.value.length) {
|
|
122
125
|
const o = c.value[0], a = o == null ? void 0 : o.requests[0];
|
|
123
|
-
a &&
|
|
126
|
+
a && E({
|
|
124
127
|
name: "request",
|
|
125
128
|
params: {
|
|
126
|
-
[
|
|
129
|
+
[j.Request]: a
|
|
127
130
|
}
|
|
128
131
|
});
|
|
129
132
|
} else {
|
|
130
|
-
const { request: o } =
|
|
131
|
-
s && (
|
|
133
|
+
const { request: o } = We();
|
|
134
|
+
s && (V.add(o, s.uid), E({
|
|
132
135
|
name: "request",
|
|
133
136
|
params: {
|
|
134
|
-
[
|
|
137
|
+
[j.Request]: o.uid
|
|
135
138
|
}
|
|
136
139
|
}));
|
|
137
140
|
}
|
|
138
|
-
},
|
|
139
|
-
|
|
141
|
+
}, pe = () => {
|
|
142
|
+
m.value = !m.value, m.value || (h.value = ""), m.value && we(() => {
|
|
140
143
|
var s;
|
|
141
|
-
(s = I.value) == null
|
|
142
|
-
})
|
|
143
|
-
}, C =
|
|
144
|
-
() =>
|
|
144
|
+
return (s = I.value) == null ? void 0 : s.focus();
|
|
145
|
+
});
|
|
146
|
+
}, C = A(
|
|
147
|
+
() => Ke(
|
|
145
148
|
c.value,
|
|
146
149
|
_.value,
|
|
147
|
-
|
|
150
|
+
y
|
|
148
151
|
)
|
|
149
152
|
);
|
|
150
|
-
return (s,
|
|
151
|
-
|
|
152
|
-
class:
|
|
153
|
-
},
|
|
153
|
+
return (s, e) => (l(), k(D, null, [
|
|
154
|
+
H(p(t(Ue), {
|
|
155
|
+
class: v([t(P) ? "sidebar-active-width" : ""])
|
|
156
|
+
}, ye({
|
|
154
157
|
content: d(() => [
|
|
155
|
-
n("div",
|
|
156
|
-
|
|
157
|
-
class:
|
|
158
|
-
}, null,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
158
|
+
n("div", Je, [
|
|
159
|
+
n("div", {
|
|
160
|
+
class: v(["size-8", { "xl:hidden": t(i) !== "modal" }])
|
|
161
|
+
}, null, 2),
|
|
162
|
+
t(i) !== "modal" ? (l(), u(t(Ge), { key: 0 })) : b("", !0),
|
|
163
|
+
t(i) !== "modal" ? (l(), k("span", Qe, " / ")) : b("", !0),
|
|
164
|
+
t(i) !== "modal" ? (l(), u(Ve, { key: 2 })) : b("", !0),
|
|
162
165
|
n("button", {
|
|
166
|
+
"aria-pressed": m.value,
|
|
163
167
|
class: "ml-auto",
|
|
164
168
|
type: "button",
|
|
165
|
-
onClick:
|
|
169
|
+
onClick: pe
|
|
166
170
|
}, [
|
|
167
|
-
|
|
171
|
+
n("span", Ye, K(m.value ? "Hide" : "Show") + " search ", 1),
|
|
172
|
+
p(t(M), {
|
|
168
173
|
class: "text-c-3 hover:bg-b-2 p-1.75 max-h-8 max-w-8 rounded-lg text-sm",
|
|
169
174
|
icon: "Search"
|
|
170
175
|
})
|
|
171
|
-
])
|
|
176
|
+
], 8, Xe)
|
|
172
177
|
]),
|
|
173
|
-
|
|
174
|
-
|
|
178
|
+
H(n("div", Ze, [
|
|
179
|
+
p(t(Ie), {
|
|
175
180
|
ref_key: "searchInputRef",
|
|
176
181
|
ref: I,
|
|
177
|
-
modelValue:
|
|
178
|
-
"onUpdate:modelValue":
|
|
179
|
-
"aria-
|
|
180
|
-
|
|
182
|
+
modelValue: t(h),
|
|
183
|
+
"onUpdate:modelValue": e[0] || (e[0] = (o) => xe(h) ? h.value = o : null),
|
|
184
|
+
"aria-controls": t(L),
|
|
185
|
+
label: me.value,
|
|
181
186
|
sidebar: "",
|
|
182
|
-
onInput:
|
|
187
|
+
onInput: t(ie),
|
|
183
188
|
onKeydown: [
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
189
|
+
e[1] || (e[1] = $(g((o) => t(N)("down"), ["stop"]), ["down"])),
|
|
190
|
+
e[2] || (e[2] = $(g((o) => t(ce)(), ["stop"]), ["enter"])),
|
|
191
|
+
e[3] || (e[3] = $(g((o) => t(N)("up"), ["stop"]), ["up"]))
|
|
187
192
|
]
|
|
188
|
-
}, null, 8, ["modelValue", "aria-
|
|
193
|
+
}, null, 8, ["modelValue", "aria-controls", "label", "onInput"])
|
|
189
194
|
], 512), [
|
|
190
|
-
[B,
|
|
195
|
+
[B, m.value]
|
|
191
196
|
]),
|
|
192
197
|
n("div", {
|
|
193
|
-
class:
|
|
198
|
+
class: v(["gap-1/2 flex flex-1 flex-col overflow-visible overflow-y-auto px-3 pb-3 pt-0", [
|
|
194
199
|
{
|
|
195
|
-
"pb-14":
|
|
200
|
+
"pb-14": t(i) !== "modal"
|
|
196
201
|
},
|
|
197
202
|
{
|
|
198
203
|
"h-[calc(100%-273.5px)]": C.value
|
|
199
204
|
}
|
|
200
205
|
]]),
|
|
201
|
-
onDragenter:
|
|
206
|
+
onDragenter: e[6] || (e[6] = g(() => {
|
|
202
207
|
}, ["prevent"])),
|
|
203
|
-
onDragover:
|
|
208
|
+
onDragover: e[7] || (e[7] = g(() => {
|
|
204
209
|
}, ["prevent"]))
|
|
205
210
|
}, [
|
|
206
|
-
|
|
211
|
+
t(h) ? (l(), u(t(Ce), {
|
|
207
212
|
key: 0,
|
|
208
|
-
id:
|
|
213
|
+
id: t(L),
|
|
209
214
|
"aria-label": "Search Results",
|
|
210
215
|
class: "gap-px",
|
|
211
|
-
noResults: !
|
|
216
|
+
noResults: !t(x).length
|
|
212
217
|
}, {
|
|
213
218
|
default: d(() => [
|
|
214
|
-
(
|
|
219
|
+
(l(!0), k(D, null, U(t(x), (o, a) => (l(), u(t(De), {
|
|
215
220
|
id: `#search-input-${o.item.id}`,
|
|
216
221
|
key: o.refIndex,
|
|
217
222
|
ref_for: !0,
|
|
218
|
-
ref: (
|
|
219
|
-
active:
|
|
223
|
+
ref: (r) => t(ue)[a] = r,
|
|
224
|
+
active: t(w) === a,
|
|
220
225
|
class: "px-2",
|
|
221
226
|
href: o.item.link,
|
|
222
|
-
onClick:
|
|
223
|
-
onFocus: (
|
|
227
|
+
onClick: g((r) => t(ne)(o), ["prevent"]),
|
|
228
|
+
onFocus: (r) => w.value = a
|
|
224
229
|
}, {
|
|
225
230
|
addon: d(() => [
|
|
226
|
-
|
|
227
|
-
|
|
231
|
+
e[9] || (e[9] = n("span", { class: "sr-only" }, "HTTP Method:", -1)),
|
|
232
|
+
p(Ee, {
|
|
228
233
|
class: "font-bold",
|
|
229
234
|
method: o.item.httpVerb ?? "get"
|
|
230
235
|
}, null, 8, ["method"])
|
|
231
236
|
]),
|
|
232
237
|
default: d(() => [
|
|
233
|
-
|
|
238
|
+
q(K(o.item.title) + " ", 1)
|
|
234
239
|
]),
|
|
235
240
|
_: 2
|
|
236
241
|
}, 1032, ["id", "active", "href", "onClick", "onFocus"]))), 128))
|
|
237
242
|
]),
|
|
238
243
|
_: 1
|
|
239
|
-
}, 8, ["id", "noResults"])) : (
|
|
240
|
-
(
|
|
244
|
+
}, 8, ["id", "noResults"])) : (l(), k("nav", et, [
|
|
245
|
+
(l(!0), k(D, null, U(t(c), (o) => {
|
|
241
246
|
var a;
|
|
242
|
-
return
|
|
247
|
+
return l(), u(Be, {
|
|
243
248
|
key: o.uid,
|
|
244
|
-
isDraggable:
|
|
245
|
-
isDroppable:
|
|
246
|
-
menuItem:
|
|
249
|
+
isDraggable: t(i) !== "modal" && ((a = o.info) == null ? void 0 : a.title) !== "Drafts",
|
|
250
|
+
isDroppable: t(ae),
|
|
251
|
+
menuItem: S,
|
|
247
252
|
parentUids: [],
|
|
248
253
|
uid: o.uid,
|
|
249
|
-
onNewTab:
|
|
250
|
-
onOnDragEnd:
|
|
251
|
-
onOpenMenu:
|
|
254
|
+
onNewTab: e[4] || (e[4] = (r, f) => Q("newTab", { name: r, uid: f })),
|
|
255
|
+
onOnDragEnd: t(se),
|
|
256
|
+
onOpenMenu: e[5] || (e[5] = (r) => Object.assign(S, r))
|
|
252
257
|
}, {
|
|
253
258
|
leftIcon: d(() => {
|
|
254
|
-
var
|
|
259
|
+
var r;
|
|
255
260
|
return [
|
|
256
|
-
((
|
|
261
|
+
((r = o.info) == null ? void 0 : r.title) === "Drafts" ? (l(), u(t(M), {
|
|
257
262
|
key: 0,
|
|
258
263
|
class: "text-sidebar-c-2 group-hover:hidden",
|
|
259
264
|
icon: "Scribble",
|
|
260
265
|
thickness: "2.25"
|
|
261
|
-
})) : (
|
|
266
|
+
})) : (l(), u(t(qe), {
|
|
262
267
|
key: 1,
|
|
263
268
|
class: "text-sidebar-c-2 size-3.5 min-w-3.5 stroke-2 group-hover:hidden",
|
|
264
269
|
src: o["x-scalar-icon"] || "interface-content-folder"
|
|
265
270
|
}, null, 8, ["src"])),
|
|
266
271
|
n("div", {
|
|
267
|
-
class:
|
|
268
|
-
"rotate-90":
|
|
272
|
+
class: v({
|
|
273
|
+
"rotate-90": t(X)[o.uid]
|
|
269
274
|
})
|
|
270
275
|
}, [
|
|
271
|
-
|
|
276
|
+
p(t(M), {
|
|
272
277
|
class: "text-c-3 hover:text-c-1 hidden text-sm group-hover:block",
|
|
273
278
|
icon: "ChevronRight",
|
|
274
279
|
size: "md"
|
|
@@ -284,70 +289,70 @@ const Qe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Xe
|
|
|
284
289
|
]),
|
|
285
290
|
button: d(() => [
|
|
286
291
|
n("div", {
|
|
287
|
-
class:
|
|
292
|
+
class: v({
|
|
288
293
|
"empty-sidebar-item": C.value
|
|
289
294
|
})
|
|
290
295
|
}, [
|
|
291
|
-
n("div",
|
|
292
|
-
n("div",
|
|
293
|
-
|
|
294
|
-
art:
|
|
296
|
+
n("div", tt, [
|
|
297
|
+
n("div", ot, [
|
|
298
|
+
p(G, {
|
|
299
|
+
art: t(Te),
|
|
295
300
|
class: "rabbitsit font-bold"
|
|
296
301
|
}, null, 8, ["art"]),
|
|
297
|
-
|
|
298
|
-
art:
|
|
302
|
+
p(G, {
|
|
303
|
+
art: t(_e),
|
|
299
304
|
class: "rabbitjump absolute left-0 top-0 font-bold"
|
|
300
305
|
}, null, 8, ["art"])
|
|
301
306
|
]),
|
|
302
|
-
|
|
307
|
+
e[10] || (e[10] = n("div", { class: "mb-2 mt-2 text-balance text-center text-sm" }, [
|
|
303
308
|
n("b", { class: "font-medium" }, "Let's Get Started"),
|
|
304
309
|
n("p", { class: "mt-2" }, " Create request, folder, collection or import from OpenAPI/Postman ")
|
|
305
310
|
], -1))
|
|
306
311
|
]),
|
|
307
|
-
|
|
312
|
+
t(i) !== "modal" ? (l(), u(t($e), {
|
|
308
313
|
key: 0,
|
|
309
|
-
class:
|
|
314
|
+
class: v(["mb-1.5 hidden h-fit w-full p-1.5 opacity-0", {
|
|
310
315
|
"flex opacity-100": C.value
|
|
311
316
|
}]),
|
|
312
|
-
onClick:
|
|
317
|
+
onClick: re
|
|
313
318
|
}, {
|
|
314
|
-
default: d(() =>
|
|
315
|
-
|
|
319
|
+
default: d(() => e[11] || (e[11] = [
|
|
320
|
+
q(" Import Collection ")
|
|
316
321
|
])),
|
|
317
322
|
_: 1
|
|
318
|
-
}, 8, ["class"])) :
|
|
319
|
-
|
|
323
|
+
}, 8, ["class"])) : b("", !0),
|
|
324
|
+
t(i) !== "modal" ? (l(), u(Ne, {
|
|
320
325
|
key: 1,
|
|
321
|
-
click:
|
|
326
|
+
click: t(R).commandPalette.emit,
|
|
322
327
|
hotkey: "K"
|
|
323
328
|
}, {
|
|
324
|
-
title: d(() =>
|
|
325
|
-
|
|
329
|
+
title: d(() => e[12] || (e[12] = [
|
|
330
|
+
q(" Add Item ")
|
|
326
331
|
])),
|
|
327
332
|
_: 1
|
|
328
|
-
}, 8, ["click"])) :
|
|
333
|
+
}, 8, ["click"])) : b("", !0)
|
|
329
334
|
], 2)
|
|
330
335
|
]),
|
|
331
336
|
_: 2
|
|
332
337
|
}, [
|
|
333
|
-
|
|
338
|
+
t(i) !== "modal" ? {
|
|
334
339
|
name: "header",
|
|
335
340
|
fn: d(() => []),
|
|
336
341
|
key: "0"
|
|
337
342
|
} : void 0
|
|
338
343
|
]), 1032, ["class"]), [
|
|
339
|
-
[B,
|
|
344
|
+
[B, t(P)]
|
|
340
345
|
]),
|
|
341
|
-
|
|
346
|
+
t(i) !== "modal" && S ? (l(), u(He, {
|
|
342
347
|
key: 0,
|
|
343
|
-
menuItem:
|
|
344
|
-
onClearDrafts:
|
|
345
|
-
onCloseMenu:
|
|
346
|
-
onToggleWatchMode:
|
|
347
|
-
}, null, 8, ["menuItem"])) :
|
|
348
|
+
menuItem: S,
|
|
349
|
+
onClearDrafts: fe,
|
|
350
|
+
onCloseMenu: e[8] || (e[8] = (o) => S.open = !1),
|
|
351
|
+
onToggleWatchMode: de
|
|
352
|
+
}, null, 8, ["menuItem"])) : b("", !0)
|
|
348
353
|
], 64));
|
|
349
354
|
}
|
|
350
355
|
});
|
|
351
356
|
export {
|
|
352
|
-
|
|
357
|
+
$t as default
|
|
353
358
|
};
|
|
@@ -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":"AA8qBA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAa1B,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;AAsTF,iBAAS,cAAc;WA0xBT,OAAO,IAA6B;;oBA9jCpC,IAAI;;oBAAJ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAjElB,KA3nB6B;;;;;;;oCA2nB7B,KAtnBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA2vBW,GAAG,8CACqB,GAAG,yBAAyB,GAClE,6DAIM,GAAH;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAy/BF;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"}
|
|
@@ -2,7 +2,7 @@ import t from "./RequestSidebarItem.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
5
|
+
const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-b1c0a5a2"]]);
|
|
6
6
|
export {
|
|
7
7
|
p as default
|
|
8
8
|
};
|