@scalar/api-reference 1.24.15 → 1.24.16
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 +18 -0
- package/README.md +84 -249
- package/dist/browser/standalone.js +16498 -13497
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiClientModal.vue.js +26 -0
- package/dist/components/ApiClientModal.vue2.js +4 -0
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +1 -1
- package/dist/components/ApiReferenceLayout.vue2.js +156 -138
- package/dist/components/Content/Operation/PathResponses/ExampleResponse.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/PathResponses/ExampleResponse.vue.js +2 -2
- package/dist/components/Content/Operation/PathResponses/ExampleResponse.vue2.js +55 -44
- package/dist/components/MobileHeader.vue.d.ts.map +1 -1
- package/dist/components/MobileHeader.vue.js +3 -3
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +1 -1
- package/dist/hooks/useReactiveSpec.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineComponent as l, ref as p, onMounted as c, openBlock as s, createElementBlock as i } from "vue";
|
|
2
|
+
import { modalStateBus as m, apiClientBus as u } from "./api-client-bus.js";
|
|
3
|
+
const _ = /* @__PURE__ */ l({
|
|
4
|
+
__name: "ApiClientModal",
|
|
5
|
+
props: {
|
|
6
|
+
proxyUrl: {},
|
|
7
|
+
spec: {}
|
|
8
|
+
},
|
|
9
|
+
setup(n) {
|
|
10
|
+
const t = n, e = p(null);
|
|
11
|
+
return c(async () => {
|
|
12
|
+
if (!e.value) return;
|
|
13
|
+
const { createScalarApiClient: o } = await import("@scalar/api-client-modal"), { open: r, modalState: a } = await o(e.value, {
|
|
14
|
+
spec: t.spec ?? {},
|
|
15
|
+
proxyUrl: t.proxyUrl
|
|
16
|
+
});
|
|
17
|
+
m.emit(a), u.on(r);
|
|
18
|
+
}), (o, r) => (s(), i("div", {
|
|
19
|
+
ref_key: "el",
|
|
20
|
+
ref: e
|
|
21
|
+
}, null, 512));
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
_ as default
|
|
26
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AA+jBA,OAAO,8BAA8B,CAAA;AAGrC,OAAO,EAAE,KAAK,OAAO,EAAkB,MAAM,gBAAgB,CAAA;AA0B7D,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAukBjB,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 "./ApiReferenceLayout.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
5
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d541778c"]]);
|
|
6
6
|
export {
|
|
7
7
|
a as default
|
|
8
8
|
};
|
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { provideUseId as
|
|
1
|
+
import { defineComponent as q, defineAsyncComponent as J, ref as b, onMounted as D, onBeforeMount as O, computed as A, watch as X, onServerPrefetch as Z, useSSRContext as _, getCurrentInstance as x, provide as B, openBlock as f, createElementBlock as h, Fragment as P, createVNode as v, unref as s, withCtx as p, createTextVNode as ee, toDisplayString as oe, createElementVNode as m, normalizeClass as te, normalizeStyle as re, renderSlot as d, normalizeProps as l, guardReactiveProps as c, createCommentVNode as y, withDirectives as ae, vShow as ne, createSlots as se, createBlock as U } from "vue";
|
|
2
|
+
import { provideUseId as ie } from "@headlessui/vue";
|
|
3
3
|
import "@scalar/components/style.css";
|
|
4
|
-
import { defaultStateFactory as
|
|
5
|
-
import { getThemeStyles as
|
|
6
|
-
import { ScalarToasts as
|
|
7
|
-
import { useMediaQuery as
|
|
8
|
-
import { NEW_API_MODAL as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
|
|
4
|
+
import { defaultStateFactory as de } from "@scalar/oas-utils/helpers";
|
|
5
|
+
import { getThemeStyles as le } from "@scalar/themes";
|
|
6
|
+
import { ScalarToasts as ce } from "@scalar/use-toasts";
|
|
7
|
+
import { useMediaQuery as ue, useResizeObserver as pe, useDebounceFn as fe } from "@vueuse/core";
|
|
8
|
+
import { NEW_API_MODAL as F } from "../features.js";
|
|
9
|
+
import me from "./ApiClientModal.vue.js";
|
|
10
|
+
import ge from "./GettingStarted.vue.js";
|
|
11
|
+
import { downloadSpecBus as ve, downloadSpecFile as Se } from "../helpers/specDownloads.js";
|
|
12
|
+
import { useDeprecationWarnings as he } from "../hooks/useDeprecationWarnings.js";
|
|
13
|
+
import be from "./Util/Style.vue.js";
|
|
14
|
+
import ye from "./Sidebar/Sidebar.vue.js";
|
|
15
|
+
import we from "./Content/Content.vue.js";
|
|
16
|
+
import { useSidebar as Re } from "../hooks/useSidebar.js";
|
|
17
|
+
import { GLOBAL_SECURITY_SYMBOL as $e, HIDE_DOWNLOAD_BUTTON_SYMBOL as Ce } from "../helpers/provideSymbols.js";
|
|
18
|
+
import { useNavState as Te } from "../hooks/useNavState.js";
|
|
19
|
+
import { scrollToId as Le } from "../helpers/scrollToId.js";
|
|
20
|
+
import { sleep as ke } from "../helpers/sleep.js";
|
|
21
|
+
const Ie = { class: "references-header" }, Ee = {
|
|
21
22
|
key: 0,
|
|
22
23
|
class: "references-navigation t-doc__sidebar"
|
|
23
|
-
},
|
|
24
|
+
}, De = { class: "references-navigation-list" }, Oe = { class: "references-editor" }, Ae = { class: "references-editor-textarea" }, Be = { class: "references-rendered" }, Pe = {
|
|
24
25
|
key: 0,
|
|
25
26
|
class: "references-footer"
|
|
26
|
-
},
|
|
27
|
+
}, oo = /* @__PURE__ */ q({
|
|
27
28
|
inheritAttrs: !1,
|
|
28
29
|
__name: "ApiReferenceLayout",
|
|
29
30
|
props: {
|
|
@@ -33,7 +34,7 @@ const Te = { class: "references-header" }, Ie = {
|
|
|
33
34
|
},
|
|
34
35
|
emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
|
|
35
36
|
setup(M) {
|
|
36
|
-
const
|
|
37
|
+
const n = M, N = J(() => F ? (
|
|
37
38
|
// Empty component
|
|
38
39
|
new Promise((e) => {
|
|
39
40
|
e({ render: () => null });
|
|
@@ -41,161 +42,173 @@ const Te = { class: "references-header" }, Ie = {
|
|
|
41
42
|
) : (
|
|
42
43
|
// Load component
|
|
43
44
|
import("./ApiClientModalOld.vue.js")
|
|
44
|
-
)),
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
)), z = ue("(min-width: 1150px)"), V = b("100dvh"), g = b(null);
|
|
46
|
+
pe(g, (e) => {
|
|
47
|
+
V.value = e[0].contentRect.height + "px";
|
|
48
|
+
});
|
|
49
|
+
const w = b(0);
|
|
50
|
+
D(() => {
|
|
51
|
+
var r, t, a;
|
|
52
|
+
const e = (t = (r = g.value) == null ? void 0 : r.parentElement) == null ? void 0 : t.getBoundingClientRect(), o = (a = g.value) == null ? void 0 : a.getBoundingClientRect();
|
|
53
|
+
if (e && o) {
|
|
54
|
+
const u = o.top - e.top;
|
|
55
|
+
w.value = u < 2 ? 0 : u;
|
|
56
|
+
}
|
|
47
57
|
});
|
|
48
58
|
const {
|
|
49
|
-
breadcrumb:
|
|
50
|
-
collapsedSidebarItems:
|
|
51
|
-
isSidebarOpen:
|
|
52
|
-
setCollapsedSidebarItem:
|
|
53
|
-
hideModels:
|
|
54
|
-
setParsedSpec:
|
|
55
|
-
} =
|
|
56
|
-
getPathRoutingId:
|
|
57
|
-
getSectionId:
|
|
58
|
-
getTagId:
|
|
59
|
-
hash:
|
|
60
|
-
isIntersectionEnabled:
|
|
61
|
-
pathRouting:
|
|
62
|
-
updateHash:
|
|
63
|
-
} =
|
|
64
|
-
|
|
65
|
-
const
|
|
59
|
+
breadcrumb: Y,
|
|
60
|
+
collapsedSidebarItems: S,
|
|
61
|
+
isSidebarOpen: H,
|
|
62
|
+
setCollapsedSidebarItem: R,
|
|
63
|
+
hideModels: W,
|
|
64
|
+
setParsedSpec: G
|
|
65
|
+
} = Re(), {
|
|
66
|
+
getPathRoutingId: $,
|
|
67
|
+
getSectionId: j,
|
|
68
|
+
getTagId: K,
|
|
69
|
+
hash: C,
|
|
70
|
+
isIntersectionEnabled: T,
|
|
71
|
+
pathRouting: L,
|
|
72
|
+
updateHash: k
|
|
73
|
+
} = Te();
|
|
74
|
+
L.value = n.configuration.pathRouting, O(() => k());
|
|
75
|
+
const I = async (e) => {
|
|
66
76
|
var o;
|
|
67
|
-
|
|
77
|
+
T.value = !1, k(), e ? Le(e) : (o = g.value) == null || o.scrollTo(0, 0), await ke(100), T.value = !0;
|
|
68
78
|
};
|
|
69
79
|
O(() => {
|
|
70
80
|
const e = new MutationObserver((o) => {
|
|
71
|
-
const
|
|
72
|
-
(
|
|
73
|
-
(
|
|
81
|
+
const r = o.find(
|
|
82
|
+
(t) => Array.from(t.addedNodes).find(
|
|
83
|
+
(a) => a.id === "headlessui-portal-root"
|
|
74
84
|
)
|
|
75
85
|
);
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
86
|
+
if (r) {
|
|
87
|
+
const t = r.addedNodes[0];
|
|
88
|
+
t.classList.add("scalar-app"), t.classList.add("scalar-client"), e.disconnect();
|
|
89
|
+
}
|
|
79
90
|
});
|
|
80
91
|
e.observe(document.body, { childList: !0 });
|
|
81
|
-
}),
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}), window.onhashchange = () =>
|
|
92
|
+
}), D(() => {
|
|
93
|
+
ve.on(({ specTitle: e }) => {
|
|
94
|
+
Se(n.rawSpec, e);
|
|
95
|
+
}), window.onhashchange = () => I(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => L.value && I($(window.location.pathname));
|
|
85
96
|
});
|
|
86
|
-
const
|
|
87
|
-
() =>
|
|
88
|
-
),
|
|
97
|
+
const Q = A(
|
|
98
|
+
() => z.value || !n.configuration.isEditable
|
|
99
|
+
), E = fe((e) => {
|
|
89
100
|
if ((e.target.scrollTop ?? 0) < 50) {
|
|
90
|
-
const
|
|
91
|
-
window.history.replaceState({}, "",
|
|
101
|
+
const r = n.configuration.pathRouting ? n.configuration.pathRouting.basePath : window.location.pathname;
|
|
102
|
+
window.history.replaceState({}, "", r + window.location.search), C.value = "";
|
|
92
103
|
}
|
|
93
|
-
}),
|
|
94
|
-
breadcrumb:
|
|
95
|
-
spec:
|
|
104
|
+
}), i = A(() => ({
|
|
105
|
+
breadcrumb: Y.value,
|
|
106
|
+
spec: n.parsedSpec
|
|
96
107
|
}));
|
|
97
|
-
return
|
|
98
|
-
var o,
|
|
99
|
-
const e =
|
|
100
|
-
if (e && ((o = e.payload).data || (o.data =
|
|
101
|
-
const
|
|
102
|
-
|
|
103
|
-
for (const
|
|
104
|
-
Object.hasOwn(
|
|
105
|
-
if (
|
|
106
|
-
|
|
108
|
+
return X(() => n.parsedSpec, G, { deep: !0 }), Z(() => {
|
|
109
|
+
var o, r;
|
|
110
|
+
const e = _();
|
|
111
|
+
if (e && ((o = e.payload).data || (o.data = de()), n.configuration.pathRouting)) {
|
|
112
|
+
const t = $(e.url);
|
|
113
|
+
C.value = t, e.payload.data.hash = t;
|
|
114
|
+
for (const a in S)
|
|
115
|
+
Object.hasOwn(S, a) && delete S[a];
|
|
116
|
+
if (t)
|
|
117
|
+
R(j(t), !0);
|
|
107
118
|
else {
|
|
108
|
-
const
|
|
109
|
-
|
|
119
|
+
const a = (r = n.parsedSpec.tags) == null ? void 0 : r[0];
|
|
120
|
+
a && R(K(a), !0);
|
|
110
121
|
}
|
|
111
|
-
e.payload.data["useSidebarContent-collapsedSidebarItems"] =
|
|
122
|
+
e.payload.data["useSidebarContent-collapsedSidebarItems"] = S;
|
|
112
123
|
}
|
|
113
|
-
}),
|
|
114
|
-
var
|
|
115
|
-
const e =
|
|
124
|
+
}), ie(() => {
|
|
125
|
+
var t;
|
|
126
|
+
const e = x(), o = "scalar-instance-id";
|
|
116
127
|
if (!e) return o;
|
|
117
|
-
let
|
|
118
|
-
return typeof window > "u" ? (e.attrs || (e.attrs = {}), e.attrs[o] =
|
|
119
|
-
}),
|
|
120
|
-
|
|
121
|
-
() =>
|
|
122
|
-
),
|
|
123
|
-
var
|
|
124
|
-
return
|
|
125
|
-
|
|
126
|
-
default:
|
|
127
|
-
|
|
128
|
+
let r = e.uid;
|
|
129
|
+
return typeof window > "u" ? (e.attrs || (e.attrs = {}), e.attrs[o] = r) : (t = e.vnode.el) != null && t.getAttribute && (r = e.vnode.el.getAttribute(o)), `${o}-${r}`;
|
|
130
|
+
}), B($e, () => n.parsedSpec.security), B(
|
|
131
|
+
Ce,
|
|
132
|
+
() => n.configuration.hideDownloadButton
|
|
133
|
+
), W.value = n.configuration.hideModels ?? !1, he(n.configuration), (e, o) => {
|
|
134
|
+
var r, t;
|
|
135
|
+
return f(), h(P, null, [
|
|
136
|
+
v(s(be), null, {
|
|
137
|
+
default: p(() => [
|
|
138
|
+
ee(oe(s(le)(e.configuration.theme, {
|
|
128
139
|
fonts: e.configuration.withDefaultFonts
|
|
129
140
|
})), 1)
|
|
130
141
|
]),
|
|
131
142
|
_: 1
|
|
132
143
|
}),
|
|
133
|
-
|
|
144
|
+
m("div", {
|
|
134
145
|
ref_key: "documentEl",
|
|
135
|
-
ref:
|
|
136
|
-
class:
|
|
146
|
+
ref: g,
|
|
147
|
+
class: te(["scalar-app scalar-api-reference references-layout", [
|
|
137
148
|
{
|
|
138
149
|
"references-editable": e.configuration.isEditable,
|
|
139
150
|
"references-sidebar": e.configuration.showSidebar,
|
|
140
|
-
"references-sidebar-mobile-open":
|
|
151
|
+
"references-sidebar-mobile-open": s(H),
|
|
141
152
|
"references-classic": e.configuration.layout === "classic"
|
|
142
153
|
},
|
|
143
154
|
e.$attrs.class
|
|
144
155
|
]]),
|
|
145
|
-
style:
|
|
156
|
+
style: re({
|
|
157
|
+
"--scalar-y-offset": `var(--scalar-custom-header-height, ${w.value}px)`
|
|
158
|
+
}),
|
|
146
159
|
onScrollPassive: o[4] || (o[4] = //@ts-ignore
|
|
147
|
-
(...
|
|
160
|
+
(...a) => s(E) && s(E)(...a))
|
|
148
161
|
}, [
|
|
149
|
-
|
|
150
|
-
d(e.$slots, "header", l(
|
|
162
|
+
m("div", Ie, [
|
|
163
|
+
d(e.$slots, "header", l(c(i.value)), void 0, !0)
|
|
151
164
|
]),
|
|
152
|
-
e.configuration.showSidebar ? (
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
"sidebar-start":
|
|
156
|
-
d(e.$slots, "sidebar-start", l(
|
|
165
|
+
e.configuration.showSidebar ? (f(), h("aside", Ee, [
|
|
166
|
+
m("div", De, [
|
|
167
|
+
v(s(ye), { parsedSpec: e.parsedSpec }, {
|
|
168
|
+
"sidebar-start": p(() => [
|
|
169
|
+
d(e.$slots, "sidebar-start", l(c(i.value)), void 0, !0)
|
|
157
170
|
]),
|
|
158
|
-
"sidebar-end":
|
|
159
|
-
d(e.$slots, "sidebar-end", l(
|
|
171
|
+
"sidebar-end": p(() => [
|
|
172
|
+
d(e.$slots, "sidebar-end", l(c(i.value)), void 0, !0)
|
|
160
173
|
]),
|
|
161
174
|
_: 3
|
|
162
175
|
}, 8, ["parsedSpec"])
|
|
163
176
|
])
|
|
164
|
-
])) :
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
d(e.$slots, "editor", l(
|
|
177
|
+
])) : y("", !0),
|
|
178
|
+
ae(m("div", Oe, [
|
|
179
|
+
m("div", Ae, [
|
|
180
|
+
d(e.$slots, "editor", l(c(i.value)), void 0, !0)
|
|
168
181
|
])
|
|
169
182
|
], 512), [
|
|
170
|
-
[
|
|
183
|
+
[ne, e.configuration.isEditable]
|
|
171
184
|
]),
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
185
|
+
Q.value ? (f(), h(P, { key: 1 }, [
|
|
186
|
+
m("div", Be, [
|
|
187
|
+
v(s(we), {
|
|
175
188
|
baseServerURL: e.configuration.baseServerURL,
|
|
176
189
|
layout: e.configuration.layout === "classic" ? "accordion" : "default",
|
|
177
190
|
parsedSpec: e.parsedSpec,
|
|
178
191
|
proxy: e.configuration.proxy
|
|
179
|
-
},
|
|
180
|
-
start:
|
|
181
|
-
d(e.$slots, "content-start", l(
|
|
192
|
+
}, se({
|
|
193
|
+
start: p(() => [
|
|
194
|
+
d(e.$slots, "content-start", l(c(i.value)), void 0, !0)
|
|
182
195
|
]),
|
|
183
|
-
end:
|
|
184
|
-
d(e.$slots, "content-end", l(
|
|
196
|
+
end: p(() => [
|
|
197
|
+
d(e.$slots, "content-end", l(c(i.value)), void 0, !0)
|
|
185
198
|
]),
|
|
186
199
|
_: 2
|
|
187
200
|
}, [
|
|
188
|
-
(
|
|
201
|
+
(r = e.configuration) != null && r.isEditable ? {
|
|
189
202
|
name: "empty-state",
|
|
190
|
-
fn:
|
|
191
|
-
var
|
|
203
|
+
fn: p(() => {
|
|
204
|
+
var a;
|
|
192
205
|
return [
|
|
193
|
-
|
|
194
|
-
theme: ((
|
|
195
|
-
onChangeTheme: o[0] || (o[0] = (
|
|
196
|
-
onLinkSwaggerFile: o[1] || (o[1] = (
|
|
197
|
-
onLoadSwaggerFile: o[2] || (o[2] = (
|
|
198
|
-
onUpdateContent: o[3] || (o[3] = (
|
|
206
|
+
v(ge, {
|
|
207
|
+
theme: ((a = e.configuration) == null ? void 0 : a.theme) || "default",
|
|
208
|
+
onChangeTheme: o[0] || (o[0] = (u) => e.$emit("changeTheme", u)),
|
|
209
|
+
onLinkSwaggerFile: o[1] || (o[1] = (u) => e.$emit("linkSwaggerFile")),
|
|
210
|
+
onLoadSwaggerFile: o[2] || (o[2] = (u) => e.$emit("loadSwaggerFile")),
|
|
211
|
+
onUpdateContent: o[3] || (o[3] = (u) => e.$emit("updateContent", u))
|
|
199
212
|
}, null, 8, ["theme"])
|
|
200
213
|
];
|
|
201
214
|
}),
|
|
@@ -203,28 +216,33 @@ const Te = { class: "references-header" }, Ie = {
|
|
|
203
216
|
} : void 0
|
|
204
217
|
]), 1032, ["baseServerURL", "layout", "parsedSpec", "proxy"])
|
|
205
218
|
]),
|
|
206
|
-
e.$slots.footer ? (
|
|
207
|
-
d(e.$slots, "footer", l(
|
|
208
|
-
])) :
|
|
209
|
-
], 64)) :
|
|
210
|
-
|
|
219
|
+
e.$slots.footer ? (f(), h("div", Pe, [
|
|
220
|
+
d(e.$slots, "footer", l(c(i.value)), void 0, !0)
|
|
221
|
+
])) : y("", !0)
|
|
222
|
+
], 64)) : y("", !0),
|
|
223
|
+
s(F) ? (f(), U(me, {
|
|
224
|
+
key: 2,
|
|
225
|
+
proxyUrl: e.configuration.proxy,
|
|
226
|
+
spec: e.configuration.spec
|
|
227
|
+
}, null, 8, ["proxyUrl", "spec"])) : (f(), U(s(N), {
|
|
228
|
+
key: 3,
|
|
211
229
|
parsedSpec: e.parsedSpec,
|
|
212
|
-
proxyUrl: (
|
|
230
|
+
proxyUrl: (t = e.configuration) == null ? void 0 : t.proxy
|
|
213
231
|
}, {
|
|
214
|
-
"sidebar-start":
|
|
215
|
-
d(e.$slots, "sidebar-start", l(
|
|
232
|
+
"sidebar-start": p(() => [
|
|
233
|
+
d(e.$slots, "sidebar-start", l(c(i.value)), void 0, !0)
|
|
216
234
|
]),
|
|
217
|
-
"sidebar-end":
|
|
218
|
-
d(e.$slots, "sidebar-end", l(
|
|
235
|
+
"sidebar-end": p(() => [
|
|
236
|
+
d(e.$slots, "sidebar-end", l(c(i.value)), void 0, !0)
|
|
219
237
|
]),
|
|
220
238
|
_: 3
|
|
221
|
-
}, 8, ["parsedSpec", "proxyUrl"])
|
|
239
|
+
}, 8, ["parsedSpec", "proxyUrl"]))
|
|
222
240
|
], 38),
|
|
223
|
-
|
|
241
|
+
v(s(ce))
|
|
224
242
|
], 64);
|
|
225
243
|
};
|
|
226
244
|
}
|
|
227
245
|
});
|
|
228
246
|
export {
|
|
229
|
-
|
|
247
|
+
oo as default
|
|
230
248
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleResponse.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Operation/PathResponses/ExampleResponse.vue"],"names":[],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ExampleResponse.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Operation/PathResponses/ExampleResponse.vue"],"names":[],"mappings":";;;;;;;;;;;AAkeA,wBAMG;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 "./ExampleResponse.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import p from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const r = /* @__PURE__ */ p(o, [["__scopeId", "data-v-71404817"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|
|
@@ -1,53 +1,43 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as L, openBlock as o, createElementBlock as t, createVNode as N, unref as s, Fragment as p, renderList as C, createElementVNode as V, toDisplayString as P, createBlock as m, createCommentVNode as F } from "vue";
|
|
2
2
|
import { ScalarCodeBlock as r } from "@scalar/components";
|
|
3
|
-
import { prettyPrintJson as
|
|
4
|
-
import { getExampleFromSchema as
|
|
5
|
-
const
|
|
3
|
+
import { prettyPrintJson as b } from "@scalar/oas-utils/helpers";
|
|
4
|
+
import { getExampleFromSchema as a } from "@scalar/oas-utils/spec-getters";
|
|
5
|
+
const R = { key: 0 }, q = { key: 1 }, w = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "rule"
|
|
8
|
-
},
|
|
8
|
+
}, z = { class: "rule-title" }, G = { class: "rule-items" }, H = {
|
|
9
9
|
key: 2,
|
|
10
10
|
class: "empty-state"
|
|
11
|
-
},
|
|
11
|
+
}, U = /* @__PURE__ */ L({
|
|
12
12
|
__name: "ExampleResponse",
|
|
13
13
|
props: {
|
|
14
14
|
response: {}
|
|
15
15
|
},
|
|
16
|
-
setup(
|
|
17
|
-
const
|
|
16
|
+
setup(I) {
|
|
17
|
+
const A = ["oneOf", "anyOf", "not"], c = (e) => e.reduce((i, l) => ({
|
|
18
18
|
...i,
|
|
19
|
-
...
|
|
19
|
+
...l
|
|
20
20
|
}), {});
|
|
21
21
|
return (e, i) => {
|
|
22
|
-
var
|
|
23
|
-
return (
|
|
24
|
-
|
|
25
|
-
content:
|
|
22
|
+
var l, d, h, y, u, g, f, k, S;
|
|
23
|
+
return (l = e.response) != null && l.example ? (o(), t("div", R, [
|
|
24
|
+
N(s(r), {
|
|
25
|
+
content: s(b)((d = e.response) == null ? void 0 : d.example),
|
|
26
26
|
lang: "json"
|
|
27
27
|
}, null, 8, ["content"])
|
|
28
|
-
])) : (h = e.response) != null && h.schema ? (
|
|
29
|
-
(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
lang: "json"
|
|
38
|
-
}, null, 8, ["content"])) : p("", !0),
|
|
39
|
-
(s(), t(c, null, E(V, (n) => {
|
|
40
|
-
var f, S, _, j, v, B;
|
|
41
|
-
return s(), t(c, { key: n }, [
|
|
42
|
-
(f = e.response) != null && f.schema[n] && (((S = e.response) == null ? void 0 : S.schema[n].length) > 1 || n === "not") ? (s(), t("div", R, [
|
|
43
|
-
N("div", q, J(n), 1),
|
|
44
|
-
N("ol", w, [
|
|
45
|
-
(s(!0), t(c, null, E((_ = e.response) == null ? void 0 : _.schema[n], (b, A) => (s(), t("li", {
|
|
46
|
-
key: A,
|
|
28
|
+
])) : (h = e.response) != null && h.schema ? (o(), t("div", q, [
|
|
29
|
+
(o(), t(p, null, C(A, (n) => {
|
|
30
|
+
var j, O, _, v, B, E;
|
|
31
|
+
return o(), t(p, { key: n }, [
|
|
32
|
+
(j = e.response) != null && j.schema[n] && (((O = e.response) == null ? void 0 : O.schema[n].length) > 1 || n === "not") ? (o(), t("div", w, [
|
|
33
|
+
V("div", z, P(n), 1),
|
|
34
|
+
V("ol", G, [
|
|
35
|
+
(o(!0), t(p, null, C((_ = e.response) == null ? void 0 : _.schema[n], (D, J) => (o(), t("li", {
|
|
36
|
+
key: J,
|
|
47
37
|
class: "rule-item"
|
|
48
38
|
}, [
|
|
49
|
-
|
|
50
|
-
content:
|
|
39
|
+
N(s(r), {
|
|
40
|
+
content: s(a)(D, {
|
|
51
41
|
emptyString: "…",
|
|
52
42
|
mode: "read"
|
|
53
43
|
}),
|
|
@@ -55,32 +45,53 @@ const L = { key: 0 }, P = { key: 1 }, R = {
|
|
|
55
45
|
}, null, 8, ["content"])
|
|
56
46
|
]))), 128))
|
|
57
47
|
])
|
|
58
|
-
])) : (
|
|
48
|
+
])) : (v = e.response) != null && v.schema[n] && ((B = e.response) == null ? void 0 : B.schema[n].length) === 1 ? (o(), m(s(r), {
|
|
59
49
|
key: 1,
|
|
60
|
-
content:
|
|
50
|
+
content: s(a)((E = e.response) == null ? void 0 : E.schema[n][0], {
|
|
61
51
|
emptyString: "…",
|
|
62
52
|
mode: "read"
|
|
63
53
|
}),
|
|
64
54
|
lang: "json"
|
|
65
|
-
}, null, 8, ["content"])) :
|
|
55
|
+
}, null, 8, ["content"])) : F("", !0)
|
|
66
56
|
], 64);
|
|
67
57
|
}), 64)),
|
|
68
|
-
(
|
|
58
|
+
(y = e.response) != null && y.schema.allOf ? (o(), m(s(r), {
|
|
59
|
+
key: 0,
|
|
60
|
+
content: c(
|
|
61
|
+
(u = e.response) == null ? void 0 : u.schema.allOf.map(
|
|
62
|
+
(n) => s(a)(n, {
|
|
63
|
+
emptyString: "…",
|
|
64
|
+
mode: "read"
|
|
65
|
+
})
|
|
66
|
+
)
|
|
67
|
+
),
|
|
68
|
+
lang: "json"
|
|
69
|
+
}, null, 8, ["content"])) : F("", !0),
|
|
70
|
+
(f = (g = e.response) == null ? void 0 : g.schema.items) != null && f.allOf ? (o(), m(s(r), {
|
|
69
71
|
key: 1,
|
|
70
|
-
content:
|
|
71
|
-
(k = e.response) == null ? void 0 : k.schema.allOf.map(
|
|
72
|
-
(n) =>
|
|
72
|
+
content: c(
|
|
73
|
+
(k = e.response) == null ? void 0 : k.schema.items.allOf.map(
|
|
74
|
+
(n) => s(a)(n, {
|
|
73
75
|
emptyString: "…",
|
|
74
76
|
mode: "read"
|
|
75
77
|
})
|
|
76
78
|
)
|
|
77
79
|
),
|
|
78
80
|
lang: "json"
|
|
79
|
-
}, null, 8, ["content"])) :
|
|
80
|
-
|
|
81
|
+
}, null, 8, ["content"])) : (o(), m(s(r), {
|
|
82
|
+
key: 2,
|
|
83
|
+
content: s(b)(
|
|
84
|
+
s(a)((S = e.response) == null ? void 0 : S.schema, {
|
|
85
|
+
emptyString: "…",
|
|
86
|
+
mode: "read"
|
|
87
|
+
})
|
|
88
|
+
),
|
|
89
|
+
lang: "json"
|
|
90
|
+
}, null, 8, ["content"]))
|
|
91
|
+
])) : (o(), t("div", H, " No Body "));
|
|
81
92
|
};
|
|
82
93
|
}
|
|
83
94
|
});
|
|
84
95
|
export {
|
|
85
|
-
|
|
96
|
+
U as default
|
|
86
97
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileHeader.vue.d.ts","sourceRoot":"","sources":["../../src/components/MobileHeader.vue"],"names":[],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"MobileHeader.vue.d.ts","sourceRoot":"","sources":["../../src/components/MobileHeader.vue"],"names":[],"mappings":";;;;;;;;;;;AAgLA,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,7 +1,7 @@
|
|
|
1
1
|
import o from "./MobileHeader.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import r from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-b5fb4b8b"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AA6NA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;;AAoV7C,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"}
|