@scalar/api-client 2.2.42 → 2.2.44
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 +32 -0
- package/dist/layouts/App/create-api-client-app.d.ts +29 -29
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +58 -58
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +29 -29
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +29 -29
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/find-request.d.ts +1 -1
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/send-request/send-request.d.ts +8 -10
- package/dist/libs/send-request/send-request.d.ts.map +1 -1
- package/dist/libs/send-request/send-request.js +100 -100
- package/dist/store/active-entities.d.ts +5 -3
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/collections.d.ts +12 -12
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/import-spec.d.ts +2 -2
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/requests.d.ts +13 -13
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/security-schemes.js +25 -25
- package/dist/store/store.d.ts +29 -29
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +4 -4
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +5 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +60 -58
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +10 -7
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +103 -115
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +9 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +52 -44
- package/dist/views/Request/RequestSection/RequestAuth/{RequestExampleAuth.vue.d.ts → RequestAuthTab.vue.d.ts} +7 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +7 -0
- package/dist/views/Request/RequestSection/RequestAuth/{RequestExampleAuth.vue2.js → RequestAuthTab.vue2.js} +68 -62
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +107 -97
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +2 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +78 -67
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/libs/auth.d.ts +22 -2
- package/dist/views/Request/libs/auth.d.ts.map +1 -1
- package/dist/views/Request/libs/auth.js +56 -5
- package/dist/views/Request/libs/index.js +9 -6
- package/package.json +12 -12
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +0 -7
|
@@ -1,6 +1,14 @@
|
|
|
1
|
+
import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
|
|
2
|
+
import type { Workspace } from '@scalar/oas-utils/entities/workspace';
|
|
1
3
|
type __VLS_Props = {
|
|
2
|
-
|
|
4
|
+
collection: Collection;
|
|
3
5
|
layout: 'client' | 'reference';
|
|
6
|
+
selectedSchemeOptions: {
|
|
7
|
+
id: string;
|
|
8
|
+
label: string;
|
|
9
|
+
}[];
|
|
10
|
+
server: Server | undefined;
|
|
11
|
+
workspace: Workspace;
|
|
4
12
|
};
|
|
5
13
|
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, {}, HTMLFormElement>;
|
|
6
14
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestAuthDataTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestAuthDataTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue"],"names":[],"mappings":"AAiMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAQrE,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,qBAAqB,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AA+MF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./RequestAuthDataTable.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-b74275b0"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,74 +1,82 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as b, ref as m, computed as y, watch as k, openBlock as r, createElementBlock as s, withModifiers as w, Fragment as x, renderList as S, normalizeClass as p, createElementVNode as n, toDisplayString as g, createCommentVNode as h, createBlock as C, unref as c, withCtx as _, createVNode as f } from "vue";
|
|
2
2
|
import { useModal as z } from "@scalar/components";
|
|
3
|
-
import
|
|
4
|
-
import M from "./
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
import { useWorkspace as B } from "../../../../store/store.js";
|
|
8
|
-
const E = {
|
|
3
|
+
import O from "./DeleteRequestAuthModal.vue.js";
|
|
4
|
+
import M from "./RequestAuthTab.vue.js";
|
|
5
|
+
import N from "../../../../components/DataTable/DataTable.vue.js";
|
|
6
|
+
const $ = {
|
|
9
7
|
key: 0,
|
|
10
8
|
class: "border-t flex px-3 flex-wrap gap-x-2.5 overflow-hidden"
|
|
11
|
-
},
|
|
9
|
+
}, A = ["onClick"], B = { class: "whitespace-nowrap font-medium z-10 relative" }, V = {
|
|
12
10
|
key: 0,
|
|
13
11
|
class: "absolute bottom-[var(--scalar-border-width)] z-1 inset-x-1 h-px bg-current left-1/2 -translate-x-1/2 w-full"
|
|
14
|
-
},
|
|
12
|
+
}, q = {
|
|
15
13
|
key: 2,
|
|
16
14
|
class: "text-c-3 px-4 text-sm border-t min-h-16 justify-center flex items-center bg-b-1"
|
|
17
|
-
},
|
|
15
|
+
}, F = /* @__PURE__ */ b({
|
|
18
16
|
__name: "RequestAuthDataTable",
|
|
19
17
|
props: {
|
|
20
|
-
|
|
21
|
-
layout: {}
|
|
18
|
+
collection: {},
|
|
19
|
+
layout: { default: "client" },
|
|
20
|
+
selectedSchemeOptions: { default: () => [] },
|
|
21
|
+
server: {},
|
|
22
|
+
workspace: {}
|
|
22
23
|
},
|
|
23
|
-
setup(
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
()
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
setup(i) {
|
|
25
|
+
const u = z(), v = m(null), o = m(0), d = y(() => {
|
|
26
|
+
const e = i.selectedSchemeOptions[o.value];
|
|
27
|
+
if (!e) return [];
|
|
28
|
+
const t = e == null ? void 0 : e.id.split(",");
|
|
29
|
+
return t.length > 1 ? t : [e.id];
|
|
30
|
+
});
|
|
31
|
+
return k(
|
|
32
|
+
() => i.selectedSchemeOptions,
|
|
33
|
+
(e) => {
|
|
34
|
+
e[o.value] || (o.value = Math.max(0, o.value - 1));
|
|
29
35
|
}
|
|
30
|
-
), (
|
|
31
|
-
onSubmit:
|
|
36
|
+
), (e, t) => (r(), s("form", {
|
|
37
|
+
onSubmit: t[1] || (t[1] = w(() => {
|
|
32
38
|
}, ["prevent"]))
|
|
33
39
|
}, [
|
|
34
|
-
|
|
35
|
-
(r(!0),
|
|
36
|
-
key:
|
|
37
|
-
class: p(["flex relative h-8 z-1 cursor-pointer -mb-[var(--scalar-border-width)]", [
|
|
40
|
+
e.selectedSchemeOptions.length > 1 ? (r(), s("div", $, [
|
|
41
|
+
(r(!0), s(x, null, S(e.selectedSchemeOptions, (l, a) => (r(), s("div", {
|
|
42
|
+
key: l.id,
|
|
43
|
+
class: p(["flex relative h-8 z-1 cursor-pointer -mb-[var(--scalar-border-width)]", [o.value === a ? "text-c-1" : "text-c-3"]])
|
|
38
44
|
}, [
|
|
39
45
|
n("button", {
|
|
40
46
|
class: "floating-bg py-1 text-sm border-b-[1px] border-transparent relative cursor-pointer font-medium",
|
|
41
47
|
type: "button",
|
|
42
|
-
onClick: (
|
|
48
|
+
onClick: (D) => o.value = a
|
|
43
49
|
}, [
|
|
44
|
-
n("span",
|
|
45
|
-
], 8,
|
|
46
|
-
|
|
47
|
-
|
|
50
|
+
n("span", B, g(l.label), 1)
|
|
51
|
+
], 8, A),
|
|
52
|
+
t[2] || (t[2] = n("div", { class: "absolute bottom-0 z-0 -inset-x-96 h-[var(--scalar-border-width)] bg-border" }, null, -1)),
|
|
53
|
+
o.value === a ? (r(), s("div", V)) : h("", !0)
|
|
48
54
|
], 2))), 128))
|
|
49
|
-
])) :
|
|
50
|
-
|
|
55
|
+
])) : h("", !0),
|
|
56
|
+
d.value.length ? (r(), C(c(N), {
|
|
51
57
|
key: 1,
|
|
52
|
-
class: p(["flex-1",
|
|
58
|
+
class: p(["flex-1", e.layout === "reference" && "border-0"]),
|
|
53
59
|
columns: [""]
|
|
54
60
|
}, {
|
|
55
|
-
default:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
61
|
+
default: _(() => [
|
|
62
|
+
f(M, {
|
|
63
|
+
collection: e.collection,
|
|
64
|
+
layout: e.layout,
|
|
65
|
+
securitySchemeUids: d.value,
|
|
66
|
+
server: e.server,
|
|
67
|
+
workspace: e.workspace
|
|
68
|
+
}, null, 8, ["collection", "layout", "securitySchemeUids", "server", "workspace"])
|
|
60
69
|
]),
|
|
61
70
|
_: 1
|
|
62
|
-
}, 8, ["class"])) :
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
onClose: s[0] || (s[0] = (a) => l(m).hide())
|
|
71
|
+
}, 8, ["class"])) : (r(), s("div", q, " No authentication selected ")),
|
|
72
|
+
f(O, {
|
|
73
|
+
scheme: v.value,
|
|
74
|
+
state: c(u),
|
|
75
|
+
onClose: t[0] || (t[0] = (l) => c(u).hide())
|
|
68
76
|
}, null, 8, ["scheme", "state"])
|
|
69
77
|
], 32));
|
|
70
78
|
}
|
|
71
79
|
});
|
|
72
80
|
export {
|
|
73
|
-
|
|
81
|
+
F as default
|
|
74
82
|
};
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import type { Workspace } from '@scalar/oas-utils/entities';
|
|
2
|
+
import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
|
|
1
3
|
type __VLS_Props = {
|
|
2
|
-
|
|
4
|
+
collection: Collection;
|
|
3
5
|
layout: 'client' | 'reference';
|
|
6
|
+
securitySchemeUids: string[];
|
|
7
|
+
server: Server | undefined;
|
|
8
|
+
workspace: Workspace;
|
|
4
9
|
};
|
|
5
10
|
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>;
|
|
6
11
|
export default _default;
|
|
7
|
-
//# sourceMappingURL=
|
|
12
|
+
//# sourceMappingURL=RequestAuthTab.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestAuthTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue"],"names":[],"mappings":"AAsNA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,EACV,UAAU,EAEV,MAAM,EACP,MAAM,iCAAiC,CAAA;AASxC,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,kBAAkB,EAAE,MAAM,EAAE,CAAA;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AAgYJ,wBAMG"}
|
|
@@ -1,88 +1,91 @@
|
|
|
1
|
-
import { defineComponent as K, computed as F, ref as I, openBlock as
|
|
2
|
-
import N from "
|
|
1
|
+
import { defineComponent as K, computed as F, ref as I, openBlock as o, createElementBlock as n, Fragment as i, renderList as w, createBlock as x, unref as s, normalizeClass as U, withCtx as r, createVNode as u, createTextVNode as y, toDisplayString as c, createCommentVNode as b, createElementVNode as C, capitalize as m } from "vue";
|
|
2
|
+
import { useWorkspace as N } from "../../../../store/store.js";
|
|
3
|
+
import j from "./OAuth2.vue.js";
|
|
3
4
|
import v from "./RequestAuthDataTableInput.vue.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { useWorkspace as q } from "../../../../store/store.js";
|
|
5
|
+
import f from "../../../../components/DataTable/DataTableRow.vue.js";
|
|
6
|
+
import q from "../../../../components/DataTable/DataTableCell.vue.js";
|
|
7
7
|
const R = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "border-t min-h-8 flex text-sm"
|
|
10
|
-
}, z = { class: "flex h-8 gap-2.5 px-3 max-w-full overflow-x-auto" },
|
|
10
|
+
}, z = { class: "flex h-8 gap-2.5 px-3 max-w-full overflow-x-auto" }, M = ["onClick"], P = { class: "z-10 relative" }, Q = {
|
|
11
11
|
key: 4,
|
|
12
12
|
class: "border-t text-c-3 px-4 text-sm min-h-16 justify-center flex items-center bg-b-1"
|
|
13
13
|
}, G = /* @__PURE__ */ K({
|
|
14
|
-
__name: "
|
|
14
|
+
__name: "RequestAuthTab",
|
|
15
15
|
props: {
|
|
16
|
-
|
|
17
|
-
layout: {}
|
|
16
|
+
collection: {},
|
|
17
|
+
layout: {},
|
|
18
|
+
securitySchemeUids: {},
|
|
19
|
+
server: {},
|
|
20
|
+
workspace: {}
|
|
18
21
|
},
|
|
19
|
-
setup(
|
|
20
|
-
const { securitySchemes:
|
|
21
|
-
() =>
|
|
22
|
-
scheme:
|
|
22
|
+
setup($) {
|
|
23
|
+
const { securitySchemes: g, securitySchemeMutators: T } = N(), _ = F(
|
|
24
|
+
() => $.securitySchemeUids.map((t) => ({
|
|
25
|
+
scheme: g[t]
|
|
23
26
|
}))
|
|
24
|
-
), d = I(""),
|
|
27
|
+
), d = I(""), S = (t) => {
|
|
25
28
|
if (t.type === "apiKey")
|
|
26
|
-
return `${
|
|
29
|
+
return `${m(t.nameKey)}: ${t.in}`;
|
|
27
30
|
if (t.type === "oauth2") {
|
|
28
31
|
const l = Object.values(t.flows ?? {})[0];
|
|
29
|
-
return `${
|
|
32
|
+
return `${m(t.nameKey)}: ${d.value ? d.value : (l == null ? void 0 : l.type) ?? ""}`;
|
|
30
33
|
}
|
|
31
|
-
return t.type === "http" ? `${
|
|
32
|
-
}, V = (t, l, e) =>
|
|
33
|
-
return (t, l) => (
|
|
34
|
+
return t.type === "http" ? `${m(t.nameKey)}: ${t.scheme}` : `${m(t.nameKey)}: ${t.type}`;
|
|
35
|
+
}, V = (t, l, e) => T.edit(t, l, e);
|
|
36
|
+
return (t, l) => (o(!0), n(i, null, w(_.value, ({ scheme: e }, B) => (o(), n(i, {
|
|
34
37
|
key: e == null ? void 0 : e.uid
|
|
35
38
|
}, [
|
|
36
|
-
|
|
39
|
+
_.value.length > 1 ? (o(), x(s(f), {
|
|
37
40
|
key: 0,
|
|
38
41
|
class: U({
|
|
39
42
|
"request-example-references-header": t.layout === "reference"
|
|
40
43
|
})
|
|
41
44
|
}, {
|
|
42
|
-
default:
|
|
43
|
-
u(
|
|
45
|
+
default: r(() => [
|
|
46
|
+
u(s(q), {
|
|
44
47
|
class: U([
|
|
45
48
|
"text-c-3 pl-2 font-medium flex items-center",
|
|
46
49
|
t.layout === "reference" && `border-t ${B !== 0 ? "mt-2" : ""}`
|
|
47
50
|
])
|
|
48
51
|
}, {
|
|
49
|
-
default:
|
|
50
|
-
y(
|
|
52
|
+
default: r(() => [
|
|
53
|
+
y(c(S(e)), 1)
|
|
51
54
|
]),
|
|
52
55
|
_: 2
|
|
53
56
|
}, 1032, ["class"])
|
|
54
57
|
]),
|
|
55
58
|
_: 2
|
|
56
59
|
}, 1032, ["class"])) : b("", !0),
|
|
57
|
-
(e == null ? void 0 : e.type) === "http" ? (
|
|
58
|
-
e.scheme === "bearer" ? (
|
|
59
|
-
default:
|
|
60
|
+
(e == null ? void 0 : e.type) === "http" ? (o(), n(i, { key: 1 }, [
|
|
61
|
+
e.scheme === "bearer" ? (o(), x(s(f), { key: 0 }, {
|
|
62
|
+
default: r(() => [
|
|
60
63
|
u(v, {
|
|
61
64
|
containerClass: t.layout === "reference" && "border-t",
|
|
62
65
|
modelValue: e.token,
|
|
63
66
|
placeholder: "Token",
|
|
64
67
|
type: "password",
|
|
65
|
-
"onUpdate:modelValue": (
|
|
68
|
+
"onUpdate:modelValue": (a) => V(e.uid, "token", a)
|
|
66
69
|
}, {
|
|
67
|
-
default:
|
|
70
|
+
default: r(() => l[0] || (l[0] = [
|
|
68
71
|
y(" Bearer Token ")
|
|
69
72
|
])),
|
|
70
73
|
_: 2
|
|
71
74
|
}, 1032, ["containerClass", "modelValue", "onUpdate:modelValue"])
|
|
72
75
|
]),
|
|
73
76
|
_: 2
|
|
74
|
-
}, 1024)) : (e == null ? void 0 : e.scheme) === "basic" ? (
|
|
75
|
-
u(f
|
|
76
|
-
default:
|
|
77
|
+
}, 1024)) : (e == null ? void 0 : e.scheme) === "basic" ? (o(), n(i, { key: 1 }, [
|
|
78
|
+
u(s(f), null, {
|
|
79
|
+
default: r(() => [
|
|
77
80
|
u(v, {
|
|
78
81
|
class: "text-c-2",
|
|
79
82
|
containerClass: t.layout === "reference" && "auth-blend-required border-t",
|
|
80
83
|
modelValue: e.username,
|
|
81
84
|
placeholder: "janedoe",
|
|
82
85
|
required: "",
|
|
83
|
-
"onUpdate:modelValue": (
|
|
86
|
+
"onUpdate:modelValue": (a) => V(e.uid, "username", a)
|
|
84
87
|
}, {
|
|
85
|
-
default:
|
|
88
|
+
default: r(() => l[1] || (l[1] = [
|
|
86
89
|
y(" Username ")
|
|
87
90
|
])),
|
|
88
91
|
_: 2
|
|
@@ -90,15 +93,15 @@ const R = {
|
|
|
90
93
|
]),
|
|
91
94
|
_: 2
|
|
92
95
|
}, 1024),
|
|
93
|
-
u(f
|
|
94
|
-
default:
|
|
96
|
+
u(s(f), null, {
|
|
97
|
+
default: r(() => [
|
|
95
98
|
u(v, {
|
|
96
99
|
modelValue: e.password,
|
|
97
100
|
placeholder: "********",
|
|
98
101
|
type: "password",
|
|
99
|
-
"onUpdate:modelValue": (
|
|
102
|
+
"onUpdate:modelValue": (a) => V(e.uid, "password", a)
|
|
100
103
|
}, {
|
|
101
|
-
default:
|
|
104
|
+
default: r(() => l[2] || (l[2] = [
|
|
102
105
|
y(" Password ")
|
|
103
106
|
])),
|
|
104
107
|
_: 2
|
|
@@ -107,16 +110,16 @@ const R = {
|
|
|
107
110
|
_: 2
|
|
108
111
|
}, 1024)
|
|
109
112
|
], 64)) : b("", !0)
|
|
110
|
-
], 64)) : (e == null ? void 0 : e.type) === "apiKey" ? (
|
|
111
|
-
u(f
|
|
112
|
-
default:
|
|
113
|
+
], 64)) : (e == null ? void 0 : e.type) === "apiKey" ? (o(), n(i, { key: 2 }, [
|
|
114
|
+
u(s(f), null, {
|
|
115
|
+
default: r(() => [
|
|
113
116
|
u(v, {
|
|
114
117
|
containerClass: t.layout === "reference" && "border-t",
|
|
115
118
|
modelValue: e.name,
|
|
116
119
|
placeholder: "api-key",
|
|
117
|
-
"onUpdate:modelValue": (
|
|
120
|
+
"onUpdate:modelValue": (a) => V(e.uid, "name", a)
|
|
118
121
|
}, {
|
|
119
|
-
default:
|
|
122
|
+
default: r(() => l[3] || (l[3] = [
|
|
120
123
|
y(" Name ")
|
|
121
124
|
])),
|
|
122
125
|
_: 2
|
|
@@ -124,14 +127,14 @@ const R = {
|
|
|
124
127
|
]),
|
|
125
128
|
_: 2
|
|
126
129
|
}, 1024),
|
|
127
|
-
u(f
|
|
128
|
-
default:
|
|
130
|
+
u(s(f), null, {
|
|
131
|
+
default: r(() => [
|
|
129
132
|
u(v, {
|
|
130
133
|
modelValue: e.value,
|
|
131
134
|
placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
|
|
132
|
-
"onUpdate:modelValue": (
|
|
135
|
+
"onUpdate:modelValue": (a) => V(e.uid, "value", a)
|
|
133
136
|
}, {
|
|
134
|
-
default:
|
|
137
|
+
default: r(() => l[4] || (l[4] = [
|
|
135
138
|
y(" Value ")
|
|
136
139
|
])),
|
|
137
140
|
_: 2
|
|
@@ -139,35 +142,38 @@ const R = {
|
|
|
139
142
|
]),
|
|
140
143
|
_: 2
|
|
141
144
|
}, 1024)
|
|
142
|
-
], 64)) : (e == null ? void 0 : e.type) === "oauth2" ? (
|
|
143
|
-
u(f
|
|
144
|
-
default:
|
|
145
|
-
Object.keys(e.flows).length > 1 ? (
|
|
146
|
-
|
|
147
|
-
(
|
|
145
|
+
], 64)) : (e == null ? void 0 : e.type) === "oauth2" ? (o(), n(i, { key: 3 }, [
|
|
146
|
+
u(s(f), null, {
|
|
147
|
+
default: r(() => [
|
|
148
|
+
Object.keys(e.flows).length > 1 ? (o(), n("div", R, [
|
|
149
|
+
C("div", z, [
|
|
150
|
+
(o(!0), n(i, null, w(e == null ? void 0 : e.flows, (a, p, k) => (o(), n("button", {
|
|
148
151
|
key: p,
|
|
149
152
|
class: U(["floating-bg py-1 text-sm border-b-[1px] border-transparent relative cursor-pointer font-medium text-c-3", {
|
|
150
153
|
"!text-c-1 !border-current border-b-[1px] !rounded-none": t.layout !== "reference" && (d.value === p || k === 0 && !d.value),
|
|
151
154
|
"!text-c-1 !border-current border-b-[1px] !rounded-none opacity-100": t.layout === "reference" && (d.value === p || k === 0 && !d.value)
|
|
152
155
|
}]),
|
|
153
156
|
type: "button",
|
|
154
|
-
onClick: (
|
|
157
|
+
onClick: (D) => d.value = p
|
|
155
158
|
}, [
|
|
156
|
-
|
|
157
|
-
], 10,
|
|
159
|
+
C("span", P, c(p), 1)
|
|
160
|
+
], 10, M))), 128))
|
|
158
161
|
])
|
|
159
162
|
])) : b("", !0)
|
|
160
163
|
]),
|
|
161
164
|
_: 2
|
|
162
165
|
}, 1024),
|
|
163
|
-
(
|
|
164
|
-
d.value === p || k === 0 && !d.value ? (
|
|
166
|
+
(o(!0), n(i, null, w(e == null ? void 0 : e.flows, (a, p, k) => (o(), n(i, { key: p }, [
|
|
167
|
+
d.value === p || k === 0 && !d.value ? (o(), x(j, {
|
|
165
168
|
key: 0,
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
+
collection: t.collection,
|
|
170
|
+
flow: a,
|
|
171
|
+
scheme: e,
|
|
172
|
+
server: t.server,
|
|
173
|
+
workspace: t.workspace
|
|
174
|
+
}, null, 8, ["collection", "flow", "scheme", "server", "workspace"])) : b("", !0)
|
|
169
175
|
], 64))), 128))
|
|
170
|
-
], 64)) : (e == null ? void 0 : e.type) === "openIdConnect" ? (
|
|
176
|
+
], 64)) : (e == null ? void 0 : e.type) === "openIdConnect" ? (o(), n("div", Q, " Coming soon ")) : b("", !0)
|
|
171
177
|
], 64))), 128));
|
|
172
178
|
}
|
|
173
179
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestBody.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestBody.vue"],"names":[],"mappings":"AAonBA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;AAy6BF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestBody.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5f71c977"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|