@scalar/api-client 2.2.34 → 2.2.37
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/AddressBarHistory.vue.js +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +18 -18
- package/dist/components/CodeInput/CodeInput.vue.d.ts +3 -0
- 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 +114 -108
- package/dist/components/CommandPalette/CommandActionInput.vue.d.ts +1 -0
- package/dist/components/CommandPalette/CommandActionInput.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandActionInput.vue.js +21 -18
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +2 -2
- package/dist/components/ContextBar.vue.d.ts.map +1 -1
- package/dist/components/ContextBar.vue.js +1 -1
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCheckbox.vue.js +20 -15
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +2 -2
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +43 -43
- package/dist/components/Form/Form.vue.d.ts.map +1 -1
- package/dist/components/Form/Form.vue.js +3 -3
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +1 -1
- package/dist/components/TopNav/TopNav.vue.js +27 -27
- package/dist/layouts/App/create-api-client-app.d.ts +4 -58
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +8 -116
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +4 -58
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +4 -58
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/index.js +18 -19
- package/dist/libs/send-request/index.js +3 -4
- package/dist/libs/send-request/send-request.d.ts +0 -14
- package/dist/libs/send-request/send-request.d.ts.map +1 -1
- package/dist/libs/send-request/send-request.js +120 -142
- package/dist/libs/send-request/set-request-cookies.d.ts +27 -0
- package/dist/libs/send-request/set-request-cookies.d.ts.map +1 -0
- package/dist/libs/send-request/set-request-cookies.js +54 -0
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/active-entities.js +15 -12
- package/dist/store/cookies.d.ts +4 -58
- package/dist/store/cookies.d.ts.map +1 -1
- package/dist/store/cookies.js +5 -17
- package/dist/store/store.d.ts +4 -58
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieForm.vue.js +24 -37
- package/dist/views/Cookies/CookieModal.vue.d.ts +21 -0
- package/dist/views/Cookies/CookieModal.vue.d.ts.map +1 -0
- package/dist/views/Cookies/CookieModal.vue.js +7 -0
- package/dist/views/Cookies/CookieModal.vue2.js +88 -0
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +98 -119
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +30 -27
- 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 +6 -6
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +7 -0
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +79 -66
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +51 -42
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +90 -64
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +10 -3
- 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 +170 -132
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +5 -64
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +46 -2
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +19 -17
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +31 -31
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.js +1 -1
- package/dist/views/Request/libs/request.d.ts +12 -0
- package/dist/views/Request/libs/request.d.ts.map +1 -0
- package/dist/views/Request/libs/request.js +4 -0
- package/package.json +14 -16
- package/dist/views/Cookies/CookieRaw.vue.js +0 -28
- package/dist/views/Cookies/CookieRaw.vue2.js +0 -4
|
@@ -1,66 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class: "flex items-center text-c-2"
|
|
6
|
-
}, y = { key: 0 }, w = {
|
|
7
|
-
key: 1,
|
|
8
|
-
class: "before:content-['·'] before:block before:mx-[0.5ch] flex"
|
|
9
|
-
}, v = {
|
|
10
|
-
key: 2,
|
|
11
|
-
class: "before:content-['·'] before:block before:mx-[0.5ch] flex whitespace-nowrap"
|
|
12
|
-
}, C = {
|
|
13
|
-
key: 3,
|
|
14
|
-
class: "before:content-['·'] before:block before:mx-[0.5ch] flex whitespace-nowrap"
|
|
15
|
-
}, B = {
|
|
16
|
-
key: 4,
|
|
17
|
-
class: "before:content-['·'] before:block before:mx-[0.5ch] flex whitespace-nowrap"
|
|
18
|
-
}, I = {
|
|
19
|
-
key: 1,
|
|
20
|
-
class: "leading-snug text-pretty text-sm",
|
|
21
|
-
style: { maxWidth: "16rem" }
|
|
22
|
-
}, V = /* @__PURE__ */ p({
|
|
23
|
-
__name: "RequestTableTooltip",
|
|
24
|
-
props: {
|
|
25
|
-
item: {}
|
|
26
|
-
},
|
|
27
|
-
setup(l) {
|
|
28
|
-
const e = l, r = (n) => n !== void 0, f = d(
|
|
29
|
-
() => e.item.type || e.item.format || r(e.item.minimum) || r(e.item.maximum) || r(e.item.default)
|
|
30
|
-
);
|
|
31
|
-
return (n, N) => (t(), b(c(x), {
|
|
32
|
-
align: "start",
|
|
33
|
-
class: "w-full",
|
|
34
|
-
delay: 0,
|
|
35
|
-
side: "left",
|
|
36
|
-
triggerClass: "before:absolute before:content-[''] before:bg-gradient-to-r before:from-transparent before:to-b-1 before:min-h-[calc(100%-4px)] before:pointer-events-none before:right-[23px] before:top-0.5 before:w-3 absolute h-full right-0"
|
|
37
|
-
}, {
|
|
38
|
-
trigger: a(() => [
|
|
39
|
-
m("div", _, [
|
|
40
|
-
u(c(h), {
|
|
41
|
-
class: "text-c-3 group-hover/info:text-c-1",
|
|
42
|
-
icon: "Info",
|
|
43
|
-
size: "sm",
|
|
44
|
-
thickness: "1.5"
|
|
45
|
-
})
|
|
46
|
-
])
|
|
47
|
-
]),
|
|
48
|
-
content: a(() => [
|
|
49
|
-
m("div", g, [
|
|
50
|
-
f.value ? (t(), o("div", k, [
|
|
51
|
-
e.item.type ? (t(), o("span", y, i(e.item.type), 1)) : s("", !0),
|
|
52
|
-
e.item.format ? (t(), o("span", w, i(e.item.format), 1)) : s("", !0),
|
|
53
|
-
r(e.item.minimum) ? (t(), o("span", v, "min: " + i(e.item.minimum), 1)) : s("", !0),
|
|
54
|
-
r(e.item.maximum) ? (t(), o("span", C, "max: " + i(e.item.maximum), 1)) : s("", !0),
|
|
55
|
-
r(e.item.default) ? (t(), o("span", B, "default: " + i(e.item.default), 1)) : s("", !0)
|
|
56
|
-
])) : s("", !0),
|
|
57
|
-
e.item.description ? (t(), o("span", I, i(e.item.description), 1)) : s("", !0)
|
|
58
|
-
])
|
|
59
|
-
]),
|
|
60
|
-
_: 1
|
|
61
|
-
}));
|
|
62
|
-
}
|
|
63
|
-
});
|
|
1
|
+
import o from "./RequestTableTooltip.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3774d9af"]]);
|
|
64
5
|
export {
|
|
65
|
-
|
|
6
|
+
r as default
|
|
66
7
|
};
|
|
@@ -1,4 +1,48 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as m, openBlock as t, createBlock as l, unref as r, withCtx as a, createElementVNode as n, createVNode as p, createElementBlock as o, toDisplayString as s, createCommentVNode as i } from "vue";
|
|
2
|
+
import { ScalarTooltip as c, ScalarIcon as d } from "@scalar/components";
|
|
3
|
+
const f = { class: "pl-1 pr-1.5 py-[9px]" }, u = { class: "grid gap-1.5 pointer-events-none min-w-48 w-content shadow-lg rounded bg-b-1 p-2 text-xxs leading-5 text-c-1" }, h = { class: "schema flex items-center text-c-2" }, g = { key: 0 }, b = { key: 1 }, _ = { key: 2 }, y = { key: 3 }, k = { key: 4 }, x = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "leading-snug text-pretty text-sm",
|
|
6
|
+
style: { maxWidth: "16rem" }
|
|
7
|
+
}, N = /* @__PURE__ */ m({
|
|
8
|
+
__name: "RequestTableTooltip",
|
|
9
|
+
props: {
|
|
10
|
+
item: {}
|
|
11
|
+
},
|
|
12
|
+
setup(v) {
|
|
13
|
+
return (e, w) => (t(), l(r(c), {
|
|
14
|
+
align: "start",
|
|
15
|
+
class: "w-full",
|
|
16
|
+
delay: 0,
|
|
17
|
+
side: "left",
|
|
18
|
+
triggerClass: "before:absolute before:content-[''] before:bg-gradient-to-r before:from-transparent before:to-b-1 before:min-h-[calc(100%-4px)] before:pointer-events-none before:right-[23px] before:top-0.5 before:w-3 absolute h-full right-0"
|
|
19
|
+
}, {
|
|
20
|
+
trigger: a(() => [
|
|
21
|
+
n("div", f, [
|
|
22
|
+
p(r(d), {
|
|
23
|
+
class: "text-c-3 group-hover/info:text-c-1",
|
|
24
|
+
icon: "Info",
|
|
25
|
+
size: "sm",
|
|
26
|
+
thickness: "1.5"
|
|
27
|
+
})
|
|
28
|
+
])
|
|
29
|
+
]),
|
|
30
|
+
content: a(() => [
|
|
31
|
+
n("div", u, [
|
|
32
|
+
n("div", h, [
|
|
33
|
+
e.item.type ? (t(), o("span", g, s(e.item.type), 1)) : i("", !0),
|
|
34
|
+
e.item.format ? (t(), o("span", b, s(e.item.format), 1)) : i("", !0),
|
|
35
|
+
e.item.minimum ? (t(), o("span", _, "min: " + s(e.item.minimum), 1)) : i("", !0),
|
|
36
|
+
e.item.maximum ? (t(), o("span", y, "max: " + s(e.item.maximum), 1)) : i("", !0),
|
|
37
|
+
e.item.default ? (t(), o("span", k, "default: " + s(e.item.default), 1)) : i("", !0)
|
|
38
|
+
]),
|
|
39
|
+
e.item.description ? (t(), o("span", x, s(e.item.description), 1)) : i("", !0)
|
|
40
|
+
])
|
|
41
|
+
]),
|
|
42
|
+
_: 1
|
|
43
|
+
}));
|
|
44
|
+
}
|
|
45
|
+
});
|
|
2
46
|
export {
|
|
3
|
-
|
|
47
|
+
N as default
|
|
4
48
|
};
|
|
@@ -1,43 +1,45 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as c, openBlock as e, createBlock as r, withCtx as t, createTextVNode as f, createElementBlock as n, Fragment as a, renderList as p, createVNode as i } from "vue";
|
|
2
|
+
import u from "../../../components/DataTable/DataTable.vue.js";
|
|
3
|
+
import _ from "../../../components/DataTable/DataTableRow.vue.js";
|
|
4
4
|
import m from "../../../components/DataTable/DataTableText.vue.js";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
5
|
+
import k from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
6
|
+
const d = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "text-c-3 px-4 text-sm border-t-1/2 min-h-16 justify-center flex items-center bg-b-1"
|
|
9
|
-
},
|
|
9
|
+
}, B = /* @__PURE__ */ c({
|
|
10
10
|
__name: "ResponseCookies",
|
|
11
11
|
props: {
|
|
12
12
|
cookies: {}
|
|
13
13
|
},
|
|
14
|
-
setup(
|
|
15
|
-
return (s,
|
|
16
|
-
title: t(() =>
|
|
17
|
-
|
|
14
|
+
setup(x) {
|
|
15
|
+
return (s, l) => (e(), r(k, { defaultOpen: !1 }, {
|
|
16
|
+
title: t(() => l[0] || (l[0] = [
|
|
17
|
+
f("Cookies")
|
|
18
18
|
])),
|
|
19
19
|
default: t(() => [
|
|
20
|
-
(e(),
|
|
21
|
-
s.cookies.length ? (e(),
|
|
20
|
+
(e(), n(a, { key: 0 }, [
|
|
21
|
+
s.cookies.length ? (e(), r(u, {
|
|
22
22
|
key: 0,
|
|
23
23
|
class: "flex-1",
|
|
24
24
|
columns: ["", ""]
|
|
25
25
|
}, {
|
|
26
26
|
default: t(() => [
|
|
27
|
-
(e(!0),
|
|
27
|
+
(e(!0), n(a, null, p(s.cookies, (o) => (e(), r(_, {
|
|
28
|
+
key: o.name
|
|
29
|
+
}, {
|
|
28
30
|
default: t(() => [
|
|
29
31
|
i(m, {
|
|
30
|
-
text:
|
|
32
|
+
text: o.name
|
|
31
33
|
}, null, 8, ["text"]),
|
|
32
34
|
i(m, {
|
|
33
|
-
text:
|
|
35
|
+
text: o.value
|
|
34
36
|
}, null, 8, ["text"])
|
|
35
37
|
]),
|
|
36
38
|
_: 2
|
|
37
39
|
}, 1024))), 128))
|
|
38
40
|
]),
|
|
39
41
|
_: 1
|
|
40
|
-
})) : (e(),
|
|
42
|
+
})) : (e(), n("div", d, " No cookies "))
|
|
41
43
|
], 64))
|
|
42
44
|
]),
|
|
43
45
|
_: 1
|
|
@@ -45,5 +47,5 @@ const x = {
|
|
|
45
47
|
}
|
|
46
48
|
});
|
|
47
49
|
export {
|
|
48
|
-
|
|
50
|
+
B as default
|
|
49
51
|
};
|
|
@@ -17,7 +17,7 @@ const K = { class: "border-t relative col-1 flex-center gap-6 p-2 capitalize" },
|
|
|
17
17
|
a.commandPalette.emit({ commandName: "Create Request" });
|
|
18
18
|
}, y = (i) => {
|
|
19
19
|
i != null && i.createNew && v.name === "request" && f();
|
|
20
|
-
}, b = "2.2.
|
|
20
|
+
}, b = "2.2.37";
|
|
21
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", {
|
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as p, openBlock as e, createBlock as n, withCtx as r, createTextVNode as l, createElementBlock as s, createVNode as m, Fragment as c, renderList as _, toDisplayString as i } from "vue";
|
|
2
|
+
import x from "../../../components/DataTable/DataTable.vue.js";
|
|
3
|
+
import h from "../../../components/DataTable/DataTableRow.vue.js";
|
|
4
4
|
import u from "../../../components/DataTable/DataTableText.vue.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { httpHeaders as
|
|
8
|
-
const
|
|
5
|
+
import b from "../../../components/HelpfulLink.vue.js";
|
|
6
|
+
import y from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
7
|
+
import { httpHeaders as k } from "../../../data/httpHeaders.js";
|
|
8
|
+
const g = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "border-t-1/2 border-b-1/2 max-h-[calc(100%-32px)] overflow-y-auto"
|
|
11
|
-
},
|
|
11
|
+
}, w = {
|
|
12
12
|
key: 1,
|
|
13
13
|
class: "text-c-3 px-4 text-sm border rounded min-h-12 justify-center flex items-center bg-b-1"
|
|
14
|
-
},
|
|
14
|
+
}, D = /* @__PURE__ */ p({
|
|
15
15
|
__name: "ResponseHeaders",
|
|
16
16
|
props: {
|
|
17
17
|
headers: {}
|
|
18
18
|
},
|
|
19
|
-
setup(
|
|
20
|
-
const d = (
|
|
21
|
-
(a) => a.name.toLowerCase() ===
|
|
19
|
+
setup(C) {
|
|
20
|
+
const d = (o) => k.find(
|
|
21
|
+
(a) => a.name.toLowerCase() === o.toLowerCase()
|
|
22
22
|
);
|
|
23
|
-
return (
|
|
23
|
+
return (o, a) => (e(), n(y, {
|
|
24
24
|
class: "overflow-auto",
|
|
25
25
|
defaultOpen: !1,
|
|
26
|
-
itemCount:
|
|
26
|
+
itemCount: o.headers.length
|
|
27
27
|
}, {
|
|
28
|
-
title:
|
|
28
|
+
title: r(() => a[0] || (a[0] = [
|
|
29
29
|
l("Headers")
|
|
30
30
|
])),
|
|
31
|
-
default:
|
|
32
|
-
|
|
33
|
-
m(
|
|
31
|
+
default: r(() => [
|
|
32
|
+
o.headers.length ? (e(), s("div", g, [
|
|
33
|
+
m(x, {
|
|
34
34
|
class: "!border-0 !mx-0",
|
|
35
35
|
columns: ["minmax(auto, min-content)", "minmax(50%, 1fr)"],
|
|
36
36
|
scroll: ""
|
|
37
37
|
}, {
|
|
38
|
-
default:
|
|
39
|
-
(e(!0), s(c, null,
|
|
40
|
-
key:
|
|
38
|
+
default: r(() => [
|
|
39
|
+
(e(!0), s(c, null, _(o.headers, (t) => (e(), n(h, {
|
|
40
|
+
key: t.name,
|
|
41
41
|
class: "text-c-1"
|
|
42
42
|
}, {
|
|
43
|
-
default:
|
|
43
|
+
default: r(() => [
|
|
44
44
|
m(u, { class: "sticky left-0 z-1 bg-b-1 max-w-48" }, {
|
|
45
|
-
default:
|
|
45
|
+
default: r(() => {
|
|
46
46
|
var f;
|
|
47
47
|
return [
|
|
48
|
-
typeof ((f = d(
|
|
48
|
+
typeof ((f = d(t.name)) == null ? void 0 : f.url) == "string" ? (e(), n(b, {
|
|
49
49
|
key: 0,
|
|
50
50
|
class: "decoration-c-3",
|
|
51
|
-
href: d(
|
|
51
|
+
href: d(t.name).url
|
|
52
52
|
}, {
|
|
53
|
-
default:
|
|
54
|
-
l(i(
|
|
53
|
+
default: r(() => [
|
|
54
|
+
l(i(t.name), 1)
|
|
55
55
|
]),
|
|
56
56
|
_: 2
|
|
57
57
|
}, 1032, ["href"])) : (e(), s(c, { key: 1 }, [
|
|
58
|
-
l(i(
|
|
58
|
+
l(i(t.name), 1)
|
|
59
59
|
], 64))
|
|
60
60
|
];
|
|
61
61
|
}),
|
|
@@ -63,7 +63,7 @@ const w = {
|
|
|
63
63
|
}, 1024),
|
|
64
64
|
m(u, {
|
|
65
65
|
class: "z-0",
|
|
66
|
-
text:
|
|
66
|
+
text: t.value
|
|
67
67
|
}, null, 8, ["text"])
|
|
68
68
|
]),
|
|
69
69
|
_: 2
|
|
@@ -71,12 +71,12 @@ const w = {
|
|
|
71
71
|
]),
|
|
72
72
|
_: 1
|
|
73
73
|
})
|
|
74
|
-
])) : (e(), s("div",
|
|
74
|
+
])) : (e(), s("div", w, " No Headers "))
|
|
75
75
|
]),
|
|
76
76
|
_: 1
|
|
77
77
|
}, 8, ["itemCount"]));
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
80
|
export {
|
|
81
|
-
|
|
81
|
+
D as default
|
|
82
82
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth2.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/oauth2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAGzE,qDAAqD;AACrD,KAAK,eAAe,GAAG,OAAO,CAAC,UAAU,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAA;AAEhE,KAAK,SAAS,GAAG;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,mBAAmB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAmBD;;GAEG;AACH,eAAO,MAAM,qBAAqB,aACtB,MAAM,YACN,SAAS,GAAG,OAAO,KAC5B,OAAO,CAAC,MAAM,CAahB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,SACpB,UAAU,gBAEF,MAAM,aAET,MAAM,KAChB,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"oauth2.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/oauth2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAGzE,qDAAqD;AACrD,KAAK,eAAe,GAAG,OAAO,CAAC,UAAU,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAA;AAEhE,KAAK,SAAS,GAAG;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,mBAAmB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAmBD;;GAEG;AACH,eAAO,MAAM,qBAAqB,aACtB,MAAM,YACN,SAAS,GAAG,OAAO,KAC5B,OAAO,CAAC,MAAM,CAahB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,SACpB,UAAU,gBAEF,MAAM,aAET,MAAM,KAChB,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAuJ/B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,SACrB,eAAe,UACb,MAAM,8BAKX;IACD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,KACA,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CA6D/B,CAAA"}
|
|
@@ -15,7 +15,7 @@ const P = () => {
|
|
|
15
15
|
proxyUrl: o
|
|
16
16
|
});
|
|
17
17
|
{
|
|
18
|
-
const s = (Math.random() + 1).toString(36).substring(
|
|
18
|
+
const s = (Math.random() + 1).toString(36).substring(2, 10), t = new URL(e.authorizationUrl);
|
|
19
19
|
let l = null;
|
|
20
20
|
if (e.type === "implicit")
|
|
21
21
|
t.searchParams.set("response_type", "token");
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { RequestExampleParameter } from '@scalar/oas-utils/entities/spec';
|
|
2
|
+
/**
|
|
3
|
+
* Check if a RequestExampleParameter has any of the following properties:
|
|
4
|
+
* - description
|
|
5
|
+
* - type
|
|
6
|
+
* - default
|
|
7
|
+
* - format
|
|
8
|
+
* - minimum
|
|
9
|
+
* - maximum
|
|
10
|
+
*/
|
|
11
|
+
export declare const hasItemProperties: (item: RequestExampleParameter) => boolean;
|
|
12
|
+
//# sourceMappingURL=request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAE9E;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,SAAU,uBAAuB,YAQ5D,CAAA"}
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.2.
|
|
21
|
+
"version": "2.2.37",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -168,7 +168,6 @@
|
|
|
168
168
|
"@vueuse/integrations": "^11.2.0",
|
|
169
169
|
"focus-trap": "^7",
|
|
170
170
|
"fuse.js": "^7.0.0",
|
|
171
|
-
"js-cookie": "^3.0.5",
|
|
172
171
|
"microdiff": "^1.4.0",
|
|
173
172
|
"nanoid": "^5.0.7",
|
|
174
173
|
"pretty-bytes": "^6.1.1",
|
|
@@ -179,24 +178,23 @@
|
|
|
179
178
|
"whatwg-mimetype": "^4.0.0",
|
|
180
179
|
"yaml": "^2.4.5",
|
|
181
180
|
"zod": "^3.23.8",
|
|
182
|
-
"@scalar/components": "0.13.
|
|
181
|
+
"@scalar/components": "0.13.16",
|
|
183
182
|
"@scalar/draggable": "0.1.8",
|
|
183
|
+
"@scalar/import": "0.2.19",
|
|
184
|
+
"@scalar/oas-utils": "0.2.99",
|
|
185
|
+
"@scalar/object-utils": "1.1.12",
|
|
184
186
|
"@scalar/icons": "0.1.2",
|
|
185
|
-
"@scalar/import": "0.2.17",
|
|
186
|
-
"@scalar/oas-utils": "0.2.97",
|
|
187
187
|
"@scalar/openapi-parser": "0.10.4",
|
|
188
188
|
"@scalar/openapi-types": "0.1.6",
|
|
189
|
-
"@scalar/
|
|
190
|
-
"@scalar/
|
|
191
|
-
"@scalar/
|
|
192
|
-
"@scalar/
|
|
193
|
-
"@scalar/use-
|
|
194
|
-
"@scalar/use-
|
|
195
|
-
"@scalar/use-toasts": "0.7.8"
|
|
196
|
-
"@scalar/use-tooltip": "1.0.5"
|
|
189
|
+
"@scalar/postman-to-openapi": "0.1.22",
|
|
190
|
+
"@scalar/themes": "0.9.61",
|
|
191
|
+
"@scalar/types": "0.0.27",
|
|
192
|
+
"@scalar/use-codemirror": "0.11.61",
|
|
193
|
+
"@scalar/use-hooks": "0.1.15",
|
|
194
|
+
"@scalar/use-tooltip": "1.0.5",
|
|
195
|
+
"@scalar/use-toasts": "0.7.8"
|
|
197
196
|
},
|
|
198
197
|
"devDependencies": {
|
|
199
|
-
"@types/js-cookie": "^3.0.6",
|
|
200
198
|
"@types/shell-quote": "^1.7.5",
|
|
201
199
|
"@types/whatwg-mimetype": "^3.0.2",
|
|
202
200
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
@@ -210,8 +208,8 @@
|
|
|
210
208
|
"vite": "^5.4.10",
|
|
211
209
|
"vite-svg-loader": "^5.1.0",
|
|
212
210
|
"vitest": "^1.6.0",
|
|
213
|
-
"@scalar/
|
|
214
|
-
"@scalar/
|
|
211
|
+
"@scalar/galaxy": "0.2.17",
|
|
212
|
+
"@scalar/build-tooling": "0.1.12"
|
|
215
213
|
},
|
|
216
214
|
"scripts": {
|
|
217
215
|
"build": "vite build && pnpm types:build && tsc-alias -p tsconfig.build.json",
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { defineComponent as p, openBlock as r, createBlock as n, withCtx as i, createElementVNode as s, unref as e, createCommentVNode as a } from "vue";
|
|
2
|
-
import l from "../../components/CodeInput/CodeInput.vue.js";
|
|
3
|
-
import u from "../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
4
|
-
import { useActiveEntities as c } from "../../store/active-entities.js";
|
|
5
|
-
import { useWorkspace as f } from "../../store/store.js";
|
|
6
|
-
const y = /* @__PURE__ */ p({
|
|
7
|
-
__name: "CookieRaw",
|
|
8
|
-
setup(d) {
|
|
9
|
-
const { activeCookieId: o } = c(), { cookies: m } = f();
|
|
10
|
-
return (k, t) => (r(), n(u, null, {
|
|
11
|
-
title: i(() => t[0] || (t[0] = [
|
|
12
|
-
s("span", null, "Raw Cookie String", -1)
|
|
13
|
-
])),
|
|
14
|
-
default: i(() => [
|
|
15
|
-
e(o) && e(m)[e(o)] ? (r(), n(l, {
|
|
16
|
-
key: 0,
|
|
17
|
-
class: "pl-px pr-2 md:px-2 py-2.5",
|
|
18
|
-
lineNumbers: "",
|
|
19
|
-
modelValue: ""
|
|
20
|
-
})) : a("", !0)
|
|
21
|
-
]),
|
|
22
|
-
_: 1
|
|
23
|
-
}));
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
export {
|
|
27
|
-
y as default
|
|
28
|
-
};
|