@scalar/api-reference 1.25.70 → 1.25.72
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 +42 -0
- package/dist/browser/standalone.js +10875 -10813
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +56 -57
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +3 -3
- package/dist/components/ApiReferenceLayout.vue2.js +160 -143
- package/dist/components/Content/Authentication/Authentication.vue.d.ts +1 -1
- package/dist/components/Content/Authentication/Authentication.vue.d.ts.map +1 -1
- package/dist/components/Content/Authentication/Authentication.vue.js +2 -2
- package/dist/components/Content/Authentication/Authentication.vue2.js +20 -20
- package/dist/components/Content/Content.vue.d.ts +1 -1
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +1 -1
- package/dist/components/Content/Content.vue2.js +58 -52
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.js +2 -2
- package/dist/components/Content/Models/Models.vue2.js +42 -36
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.js +34 -28
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts +22 -0
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
- package/dist/embeds/OpenApiDocument/types.d.ts +1 -1
- package/dist/embeds/OpenApiDocument/types.d.ts.map +1 -1
- package/dist/features/ApiClientModal/useApiClient.d.ts +4 -4
- 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 +2 -2
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +124 -120
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +73 -63
- package/dist/helpers/getExampleCode.d.ts +2 -2
- package/dist/helpers/getExampleCode.d.ts.map +1 -1
- package/dist/helpers/getExampleCode.js +12 -11
- package/dist/helpers/parse.d.ts +2 -2
- package/dist/helpers/parse.d.ts.map +1 -1
- package/dist/helpers/parse.js +3 -3
- package/dist/hooks/useDeprecationWarnings.d.ts.map +1 -1
- package/dist/hooks/useDeprecationWarnings.js +12 -15
- package/dist/hooks/useReactiveSpec.d.ts +24 -2
- package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
- package/dist/hooks/useReactiveSpec.js +4 -4
- package/dist/index.js +1 -1
- package/dist/legacy/components/SecurityScheme.vue.d.ts +1 -1
- package/dist/legacy/components/SecurityScheme.vue.d.ts.map +1 -1
- package/dist/legacy/components/SecurityScheme.vue.js +2 -2
- package/dist/legacy/components/SecurityScheme.vue2.js +13 -13
- package/dist/legacy/helpers/getUrlFromServerState.d.ts +2 -1
- package/dist/legacy/helpers/getUrlFromServerState.d.ts.map +1 -1
- package/dist/legacy/helpers/getUrlFromServerState.js +14 -14
- package/dist/legacy/stores/useOpenApiStore.d.ts +22 -0
- package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +11 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"AA8HA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAwF9C,iBAAS,cAAc;WAyFT,OAAO,IAA6B;;wBATrB,GAAG;wBACH,GAAG;;;;EAa/B;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,59 +1,58 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { migrateThemeVariables as
|
|
3
|
-
import { useColorMode as
|
|
4
|
-
import { useSeoMeta as
|
|
5
|
-
import { useFavicon as
|
|
6
|
-
import { useReactiveSpec as
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
const ee = /* @__PURE__ */ b({
|
|
1
|
+
import { defineComponent as T, watch as s, computed as u, toRef as m, openBlock as p, createElementBlock as U, Fragment as $, createBlock as b, resolveDynamicComponent as A, withCtx as c, createTextVNode as B, toDisplayString as N, createCommentVNode as R, createVNode as V, unref as a, renderSlot as g } from "vue";
|
|
2
|
+
import { migrateThemeVariables as _ } from "@scalar/themes";
|
|
3
|
+
import { useColorMode as E } from "@scalar/use-hooks/useColorMode";
|
|
4
|
+
import { useSeoMeta as F } from "@unhead/vue";
|
|
5
|
+
import { useFavicon as L } from "@vueuse/core";
|
|
6
|
+
import { useReactiveSpec as j } from "../hooks/useReactiveSpec.js";
|
|
7
|
+
import q from "./Layouts/Layouts.vue.js";
|
|
8
|
+
import { useAuthenticationStore as z } from "../legacy/stores/useAuthenticationStore.js";
|
|
9
|
+
const W = /* @__PURE__ */ T({
|
|
11
10
|
__name: "ApiReference",
|
|
12
11
|
props: {
|
|
13
12
|
configuration: {}
|
|
14
13
|
},
|
|
15
14
|
emits: ["updateContent"],
|
|
16
15
|
setup(v) {
|
|
17
|
-
var l,
|
|
18
|
-
const n = v, { setColorMode:
|
|
16
|
+
var l, d, f;
|
|
17
|
+
const n = v, { setColorMode: C, toggleColorMode: k, darkLightMode: S } = E({
|
|
19
18
|
initialColorMode: (l = n.configuration) != null && l.darkMode ? "dark" : void 0,
|
|
20
|
-
overrideColorMode: (
|
|
19
|
+
overrideColorMode: (d = n.configuration) == null ? void 0 : d.forceDarkModeState
|
|
21
20
|
});
|
|
22
|
-
|
|
21
|
+
s(
|
|
23
22
|
() => {
|
|
24
|
-
var
|
|
25
|
-
return (
|
|
23
|
+
var o;
|
|
24
|
+
return (o = n.configuration) == null ? void 0 : o.darkMode;
|
|
26
25
|
},
|
|
27
|
-
(
|
|
26
|
+
(o) => C(o ? "dark" : "light")
|
|
28
27
|
);
|
|
29
|
-
const
|
|
30
|
-
var
|
|
31
|
-
if ((
|
|
32
|
-
return
|
|
28
|
+
const i = u(() => {
|
|
29
|
+
var o, t;
|
|
30
|
+
if ((o = n.configuration) != null && o.customCss)
|
|
31
|
+
return _((t = n.configuration) == null ? void 0 : t.customCss);
|
|
33
32
|
});
|
|
34
|
-
|
|
35
|
-
const
|
|
36
|
-
var
|
|
33
|
+
s(i, () => console.log(i.value));
|
|
34
|
+
const e = u(() => {
|
|
35
|
+
var o;
|
|
37
36
|
return {
|
|
38
37
|
spec: {
|
|
39
38
|
content: void 0,
|
|
40
39
|
url: void 0,
|
|
41
|
-
...(
|
|
40
|
+
...(o = n.configuration) == null ? void 0 : o.spec
|
|
42
41
|
},
|
|
43
|
-
|
|
42
|
+
proxyUrl: void 0,
|
|
44
43
|
theme: "default",
|
|
45
44
|
showSidebar: !0,
|
|
46
45
|
isEditable: !1,
|
|
47
46
|
...n.configuration,
|
|
48
|
-
customCss:
|
|
47
|
+
customCss: i.value
|
|
49
48
|
};
|
|
50
49
|
});
|
|
51
|
-
(
|
|
52
|
-
function
|
|
53
|
-
|
|
50
|
+
(f = e.value) != null && f.metaData && F(e.value.metaData);
|
|
51
|
+
function M(o, t) {
|
|
52
|
+
s(
|
|
54
53
|
() => {
|
|
55
54
|
var r;
|
|
56
|
-
return (r =
|
|
55
|
+
return (r = e.value) == null ? void 0 : r[o];
|
|
57
56
|
},
|
|
58
57
|
(r) => {
|
|
59
58
|
typeof r < "u" && t(r);
|
|
@@ -61,36 +60,36 @@ const ee = /* @__PURE__ */ b({
|
|
|
61
60
|
{ immediate: !0 }
|
|
62
61
|
);
|
|
63
62
|
}
|
|
64
|
-
const { setAuthentication:
|
|
65
|
-
|
|
66
|
-
const {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
specConfig: m(() =>
|
|
71
|
-
}),
|
|
72
|
-
return
|
|
63
|
+
const { setAuthentication: y } = z();
|
|
64
|
+
M("authentication", y);
|
|
65
|
+
const { parsedSpec: D, rawSpec: h } = j({
|
|
66
|
+
proxyUrl: m(
|
|
67
|
+
() => e.value.proxyUrl || e.value.proxy || ""
|
|
68
|
+
),
|
|
69
|
+
specConfig: m(() => e.value.spec || {})
|
|
70
|
+
}), w = u(() => e.value.favicon);
|
|
71
|
+
return L(w), (o, t) => {
|
|
73
72
|
var r;
|
|
74
|
-
return
|
|
75
|
-
(r =
|
|
76
|
-
default:
|
|
77
|
-
N(
|
|
73
|
+
return p(), U($, null, [
|
|
74
|
+
(r = e.value) != null && r.customCss ? (p(), b(A("style"), { key: 0 }, {
|
|
75
|
+
default: c(() => [
|
|
76
|
+
B(N(e.value.customCss), 1)
|
|
78
77
|
]),
|
|
79
78
|
_: 1
|
|
80
|
-
})) :
|
|
81
|
-
|
|
82
|
-
configuration:
|
|
83
|
-
isDark:
|
|
84
|
-
parsedSpec:
|
|
85
|
-
rawSpec:
|
|
86
|
-
onToggleDarkMode: t[0] || (t[0] = () =>
|
|
87
|
-
onUpdateContent: t[1] || (t[1] = (
|
|
79
|
+
})) : R("", !0),
|
|
80
|
+
V(a(q), {
|
|
81
|
+
configuration: e.value,
|
|
82
|
+
isDark: a(S) === "dark",
|
|
83
|
+
parsedSpec: a(D),
|
|
84
|
+
rawSpec: a(h),
|
|
85
|
+
onToggleDarkMode: t[0] || (t[0] = () => a(k)()),
|
|
86
|
+
onUpdateContent: t[1] || (t[1] = (x) => o.$emit("updateContent", x))
|
|
88
87
|
}, {
|
|
89
|
-
footer:
|
|
90
|
-
g(
|
|
88
|
+
footer: c(() => [
|
|
89
|
+
g(o.$slots, "footer")
|
|
91
90
|
]),
|
|
92
|
-
"content-end":
|
|
93
|
-
g(
|
|
91
|
+
"content-end": c(() => [
|
|
92
|
+
g(o.$slots, "footer")
|
|
94
93
|
]),
|
|
95
94
|
_: 3
|
|
96
95
|
}, 8, ["configuration", "isDark", "parsedSpec", "rawSpec"])
|
|
@@ -99,5 +98,5 @@ const ee = /* @__PURE__ */ b({
|
|
|
99
98
|
}
|
|
100
99
|
});
|
|
101
100
|
export {
|
|
102
|
-
|
|
101
|
+
W as default
|
|
103
102
|
};
|
|
@@ -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":"AA4lBA,OAAO,EACL,KAAK,OAAO,EAGb,MAAM,gBAAgB,CAAA;AA6BvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;AAOjB,KAAK,WAAW,GAAG,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,CAAC;AA8PxD,iBAAS,cAAc;WAoPT,OAAO,IAA6B;;wBA7dZ,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;;;;;EAke/D;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YA3gBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFAkhB9D,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from "./ApiReferenceLayout.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
|
-
import
|
|
5
|
-
const m = /* @__PURE__ */
|
|
4
|
+
import o from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const m = /* @__PURE__ */ o(e, [["__scopeId", "data-v-72ceaee0"]]);
|
|
6
6
|
export {
|
|
7
7
|
m as default
|
|
8
8
|
};
|
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
|
|
1
|
+
import { defineComponent as oe, ref as w, computed as h, onBeforeMount as M, onMounted as re, onUnmounted as ae, watch as P, onServerPrefetch as ne, useSSRContext as ie, getCurrentInstance as se, provide as S, openBlock as b, createElementBlock as y, Fragment as k, createElementVNode as d, normalizeClass as le, unref as s, normalizeStyle as de, renderSlot as u, normalizeProps as c, guardReactiveProps as p, createVNode as f, withCtx as g, createCommentVNode as T, withDirectives as ue, vShow as ce, createSlots as pe } from "vue";
|
|
2
|
+
import { useHttpClientStore as fe } from "../stores/useHttpClientStore.js";
|
|
3
|
+
import { provideUseId as ge } from "@headlessui/vue";
|
|
4
|
+
import { addScalarClassesToHeadless as me, ScalarErrorBoundary as Se } from "@scalar/components";
|
|
5
|
+
import { defaultStateFactory as A } from "@scalar/oas-utils/helpers";
|
|
6
|
+
import { hasObtrusiveScrollbars as ve, getThemeStyles as he } from "@scalar/themes";
|
|
7
|
+
import { useToasts as be, ScalarToasts as ye } from "@scalar/use-toasts";
|
|
8
|
+
import { useMediaQuery as we, useResizeObserver as Te, useDebounceFn as Ce } from "@vueuse/core";
|
|
9
|
+
import Re from "./GettingStarted.vue.js";
|
|
10
|
+
import { downloadSpecBus as F, downloadSpecFile as Ee } from "../helpers/specDownloads.js";
|
|
11
|
+
import { GLOBAL_SECURITY_SYMBOL as Oe, HIDE_DOWNLOAD_BUTTON_SYMBOL as $e, HIDE_TEST_REQUEST_BUTTON_SYMBOL as Ie, OPENAPI_DOCUMENT_URL_SYMBOL as Le, INTEGRATION_SYMBOL as Be } from "../helpers/provideSymbols.js";
|
|
12
|
+
import { useDeprecationWarnings as Ue } from "../hooks/useDeprecationWarnings.js";
|
|
13
|
+
import De from "./Sidebar/Sidebar.vue.js";
|
|
14
|
+
import Me from "./Content/Content.vue.js";
|
|
15
|
+
import Pe from "../features/ApiClientModal/ApiClientModal.vue.js";
|
|
16
|
+
import { useSidebar as ke } from "../hooks/useSidebar.js";
|
|
17
|
+
import { useNavState as Ae } from "../hooks/useNavState.js";
|
|
18
|
+
import { sleep as Fe } from "../helpers/sleep.js";
|
|
19
|
+
const Ne = ["innerHTML"], He = { class: "references-header" }, Ye = {
|
|
19
20
|
key: 0,
|
|
20
21
|
class: "references-navigation t-doc__sidebar"
|
|
21
|
-
},
|
|
22
|
+
}, ze = { class: "references-navigation-list" }, _e = { class: "references-editor" }, Ge = { class: "references-editor-textarea" }, Qe = ["aria-label"], Ve = {
|
|
22
23
|
key: 0,
|
|
23
24
|
class: "references-footer"
|
|
24
|
-
},
|
|
25
|
+
}, ut = /* @__PURE__ */ oe({
|
|
25
26
|
inheritAttrs: !1,
|
|
26
27
|
__name: "ApiReferenceLayout",
|
|
27
28
|
props: {
|
|
@@ -30,201 +31,217 @@ const Pe = ["innerHTML"], Ue = { class: "references-header" }, ke = {
|
|
|
30
31
|
rawSpec: {}
|
|
31
32
|
},
|
|
32
33
|
emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
|
|
33
|
-
setup(
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
setup(N) {
|
|
35
|
+
const o = N, { initializeToasts: H, toast: Y } = be();
|
|
36
|
+
H((e) => Y(e));
|
|
37
|
+
const z = we("(min-width: 1150px)"), _ = w("100dvh"), m = w(null);
|
|
38
|
+
Te(m, (e) => {
|
|
39
|
+
_.value = e[0].contentRect.height + "px";
|
|
39
40
|
});
|
|
40
|
-
const
|
|
41
|
-
breadcrumb:
|
|
41
|
+
const G = h(ve), {
|
|
42
|
+
breadcrumb: Q,
|
|
42
43
|
collapsedSidebarItems: v,
|
|
43
|
-
isSidebarOpen:
|
|
44
|
-
setCollapsedSidebarItem:
|
|
45
|
-
hideModels:
|
|
46
|
-
defaultOpenAllTags:
|
|
47
|
-
setParsedSpec:
|
|
48
|
-
scrollToOperation:
|
|
49
|
-
} =
|
|
50
|
-
getPathRoutingId:
|
|
51
|
-
getSectionId:
|
|
52
|
-
getTagId:
|
|
53
|
-
hash:
|
|
54
|
-
isIntersectionEnabled:
|
|
55
|
-
pathRouting:
|
|
44
|
+
isSidebarOpen: V,
|
|
45
|
+
setCollapsedSidebarItem: C,
|
|
46
|
+
hideModels: W,
|
|
47
|
+
defaultOpenAllTags: j,
|
|
48
|
+
setParsedSpec: q,
|
|
49
|
+
scrollToOperation: K
|
|
50
|
+
} = ke(), {
|
|
51
|
+
getPathRoutingId: R,
|
|
52
|
+
getSectionId: J,
|
|
53
|
+
getTagId: X,
|
|
54
|
+
hash: E,
|
|
55
|
+
isIntersectionEnabled: O,
|
|
56
|
+
pathRouting: $,
|
|
56
57
|
updateHash: I
|
|
57
|
-
} =
|
|
58
|
-
|
|
58
|
+
} = Ae();
|
|
59
|
+
$.value = o.configuration.pathRouting, M(() => I());
|
|
59
60
|
const L = async (e) => {
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
}, B =
|
|
63
|
-
M(() =>
|
|
61
|
+
var t;
|
|
62
|
+
O.value = !1, I(), e ? K(e) : (t = m.value) == null || t.scrollTo(0, 0), await Fe(100), O.value = !0;
|
|
63
|
+
}, B = w(0);
|
|
64
|
+
M(() => me()), re(() => {
|
|
64
65
|
var r, a, n;
|
|
65
|
-
history.scrollRestoration = "manual",
|
|
66
|
-
|
|
66
|
+
history.scrollRestoration = "manual", F.on(({ specTitle: i }) => {
|
|
67
|
+
Ee(o.rawSpec, i);
|
|
67
68
|
});
|
|
68
|
-
const e = (a = (r =
|
|
69
|
-
if (e &&
|
|
70
|
-
const i =
|
|
69
|
+
const e = (a = (r = m.value) == null ? void 0 : r.parentElement) == null ? void 0 : a.getBoundingClientRect(), t = (n = m.value) == null ? void 0 : n.getBoundingClientRect();
|
|
70
|
+
if (e && t) {
|
|
71
|
+
const i = t.top - e.top;
|
|
71
72
|
B.value = i < 2 ? 0 : i;
|
|
72
73
|
}
|
|
73
|
-
window.onhashchange = () => L(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () =>
|
|
74
|
+
window.onhashchange = () => L(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => $.value && L(R(window.location.pathname));
|
|
74
75
|
});
|
|
75
|
-
const
|
|
76
|
-
() =>
|
|
77
|
-
),
|
|
76
|
+
const Z = h(
|
|
77
|
+
() => z.value || !o.configuration.isEditable
|
|
78
|
+
), U = Ce((e) => {
|
|
78
79
|
if ((e.target.scrollTop ?? 0) < 50) {
|
|
79
|
-
const r =
|
|
80
|
-
window.history.replaceState({}, "", r + window.location.search),
|
|
80
|
+
const r = o.configuration.pathRouting ? o.configuration.pathRouting.basePath : window.location.pathname;
|
|
81
|
+
window.history.replaceState({}, "", r + window.location.search), E.value = "";
|
|
81
82
|
}
|
|
82
|
-
}),
|
|
83
|
-
breadcrumb:
|
|
84
|
-
spec:
|
|
83
|
+
}), l = h(() => ({
|
|
84
|
+
breadcrumb: Q.value,
|
|
85
|
+
spec: o.parsedSpec
|
|
85
86
|
}));
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}),
|
|
89
|
-
var
|
|
90
|
-
const e =
|
|
91
|
-
if (e && (e.payload || (e.payload = { data:
|
|
92
|
-
const a =
|
|
93
|
-
|
|
87
|
+
ae(() => {
|
|
88
|
+
F.reset();
|
|
89
|
+
}), P(() => o.parsedSpec, q, { deep: !0 }), ne(() => {
|
|
90
|
+
var t, r;
|
|
91
|
+
const e = ie();
|
|
92
|
+
if (e && (e.payload || (e.payload = { data: A() }), (t = e.payload).data || (t.data = A()), o.configuration.pathRouting)) {
|
|
93
|
+
const a = R(e.url);
|
|
94
|
+
E.value = a, e.payload.data.hash = a;
|
|
94
95
|
for (const n in v)
|
|
95
96
|
Object.hasOwn(v, n) && delete v[n];
|
|
96
97
|
if (a)
|
|
97
|
-
|
|
98
|
+
C(J(a), !0);
|
|
98
99
|
else {
|
|
99
|
-
const n = (r =
|
|
100
|
-
n &&
|
|
100
|
+
const n = (r = o.parsedSpec.tags) == null ? void 0 : r[0];
|
|
101
|
+
n && C(X(n), !0);
|
|
101
102
|
}
|
|
102
103
|
e.payload.data["useSidebarContent-collapsedSidebarItems"] = v;
|
|
103
104
|
}
|
|
104
|
-
}),
|
|
105
|
+
}), ge(() => {
|
|
105
106
|
var a;
|
|
106
|
-
const e =
|
|
107
|
-
if (!e) return
|
|
107
|
+
const e = se(), t = "scalar-instance-id";
|
|
108
|
+
if (!e) return t;
|
|
108
109
|
let r = e.uid;
|
|
109
|
-
return typeof window > "u" ? (e.attrs || (e.attrs = {}), e.attrs[
|
|
110
|
-
}),
|
|
111
|
-
Te,
|
|
112
|
-
() => t.configuration.hideDownloadButton
|
|
113
|
-
), g(
|
|
114
|
-
Re,
|
|
115
|
-
() => t.configuration.hideTestRequestButton
|
|
116
|
-
), g(Oe, () => {
|
|
117
|
-
var e;
|
|
118
|
-
return (e = t.configuration.spec) == null ? void 0 : e.url;
|
|
119
|
-
}), g(
|
|
110
|
+
return typeof window > "u" ? (e.attrs || (e.attrs = {}), e.attrs[t] = r) : (a = e.vnode.el) != null && a.getAttribute && (r = e.vnode.el.getAttribute(t)), `${t}-${r}`;
|
|
111
|
+
}), S(Oe, () => o.parsedSpec.security), S(
|
|
120
112
|
$e,
|
|
121
|
-
() =>
|
|
122
|
-
),
|
|
123
|
-
|
|
113
|
+
() => o.configuration.hideDownloadButton
|
|
114
|
+
), S(
|
|
115
|
+
Ie,
|
|
116
|
+
() => o.configuration.hideTestRequestButton
|
|
117
|
+
), S(Le, () => {
|
|
118
|
+
var e;
|
|
119
|
+
return (e = o.configuration.spec) == null ? void 0 : e.url;
|
|
120
|
+
}), S(
|
|
121
|
+
Be,
|
|
122
|
+
() => o.configuration._integration !== null ? o.configuration._integration : "vue"
|
|
123
|
+
);
|
|
124
|
+
function D(e, t) {
|
|
125
|
+
P(
|
|
126
|
+
() => o.configuration[e],
|
|
127
|
+
(r) => {
|
|
128
|
+
typeof r < "u" && t(r);
|
|
129
|
+
},
|
|
130
|
+
{ immediate: !0 }
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
const { setExcludedClients: x, setDefaultHttpClient: ee } = fe();
|
|
134
|
+
D("defaultHttpClient", ee), D("hiddenClients", x), W.value = o.configuration.hideModels ?? !1, j.value = o.configuration.defaultOpenAllTags ?? !1, Ue(o.configuration);
|
|
135
|
+
const te = h(
|
|
124
136
|
() => `<style>
|
|
125
|
-
${
|
|
126
|
-
fonts:
|
|
137
|
+
${he(o.configuration.theme, {
|
|
138
|
+
fonts: o.configuration.withDefaultFonts
|
|
127
139
|
})}</style>`
|
|
128
140
|
);
|
|
129
|
-
return (e,
|
|
141
|
+
return (e, t) => {
|
|
130
142
|
var r, a;
|
|
131
|
-
return b(),
|
|
132
|
-
|
|
133
|
-
|
|
143
|
+
return b(), y(k, null, [
|
|
144
|
+
d("div", { innerHTML: te.value }, null, 8, Ne),
|
|
145
|
+
d("div", {
|
|
134
146
|
ref_key: "documentEl",
|
|
135
|
-
ref:
|
|
136
|
-
class:
|
|
147
|
+
ref: m,
|
|
148
|
+
class: le(["scalar-app scalar-api-reference references-layout", [
|
|
137
149
|
{
|
|
138
|
-
"scalar-scrollbars-obtrusive":
|
|
150
|
+
"scalar-scrollbars-obtrusive": G.value,
|
|
139
151
|
"references-editable": e.configuration.isEditable,
|
|
140
152
|
"references-sidebar": e.configuration.showSidebar,
|
|
141
|
-
"references-sidebar-mobile-open":
|
|
153
|
+
"references-sidebar-mobile-open": s(V),
|
|
142
154
|
"references-classic": e.configuration.layout === "classic"
|
|
143
155
|
},
|
|
144
156
|
e.$attrs.class
|
|
145
157
|
]]),
|
|
146
|
-
style:
|
|
158
|
+
style: de({
|
|
147
159
|
"--scalar-y-offset": `var(--scalar-custom-header-height, ${B.value}px)`
|
|
148
160
|
}),
|
|
149
|
-
onScrollPassive:
|
|
150
|
-
(...n) =>
|
|
161
|
+
onScrollPassive: t[4] || (t[4] = //@ts-ignore
|
|
162
|
+
(...n) => s(U) && s(U)(...n))
|
|
151
163
|
}, [
|
|
152
|
-
|
|
153
|
-
u(e.$slots, "header", c(p(
|
|
164
|
+
d("div", He, [
|
|
165
|
+
u(e.$slots, "header", c(p(l.value)), void 0, !0)
|
|
154
166
|
]),
|
|
155
|
-
e.configuration.showSidebar ? (b(),
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
+
e.configuration.showSidebar ? (b(), y("aside", Ye, [
|
|
168
|
+
d("div", ze, [
|
|
169
|
+
f(s(Se), null, {
|
|
170
|
+
default: g(() => [
|
|
171
|
+
f(s(De), {
|
|
172
|
+
operationsSorter: e.configuration.operationsSorter,
|
|
173
|
+
parsedSpec: e.parsedSpec,
|
|
174
|
+
tagsSorter: e.configuration.tagsSorter
|
|
175
|
+
}, {
|
|
176
|
+
"sidebar-start": g(() => [
|
|
177
|
+
u(e.$slots, "sidebar-start", c(p(l.value)), void 0, !0)
|
|
178
|
+
]),
|
|
179
|
+
"sidebar-end": g(() => [
|
|
180
|
+
u(e.$slots, "sidebar-end", c(p(l.value)), void 0, !0)
|
|
181
|
+
]),
|
|
182
|
+
_: 3
|
|
183
|
+
}, 8, ["operationsSorter", "parsedSpec", "tagsSorter"])
|
|
167
184
|
]),
|
|
168
185
|
_: 3
|
|
169
|
-
}
|
|
186
|
+
})
|
|
170
187
|
])
|
|
171
188
|
])) : T("", !0),
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
u(e.$slots, "editor", c(p(
|
|
189
|
+
ue(d("div", _e, [
|
|
190
|
+
d("div", Ge, [
|
|
191
|
+
u(e.$slots, "editor", c(p(l.value)), void 0, !0)
|
|
175
192
|
])
|
|
176
193
|
], 512), [
|
|
177
|
-
[
|
|
194
|
+
[ce, e.configuration.isEditable]
|
|
178
195
|
]),
|
|
179
|
-
|
|
180
|
-
|
|
196
|
+
Z.value ? (b(), y(k, { key: 1 }, [
|
|
197
|
+
d("section", {
|
|
181
198
|
"aria-label": `Open API Documentation for ${(r = e.parsedSpec.info) == null ? void 0 : r.title}`,
|
|
182
199
|
class: "references-rendered"
|
|
183
200
|
}, [
|
|
184
|
-
|
|
201
|
+
f(s(Me), {
|
|
185
202
|
baseServerURL: e.configuration.baseServerURL,
|
|
186
203
|
layout: e.configuration.layout,
|
|
187
204
|
parsedSpec: e.parsedSpec,
|
|
188
|
-
|
|
205
|
+
proxyUrl: e.configuration.proxyUrl ?? e.configuration.proxy,
|
|
189
206
|
servers: e.configuration.servers
|
|
190
|
-
},
|
|
191
|
-
start:
|
|
192
|
-
u(e.$slots, "content-start", c(p(
|
|
207
|
+
}, pe({
|
|
208
|
+
start: g(() => [
|
|
209
|
+
u(e.$slots, "content-start", c(p(l.value)), void 0, !0)
|
|
193
210
|
]),
|
|
194
|
-
end:
|
|
195
|
-
u(e.$slots, "content-end", c(p(
|
|
211
|
+
end: g(() => [
|
|
212
|
+
u(e.$slots, "content-end", c(p(l.value)), void 0, !0)
|
|
196
213
|
]),
|
|
197
214
|
_: 2
|
|
198
215
|
}, [
|
|
199
216
|
(a = e.configuration) != null && a.isEditable ? {
|
|
200
217
|
name: "empty-state",
|
|
201
|
-
fn:
|
|
218
|
+
fn: g(() => {
|
|
202
219
|
var n;
|
|
203
220
|
return [
|
|
204
|
-
|
|
221
|
+
f(Re, {
|
|
205
222
|
theme: ((n = e.configuration) == null ? void 0 : n.theme) || "default",
|
|
206
|
-
onChangeTheme:
|
|
207
|
-
onLinkSwaggerFile:
|
|
208
|
-
onLoadSwaggerFile:
|
|
209
|
-
onUpdateContent:
|
|
223
|
+
onChangeTheme: t[0] || (t[0] = (i) => e.$emit("changeTheme", i)),
|
|
224
|
+
onLinkSwaggerFile: t[1] || (t[1] = (i) => e.$emit("linkSwaggerFile")),
|
|
225
|
+
onLoadSwaggerFile: t[2] || (t[2] = (i) => e.$emit("loadSwaggerFile")),
|
|
226
|
+
onUpdateContent: t[3] || (t[3] = (i) => e.$emit("updateContent", i))
|
|
210
227
|
}, null, 8, ["theme"])
|
|
211
228
|
];
|
|
212
229
|
}),
|
|
213
230
|
key: "0"
|
|
214
231
|
} : void 0
|
|
215
|
-
]), 1032, ["baseServerURL", "layout", "parsedSpec", "
|
|
216
|
-
], 8,
|
|
217
|
-
e.$slots.footer ? (b(),
|
|
218
|
-
u(e.$slots, "footer", c(p(
|
|
232
|
+
]), 1032, ["baseServerURL", "layout", "parsedSpec", "proxyUrl", "servers"])
|
|
233
|
+
], 8, Qe),
|
|
234
|
+
e.$slots.footer ? (b(), y("div", Ve, [
|
|
235
|
+
u(e.$slots, "footer", c(p(l.value)), void 0, !0)
|
|
219
236
|
])) : T("", !0)
|
|
220
237
|
], 64)) : T("", !0),
|
|
221
|
-
|
|
238
|
+
f(s(Pe), { configuration: e.configuration }, null, 8, ["configuration"])
|
|
222
239
|
], 38),
|
|
223
|
-
|
|
240
|
+
f(s(ye))
|
|
224
241
|
], 64);
|
|
225
242
|
};
|
|
226
243
|
}
|
|
227
244
|
});
|
|
228
245
|
export {
|
|
229
|
-
|
|
246
|
+
ut as default
|
|
230
247
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Spec } from '@scalar/types/legacy';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
parsedSpec?: Spec;
|
|
4
|
-
|
|
4
|
+
proxyUrl?: string;
|
|
5
5
|
};
|
|
6
6
|
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, {}, any>;
|
|
7
7
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Authentication.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Authentication/Authentication.vue"],"names":[],"mappings":"AAgFA,OAAO,KAAK,EAAY,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAS1D,KAAK,WAAW,GAAG;IAAE,UAAU,CAAC,EAAE,IAAI,CAAC;IAAC,
|
|
1
|
+
{"version":3,"file":"Authentication.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Authentication/Authentication.vue"],"names":[],"mappings":"AAgFA,OAAO,KAAK,EAAY,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAS1D,KAAK,WAAW,GAAG;IAAE,UAAU,CAAC,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;;AA+H5D,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./Authentication.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const i = /* @__PURE__ */ o(t, [["__scopeId", "data-v-a41bc2d4"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
i as default
|
|
7
7
|
};
|