@scalar/api-reference 1.24.72 → 1.24.74
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 +38 -0
- package/dist/browser/standalone.js +13130 -12455
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +37 -36
- package/dist/components/Card/Card.vue.js +4 -4
- package/dist/components/Card/CardContent.vue.js +2 -2
- package/dist/components/Content/Authentication/Authentication.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +5 -5
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +16 -16
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +2 -2
- package/dist/components/Content/Content.vue2.js +18 -16
- package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Description.vue.js +2 -2
- package/dist/components/Content/Operation/ParameterItem.vue.js +3 -3
- package/dist/components/Content/Operation/PathResponses/PathResponses.vue.js +2 -2
- package/dist/components/Content/Operation/PathResponses/PathResponses.vue2.js +1 -1
- package/dist/components/Content/Operation/RequestBody.vue.js +1 -1
- package/dist/components/Content/Operation/RequestBodyPropertiesChild.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +3 -3
- package/dist/components/Content/Schema/Schema.vue2.js +57 -65
- package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +1 -1
- package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
- package/dist/components/Content/Tag/Endpoints.vue2.js +63 -58
- package/dist/components/Content/Tag/Tag.vue.js +2 -2
- package/dist/components/DarkModeToggle/DarkModeToggle.vue.js +2 -2
- package/dist/components/DarkModeToggle/DarkModeToggle.vue2.js +3 -3
- package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ClassicLayout.vue.js +16 -15
- package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ModernLayout.vue.js +2 -2
- package/dist/components/Layouts/ModernLayout.vue2.js +22 -21
- package/dist/components/Section/Section.vue.js +1 -1
- package/dist/components/ShowMoreButton.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/features/BaseUrl/ServerForm.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerForm.vue.js +2 -2
- package/dist/features/BaseUrl/ServerForm.vue2.js +7 -7
- package/dist/features/BaseUrl/ServerUrl.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerUrl.vue.js +2 -2
- package/dist/features/Search/SearchButton.vue.js +2 -2
- package/dist/features/Search/SearchButton.vue2.js +1 -1
- package/dist/hooks/useDarkModeState.d.ts +1 -1
- package/dist/hooks/useDarkModeState.d.ts.map +1 -1
- package/dist/hooks/useDarkModeState.js +12 -12
- package/dist/index.js +1 -1
- package/dist/legacy/components/CardForm.vue.d.ts.map +1 -1
- package/dist/legacy/components/CardForm.vue.js +4 -4
- package/dist/legacy/components/CardFormTextInput.vue.d.ts.map +1 -1
- package/dist/legacy/components/CardFormTextInput.vue.js +1 -1
- package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts.map +1 -1
- package/dist/legacy/components/SecuritySchemeScopes.vue.js +1 -1
- package/dist/legacy/components/SecuritySchemeScopes.vue2.js +9 -9
- package/dist/legacy/components/SecuritySchemeSelector.vue.js +1 -1
- package/dist/legacy/components/SecuritySchemeSelector.vue2.js +10 -10
- package/dist/style.css +1 -1
- package/dist/types.d.ts +4 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as D, computed as O, openBlock as l, createBlock as t, unref as r, withCtx as h, createElementVNode as P, normalizeClass as p, createElementBlock as o, createVNode as d, createCommentVNode as s, withDirectives as q, normalizeStyle as N, Fragment as i, createTextVNode as C, toDisplayString as S, vShow as V, renderList as z } from "vue";
|
|
2
2
|
import { Disclosure as A, DisclosureButton as E, DisclosurePanel as H } from "@headlessui/vue";
|
|
3
|
-
import { ScalarMarkdown as T, ScalarIcon as
|
|
4
|
-
import
|
|
3
|
+
import { ScalarMarkdown as T, ScalarIcon as w } from "@scalar/components";
|
|
4
|
+
import $ from "./SchemaHeading.vue.js";
|
|
5
5
|
import m from "./SchemaProperty.vue.js";
|
|
6
|
-
const
|
|
6
|
+
const F = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "schema-card-description"
|
|
9
|
-
},
|
|
10
|
-
"fill-rule": "nonzero",
|
|
11
|
-
points: "14 8 8 8 8 14 6 14 6 8 0 8 0 6 6 6 6 0 8 0 8 6 14 6"
|
|
12
|
-
}, null, -1)), G = [
|
|
13
|
-
R
|
|
14
|
-
], Y = /* @__PURE__ */ j({
|
|
9
|
+
}, K = /* @__PURE__ */ D({
|
|
15
10
|
__name: "Schema",
|
|
16
11
|
props: {
|
|
17
12
|
value: {},
|
|
@@ -20,63 +15,60 @@ const L = (s) => (N("data-v-ba8edff4"), s = s(), V(), s), M = {
|
|
|
20
15
|
compact: { type: Boolean },
|
|
21
16
|
noncollapsible: { type: Boolean }
|
|
22
17
|
},
|
|
23
|
-
setup(
|
|
24
|
-
const
|
|
25
|
-
return (e,
|
|
18
|
+
setup(B) {
|
|
19
|
+
const v = B, y = O(() => !(v.noncollapsible || v.level === 0)), j = (e) => v.noncollapsible && e.stopPropagation();
|
|
20
|
+
return (e, I) => typeof e.value == "object" && Object.keys(e.value).length ? (l(), t(r(A), {
|
|
26
21
|
key: 0,
|
|
27
22
|
defaultOpen: e.noncollapsible
|
|
28
23
|
}, {
|
|
29
|
-
default:
|
|
30
|
-
var
|
|
24
|
+
default: h(({ open: n }) => {
|
|
25
|
+
var k;
|
|
31
26
|
return [
|
|
32
|
-
|
|
33
|
-
class:
|
|
27
|
+
P("div", {
|
|
28
|
+
class: p(["schema-card", [
|
|
34
29
|
`schema-card--level-${e.level}`,
|
|
35
30
|
{ "schema-card--compact": e.compact, "schema-card--open": n }
|
|
36
31
|
]])
|
|
37
32
|
}, [
|
|
38
|
-
(
|
|
39
|
-
|
|
33
|
+
(k = e.value) != null && k.description && typeof e.value.description == "string" ? (l(), o("div", F, [
|
|
34
|
+
d(r(T), {
|
|
40
35
|
value: e.value.description
|
|
41
36
|
}, null, 8, ["value"])
|
|
42
|
-
])) :
|
|
43
|
-
|
|
44
|
-
class:
|
|
37
|
+
])) : s("", !0),
|
|
38
|
+
P("div", {
|
|
39
|
+
class: p(["schema-properties", { "schema-properties-open": n }])
|
|
45
40
|
}, [
|
|
46
|
-
|
|
41
|
+
q(d(r(E), {
|
|
47
42
|
as: e.noncollapsible ? "div" : "button",
|
|
48
|
-
class:
|
|
49
|
-
style:
|
|
43
|
+
class: p(["schema-card-title", { "schema-card-title--compact": e.compact }]),
|
|
44
|
+
style: N({
|
|
50
45
|
top: `calc(var(--refs-header-height) + calc(var(--schema-title-height) * ${e.level}))`
|
|
51
46
|
}),
|
|
52
|
-
onClickCapture:
|
|
47
|
+
onClickCapture: j
|
|
53
48
|
}, {
|
|
54
|
-
default:
|
|
55
|
-
var c,
|
|
49
|
+
default: h(() => {
|
|
50
|
+
var c, a, u;
|
|
56
51
|
return [
|
|
57
|
-
e.compact ? (l(),
|
|
58
|
-
|
|
52
|
+
e.compact ? (l(), o(i, { key: 0 }, [
|
|
53
|
+
y.value ? (l(), t(r(w), {
|
|
59
54
|
key: 0,
|
|
60
|
-
class:
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
C(" Hide " + P(((c = e.value) == null ? void 0 : c.title) ?? "Child Attributes"), 1)
|
|
69
|
-
], 64)) : (l(), a(t, { key: 2 }, [
|
|
70
|
-
C(" Show " + P(((o = e.value) == null ? void 0 : o.title) ?? "Child Attributes"), 1)
|
|
55
|
+
class: p(["schema-card-title-icon h-2.5", { "schema-card-title-icon--open": n }]),
|
|
56
|
+
icon: "Add",
|
|
57
|
+
thickness: "3"
|
|
58
|
+
}, null, 8, ["class"])) : s("", !0),
|
|
59
|
+
n ? (l(), o(i, { key: 1 }, [
|
|
60
|
+
C(" Hide " + S(((c = e.value) == null ? void 0 : c.title) ?? "Child Attributes"), 1)
|
|
61
|
+
], 64)) : (l(), o(i, { key: 2 }, [
|
|
62
|
+
C(" Show " + S(((a = e.value) == null ? void 0 : a.title) ?? "Child Attributes"), 1)
|
|
71
63
|
], 64))
|
|
72
|
-
], 64)) : (l(),
|
|
73
|
-
|
|
64
|
+
], 64)) : (l(), o(i, { key: 1 }, [
|
|
65
|
+
y.value ? (l(), t(r(w), {
|
|
74
66
|
key: 0,
|
|
75
|
-
class:
|
|
67
|
+
class: p(["schema-card-title-icon", { "schema-card-title-icon--open": n }]),
|
|
76
68
|
icon: "ChevronRight",
|
|
77
69
|
size: "md"
|
|
78
|
-
}, null, 8, ["class"])) :
|
|
79
|
-
|
|
70
|
+
}, null, 8, ["class"])) : s("", !0),
|
|
71
|
+
d($, {
|
|
80
72
|
name: ((u = e.value) == null ? void 0 : u.title) ?? e.name,
|
|
81
73
|
value: e.value
|
|
82
74
|
}, null, 8, ["name", "value"])
|
|
@@ -85,26 +77,26 @@ const L = (s) => (N("data-v-ba8edff4"), s = s(), V(), s), M = {
|
|
|
85
77
|
}),
|
|
86
78
|
_: 2
|
|
87
79
|
}, 1032, ["as", "class", "style"]), [
|
|
88
|
-
[
|
|
80
|
+
[V, !(e.noncollapsible && e.compact)]
|
|
89
81
|
]),
|
|
90
|
-
|
|
91
|
-
default:
|
|
82
|
+
d(r(H), { static: e.noncollapsible }, {
|
|
83
|
+
default: h(() => {
|
|
92
84
|
var c;
|
|
93
85
|
return [
|
|
94
|
-
e.value.properties || e.value.additionalProperties ? (l(),
|
|
95
|
-
e.value.properties ? (l(!0),
|
|
96
|
-
var u,
|
|
97
|
-
return l(),
|
|
98
|
-
key:
|
|
86
|
+
e.value.properties || e.value.additionalProperties ? (l(), o(i, { key: 0 }, [
|
|
87
|
+
e.value.properties ? (l(!0), o(i, { key: 0 }, z(Object.keys((c = e.value) == null ? void 0 : c.properties), (a) => {
|
|
88
|
+
var u, f, b, g;
|
|
89
|
+
return l(), t(m, {
|
|
90
|
+
key: a,
|
|
99
91
|
compact: e.compact,
|
|
100
92
|
level: e.level,
|
|
101
|
-
name:
|
|
102
|
-
required: ((u = e.value.required) == null ? void 0 : u.includes(
|
|
103
|
-
value: (
|
|
93
|
+
name: a,
|
|
94
|
+
required: ((u = e.value.required) == null ? void 0 : u.includes(a)) || ((b = (f = e.value.properties) == null ? void 0 : f[a]) == null ? void 0 : b.required) === !0,
|
|
95
|
+
value: (g = e.value.properties) == null ? void 0 : g[a]
|
|
104
96
|
}, null, 8, ["compact", "level", "name", "required", "value"]);
|
|
105
|
-
}), 128)) :
|
|
106
|
-
e.value.additionalProperties ? (l(),
|
|
107
|
-
e.value.additionalProperties === !0 || Object.keys(e.value.additionalProperties).length === 0 || !e.value.additionalProperties.type ? (l(),
|
|
97
|
+
}), 128)) : s("", !0),
|
|
98
|
+
e.value.additionalProperties ? (l(), o(i, { key: 1 }, [
|
|
99
|
+
e.value.additionalProperties === !0 || Object.keys(e.value.additionalProperties).length === 0 || !e.value.additionalProperties.type ? (l(), t(m, {
|
|
108
100
|
key: 0,
|
|
109
101
|
additional: "",
|
|
110
102
|
compact: e.compact,
|
|
@@ -114,7 +106,7 @@ const L = (s) => (N("data-v-ba8edff4"), s = s(), V(), s), M = {
|
|
|
114
106
|
type: "anything",
|
|
115
107
|
...typeof e.value.additionalProperties == "object" ? e.value.additionalProperties : {}
|
|
116
108
|
}
|
|
117
|
-
}, null, 8, ["compact", "level", "value"])) : (l(),
|
|
109
|
+
}, null, 8, ["compact", "level", "value"])) : (l(), t(m, {
|
|
118
110
|
key: 1,
|
|
119
111
|
additional: "",
|
|
120
112
|
compact: e.compact,
|
|
@@ -122,8 +114,8 @@ const L = (s) => (N("data-v-ba8edff4"), s = s(), V(), s), M = {
|
|
|
122
114
|
noncollapsible: "",
|
|
123
115
|
value: e.value.additionalProperties
|
|
124
116
|
}, null, 8, ["compact", "level", "value"]))
|
|
125
|
-
], 64)) :
|
|
126
|
-
], 64)) : (l(),
|
|
117
|
+
], 64)) : s("", !0)
|
|
118
|
+
], 64)) : (l(), t(m, {
|
|
127
119
|
key: 1,
|
|
128
120
|
compact: e.compact,
|
|
129
121
|
level: e.level,
|
|
@@ -139,9 +131,9 @@ const L = (s) => (N("data-v-ba8edff4"), s = s(), V(), s), M = {
|
|
|
139
131
|
];
|
|
140
132
|
}),
|
|
141
133
|
_: 1
|
|
142
|
-
}, 8, ["defaultOpen"])) :
|
|
134
|
+
}, 8, ["defaultOpen"])) : s("", !0);
|
|
143
135
|
}
|
|
144
136
|
});
|
|
145
137
|
export {
|
|
146
|
-
|
|
138
|
+
K as default
|
|
147
139
|
};
|
|
@@ -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
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-d1d8e2ad"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as V, openBlock as t, createElementBlock as l, normaliz
|
|
|
2
2
|
import { ScalarMarkdown as h } from "@scalar/components";
|
|
3
3
|
import m from "./Schema.vue.js";
|
|
4
4
|
import A from "./SchemaPropertyHeading.vue.js";
|
|
5
|
-
const G = (d) => (M("data-v-
|
|
5
|
+
const G = (d) => (M("data-v-d1d8e2ad"), d = d(), $(), d), J = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "property-description"
|
|
8
8
|
}, K = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Endpoints.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Endpoints.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Endpoints.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Endpoints.vue"],"names":[],"mappings":"AA+HA,OAAO,KAAK,EAAE,GAAG,EAAwB,MAAM,mBAAmB,CAAA;;SAgBrC,MAAM;SAAO,GAAG;;;;SAAhB,MAAM;SAAO,GAAG;;;;AAqR7C,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Endpoints.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5a5d90da"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
d as default
|
|
7
7
|
};
|
|
@@ -1,100 +1,105 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarMarkdown as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { useSidebar as
|
|
14
|
-
import { useNavState as
|
|
15
|
-
const
|
|
1
|
+
import { defineComponent as b, openBlock as n, createBlock as c, unref as e, withCtx as a, createVNode as o, createTextVNode as p, toDisplayString as u, createElementVNode as f, createElementBlock as g, Fragment as y, renderList as V, normalizeClass as E, createCommentVNode as I } from "vue";
|
|
2
|
+
import { ScalarMarkdown as w } from "@scalar/components";
|
|
3
|
+
import A from "../../Section/Section.vue.js";
|
|
4
|
+
import B from "../../Section/SectionContent.vue.js";
|
|
5
|
+
import H from "../../Section/SectionColumns.vue.js";
|
|
6
|
+
import C from "../../Section/SectionColumn.vue.js";
|
|
7
|
+
import T from "../../Section/SectionHeader.vue.js";
|
|
8
|
+
import O from "../../Anchor/Anchor.vue.js";
|
|
9
|
+
import $ from "../../Card/Card.vue.js";
|
|
10
|
+
import z from "../../Card/CardHeader.vue.js";
|
|
11
|
+
import D from "../../Card/CardContent.vue.js";
|
|
12
|
+
import F from "../../HttpMethod/HttpMethod.vue.js";
|
|
13
|
+
import { useSidebar as L } from "../../../hooks/useSidebar.js";
|
|
14
|
+
import { useNavState as M } from "../../../hooks/useNavState.js";
|
|
15
|
+
const U = { class: "endpoints" }, j = ["onClick"], re = /* @__PURE__ */ b({
|
|
16
16
|
__name: "Endpoints",
|
|
17
17
|
props: {
|
|
18
18
|
id: {},
|
|
19
19
|
tag: {}
|
|
20
20
|
},
|
|
21
21
|
emits: ["observeAndNavigate"],
|
|
22
|
-
setup(
|
|
23
|
-
const l =
|
|
24
|
-
|
|
22
|
+
setup(_, { emit: h }) {
|
|
23
|
+
const l = _, v = h, { getOperationId: i, getTagId: d } = M(), { setCollapsedSidebarItem: S } = L(), k = (t) => {
|
|
24
|
+
v("observeAndNavigate", t);
|
|
25
25
|
};
|
|
26
|
-
async function
|
|
27
|
-
|
|
26
|
+
async function N(t) {
|
|
27
|
+
k(i(t, l.tag)), S(d(l.tag), !0);
|
|
28
28
|
}
|
|
29
|
-
return (t,
|
|
29
|
+
return (t, q) => (n(), c(e(A), {
|
|
30
30
|
id: t.id,
|
|
31
31
|
label: t.tag.name.toUpperCase()
|
|
32
32
|
}, {
|
|
33
|
-
default:
|
|
34
|
-
|
|
35
|
-
default:
|
|
36
|
-
|
|
37
|
-
default:
|
|
38
|
-
|
|
39
|
-
default:
|
|
40
|
-
|
|
41
|
-
default:
|
|
42
|
-
|
|
43
|
-
id: e(
|
|
33
|
+
default: a(() => [
|
|
34
|
+
o(e(B), null, {
|
|
35
|
+
default: a(() => [
|
|
36
|
+
o(e(H), null, {
|
|
37
|
+
default: a(() => [
|
|
38
|
+
o(e(C), null, {
|
|
39
|
+
default: a(() => [
|
|
40
|
+
o(e(T), { level: 2 }, {
|
|
41
|
+
default: a(() => [
|
|
42
|
+
o(e(O), {
|
|
43
|
+
id: e(d)(t.tag)
|
|
44
44
|
}, {
|
|
45
|
-
default:
|
|
46
|
-
u(
|
|
45
|
+
default: a(() => [
|
|
46
|
+
p(u(t.tag["x-displayName"] ?? t.tag.name), 1)
|
|
47
47
|
]),
|
|
48
48
|
_: 1
|
|
49
49
|
}, 8, ["id"])
|
|
50
50
|
]),
|
|
51
51
|
_: 1
|
|
52
52
|
}),
|
|
53
|
-
|
|
53
|
+
o(e(w), {
|
|
54
54
|
value: t.tag.description,
|
|
55
55
|
withImages: ""
|
|
56
56
|
}, null, 8, ["value"])
|
|
57
57
|
]),
|
|
58
58
|
_: 1
|
|
59
59
|
}),
|
|
60
|
-
|
|
61
|
-
default:
|
|
62
|
-
var
|
|
60
|
+
o(e(C), null, {
|
|
61
|
+
default: a(() => {
|
|
62
|
+
var m;
|
|
63
63
|
return [
|
|
64
|
-
((
|
|
64
|
+
((m = t.tag.operations) == null ? void 0 : m.length) > 0 ? (n(), c(e($), {
|
|
65
65
|
key: 0,
|
|
66
66
|
class: "scalar-card-sticky"
|
|
67
67
|
}, {
|
|
68
|
-
default:
|
|
69
|
-
|
|
70
|
-
default:
|
|
71
|
-
|
|
68
|
+
default: a(() => [
|
|
69
|
+
o(e(z), { muted: "" }, {
|
|
70
|
+
default: a(() => [
|
|
71
|
+
p("Endpoints")
|
|
72
72
|
]),
|
|
73
73
|
_: 1
|
|
74
74
|
}),
|
|
75
|
-
|
|
75
|
+
o(e(D), {
|
|
76
76
|
class: "custom-scroll",
|
|
77
77
|
muted: ""
|
|
78
78
|
}, {
|
|
79
|
-
default:
|
|
80
|
-
|
|
81
|
-
(n(!0),
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
79
|
+
default: a(() => [
|
|
80
|
+
f("div", U, [
|
|
81
|
+
(n(!0), g(y, null, V(t.tag.operations, (r) => {
|
|
82
|
+
var s;
|
|
83
|
+
return n(), g("a", {
|
|
84
|
+
key: e(i)(r, t.tag),
|
|
85
|
+
class: "endpoint",
|
|
86
|
+
onClick: (G) => N(r)
|
|
87
|
+
}, [
|
|
88
|
+
o(e(F), {
|
|
89
|
+
method: r.httpVerb
|
|
90
|
+
}, null, 8, ["method"]),
|
|
91
|
+
f("span", {
|
|
92
|
+
class: E({ deprecated: (s = r.information) == null ? void 0 : s.deprecated })
|
|
93
|
+
}, u(r.path), 3)
|
|
94
|
+
], 8, j);
|
|
95
|
+
}), 128))
|
|
91
96
|
])
|
|
92
97
|
]),
|
|
93
98
|
_: 1
|
|
94
99
|
})
|
|
95
100
|
]),
|
|
96
101
|
_: 1
|
|
97
|
-
})) :
|
|
102
|
+
})) : I("", !0)
|
|
98
103
|
];
|
|
99
104
|
}),
|
|
100
105
|
_: 1
|
|
@@ -111,5 +116,5 @@ const M = { class: "endpoints" }, U = ["onClick"], oe = /* @__PURE__ */ N({
|
|
|
111
116
|
}
|
|
112
117
|
});
|
|
113
118
|
export {
|
|
114
|
-
|
|
119
|
+
re as default
|
|
115
120
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Tag.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b0022b7f"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DarkModeToggle.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-bfb18750"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as n, openBlock as o, createElementBlock as t, createElementVNode as s, createVNode as
|
|
1
|
+
import { defineComponent as n, openBlock as o, createElementBlock as t, createElementVNode as s, createVNode as d, unref as c, pushScopeId as i, popScopeId as p } from "vue";
|
|
2
2
|
import { ScalarIcon as l } from "@scalar/components";
|
|
3
|
-
const k = (e) => (i("data-v-
|
|
3
|
+
const k = (e) => (i("data-v-bfb18750"), e = e(), p(), e), m = { class: "darklight-reference" }, g = { key: 0 }, _ = { key: 1 }, h = /* @__PURE__ */ k(() => /* @__PURE__ */ s("a", {
|
|
4
4
|
class: "darklight-reference-promo",
|
|
5
5
|
href: "https://www.scalar.com",
|
|
6
6
|
target: "_blank"
|
|
@@ -17,7 +17,7 @@ const k = (e) => (i("data-v-c2022750"), e = e(), p(), e), m = { class: "darkligh
|
|
|
17
17
|
type: "button",
|
|
18
18
|
onClick: a[0] || (a[0] = (f) => r.$emit("toggleDarkMode"))
|
|
19
19
|
}, [
|
|
20
|
-
c(
|
|
20
|
+
d(c(l), {
|
|
21
21
|
icon: "LightDarkModeToggle",
|
|
22
22
|
size: "md"
|
|
23
23
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ClassicLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ClassicLayout.vue"],"names":[],"mappings":"AAwDA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AA0B7E,iBAAS,cAAc,0DAiItB;AACD,QAAA,MAAM,eAAe;;;;;;UAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as f, useSlots as g, computed as k, openBlock as i, createBlock as p, createSlots as S, withCtx as t, createVNode as d, unref as l, createCommentVNode as D, renderList as C, renderSlot as y, normalizeProps as M, guardReactiveProps as w } from "vue";
|
|
2
|
+
import h from "../ApiReferenceLayout.vue.js";
|
|
3
3
|
import v from "../ClassicHeader.vue.js";
|
|
4
4
|
import B from "../DarkModeToggle/DarkModeIconToggle.vue.js";
|
|
5
5
|
import H from "../../features/Search/SearchButton.vue.js";
|
|
6
|
-
const
|
|
6
|
+
const N = /* @__PURE__ */ f({
|
|
7
7
|
__name: "ClassicLayout",
|
|
8
8
|
props: {
|
|
9
9
|
configuration: {},
|
|
@@ -12,24 +12,25 @@ const P = /* @__PURE__ */ u({
|
|
|
12
12
|
isDark: { type: Boolean }
|
|
13
13
|
},
|
|
14
14
|
emits: ["toggleDarkMode", "updateContent"],
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
17
|
-
return (e, o) => (
|
|
15
|
+
setup(c) {
|
|
16
|
+
const n = c, u = g(), s = k(() => ({ ...n.configuration, showSidebar: !1 }));
|
|
17
|
+
return (e, o) => (i(), p(h, {
|
|
18
18
|
configuration: s.value,
|
|
19
19
|
parsedSpec: e.parsedSpec,
|
|
20
20
|
rawSpec: e.rawSpec,
|
|
21
21
|
onUpdateContent: o[1] || (o[1] = (r) => e.$emit("updateContent", r))
|
|
22
|
-
},
|
|
22
|
+
}, S({
|
|
23
23
|
"content-start": t(({ spec: r }) => [
|
|
24
|
-
|
|
24
|
+
d(v, null, {
|
|
25
25
|
"dark-mode-toggle": t(() => [
|
|
26
|
-
n(p(B), {
|
|
26
|
+
n.configuration.hideDarkModeToggle ? D("", !0) : (i(), p(l(B), {
|
|
27
|
+
key: 0,
|
|
27
28
|
isDarkMode: e.isDark,
|
|
28
29
|
onToggleDarkMode: o[0] || (o[0] = (a) => e.$emit("toggleDarkMode"))
|
|
29
|
-
}, null, 8, ["isDarkMode"])
|
|
30
|
+
}, null, 8, ["isDarkMode"]))
|
|
30
31
|
]),
|
|
31
32
|
default: t(() => [
|
|
32
|
-
|
|
33
|
+
d(l(H), {
|
|
33
34
|
class: "t-doc__sidebar",
|
|
34
35
|
searchHotKey: s.value.searchHotKey,
|
|
35
36
|
spec: r
|
|
@@ -40,15 +41,15 @@ const P = /* @__PURE__ */ u({
|
|
|
40
41
|
]),
|
|
41
42
|
_: 2
|
|
42
43
|
}, [
|
|
43
|
-
|
|
44
|
+
C(u, (r, a) => ({
|
|
44
45
|
name: a,
|
|
45
|
-
fn: t((
|
|
46
|
-
|
|
46
|
+
fn: t((m) => [
|
|
47
|
+
y(e.$slots, a, M(w(m || {})))
|
|
47
48
|
])
|
|
48
49
|
}))
|
|
49
50
|
]), 1032, ["configuration", "parsedSpec", "rawSpec"]));
|
|
50
51
|
}
|
|
51
52
|
});
|
|
52
53
|
export {
|
|
53
|
-
|
|
54
|
+
N as default
|
|
54
55
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ModernLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ModernLayout.vue"],"names":[],"mappings":"AA2FA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAqC7E,iBAAS,cAAc,0DAoJtB;AACD,QAAA,MAAM,eAAe;;;;;;UAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -2,7 +2,7 @@ import o from "./ModernLayout.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9fe2e3b4"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as default
|
|
8
8
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as k, useSlots as M, watch as
|
|
1
|
+
import { defineComponent as k, useSlots as M, watch as l, openBlock as i, createBlock as p, normalizeClass as b, createSlots as h, withCtx as n, unref as d, isRef as y, createCommentVNode as u, createElementVNode as D, createVNode as v, renderList as w, renderSlot as C, normalizeProps as B, guardReactiveProps as N } from "vue";
|
|
2
2
|
import { useMediaQuery as $ } from "@vueuse/core";
|
|
3
3
|
import H from "../ApiReferenceLayout.vue.js";
|
|
4
4
|
import K from "../MobileHeader.vue.js";
|
|
5
5
|
import L from "../../features/Search/SearchButton.vue.js";
|
|
6
6
|
import R from "../DarkModeToggle/DarkModeToggle.vue.js";
|
|
7
|
-
import { useSidebar as
|
|
8
|
-
import { useNavState as
|
|
9
|
-
const
|
|
7
|
+
import { useSidebar as T } from "../../hooks/useSidebar.js";
|
|
8
|
+
import { useNavState as V } from "../../hooks/useNavState.js";
|
|
9
|
+
const z = { class: "scalar-api-references-standalone-search" }, F = /* @__PURE__ */ k({
|
|
10
10
|
__name: "ModernLayout",
|
|
11
11
|
props: {
|
|
12
12
|
configuration: {},
|
|
@@ -16,14 +16,14 @@ const P = { class: "scalar-api-references-standalone-search" }, F = /* @__PURE__
|
|
|
16
16
|
},
|
|
17
17
|
emits: ["toggleDarkMode", "updateContent"],
|
|
18
18
|
setup(c) {
|
|
19
|
-
const
|
|
20
|
-
|
|
19
|
+
const s = c, f = M(), m = $("(max-width: 1000px)"), { isSidebarOpen: a } = T();
|
|
20
|
+
l(m, (e, o) => {
|
|
21
21
|
e && !o && (a.value = !1);
|
|
22
22
|
});
|
|
23
|
-
const { hash:
|
|
24
|
-
return
|
|
23
|
+
const { hash: g } = V();
|
|
24
|
+
return l(g, (e, o) => {
|
|
25
25
|
e && e !== o && (a.value = !1);
|
|
26
|
-
}), (e, o) => (
|
|
26
|
+
}), (e, o) => (i(), p(H, {
|
|
27
27
|
class: b({
|
|
28
28
|
"scalar-api-references-standalone-mobile": e.configuration.showSidebar
|
|
29
29
|
}),
|
|
@@ -33,35 +33,36 @@ const P = { class: "scalar-api-references-standalone-search" }, F = /* @__PURE__
|
|
|
33
33
|
onUpdateContent: o[2] || (o[2] = (r) => e.$emit("updateContent", r))
|
|
34
34
|
}, h({
|
|
35
35
|
header: n(() => [
|
|
36
|
-
|
|
36
|
+
s.configuration.showSidebar ? (i(), p(K, {
|
|
37
37
|
key: 0,
|
|
38
|
-
open:
|
|
39
|
-
"onUpdate:open": o[0] || (o[0] = (r) =>
|
|
40
|
-
}, null, 8, ["open"])) :
|
|
38
|
+
open: d(a),
|
|
39
|
+
"onUpdate:open": o[0] || (o[0] = (r) => y(a) ? a.value = r : null)
|
|
40
|
+
}, null, 8, ["open"])) : u("", !0)
|
|
41
41
|
]),
|
|
42
42
|
"sidebar-start": n(({ spec: r }) => {
|
|
43
43
|
var t;
|
|
44
44
|
return [
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
searchHotKey: (t =
|
|
45
|
+
D("div", z, [
|
|
46
|
+
v(d(L), {
|
|
47
|
+
searchHotKey: (t = s.configuration) == null ? void 0 : t.searchHotKey,
|
|
48
48
|
spec: r
|
|
49
49
|
}, null, 8, ["searchHotKey", "spec"])
|
|
50
50
|
])
|
|
51
51
|
];
|
|
52
52
|
}),
|
|
53
53
|
"sidebar-end": n(() => [
|
|
54
|
-
u(
|
|
54
|
+
s.configuration.hideDarkModeToggle ? u("", !0) : (i(), p(d(R), {
|
|
55
|
+
key: 0,
|
|
55
56
|
isDarkMode: e.isDark,
|
|
56
57
|
onToggleDarkMode: o[1] || (o[1] = (r) => e.$emit("toggleDarkMode"))
|
|
57
|
-
}, null, 8, ["isDarkMode"])
|
|
58
|
+
}, null, 8, ["isDarkMode"]))
|
|
58
59
|
]),
|
|
59
60
|
_: 2
|
|
60
61
|
}, [
|
|
61
|
-
|
|
62
|
+
w(f, (r, t) => ({
|
|
62
63
|
name: t,
|
|
63
|
-
fn: n((
|
|
64
|
-
C(e.$slots, t, B(N(
|
|
64
|
+
fn: n((S) => [
|
|
65
|
+
C(e.$slots, t, B(N(S || {})), void 0, !0)
|
|
65
66
|
])
|
|
66
67
|
}))
|
|
67
68
|
]), 1032, ["class", "configuration", "parsedSpec", "rawSpec"]));
|