@scalar/api-client 2.1.44 → 2.1.46
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 +45 -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 +66 -58
- package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +8 -8
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServer.vue.js +40 -39
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +1 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +7 -7
- package/dist/components/ContextBar.vue.d.ts +1 -1
- package/dist/components/ContextBar.vue.d.ts.map +1 -1
- package/dist/components/ContextBar.vue.js +2 -2
- package/dist/components/ContextBar.vue2.js +30 -19
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCheckbox.vue.js +17 -17
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +2 -2
- package/dist/components/DataTable/DataTableInput.vue2.js +10 -10
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +8 -8
- package/dist/components/Form/Form.vue.js +15 -15
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +14 -13
- package/dist/components/Search/useSearch.d.ts +2 -0
- package/dist/components/Search/useSearch.d.ts.map +1 -1
- package/dist/components/Search/useSearch.js +25 -24
- package/dist/components/SideNav/DownloadAppButton.vue.d.ts +3 -0
- package/dist/components/SideNav/DownloadAppButton.vue.d.ts.map +1 -0
- package/dist/components/SideNav/DownloadAppButton.vue.js +7 -0
- package/dist/components/SideNav/DownloadAppButton.vue2.js +33 -0
- package/dist/components/SideNav/SideHelp.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideHelp.vue.js +55 -53
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +82 -5
- package/dist/components/SideNav/SideNav.vue2.js +2 -72
- package/dist/components/SideNav/SideNavGroup.vue.d.ts +18 -0
- package/dist/components/SideNav/SideNavGroup.vue.d.ts.map +1 -0
- package/dist/components/SideNav/SideNavGroup.vue.js +16 -0
- package/dist/components/SideNav/SideNavGroup.vue2.js +4 -0
- package/dist/components/SideNav/SideNavLink.vue.d.ts +5 -5
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +31 -34
- package/dist/components/SideNav/SideNavRouterLink.vue.d.ts +25 -0
- package/dist/components/SideNav/SideNavRouterLink.vue.d.ts.map +1 -0
- package/dist/components/SideNav/SideNavRouterLink.vue.js +29 -0
- package/dist/components/SideNav/SideNavRouterLink.vue2.js +4 -0
- package/dist/components/Sidebar/SidebarButton.vue.d.ts +1 -4
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +17 -17
- package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarToggle.vue.js +16 -15
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +2 -2
- package/dist/components/TopNav/TopNav.vue2.js +14 -14
- package/dist/components/TopNav/TopNavItem.vue.d.ts +2 -2
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +27 -27
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +13 -21
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +6 -4
- package/dist/hooks/useLayout.d.ts +13 -0
- package/dist/hooks/useLayout.d.ts.map +1 -0
- package/dist/hooks/useLayout.js +7 -0
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +37 -37
- package/dist/layouts/App/MainLayout.vue.d.ts.map +1 -1
- package/dist/layouts/App/MainLayout.vue.js +21 -13
- package/dist/layouts/App/create-api-client-app.d.ts +35 -41
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.js +14 -13
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts +3 -1
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
- package/dist/layouts/Modal/ApiClientModal.vue2.js +37 -25
- package/dist/layouts/Modal/create-api-client-modal.d.ts +70 -82
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.js +18 -19
- package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.js +30 -30
- package/dist/layouts/Web/create-api-client-web.d.ts +35 -41
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.js +12 -11
- package/dist/libs/create-client.d.ts +43 -43
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +50 -51
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/store/collections.d.ts +4 -4
- package/dist/store/cookies.d.ts +4 -4
- package/dist/store/import-spec.d.ts +4 -11
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/import-spec.js +37 -39
- package/dist/store/request-example.d.ts +4 -4
- package/dist/store/requests.d.ts +4 -4
- package/dist/store/security-schemes.d.ts +4 -4
- package/dist/store/store.d.ts +70 -82
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/tags.d.ts +4 -4
- package/dist/store/workspace.d.ts +4 -4
- package/dist/style.css +1 -1
- package/dist/views/Cookies/CookieRaw.vue.js +10 -10
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +52 -53
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +79 -80
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +146 -108
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +53 -52
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +102 -97
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +2 -2
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +44 -40
- 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 +152 -134
- package/dist/views/Request/RequestSidebarItem.vue.d.ts +2 -2
- 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 +103 -102
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue2.js +36 -34
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +13 -10
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +0 -2
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +32 -33
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +32 -25
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +47 -46
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +1 -1
- package/package.json +13 -11
- package/dist/components/ViewLayout/ViewLayoutSection.vue2.js +0 -4
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +0 -7
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +0 -1
|
@@ -1,60 +1,59 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { useRoute as
|
|
6
|
-
import { useWorkspace as
|
|
7
|
-
|
|
1
|
+
import { defineComponent as _, onMounted as R, onBeforeUnmount as g, openBlock as r, createElementBlock as n, createElementVNode as o, unref as t, createTextVNode as c, toDisplayString as N, createCommentVNode as p, createVNode as l } from "vue";
|
|
2
|
+
import b from "../../../assets/computer.ascii.js";
|
|
3
|
+
import h from "../../../components/ScalarAsciiArt.vue.js";
|
|
4
|
+
import u from "../../../components/ScalarHotkey.vue.js";
|
|
5
|
+
import { useRoute as C } from "vue-router";
|
|
6
|
+
import { useWorkspace as q } from "../../../store/store.js";
|
|
7
|
+
import { useLayout as v } from "../../../hooks/useLayout.js";
|
|
8
|
+
const V = { class: "relative col-1 flex-center gap-6 p-2 capitalize" }, B = { class: "flex h-[calc(100%_-_50px)] flex-col items-center justify-center" }, S = {
|
|
8
9
|
key: 0,
|
|
9
10
|
class: "scalar-version-number"
|
|
10
|
-
}, w = { class: "text-c-3 right-4 mt-auto flex w-full flex-col items-end gap-2 text-sm" },
|
|
11
|
+
}, w = { class: "text-c-3 right-4 mt-auto flex w-full flex-col items-end gap-2 text-sm" }, D = /* @__PURE__ */ _({
|
|
11
12
|
__name: "ResponseEmpty",
|
|
12
|
-
setup(
|
|
13
|
-
const { isReadOnly: d, activeWorkspace: f, events: s } =
|
|
13
|
+
setup(A) {
|
|
14
|
+
const { isReadOnly: d, activeWorkspace: f, events: s } = q(), y = C(), { layout: x } = v(), m = () => {
|
|
14
15
|
s.commandPalette.emit({ commandName: "Create Request" });
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
}, k = "2.1.
|
|
18
|
-
return
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
e[1] || (e[1] =
|
|
23
|
-
|
|
24
|
-
e[3] || (e[3] = t("div", { class: "mt-1" }, [
|
|
25
|
-
t("a", {
|
|
16
|
+
}, i = (a) => {
|
|
17
|
+
a != null && a.createNew && y.name === "request" && m();
|
|
18
|
+
}, k = "2.1.46";
|
|
19
|
+
return R(() => s.hotKeys.on(i)), g(() => s.hotKeys.off(i)), (a, e) => (r(), n("div", V, [
|
|
20
|
+
o("div", B, [
|
|
21
|
+
t(f).isReadOnly ? p("", !0) : (r(), n("div", S, [
|
|
22
|
+
c(" Scalar App V" + N(t(k)) + " Beta ", 1),
|
|
23
|
+
e[1] || (e[1] = o("div", { class: "mt-2" }, [
|
|
24
|
+
o("a", {
|
|
26
25
|
href: "https://github.com/scalar/scalar/issues/2669",
|
|
27
26
|
target: "_blank"
|
|
28
27
|
}, " Roadmap ")
|
|
29
28
|
], -1))
|
|
30
29
|
])),
|
|
31
|
-
|
|
32
|
-
art:
|
|
30
|
+
l(h, {
|
|
31
|
+
art: t(b),
|
|
33
32
|
class: "text-c-3"
|
|
34
33
|
}, null, 8, ["art"])
|
|
35
34
|
]),
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
o("div", w, [
|
|
36
|
+
o("button", {
|
|
38
37
|
class: "flex items-center gap-1.5",
|
|
39
38
|
type: "button",
|
|
40
|
-
onClick: e[0] || (e[0] = (
|
|
39
|
+
onClick: e[0] || (e[0] = (E) => t(s).executeRequest.emit())
|
|
41
40
|
}, [
|
|
42
|
-
e[
|
|
43
|
-
|
|
41
|
+
e[2] || (e[2] = c(" Send Request ")),
|
|
42
|
+
l(u, { hotkey: "↵" })
|
|
44
43
|
]),
|
|
45
|
-
!
|
|
44
|
+
!t(d) && t(x) === "desktop" ? (r(), n("button", {
|
|
46
45
|
key: 0,
|
|
47
46
|
class: "flex items-center gap-1.5",
|
|
48
47
|
type: "button",
|
|
49
48
|
onClick: m
|
|
50
49
|
}, [
|
|
51
|
-
e[
|
|
52
|
-
|
|
53
|
-
])) :
|
|
50
|
+
e[3] || (e[3] = c(" New Request ")),
|
|
51
|
+
l(u, { hotkey: "N" })
|
|
52
|
+
])) : p("", !0)
|
|
54
53
|
])
|
|
55
54
|
]));
|
|
56
55
|
}
|
|
57
56
|
});
|
|
58
57
|
export {
|
|
59
|
-
|
|
58
|
+
D as default
|
|
60
59
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseMetaInformation.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseMetaInformation.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ResponseMetaInformation.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseMetaInformation.vue"],"names":[],"mappings":"AA+EA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAQvE,KAAK,WAAW,GAAG;IAAE,QAAQ,EAAE,gBAAgB,CAAA;CAAE,CAAC;;AAyIlD,wBAOG"}
|
|
@@ -1,50 +1,57 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as I, ref as v, computed as S, openBlock as s, createElementBlock as o, toDisplayString as n, unref as c, Fragment as f, createElementVNode as u, createTextVNode as p, createCommentVNode as y, createBlock as _, withCtx as B } from "vue";
|
|
2
2
|
import L from "../../../components/HelpfulLink.vue.js";
|
|
3
3
|
import { httpStatusCodes as N } from "@scalar/oas-utils/helpers";
|
|
4
4
|
import V from "pretty-bytes";
|
|
5
|
-
import
|
|
5
|
+
import h from "pretty-ms";
|
|
6
6
|
import { useWorkspace as w } from "../../../store/store.js";
|
|
7
|
-
const
|
|
7
|
+
const D = { class: "flex gap-1.5 text-c-1" }, E = { key: 0 }, M = { key: 0 }, R = { key: 1 }, $ = /* @__PURE__ */ I({
|
|
8
8
|
__name: "ResponseMetaInformation",
|
|
9
9
|
props: {
|
|
10
10
|
response: {}
|
|
11
11
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
e === "start" ?
|
|
12
|
+
setup(k) {
|
|
13
|
+
const g = k, { events: C } = w(), a = v(), l = v(0);
|
|
14
|
+
C.requestStatus.on((e) => {
|
|
15
|
+
e === "start" ? a.value = setInterval(() => l.value += 1e3, 1e3) : (clearInterval(a.value), a.value = void 0, l.value = 0);
|
|
16
16
|
});
|
|
17
|
-
const
|
|
18
|
-
var
|
|
19
|
-
const
|
|
20
|
-
((
|
|
17
|
+
const i = (e) => {
|
|
18
|
+
var m, d;
|
|
19
|
+
const t = parseInt(
|
|
20
|
+
((m = e.headers) == null ? void 0 : m["Content-Length"]) || ((d = e.headers) == null ? void 0 : d["content-length"]) || "0",
|
|
21
21
|
10
|
|
22
22
|
);
|
|
23
|
-
return
|
|
24
|
-
},
|
|
25
|
-
const e =
|
|
23
|
+
return t ? V(t) : void 0;
|
|
24
|
+
}, r = S(() => {
|
|
25
|
+
const e = g.response.status;
|
|
26
26
|
if (e)
|
|
27
27
|
return N[e] ?? void 0;
|
|
28
28
|
});
|
|
29
|
-
return (e,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
return (e, t) => (s(), o("div", D, [
|
|
30
|
+
a.value && l.value ? (s(), o("span", E, n(c(h)(l.value)), 1)) : (s(), o(f, { key: 1 }, [
|
|
31
|
+
u("span", null, [
|
|
32
|
+
t[0] || (t[0] = u("span", { class: "sr-only" }, "Response Information, Duration:", -1)),
|
|
33
|
+
p(" " + n(c(h)(e.response.duration)), 1)
|
|
34
|
+
]),
|
|
35
|
+
i(e.response) ? (s(), o("span", M, [
|
|
36
|
+
t[1] || (t[1] = u("span", { class: "sr-only" }, ", Size:", -1)),
|
|
37
|
+
p(" " + n(i(e.response)), 1)
|
|
38
|
+
])) : y("", !0),
|
|
39
|
+
r.value ? (s(), o(f, { key: 1 }, [
|
|
40
|
+
t[2] || (t[2] = u("span", { class: "sr-only" }, ", Status:", -1)),
|
|
41
|
+
r.value.url ? (s(), _(L, {
|
|
35
42
|
key: 0,
|
|
36
|
-
href:
|
|
43
|
+
href: r.value.url
|
|
37
44
|
}, {
|
|
38
45
|
default: B(() => [
|
|
39
|
-
|
|
46
|
+
p(n(e.response.status) + " " + n(r.value.name), 1)
|
|
40
47
|
]),
|
|
41
48
|
_: 1
|
|
42
|
-
}, 8, ["href"])) : (
|
|
43
|
-
], 64)) :
|
|
49
|
+
}, 8, ["href"])) : (s(), o("span", R, n(e.response.status) + " " + n(r.value.name), 1))
|
|
50
|
+
], 64)) : y("", !0)
|
|
44
51
|
], 64))
|
|
45
52
|
]));
|
|
46
53
|
}
|
|
47
54
|
});
|
|
48
55
|
export {
|
|
49
|
-
|
|
56
|
+
$ as default
|
|
50
57
|
};
|
|
@@ -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":"AA6JA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AASvE,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,gBAAgB,GAAG,SAAS,CAAA;CACvC,CAAC;;AA2OF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ResponseSection.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const s = /* @__PURE__ */
|
|
3
|
+
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e2a72c10"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
1
|
+
import { defineComponent as x, computed as p, ref as A, openBlock as t, createBlock as r, withCtx as d, createElementVNode as l, normalizeClass as S, createCommentVNode as i, createVNode as f, createElementBlock as v, Fragment as k } from "vue";
|
|
2
|
+
import B from "../../../components/ContextBar.vue.js";
|
|
3
|
+
import R from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
4
|
+
import g from "./ResponseBody.vue.js";
|
|
5
|
+
import H from "./ResponseEmpty.vue.js";
|
|
6
|
+
import V from "./ResponseLoadingOverlay.vue.js";
|
|
7
|
+
import L from "./ResponseMetaInformation.vue.js";
|
|
8
|
+
import $ from "./ResponseBodyVirtual.vue.js";
|
|
9
9
|
/* empty css */
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
const N = { class: "custom-scroll relative flex flex-1 flex-col px-2 xl:px-4 py-2.5" },
|
|
10
|
+
import E from "./ResponseCookies.vue.js";
|
|
11
|
+
import I from "./ResponseHeaders.vue.js";
|
|
12
|
+
const N = { class: "flex items-center flex-1 h-8" }, O = { class: "custom-scroll relative flex flex-1 flex-col px-2 xl:px-4 py-2.5" }, b = 2e5, X = /* @__PURE__ */ x({
|
|
13
13
|
__name: "ResponseSection",
|
|
14
14
|
props: {
|
|
15
15
|
response: {}
|
|
16
16
|
},
|
|
17
17
|
setup(y) {
|
|
18
|
-
const a = y, c =
|
|
18
|
+
const a = y, c = p(() => {
|
|
19
19
|
var o;
|
|
20
20
|
const e = (o = a.response) == null ? void 0 : o.headers;
|
|
21
21
|
return e ? Object.keys(e).map((s) => ({
|
|
@@ -28,7 +28,7 @@ const N = { class: "custom-scroll relative flex flex-1 flex-col px-2 xl:px-4 py-
|
|
|
28
28
|
"X-API-Client-Content-Length"
|
|
29
29
|
].includes(s.name)
|
|
30
30
|
) : [];
|
|
31
|
-
}),
|
|
31
|
+
}), h = p(
|
|
32
32
|
() => {
|
|
33
33
|
var e;
|
|
34
34
|
return ((e = a.response) == null ? void 0 : e.cookieHeaderKeys.flatMap((o) => {
|
|
@@ -41,59 +41,60 @@ const N = { class: "custom-scroll relative flex flex-1 flex-col px-2 xl:px-4 py-
|
|
|
41
41
|
} : [];
|
|
42
42
|
})) ?? [];
|
|
43
43
|
}
|
|
44
|
-
),
|
|
44
|
+
), _ = ["All", "Cookies", "Headers", "Body"], n = A("All"), C = p(
|
|
45
45
|
() => {
|
|
46
46
|
var e;
|
|
47
|
-
return (((e = a.response) == null ? void 0 : e.size) ?? 0) >
|
|
47
|
+
return (((e = a.response) == null ? void 0 : e.size) ?? 0) > b;
|
|
48
48
|
}
|
|
49
49
|
);
|
|
50
|
-
return (e, o) => (
|
|
50
|
+
return (e, o) => (t(), r(R, { "aria-label": "Response" }, {
|
|
51
51
|
title: d(() => [
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
52
|
+
l("div", N, [
|
|
53
|
+
l("div", {
|
|
54
|
+
"aria-live": "polite",
|
|
55
|
+
class: S(["flex items-center", { "animate-response-heading": e.response }])
|
|
56
|
+
}, [
|
|
57
|
+
o[1] || (o[1] = l("span", { class: "response-heading absolute pointer-events-none" }, " Response ", -1)),
|
|
58
|
+
e.response ? (t(), r(L, {
|
|
59
|
+
key: 0,
|
|
60
|
+
class: "animate-response-children",
|
|
61
|
+
response: e.response
|
|
62
|
+
}, null, 8, ["response"])) : i("", !0)
|
|
63
|
+
], 2),
|
|
64
|
+
f(B, {
|
|
65
|
+
activeSection: n.value,
|
|
66
|
+
sections: _,
|
|
67
|
+
onSetActiveSection: o[0] || (o[0] = (s) => n.value = s)
|
|
67
68
|
}, null, 8, ["activeSection"])
|
|
68
|
-
]
|
|
69
|
+
])
|
|
69
70
|
]),
|
|
70
71
|
default: d(() => {
|
|
71
72
|
var s;
|
|
72
73
|
return [
|
|
73
|
-
|
|
74
|
-
e.response ? (
|
|
75
|
-
|
|
74
|
+
l("div", O, [
|
|
75
|
+
e.response ? (t(), v(k, { key: 1 }, [
|
|
76
|
+
n.value === "All" || n.value === "Cookies" ? (t(), r(E, {
|
|
76
77
|
key: 0,
|
|
77
|
-
cookies:
|
|
78
|
-
}, null, 8, ["cookies"])) :
|
|
79
|
-
|
|
78
|
+
cookies: h.value
|
|
79
|
+
}, null, 8, ["cookies"])) : i("", !0),
|
|
80
|
+
n.value === "All" || n.value === "Headers" ? (t(), r(I, {
|
|
80
81
|
key: 1,
|
|
81
82
|
headers: c.value
|
|
82
|
-
}, null, 8, ["headers"])) :
|
|
83
|
-
|
|
84
|
-
C.value ? (
|
|
83
|
+
}, null, 8, ["headers"])) : i("", !0),
|
|
84
|
+
n.value === "All" || n.value === "Body" ? (t(), v(k, { key: 2 }, [
|
|
85
|
+
C.value ? (t(), r($, {
|
|
85
86
|
key: 0,
|
|
86
87
|
content: a.response.data
|
|
87
|
-
}, null, 8, ["content"])) : (
|
|
88
|
+
}, null, 8, ["content"])) : (t(), r(g, {
|
|
88
89
|
key: 1,
|
|
89
90
|
active: !0,
|
|
90
91
|
data: (s = a.response) == null ? void 0 : s.data,
|
|
91
92
|
headers: c.value,
|
|
92
93
|
title: "Body"
|
|
93
94
|
}, null, 8, ["data", "headers"]))
|
|
94
|
-
], 64)) :
|
|
95
|
-
], 64)) : (
|
|
96
|
-
f(
|
|
95
|
+
], 64)) : i("", !0)
|
|
96
|
+
], 64)) : (t(), r(H, { key: 0 })),
|
|
97
|
+
f(V)
|
|
97
98
|
])
|
|
98
99
|
];
|
|
99
100
|
}),
|
|
@@ -102,5 +103,5 @@ const N = { class: "custom-scroll relative flex flex-1 flex-col px-2 xl:px-4 py-
|
|
|
102
103
|
}
|
|
103
104
|
});
|
|
104
105
|
export {
|
|
105
|
-
|
|
106
|
+
X as default
|
|
106
107
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/components/WorkspaceDropdown.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"WorkspaceDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/components/WorkspaceDropdown.vue"],"names":[],"mappings":";AAoyBA,wBAMG"}
|
|
@@ -4,7 +4,7 @@ import q from "../../../components/Sidebar/Actions/EditSidebarListElement.vue.js
|
|
|
4
4
|
import { useModal as C, ScalarDropdown as $, ScalarDropdownItem as m, ScalarIcon as i, ScalarTooltip as F, ScalarButton as S, ScalarDropdownDivider as P, ScalarModal as N } from "@scalar/components";
|
|
5
5
|
import { useRouter as Y } from "vue-router";
|
|
6
6
|
import { useWorkspace as G } from "../../../store/store.js";
|
|
7
|
-
const H = { class: "flex items-center text-sm w-[inherit]" }, J = { class: "font-medium m-0
|
|
7
|
+
const H = { class: "flex items-center text-sm w-[inherit]" }, J = { class: "font-medium m-0 flex gap-1.5 items-center" }, K = { class: "line-clamp-1 text-left w-[calc(100%-10px)]" }, Q = { class: "text-ellipsis overflow-hidden" }, X = { class: "flex items-center justify-center h-4 w-4" }, ae = /* @__PURE__ */ O({
|
|
8
8
|
__name: "WorkspaceDropdown",
|
|
9
9
|
setup(Z) {
|
|
10
10
|
const { activeWorkspace: f, workspaces: d, workspaceMutators: g, events: T } = G(), { push: b } = Y(), E = (o) => {
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.1.
|
|
21
|
+
"version": "2.1.46",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -140,7 +140,9 @@
|
|
|
140
140
|
"@headlessui/tailwindcss": "^0.2.0",
|
|
141
141
|
"@headlessui/vue": "^1.7.20",
|
|
142
142
|
"@vueuse/core": "^10.10.0",
|
|
143
|
+
"@vueuse/integrations": "^11.2.0",
|
|
143
144
|
"cva": "1.0.0-beta.1",
|
|
145
|
+
"focus-trap": "^7",
|
|
144
146
|
"fuse.js": "^7.0.0",
|
|
145
147
|
"js-cookie": "^3.0.5",
|
|
146
148
|
"microdiff": "^1.4.0",
|
|
@@ -153,19 +155,19 @@
|
|
|
153
155
|
"whatwg-mimetype": "^4.0.0",
|
|
154
156
|
"yaml": "^2.4.5",
|
|
155
157
|
"zod": "^3.23.8",
|
|
156
|
-
"@scalar/components": "0.12.
|
|
157
|
-
"@scalar/draggable": "0.1.
|
|
158
|
+
"@scalar/components": "0.12.66",
|
|
159
|
+
"@scalar/draggable": "0.1.7",
|
|
158
160
|
"@scalar/icons": "0.1.1",
|
|
159
|
-
"@scalar/import": "0.0
|
|
160
|
-
"@scalar/oas-utils": "0.2.
|
|
161
|
-
"@scalar/object-utils": "1.1.
|
|
161
|
+
"@scalar/import": "0.1.0",
|
|
162
|
+
"@scalar/oas-utils": "0.2.72",
|
|
163
|
+
"@scalar/object-utils": "1.1.12",
|
|
162
164
|
"@scalar/openapi-parser": "0.8.9",
|
|
163
165
|
"@scalar/openapi-types": "0.1.5",
|
|
164
|
-
"@scalar/themes": "0.9.
|
|
166
|
+
"@scalar/themes": "0.9.47",
|
|
165
167
|
"@scalar/types": "0.0.19",
|
|
166
|
-
"@scalar/use-codemirror": "0.11.
|
|
167
|
-
"@scalar/use-
|
|
168
|
-
"@scalar/use-
|
|
168
|
+
"@scalar/use-codemirror": "0.11.33",
|
|
169
|
+
"@scalar/use-toasts": "0.7.7",
|
|
170
|
+
"@scalar/use-tooltip": "1.0.4"
|
|
169
171
|
},
|
|
170
172
|
"devDependencies": {
|
|
171
173
|
"@types/js-cookie": "^3.0.6",
|
|
@@ -182,7 +184,7 @@
|
|
|
182
184
|
"vite": "^5.4.9",
|
|
183
185
|
"vite-svg-loader": "^5.1.0",
|
|
184
186
|
"vitest": "^1.6.0",
|
|
185
|
-
"@scalar/build-tooling": "0.1.
|
|
187
|
+
"@scalar/build-tooling": "0.1.12",
|
|
186
188
|
"@scalar/galaxy": "0.2.16"
|
|
187
189
|
},
|
|
188
190
|
"scripts": {
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
selectedSecuritySchemeUids: string[];
|
|
3
|
-
title: string;
|
|
4
|
-
};
|
|
5
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
-
export default _default;
|
|
7
|
-
//# sourceMappingURL=RequestAuth.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RequestAuth.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuth.vue"],"names":[],"mappings":"AAuVA,KAAK,WAAW,GAAG;IACjB,0BAA0B,EAAE,MAAM,EAAE,CAAA;IACpC,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;AAgbF,wBAOG"}
|