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