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