@scalar/api-client 2.2.27 → 2.2.29
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 +26 -0
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +1 -1
- package/dist/components/DataTable/DataTableInput.vue2.js +31 -32
- package/dist/components/DataTable/index.js +14 -14
- package/dist/components/Sidebar/SidebarList.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarList.vue.js +4 -4
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts +2 -0
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +39 -28
- package/dist/style.css +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +49 -43
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +56 -51
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts +3 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +38 -41
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +6 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +154 -44
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +3 -3
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +53 -192
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue2.js +84 -88
- package/dist/views/Request/RequestSection/RequestAuth/index.d.ts +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/index.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/index.js +4 -2
- package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +2 -2
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +60 -99
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +1 -1
- package/dist/views/Request/RequestSidebar.vue2.js +89 -90
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +10 -10
|
@@ -1,210 +1,71 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
import { ADD_AUTH_OPTIONS as ie } from "../../consts/new-auth-options.js";
|
|
10
|
-
import ne from "../../../../components/DataTable/DataTable.vue.js";
|
|
11
|
-
import M from "../../../../components/DataTable/DataTableRow.vue.js";
|
|
12
|
-
import re from "../../../../components/DataTable/DataTableHeader.vue.js";
|
|
13
|
-
import { useWorkspace as ae } from "../../../../store/store.js";
|
|
14
|
-
const ce = {
|
|
1
|
+
import { defineComponent as y, ref as f, computed as S, watch as x, openBlock as r, createElementBlock as l, Fragment as k, renderList as g, normalizeClass as p, createElementVNode as i, toDisplayString as w, unref as s, createCommentVNode as c, createBlock as _, withCtx as C, createVNode as v } from "vue";
|
|
2
|
+
import { useModal as U } from "@scalar/components";
|
|
3
|
+
import z from "./DeleteRequestAuthModal.vue.js";
|
|
4
|
+
import A from "./RequestExampleAuth.vue.js";
|
|
5
|
+
import { displaySchemeFormatter as N } from "../../libs/auth.js";
|
|
6
|
+
import $ from "../../../../components/DataTable/DataTable.vue.js";
|
|
7
|
+
import { useWorkspace as B } from "../../../../store/store.js";
|
|
8
|
+
const E = {
|
|
15
9
|
key: 0,
|
|
16
|
-
class: "flex
|
|
17
|
-
},
|
|
18
|
-
key: 1,
|
|
19
|
-
class: "pl-2"
|
|
20
|
-
}, de = {
|
|
21
|
-
key: 1,
|
|
22
|
-
class: "text-c-3 uppercase font-medium"
|
|
23
|
-
}, fe = {
|
|
10
|
+
class: "border-t flex px-3 flex-wrap gap-x-2.5 overflow-hidden"
|
|
11
|
+
}, M = ["onClick"], V = { class: "whitespace-nowrap font-medium z-10 relative" }, q = {
|
|
24
12
|
key: 0,
|
|
25
|
-
class: "border-1
|
|
26
|
-
},
|
|
13
|
+
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
|
+
}, D = {
|
|
15
|
+
key: 2,
|
|
16
|
+
class: "text-c-3 px-4 text-sm border-t min-h-16 justify-center flex items-center bg-b-1"
|
|
17
|
+
}, H = /* @__PURE__ */ y({
|
|
27
18
|
__name: "RequestAuthDataTable",
|
|
28
19
|
props: {
|
|
29
20
|
selectedSecuritySchemeUids: {},
|
|
30
21
|
layout: { default: "client" }
|
|
31
22
|
},
|
|
32
|
-
setup(
|
|
33
|
-
const {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
securitySchemeMutators: T
|
|
39
|
-
} = ae(), E = x(null), w = x(null), S = X(), q = x(void 0), A = `combobox-${le()}`, I = y(() => {
|
|
40
|
-
var l, i, n;
|
|
41
|
-
const e = (v.layout === "client" ? ((l = f.value) == null ? void 0 : l.security) ?? ((i = u.value) == null ? void 0 : i.security) : (n = u.value) == null ? void 0 : n.security) ?? [];
|
|
42
|
-
return { filteredRequirements: e.filter((o) => Object.keys(o).length), requirements: e };
|
|
43
|
-
}), O = y(() => {
|
|
44
|
-
var t;
|
|
45
|
-
return (((t = u.value) == null ? void 0 : t.securitySchemes) ?? []).map((l) => _[l]).filter(B);
|
|
46
|
-
}), z = y(
|
|
47
|
-
() => {
|
|
48
|
-
const e = [...O.value], t = [];
|
|
49
|
-
I.value.filteredRequirements.forEach((o) => {
|
|
50
|
-
const h = e.findIndex(
|
|
51
|
-
(j) => j.nameKey === Object.keys(o)[0]
|
|
52
|
-
);
|
|
53
|
-
h > -1 && e[h] && (t.push(e[h]), e.splice(h, 1));
|
|
54
|
-
});
|
|
55
|
-
const l = e.map(
|
|
56
|
-
(o) => R(o)
|
|
57
|
-
), i = t.map(
|
|
58
|
-
(o) => R(o)
|
|
59
|
-
), n = [
|
|
60
|
-
{ label: "Required authentication", options: i },
|
|
61
|
-
{ label: "Available authentication", options: l }
|
|
62
|
-
];
|
|
63
|
-
return b ? i.length ? n : l : (n.push({
|
|
64
|
-
label: "Add new authentication",
|
|
65
|
-
options: ie
|
|
66
|
-
}), n);
|
|
23
|
+
setup(u) {
|
|
24
|
+
const { securitySchemes: d } = B(), m = U(), b = f(null), e = f(0), h = S(() => u.selectedSecuritySchemeUids[e.value] || null);
|
|
25
|
+
return x(
|
|
26
|
+
() => u.selectedSecuritySchemeUids,
|
|
27
|
+
(t) => {
|
|
28
|
+
t[e.value] || (e.value = Math.max(0, e.value - 1));
|
|
67
29
|
}
|
|
68
|
-
),
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
const t = e.find((o) => o.payload), l = e.filter((o) => !o.payload).map(({ id: o }) => o);
|
|
89
|
-
if (t != null && t.payload) {
|
|
90
|
-
const o = T.add(
|
|
91
|
-
t.payload,
|
|
92
|
-
u.value.uid
|
|
93
|
-
);
|
|
94
|
-
o && l.push(o.uid);
|
|
95
|
-
}
|
|
96
|
-
g(l);
|
|
97
|
-
}
|
|
98
|
-
const C = (e) => {
|
|
99
|
-
var t;
|
|
100
|
-
g(
|
|
101
|
-
v.selectedSecuritySchemeUids.filter((l) => l !== e)
|
|
102
|
-
), (t = w.value) == null || t.$el.focus();
|
|
103
|
-
};
|
|
104
|
-
function K(e) {
|
|
105
|
-
q.value = e, S.show();
|
|
106
|
-
}
|
|
107
|
-
return (e, t) => (r(), c("form", null, [
|
|
108
|
-
a(s(ne), {
|
|
109
|
-
class: k(["flex-1", e.layout === "reference" && "border-0"]),
|
|
30
|
+
), (t, o) => (r(), l("form", null, [
|
|
31
|
+
t.selectedSecuritySchemeUids.length > 1 ? (r(), l("div", E, [
|
|
32
|
+
(r(!0), l(k, null, g(t.selectedSecuritySchemeUids, (a, n) => (r(), l("div", {
|
|
33
|
+
key: a,
|
|
34
|
+
class: p(["flex relative h-8 z-1 cursor-pointer -mb-[var(--scalar-border-width)]", [e.value === n ? "text-c-1" : "text-c-3"]])
|
|
35
|
+
}, [
|
|
36
|
+
i("button", {
|
|
37
|
+
class: "floating-bg py-1 text-sm border-b-[1px] border-transparent relative cursor-pointer font-medium",
|
|
38
|
+
type: "button",
|
|
39
|
+
onClick: (F) => e.value = n
|
|
40
|
+
}, [
|
|
41
|
+
i("span", V, w(s(d)[a] ? s(N)(s(d)[a]).label : ""), 1)
|
|
42
|
+
], 8, M),
|
|
43
|
+
o[1] || (o[1] = i("div", { class: "absolute bottom-0 z-0 -inset-x-96 h-[var(--scalar-border-width)] bg-border" }, null, -1)),
|
|
44
|
+
e.value === n ? (r(), l("div", q)) : c("", !0)
|
|
45
|
+
], 2))), 128))
|
|
46
|
+
])) : c("", !0),
|
|
47
|
+
h.value ? (r(), _(s($), {
|
|
48
|
+
key: 1,
|
|
49
|
+
class: p(["flex-1", t.layout === "reference" && "border-0"]),
|
|
110
50
|
columns: [""]
|
|
111
51
|
}, {
|
|
112
|
-
default:
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
class: k(["relative col-span-full cursor-pointer py-0 px-0 flex items-center", e.layout === "reference" && "border-0 min-h-0 mb-1.5"])
|
|
117
|
-
}, {
|
|
118
|
-
default: m(() => [
|
|
119
|
-
a(s(Y), {
|
|
120
|
-
ref_key: "comboboxRef",
|
|
121
|
-
ref: E,
|
|
122
|
-
class: "text-xs w-full",
|
|
123
|
-
fullWidth: "",
|
|
124
|
-
isDeletable: !s(b),
|
|
125
|
-
modelValue: p.value,
|
|
126
|
-
multiple: "",
|
|
127
|
-
options: z.value,
|
|
128
|
-
resize: "",
|
|
129
|
-
style: { "margin-left": "120px" },
|
|
130
|
-
teleport: `#${A}`,
|
|
131
|
-
onDelete: K,
|
|
132
|
-
"onUpdate:modelValue": F
|
|
133
|
-
}, {
|
|
134
|
-
default: m(() => [
|
|
135
|
-
a(s(Z), {
|
|
136
|
-
ref_key: "comboboxButtonRef",
|
|
137
|
-
ref: w,
|
|
138
|
-
class: "h-auto py-0 px-0 text-c-2 hover:text-c-1 font-normal justify-start -outline-offset-2",
|
|
139
|
-
fullWidth: "",
|
|
140
|
-
variant: "ghost"
|
|
141
|
-
}, {
|
|
142
|
-
default: m(() => [
|
|
143
|
-
e.layout === "client" ? (r(), c(D, { key: 0 }, [
|
|
144
|
-
t[3] || (t[3] = d("div", { class: "text-c-1 h-8 flex min-w-[94px] items-center pr-0 pl-2" }, " Auth Type ", -1)),
|
|
145
|
-
p.value.length ? (r(), c("div", ce, [
|
|
146
|
-
t[1] || (t[1] = d("div", { class: "fade-left" }, null, -1)),
|
|
147
|
-
d("div", ue, [
|
|
148
|
-
(r(!0), c(D, null, H(p.value, (l) => (r(), c("span", {
|
|
149
|
-
key: l.id,
|
|
150
|
-
class: "cm-pill flex items-center mx-0 h-fit pr-0.5 !bg-b-2 text-c-1"
|
|
151
|
-
}, [
|
|
152
|
-
L(P(l.label) + " ", 1),
|
|
153
|
-
a(s(ee), {
|
|
154
|
-
class: "cursor-pointer -ml-0.5 text-c-3 hover:text-c-1 rounded-full",
|
|
155
|
-
icon: "Close",
|
|
156
|
-
label: `Remove ${l.label}`,
|
|
157
|
-
size: "xs",
|
|
158
|
-
onClick: U((i) => C(l.id), ["stop"]),
|
|
159
|
-
onKeydown: G(U((i) => C(l.id), ["stop"]), ["enter"])
|
|
160
|
-
}, null, 8, ["label", "onClick", "onKeydown"])
|
|
161
|
-
]))), 128))
|
|
162
|
-
]),
|
|
163
|
-
t[2] || (t[2] = d("div", { class: "fade-right" }, null, -1))
|
|
164
|
-
])) : (r(), c("div", me, " None "))
|
|
165
|
-
], 64)) : (r(), c("div", de, " Authentication ")),
|
|
166
|
-
a(s(te), {
|
|
167
|
-
class: k(["min-w-3 mr-2.5", {
|
|
168
|
-
"ml-auto": e.layout === "client",
|
|
169
|
-
"ml-1": e.layout === "reference"
|
|
170
|
-
}]),
|
|
171
|
-
icon: "ChevronDown",
|
|
172
|
-
size: "xs"
|
|
173
|
-
}, null, 8, ["class"])
|
|
174
|
-
]),
|
|
175
|
-
_: 1
|
|
176
|
-
}, 512)
|
|
177
|
-
]),
|
|
178
|
-
_: 1
|
|
179
|
-
}, 8, ["isDeletable", "modelValue", "options", "teleport"])
|
|
180
|
-
]),
|
|
181
|
-
_: 1
|
|
182
|
-
}, 8, ["class"]),
|
|
183
|
-
e.layout === "reference" ? (r(), J(s(M), { key: 0 }, {
|
|
184
|
-
default: m(() => [
|
|
185
|
-
p.value.length ? $("", !0) : (r(), c("div", fe, " None "))
|
|
186
|
-
]),
|
|
187
|
-
_: 1
|
|
188
|
-
})) : $("", !0)
|
|
189
|
-
]),
|
|
190
|
-
_: 1
|
|
191
|
-
}),
|
|
192
|
-
a(se, {
|
|
193
|
-
layout: e.layout,
|
|
194
|
-
selectedSecuritySchemeUids: e.selectedSecuritySchemeUids
|
|
52
|
+
default: C(() => [
|
|
53
|
+
v(A, {
|
|
54
|
+
layout: t.layout,
|
|
55
|
+
selectedSecuritySchemeUids: [h.value]
|
|
195
56
|
}, null, 8, ["layout", "selectedSecuritySchemeUids"])
|
|
196
57
|
]),
|
|
197
58
|
_: 1
|
|
198
|
-
}, 8, ["class"]),
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
59
|
+
}, 8, ["class"])) : c("", !0),
|
|
60
|
+
t.selectedSecuritySchemeUids.length ? c("", !0) : (r(), l("div", D, " No authentication selected ")),
|
|
61
|
+
v(z, {
|
|
62
|
+
scheme: b.value,
|
|
63
|
+
state: s(m),
|
|
64
|
+
onClose: o[0] || (o[0] = (a) => s(m).hide())
|
|
65
|
+
}, null, 8, ["scheme", "state"])
|
|
205
66
|
]));
|
|
206
67
|
}
|
|
207
68
|
});
|
|
208
69
|
export {
|
|
209
|
-
|
|
70
|
+
H as default
|
|
210
71
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestExampleAuth.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestExampleAuth.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue"],"names":[],"mappings":"AAkNA,KAAK,WAAW,GAAG;IACjB,0BAA0B,EAAE,MAAM,EAAE,CAAA;IACpC,MAAM,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAA;CAChC,CAAC;;AA2XF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./RequestExampleAuth.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
4
|
+
const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-6b71d6c6"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -1,84 +1,86 @@
|
|
|
1
|
-
import { defineComponent as K, computed as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as K, computed as F, ref as I, openBlock as a, createElementBlock as n, Fragment as i, renderList as x, createBlock as _, unref as f, normalizeClass as U, withCtx as o, createVNode as u, createTextVNode as y, toDisplayString as C, createCommentVNode as b, createElementVNode as $, capitalize as m } from "vue";
|
|
2
|
+
import N from "./OAuth2.vue.js";
|
|
3
|
+
import v from "./RequestAuthDataTableInput.vue.js";
|
|
4
4
|
import s from "../../../../components/DataTable/DataTableRow.vue.js";
|
|
5
|
-
import
|
|
6
|
-
import { useWorkspace as
|
|
7
|
-
const
|
|
5
|
+
import j from "../../../../components/DataTable/DataTableCell.vue.js";
|
|
6
|
+
import { useWorkspace as q } from "../../../../store/store.js";
|
|
7
|
+
const R = {
|
|
8
|
+
key: 0,
|
|
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" }, E = ["onClick"], M = { class: "z-10 relative" }, P = {
|
|
11
|
+
key: 4,
|
|
12
|
+
class: "border-t text-c-3 px-4 text-sm min-h-16 justify-center flex items-center bg-b-1"
|
|
13
|
+
}, G = /* @__PURE__ */ K({
|
|
8
14
|
__name: "RequestExampleAuth",
|
|
9
15
|
props: {
|
|
10
16
|
selectedSecuritySchemeUids: {},
|
|
11
17
|
layout: { default: "client" }
|
|
12
18
|
},
|
|
13
|
-
setup(
|
|
14
|
-
const { securitySchemes: S, securitySchemeMutators:
|
|
15
|
-
() =>
|
|
19
|
+
setup(g) {
|
|
20
|
+
const { securitySchemes: S, securitySchemeMutators: c } = q(), w = F(
|
|
21
|
+
() => g.selectedSecuritySchemeUids.map((t) => ({
|
|
16
22
|
scheme: S[t]
|
|
17
23
|
}))
|
|
18
|
-
), d =
|
|
24
|
+
), d = I(""), T = (t) => {
|
|
19
25
|
if (t.type === "apiKey")
|
|
20
|
-
return `${
|
|
26
|
+
return `${m(t.nameKey)}: ${t.in}`;
|
|
21
27
|
if (t.type === "oauth2") {
|
|
22
28
|
const l = Object.values(t.flows ?? {})[0];
|
|
23
|
-
return `${
|
|
29
|
+
return `${m(t.nameKey)}: ${d.value ? d.value : (l == null ? void 0 : l.type) ?? ""}`;
|
|
24
30
|
}
|
|
25
|
-
return t.type === "http" ? `${
|
|
26
|
-
}, V = (t, l, e) =>
|
|
27
|
-
return (t, l) => (
|
|
31
|
+
return t.type === "http" ? `${m(t.nameKey)}: ${t.scheme}` : `${m(t.nameKey)}: ${t.type}`;
|
|
32
|
+
}, V = (t, l, e) => c.edit(t, l, e);
|
|
33
|
+
return (t, l) => (a(!0), n(i, null, x(w.value, ({ scheme: e }, B) => (a(), n(i, {
|
|
28
34
|
key: e == null ? void 0 : e.uid
|
|
29
35
|
}, [
|
|
30
|
-
|
|
36
|
+
w.value.length > 1 ? (a(), _(f(s), {
|
|
31
37
|
key: 0,
|
|
32
|
-
class:
|
|
38
|
+
class: U({ "request-example-references-header": t.layout === "reference" })
|
|
33
39
|
}, {
|
|
34
|
-
default:
|
|
35
|
-
|
|
36
|
-
class:
|
|
40
|
+
default: o(() => [
|
|
41
|
+
u(f(j), {
|
|
42
|
+
class: U([
|
|
37
43
|
"text-c-3 pl-2 font-medium flex items-center",
|
|
38
|
-
|
|
39
|
-
`bg-b-1 rounded-t border-t-1/2 ${F !== 0 ? "mt-2" : ""}`
|
|
40
|
-
)
|
|
44
|
+
t.layout === "reference" && `border-t ${B !== 0 ? "mt-2" : ""}`
|
|
41
45
|
])
|
|
42
46
|
}, {
|
|
43
|
-
default:
|
|
44
|
-
y(
|
|
47
|
+
default: o(() => [
|
|
48
|
+
y(C(T(e)), 1)
|
|
45
49
|
]),
|
|
46
50
|
_: 2
|
|
47
51
|
}, 1032, ["class"])
|
|
48
52
|
]),
|
|
49
53
|
_: 2
|
|
50
|
-
}, 1032, ["class"])) :
|
|
51
|
-
(e == null ? void 0 : e.type) === "http" ? (
|
|
52
|
-
e.scheme === "bearer" ? (
|
|
53
|
-
default:
|
|
54
|
-
|
|
55
|
-
containerClass:
|
|
54
|
+
}, 1032, ["class"])) : b("", !0),
|
|
55
|
+
(e == null ? void 0 : e.type) === "http" ? (a(), n(i, { key: 1 }, [
|
|
56
|
+
e.scheme === "bearer" ? (a(), _(f(s), { key: 0 }, {
|
|
57
|
+
default: o(() => [
|
|
58
|
+
u(v, {
|
|
59
|
+
containerClass: t.layout === "reference" && "border-t",
|
|
56
60
|
modelValue: e.token,
|
|
57
61
|
placeholder: "Token",
|
|
58
62
|
type: "password",
|
|
59
|
-
"onUpdate:modelValue": (
|
|
63
|
+
"onUpdate:modelValue": (r) => V(e.uid, "token", r)
|
|
60
64
|
}, {
|
|
61
|
-
default:
|
|
65
|
+
default: o(() => l[0] || (l[0] = [
|
|
62
66
|
y(" Bearer Token ")
|
|
63
67
|
])),
|
|
64
68
|
_: 2
|
|
65
69
|
}, 1032, ["containerClass", "modelValue", "onUpdate:modelValue"])
|
|
66
70
|
]),
|
|
67
71
|
_: 2
|
|
68
|
-
}, 1024)) : (e == null ? void 0 : e.scheme) === "basic" ? (
|
|
69
|
-
|
|
70
|
-
default:
|
|
71
|
-
|
|
72
|
+
}, 1024)) : (e == null ? void 0 : e.scheme) === "basic" ? (a(), n(i, { key: 1 }, [
|
|
73
|
+
u(f(s), null, {
|
|
74
|
+
default: o(() => [
|
|
75
|
+
u(v, {
|
|
72
76
|
class: "text-c-2",
|
|
73
|
-
containerClass:
|
|
74
|
-
"auth-blend-required bg-b-2 rounded-t border-t-1/2"
|
|
75
|
-
),
|
|
77
|
+
containerClass: t.layout === "reference" && "auth-blend-required border-t",
|
|
76
78
|
modelValue: e.username,
|
|
77
79
|
placeholder: "janedoe",
|
|
78
80
|
required: "",
|
|
79
|
-
"onUpdate:modelValue": (
|
|
81
|
+
"onUpdate:modelValue": (r) => V(e.uid, "username", r)
|
|
80
82
|
}, {
|
|
81
|
-
default:
|
|
83
|
+
default: o(() => l[1] || (l[1] = [
|
|
82
84
|
y(" Username ")
|
|
83
85
|
])),
|
|
84
86
|
_: 2
|
|
@@ -86,34 +88,33 @@ const E = { class: "flex flex-wrap px-2 items-center gap-1 py-1" }, M = ["onClic
|
|
|
86
88
|
]),
|
|
87
89
|
_: 2
|
|
88
90
|
}, 1024),
|
|
89
|
-
|
|
90
|
-
default:
|
|
91
|
-
|
|
92
|
-
containerClass: f("bg-b-2 rounded-b border-b-1/2"),
|
|
91
|
+
u(f(s), null, {
|
|
92
|
+
default: o(() => [
|
|
93
|
+
u(v, {
|
|
93
94
|
modelValue: e.password,
|
|
94
95
|
placeholder: "********",
|
|
95
96
|
type: "password",
|
|
96
|
-
"onUpdate:modelValue": (
|
|
97
|
+
"onUpdate:modelValue": (r) => V(e.uid, "password", r)
|
|
97
98
|
}, {
|
|
98
|
-
default:
|
|
99
|
+
default: o(() => l[2] || (l[2] = [
|
|
99
100
|
y(" Password ")
|
|
100
101
|
])),
|
|
101
102
|
_: 2
|
|
102
|
-
}, 1032, ["
|
|
103
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
103
104
|
]),
|
|
104
105
|
_: 2
|
|
105
106
|
}, 1024)
|
|
106
|
-
], 64)) :
|
|
107
|
-
], 64)) : (e == null ? void 0 : e.type) === "apiKey" ? (
|
|
108
|
-
|
|
109
|
-
default:
|
|
110
|
-
|
|
111
|
-
containerClass:
|
|
107
|
+
], 64)) : b("", !0)
|
|
108
|
+
], 64)) : (e == null ? void 0 : e.type) === "apiKey" ? (a(), n(i, { key: 2 }, [
|
|
109
|
+
u(f(s), null, {
|
|
110
|
+
default: o(() => [
|
|
111
|
+
u(v, {
|
|
112
|
+
containerClass: t.layout === "reference" && "border-t",
|
|
112
113
|
modelValue: e.name,
|
|
113
114
|
placeholder: "api-key",
|
|
114
|
-
"onUpdate:modelValue": (
|
|
115
|
+
"onUpdate:modelValue": (r) => V(e.uid, "name", r)
|
|
115
116
|
}, {
|
|
116
|
-
default:
|
|
117
|
+
default: o(() => l[3] || (l[3] = [
|
|
117
118
|
y(" Name ")
|
|
118
119
|
])),
|
|
119
120
|
_: 2
|
|
@@ -121,59 +122,54 @@ const E = { class: "flex flex-wrap px-2 items-center gap-1 py-1" }, M = ["onClic
|
|
|
121
122
|
]),
|
|
122
123
|
_: 2
|
|
123
124
|
}, 1024),
|
|
124
|
-
|
|
125
|
-
default:
|
|
126
|
-
|
|
127
|
-
containerClass: f("bg-b-2 rounded-b border-b-1/2"),
|
|
125
|
+
u(f(s), null, {
|
|
126
|
+
default: o(() => [
|
|
127
|
+
u(v, {
|
|
128
128
|
modelValue: e.value,
|
|
129
129
|
placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
|
|
130
|
-
"onUpdate:modelValue": (
|
|
130
|
+
"onUpdate:modelValue": (r) => V(e.uid, "value", r)
|
|
131
131
|
}, {
|
|
132
|
-
default:
|
|
132
|
+
default: o(() => l[4] || (l[4] = [
|
|
133
133
|
y(" Value ")
|
|
134
134
|
])),
|
|
135
135
|
_: 2
|
|
136
|
-
}, 1032, ["
|
|
136
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
137
137
|
]),
|
|
138
138
|
_: 2
|
|
139
139
|
}, 1024)
|
|
140
|
-
], 64)) : (e == null ? void 0 : e.type) === "oauth2" ? (
|
|
141
|
-
|
|
142
|
-
default:
|
|
143
|
-
Object.keys(e.flows).length > 1 ? (
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
"border-1/2 border-b-0 rounded-t bg-b-2": t.layout === "reference"
|
|
147
|
-
}])
|
|
148
|
-
}, [
|
|
149
|
-
l[5] || (l[5] = c("div", { class: "text-c-1 flex min-w-[94px] items-center pl-2 pr-0" }, " Flow ", -1)),
|
|
150
|
-
c("div", E, [
|
|
151
|
-
(r(!0), u(i, null, x(e == null ? void 0 : e.flows, (o, p, v) => (r(), u("button", {
|
|
140
|
+
], 64)) : (e == null ? void 0 : e.type) === "oauth2" ? (a(), n(i, { key: 3 }, [
|
|
141
|
+
u(f(s), null, {
|
|
142
|
+
default: o(() => [
|
|
143
|
+
Object.keys(e.flows).length > 1 ? (a(), n("div", R, [
|
|
144
|
+
$("div", z, [
|
|
145
|
+
(a(!0), n(i, null, x(e == null ? void 0 : e.flows, (r, p, k) => (a(), n("button", {
|
|
152
146
|
key: p,
|
|
153
|
-
class:
|
|
154
|
-
"
|
|
155
|
-
"
|
|
147
|
+
class: U(["floating-bg py-1 text-sm border-b-[1px] border-transparent relative cursor-pointer font-medium text-c-3", {
|
|
148
|
+
"!text-c-1 !border-current border-b-[1px] !rounded-none": t.layout === "client" && (d.value === p || k === 0 && !d.value),
|
|
149
|
+
"!text-c-1 !border-current border-b-[1px] !rounded-none opacity-100": t.layout === "reference" && (d.value === p || k === 0 && !d.value)
|
|
156
150
|
}]),
|
|
157
151
|
type: "button",
|
|
158
|
-
onClick: (
|
|
159
|
-
},
|
|
152
|
+
onClick: (Q) => d.value = p
|
|
153
|
+
}, [
|
|
154
|
+
$("span", M, C(p), 1)
|
|
155
|
+
], 10, E))), 128))
|
|
160
156
|
])
|
|
161
|
-
]
|
|
157
|
+
])) : b("", !0)
|
|
162
158
|
]),
|
|
163
159
|
_: 2
|
|
164
160
|
}, 1024),
|
|
165
|
-
(
|
|
166
|
-
d.value === p ||
|
|
161
|
+
(a(!0), n(i, null, x(e == null ? void 0 : e.flows, (r, p, k) => (a(), n(i, { key: p }, [
|
|
162
|
+
d.value === p || k === 0 && !d.value ? (a(), _(N, {
|
|
167
163
|
key: 0,
|
|
168
|
-
flow:
|
|
164
|
+
flow: r,
|
|
169
165
|
layout: t.layout,
|
|
170
166
|
scheme: e
|
|
171
|
-
}, null, 8, ["flow", "layout", "scheme"])) :
|
|
167
|
+
}, null, 8, ["flow", "layout", "scheme"])) : b("", !0)
|
|
172
168
|
], 64))), 128))
|
|
173
|
-
], 64)) :
|
|
169
|
+
], 64)) : (e == null ? void 0 : e.type) === "openIdConnect" ? (a(), n("div", P, " Coming soon ")) : b("", !0)
|
|
174
170
|
], 64))), 128));
|
|
175
171
|
}
|
|
176
172
|
});
|
|
177
173
|
export {
|
|
178
|
-
|
|
174
|
+
G as default
|
|
179
175
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,4BAA4B,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AAC5E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAA"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { default as
|
|
1
|
+
import { default as a } from "./RequestAuthDataTable.vue.js";
|
|
2
|
+
import { default as f } from "./RequestAuth.vue.js";
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
+
f as RequestAuth,
|
|
5
|
+
a as RequestAuthDataTable
|
|
4
6
|
};
|
|
@@ -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 f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-cdfe9ab6"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -68,10 +68,10 @@ const ve = {
|
|
|
68
68
|
const u = [...n];
|
|
69
69
|
u[e] = {
|
|
70
70
|
...u[e],
|
|
71
|
-
[a]: t || "",
|
|
72
71
|
value: ((l = u[e]) == null ? void 0 : l.value) || "",
|
|
73
72
|
key: ((r = u[e]) == null ? void 0 : r.key) || "",
|
|
74
|
-
enabled: ((d = u[e]) == null ? void 0 : d.enabled) ?? !1
|
|
73
|
+
enabled: ((d = u[e]) == null ? void 0 : d.enabled) ?? !1,
|
|
74
|
+
[a]: t || ""
|
|
75
75
|
}, (((f = u[e]) == null ? void 0 : f.key) !== "" || ((p = u[e]) == null ? void 0 : p.value) !== "") && (u[e].enabled = !0), ((h = u[e]) == null ? void 0 : h.key) === "" && ((k = u[e]) == null ? void 0 : k.value) === "" && u.splice(e, 1), i.edit(
|
|
76
76
|
o.value.uid,
|
|
77
77
|
"body.formData.value",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestParams.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestParams.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestParams.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestParams.vue"],"names":[],"mappings":"AA+MA,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,iCAAiC,CAAA;AAKxC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,cAAc,CAAC,YAAY,CAAC,CAAA;CAC7C,CAAC;;AAsQF,wBAOG"}
|