@scalar/api-client 2.0.34 → 2.0.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 +11 -0
- package/dist/components/DataTable/DataTableInput.vue.d.ts +7 -0
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +3 -3
- package/dist/components/DataTable/DataTableInput.vue2.js +33 -31
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts +19 -3
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +37 -35
- package/dist/components/DataTable/index.d.ts +1 -0
- package/dist/components/DataTable/index.d.ts.map +1 -1
- package/dist/components/DataTable/index.js +6 -4
- package/dist/components/SideNav/SideHelp.vue.d.ts +3 -0
- package/dist/components/SideNav/SideHelp.vue.d.ts.map +1 -0
- package/dist/components/SideNav/SideHelp.vue.js +125 -0
- package/dist/components/SideNav/SideHelp.vue2.js +4 -0
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +3 -3
- package/dist/components/SideNav/SideNav.vue2.js +28 -24
- package/dist/layouts/App/create-api-client-app.d.ts +512 -603
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/api-client-modal.d.ts +1036 -1218
- package/dist/layouts/Modal/api-client-modal.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +513 -603
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +58 -68
- package/dist/libs/local-storage.js +5 -5
- package/dist/libs/sendRequest.d.ts +2 -5
- package/dist/libs/sendRequest.d.ts.map +1 -1
- package/dist/libs/sendRequest.js +60 -63
- package/dist/store/workspace.d.ts +1037 -1219
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +350 -277
- package/dist/style.css +1 -1
- package/dist/views/Request/Request.vue.js +2 -2
- package/dist/views/Request/Request.vue2.js +22 -22
- package/dist/views/Request/RequestSection/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth.vue.js +270 -177
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +52 -42
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +141 -104
- package/dist/views/Request/components/OAuth2.vue.d.ts +3 -9
- package/dist/views/Request/components/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/components/OAuth2.vue.js +141 -112
- package/dist/views/Request/components/OAuthScopesInput.vue.d.ts +2 -6
- package/dist/views/Request/components/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/components/OAuthScopesInput.vue.js +35 -39
- package/dist/views/Request/consts/index.d.ts +2 -0
- package/dist/views/Request/consts/index.d.ts.map +1 -0
- package/dist/views/Request/consts/index.js +5 -0
- package/dist/views/Request/consts/new-auth-options.d.ts +92 -0
- package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -0
- package/dist/views/Request/consts/new-auth-options.js +83 -0
- package/dist/views/Request/libs/oauth2.d.ts +3 -16
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.js +28 -31
- package/package.json +10 -6
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { useWorkspace as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import { defineComponent as S, computed as f, ref as A, watch as k, openBlock as q, createBlock as R, withCtx as h, createVNode as l, unref as o, createElementVNode as u, createTextVNode as B, toDisplayString as C, withDirectives as i, vShow as a } from "vue";
|
|
2
|
+
import E from "../../../components/ContextBar.vue.js";
|
|
3
|
+
import O from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
4
|
+
import { useWorkspace as $ } from "../../../store/workspace.js";
|
|
5
|
+
import g from "./RequestAuth.vue.js";
|
|
6
|
+
import H from "./RequestBody.vue.js";
|
|
7
7
|
import r from "./RequestParams.vue.js";
|
|
8
|
-
import
|
|
9
|
-
import { ScalarIcon as
|
|
10
|
-
const
|
|
8
|
+
import P from "./RequestPathParams.vue.js";
|
|
9
|
+
import { ScalarIcon as T } from "@scalar/components";
|
|
10
|
+
const w = { class: "flex-1" }, K = { class: "text-c-3 pl-1" }, N = { class: "request-section-content custom-scroll flex flex-1 flex-col px-2 xl:px-5 py-2.5" }, W = /* @__PURE__ */ S({
|
|
11
11
|
__name: "RequestSection",
|
|
12
|
-
setup(
|
|
13
|
-
const {
|
|
12
|
+
setup(V) {
|
|
13
|
+
const {
|
|
14
|
+
activeRequest: s,
|
|
15
|
+
activeSecuritySchemes: _,
|
|
16
|
+
activeExample: m,
|
|
17
|
+
activeSecurityRequirements: d,
|
|
18
|
+
isReadOnly: y
|
|
19
|
+
} = $(), n = ["POST", "PUT", "PATCH", "DELETE"], x = f(() => {
|
|
14
20
|
const t = [
|
|
15
21
|
"All",
|
|
16
22
|
"Auth",
|
|
@@ -20,75 +26,79 @@ const T = { class: "flex-1" }, w = { class: "text-c-3 pl-1" }, K = { class: "req
|
|
|
20
26
|
"Query",
|
|
21
27
|
"Body"
|
|
22
28
|
];
|
|
23
|
-
return m.value.parameters.path.length || t.splice(t.indexOf("Request"), 1),
|
|
29
|
+
return m.value.parameters.path.length || t.splice(t.indexOf("Request"), 1), n.includes(s.value.method) || t.splice(t.indexOf("Body"), 1), p.value && t.splice(t.indexOf("Auth"), 1), t;
|
|
24
30
|
}), p = f(
|
|
25
|
-
() =>
|
|
31
|
+
() => y.value && (d.value.length === 0 || JSON.stringify(d.value) === "[{}]")
|
|
26
32
|
), e = A("All");
|
|
27
|
-
return
|
|
28
|
-
e.value === "Body" && !
|
|
29
|
-
}), (t, v) => (
|
|
30
|
-
title:
|
|
31
|
-
var
|
|
33
|
+
return k(s, (t) => {
|
|
34
|
+
e.value === "Body" && !n.includes(t.method) && (e.value = "All");
|
|
35
|
+
}), (t, v) => (q(), R(O, null, {
|
|
36
|
+
title: h(() => {
|
|
37
|
+
var c;
|
|
32
38
|
return [
|
|
33
|
-
l(
|
|
39
|
+
l(o(T), {
|
|
34
40
|
class: "text-c-3 mr-2",
|
|
35
41
|
icon: "ExternalLink",
|
|
36
42
|
size: "sm",
|
|
37
43
|
thickness: "2.5"
|
|
38
44
|
}),
|
|
39
|
-
u("div",
|
|
40
|
-
|
|
41
|
-
u("span",
|
|
45
|
+
u("div", w, [
|
|
46
|
+
B(" Request "),
|
|
47
|
+
u("span", K, C((c = o(s)) == null ? void 0 : c.summary), 1)
|
|
42
48
|
])
|
|
43
49
|
];
|
|
44
50
|
}),
|
|
45
|
-
default:
|
|
46
|
-
u("div",
|
|
47
|
-
l(
|
|
51
|
+
default: h(() => [
|
|
52
|
+
u("div", N, [
|
|
53
|
+
l(E, {
|
|
48
54
|
activeSection: e.value,
|
|
49
|
-
sections:
|
|
50
|
-
onSetActiveSection: v[0] || (v[0] = (
|
|
55
|
+
sections: x.value,
|
|
56
|
+
onSetActiveSection: v[0] || (v[0] = (c) => e.value = c)
|
|
51
57
|
}, null, 8, ["activeSection", "sections"]),
|
|
52
|
-
|
|
58
|
+
i(l(g, {
|
|
59
|
+
index: 0,
|
|
60
|
+
securityScheme: o(_)[0],
|
|
61
|
+
title: "Authentication"
|
|
62
|
+
}, null, 8, ["securityScheme"]), [
|
|
53
63
|
[
|
|
54
|
-
|
|
64
|
+
a,
|
|
55
65
|
!p.value && (e.value === "All" || e.value === "Auth")
|
|
56
66
|
]
|
|
57
67
|
]),
|
|
58
|
-
|
|
68
|
+
i(l(P, {
|
|
59
69
|
paramKey: "path",
|
|
60
70
|
title: "Path Variables"
|
|
61
71
|
}, null, 512), [
|
|
62
72
|
[
|
|
63
|
-
|
|
64
|
-
(e.value === "All" || e.value === "Request") &&
|
|
73
|
+
a,
|
|
74
|
+
(e.value === "All" || e.value === "Request") && o(m).parameters.path.length > 0
|
|
65
75
|
]
|
|
66
76
|
]),
|
|
67
|
-
|
|
77
|
+
i(l(r, {
|
|
68
78
|
paramKey: "cookies",
|
|
69
79
|
title: "Cookies"
|
|
70
80
|
}, null, 512), [
|
|
71
|
-
[
|
|
81
|
+
[a, e.value === "All" || e.value === "Cookies"]
|
|
72
82
|
]),
|
|
73
|
-
|
|
83
|
+
i(l(r, {
|
|
74
84
|
paramKey: "headers",
|
|
75
85
|
title: "Headers"
|
|
76
86
|
}, null, 512), [
|
|
77
|
-
[
|
|
87
|
+
[a, e.value === "All" || e.value === "Headers"]
|
|
78
88
|
]),
|
|
79
|
-
|
|
89
|
+
i(l(r, {
|
|
80
90
|
paramKey: "query",
|
|
81
91
|
title: "Query Parameters"
|
|
82
92
|
}, null, 512), [
|
|
83
|
-
[
|
|
93
|
+
[a, e.value === "All" || e.value === "Query"]
|
|
84
94
|
]),
|
|
85
|
-
|
|
95
|
+
i(l(H, {
|
|
86
96
|
body: "foo",
|
|
87
97
|
title: "Body"
|
|
88
98
|
}, null, 512), [
|
|
89
99
|
[
|
|
90
|
-
|
|
91
|
-
(e.value === "All" || e.value === "Body") &&
|
|
100
|
+
a,
|
|
101
|
+
(e.value === "All" || e.value === "Body") && n.includes(o(s).method)
|
|
92
102
|
]
|
|
93
103
|
])
|
|
94
104
|
])
|
|
@@ -98,5 +108,5 @@ const T = { class: "flex-1" }, w = { class: "text-c-3 pl-1" }, K = { class: "req
|
|
|
98
108
|
}
|
|
99
109
|
});
|
|
100
110
|
export {
|
|
101
|
-
|
|
111
|
+
W as default
|
|
102
112
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestSidebarItemMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItemMenu.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestSidebarItemMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItemMenu.vue"],"names":[],"mappings":"AA0MA,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACf,MAAM,2CAA2C,CAAA;;UAO1C,OAAO,GAAG,cAAc;;UAAxB,OAAO,GAAG,cAAc;;AAkdhC,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,117 +1,154 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
1
|
+
import { defineComponent as V, computed as q, ref as I, openBlock as E, createElementBlock as $, Fragment as B, createVNode as a, unref as e, withCtx as l, createBlock as A, createCommentVNode as F, createElementVNode as r, createTextVNode as C } from "vue";
|
|
2
|
+
import P from "../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
|
|
3
|
+
import { commandPaletteBus as T } from "../../libs/eventBusses/command-palette.js";
|
|
4
|
+
import { PathId as b } from "../../router.js";
|
|
5
|
+
import { useWorkspace as U } from "../../store/workspace.js";
|
|
6
|
+
import { useModal as g, ScalarDropdown as W, ScalarDropdownItem as p, ScalarIcon as u, ScalarButton as f, ScalarModal as N, ScalarTextField as j } from "@scalar/components";
|
|
7
|
+
import { useRouter as G } from "vue-router";
|
|
8
|
+
const H = /* @__PURE__ */ r("span", null, "Add Example", -1), J = /* @__PURE__ */ r("span", null, "Rename", -1), K = /* @__PURE__ */ r("span", null, "Delete", -1), L = { class: "flex gap-3" }, ae = /* @__PURE__ */ V({
|
|
8
9
|
__name: "RequestSidebarItemMenu",
|
|
9
10
|
props: {
|
|
10
11
|
item: {}
|
|
11
12
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
14
|
-
activeWorkspace:
|
|
15
|
-
activeRouterParams:
|
|
16
|
-
findRequestFolders:
|
|
17
|
-
requestMutators:
|
|
18
|
-
requestExampleMutators:
|
|
19
|
-
} =
|
|
13
|
+
setup(y) {
|
|
14
|
+
const t = y, {
|
|
15
|
+
activeWorkspace: v,
|
|
16
|
+
activeRouterParams: x,
|
|
17
|
+
findRequestFolders: D,
|
|
18
|
+
requestMutators: _,
|
|
19
|
+
requestExampleMutators: R
|
|
20
|
+
} = U(), { replace: h } = G(), M = () => T.emit({
|
|
20
21
|
commandName: "Add Example",
|
|
21
|
-
metaData:
|
|
22
|
-
}),
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
console.log("duplicate");
|
|
26
|
-
}, D = () => {
|
|
27
|
-
if ("requestUid" in a.item)
|
|
28
|
-
h.delete(a.item), r.value[p.Examples] === a.item.uid && m(`/workspace/${c.value}/request/default`);
|
|
22
|
+
metaData: t.item.uid
|
|
23
|
+
}), S = () => {
|
|
24
|
+
if ("requestUid" in t.item)
|
|
25
|
+
R.delete(t.item), x.value[b.Examples] === t.item.uid && h(`/workspace/${v.value}/request/default`);
|
|
29
26
|
else {
|
|
30
|
-
const
|
|
31
|
-
if (!
|
|
32
|
-
|
|
27
|
+
const c = D(t.item.uid);
|
|
28
|
+
if (!c.length) return;
|
|
29
|
+
_.delete(t.item, c[0]), x.value[b.Request] === t.item.uid && h(`/workspace/${v.value.uid}/request/default`);
|
|
33
30
|
}
|
|
34
|
-
}, q =
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
31
|
+
}, n = q(() => "summary" in t.item), k = q(() => "summary" in t.item ? t.item.summary || "" : "name" in t.item && t.item.name || ""), i = I(""), w = () => {
|
|
32
|
+
"summary" in t.item ? _.edit(t.item.uid, "summary", i.value) : "summary" in t.item || R.edit(t.item.uid, "name", i.value), i.value = "", o.hide();
|
|
33
|
+
}, o = g(), d = g(), z = () => {
|
|
34
|
+
i.value = k.value, o.show();
|
|
35
|
+
};
|
|
36
|
+
return (c, s) => (E(), $(B, null, [
|
|
37
|
+
a(e(W), { teleport: "#scalar-client" }, {
|
|
38
|
+
items: l(() => [
|
|
39
|
+
n.value ? (E(), A(e(p), {
|
|
40
|
+
key: 0,
|
|
41
|
+
class: "flex !gap-2",
|
|
42
|
+
onClick: M
|
|
43
|
+
}, {
|
|
44
|
+
default: l(() => [
|
|
45
|
+
a(e(u), {
|
|
46
|
+
class: "inline-flex",
|
|
47
|
+
icon: "Add",
|
|
48
|
+
size: "sm"
|
|
49
|
+
}),
|
|
50
|
+
H
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
})) : F("", !0),
|
|
54
|
+
a(e(p), {
|
|
55
|
+
class: "flex !gap-2",
|
|
56
|
+
onClick: z
|
|
57
|
+
}, {
|
|
58
|
+
default: l(() => [
|
|
59
|
+
a(e(u), {
|
|
60
|
+
class: "inline-flex",
|
|
61
|
+
icon: "Edit",
|
|
62
|
+
size: "sm"
|
|
63
|
+
}),
|
|
64
|
+
J
|
|
65
|
+
]),
|
|
66
|
+
_: 1
|
|
67
|
+
}),
|
|
68
|
+
a(e(p), {
|
|
69
|
+
class: "flex !gap-2",
|
|
70
|
+
onClick: s[0] || (s[0] = (m) => e(d).show())
|
|
71
|
+
}, {
|
|
72
|
+
default: l(() => [
|
|
73
|
+
a(e(u), {
|
|
74
|
+
class: "inline-flex",
|
|
75
|
+
icon: "Trash",
|
|
76
|
+
size: "sm"
|
|
77
|
+
}),
|
|
78
|
+
K
|
|
79
|
+
]),
|
|
80
|
+
_: 1
|
|
81
|
+
})
|
|
82
|
+
]),
|
|
83
|
+
default: l(() => [
|
|
84
|
+
a(e(f), {
|
|
85
|
+
class: "z-10 hover:bg-b-3 transition-none p-1 group-hover:flex ui-open:flex absolute left-0 hidden -translate-x-full -ml-1",
|
|
86
|
+
size: "sm",
|
|
87
|
+
variant: "ghost"
|
|
88
|
+
}, {
|
|
89
|
+
default: l(() => [
|
|
90
|
+
a(e(u), {
|
|
91
|
+
icon: "Ellipses",
|
|
92
|
+
size: "sm"
|
|
93
|
+
})
|
|
94
|
+
]),
|
|
95
|
+
_: 1
|
|
96
|
+
})
|
|
97
|
+
]),
|
|
98
|
+
_: 1
|
|
99
|
+
}),
|
|
100
|
+
a(e(N), {
|
|
101
|
+
size: "sm",
|
|
102
|
+
state: e(d),
|
|
103
|
+
title: n.value ? "Delete Request" : "Delete Example"
|
|
104
|
+
}, {
|
|
105
|
+
default: l(() => [
|
|
106
|
+
a(P, {
|
|
107
|
+
variableName: k.value,
|
|
108
|
+
onClose: s[1] || (s[1] = (m) => e(d).hide()),
|
|
109
|
+
onDelete: S
|
|
110
|
+
}, null, 8, ["variableName"])
|
|
111
|
+
]),
|
|
112
|
+
_: 1
|
|
113
|
+
}, 8, ["state", "title"]),
|
|
114
|
+
a(e(N), {
|
|
115
|
+
state: e(o),
|
|
116
|
+
title: n.value ? "Rename Request" : "Rename Example"
|
|
117
|
+
}, {
|
|
118
|
+
default: l(() => [
|
|
119
|
+
a(e(j), {
|
|
120
|
+
modelValue: i.value,
|
|
121
|
+
"onUpdate:modelValue": s[2] || (s[2] = (m) => i.value = m),
|
|
122
|
+
label: n.value ? "Request" : "Example"
|
|
123
|
+
}, null, 8, ["modelValue", "label"]),
|
|
124
|
+
r("div", L, [
|
|
125
|
+
a(e(f), {
|
|
126
|
+
class: "flex-1",
|
|
127
|
+
variant: "outlined",
|
|
128
|
+
onClick: s[3] || (s[3] = (m) => e(o).hide())
|
|
129
|
+
}, {
|
|
130
|
+
default: l(() => [
|
|
131
|
+
C(" Cancel ")
|
|
132
|
+
]),
|
|
133
|
+
_: 1
|
|
47
134
|
}),
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
t(e(s), {
|
|
58
|
-
class: "inline-flex",
|
|
59
|
-
icon: "Edit",
|
|
60
|
-
size: "sm"
|
|
61
|
-
}),
|
|
62
|
-
N
|
|
63
|
-
]),
|
|
64
|
-
_: 1
|
|
65
|
-
}),
|
|
66
|
-
t(e(o), {
|
|
67
|
-
class: "flex !gap-2",
|
|
68
|
-
onClick: g
|
|
69
|
-
}, {
|
|
70
|
-
default: l(() => [
|
|
71
|
-
t(e(s), {
|
|
72
|
-
class: "inline-flex",
|
|
73
|
-
icon: "Duplicate",
|
|
74
|
-
size: "sm"
|
|
75
|
-
}),
|
|
76
|
-
M
|
|
77
|
-
]),
|
|
78
|
-
_: 1
|
|
79
|
-
}),
|
|
80
|
-
t(e(S)),
|
|
81
|
-
t(e(o), {
|
|
82
|
-
class: "flex !gap-2",
|
|
83
|
-
onClick: D
|
|
84
|
-
}, {
|
|
85
|
-
default: l(() => [
|
|
86
|
-
t(e(s), {
|
|
87
|
-
class: "inline-flex",
|
|
88
|
-
icon: "Trash",
|
|
89
|
-
size: "sm"
|
|
90
|
-
}),
|
|
91
|
-
P
|
|
92
|
-
]),
|
|
93
|
-
_: 1
|
|
94
|
-
})
|
|
95
|
-
]),
|
|
96
|
-
default: l(() => [
|
|
97
|
-
t(e(b), {
|
|
98
|
-
class: "z-10 hover:bg-b-3 transition-none p-1 group-hover:flex ui-open:flex absolute left-0 hidden -translate-x-full -ml-1",
|
|
99
|
-
size: "sm",
|
|
100
|
-
variant: "ghost"
|
|
101
|
-
}, {
|
|
102
|
-
default: l(() => [
|
|
103
|
-
t(e(s), {
|
|
104
|
-
icon: "Ellipses",
|
|
105
|
-
size: "sm"
|
|
135
|
+
a(e(f), {
|
|
136
|
+
class: "flex-1",
|
|
137
|
+
type: "submit",
|
|
138
|
+
onClick: w
|
|
139
|
+
}, {
|
|
140
|
+
default: l(() => [
|
|
141
|
+
C(" Save ")
|
|
142
|
+
]),
|
|
143
|
+
_: 1
|
|
106
144
|
})
|
|
107
|
-
])
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
])
|
|
111
|
-
|
|
112
|
-
}));
|
|
145
|
+
])
|
|
146
|
+
]),
|
|
147
|
+
_: 1
|
|
148
|
+
}, 8, ["state", "title"])
|
|
149
|
+
], 64));
|
|
113
150
|
}
|
|
114
151
|
});
|
|
115
152
|
export {
|
|
116
|
-
|
|
153
|
+
ae as default
|
|
117
154
|
};
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { type SecuritySchemeOptionOauth } from '../../../views/Request/libs/index.js';
|
|
3
|
-
import type { SelectedSchemeOauth2 } from '@scalar/oas-utils/entities/workspace/security';
|
|
1
|
+
import type { SecuritySchemeOauth2 } from '@scalar/oas-utils/entities/workspace/security';
|
|
4
2
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
5
|
-
|
|
6
|
-
schemeModel: SecuritySchemeOptionOauth;
|
|
7
|
-
updateScheme: UpdateScheme;
|
|
3
|
+
scheme: SecuritySchemeOauth2;
|
|
8
4
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
9
|
-
|
|
10
|
-
schemeModel: SecuritySchemeOptionOauth;
|
|
11
|
-
updateScheme: UpdateScheme;
|
|
5
|
+
scheme: SecuritySchemeOauth2;
|
|
12
6
|
}>>>, {}, {}>;
|
|
13
7
|
export default _default;
|
|
14
8
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OAuth2.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/components/OAuth2.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OAuth2.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/components/OAuth2.vue"],"names":[],"mappings":"AAwLA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAA;;YAO/E,oBAAoB;;YAApB,oBAAoB;;AA4f9B,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"}
|