@scalar/api-client 2.1.23 → 2.1.25
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 +15 -0
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/ContextBar.vue.js +2 -2
- package/dist/components/ContextBar.vue2.js +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +9 -9
- package/dist/components/SideNav/SideHelp.vue.js +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +1 -1
- 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 +4 -4
- package/dist/components/Sidebar/SidebarList.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarList.vue.js +3 -3
- package/dist/components/Sidebar/SidebarToggle.vue.js +1 -1
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +3 -3
- package/dist/style.css +1 -1
- package/dist/views/Request/Request.vue.js +1 -1
- package/dist/views/Request/Request.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +45 -53
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +3 -3
- package/dist/views/Request/RequestSidebar.vue2.js +42 -45
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue.js +3 -3
- package/dist/views/Request/RequestSubpageHeader.vue2.js +15 -13
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +44 -51
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +2 -2
- package/package.json +8 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Request.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a2bc9058"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestSection.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"RequestSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestSection.vue"],"names":[],"mappings":";AAiZA,wBAKG"}
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as g, computed as _, ref as q, watch as b, openBlock as m, createBlock as C, withCtx as x, createElementVNode as A, unref as r, createElementBlock as p, createCommentVNode as V, toDisplayString as w, createVNode as s, withDirectives as u, vShow as n } from "vue";
|
|
2
|
+
import H from "../../../components/ContextBar.vue.js";
|
|
3
|
+
import N from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
4
|
+
import R from "./RequestBody.vue.js";
|
|
5
5
|
import v from "./RequestParams.vue.js";
|
|
6
6
|
import K from "./RequestPathParams.vue.js";
|
|
7
|
-
import { ScalarIcon as $ } from "@scalar/components";
|
|
8
7
|
import { canMethodHaveBody as f } from "@scalar/oas-utils/helpers";
|
|
9
|
-
import
|
|
10
|
-
import { useWorkspace as
|
|
11
|
-
const
|
|
8
|
+
import $ from "./RequestAuth/RequestAuth.vue.js";
|
|
9
|
+
import { useWorkspace as E } from "../../../store/store.js";
|
|
10
|
+
const Q = { class: "flex-1 flex gap-1 items-center lg:pr-24 pointer-events-none" }, D = {
|
|
12
11
|
key: 0,
|
|
13
12
|
class: "absolute w-full h-full top-0 left-0 pointer-events-auto opacity-0 cursor-text",
|
|
14
13
|
for: "requestname"
|
|
15
|
-
},
|
|
14
|
+
}, M = ["value"], P = {
|
|
16
15
|
key: 2,
|
|
17
|
-
class: "text-c-
|
|
18
|
-
},
|
|
16
|
+
class: "text-c-1"
|
|
17
|
+
}, I = { class: "request-section-content custom-scroll flex flex-1 flex-col px-2 xl:px-4 py-2.5" }, X = /* @__PURE__ */ g({
|
|
19
18
|
__name: "RequestSection",
|
|
20
19
|
setup(O) {
|
|
21
|
-
const { activeRequest: a, activeExample: h, isReadOnly:
|
|
22
|
-
var l,
|
|
20
|
+
const { activeRequest: a, activeExample: h, isReadOnly: d, requestMutators: k } = E(), B = _(() => {
|
|
21
|
+
var l, o;
|
|
23
22
|
const t = /* @__PURE__ */ new Set([
|
|
24
23
|
"All",
|
|
25
24
|
"Query",
|
|
@@ -29,91 +28,84 @@ const I = { class: "flex-1 flex gap-1 items-center lg:pr-24 pointer-events-none"
|
|
|
29
28
|
"Headers",
|
|
30
29
|
"Body"
|
|
31
30
|
]);
|
|
32
|
-
return (l = h.value) != null && l.parameters.path.length || t.delete("Variables"), f(((
|
|
31
|
+
return (l = h.value) != null && l.parameters.path.length || t.delete("Variables"), f(((o = a.value) == null ? void 0 : o.method) ?? "get") || t.delete("Body"), y.value && t.delete("Auth"), [...t];
|
|
33
32
|
}), y = _(
|
|
34
33
|
() => {
|
|
35
34
|
var t, l;
|
|
36
|
-
return
|
|
35
|
+
return d.value && ((l = (t = a.value) == null ? void 0 : t.security) == null ? void 0 : l.length) === 0;
|
|
37
36
|
}
|
|
38
|
-
), e =
|
|
39
|
-
|
|
37
|
+
), e = q("All");
|
|
38
|
+
b(a, (t) => {
|
|
40
39
|
e.value === "Body" && t && !f(t.method) && (e.value = "All");
|
|
41
40
|
});
|
|
42
|
-
const
|
|
41
|
+
const S = (t) => {
|
|
43
42
|
if (!a.value) return;
|
|
44
43
|
const l = t.target;
|
|
45
44
|
k.edit(a.value.uid, "summary", l.value);
|
|
46
45
|
};
|
|
47
|
-
return (t, l) => (m(),
|
|
46
|
+
return (t, l) => (m(), C(N, null, {
|
|
48
47
|
title: x(() => {
|
|
49
|
-
var
|
|
48
|
+
var o, i;
|
|
50
49
|
return [
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
size: "sm",
|
|
55
|
-
thickness: "2.5"
|
|
56
|
-
}),
|
|
57
|
-
A("div", I, [
|
|
58
|
-
l[1] || (l[1] = C(" Request ")),
|
|
59
|
-
o(p) ? w("", !0) : (m(), d("label", M)),
|
|
60
|
-
o(p) ? (m(), d("span", z, H((u = o(a)) == null ? void 0 : u.summary), 1)) : (m(), d("input", {
|
|
50
|
+
A("div", Q, [
|
|
51
|
+
r(d) ? V("", !0) : (m(), p("label", D)),
|
|
52
|
+
r(d) ? (m(), p("span", P, w((i = r(a)) == null ? void 0 : i.summary), 1)) : (m(), p("input", {
|
|
61
53
|
key: 1,
|
|
62
54
|
id: "requestname",
|
|
63
|
-
class: "outline-none border-0 text-c-
|
|
55
|
+
class: "outline-none border-0 text-c-1 rounded pointer-events-auto relative w-full",
|
|
64
56
|
placeholder: "Request Name",
|
|
65
|
-
value: (
|
|
66
|
-
onInput:
|
|
67
|
-
}, null, 40,
|
|
57
|
+
value: (o = r(a)) == null ? void 0 : o.summary,
|
|
58
|
+
onInput: S
|
|
59
|
+
}, null, 40, M))
|
|
68
60
|
]),
|
|
69
|
-
s(
|
|
61
|
+
s(H, {
|
|
70
62
|
activeSection: e.value,
|
|
71
|
-
sections:
|
|
63
|
+
sections: B.value,
|
|
72
64
|
onSetActiveSection: l[0] || (l[0] = (c) => e.value = c)
|
|
73
65
|
}, null, 8, ["activeSection", "sections"])
|
|
74
66
|
];
|
|
75
67
|
}),
|
|
76
68
|
default: x(() => {
|
|
77
|
-
var
|
|
69
|
+
var o, i, c;
|
|
78
70
|
return [
|
|
79
|
-
A("div",
|
|
80
|
-
|
|
71
|
+
A("div", I, [
|
|
72
|
+
u(s($, { title: "Authentication" }, null, 512), [
|
|
81
73
|
[
|
|
82
|
-
|
|
74
|
+
n,
|
|
83
75
|
!y.value && (e.value === "All" || e.value === "Auth")
|
|
84
76
|
]
|
|
85
77
|
]),
|
|
86
|
-
|
|
78
|
+
u(s(K, {
|
|
87
79
|
paramKey: "path",
|
|
88
80
|
title: "Path Variables"
|
|
89
81
|
}, null, 512), [
|
|
90
82
|
[
|
|
91
|
-
|
|
92
|
-
(e.value === "All" || e.value === "Variables") && ((c = (
|
|
83
|
+
n,
|
|
84
|
+
(e.value === "All" || e.value === "Variables") && ((c = (i = (o = r(h)) == null ? void 0 : o.parameters) == null ? void 0 : i.path) == null ? void 0 : c.length)
|
|
93
85
|
]
|
|
94
86
|
]),
|
|
95
|
-
|
|
87
|
+
u(s(v, {
|
|
96
88
|
paramKey: "cookies",
|
|
97
89
|
title: "Cookies"
|
|
98
90
|
}, null, 512), [
|
|
99
|
-
[
|
|
91
|
+
[n, e.value === "All" || e.value === "Cookies"]
|
|
100
92
|
]),
|
|
101
|
-
|
|
93
|
+
u(s(v, {
|
|
102
94
|
paramKey: "headers",
|
|
103
95
|
title: "Headers"
|
|
104
96
|
}, null, 512), [
|
|
105
|
-
[
|
|
97
|
+
[n, e.value === "All" || e.value === "Headers"]
|
|
106
98
|
]),
|
|
107
|
-
|
|
99
|
+
u(s(v, {
|
|
108
100
|
paramKey: "query",
|
|
109
101
|
title: "Query Parameters"
|
|
110
102
|
}, null, 512), [
|
|
111
|
-
[
|
|
103
|
+
[n, e.value === "All" || e.value === "Query"]
|
|
112
104
|
]),
|
|
113
|
-
|
|
105
|
+
u(s(R, { title: "Body" }, null, 512), [
|
|
114
106
|
[
|
|
115
|
-
|
|
116
|
-
|
|
107
|
+
n,
|
|
108
|
+
r(a) && (e.value === "All" || e.value === "Body") && r(f)(r(a).method)
|
|
117
109
|
]
|
|
118
110
|
])
|
|
119
111
|
])
|
|
@@ -124,5 +116,5 @@ const I = { class: "flex-1 flex gap-1 items-center lg:pr-24 pointer-events-none"
|
|
|
124
116
|
}
|
|
125
117
|
});
|
|
126
118
|
export {
|
|
127
|
-
|
|
119
|
+
X as default
|
|
128
120
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebar.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"RequestSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebar.vue"],"names":[],"mappings":";iBAsVe,OAAO;gBACR,OAAO;;;cAqmBkB,MAAM;aAAO,MAAM;;;;iBAtmB3C,OAAO;gBACR,OAAO;;;cAqmBkB,MAAM;aAAO,MAAM;;;;AAR1D,wBAUG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from "./RequestSidebar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const m = /* @__PURE__ */
|
|
3
|
+
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ o(e, [["__scopeId", "data-v-3e3ee583"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as J, reactive as Q, watch as X, onMounted as Y, onBeforeUnmount as Z, openBlock as a, createElementBlock as h, Fragment as S, withDirectives as _, createVNode as
|
|
1
|
+
import { defineComponent as J, reactive as Q, watch as X, onMounted as Y, onBeforeUnmount as Z, openBlock as a, createElementBlock as h, Fragment as S, withDirectives as _, createVNode as u, unref as t, normalizeClass as b, createSlots as ee, withCtx as n, createElementVNode as i, isRef as te, withKeys as v, withModifiers as p, createBlock as l, renderList as C, createTextVNode as D, toDisplayString as oe, createCommentVNode as $, vShow as se } from "vue";
|
|
2
2
|
import re from "../../assets/rabbit.ascii.js";
|
|
3
3
|
import ae from "../../assets/rabbitjump.ascii.js";
|
|
4
4
|
import ie from "../../components/HttpMethod/HttpMethod.vue.js";
|
|
@@ -6,15 +6,14 @@ import V from "../../components/ScalarAsciiArt.vue.js";
|
|
|
6
6
|
import { useSearch as ne } from "../../components/Search/useSearch.js";
|
|
7
7
|
import le from "../../components/Sidebar/SidebarButton.vue.js";
|
|
8
8
|
import de from "./RequestSidebarItemMenu.vue.js";
|
|
9
|
-
import { dragHandlerFactory as
|
|
10
|
-
import { ScalarSearchInput as
|
|
9
|
+
import { dragHandlerFactory as ue } from "./handle-drag.js";
|
|
10
|
+
import { ScalarSearchInput as me, ScalarSearchResultList as pe, ScalarSearchResultItem as ce, ScalarIcon as q } from "@scalar/components";
|
|
11
11
|
import { LibraryIcon as fe } from "@scalar/icons";
|
|
12
12
|
import be from "./RequestSidebarItem.vue.js";
|
|
13
13
|
import he from "../../components/Sidebar/Sidebar.vue.js";
|
|
14
|
-
import Se from "
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
const ye = { class: "search-button-fade sticky px-3 py-2.5 top-0 z-10" }, ke = { class: "empty-sidebar-item-content px-2.5 py-2.5" }, we = { class: "w-[60px] h-[68px] m-auto rabbit-ascii mt-2 relative" }, Te = /* @__PURE__ */ J({
|
|
14
|
+
import { useSidebar as Se } from "../../hooks/useSidebar.js";
|
|
15
|
+
import { useWorkspace as ve } from "../../store/store.js";
|
|
16
|
+
const Re = { class: "search-button-fade sticky px-3 py-2.5 top-0 z-10" }, ke = { class: "empty-sidebar-item-content px-2.5 py-2.5" }, we = { class: "w-[60px] h-[68px] m-auto rabbit-ascii mt-2 relative" }, Ke = /* @__PURE__ */ J({
|
|
18
17
|
__name: "RequestSidebar",
|
|
19
18
|
props: {
|
|
20
19
|
showSidebar: { type: Boolean },
|
|
@@ -22,14 +21,14 @@ const ye = { class: "search-button-fade sticky px-3 py-2.5 top-0 z-10" }, ke = {
|
|
|
22
21
|
},
|
|
23
22
|
emits: ["update:showSidebar", "newTab"],
|
|
24
23
|
setup(P, { emit: B }) {
|
|
25
|
-
const E = P, R = B,
|
|
24
|
+
const E = P, R = B, k = ve(), {
|
|
26
25
|
activeWorkspaceCollections: F,
|
|
27
26
|
activeRequest: M,
|
|
28
27
|
activeWorkspaceRequests: O,
|
|
29
28
|
findRequestParents: K,
|
|
30
29
|
isReadOnly: N,
|
|
31
30
|
events: c
|
|
32
|
-
} =
|
|
31
|
+
} = k, { handleDragEnd: T, isDroppable: z } = ue(k), { collapsedSidebarFolders: A, setCollapsedSidebarFolder: L } = Se(), m = Q({ open: !1 });
|
|
33
32
|
X(
|
|
34
33
|
M,
|
|
35
34
|
(s) => {
|
|
@@ -41,29 +40,29 @@ const ye = { class: "search-button-fade sticky px-3 py-2.5 top-0 z-10" }, ke = {
|
|
|
41
40
|
);
|
|
42
41
|
const {
|
|
43
42
|
searchText: f,
|
|
44
|
-
searchResultsWithPlaceholderResults:
|
|
45
|
-
selectedSearchResult:
|
|
43
|
+
searchResultsWithPlaceholderResults: w,
|
|
44
|
+
selectedSearchResult: y,
|
|
46
45
|
onSearchResultClick: U,
|
|
47
46
|
fuseSearch: W,
|
|
48
47
|
searchInputRef: g,
|
|
49
48
|
searchResultRefs: H,
|
|
50
|
-
navigateSearchResults:
|
|
49
|
+
navigateSearchResults: I,
|
|
51
50
|
selectSearchResult: j
|
|
52
|
-
} = ne(),
|
|
51
|
+
} = ne(), x = (s) => {
|
|
53
52
|
var e;
|
|
54
53
|
s && (s.toggleSidebar && R("update:showSidebar", E.showSidebar), s.openCommandPalette && (s.openCommandPalette.preventDefault(), c.commandPalette.emit()), s.focusRequestSearch && ((e = g.value) == null || e.focus()));
|
|
55
54
|
};
|
|
56
|
-
return Y(() => c.hotKeys.on(
|
|
57
|
-
c.hotKeys.off(
|
|
55
|
+
return Y(() => c.hotKeys.on(x)), Z(() => {
|
|
56
|
+
c.hotKeys.off(x);
|
|
58
57
|
}), (s, e) => (a(), h(S, null, [
|
|
59
|
-
_(
|
|
58
|
+
_(u(t(he), {
|
|
60
59
|
class: b([s.showSidebar ? "sidebar-active-width" : ""]),
|
|
61
60
|
showSidebar: s.showSidebar,
|
|
62
61
|
"onUpdate:showSidebar": e[8] || (e[8] = (o) => s.$emit("update:showSidebar", o))
|
|
63
62
|
}, ee({
|
|
64
63
|
content: n(() => [
|
|
65
|
-
i("div",
|
|
66
|
-
|
|
64
|
+
i("div", Re, [
|
|
65
|
+
u(t(me), {
|
|
67
66
|
ref_key: "searchInputRef",
|
|
68
67
|
ref: g,
|
|
69
68
|
modelValue: t(f),
|
|
@@ -71,9 +70,9 @@ const ye = { class: "search-button-fade sticky px-3 py-2.5 top-0 z-10" }, ke = {
|
|
|
71
70
|
sidebar: "",
|
|
72
71
|
onInput: t(W),
|
|
73
72
|
onKeydown: [
|
|
74
|
-
e[1] || (e[1] = v(p((o) => t(
|
|
73
|
+
e[1] || (e[1] = v(p((o) => t(I)("down"), ["stop"]), ["down"])),
|
|
75
74
|
e[2] || (e[2] = v(p((o) => t(j)(), ["stop"]), ["enter"])),
|
|
76
|
-
e[3] || (e[3] = v(p((o) => t(
|
|
75
|
+
e[3] || (e[3] = v(p((o) => t(I)("up"), ["stop"]), ["up"]))
|
|
77
76
|
]
|
|
78
77
|
}, null, 8, ["modelValue", "onInput"])
|
|
79
78
|
]),
|
|
@@ -86,24 +85,24 @@ const ye = { class: "search-button-fade sticky px-3 py-2.5 top-0 z-10" }, ke = {
|
|
|
86
85
|
onDragover: e[7] || (e[7] = p(() => {
|
|
87
86
|
}, ["prevent"]))
|
|
88
87
|
}, [
|
|
89
|
-
t(f) ? (a(),
|
|
88
|
+
t(f) ? (a(), l(t(pe), {
|
|
90
89
|
key: 0,
|
|
91
90
|
class: "gap-px custom-scroll",
|
|
92
|
-
noResults: !t(
|
|
91
|
+
noResults: !t(w).length
|
|
93
92
|
}, {
|
|
94
93
|
default: n(() => [
|
|
95
|
-
(a(!0), h(S, null, C(t(
|
|
94
|
+
(a(!0), h(S, null, C(t(w), (o, d) => (a(), l(t(ce), {
|
|
96
95
|
id: `#search-input-${o.item.id}`,
|
|
97
96
|
key: o.refIndex,
|
|
98
97
|
ref_for: !0,
|
|
99
|
-
ref: (r) => t(H)[
|
|
100
|
-
active: t(
|
|
98
|
+
ref: (r) => t(H)[d] = r,
|
|
99
|
+
active: t(y) === d,
|
|
101
100
|
class: "px-2",
|
|
102
101
|
onClick: (r) => t(U)(o),
|
|
103
|
-
onFocus: (r) =>
|
|
102
|
+
onFocus: (r) => y.value = d
|
|
104
103
|
}, {
|
|
105
104
|
addon: n(() => [
|
|
106
|
-
|
|
105
|
+
u(ie, {
|
|
107
106
|
class: "font-bold",
|
|
108
107
|
method: o.item.httpVerb ?? "get"
|
|
109
108
|
}, null, 8, ["method"])
|
|
@@ -116,27 +115,27 @@ const ye = { class: "search-button-fade sticky px-3 py-2.5 top-0 z-10" }, ke = {
|
|
|
116
115
|
]),
|
|
117
116
|
_: 1
|
|
118
117
|
}, 8, ["noResults"])) : (a(!0), h(S, { key: 1 }, C(t(F), (o) => {
|
|
119
|
-
var
|
|
120
|
-
return a(),
|
|
118
|
+
var d;
|
|
119
|
+
return a(), l(be, {
|
|
121
120
|
key: o.uid,
|
|
122
|
-
isDraggable: !s.isReadonly && ((
|
|
121
|
+
isDraggable: !s.isReadonly && ((d = o.info) == null ? void 0 : d.title) !== "Drafts",
|
|
123
122
|
isDroppable: t(z),
|
|
124
|
-
menuItem:
|
|
123
|
+
menuItem: m,
|
|
125
124
|
parentUids: [],
|
|
126
125
|
uid: o.uid,
|
|
127
126
|
onNewTab: e[4] || (e[4] = (r, G) => R("newTab", { name: r, uid: G })),
|
|
128
127
|
onOnDragEnd: t(T),
|
|
129
|
-
onOpenMenu: e[5] || (e[5] = (r) => Object.assign(
|
|
128
|
+
onOpenMenu: e[5] || (e[5] = (r) => Object.assign(m, r))
|
|
130
129
|
}, {
|
|
131
130
|
leftIcon: n(() => {
|
|
132
131
|
var r;
|
|
133
132
|
return [
|
|
134
|
-
((r = o.info) == null ? void 0 : r.title) === "Drafts" ? (a(),
|
|
133
|
+
((r = o.info) == null ? void 0 : r.title) === "Drafts" ? (a(), l(t(q), {
|
|
135
134
|
key: 0,
|
|
136
135
|
class: "text-sidebar-c-2 group-hover:hidden",
|
|
137
136
|
icon: "Scribble",
|
|
138
137
|
thickness: "2.25"
|
|
139
|
-
})) : (a(),
|
|
138
|
+
})) : (a(), l(t(fe), {
|
|
140
139
|
key: 1,
|
|
141
140
|
class: "text-sidebar-c-2 size-3.5 stroke-[2.25] group-hover:hidden",
|
|
142
141
|
src: o["x-scalar-icon"] || "interface-content-folder"
|
|
@@ -146,7 +145,7 @@ const ye = { class: "search-button-fade sticky px-3 py-2.5 top-0 z-10" }, ke = {
|
|
|
146
145
|
"rotate-90": t(A)[o.uid]
|
|
147
146
|
})
|
|
148
147
|
}, [
|
|
149
|
-
|
|
148
|
+
u(t(q), {
|
|
150
149
|
class: "text-c-3 hidden text-sm group-hover:block",
|
|
151
150
|
icon: "ChevronRight",
|
|
152
151
|
size: "sm",
|
|
@@ -168,11 +167,11 @@ const ye = { class: "search-button-fade sticky px-3 py-2.5 top-0 z-10" }, ke = {
|
|
|
168
167
|
}, [
|
|
169
168
|
i("div", ke, [
|
|
170
169
|
i("div", we, [
|
|
171
|
-
|
|
170
|
+
u(V, {
|
|
172
171
|
art: t(re),
|
|
173
172
|
class: "font-bold rabbitsit"
|
|
174
173
|
}, null, 8, ["art"]),
|
|
175
|
-
|
|
174
|
+
u(V, {
|
|
176
175
|
art: t(ae),
|
|
177
176
|
class: "font-bold absolute top-0 left-0 rabbitjump"
|
|
178
177
|
}, null, 8, ["art"])
|
|
@@ -182,7 +181,7 @@ const ye = { class: "search-button-fade sticky px-3 py-2.5 top-0 z-10" }, ke = {
|
|
|
182
181
|
i("p", { class: "mt-2" }, " Create request, folder, collection or import OpenAPI document ")
|
|
183
182
|
], -1))
|
|
184
183
|
]),
|
|
185
|
-
s.isReadonly ? $("", !0) : (a(),
|
|
184
|
+
s.isReadonly ? $("", !0) : (a(), l(le, {
|
|
186
185
|
key: 0,
|
|
187
186
|
click: t(c).commandPalette.emit
|
|
188
187
|
}, {
|
|
@@ -197,22 +196,20 @@ const ye = { class: "search-button-fade sticky px-3 py-2.5 top-0 z-10" }, ke = {
|
|
|
197
196
|
}, [
|
|
198
197
|
s.isReadonly ? void 0 : {
|
|
199
198
|
name: "header",
|
|
200
|
-
fn: n(() => [
|
|
201
|
-
l(t(Se), { class: "min-h-11 xl:min-h-header xl:py-2.5 py-1 px-2.5 border-b-1/2" })
|
|
202
|
-
]),
|
|
199
|
+
fn: n(() => []),
|
|
203
200
|
key: "0"
|
|
204
201
|
}
|
|
205
202
|
]), 1032, ["class", "showSidebar"]), [
|
|
206
203
|
[se, s.showSidebar]
|
|
207
204
|
]),
|
|
208
|
-
!t(N) &&
|
|
205
|
+
!t(N) && m ? (a(), l(de, {
|
|
209
206
|
key: 0,
|
|
210
|
-
menuItem:
|
|
211
|
-
onCloseMenu: e[9] || (e[9] = (o) =>
|
|
207
|
+
menuItem: m,
|
|
208
|
+
onCloseMenu: e[9] || (e[9] = (o) => m.open = !1)
|
|
212
209
|
}, null, 8, ["menuItem"])) : $("", !0)
|
|
213
210
|
], 64));
|
|
214
211
|
}
|
|
215
212
|
});
|
|
216
213
|
export {
|
|
217
|
-
|
|
214
|
+
Ke as default
|
|
218
215
|
};
|
|
@@ -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":";gBAuEc,OAAO;gBACP,OAAO;;;;;;gBADP,OAAO;gBACP,OAAO;;;;;;AAiNrB,wBAWG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from "./RequestSubpageHeader.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const p = /* @__PURE__ */ e
|
|
3
|
+
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-872306be"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as i, openBlock as l, createElementBlock as n, createElementVNode as r, createVNode as m, createBlock as s, unref as d, createCommentVNode as a } from "vue";
|
|
2
2
|
import p from "../../components/AddressBar/AddressBar.vue.js";
|
|
3
3
|
import u from "../../components/EnvironmentSelector/EnvironmentSelector.vue.js";
|
|
4
4
|
import f from "../../components/Sidebar/SidebarToggle.vue.js";
|
|
5
5
|
import { ScalarIcon as c } from "@scalar/components";
|
|
6
|
-
|
|
6
|
+
import b from "./components/WorkspaceDropdown.vue.js";
|
|
7
|
+
const g = { class: "lg:min-h-header flex items-center w-full justify-center p-2 pt-1 lg:p-1 flex-wrap t-app__top-container md:border-b-1/2" }, y = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 w-6/12" }, k = { class: "flex flex-row items-center gap-1 lg:px-2.5 lg:mb-0 mb-0.5 lg:flex-1 justify-end w-6/12" }, $ = /* @__PURE__ */ i({
|
|
7
8
|
__name: "RequestSubpageHeader",
|
|
8
9
|
props: {
|
|
9
10
|
modelValue: { type: Boolean },
|
|
10
11
|
isReadonly: { type: Boolean }
|
|
11
12
|
},
|
|
12
13
|
emits: ["update:modelValue", "hideModal", "importCurl"],
|
|
13
|
-
setup(
|
|
14
|
-
return (o, e) => (l(),
|
|
15
|
-
r("div",
|
|
14
|
+
setup(x) {
|
|
15
|
+
return (o, e) => (l(), n("div", g, [
|
|
16
|
+
r("div", y, [
|
|
16
17
|
m(f, {
|
|
17
18
|
class: "gitbook-hidden",
|
|
18
19
|
modelValue: o.modelValue,
|
|
19
20
|
"onUpdate:modelValue": e[0] || (e[0] = (t) => o.$emit("update:modelValue", t))
|
|
20
21
|
}, null, 8, ["modelValue"]),
|
|
22
|
+
o.isReadonly ? a("", !0) : (l(), s(d(b), { key: 0 })),
|
|
21
23
|
e[3] || (e[3] = r("a", {
|
|
22
24
|
class: "text-c-2 text-sm font-medium gitbook-show ml-.5 hover:text-c-1 border p-1 rounded hover:bg-b-3",
|
|
23
25
|
href: "https://scalar.com/",
|
|
@@ -27,24 +29,24 @@ const b = { class: "lg:min-h-header flex items-center w-full justify-center p-2
|
|
|
27
29
|
m(p, {
|
|
28
30
|
onImportCurl: e[1] || (e[1] = (t) => o.$emit("importCurl", t))
|
|
29
31
|
}),
|
|
30
|
-
r("div",
|
|
31
|
-
o.isReadonly ?
|
|
32
|
-
o.isReadonly ? (l(),
|
|
32
|
+
r("div", k, [
|
|
33
|
+
o.isReadonly ? a("", !0) : (l(), s(u, { key: 0 })),
|
|
34
|
+
o.isReadonly ? (l(), n("button", {
|
|
33
35
|
key: 1,
|
|
34
|
-
class: "text-c-
|
|
36
|
+
class: "text-c-1 hover:bg-b-2 active:text-c-1 p-2 rounded -mr-1.5",
|
|
35
37
|
type: "button",
|
|
36
38
|
onClick: e[2] || (e[2] = (t) => o.$emit("hideModal"))
|
|
37
39
|
}, [
|
|
38
|
-
m(
|
|
40
|
+
m(d(c), {
|
|
39
41
|
icon: "Close",
|
|
40
|
-
size: "
|
|
42
|
+
size: "md",
|
|
41
43
|
thickness: "1.75"
|
|
42
44
|
})
|
|
43
|
-
])) :
|
|
45
|
+
])) : a("", !0)
|
|
44
46
|
])
|
|
45
47
|
]));
|
|
46
48
|
}
|
|
47
49
|
});
|
|
48
50
|
export {
|
|
49
|
-
|
|
51
|
+
$ as default
|
|
50
52
|
};
|
|
@@ -13,7 +13,7 @@ const N = { class: "relative col-1 flex-center gap-6 p-2 capitalize" }, q = { cl
|
|
|
13
13
|
s.commandPalette.emit({ commandName: "Create Request" });
|
|
14
14
|
}, c = (n) => {
|
|
15
15
|
n != null && n.openCommandPaletteRequest && m();
|
|
16
|
-
}, x = "2.1.
|
|
16
|
+
}, x = "2.1.25";
|
|
17
17
|
return k(() => s.hotKeys.on(c)), R(() => s.hotKeys.off(c)), (n, e) => (r(), l("div", N, [
|
|
18
18
|
t("div", q, [
|
|
19
19
|
o(f).isReadOnly ? p("", !0) : (r(), l("div", v, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseSection.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ResponseSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseSection.vue"],"names":[],"mappings":"AAwHA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;;cAU3D,gBAAgB,GAAG,SAAS;;cAA5B,gBAAgB,GAAG,SAAS;;AAgOxC,wBAMG"}
|