@scalar/api-reference 1.25.127 → 1.25.128
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 +29 -0
- package/dist/browser/standalone.js +16046 -15965
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +40 -64
- package/dist/components/ApiReferenceLayout.vue.d.ts +2 -2
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +158 -159
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +69 -17
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +5 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +73 -94
- package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts +16 -0
- package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts.map +1 -0
- package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.js +36 -0
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +2 -2
- package/dist/components/Content/Schema/Schema.vue2.js +4 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +143 -124
- package/dist/components/GettingStarted.vue.d.ts.map +1 -1
- package/dist/components/GettingStarted.vue.js +1 -1
- package/dist/components/GettingStarted.vue2.js +13 -13
- package/dist/components/Layouts/ClassicLayout.vue.d.ts +3 -3
- package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/Layouts.vue.d.ts +3 -3
- package/dist/components/Layouts/Layouts.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ModernLayout.vue.d.ts +3 -3
- package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ModernLayout.vue.js +2 -2
- package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
- package/dist/components/Section/CompactSection.vue.js +2 -2
- package/dist/components/Section/CompactSection.vue2.js +30 -29
- package/dist/esm.d.ts +5 -3
- package/dist/esm.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +2 -2
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/useApiClient.d.ts +362 -342
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +82 -74
- package/dist/features/ExampleResponses/ExampleResponse.vue.d.ts.map +1 -1
- package/dist/features/ExampleResponses/ExampleResponse.vue.js +2 -2
- package/dist/features/ExampleResponses/ExampleResponse.vue2.js +11 -11
- package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue.js +2 -2
- package/dist/features/ExampleResponses/ExampleResponses.vue2.js +90 -78
- package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts +1 -1
- package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ContentTypeSelect.vue.js +1 -1
- package/dist/features/Operation/components/ContentTypeSelect.vue2.js +29 -25
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue2.js +40 -47
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.js +2 -2
- package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
- package/dist/helpers/get-request.d.ts +1 -1
- package/dist/helpers/get-request.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useConfig.d.ts +3 -3
- package/dist/hooks/useConfig.d.ts.map +1 -1
- package/dist/hooks/useConfig.js +5 -4
- package/dist/index.js +17 -19
- package/dist/standalone/lib/html-api.d.ts +3 -3
- package/dist/standalone/lib/html-api.d.ts.map +1 -1
- package/dist/standalone/lib/html-rendering.d.ts +23 -24
- package/dist/standalone/lib/html-rendering.d.ts.map +1 -1
- package/dist/standalone/lib/html-rendering.js +39 -29
- package/dist/stores/useHttpClientStore.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +19 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +11 -10
- package/dist/hooks/useDeprecationWarnings.d.ts +0 -6
- package/dist/hooks/useDeprecationWarnings.d.ts.map +0 -1
- package/dist/hooks/useDeprecationWarnings.js +0 -20
|
@@ -1,22 +1,74 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}, T = /* @__PURE__ */ s({
|
|
1
|
+
import { defineComponent as x, ref as T, useId as g, watch as k, unref as e, openBlock as a, createElementBlock as s, createVNode as l, withCtx as i, createElementVNode as v, Fragment as y, renderList as P, createBlock as I, createTextVNode as L, toDisplayString as o, createCommentVNode as N } from "vue";
|
|
2
|
+
import { TabGroup as V, TabList as B, TabPanels as F, TabPanel as H } from "@headlessui/vue";
|
|
3
|
+
import S from "./ClientSelector.vue.js";
|
|
4
|
+
import { useFeaturedHttpClients as w } from "./useFeaturedHttpClients.js";
|
|
5
|
+
import { useHttpClientStore as E } from "../../../stores/useHttpClientStore.js";
|
|
6
|
+
const D = { key: 0 }, G = ["id"], O = /* @__PURE__ */ x({
|
|
8
7
|
__name: "ClientLibraries",
|
|
9
|
-
setup(
|
|
10
|
-
const {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
setup(j) {
|
|
9
|
+
const {
|
|
10
|
+
availableTargets: _,
|
|
11
|
+
httpTargetTitle: u,
|
|
12
|
+
httpClientTitle: c,
|
|
13
|
+
httpClient: d,
|
|
14
|
+
setHttpClient: C
|
|
15
|
+
} = E(), { featuredClients: r, isFeatured: f } = w(), m = T(0), p = g();
|
|
16
|
+
k(
|
|
17
|
+
d,
|
|
18
|
+
(n) => {
|
|
19
|
+
n && f(n) && (m.value = r.findIndex((t) => t === n));
|
|
20
|
+
},
|
|
21
|
+
{ immediate: !0 }
|
|
22
|
+
);
|
|
23
|
+
function b(n) {
|
|
24
|
+
const t = r[n];
|
|
25
|
+
t && C(t);
|
|
26
|
+
}
|
|
27
|
+
return (n, t) => e(_).length ? (a(), s("div", D, [
|
|
28
|
+
l(e(V), {
|
|
29
|
+
manual: "",
|
|
30
|
+
selectedIndex: m.value,
|
|
31
|
+
onChange: b
|
|
32
|
+
}, {
|
|
33
|
+
default: i(() => [
|
|
34
|
+
t[0] || (t[0] = v("div", { class: "client-libraries-heading" }, "Client Libraries", -1)),
|
|
35
|
+
l(e(B), null, {
|
|
36
|
+
default: i(() => [
|
|
37
|
+
l(S, {
|
|
38
|
+
featured: e(r),
|
|
39
|
+
morePanel: e(p)
|
|
40
|
+
}, null, 8, ["featured", "morePanel"])
|
|
41
|
+
]),
|
|
42
|
+
_: 1
|
|
43
|
+
}),
|
|
44
|
+
l(e(F), null, {
|
|
45
|
+
default: i(() => [
|
|
46
|
+
e(d) && e(f)(e(d)) ? (a(!0), s(y, { key: 0 }, P(e(r), (q, h) => (a(), I(e(H), {
|
|
47
|
+
key: h,
|
|
48
|
+
class: "selected-client card-footer -outline-offset-2",
|
|
49
|
+
muted: ""
|
|
50
|
+
}, {
|
|
51
|
+
default: i(() => [
|
|
52
|
+
L(o(e(c)) + " " + o(e(u)), 1)
|
|
53
|
+
]),
|
|
54
|
+
_: 2
|
|
55
|
+
}, 1024))), 128)) : (a(), s("div", {
|
|
56
|
+
key: 1,
|
|
57
|
+
id: e(p),
|
|
58
|
+
class: "selected-client card-footer -outline-offset-2",
|
|
59
|
+
muted: "",
|
|
60
|
+
role: "tabpanel",
|
|
61
|
+
tabindex: "0"
|
|
62
|
+
}, o(e(c)) + " " + o(e(u)), 9, G))
|
|
63
|
+
]),
|
|
64
|
+
_: 1
|
|
65
|
+
})
|
|
66
|
+
]),
|
|
67
|
+
_: 1
|
|
68
|
+
}, 8, ["selectedIndex"])
|
|
69
|
+
])) : N("", !0);
|
|
18
70
|
}
|
|
19
71
|
});
|
|
20
72
|
export {
|
|
21
|
-
|
|
73
|
+
O as default
|
|
22
74
|
};
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** The id of the tab panel that contains for the non featured clients */
|
|
3
|
+
morePanel?: 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, {}, HTMLDivElement>;
|
|
2
6
|
export default _default;
|
|
3
7
|
//# sourceMappingURL=ClientSelector.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue"],"names":[],"mappings":"AA2RA,KAAK,WAAW,GAAG;IACjB,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;;AA4MF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ClientSelector.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f25a69f0"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { defineComponent as S, ref as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { defineComponent as S, ref as w, openBlock as i, createElementBlock as r, Fragment as u, renderList as d, unref as e, createBlock as x, normalizeClass as c, withCtx as N, createElementVNode as n, createVNode as g, toDisplayString as b, createCommentVNode as B } from "vue";
|
|
2
|
+
import { Tab as T } from "@headlessui/vue";
|
|
3
|
+
import { ScalarIcon as f } from "@scalar/components";
|
|
4
|
+
import { useFeaturedHttpClients as $ } from "./useFeaturedHttpClients.js";
|
|
5
|
+
import { useHttpClientStore as M } from "../../../stores/useHttpClientStore.js";
|
|
6
|
+
const F = { class: "client-libraries-text" }, H = ["aria-controls", "value"], I = ["label"], J = ["aria-label", "value"], O = {
|
|
5
7
|
"aria-hidden": "true",
|
|
6
8
|
class: "client-libraries-icon__more"
|
|
7
|
-
},
|
|
9
|
+
}, V = {
|
|
8
10
|
key: 1,
|
|
9
11
|
class: "client-libraries-icon",
|
|
10
12
|
height: "50",
|
|
@@ -12,126 +14,103 @@ const I = ["onClick"], $ = { class: "client-libraries-text" }, z = ["value"], B
|
|
|
12
14
|
viewBox: "0 0 50 50",
|
|
13
15
|
width: "50",
|
|
14
16
|
xmlns: "http://www.w3.org/2000/svg"
|
|
15
|
-
},
|
|
17
|
+
}, j = {
|
|
16
18
|
key: 0,
|
|
17
19
|
"aria-hidden": "true",
|
|
18
20
|
class: "client-libraries-text"
|
|
19
|
-
},
|
|
21
|
+
}, q = /* @__PURE__ */ S({
|
|
20
22
|
__name: "ClientSelector",
|
|
21
|
-
|
|
23
|
+
props: {
|
|
24
|
+
morePanel: {}
|
|
25
|
+
},
|
|
26
|
+
setup(z) {
|
|
22
27
|
const {
|
|
23
|
-
httpClient:
|
|
24
|
-
setHttpClient:
|
|
25
|
-
availableTargets:
|
|
26
|
-
getClientTitle:
|
|
28
|
+
httpClient: l,
|
|
29
|
+
setHttpClient: v,
|
|
30
|
+
availableTargets: p,
|
|
31
|
+
getClientTitle: y,
|
|
27
32
|
getTargetTitle: k
|
|
28
|
-
} =
|
|
29
|
-
|
|
30
|
-
targetKey: "shell",
|
|
31
|
-
clientKey: "curl"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
targetKey: "ruby",
|
|
35
|
-
clientKey: "native"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
targetKey: "node",
|
|
39
|
-
clientKey: "undici"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
targetKey: "php",
|
|
43
|
-
clientKey: "guzzle"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
targetKey: "python",
|
|
47
|
-
clientKey: "python3"
|
|
48
|
-
}
|
|
49
|
-
].filter(
|
|
50
|
-
(i) => y.value.find((n) => n.key === i.targetKey && n.clients.find(
|
|
51
|
-
(e) => e.client === i.clientKey
|
|
52
|
-
))
|
|
53
|
-
), _ = (i) => `programming-language-${i === "js" ? "javascript" : i}`, C = (i) => i.targetKey === s.targetKey && i.clientKey === s.clientKey, b = (i) => K.some(
|
|
54
|
-
(n) => n.targetKey === i.targetKey && n.clientKey === i.clientKey
|
|
55
|
-
);
|
|
56
|
-
return (i, n) => (l(), r("div", {
|
|
33
|
+
} = M(), { featuredClients: K, isFeatured: _ } = $(), h = w(), m = (s) => `programming-language-${s === "js" ? "javascript" : s}`, C = (s) => s.targetKey === l.targetKey && s.clientKey === l.clientKey;
|
|
34
|
+
return (s, a) => (i(), r("div", {
|
|
57
35
|
ref_key: "containerRef",
|
|
58
|
-
ref:
|
|
36
|
+
ref: h,
|
|
59
37
|
class: "client-libraries-content"
|
|
60
38
|
}, [
|
|
61
|
-
(
|
|
62
|
-
key:
|
|
39
|
+
(i(!0), r(u, null, d(e(K), (t) => (i(), x(e(T), {
|
|
40
|
+
key: t.clientKey,
|
|
63
41
|
"aria-hidden": "true",
|
|
64
|
-
class:
|
|
65
|
-
"client-libraries__active": C(
|
|
66
|
-
}])
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
]
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
class:
|
|
83
|
-
"client-libraries__active":
|
|
42
|
+
class: c(["client-libraries rendered-code-sdks", {
|
|
43
|
+
"client-libraries__active": C(t)
|
|
44
|
+
}])
|
|
45
|
+
}, {
|
|
46
|
+
default: N(() => [
|
|
47
|
+
n("div", {
|
|
48
|
+
class: c(`client-libraries-icon__${t.targetKey}`)
|
|
49
|
+
}, [
|
|
50
|
+
g(e(f), {
|
|
51
|
+
class: "client-libraries-icon",
|
|
52
|
+
icon: m(t.targetKey)
|
|
53
|
+
}, null, 8, ["icon"])
|
|
54
|
+
], 2),
|
|
55
|
+
n("span", F, b(e(k)(t)), 1)
|
|
56
|
+
]),
|
|
57
|
+
_: 2
|
|
58
|
+
}, 1032, ["class"]))), 128)),
|
|
59
|
+
n("label", {
|
|
60
|
+
class: c(["client-libraries client-libraries__select", {
|
|
61
|
+
"client-libraries__active": e(l) && !e(_)(e(l))
|
|
84
62
|
}])
|
|
85
63
|
}, [
|
|
86
|
-
|
|
87
|
-
|
|
64
|
+
a[2] || (a[2] = n("span", { class: "sr-only" }, "Select from all clients", -1)),
|
|
65
|
+
n("select", {
|
|
66
|
+
"aria-controls": s.morePanel,
|
|
88
67
|
class: "language-select",
|
|
89
|
-
value: JSON.stringify(
|
|
90
|
-
onInput:
|
|
68
|
+
value: JSON.stringify(e(l)),
|
|
69
|
+
onInput: a[0] || (a[0] = (t) => e(v)(JSON.parse(t.target.value)))
|
|
91
70
|
}, [
|
|
92
|
-
(
|
|
93
|
-
key:
|
|
94
|
-
label:
|
|
71
|
+
(i(!0), r(u, null, d(e(p), (t) => (i(), r("optgroup", {
|
|
72
|
+
key: t.key,
|
|
73
|
+
label: t.title
|
|
95
74
|
}, [
|
|
96
|
-
(
|
|
97
|
-
key:
|
|
98
|
-
"aria-label": `${
|
|
99
|
-
targetKey:
|
|
100
|
-
clientKey:
|
|
75
|
+
(i(!0), r(u, null, d(t.clients, (o) => (i(), r("option", {
|
|
76
|
+
key: o.client,
|
|
77
|
+
"aria-label": `${t.title} ${e(y)({
|
|
78
|
+
targetKey: t.key,
|
|
79
|
+
clientKey: o.client
|
|
101
80
|
})}`,
|
|
102
81
|
value: JSON.stringify({
|
|
103
|
-
targetKey:
|
|
104
|
-
clientKey:
|
|
82
|
+
targetKey: t.key,
|
|
83
|
+
clientKey: o.client
|
|
105
84
|
})
|
|
106
|
-
},
|
|
107
|
-
targetKey:
|
|
108
|
-
clientKey:
|
|
109
|
-
})), 9,
|
|
110
|
-
], 8,
|
|
111
|
-
], 40,
|
|
112
|
-
|
|
113
|
-
|
|
85
|
+
}, b(e(y)({
|
|
86
|
+
targetKey: t.key,
|
|
87
|
+
clientKey: o.client
|
|
88
|
+
})), 9, J))), 128))
|
|
89
|
+
], 8, I))), 128))
|
|
90
|
+
], 40, H),
|
|
91
|
+
n("div", O, [
|
|
92
|
+
e(l) && !e(_)(e(l)) ? (i(), r("div", {
|
|
114
93
|
key: 0,
|
|
115
|
-
class:
|
|
94
|
+
class: c(`client-libraries-icon__${e(l).targetKey}`)
|
|
116
95
|
}, [
|
|
117
|
-
|
|
96
|
+
g(e(f), {
|
|
118
97
|
class: "client-libraries-icon",
|
|
119
|
-
icon:
|
|
98
|
+
icon: m(e(l).targetKey)
|
|
120
99
|
}, null, 8, ["icon"])
|
|
121
|
-
], 2)) : (
|
|
122
|
-
|
|
100
|
+
], 2)) : (i(), r("svg", V, a[1] || (a[1] = [
|
|
101
|
+
n("g", {
|
|
123
102
|
fill: "currentColor",
|
|
124
103
|
"fill-rule": "nonzero"
|
|
125
104
|
}, [
|
|
126
|
-
|
|
105
|
+
n("path", { d: "M10.71 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M21.13 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M31.55 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0" })
|
|
127
106
|
], -1)
|
|
128
107
|
])))
|
|
129
108
|
]),
|
|
130
|
-
|
|
109
|
+
e(p).length ? (i(), r("span", j, " More ")) : B("", !0)
|
|
131
110
|
], 2)
|
|
132
111
|
], 512));
|
|
133
112
|
}
|
|
134
113
|
});
|
|
135
114
|
export {
|
|
136
|
-
|
|
115
|
+
q as default
|
|
137
116
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type HttpClientState } from '../../../stores';
|
|
2
|
+
import type { ClientId, Target } from '@scalar/snippetz';
|
|
3
|
+
export type FeaturedClient = {
|
|
4
|
+
targetKey: Target['key'];
|
|
5
|
+
clientKey: ClientId<Target['key']>;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Provides a list of featured http clients
|
|
9
|
+
*/
|
|
10
|
+
export declare function useFeaturedHttpClients(): {
|
|
11
|
+
/** The featured http clients */
|
|
12
|
+
featuredClients: FeaturedClient[];
|
|
13
|
+
/** Whether a client is featured */
|
|
14
|
+
isFeatured: (client: HttpClientState) => boolean;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=useFeaturedHttpClients.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFeaturedHttpClients.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/useFeaturedHttpClients.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,eAAe,EAAE,MAAM,UAAU,CAAA;AACnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAExD,MAAM,MAAM,cAAc,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAAC,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAA;CAAE,CAAA;AAE7F;;GAEG;AACH,wBAAgB,sBAAsB;IAwClC,gCAAgC;;IAEhC,mCAAmC;yBANT,eAAe;EAS5C"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { useHttpClientStore as y } from "../../../stores/useHttpClientStore.js";
|
|
2
|
+
function K() {
|
|
3
|
+
const { availableTargets: r } = y(), n = [
|
|
4
|
+
{
|
|
5
|
+
targetKey: "shell",
|
|
6
|
+
clientKey: "curl"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
targetKey: "ruby",
|
|
10
|
+
clientKey: "native"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
targetKey: "node",
|
|
14
|
+
clientKey: "undici"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
targetKey: "php",
|
|
18
|
+
clientKey: "guzzle"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
targetKey: "python",
|
|
22
|
+
clientKey: "python3"
|
|
23
|
+
}
|
|
24
|
+
].filter(
|
|
25
|
+
(e) => r.value.find((t) => t.key === e.targetKey && t.clients.find((i) => i.client === e.clientKey))
|
|
26
|
+
);
|
|
27
|
+
return {
|
|
28
|
+
/** The featured http clients */
|
|
29
|
+
featuredClients: n,
|
|
30
|
+
/** Whether a client is featured */
|
|
31
|
+
isFeatured: (e) => n.some((t) => t.targetKey === e.targetKey && t.clientKey === e.clientKey)
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
K as useFeaturedHttpClients
|
|
36
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"AAwSA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAQ9E,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EACF,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB,CAAA;IACpC,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+DAA+D;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2CAA2C;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;WARQ,MAAM;;AAoTlB,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Schema.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const f = /* @__PURE__ */
|
|
3
|
+
import a from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const f = /* @__PURE__ */ a(o, [["__scopeId", "data-v-a199f3ab"]]);
|
|
5
5
|
export {
|
|
6
6
|
f as default
|
|
7
7
|
};
|
|
@@ -80,7 +80,10 @@ const I = {
|
|
|
80
80
|
}, 1032, ["as", "class", "style"]), [
|
|
81
81
|
[N, !e.hideHeading && !(e.noncollapsible && e.compact)]
|
|
82
82
|
]),
|
|
83
|
-
m(n(T), {
|
|
83
|
+
m(n(T), {
|
|
84
|
+
as: "ul",
|
|
85
|
+
static: e.noncollapsible
|
|
86
|
+
}, {
|
|
84
87
|
default: y(() => {
|
|
85
88
|
var u, c;
|
|
86
89
|
return [
|
|
@@ -20,6 +20,6 @@ declare const _default_1: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
20
20
|
level: number;
|
|
21
21
|
compact: boolean;
|
|
22
22
|
withExamples: boolean;
|
|
23
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLLIElement>;
|
|
24
24
|
export default _default_1;
|
|
25
25
|
//# sourceMappingURL=SchemaProperty.vue.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SchemaProperty.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-8c997c80"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -77,7 +77,7 @@ const ie = {
|
|
|
77
77
|
), e = f(() => se(Q.value)), D = J.find((t) => !e.value || typeof e.value != "object" ? !1 : t in e.value || e.value.items && typeof e.value.items == "object" && t in e.value.items);
|
|
78
78
|
return (t, r) => {
|
|
79
79
|
var w, A, C, P, F, N, V, q, z, I, L, T, H, O, R, U;
|
|
80
|
-
return l(), a("
|
|
80
|
+
return l(), a("li", {
|
|
81
81
|
class: G(["property", [
|
|
82
82
|
`property--level-${t.level}`,
|
|
83
83
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AA2OA,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AA0BJ,iBAAS,cAAc;WAgUT,OAAO,IAA6B;;sBATxB,GAAG;sBACH,GAAG;;;;EAa5B;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;cAjXN,OAAO;wFAyXpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SchemaPropertyHeading.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-96db3524"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|