@scalar/api-client 2.2.4 → 2.2.7
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 +62 -0
- package/dist/components/AddressBar/AddressBar.vue.js +2 -2
- package/dist/components/AddressBar/AddressBar.vue2.js +1 -1
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServer.vue.js +28 -28
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +41 -41
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +2 -2
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +5 -5
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCheckbox.vue.js +5 -6
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +8 -8
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +9 -10
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js +2 -2
- package/dist/components/HttpMethod/HttpMethod.vue2.js +24 -25
- package/dist/components/HttpMethod/index.d.ts +0 -1
- package/dist/components/HttpMethod/index.d.ts.map +1 -1
- package/dist/components/HttpMethod/index.js +2 -4
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +121 -103
- package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +24 -26
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +6 -0
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +28 -23
- package/dist/components/OpenApiClientButton.vue.d.ts +1 -0
- package/dist/components/OpenApiClientButton.vue.d.ts.map +1 -1
- package/dist/components/OpenApiClientButton.vue.js +2 -2
- package/dist/components/OpenApiClientButton.vue2.js +21 -15
- package/dist/components/Search/useSearch.d.ts.map +1 -1
- package/dist/components/Search/useSearch.js +45 -41
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +5 -6
- package/dist/layouts/App/create-api-client-app.d.ts +1 -0
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -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 +28 -23
- package/dist/layouts/Modal/create-api-client-modal.d.ts +2 -0
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +1 -0
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +3 -1
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +50 -48
- package/dist/store/store.d.ts +3 -1
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +47 -45
- package/dist/style.css +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +18 -20
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +63 -60
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +20 -19
- 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 +84 -86
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +37 -36
- 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 +60 -61
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItem.vue2.js +187 -195
- 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 +34 -36
- 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 +5 -5
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +30 -25
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +41 -30
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +3 -5
- package/dist/views/Request/libs/live-sync.d.ts.map +1 -1
- package/dist/views/Request/libs/live-sync.js +77 -78
- package/dist/views/Request/libs/oauth2.d.ts +6 -2
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.js +43 -37
- package/package.json +10 -11
- package/dist/components/HttpMethod/helpers.d.ts +0 -4
- package/dist/components/HttpMethod/helpers.d.ts.map +0 -1
- package/dist/components/HttpMethod/helpers.js +0 -5
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { useActiveEntities as
|
|
6
|
-
import { ScalarIcon as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
1
|
+
import { defineComponent as C, openBlock as l, createElementBlock as a, createElementVNode as i, createVNode as s, normalizeClass as V, unref as t, createBlock as u, createCommentVNode as r } from "vue";
|
|
2
|
+
import x from "../../components/AddressBar/AddressBar.vue.js";
|
|
3
|
+
import v from "../../components/EnvironmentSelector/EnvironmentSelector.vue.js";
|
|
4
|
+
import w from "../../components/Sidebar/SidebarToggle.vue.js";
|
|
5
|
+
import { useActiveEntities as R } from "../../store/active-entities.js";
|
|
6
|
+
import { ScalarIcon as c } from "@scalar/components";
|
|
7
|
+
import { useRouter as $ } from "vue-router";
|
|
8
|
+
import B from "./components/WorkspaceDropdown.vue.js";
|
|
9
|
+
import h from "../../components/OpenApiClientButton.vue.js";
|
|
10
|
+
import { useWorkspace as z } from "../../store/store.js";
|
|
11
|
+
import { useLayout as A } from "../../hooks/useLayout.js";
|
|
12
|
+
const E = { class: "lg:min-h-header flex items-center w-full justify-center p-2 pt-2 lg:pt-1 lg:p-1 flex-wrap t-app__top-container border-b-1/2" }, M = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 lg:mb-0 mb-2 lg:flex-1 w-6/12" }, N = { class: "flex flex-row items-center gap-1 lg:px-2.5 lg:mb-0 mb-2 lg:flex-1 justify-end w-6/12" }, J = /* @__PURE__ */ C({
|
|
11
13
|
__name: "RequestSubpageHeader",
|
|
12
14
|
props: {
|
|
13
15
|
modelValue: { type: Boolean },
|
|
@@ -15,13 +17,13 @@ const $ = { class: "lg:min-h-header flex items-center w-full justify-center p-2
|
|
|
15
17
|
},
|
|
16
18
|
emits: ["update:modelValue", "hideModal", "importCurl"],
|
|
17
19
|
setup(S) {
|
|
18
|
-
const { activeCollection: m } =
|
|
20
|
+
const { activeCollection: m } = R(), g = z(), { hideClientButton: y } = g, { layout: b } = A(), { currentRoute: k } = $();
|
|
19
21
|
return (o, e) => {
|
|
20
|
-
var
|
|
21
|
-
return l(), a("div",
|
|
22
|
-
|
|
23
|
-
s(
|
|
24
|
-
class:
|
|
22
|
+
var d, p, f;
|
|
23
|
+
return l(), a("div", E, [
|
|
24
|
+
i("div", M, [
|
|
25
|
+
s(w, {
|
|
26
|
+
class: V(["gitbook-hidden", [
|
|
25
27
|
"xl:hidden",
|
|
26
28
|
{ "xl:!flex": !o.modelValue },
|
|
27
29
|
{ "!flex": t(b) === "modal" }
|
|
@@ -29,56 +31,52 @@ const $ = { class: "lg:min-h-header flex items-center w-full justify-center p-2
|
|
|
29
31
|
modelValue: o.modelValue,
|
|
30
32
|
"onUpdate:modelValue": e[0] || (e[0] = (n) => o.$emit("update:modelValue", n))
|
|
31
33
|
}, null, 8, ["class", "modelValue"]),
|
|
32
|
-
o.isReadonly ?
|
|
33
|
-
e[4] || (e[4] = r("a", {
|
|
34
|
-
class: "text-c-2 text-sm font-medium gitbook-show ml-.5 hover:text-c-1 border p-1 rounded hover:bg-b-3",
|
|
35
|
-
href: "https://scalar.com/",
|
|
36
|
-
target: "_blank"
|
|
37
|
-
}, " Powered by Scalar.com ", -1))
|
|
34
|
+
o.isReadonly ? r("", !0) : (l(), u(t(B), { key: 0 }))
|
|
38
35
|
]),
|
|
39
|
-
s(
|
|
36
|
+
s(x, {
|
|
40
37
|
onImportCurl: e[1] || (e[1] = (n) => o.$emit("importCurl", n))
|
|
41
38
|
}),
|
|
42
|
-
|
|
43
|
-
o.isReadonly ?
|
|
44
|
-
o.isReadonly && ((
|
|
39
|
+
i("div", N, [
|
|
40
|
+
o.isReadonly ? r("", !0) : (l(), u(v, { key: 0 })),
|
|
41
|
+
o.isReadonly && ((d = t(m)) != null && d.documentUrl) && !t(y) ? (l(), u(t(h), {
|
|
45
42
|
key: 1,
|
|
46
43
|
buttonSource: "modal",
|
|
47
|
-
class: "
|
|
48
|
-
integration: (
|
|
44
|
+
class: "!w-fit lg:-mr-1",
|
|
45
|
+
integration: (p = t(m)) == null ? void 0 : p.integration,
|
|
46
|
+
source: t(k).query.source === "gitbook" ? "gitbook" : "api-reference",
|
|
49
47
|
url: (f = t(m)) == null ? void 0 : f.documentUrl
|
|
50
|
-
}, null, 8, ["integration", "url"])) :
|
|
48
|
+
}, null, 8, ["integration", "source", "url"])) : r("", !0),
|
|
51
49
|
o.isReadonly ? (l(), a("button", {
|
|
52
50
|
key: 2,
|
|
53
51
|
class: "app-exit-button p-2 rounded-full fixed right-2 top-2 gitbook-hidden",
|
|
54
52
|
type: "button",
|
|
55
53
|
onClick: e[2] || (e[2] = (n) => o.$emit("hideModal"))
|
|
56
54
|
}, [
|
|
57
|
-
s(t(
|
|
55
|
+
s(t(c), {
|
|
58
56
|
icon: "Close",
|
|
59
57
|
size: "lg",
|
|
60
58
|
thickness: "2"
|
|
61
59
|
}),
|
|
62
|
-
e[
|
|
63
|
-
])) :
|
|
60
|
+
e[4] || (e[4] = i("span", { class: "sr-only" }, "Close Client", -1))
|
|
61
|
+
])) : r("", !0),
|
|
64
62
|
o.isReadonly ? (l(), a("button", {
|
|
65
63
|
key: 3,
|
|
66
64
|
class: "text-c-1 hover:bg-b-2 active:text-c-1 p-2 rounded -mr-1.5 gitbook-show",
|
|
67
65
|
type: "button",
|
|
68
66
|
onClick: e[3] || (e[3] = (n) => o.$emit("hideModal"))
|
|
69
67
|
}, [
|
|
70
|
-
s(t(
|
|
68
|
+
s(t(c), {
|
|
71
69
|
icon: "Close",
|
|
72
70
|
size: "md",
|
|
73
71
|
thickness: "1.75"
|
|
74
72
|
}),
|
|
75
|
-
e[
|
|
76
|
-
])) :
|
|
73
|
+
e[5] || (e[5] = i("span", { class: "sr-only" }, "Close Client", -1))
|
|
74
|
+
])) : r("", !0)
|
|
77
75
|
])
|
|
78
76
|
]);
|
|
79
77
|
};
|
|
80
78
|
}
|
|
81
79
|
});
|
|
82
80
|
export {
|
|
83
|
-
|
|
81
|
+
J as default
|
|
84
82
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseBodyPreview.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBodyPreview.vue"],"names":[],"mappings":"AAqEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAO1D,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,CAAC;;
|
|
1
|
+
{"version":3,"file":"ResponseBodyPreview.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBodyPreview.vue"],"names":[],"mappings":"AAqEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAO1D,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,CAAC;;AA+HF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ResponseBodyPreview.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-
|
|
4
|
+
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-c821a9de"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -8,18 +8,18 @@ const k = ["src"], w = ["src", "type"], B = ["src", "type"], E = ["data", "type"
|
|
|
8
8
|
mode: {},
|
|
9
9
|
alpha: { type: Boolean }
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
11
|
+
setup(u) {
|
|
12
|
+
const p = u, r = i(!1);
|
|
13
13
|
return y(
|
|
14
|
-
() =>
|
|
14
|
+
() => p.src,
|
|
15
15
|
() => r.value = !1
|
|
16
16
|
), (e, o) => !r.value && e.src ? (s(), t("div", {
|
|
17
17
|
key: 0,
|
|
18
|
-
class: n(["flex justify-center overflow-
|
|
18
|
+
class: n(["flex justify-center overflow-auto rounded-b", { "p-2 bg-preview": e.alpha }])
|
|
19
19
|
}, [
|
|
20
20
|
e.mode === "image" ? (s(), t("img", {
|
|
21
21
|
key: 0,
|
|
22
|
-
class: n(["max-w-full", { rounded: e.alpha }]),
|
|
22
|
+
class: n(["h-full max-w-full", { rounded: e.alpha }]),
|
|
23
23
|
src: e.src,
|
|
24
24
|
onError: o[0] || (o[0] = (l) => r.value = !0)
|
|
25
25
|
}, null, 42, k)) : e.mode === "video" ? (s(), t("video", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseEmpty.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseEmpty.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ResponseEmpty.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseEmpty.vue"],"names":[],"mappings":";AA4YA,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ResponseEmpty.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-bc56cd7e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as _, onMounted as R, onBeforeUnmount as C, openBlock as r, createElementBlock as l, createElementVNode as o, normalizeClass as k, unref as t, createTextVNode as c, toDisplayString as w, createCommentVNode as m, createVNode as s } from "vue";
|
|
2
|
+
import N from "../../../assets/computer.ascii.js";
|
|
3
3
|
import x from "../../../assets/keycap.ascii.js";
|
|
4
4
|
import u from "../../../components/ScalarAsciiArt.vue.js";
|
|
5
5
|
import p from "../../../components/ScalarHotkey.vue.js";
|
|
6
|
-
import { useActiveEntities as
|
|
7
|
-
import { useRoute as
|
|
8
|
-
import { useWorkspace as
|
|
9
|
-
import { useLayout as
|
|
10
|
-
const
|
|
6
|
+
import { useActiveEntities as q } from "../../../store/active-entities.js";
|
|
7
|
+
import { useRoute as S } from "vue-router";
|
|
8
|
+
import { useWorkspace as V } from "../../../store/store.js";
|
|
9
|
+
import { useLayout as B } from "../../../hooks/useLayout.js";
|
|
10
|
+
const K = { class: "relative col-1 flex-center gap-6 p-2 capitalize" }, A = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "scalar-version-number"
|
|
13
|
-
},
|
|
13
|
+
}, E = { class: "scale-75 flex" }, P = { class: "relative" }, $ = { class: "relative -ml-12" }, j = { class: "text-c-3 right-4 mt-auto flex w-full flex-col items-end gap-2 text-sm" }, F = /* @__PURE__ */ _({
|
|
14
14
|
__name: "ResponseEmpty",
|
|
15
15
|
setup(z) {
|
|
16
|
-
const { activeWorkspaceRequests: d } =
|
|
16
|
+
const { activeWorkspaceRequests: d } = q(), { isReadOnly: g, events: a } = V(), v = S(), { layout: n } = B(), f = () => {
|
|
17
17
|
a.commandPalette.emit({ commandName: "Create Request" });
|
|
18
18
|
}, y = (i) => {
|
|
19
19
|
i != null && i.createNew && v.name === "request" && f();
|
|
20
|
-
}, h = "2.2.
|
|
21
|
-
return R(() => a.hotKeys.on(y)), C(() => a.hotKeys.off(y)), (i, e) => (
|
|
20
|
+
}, h = "2.2.7";
|
|
21
|
+
return R(() => a.hotKeys.on(y)), C(() => a.hotKeys.off(y)), (i, e) => (r(), l("div", K, [
|
|
22
22
|
o("div", {
|
|
23
23
|
class: k(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
|
|
24
|
-
"hidden opacity-0": t(d).length <= 1 && t(
|
|
24
|
+
"hidden opacity-0": t(d).length <= 1 && t(n) !== "modal"
|
|
25
25
|
}])
|
|
26
26
|
}, [
|
|
27
|
-
t(g) ? m("", !0) : (
|
|
28
|
-
c(" Scalar App V" +
|
|
27
|
+
t(g) ? m("", !0) : (r(), l("div", A, [
|
|
28
|
+
c(" Scalar App V" + w(t(h)) + " Beta ", 1),
|
|
29
29
|
e[2] || (e[2] = o("div", { class: "mt-2" }, [
|
|
30
30
|
o("a", {
|
|
31
31
|
href: "https://github.com/scalar/scalar/issues/2669",
|
|
@@ -33,18 +33,23 @@ const B = { class: "relative col-1 flex-center gap-6 p-2 capitalize" }, E = {
|
|
|
33
33
|
}, " Roadmap ")
|
|
34
34
|
], -1))
|
|
35
35
|
])),
|
|
36
|
+
e[3] || (e[3] = o("a", {
|
|
37
|
+
class: "gitbook-show scalar-version-number",
|
|
38
|
+
href: "https://www.scalar.com",
|
|
39
|
+
target: "_blank"
|
|
40
|
+
}, " Powered By Scalar.com ", -1)),
|
|
36
41
|
s(u, {
|
|
37
|
-
art: t(
|
|
42
|
+
art: t(N),
|
|
38
43
|
class: "text-c-3"
|
|
39
44
|
}, null, 8, ["art"])
|
|
40
45
|
], 2),
|
|
41
|
-
t(
|
|
46
|
+
t(n) !== "modal" ? (r(), l("div", {
|
|
42
47
|
key: 0,
|
|
43
48
|
class: k(["h-[calc(100%_-_50px)] items-center justify-center hidden pb-5", {
|
|
44
49
|
"!flex opacity-100": t(d).length == 1
|
|
45
50
|
}])
|
|
46
51
|
}, [
|
|
47
|
-
o("div",
|
|
52
|
+
o("div", E, [
|
|
48
53
|
o("div", P, [
|
|
49
54
|
s(p, {
|
|
50
55
|
class: "keycap-hotkey",
|
|
@@ -56,7 +61,7 @@ const B = { class: "relative col-1 flex-center gap-6 p-2 capitalize" }, E = {
|
|
|
56
61
|
}, null, 8, ["art"])
|
|
57
62
|
]),
|
|
58
63
|
o("div", $, [
|
|
59
|
-
e[
|
|
64
|
+
e[4] || (e[4] = o("div", { class: "keycap-hotkey !right-[60px]" }, "K", -1)),
|
|
60
65
|
s(u, {
|
|
61
66
|
art: t(x),
|
|
62
67
|
class: "!leading-[6px] keycap-n"
|
|
@@ -65,30 +70,30 @@ const B = { class: "relative col-1 flex-center gap-6 p-2 capitalize" }, E = {
|
|
|
65
70
|
])
|
|
66
71
|
], 2)) : m("", !0),
|
|
67
72
|
o("div", j, [
|
|
68
|
-
t(
|
|
73
|
+
t(n) !== "modal" ? (r(), l("button", {
|
|
69
74
|
key: 0,
|
|
70
75
|
class: "flex items-center gap-1.5",
|
|
71
76
|
type: "button",
|
|
72
|
-
onClick: e[0] || (e[0] = (
|
|
77
|
+
onClick: e[0] || (e[0] = (b) => t(a).commandPalette.emit())
|
|
73
78
|
}, [
|
|
74
|
-
e[
|
|
79
|
+
e[5] || (e[5] = c(" Get Started ")),
|
|
75
80
|
s(p, { hotkey: "k" })
|
|
76
81
|
])) : m("", !0),
|
|
77
82
|
o("button", {
|
|
78
83
|
class: "flex items-center gap-1.5",
|
|
79
84
|
type: "button",
|
|
80
|
-
onClick: e[1] || (e[1] = (
|
|
85
|
+
onClick: e[1] || (e[1] = (b) => t(a).executeRequest.emit())
|
|
81
86
|
}, [
|
|
82
|
-
e[
|
|
87
|
+
e[6] || (e[6] = c(" Send Request ")),
|
|
83
88
|
s(p, { hotkey: "↵" })
|
|
84
89
|
]),
|
|
85
|
-
t(
|
|
90
|
+
t(n) === "desktop" ? (r(), l("button", {
|
|
86
91
|
key: 1,
|
|
87
92
|
class: "flex items-center gap-1.5",
|
|
88
93
|
type: "button",
|
|
89
94
|
onClick: f
|
|
90
95
|
}, [
|
|
91
|
-
e[
|
|
96
|
+
e[7] || (e[7] = c(" New Request ")),
|
|
92
97
|
s(p, { hotkey: "N" })
|
|
93
98
|
])) : m("", !0)
|
|
94
99
|
])
|
|
@@ -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":"AAsFA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAQvE,KAAK,WAAW,GAAG;IAAE,QAAQ,EAAE,gBAAgB,CAAA;CAAE,CAAC;;AAsJlD,wBAOG"}
|
|
@@ -1,52 +1,63 @@
|
|
|
1
|
-
import { defineComponent as I, ref as
|
|
2
|
-
import
|
|
3
|
-
import { httpStatusCodes as
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as I, ref as m, computed as _, openBlock as o, createElementBlock as r, toDisplayString as n, unref as f, Fragment as v, createElementVNode as a, createTextVNode as p, createCommentVNode as y, createBlock as b, withCtx as w, normalizeStyle as k } from "vue";
|
|
2
|
+
import B from "../../../components/HelpfulLink.vue.js";
|
|
3
|
+
import { httpStatusCodes as L } from "@scalar/oas-utils/helpers";
|
|
4
|
+
import N from "pretty-bytes";
|
|
5
5
|
import h from "pretty-ms";
|
|
6
|
-
import { useWorkspace as
|
|
7
|
-
const
|
|
6
|
+
import { useWorkspace as V } from "../../../store/store.js";
|
|
7
|
+
const x = { class: "flex gap-1.5 text-c-1" }, z = { key: 0 }, D = { key: 0 }, E = { 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(g) {
|
|
13
|
+
const C = g, { events: S } = V(), l = m(), u = m(0);
|
|
14
|
+
S.requestStatus.on((e) => {
|
|
15
|
+
e === "start" ? l.value = setInterval(() => u.value += 1e3, 1e3) : (clearInterval(l.value), l.value = void 0, u.value = 0);
|
|
16
16
|
});
|
|
17
17
|
const i = (e) => {
|
|
18
|
-
var
|
|
18
|
+
var c, d;
|
|
19
19
|
const t = parseInt(
|
|
20
|
-
((
|
|
20
|
+
((c = e.headers) == null ? void 0 : c["Content-Length"]) || ((d = e.headers) == null ? void 0 : d["content-length"]) || "0",
|
|
21
21
|
10
|
|
22
22
|
);
|
|
23
|
-
return t ?
|
|
24
|
-
},
|
|
25
|
-
const e =
|
|
23
|
+
return t ? N(t) : void 0;
|
|
24
|
+
}, s = _(() => {
|
|
25
|
+
const e = C.response.status;
|
|
26
26
|
if (e)
|
|
27
|
-
return
|
|
27
|
+
return L[e] ?? void 0;
|
|
28
28
|
});
|
|
29
|
-
return (e, t) => (
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
t[0] || (t[0] =
|
|
33
|
-
p(" " + n(
|
|
29
|
+
return (e, t) => (o(), r("div", x, [
|
|
30
|
+
l.value && u.value ? (o(), r("span", z, n(f(h)(u.value)), 1)) : (o(), r(v, { key: 1 }, [
|
|
31
|
+
a("span", null, [
|
|
32
|
+
t[0] || (t[0] = a("span", { class: "sr-only" }, "Response Information, Duration:", -1)),
|
|
33
|
+
p(" " + n(f(h)(e.response.duration)), 1)
|
|
34
34
|
]),
|
|
35
|
-
i(e.response) ? (
|
|
36
|
-
t[1] || (t[1] =
|
|
35
|
+
i(e.response) ? (o(), r("span", D, [
|
|
36
|
+
t[1] || (t[1] = a("span", { class: "sr-only" }, ", Size:", -1)),
|
|
37
37
|
p(" " + n(i(e.response)), 1)
|
|
38
38
|
])) : y("", !0),
|
|
39
|
-
|
|
40
|
-
t[2] || (t[2] =
|
|
41
|
-
|
|
39
|
+
s.value ? (o(), r(v, { key: 1 }, [
|
|
40
|
+
t[2] || (t[2] = a("span", { class: "sr-only" }, ", Status:", -1)),
|
|
41
|
+
s.value.url ? (o(), b(B, {
|
|
42
42
|
key: 0,
|
|
43
|
-
|
|
43
|
+
class: "flex items-center gap-1.5",
|
|
44
|
+
href: s.value.url
|
|
44
45
|
}, {
|
|
45
|
-
default:
|
|
46
|
-
p(n(e.response.status) + " " + n(
|
|
46
|
+
default: w(() => [
|
|
47
|
+
p(n(e.response.status) + " " + n(s.value.name) + " ", 1),
|
|
48
|
+
a("span", {
|
|
49
|
+
class: "block h-1.5 w-1.5 rounded-full",
|
|
50
|
+
style: k({ backgroundColor: s.value.color })
|
|
51
|
+
}, null, 4)
|
|
47
52
|
]),
|
|
48
53
|
_: 1
|
|
49
|
-
}, 8, ["href"])) : (
|
|
54
|
+
}, 8, ["href"])) : (o(), r("span", E, [
|
|
55
|
+
p(n(e.response.status) + " " + n(s.value.name) + " ", 1),
|
|
56
|
+
a("span", {
|
|
57
|
+
class: "block h-1.5 w-1.5 rounded-full",
|
|
58
|
+
style: k({ backgroundColor: s.value.color })
|
|
59
|
+
}, null, 4)
|
|
60
|
+
]))
|
|
50
61
|
], 64)) : y("", !0)
|
|
51
62
|
], 64))
|
|
52
63
|
]));
|
|
@@ -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":";AA0yBA,wBAMG"}
|
|
@@ -52,7 +52,7 @@ const J = { class: "flex items-center text-sm w-[inherit]" }, K = { class: "font
|
|
|
52
52
|
l("span", X, z(p.name), 1),
|
|
53
53
|
s(e(S), {
|
|
54
54
|
placement: "right-start",
|
|
55
|
-
teleport: "
|
|
55
|
+
teleport: ""
|
|
56
56
|
}, {
|
|
57
57
|
items: n(() => [
|
|
58
58
|
s(e(u), {
|
|
@@ -152,9 +152,8 @@ const J = { class: "flex items-center text-sm w-[inherit]" }, K = { class: "font
|
|
|
152
152
|
default: n(() => [
|
|
153
153
|
l("div", Z, [
|
|
154
154
|
s(e(c), {
|
|
155
|
-
class: "h-2.5",
|
|
156
155
|
icon: "Add",
|
|
157
|
-
|
|
156
|
+
size: "sm"
|
|
158
157
|
})
|
|
159
158
|
]),
|
|
160
159
|
t[8] || (t[8] = l("span", null, "Create Workspace", -1))
|
|
@@ -172,9 +171,8 @@ const J = { class: "flex items-center text-sm w-[inherit]" }, K = { class: "font
|
|
|
172
171
|
l("div", K, [
|
|
173
172
|
l("h2", Q, z(e(f).name), 1),
|
|
174
173
|
s(e(c), {
|
|
175
|
-
class: "size-3",
|
|
176
174
|
icon: "ChevronDown",
|
|
177
|
-
|
|
175
|
+
size: "md"
|
|
178
176
|
})
|
|
179
177
|
])
|
|
180
178
|
]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"live-sync.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/live-sync.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"live-sync.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/live-sync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAelE,OAAO,EACL,KAAK,IAAI,EACT,KAAK,SAAS,EAEf,MAAM,6BAA6B,CAAA;AAEpC,OAAkB,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAK,MAAM,KAAK,CAAA;AAExD;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,SACvB,UAAU,EAAE,eACN,MAAM,EAAE,KACnB,UAAU,EAqFZ,CAAA;AAED,kEAAkE;AAClE,eAAO,MAAM,YAAY,GAAI,CAAC,OACvB,MAAM,EAAE,aACF,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,aACjB,CAAC,QAAQ,EAAE,CAAC,KAAK,OAAO,KAClC,CAAC,GAAG,IAMN,CAAA;AASD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,WACpB,SAAS,QACX,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,KACxB,SAAS,GAAG,IAqDd,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,UACjB,SAAS,CAAC,CAAC,EAAE,UAAU,EAAE,GAAG,CAAC,QAC/B,UAAU,KACf;IACD,0DAA0D;IAC1D,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;IACb,mGAAmG;IACnG,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;IACrB,2DAA2D;IAC3D,KAAK,EAAE,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAAA;CACzC,GAAG,IAwBH,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,SACzB,UAAU,wBACM,mBAAmB,0BACjB,cAAc,KACrC,OA0CF,CAAA;AAwBD;;GAEG;AACH,eAAO,MAAM,iBAAiB,SACtB,UAAU,wBACM,mBAAmB,SAClC,cAAc,KACpB,OAwIF,CAAA;AAED,mGAAmG;AACnG,eAAO,MAAM,gBAAgB,SACrB,UAAU,wBACM,mBAAmB,+BACZ,cAAc,KAC1C,OAoCF,CAAA;AAED,gEAAgE;AAChE,eAAO,MAAM,aAAa,SAClB,UAAU,wBACM,mBAAmB,yBAClB,cAAc,KACpC,OA+BF,CAAA;AAED,sCAAsC;AACtC,eAAO,MAAM,iBAAiB,WACpB,SAAS,OACZ,MAAM,SACJ,MAAM,KACZ,SAAS,GAAG,IAmBd,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,SAC7B,UAAU,wBACM,mBAAmB,+CACI,cAAc,KAC1D,OA0CF,CAAA"}
|