@scalar/api-reference 1.25.33 → 1.25.35
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 +20 -0
- package/dist/browser/standalone.js +11000 -10907
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +3 -3
- package/dist/components/ApiReferenceLayout.vue2.js +137 -133
- 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/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 +61 -46
- 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 +61 -86
- package/dist/components/Content/Lazy/Lazy.vue.js +2 -20
- package/dist/components/Content/Lazy/Lazy.vue2.js +20 -2
- package/dist/components/Content/Models/Models.vue2.js +1 -1
- package/dist/components/Content/Tag/TagList.vue.d.ts +21 -0
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -0
- package/dist/components/Content/Tag/TagList.vue.js +58 -0
- package/dist/components/Content/Tag/TagList.vue2.js +4 -0
- package/dist/components/Content/Tag/index.d.ts +1 -0
- package/dist/components/Content/Tag/index.d.ts.map +1 -1
- package/dist/components/Content/Webhooks/Webhooks.vue2.js +1 -1
- 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 +39 -32
- package/dist/features/BaseUrl/ServerUrl.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerUrl.vue.js +2 -3
- package/dist/features/BaseUrl/ServerUrl.vue2.js +13 -15
- package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts +2 -0
- package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerUrlSelect.vue.js +2 -2
- package/dist/features/BaseUrl/ServerUrlSelect.vue2.js +37 -36
- package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts +4 -0
- package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerVariablesForm.vue.js +1 -1
- package/dist/features/BaseUrl/ServerVariablesForm.vue2.js +37 -31
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts +2 -0
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.js +3 -3
- package/dist/features/BaseUrl/ServerVariablesSelect.vue2.js +39 -35
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts +2 -0
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue.js +4 -4
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue2.js +11 -9
- package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue.js +2 -2
- package/dist/features/DownloadLink/DownloadLink.vue2.js +12 -11
- package/dist/index.js +1 -1
- package/dist/legacy/components/CardFormTextInput.vue.d.ts +2 -0
- package/dist/legacy/components/CardFormTextInput.vue.d.ts.map +1 -1
- package/dist/legacy/components/CardFormTextInput.vue.js +1 -1
- package/dist/legacy/components/CardFormTextInput.vue2.js +39 -23
- package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -1
- package/dist/legacy/components/SecuritySchemeSelector.vue.js +2 -2
- package/dist/legacy/components/SecuritySchemeSelector.vue2.js +67 -45
- package/dist/style.css +1 -1
- package/package.json +7 -7
|
@@ -1,23 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import W from "./Tag/Tag.vue.js";
|
|
4
|
-
import D from "./Operation/OperationAccordion.vue.js";
|
|
5
|
-
import F from "./Operation/Operation.vue.js";
|
|
6
|
-
import j from "./Lazy/Loading.vue.js";
|
|
1
|
+
import { defineComponent as $, computed as M, openBlock as r, createElementBlock as o, Fragment as t, createElementVNode as y, renderSlot as p, createVNode as i, unref as a, createBlock as s, withCtx as L, normalizeClass as N, renderList as U, createCommentVNode as n, createStaticVNode as V } from "vue";
|
|
2
|
+
import B from "./Lazy/Loading.vue.js";
|
|
7
3
|
/* empty css */
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { useSidebar as
|
|
17
|
-
import { hasModels as
|
|
18
|
-
import { getModels as
|
|
19
|
-
|
|
20
|
-
const _ = /* @__PURE__ */ E('<div class="section-flare" data-v-8d751fa0><div class="section-flare-item" data-v-8d751fa0></div><div class="section-flare-item" data-v-8d751fa0></div><div class="section-flare-item" data-v-8d751fa0></div><div class="section-flare-item" data-v-8d751fa0></div><div class="section-flare-item" data-v-8d751fa0></div><div class="section-flare-item" data-v-8d751fa0></div><div class="section-flare-item" data-v-8d751fa0></div><div class="section-flare-item" data-v-8d751fa0></div></div>', 1), x = { class: "narrow-references-container" }, be = /* @__PURE__ */ O({
|
|
4
|
+
import A from "./Introduction/Introduction.vue.js";
|
|
5
|
+
import E from "../../features/BaseUrl/BaseUrl.vue.js";
|
|
6
|
+
import R from "./Authentication/Authentication.vue.js";
|
|
7
|
+
import z from "./ClientLibraries/ClientLibraries.vue.js";
|
|
8
|
+
import k from "./Tag/TagList.vue.js";
|
|
9
|
+
import F from "./Webhooks/Webhooks.vue.js";
|
|
10
|
+
import G from "./Models/ModelsAccordion.vue.js";
|
|
11
|
+
import I from "./Models/Models.vue.js";
|
|
12
|
+
import { useSidebar as W } from "../../hooks/useSidebar.js";
|
|
13
|
+
import { hasModels as j } from "../../helpers/hasModels.js";
|
|
14
|
+
import { getModels as h } from "../../helpers/getModels.js";
|
|
15
|
+
const q = /* @__PURE__ */ V('<div class="section-flare" data-v-2ffda479><div class="section-flare-item" data-v-2ffda479></div><div class="section-flare-item" data-v-2ffda479></div><div class="section-flare-item" data-v-2ffda479></div><div class="section-flare-item" data-v-2ffda479></div><div class="section-flare-item" data-v-2ffda479></div><div class="section-flare-item" data-v-2ffda479></div><div class="section-flare-item" data-v-2ffda479></div><div class="section-flare-item" data-v-2ffda479></div></div>', 1), D = { class: "narrow-references-container" }, se = /* @__PURE__ */ $({
|
|
21
16
|
__name: "Content",
|
|
22
17
|
props: {
|
|
23
18
|
parsedSpec: {},
|
|
@@ -26,100 +21,80 @@ const _ = /* @__PURE__ */ E('<div class="section-flare" data-v-8d751fa0><div cla
|
|
|
26
21
|
servers: {},
|
|
27
22
|
proxy: {}
|
|
28
23
|
},
|
|
29
|
-
setup(
|
|
30
|
-
const
|
|
31
|
-
() =>
|
|
32
|
-
)
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
()
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
_,
|
|
41
|
-
k("div", x, [
|
|
42
|
-
f(e.$slots, "start", {}, void 0, !0),
|
|
43
|
-
l(o(j), {
|
|
24
|
+
setup(g) {
|
|
25
|
+
const l = g, { hideModels: b } = W(), w = M(
|
|
26
|
+
() => l.layout === "accordion" ? "after" : "aside"
|
|
27
|
+
);
|
|
28
|
+
return (e, H) => {
|
|
29
|
+
var c, f, m, u;
|
|
30
|
+
return r(), o(t, null, [
|
|
31
|
+
q,
|
|
32
|
+
y("div", D, [
|
|
33
|
+
p(e.$slots, "start", {}, void 0, !0),
|
|
34
|
+
i(a(B), {
|
|
44
35
|
layout: e.layout,
|
|
45
36
|
parsedSpec: e.parsedSpec
|
|
46
37
|
}, null, 8, ["layout", "parsedSpec"]),
|
|
47
|
-
(
|
|
38
|
+
(f = (c = e.parsedSpec) == null ? void 0 : c.info) != null && f.title || (u = (m = e.parsedSpec) == null ? void 0 : m.info) != null && u.description ? (r(), s(a(A), {
|
|
48
39
|
key: 0,
|
|
49
40
|
info: e.parsedSpec.info,
|
|
50
41
|
parsedSpec: e.parsedSpec
|
|
51
42
|
}, {
|
|
52
|
-
[
|
|
53
|
-
|
|
54
|
-
class:
|
|
43
|
+
[w.value]: L(() => [
|
|
44
|
+
y("div", {
|
|
45
|
+
class: N(["introduction-card", { "introduction-card-row": e.layout === "accordion" }])
|
|
55
46
|
}, [
|
|
56
|
-
|
|
47
|
+
i(a(E), {
|
|
57
48
|
class: "introduction-card-item",
|
|
58
49
|
defaultServerUrl: e.baseServerURL,
|
|
59
|
-
servers:
|
|
50
|
+
servers: l.servers,
|
|
60
51
|
specification: e.parsedSpec
|
|
61
52
|
}, null, 8, ["defaultServerUrl", "servers", "specification"]),
|
|
62
|
-
|
|
53
|
+
i(a(R), {
|
|
63
54
|
class: "introduction-card-item",
|
|
64
55
|
parsedSpec: e.parsedSpec,
|
|
65
56
|
proxy: e.proxy
|
|
66
57
|
}, null, 8, ["parsedSpec", "proxy"]),
|
|
67
|
-
|
|
58
|
+
i(a(z), { class: "introduction-card-item" })
|
|
68
59
|
], 2)
|
|
69
60
|
]),
|
|
70
61
|
_: 2
|
|
71
|
-
}, 1032, ["info", "parsedSpec"])) :
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
(r(), s(L(A.value), {
|
|
91
|
-
id: o(u)(t, a),
|
|
92
|
-
operation: t,
|
|
93
|
-
tag: a
|
|
94
|
-
}, null, 8, ["id", "operation", "tag"]))
|
|
95
|
-
]),
|
|
96
|
-
_: 2
|
|
97
|
-
}, 1032, ["id", "isLazy"]))), 128))
|
|
98
|
-
]),
|
|
99
|
-
_: 2
|
|
100
|
-
}, 1032, ["id", "spec", "tag"]))
|
|
101
|
-
]),
|
|
102
|
-
_: 2
|
|
103
|
-
}, 1032, ["id", "isLazy"]))), 128)),
|
|
104
|
-
e.parsedSpec.webhooks ? (r(), s(o(K), {
|
|
105
|
-
key: 2,
|
|
62
|
+
}, 1032, ["info", "parsedSpec"])) : p(e.$slots, "empty-state", { key: 1 }, void 0, !0),
|
|
63
|
+
e.parsedSpec.tags ? (r(), o(t, { key: 2 }, [
|
|
64
|
+
e.parsedSpec["x-tagGroups"] ? (r(!0), o(t, { key: 0 }, U(e.parsedSpec["x-tagGroups"], (v) => (r(), s(a(k), {
|
|
65
|
+
key: v.name,
|
|
66
|
+
layout: e.layout,
|
|
67
|
+
spec: e.parsedSpec,
|
|
68
|
+
tags: v.tags.map((d) => {
|
|
69
|
+
var S;
|
|
70
|
+
return (S = e.parsedSpec.tags) == null ? void 0 : S.find((C) => C.name === d);
|
|
71
|
+
}).filter((d) => !!d)
|
|
72
|
+
}, null, 8, ["layout", "spec", "tags"]))), 128)) : (r(), s(a(k), {
|
|
73
|
+
key: 1,
|
|
74
|
+
layout: e.layout,
|
|
75
|
+
spec: e.parsedSpec,
|
|
76
|
+
tags: e.parsedSpec.tags
|
|
77
|
+
}, null, 8, ["layout", "spec", "tags"]))
|
|
78
|
+
], 64)) : n("", !0),
|
|
79
|
+
e.parsedSpec.webhooks ? (r(), s(a(F), {
|
|
80
|
+
key: 3,
|
|
106
81
|
webhooks: e.parsedSpec.webhooks
|
|
107
|
-
}, null, 8, ["webhooks"])) :
|
|
108
|
-
|
|
109
|
-
e.layout === "accordion" ? (r(), s(
|
|
82
|
+
}, null, 8, ["webhooks"])) : n("", !0),
|
|
83
|
+
a(j)(e.parsedSpec) && !a(b) ? (r(), o(t, { key: 4 }, [
|
|
84
|
+
e.layout === "accordion" ? (r(), s(a(G), {
|
|
110
85
|
key: 0,
|
|
111
|
-
schemas:
|
|
112
|
-
}, null, 8, ["schemas"])) : (r(), s(
|
|
86
|
+
schemas: a(h)(e.parsedSpec)
|
|
87
|
+
}, null, 8, ["schemas"])) : (r(), s(a(I), {
|
|
113
88
|
key: 1,
|
|
114
|
-
schemas:
|
|
89
|
+
schemas: a(h)(e.parsedSpec)
|
|
115
90
|
}, null, 8, ["schemas"]))
|
|
116
|
-
], 64)) :
|
|
117
|
-
|
|
91
|
+
], 64)) : n("", !0),
|
|
92
|
+
p(e.$slots, "end", {}, void 0, !0)
|
|
118
93
|
])
|
|
119
94
|
], 64);
|
|
120
95
|
};
|
|
121
96
|
}
|
|
122
97
|
});
|
|
123
98
|
export {
|
|
124
|
-
|
|
99
|
+
se as default
|
|
125
100
|
};
|
|
@@ -1,22 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { lazyBus as a } from "./lazyBus.js";
|
|
3
|
-
const y = /* @__PURE__ */ n({
|
|
4
|
-
__name: "Lazy",
|
|
5
|
-
props: {
|
|
6
|
-
id: {},
|
|
7
|
-
isLazy: { type: Boolean, default: !0 },
|
|
8
|
-
lazyTimeout: { default: 0 }
|
|
9
|
-
},
|
|
10
|
-
setup(d) {
|
|
11
|
-
const e = d, l = (t = () => {
|
|
12
|
-
}) => {
|
|
13
|
-
typeof window > "u" || ("requestIdleCallback" in window ? setTimeout(() => window.requestIdleCallback(t), e.lazyTimeout) : setTimeout(() => i(t), e.lazyTimeout ?? 300));
|
|
14
|
-
}, o = s(!e.isLazy);
|
|
15
|
-
return e.isLazy ? l(() => {
|
|
16
|
-
o.value = !0, e.id && i(() => a.emit({ id: e.id }));
|
|
17
|
-
}) : e.id && i(() => a.emit({ id: e.id })), (t, f) => o.value ? u(t.$slots, "default", { key: 0 }) : r("", !0);
|
|
18
|
-
}
|
|
19
|
-
});
|
|
1
|
+
import f from "./Lazy.vue2.js";
|
|
20
2
|
export {
|
|
21
|
-
|
|
3
|
+
f as default
|
|
22
4
|
};
|
|
@@ -1,4 +1,22 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as n, ref as s, nextTick as i, renderSlot as u, createCommentVNode as r } from "vue";
|
|
2
|
+
import { lazyBus as a } from "./lazyBus.js";
|
|
3
|
+
const y = /* @__PURE__ */ n({
|
|
4
|
+
__name: "Lazy",
|
|
5
|
+
props: {
|
|
6
|
+
id: {},
|
|
7
|
+
isLazy: { type: Boolean, default: !0 },
|
|
8
|
+
lazyTimeout: { default: 0 }
|
|
9
|
+
},
|
|
10
|
+
setup(d) {
|
|
11
|
+
const e = d, l = (t = () => {
|
|
12
|
+
}) => {
|
|
13
|
+
typeof window > "u" || ("requestIdleCallback" in window ? setTimeout(() => window.requestIdleCallback(t), e.lazyTimeout) : setTimeout(() => i(t), e.lazyTimeout ?? 300));
|
|
14
|
+
}, o = s(!e.isLazy);
|
|
15
|
+
return e.isLazy ? l(() => {
|
|
16
|
+
o.value = !0, e.id && i(() => a.emit({ id: e.id }));
|
|
17
|
+
}) : e.id && i(() => a.emit({ id: e.id })), (t, f) => o.value ? u(t.$slots, "default", { key: 0 }) : r("", !0);
|
|
18
|
+
}
|
|
19
|
+
});
|
|
2
20
|
export {
|
|
3
|
-
|
|
21
|
+
y as default
|
|
4
22
|
};
|
|
@@ -3,7 +3,7 @@ import g from "../../ShowMoreButton.vue.js";
|
|
|
3
3
|
import C from "../../Section/SectionContainer.vue.js";
|
|
4
4
|
import L from "../../Section/Section.vue.js";
|
|
5
5
|
import I from "../../Section/SectionHeader.vue.js";
|
|
6
|
-
import u from "../Lazy/Lazy.
|
|
6
|
+
import u from "../Lazy/Lazy.vue2.js";
|
|
7
7
|
import w from "../../Section/CompactSection.vue.js";
|
|
8
8
|
import B from "../Schema/SchemaHeading.vue.js";
|
|
9
9
|
import H from "../Schema/Schema.vue.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Spec, Tag as tagType } from '@scalar/types/legacy';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
|
+
tags: tagType[];
|
|
4
|
+
spec: Spec;
|
|
5
|
+
layout?: "default" | "accordion";
|
|
6
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
7
|
+
tags: tagType[];
|
|
8
|
+
spec: Spec;
|
|
9
|
+
layout?: "default" | "accordion";
|
|
10
|
+
}>>>, {}, {}>;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
|
+
type __VLS_TypePropsToOption<T> = {
|
|
14
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
15
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
16
|
+
} : {
|
|
17
|
+
type: import('vue').PropType<T[K]>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=TagList.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TagList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagList.vue"],"names":[],"mappings":"AAwDA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;;UAWxD,OAAO,EAAE;UACT,IAAI;aACD,SAAS,GAAG,WAAW;;UAF1B,OAAO,EAAE;UACT,IAAI;aACD,SAAS,GAAG,WAAW;;AAyGlC,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"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { defineComponent as I, computed as m, openBlock as t, createElementBlock as p, Fragment as u, renderList as l, createBlock as i, unref as o, withCtx as s, resolveDynamicComponent as f } from "vue";
|
|
2
|
+
import T from "./TagAccordion.vue.js";
|
|
3
|
+
import b from "./Tag.vue.js";
|
|
4
|
+
import B from "../Operation/OperationAccordion.vue.js";
|
|
5
|
+
import C from "../Operation/Operation.vue.js";
|
|
6
|
+
import y from "../Lazy/Lazy.vue2.js";
|
|
7
|
+
import { useSidebar as O } from "../../../hooks/useSidebar.js";
|
|
8
|
+
import { useNavState as S } from "../../../hooks/useNavState.js";
|
|
9
|
+
const W = /* @__PURE__ */ I({
|
|
10
|
+
__name: "TagList",
|
|
11
|
+
props: {
|
|
12
|
+
tags: {},
|
|
13
|
+
spec: {},
|
|
14
|
+
layout: {}
|
|
15
|
+
},
|
|
16
|
+
setup(L) {
|
|
17
|
+
const n = L, { getOperationId: c, getTagId: a, hash: _ } = S(), { collapsedSidebarItems: h } = O(), k = m(
|
|
18
|
+
() => n.layout === "accordion" ? T : b
|
|
19
|
+
), v = m(
|
|
20
|
+
() => n.layout === "accordion" ? B : C
|
|
21
|
+
), z = n.layout !== "accordion" && !_.value.startsWith("model");
|
|
22
|
+
return (d, $) => (t(!0), p(u, null, l(d.tags, (e) => (t(), i(o(y), {
|
|
23
|
+
id: o(a)(e),
|
|
24
|
+
key: o(a)(e),
|
|
25
|
+
isLazy: o(z) && !o(h)[o(a)(e)]
|
|
26
|
+
}, {
|
|
27
|
+
default: s(() => [
|
|
28
|
+
(t(), i(f(k.value), {
|
|
29
|
+
id: o(a)(e),
|
|
30
|
+
spec: d.spec,
|
|
31
|
+
tag: e
|
|
32
|
+
}, {
|
|
33
|
+
default: s(() => [
|
|
34
|
+
(t(!0), p(u, null, l(e.operations, (r, g) => (t(), i(o(y), {
|
|
35
|
+
id: o(c)(r, e),
|
|
36
|
+
key: `${r.httpVerb}-${r.operationId}`,
|
|
37
|
+
isLazy: g > 0
|
|
38
|
+
}, {
|
|
39
|
+
default: s(() => [
|
|
40
|
+
(t(), i(f(v.value), {
|
|
41
|
+
id: o(c)(r, e),
|
|
42
|
+
operation: r,
|
|
43
|
+
tag: e
|
|
44
|
+
}, null, 8, ["id", "operation", "tag"]))
|
|
45
|
+
]),
|
|
46
|
+
_: 2
|
|
47
|
+
}, 1032, ["id", "isLazy"]))), 128))
|
|
48
|
+
]),
|
|
49
|
+
_: 2
|
|
50
|
+
}, 1032, ["id", "spec", "tag"]))
|
|
51
|
+
]),
|
|
52
|
+
_: 2
|
|
53
|
+
}, 1032, ["id", "isLazy"]))), 128));
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
export {
|
|
57
|
+
W as default
|
|
58
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -5,7 +5,7 @@ import E from "./Webhook.vue.js";
|
|
|
5
5
|
import H from "../../Section/SectionContainer.vue.js";
|
|
6
6
|
import M from "../../Section/Section.vue.js";
|
|
7
7
|
import j from "../../Section/SectionHeader.vue.js";
|
|
8
|
-
import S from "../Lazy/Lazy.
|
|
8
|
+
import S from "../Lazy/Lazy.vue2.js";
|
|
9
9
|
import F from "../../Section/CompactSection.vue.js";
|
|
10
10
|
import { useSidebar as K } from "../../../hooks/useSidebar.js";
|
|
11
11
|
import { useNavState as T } from "../../../hooks/useNavState.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerForm.vue.d.ts","sourceRoot":"","sources":["../../../src/features/BaseUrl/ServerForm.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ServerForm.vue.d.ts","sourceRoot":"","sources":["../../../src/features/BaseUrl/ServerForm.vue"],"names":[],"mappings":"AAsHA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAOlD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;;eAKpC,MAAM;cACP,MAAM,EAAE;gBACN,oBAAoB;;;;;;;eAFrB,MAAM;cACP,MAAM,EAAE;gBACN,oBAAoB;;;;;;;cAFrB,MAAM;;AAkKrB,wBAOG;AAOH,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,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 "./ServerForm.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-ff1fd73b"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarMarkdown as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
muted: ""
|
|
9
|
-
}, j = { class: "description" }, G = /* @__PURE__ */ S({
|
|
1
|
+
import { defineComponent as k, computed as m, openBlock as f, createElementBlock as b, createElementVNode as r, createVNode as a, withCtx as B, unref as y, createCommentVNode as _, pushScopeId as w, popScopeId as C } from "vue";
|
|
2
|
+
import { ScalarMarkdown as N } from "@scalar/components";
|
|
3
|
+
import { nanoid as S } from "nanoid";
|
|
4
|
+
import g from "./ServerUrl.vue.js";
|
|
5
|
+
import E from "./ServerUrlSelect.vue.js";
|
|
6
|
+
import F from "./ServerVariablesForm.vue.js";
|
|
7
|
+
const h = (s) => (w("data-v-ff1fd73b"), s = s(), C(), s), L = { key: 0 }, R = /* @__PURE__ */ h(() => /* @__PURE__ */ r("label", { class: "server-form-title" }, "Base URL", -1)), $ = { class: "server-form" }, M = { class: "server-form-container" }, j = /* @__PURE__ */ h(() => /* @__PURE__ */ r("span", { class: "sr-only" }, "Selected:", -1)), q = { class: "description" }, J = /* @__PURE__ */ k({
|
|
10
8
|
__name: "ServerForm",
|
|
11
9
|
props: {
|
|
12
10
|
selected: { default: 0 },
|
|
@@ -14,31 +12,35 @@ const g = (r) => (U("data-v-7b6cd311"), r = r(), I(), r), y = { key: 0 }, E = /*
|
|
|
14
12
|
variables: {}
|
|
15
13
|
},
|
|
16
14
|
emits: ["update:selected", "update:variables"],
|
|
17
|
-
setup(
|
|
18
|
-
const l =
|
|
15
|
+
setup(s, { emit: V }) {
|
|
16
|
+
const l = s, d = V, n = `server-selector-${S()}`, v = `server-description-${S()}`, i = m({
|
|
19
17
|
get: () => l.selected,
|
|
20
18
|
set: (e) => d("update:selected", e)
|
|
21
|
-
}), t =
|
|
19
|
+
}), t = m(() => {
|
|
22
20
|
var e;
|
|
23
21
|
return (e = l.servers) == null ? void 0 : e[i.value];
|
|
24
22
|
});
|
|
25
|
-
function
|
|
26
|
-
d("update:variables", { ...l.variables, [e]:
|
|
23
|
+
function I(e, o) {
|
|
24
|
+
d("update:variables", { ...l.variables, [e]: o });
|
|
27
25
|
}
|
|
28
|
-
return (e,
|
|
29
|
-
var
|
|
30
|
-
return (
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
return (e, o) => {
|
|
27
|
+
var c, p, u;
|
|
28
|
+
return (c = e.servers) != null && c.length ? (f(), b("div", L, [
|
|
29
|
+
R,
|
|
30
|
+
r("div", $, [
|
|
31
|
+
r("div", M, [
|
|
32
|
+
r("div", null, [
|
|
33
|
+
a(E, {
|
|
34
|
+
id: n,
|
|
36
35
|
modelValue: i.value,
|
|
37
|
-
"onUpdate:modelValue":
|
|
36
|
+
"onUpdate:modelValue": o[0] || (o[0] = (U) => i.value = U),
|
|
37
|
+
describedBy: v,
|
|
38
|
+
label: "Base URL",
|
|
38
39
|
options: e.servers
|
|
39
40
|
}, {
|
|
40
|
-
default:
|
|
41
|
-
|
|
41
|
+
default: B(() => [
|
|
42
|
+
j,
|
|
43
|
+
a(g, {
|
|
42
44
|
server: t.value,
|
|
43
45
|
variables: e.variables
|
|
44
46
|
}, null, 8, ["server", "variables"])
|
|
@@ -46,16 +48,21 @@ const g = (r) => (U("data-v-7b6cd311"), r = r(), I(), r), y = { key: 0 }, E = /*
|
|
|
46
48
|
_: 1
|
|
47
49
|
}, 8, ["modelValue", "options"])
|
|
48
50
|
]),
|
|
49
|
-
|
|
51
|
+
a(F, {
|
|
52
|
+
controls: n,
|
|
50
53
|
values: e.variables,
|
|
51
|
-
variables: (
|
|
52
|
-
"onUpdate:variable":
|
|
54
|
+
variables: (p = t.value) == null ? void 0 : p.variables,
|
|
55
|
+
"onUpdate:variable": I
|
|
53
56
|
}, null, 8, ["values", "variables"])
|
|
54
57
|
])
|
|
55
58
|
]),
|
|
56
|
-
(
|
|
57
|
-
|
|
58
|
-
|
|
59
|
+
(u = t.value) != null && u.description ? (f(), b("div", {
|
|
60
|
+
key: 0,
|
|
61
|
+
id: v,
|
|
62
|
+
muted: ""
|
|
63
|
+
}, [
|
|
64
|
+
r("div", q, [
|
|
65
|
+
a(y(N), {
|
|
59
66
|
value: t.value.description
|
|
60
67
|
}, null, 8, ["value"])
|
|
61
68
|
])
|
|
@@ -65,5 +72,5 @@ const g = (r) => (U("data-v-7b6cd311"), r = r(), I(), r), y = { key: 0 }, E = /*
|
|
|
65
72
|
}
|
|
66
73
|
});
|
|
67
74
|
export {
|
|
68
|
-
|
|
75
|
+
J as default
|
|
69
76
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerUrl.vue.d.ts","sourceRoot":"","sources":["../../../src/features/BaseUrl/ServerUrl.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ServerUrl.vue.d.ts","sourceRoot":"","sources":["../../../src/features/BaseUrl/ServerUrl.vue"],"names":[],"mappings":"AAqDA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAGlD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;;aAKxC,MAAM;gBACH,oBAAoB;;aADvB,MAAM;gBACH,oBAAoB;;AAiElC,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,8 +1,7 @@
|
|
|
1
1
|
import r from "./ServerUrl.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
/* empty css */
|
|
4
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ o(r, [["__scopeId", "data-v-fe287df9"]]);
|
|
6
5
|
export {
|
|
7
|
-
|
|
6
|
+
m as default
|
|
8
7
|
};
|
|
@@ -1,29 +1,27 @@
|
|
|
1
|
-
import { defineComponent as u, computed as
|
|
2
|
-
import { replaceVariables as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as u, computed as p, openBlock as i, createElementBlock as m } from "vue";
|
|
2
|
+
import { replaceVariables as v } from "@scalar/oas-utils/helpers";
|
|
3
|
+
const _ = ["innerHTML"], d = /* @__PURE__ */ u({
|
|
4
4
|
__name: "ServerUrl",
|
|
5
5
|
props: {
|
|
6
6
|
server: {},
|
|
7
7
|
variables: {}
|
|
8
8
|
},
|
|
9
9
|
setup(a) {
|
|
10
|
-
const
|
|
10
|
+
const e = a, o = p(() => {
|
|
11
11
|
var s;
|
|
12
|
-
const
|
|
13
|
-
return
|
|
14
|
-
var
|
|
15
|
-
const
|
|
16
|
-
return `<span class="base-url-variable">${
|
|
12
|
+
const r = (((s = e.server) == null ? void 0 : s.url) ?? "").replace(/(<([^>]+)>)/gi, "");
|
|
13
|
+
return v(r, (n) => {
|
|
14
|
+
var l;
|
|
15
|
+
const t = ((l = e.variables) == null ? void 0 : l[n]) ?? "";
|
|
16
|
+
return `<span class="base-url-variable">${t !== "" ? t : `{${n}}`}</span>`;
|
|
17
17
|
});
|
|
18
18
|
});
|
|
19
|
-
return (
|
|
20
|
-
key: 0,
|
|
19
|
+
return (c, r) => (i(), m("span", {
|
|
21
20
|
class: "base-url",
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}, null, 8, f)) : v("", !0);
|
|
21
|
+
innerHTML: o.value
|
|
22
|
+
}, null, 8, _));
|
|
25
23
|
}
|
|
26
24
|
});
|
|
27
25
|
export {
|
|
28
|
-
|
|
26
|
+
d as default
|
|
29
27
|
};
|
|
@@ -5,11 +5,13 @@ declare function __VLS_template(): {
|
|
|
5
5
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
6
6
|
options: Server[];
|
|
7
7
|
modelValue: number;
|
|
8
|
+
describedBy?: string;
|
|
8
9
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
10
|
"update:modelValue": (v: number) => void;
|
|
10
11
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
11
12
|
options: Server[];
|
|
12
13
|
modelValue: number;
|
|
14
|
+
describedBy?: string;
|
|
13
15
|
}>>> & {
|
|
14
16
|
"onUpdate:modelValue"?: ((v: number) => any) | undefined;
|
|
15
17
|
}, {}, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerUrlSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/features/BaseUrl/ServerUrlSelect.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ServerUrlSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/features/BaseUrl/ServerUrlSelect.vue"],"names":[],"mappings":"AA+FA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAoClD,iBAAS,cAAc;qBAwEO,GAAG;EAoBhC;AACD,QAAA,MAAM,eAAe;aA3HV,MAAM,EAAE;gBACL,MAAM;kBACJ,MAAM;;;;aAFX,MAAM,EAAE;gBACL,MAAM;kBACJ,MAAM;;;UAgIpB,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,7 +1,7 @@
|
|
|
1
1
|
import r from "./ServerUrlSelect.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const m = /* @__PURE__ */
|
|
3
|
+
import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ e(r, [["__scopeId", "data-v-f41e881b"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|