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