@scalar/api-client 2.2.8 → 2.2.10
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 +35 -0
- 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 +65 -65
- package/dist/components/CodeInput/codeVariableWidget.d.ts +6 -4
- package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
- package/dist/components/CodeInput/codeVariableWidget.js +72 -68
- package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.vue.js +20 -15
- package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCell.vue.js +16 -11
- package/dist/components/DataTable/DataTableHeader.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableHeader.vue.js +11 -12
- package/dist/components/DataTable/DataTableInput.vue.d.ts +2 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +3 -3
- package/dist/components/DataTable/DataTableInput.vue2.js +9 -9
- package/dist/components/DataTable/index.js +14 -14
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +87 -67
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +2 -2
- package/dist/components/Sidebar/SidebarList.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarList.vue.js +4 -4
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts +8 -4
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue2.js +52 -32
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts +3 -0
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +43 -31
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +32 -31
- package/dist/layouts/App/create-api-client-app.d.ts +49 -42
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +103 -89
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.js +31 -19
- package/dist/layouts/Web/create-api-client-web.d.ts +49 -42
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +50 -44
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/env-helpers.d.ts +9 -0
- package/dist/libs/env-helpers.d.ts.map +1 -0
- package/dist/libs/env-helpers.js +4 -0
- package/dist/libs/environment-parser.d.ts +3 -4
- package/dist/libs/environment-parser.d.ts.map +1 -1
- package/dist/libs/environment-parser.js +5 -4
- package/dist/libs/index.d.ts +1 -0
- package/dist/libs/index.d.ts.map +1 -1
- package/dist/libs/index.js +24 -22
- package/dist/libs/send-request/send-request.d.ts +5 -2
- package/dist/libs/send-request/send-request.d.ts.map +1 -1
- package/dist/libs/send-request/send-request.js +106 -104
- package/dist/routes.d.ts +11 -0
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +13 -7
- package/dist/store/active-entities.d.ts +18 -11
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/active-entities.js +108 -69
- package/dist/store/collections.d.ts +17 -15
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/collections.js +62 -41
- package/dist/store/environment.d.ts +4 -4
- package/dist/store/import-spec.d.ts +2 -2
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/index.d.ts +1 -0
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/index.js +7 -3
- package/dist/store/requests.d.ts +4 -4
- package/dist/store/router-params.d.ts +1 -1
- package/dist/store/router-params.d.ts.map +1 -1
- package/dist/store/router-params.js +7 -7
- package/dist/store/store.d.ts +49 -42
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +76 -72
- 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/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/vue.d.ts +10 -0
- package/dist/types/vue.d.ts.map +1 -0
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +75 -70
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +308 -152
- package/dist/views/Environment/EnvironmentColorModal.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentColorModal.vue.js +20 -18
- package/dist/views/Environment/EnvironmentColors.vue.d.ts +4 -1
- package/dist/views/Environment/EnvironmentColors.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentColors.vue.js +83 -58
- package/dist/views/Environment/EnvironmentModal.vue.d.ts +7 -0
- package/dist/views/Environment/EnvironmentModal.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentModal.vue.js +119 -37
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +4 -5
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +73 -63
- 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 +60 -61
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +185 -187
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +27 -24
- 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 +35 -187
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +7 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +7 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +207 -0
- package/dist/views/Request/RequestSection/{RequestAuthDataTableInput.vue.d.ts → RequestAuth/RequestAuthDataTableInput.vue.d.ts} +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +43 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +5 -134
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue2.js +176 -2
- package/dist/views/Request/RequestSection/RequestAuth/index.d.ts +2 -0
- package/dist/views/Request/RequestSection/RequestAuth/index.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/index.js +4 -0
- 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 +129 -109
- 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 +82 -87
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +2 -2
- package/dist/views/Request/libs/auth.d.ts.map +1 -1
- package/dist/views/Request/libs/auth.js +3 -3
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +9 -8
- package/package.json +21 -11
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.js +0 -46
- /package/dist/views/Request/RequestSection/{RequestAuthDataTableInput.vue2.js → RequestAuth/RequestAuthDataTableInput.vue2.js} +0 -0
|
@@ -1,123 +1,143 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { useSearch as
|
|
7
|
-
import
|
|
8
|
-
import { useActiveEntities as
|
|
9
|
-
import { createInitialRequest as
|
|
10
|
-
import
|
|
11
|
-
import { dragHandlerFactory as
|
|
12
|
-
import { ScalarSearchInput as
|
|
1
|
+
import { defineComponent as ne, useId as ie, reactive as le, watch as B, onMounted as de, onBeforeUnmount as ue, computed as ce, openBlock as n, createElementBlock as v, Fragment as k, withDirectives as me, createVNode as c, unref as s, normalizeClass as f, createSlots as pe, withCtx as l, createElementVNode as i, isRef as fe, withKeys as y, withModifiers as m, createBlock as d, renderList as O, createTextVNode as I, toDisplayString as be, createCommentVNode as C, vShow as he } from "vue";
|
|
2
|
+
import ve from "../../assets/rabbit.ascii.js";
|
|
3
|
+
import Se from "../../assets/rabbitjump.ascii.js";
|
|
4
|
+
import Re from "../../components/HttpMethod/HttpMethod.vue.js";
|
|
5
|
+
import W from "../../components/ScalarAsciiArt.vue.js";
|
|
6
|
+
import { useSearch as we } from "../../components/Search/useSearch.js";
|
|
7
|
+
import ge from "../../components/Sidebar/SidebarButton.vue.js";
|
|
8
|
+
import { useActiveEntities as ke } from "../../store/active-entities.js";
|
|
9
|
+
import { createInitialRequest as ye } from "../../store/requests.js";
|
|
10
|
+
import Ie from "./RequestSidebarItemMenu.vue.js";
|
|
11
|
+
import { dragHandlerFactory as Ce } from "./handle-drag.js";
|
|
12
|
+
import { ScalarSearchInput as qe, ScalarSearchResultList as De, ScalarSearchResultItem as $e, ScalarIcon as A, ScalarButton as Me } from "@scalar/components";
|
|
13
13
|
import { LibraryIcon as xe } from "@scalar/icons";
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import {
|
|
19
|
-
|
|
14
|
+
import { useToasts as Pe } from "@scalar/use-toasts";
|
|
15
|
+
import { useRouter as Te } from "vue-router";
|
|
16
|
+
import Ee from "./RequestSidebarItem.vue.js";
|
|
17
|
+
import Ve from "../../components/Sidebar/Sidebar.vue.js";
|
|
18
|
+
import { useWorkspace as Be } from "../../store/store.js";
|
|
19
|
+
import { useSidebar as Oe } from "../../hooks/useSidebar.js";
|
|
20
|
+
const We = {
|
|
20
21
|
class: "search-button-fade sticky px-3 py-2.5 top-0 z-10",
|
|
21
22
|
role: "search"
|
|
22
|
-
},
|
|
23
|
+
}, Ae = {
|
|
23
24
|
key: 1,
|
|
24
25
|
class: "contents"
|
|
25
|
-
},
|
|
26
|
+
}, Fe = { class: "empty-sidebar-item-content px-2.5 py-2.5" }, Ke = { class: "w-[60px] h-[68px] m-auto rabbit-ascii mt-2 relative" }, nt = /* @__PURE__ */ ne({
|
|
26
27
|
__name: "RequestSidebar",
|
|
27
28
|
props: {
|
|
28
29
|
showSidebar: { type: Boolean },
|
|
29
30
|
isReadonly: { type: Boolean }
|
|
30
31
|
},
|
|
31
32
|
emits: ["update:showSidebar", "newTab", "clearDrafts"],
|
|
32
|
-
setup(
|
|
33
|
-
const
|
|
34
|
-
activeWorkspaceCollections:
|
|
35
|
-
activeRequest:
|
|
33
|
+
setup(F, { emit: K }) {
|
|
34
|
+
const N = F, q = K, D = Be(), {
|
|
35
|
+
activeWorkspaceCollections: u,
|
|
36
|
+
activeRequest: U,
|
|
36
37
|
activeWorkspaceRequests: S,
|
|
37
38
|
activeWorkspace: R
|
|
38
|
-
} =
|
|
39
|
+
} = ke(), { findRequestParents: z, isReadOnly: H, events: b, requestMutators: $, requests: L } = D, { handleDragEnd: j, isDroppable: G } = Ce(
|
|
39
40
|
R,
|
|
40
41
|
D
|
|
41
|
-
), { collapsedSidebarFolders:
|
|
42
|
-
|
|
42
|
+
), { collapsedSidebarFolders: J, setCollapsedSidebarFolder: Q } = Oe(), { replace: M } = Te(), X = () => {
|
|
43
|
+
b.commandPalette.emit({
|
|
43
44
|
commandName: "Import from OpenAPI/Swagger/Postman"
|
|
44
45
|
});
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
}, x = ie(), { toast: Y } = Pe(), p = le({ open: !1 });
|
|
47
|
+
B(
|
|
48
|
+
U,
|
|
48
49
|
(t) => {
|
|
49
|
-
t &&
|
|
50
|
-
(e) =>
|
|
50
|
+
t && z(t).forEach(
|
|
51
|
+
(e) => Q(e, !0)
|
|
51
52
|
);
|
|
52
53
|
},
|
|
53
54
|
{ immediate: !0 }
|
|
54
55
|
);
|
|
55
56
|
const {
|
|
56
|
-
searchText:
|
|
57
|
+
searchText: h,
|
|
57
58
|
searchResultsWithPlaceholderResults: w,
|
|
58
|
-
selectedSearchResult:
|
|
59
|
-
onSearchResultClick:
|
|
60
|
-
fuseSearch:
|
|
59
|
+
selectedSearchResult: g,
|
|
60
|
+
onSearchResultClick: Z,
|
|
61
|
+
fuseSearch: _,
|
|
61
62
|
searchInputRef: P,
|
|
62
|
-
searchResultRefs:
|
|
63
|
+
searchResultRefs: ee,
|
|
63
64
|
navigateSearchResults: T,
|
|
64
|
-
selectSearchResult:
|
|
65
|
-
} =
|
|
65
|
+
selectSearchResult: te
|
|
66
|
+
} = we(), E = (t) => {
|
|
66
67
|
var e;
|
|
67
|
-
t && (t.toggleSidebar &&
|
|
68
|
+
t && (t.toggleSidebar && q("update:showSidebar", N.showSidebar), t.focusRequestSearch && ((e = P.value) == null || e.focus()));
|
|
68
69
|
};
|
|
69
|
-
|
|
70
|
-
|
|
70
|
+
de(() => b.hotKeys.on(E)), ue(() => {
|
|
71
|
+
b.hotKeys.off(E);
|
|
71
72
|
});
|
|
72
|
-
const
|
|
73
|
-
t != null && t.documentUrl
|
|
74
|
-
|
|
73
|
+
const oe = (t) => {
|
|
74
|
+
if (t != null && t.documentUrl) {
|
|
75
|
+
t.watchMode = !t.watchMode;
|
|
76
|
+
const e = u.value.find(
|
|
77
|
+
(o) => o.uid === t.entity.uid
|
|
78
|
+
);
|
|
79
|
+
e && (e.watchMode = t.watchMode);
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
B(
|
|
83
|
+
() => u.value.map((t) => t.watchMode),
|
|
84
|
+
(t, e) => {
|
|
85
|
+
t.forEach((o, r) => {
|
|
86
|
+
var a;
|
|
87
|
+
if (o !== e[r]) {
|
|
88
|
+
const ae = `${(a = u.value[r].info) == null ? void 0 : a.title}: Watch Mode ${o ? "enabled" : "disabled"}`;
|
|
89
|
+
Y(ae, "info");
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
);
|
|
94
|
+
const se = ce(() => {
|
|
75
95
|
var e;
|
|
76
|
-
const t = w.value[
|
|
96
|
+
const t = w.value[g.value];
|
|
77
97
|
return (e = t == null ? void 0 : t.item) != null && e.id ? `#search-input-${t.item.id}` : void 0;
|
|
78
|
-
}),
|
|
79
|
-
const t =
|
|
98
|
+
}), re = () => {
|
|
99
|
+
const t = u.value.find(
|
|
80
100
|
(o) => {
|
|
81
101
|
var r;
|
|
82
102
|
return ((r = o.info) == null ? void 0 : r.title) === "Drafts";
|
|
83
103
|
}
|
|
84
104
|
);
|
|
85
105
|
if (t && t.requests.forEach((o) => {
|
|
86
|
-
|
|
106
|
+
$.delete(L[o], t.uid);
|
|
87
107
|
}), S.value.length) {
|
|
88
|
-
const o =
|
|
89
|
-
r &&
|
|
108
|
+
const o = u.value[0], r = o == null ? void 0 : o.requests[0];
|
|
109
|
+
r && M(`/workspace/${R.value.uid}/request/${r}`);
|
|
90
110
|
} else {
|
|
91
|
-
const { request: o } =
|
|
92
|
-
t && (
|
|
111
|
+
const { request: o } = ye();
|
|
112
|
+
t && ($.add(o, t.uid), M(`/workspace/${R.value.uid}/request/${o.uid}`));
|
|
93
113
|
}
|
|
94
114
|
};
|
|
95
|
-
return (t, e) => (
|
|
96
|
-
|
|
97
|
-
class:
|
|
115
|
+
return (t, e) => (n(), v(k, null, [
|
|
116
|
+
me(c(s(Ve), {
|
|
117
|
+
class: f([t.showSidebar ? "sidebar-active-width" : ""]),
|
|
98
118
|
showSidebar: t.showSidebar,
|
|
99
119
|
"onUpdate:showSidebar": e[8] || (e[8] = (o) => t.$emit("update:showSidebar", o))
|
|
100
|
-
},
|
|
120
|
+
}, pe({
|
|
101
121
|
content: l(() => [
|
|
102
|
-
i("div",
|
|
103
|
-
|
|
122
|
+
i("div", We, [
|
|
123
|
+
c(s(qe), {
|
|
104
124
|
ref_key: "searchInputRef",
|
|
105
125
|
ref: P,
|
|
106
|
-
modelValue: s(
|
|
107
|
-
"onUpdate:modelValue": e[0] || (e[0] = (o) =>
|
|
108
|
-
"aria-activedescendant":
|
|
109
|
-
"aria-controls": s(
|
|
126
|
+
modelValue: s(h),
|
|
127
|
+
"onUpdate:modelValue": e[0] || (e[0] = (o) => fe(h) ? h.value = o : null),
|
|
128
|
+
"aria-activedescendant": se.value,
|
|
129
|
+
"aria-controls": s(x),
|
|
110
130
|
sidebar: "",
|
|
111
|
-
onInput: s(
|
|
131
|
+
onInput: s(_),
|
|
112
132
|
onKeydown: [
|
|
113
133
|
e[1] || (e[1] = y(m((o) => s(T)("down"), ["stop"]), ["down"])),
|
|
114
|
-
e[2] || (e[2] = y(m((o) => s(
|
|
134
|
+
e[2] || (e[2] = y(m((o) => s(te)(), ["stop"]), ["enter"])),
|
|
115
135
|
e[3] || (e[3] = y(m((o) => s(T)("up"), ["stop"]), ["up"]))
|
|
116
136
|
]
|
|
117
137
|
}, null, 8, ["modelValue", "aria-activedescendant", "aria-controls", "onInput"])
|
|
118
138
|
]),
|
|
119
139
|
i("div", {
|
|
120
|
-
class:
|
|
140
|
+
class: f(["flex flex-1 flex-col overflow-visible px-3 pb-3 pt-0", {
|
|
121
141
|
"pb-14": !t.isReadonly
|
|
122
142
|
}]),
|
|
123
143
|
onDragenter: e[6] || (e[6] = m(() => {
|
|
@@ -125,72 +145,72 @@ const Ve = {
|
|
|
125
145
|
onDragover: e[7] || (e[7] = m(() => {
|
|
126
146
|
}, ["prevent"]))
|
|
127
147
|
}, [
|
|
128
|
-
s(
|
|
148
|
+
s(h) ? (n(), d(s(De), {
|
|
129
149
|
key: 0,
|
|
130
|
-
id: s(
|
|
150
|
+
id: s(x),
|
|
131
151
|
"aria-label": "Search Results",
|
|
132
152
|
class: "gap-px",
|
|
133
153
|
noResults: !s(w).length
|
|
134
154
|
}, {
|
|
135
155
|
default: l(() => [
|
|
136
|
-
(
|
|
156
|
+
(n(!0), v(k, null, O(s(w), (o, r) => (n(), d(s($e), {
|
|
137
157
|
id: `#search-input-${o.item.id}`,
|
|
138
158
|
key: o.refIndex,
|
|
139
159
|
ref_for: !0,
|
|
140
|
-
ref: (
|
|
141
|
-
active: s(
|
|
160
|
+
ref: (a) => s(ee)[r] = a,
|
|
161
|
+
active: s(g) === r,
|
|
142
162
|
class: "px-2",
|
|
143
163
|
href: o.item.link,
|
|
144
|
-
onClick: m((
|
|
145
|
-
onFocus: (
|
|
164
|
+
onClick: m((a) => s(Z)(o), ["prevent"]),
|
|
165
|
+
onFocus: (a) => g.value = r
|
|
146
166
|
}, {
|
|
147
167
|
addon: l(() => [
|
|
148
168
|
e[10] || (e[10] = i("span", { class: "sr-only" }, "HTTP Method:", -1)),
|
|
149
|
-
|
|
169
|
+
c(Re, {
|
|
150
170
|
class: "font-bold",
|
|
151
171
|
method: o.item.httpVerb ?? "get"
|
|
152
172
|
}, null, 8, ["method"])
|
|
153
173
|
]),
|
|
154
174
|
default: l(() => [
|
|
155
|
-
I(
|
|
175
|
+
I(be(o.item.title) + " ", 1)
|
|
156
176
|
]),
|
|
157
177
|
_: 2
|
|
158
178
|
}, 1032, ["id", "active", "href", "onClick", "onFocus"]))), 128))
|
|
159
179
|
]),
|
|
160
180
|
_: 1
|
|
161
|
-
}, 8, ["id", "noResults"])) : (
|
|
162
|
-
(
|
|
181
|
+
}, 8, ["id", "noResults"])) : (n(), v("nav", Ae, [
|
|
182
|
+
(n(!0), v(k, null, O(s(u), (o) => {
|
|
163
183
|
var r;
|
|
164
|
-
return
|
|
184
|
+
return n(), d(Ee, {
|
|
165
185
|
key: o.uid,
|
|
166
186
|
isDraggable: !t.isReadonly && ((r = o.info) == null ? void 0 : r.title) !== "Drafts",
|
|
167
|
-
isDroppable: s(
|
|
168
|
-
menuItem:
|
|
187
|
+
isDroppable: s(G),
|
|
188
|
+
menuItem: p,
|
|
169
189
|
parentUids: [],
|
|
170
190
|
uid: o.uid,
|
|
171
|
-
onNewTab: e[4] || (e[4] = (
|
|
172
|
-
onOnDragEnd: s(
|
|
173
|
-
onOpenMenu: e[5] || (e[5] = (
|
|
191
|
+
onNewTab: e[4] || (e[4] = (a, V) => q("newTab", { name: a, uid: V })),
|
|
192
|
+
onOnDragEnd: s(j),
|
|
193
|
+
onOpenMenu: e[5] || (e[5] = (a) => Object.assign(p, a))
|
|
174
194
|
}, {
|
|
175
195
|
leftIcon: l(() => {
|
|
176
|
-
var
|
|
196
|
+
var a;
|
|
177
197
|
return [
|
|
178
|
-
((
|
|
198
|
+
((a = o.info) == null ? void 0 : a.title) === "Drafts" ? (n(), d(s(A), {
|
|
179
199
|
key: 0,
|
|
180
200
|
class: "text-sidebar-c-2 group-hover:hidden",
|
|
181
201
|
icon: "Scribble",
|
|
182
202
|
thickness: "2.25"
|
|
183
|
-
})) : (
|
|
203
|
+
})) : (n(), d(s(xe), {
|
|
184
204
|
key: 1,
|
|
185
205
|
class: "min-w-3.5 text-sidebar-c-2 size-3.5 stroke-2 group-hover:hidden",
|
|
186
206
|
src: o["x-scalar-icon"] || "interface-content-folder"
|
|
187
207
|
}, null, 8, ["src"])),
|
|
188
208
|
i("div", {
|
|
189
|
-
class:
|
|
190
|
-
"rotate-90": s(
|
|
209
|
+
class: f({
|
|
210
|
+
"rotate-90": s(J)[o.uid]
|
|
191
211
|
})
|
|
192
212
|
}, [
|
|
193
|
-
|
|
213
|
+
c(s(A), {
|
|
194
214
|
class: "text-c-3 hidden text-sm group-hover:block",
|
|
195
215
|
icon: "ChevronRight",
|
|
196
216
|
size: "md"
|
|
@@ -206,18 +226,18 @@ const Ve = {
|
|
|
206
226
|
]),
|
|
207
227
|
button: l(() => [
|
|
208
228
|
i("div", {
|
|
209
|
-
class:
|
|
229
|
+
class: f({
|
|
210
230
|
"empty-sidebar-item": s(S).length <= 1
|
|
211
231
|
})
|
|
212
232
|
}, [
|
|
213
|
-
i("div",
|
|
214
|
-
i("div",
|
|
215
|
-
|
|
216
|
-
art: s(
|
|
233
|
+
i("div", Fe, [
|
|
234
|
+
i("div", Ke, [
|
|
235
|
+
c(W, {
|
|
236
|
+
art: s(ve),
|
|
217
237
|
class: "font-bold rabbitsit"
|
|
218
238
|
}, null, 8, ["art"]),
|
|
219
|
-
|
|
220
|
-
art: s(
|
|
239
|
+
c(W, {
|
|
240
|
+
art: s(Se),
|
|
221
241
|
class: "font-bold absolute top-0 left-0 rabbitjump"
|
|
222
242
|
}, null, 8, ["art"])
|
|
223
243
|
]),
|
|
@@ -226,21 +246,21 @@ const Ve = {
|
|
|
226
246
|
i("p", { class: "mt-2" }, " Create request, folder, collection or import from OpenAPI/Postman ")
|
|
227
247
|
], -1))
|
|
228
248
|
]),
|
|
229
|
-
t.isReadonly ?
|
|
249
|
+
t.isReadonly ? C("", !0) : (n(), d(s(Me), {
|
|
230
250
|
key: 0,
|
|
231
|
-
class:
|
|
251
|
+
class: f(["mb-1.5 w-full h-fit hidden opacity-0 p-1.5", {
|
|
232
252
|
"flex opacity-100": s(S).length <= 1
|
|
233
253
|
}]),
|
|
234
|
-
onClick:
|
|
254
|
+
onClick: X
|
|
235
255
|
}, {
|
|
236
256
|
default: l(() => e[12] || (e[12] = [
|
|
237
257
|
I(" Import Collection ")
|
|
238
258
|
])),
|
|
239
259
|
_: 1
|
|
240
260
|
}, 8, ["class"])),
|
|
241
|
-
t.isReadonly ?
|
|
261
|
+
t.isReadonly ? C("", !0) : (n(), d(ge, {
|
|
242
262
|
key: 1,
|
|
243
|
-
click: s(
|
|
263
|
+
click: s(b).commandPalette.emit,
|
|
244
264
|
hotkey: "K"
|
|
245
265
|
}, {
|
|
246
266
|
title: l(() => e[13] || (e[13] = [
|
|
@@ -258,18 +278,18 @@ const Ve = {
|
|
|
258
278
|
key: "0"
|
|
259
279
|
}
|
|
260
280
|
]), 1032, ["class", "showSidebar"]), [
|
|
261
|
-
[
|
|
281
|
+
[he, t.showSidebar]
|
|
262
282
|
]),
|
|
263
|
-
!s(
|
|
283
|
+
!s(H) && p ? (n(), d(Ie, {
|
|
264
284
|
key: 0,
|
|
265
|
-
menuItem:
|
|
266
|
-
onClearDrafts:
|
|
267
|
-
onCloseMenu: e[9] || (e[9] = (o) =>
|
|
268
|
-
onToggleWatchMode:
|
|
269
|
-
}, null, 8, ["menuItem"])) :
|
|
285
|
+
menuItem: p,
|
|
286
|
+
onClearDrafts: re,
|
|
287
|
+
onCloseMenu: e[9] || (e[9] = (o) => p.open = !1),
|
|
288
|
+
onToggleWatchMode: oe
|
|
289
|
+
}, null, 8, ["menuItem"])) : C("", !0)
|
|
270
290
|
], 64));
|
|
271
291
|
}
|
|
272
292
|
});
|
|
273
293
|
export {
|
|
274
|
-
|
|
294
|
+
nt as default
|
|
275
295
|
};
|
|
@@ -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":"AAogBA,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;AA+OJ,iBAAS,cAAc;WA6gBT,OAAO,IAA6B;;oBA9uBpC,IAAI;;oBAAJ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCArDlB,KAzdW;;;;;;;oCAydX,KAldsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAiwBiB,GAAE,8CAGxB,GAAG,yBACG,GACtB,6DACI,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmfP;AAkCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;iBAjzBH,OAAO;uFA0zBvB,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-fb216cf9"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
p as default
|
|
8
8
|
};
|