@scalar/api-reference 1.25.34 → 1.25.36
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 +10 -0
- package/dist/browser/standalone.js +6706 -6670
- 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.js +1 -1
- package/dist/components/Content/Content.vue2.js +19 -19
- 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,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as $, computed as M, openBlock as
|
|
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
2
|
import B from "./Lazy/Loading.vue.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import A from "./Introduction/Introduction.vue.js";
|
|
@@ -12,7 +12,7 @@ import I from "./Models/Models.vue.js";
|
|
|
12
12
|
import { useSidebar as W } from "../../hooks/useSidebar.js";
|
|
13
13
|
import { hasModels as j } from "../../helpers/hasModels.js";
|
|
14
14
|
import { getModels as h } from "../../helpers/getModels.js";
|
|
15
|
-
const q = /* @__PURE__ */ V('<div class="section-flare" data-v-
|
|
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__ */ $({
|
|
16
16
|
__name: "Content",
|
|
17
17
|
props: {
|
|
18
18
|
parsedSpec: {},
|
|
@@ -26,16 +26,16 @@ const q = /* @__PURE__ */ V('<div class="section-flare" data-v-00242079><div cla
|
|
|
26
26
|
() => l.layout === "accordion" ? "after" : "aside"
|
|
27
27
|
);
|
|
28
28
|
return (e, H) => {
|
|
29
|
-
var c, m, u
|
|
30
|
-
return
|
|
29
|
+
var c, f, m, u;
|
|
30
|
+
return r(), o(t, null, [
|
|
31
31
|
q,
|
|
32
32
|
y("div", D, [
|
|
33
33
|
p(e.$slots, "start", {}, void 0, !0),
|
|
34
|
-
i(
|
|
34
|
+
i(a(B), {
|
|
35
35
|
layout: e.layout,
|
|
36
36
|
parsedSpec: e.parsedSpec
|
|
37
37
|
}, null, 8, ["layout", "parsedSpec"]),
|
|
38
|
-
(
|
|
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), {
|
|
39
39
|
key: 0,
|
|
40
40
|
info: e.parsedSpec.info,
|
|
41
41
|
parsedSpec: e.parsedSpec
|
|
@@ -44,24 +44,24 @@ const q = /* @__PURE__ */ V('<div class="section-flare" data-v-00242079><div cla
|
|
|
44
44
|
y("div", {
|
|
45
45
|
class: N(["introduction-card", { "introduction-card-row": e.layout === "accordion" }])
|
|
46
46
|
}, [
|
|
47
|
-
i(
|
|
47
|
+
i(a(E), {
|
|
48
48
|
class: "introduction-card-item",
|
|
49
49
|
defaultServerUrl: e.baseServerURL,
|
|
50
50
|
servers: l.servers,
|
|
51
51
|
specification: e.parsedSpec
|
|
52
52
|
}, null, 8, ["defaultServerUrl", "servers", "specification"]),
|
|
53
|
-
i(
|
|
53
|
+
i(a(R), {
|
|
54
54
|
class: "introduction-card-item",
|
|
55
55
|
parsedSpec: e.parsedSpec,
|
|
56
56
|
proxy: e.proxy
|
|
57
57
|
}, null, 8, ["parsedSpec", "proxy"]),
|
|
58
|
-
i(
|
|
58
|
+
i(a(z), { class: "introduction-card-item" })
|
|
59
59
|
], 2)
|
|
60
60
|
]),
|
|
61
61
|
_: 2
|
|
62
62
|
}, 1032, ["info", "parsedSpec"])) : p(e.$slots, "empty-state", { key: 1 }, void 0, !0),
|
|
63
|
-
e.parsedSpec.tags ? (
|
|
64
|
-
e.parsedSpec["x-tagGroups"] ? (
|
|
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
65
|
key: v.name,
|
|
66
66
|
layout: e.layout,
|
|
67
67
|
spec: e.parsedSpec,
|
|
@@ -69,24 +69,24 @@ const q = /* @__PURE__ */ V('<div class="section-flare" data-v-00242079><div cla
|
|
|
69
69
|
var S;
|
|
70
70
|
return (S = e.parsedSpec.tags) == null ? void 0 : S.find((C) => C.name === d);
|
|
71
71
|
}).filter((d) => !!d)
|
|
72
|
-
}, null, 8, ["layout", "spec", "tags"]))), 128)) : (
|
|
72
|
+
}, null, 8, ["layout", "spec", "tags"]))), 128)) : (r(), s(a(k), {
|
|
73
73
|
key: 1,
|
|
74
74
|
layout: e.layout,
|
|
75
75
|
spec: e.parsedSpec,
|
|
76
76
|
tags: e.parsedSpec.tags
|
|
77
77
|
}, null, 8, ["layout", "spec", "tags"]))
|
|
78
78
|
], 64)) : n("", !0),
|
|
79
|
-
e.parsedSpec.webhooks ? (
|
|
79
|
+
e.parsedSpec.webhooks ? (r(), s(a(F), {
|
|
80
80
|
key: 3,
|
|
81
81
|
webhooks: e.parsedSpec.webhooks
|
|
82
82
|
}, null, 8, ["webhooks"])) : n("", !0),
|
|
83
|
-
|
|
84
|
-
e.layout === "accordion" ? (
|
|
83
|
+
a(j)(e.parsedSpec) && !a(b) ? (r(), o(t, { key: 4 }, [
|
|
84
|
+
e.layout === "accordion" ? (r(), s(a(G), {
|
|
85
85
|
key: 0,
|
|
86
|
-
schemas:
|
|
87
|
-
}, null, 8, ["schemas"])) : (
|
|
86
|
+
schemas: a(h)(e.parsedSpec)
|
|
87
|
+
}, null, 8, ["schemas"])) : (r(), s(a(I), {
|
|
88
88
|
key: 1,
|
|
89
|
-
schemas:
|
|
89
|
+
schemas: a(h)(e.parsedSpec)
|
|
90
90
|
}, null, 8, ["schemas"]))
|
|
91
91
|
], 64)) : n("", !0),
|
|
92
92
|
p(e.$slots, "end", {}, void 0, !0)
|
|
@@ -96,5 +96,5 @@ const q = /* @__PURE__ */ V('<div class="section-flare" data-v-00242079><div cla
|
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
98
|
export {
|
|
99
|
-
|
|
99
|
+
se as default
|
|
100
100
|
};
|
|
@@ -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
|
};
|
|
@@ -1,56 +1,57 @@
|
|
|
1
|
-
import { defineComponent as f, computed as
|
|
2
|
-
import { ScalarListbox as
|
|
3
|
-
const B = { class: "
|
|
1
|
+
import { defineComponent as f, computed as r, openBlock as n, createBlock as d, unref as l, withCtx as i, createVNode as v, normalizeClass as V, createElementVNode as b, renderSlot as S, createCommentVNode as h } from "vue";
|
|
2
|
+
import { ScalarListbox as g, ScalarButton as _, ScalarIcon as y } from "@scalar/components";
|
|
3
|
+
const B = { class: "custom-scroll" }, x = /* @__PURE__ */ f({
|
|
4
4
|
__name: "ServerUrlSelect",
|
|
5
5
|
props: {
|
|
6
6
|
options: {},
|
|
7
|
-
modelValue: {}
|
|
7
|
+
modelValue: {},
|
|
8
|
+
describedBy: {}
|
|
8
9
|
},
|
|
9
10
|
emits: ["update:modelValue"],
|
|
10
|
-
setup(
|
|
11
|
-
const a =
|
|
11
|
+
setup(u, { emit: c }) {
|
|
12
|
+
const a = u, m = c, o = r(
|
|
12
13
|
() => a.options.map((e, t) => ({
|
|
13
14
|
id: t.toString(),
|
|
14
15
|
label: e.url ?? ""
|
|
15
16
|
}))
|
|
16
|
-
), s =
|
|
17
|
+
), s = r({
|
|
17
18
|
get: () => {
|
|
18
19
|
var e;
|
|
19
20
|
return (e = o.value) == null ? void 0 : e.find((t) => t.id === a.modelValue.toString());
|
|
20
21
|
},
|
|
21
22
|
set: (e) => m("update:modelValue", parseInt((e == null ? void 0 : e.id) ?? "", 10))
|
|
22
23
|
});
|
|
23
|
-
return (e, t) => (
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
o.value.length > 1 ? (r(), h(l(x), {
|
|
41
|
-
key: 0,
|
|
42
|
-
icon: "ChevronDown",
|
|
43
|
-
size: "xs"
|
|
44
|
-
})) : g("", !0)
|
|
24
|
+
return (e, t) => (n(), d(l(g), {
|
|
25
|
+
modelValue: s.value,
|
|
26
|
+
"onUpdate:modelValue": t[0] || (t[0] = (p) => s.value = p),
|
|
27
|
+
fullWidth: "",
|
|
28
|
+
options: o.value,
|
|
29
|
+
resize: ""
|
|
30
|
+
}, {
|
|
31
|
+
default: i(() => [
|
|
32
|
+
v(l(_), {
|
|
33
|
+
"aria-describedby": e.describedBy,
|
|
34
|
+
class: V(["url-select", { "pointer-events-none": o.value.length <= 1 }]),
|
|
35
|
+
fullWidth: "",
|
|
36
|
+
variant: "ghost"
|
|
37
|
+
}, {
|
|
38
|
+
default: i(() => [
|
|
39
|
+
b("span", B, [
|
|
40
|
+
S(e.$slots, "default", {}, void 0, !0)
|
|
45
41
|
]),
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
42
|
+
o.value.length > 1 ? (n(), d(l(y), {
|
|
43
|
+
key: 0,
|
|
44
|
+
icon: "ChevronDown",
|
|
45
|
+
size: "xs"
|
|
46
|
+
})) : h("", !0)
|
|
47
|
+
]),
|
|
48
|
+
_: 3
|
|
49
|
+
}, 8, ["aria-describedby", "class"])
|
|
50
|
+
]),
|
|
51
|
+
_: 3
|
|
52
|
+
}, 8, ["modelValue", "options"]));
|
|
52
53
|
}
|
|
53
54
|
});
|
|
54
55
|
export {
|
|
55
|
-
|
|
56
|
+
x as default
|
|
56
57
|
};
|
|
@@ -2,11 +2,15 @@ import type { ServerVariableValues, ServerVariables } from './types';
|
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
3
|
variables?: ServerVariables;
|
|
4
4
|
values?: ServerVariableValues;
|
|
5
|
+
/** The ID of the input controlled by the variables form */
|
|
6
|
+
controls?: string;
|
|
5
7
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
8
|
"update:variable": (name: string, value: string) => void;
|
|
7
9
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
8
10
|
variables?: ServerVariables;
|
|
9
11
|
values?: ServerVariableValues;
|
|
12
|
+
/** The ID of the input controlled by the variables form */
|
|
13
|
+
controls?: string;
|
|
10
14
|
}>>> & {
|
|
11
15
|
"onUpdate:variable"?: ((name: string, value: string) => any) | undefined;
|
|
12
16
|
}, {}, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerVariablesForm.vue.d.ts","sourceRoot":"","sources":["../../../src/features/BaseUrl/ServerVariablesForm.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ServerVariablesForm.vue.d.ts","sourceRoot":"","sources":["../../../src/features/BaseUrl/ServerVariablesForm.vue"],"names":[],"mappings":"AAwFA,OAAO,KAAK,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;;gBAKtD,eAAe;aAClB,oBAAoB;IAC7B,2DAA2D;eAChD,MAAM;;;;gBAHL,eAAe;aAClB,oBAAoB;IAC7B,2DAA2D;eAChD,MAAM;;;;AAmInB,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 r from "./ServerVariablesForm.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ o(r, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ o(r, [["__scopeId", "data-v-94bc9df6"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,53 +1,59 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import _ from "./
|
|
4
|
-
|
|
1
|
+
import { defineComponent as y, openBlock as o, createElementBlock as t, Fragment as V, renderList as C, createElementVNode as p, unref as m, toDisplayString as S, createBlock as f, createCommentVNode as $ } from "vue";
|
|
2
|
+
import { nanoid as B } from "nanoid";
|
|
3
|
+
import _ from "./ServerVariablesSelect.vue.js";
|
|
4
|
+
import j from "./ServerVariablesTextbox.vue.js";
|
|
5
|
+
const E = {
|
|
5
6
|
key: 0,
|
|
6
7
|
class: "variable-container"
|
|
7
|
-
},
|
|
8
|
+
}, F = ["for"], L = /* @__PURE__ */ y({
|
|
8
9
|
__name: "ServerVariablesForm",
|
|
9
10
|
props: {
|
|
10
11
|
variables: {},
|
|
11
|
-
values: {}
|
|
12
|
+
values: {},
|
|
13
|
+
controls: {}
|
|
12
14
|
},
|
|
13
15
|
emits: ["update:variable"],
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
16
|
-
function
|
|
17
|
-
|
|
16
|
+
setup(g, { emit: h }) {
|
|
17
|
+
const n = g, k = h, s = B();
|
|
18
|
+
function i(r, a) {
|
|
19
|
+
k("update:variable", r, a);
|
|
18
20
|
}
|
|
19
|
-
const
|
|
20
|
-
var
|
|
21
|
-
return (((
|
|
21
|
+
const c = (r) => {
|
|
22
|
+
var a, e;
|
|
23
|
+
return (((a = n.values) == null ? void 0 : a[r]) ?? ((e = n.variables) == null ? void 0 : e[r].default) ?? "").toString();
|
|
22
24
|
};
|
|
23
|
-
return (
|
|
24
|
-
(
|
|
25
|
-
var u, v,
|
|
26
|
-
return
|
|
25
|
+
return (r, a) => r.variables && Object.keys(r.variables ?? {}).length ? (o(), t("div", E, [
|
|
26
|
+
(o(!0), t(V, null, C(Object.keys(r.variables), (e) => {
|
|
27
|
+
var b, u, v, d;
|
|
28
|
+
return o(), t("div", {
|
|
27
29
|
key: e,
|
|
28
30
|
class: "variable-container-item"
|
|
29
31
|
}, [
|
|
30
|
-
|
|
32
|
+
p("label", {
|
|
31
33
|
class: "variable-label",
|
|
32
|
-
for:
|
|
34
|
+
for: `${m(s)}-variable-${e}`
|
|
33
35
|
}, [
|
|
34
|
-
|
|
35
|
-
], 8,
|
|
36
|
-
(
|
|
36
|
+
p("code", null, S(e), 1)
|
|
37
|
+
], 8, F),
|
|
38
|
+
(u = (b = r.variables) == null ? void 0 : b[e].enum) != null && u.length ? (o(), f(_, {
|
|
37
39
|
key: 0,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
controls: r.controls,
|
|
41
|
+
enum: ((d = (v = r.variables[e]) == null ? void 0 : v.enum) == null ? void 0 : d.map((l) => `${l}`)) ?? [],
|
|
42
|
+
label: e,
|
|
43
|
+
value: c(e),
|
|
44
|
+
onChange: (l) => i(e, l)
|
|
45
|
+
}, null, 8, ["controls", "enum", "label", "value", "onChange"])) : (o(), f(j, {
|
|
42
46
|
key: 1,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
47
|
+
id: `${m(s)}-variable-${e}`,
|
|
48
|
+
controls: r.controls,
|
|
49
|
+
value: c(e),
|
|
50
|
+
onChange: (l) => i(e, l)
|
|
51
|
+
}, null, 8, ["id", "controls", "value", "onChange"]))
|
|
46
52
|
]);
|
|
47
53
|
}), 128))
|
|
48
|
-
])) :
|
|
54
|
+
])) : $("", !0);
|
|
49
55
|
}
|
|
50
56
|
});
|
|
51
57
|
export {
|
|
52
|
-
|
|
58
|
+
L as default
|
|
53
59
|
};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
2
2
|
enum: string[];
|
|
3
3
|
value: string;
|
|
4
|
+
controls?: string;
|
|
4
5
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
6
|
change: (v: string) => void;
|
|
6
7
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
7
8
|
enum: string[];
|
|
8
9
|
value: string;
|
|
10
|
+
controls?: string;
|
|
9
11
|
}>>> & {
|
|
10
12
|
onChange?: ((v: string) => any) | undefined;
|
|
11
13
|
}, {}, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerVariablesSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/features/BaseUrl/ServerVariablesSelect.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ServerVariablesSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/features/BaseUrl/ServerVariablesSelect.vue"],"names":[],"mappings":";UAmFQ,MAAM,EAAE;WACP,MAAM;eACF,MAAM;;;;UAFX,MAAM,EAAE;WACP,MAAM;eACF,MAAM;;;;AA8GnB,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
|
-
import
|
|
1
|
+
import e from "./ServerVariablesSelect.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const m = /* @__PURE__ */ e
|
|
3
|
+
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ r(e, [["__scopeId", "data-v-1eae5319"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|