@scalar/api-reference 1.25.35 → 1.25.37
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 +21 -0
- package/dist/browser/standalone.js +13407 -13399
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue.d.ts +3 -12
- package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
- package/dist/components/Anchor/Anchor.vue2.js +21 -21
- package/dist/components/ApiClientModal.vue.d.ts +3 -12
- package/dist/components/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.d.ts +4 -13
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts +8 -17
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/Badge/Badge.vue.d.ts +1 -1
- package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
- package/dist/components/Card/Card.vue.d.ts +1 -1
- package/dist/components/Card/Card.vue.d.ts.map +1 -1
- package/dist/components/Card/CardContent.vue.d.ts +1 -10
- package/dist/components/Card/CardContent.vue.d.ts.map +1 -1
- package/dist/components/Card/CardFooter.vue.d.ts +1 -10
- package/dist/components/Card/CardFooter.vue.d.ts.map +1 -1
- package/dist/components/Card/CardHeader.vue.d.ts +1 -10
- package/dist/components/Card/CardHeader.vue.d.ts.map +1 -1
- package/dist/components/Card/CardTab.vue.d.ts +1 -1
- package/dist/components/Card/CardTab.vue.d.ts.map +1 -1
- package/dist/components/Card/CardTabHeader.vue.d.ts +4 -4
- package/dist/components/Card/CardTabHeader.vue.d.ts.map +1 -1
- package/dist/components/ClassicHeader.vue.d.ts +1 -1
- package/dist/components/ClassicHeader.vue.d.ts.map +1 -1
- package/dist/components/Content/Authentication/Authentication.vue.d.ts +3 -12
- package/dist/components/Content/Authentication/Authentication.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +14 -14
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +56 -56
- package/dist/components/Content/Content.vue.d.ts +3 -12
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue2.js +41 -41
- package/dist/components/Content/Introduction/Description.vue.d.ts +3 -12
- package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.d.ts +3 -12
- package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Lazy.vue.d.ts +4 -27
- package/dist/components/Content/Lazy/Lazy.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.d.ts +4 -25
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.d.ts +3 -12
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue2.js +32 -32
- package/dist/components/Content/Models/ModelsAccordion.vue.d.ts +3 -12
- package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModelsAccordion.vue2.js +30 -30
- package/dist/components/Content/Operation/ContentTypeSelect.vue.d.ts +6 -15
- package/dist/components/Content/Operation/ContentTypeSelect.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/EndpointDetails.vue.d.ts +3 -12
- package/dist/components/Content/Operation/EndpointDetails.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/EndpointDetails.vue.js +45 -45
- package/dist/components/Content/Operation/EndpointDetailsCard.vue.d.ts +3 -12
- package/dist/components/Content/Operation/EndpointDetailsCard.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/EndpointDetailsCard.vue2.js +37 -37
- package/dist/components/Content/Operation/EndpointPath.vue.d.ts +3 -12
- package/dist/components/Content/Operation/EndpointPath.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/Operation.vue.d.ts +3 -12
- package/dist/components/Content/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/Operation.vue2.js +35 -35
- package/dist/components/Content/Operation/OperationAccordion.vue.d.ts +3 -12
- package/dist/components/Content/Operation/OperationAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/ParameterHeaders.vue.d.ts +3 -12
- package/dist/components/Content/Operation/ParameterHeaders.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/ParameterItem.vue.d.ts +4 -27
- package/dist/components/Content/Operation/ParameterItem.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/Parameters.vue.d.ts +4 -27
- package/dist/components/Content/Operation/Parameters.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/RequestBody.vue.d.ts +3 -12
- package/dist/components/Content/Operation/RequestBody.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/RequestBodyPropertiesChild.vue.d.ts +3 -12
- package/dist/components/Content/Operation/RequestBodyPropertiesChild.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/TestRequestButton.vue.d.ts +3 -12
- package/dist/components/Content/Operation/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/TestRequestButton.vue2.js +16 -16
- package/dist/components/Content/Schema/Schema.vue.d.ts +4 -25
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +3 -12
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +4 -29
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +85 -85
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue.d.ts +3 -12
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue2.js +11 -11
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +4 -27
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +114 -114
- package/dist/components/Content/Tag/Endpoints.vue.d.ts +3 -12
- package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Endpoints.vue2.js +11 -11
- package/dist/components/Content/Tag/Tag.vue.d.ts +3 -12
- package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagAccordion.vue.d.ts +3 -12
- package/dist/components/Content/Tag/TagAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.d.ts +3 -12
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Webhooks/Webhook.vue.d.ts +3 -12
- package/dist/components/Content/Webhooks/Webhook.vue.d.ts.map +1 -1
- package/dist/components/Content/Webhooks/Webhook.vue2.js +22 -22
- package/dist/components/Content/Webhooks/Webhooks.vue.d.ts +3 -12
- package/dist/components/Content/Webhooks/Webhooks.vue.d.ts.map +1 -1
- package/dist/components/Content/Webhooks/Webhooks.vue2.js +39 -39
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts +6 -15
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts.map +1 -1
- package/dist/components/DarkModeToggle/DarkModeToggle.vue.d.ts +6 -15
- package/dist/components/DarkModeToggle/DarkModeToggle.vue.d.ts.map +1 -1
- package/dist/components/DarkModeToggle/DarkModeToggle.vue2.js +14 -14
- package/dist/components/GettingStarted.vue.d.ts +9 -18
- package/dist/components/GettingStarted.vue.d.ts.map +1 -1
- package/dist/components/GettingStarted.vue2.js +32 -32
- package/dist/components/HelpfulLink.vue.d.ts +3 -12
- package/dist/components/HelpfulLink.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +3 -12
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/IntersectionObserver.vue.d.ts +6 -15
- package/dist/components/IntersectionObserver.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ClassicLayout.vue.d.ts +5 -14
- package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/Layouts.vue.d.ts +5 -14
- package/dist/components/Layouts/Layouts.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ModernLayout.vue.d.ts +5 -14
- package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/LoadingSkeleton.vue.d.ts +4 -25
- package/dist/components/LoadingSkeleton.vue.d.ts.map +1 -1
- package/dist/components/MobileHeader.vue.d.ts +6 -15
- package/dist/components/MobileHeader.vue.d.ts.map +1 -1
- package/dist/components/ScreenReader.vue.d.ts +4 -25
- package/dist/components/ScreenReader.vue.d.ts.map +1 -1
- package/dist/components/Section/CompactSection.vue.d.ts +3 -12
- package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
- package/dist/components/Section/Section.vue.d.ts +3 -12
- package/dist/components/Section/Section.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionAccordion.vue.d.ts +3 -12
- package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionColumn.vue.d.ts +1 -1
- package/dist/components/Section/SectionColumn.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionColumns.vue.d.ts +1 -1
- package/dist/components/Section/SectionColumns.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainer.vue.d.ts +1 -1
- package/dist/components/Section/SectionContainer.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue.d.ts +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContent.vue.d.ts +4 -25
- package/dist/components/Section/SectionContent.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionHeader.vue.d.ts +4 -29
- package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
- package/dist/components/ShowMoreButton.vue.d.ts +3 -12
- package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
- package/dist/components/ShowMoreButton.vue2.js +9 -9
- package/dist/components/Sidebar/Sidebar.vue.d.ts +3 -12
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.d.ts +6 -15
- package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarElement.vue2.js +24 -24
- package/dist/components/Sidebar/SidebarGroup.vue.d.ts +3 -12
- package/dist/components/Sidebar/SidebarGroup.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarHttpBadge.vue.d.ts +3 -12
- package/dist/components/Sidebar/SidebarHttpBadge.vue.d.ts.map +1 -1
- package/dist/components/Spinner/Spinner.vue.d.ts +1 -1
- package/dist/embeds/ExampleRequest/ExampleRequest.vue.d.ts +3 -12
- package/dist/embeds/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/embeds/ExampleResponses/ExampleResponses.vue.d.ts +3 -12
- package/dist/embeds/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts +253 -13
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts +3 -12
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerForm.vue.d.ts +8 -29
- package/dist/features/BaseUrl/ServerForm.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerForm.vue2.js +41 -41
- package/dist/features/BaseUrl/ServerUrl.vue.d.ts +3 -12
- package/dist/features/BaseUrl/ServerUrl.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts +6 -15
- package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts +6 -15
- package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts +6 -15
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerVariablesSelect.vue2.js +19 -19
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts +6 -15
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts.map +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue.d.ts +3 -12
- package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExamplePicker.vue.d.ts +6 -15
- package/dist/features/ExampleRequest/ExamplePicker.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +3 -12
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/TextSelect.vue.d.ts +6 -15
- package/dist/features/ExampleRequest/TextSelect.vue.d.ts.map +1 -1
- package/dist/features/ExampleResponses/ExampleResponse.vue.d.ts +3 -12
- package/dist/features/ExampleResponses/ExampleResponse.vue.d.ts.map +1 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts +3 -12
- package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue2.js +83 -83
- package/dist/features/Search/SearchButton.vue.d.ts +4 -25
- package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchButton.vue2.js +27 -27
- package/dist/features/Search/SearchModal.vue.d.ts +3 -12
- package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchModal.vue2.js +66 -66
- package/dist/features/Search/useSearchIndex.d.ts +2 -2
- package/dist/hooks/useDarkModeState.d.ts +1 -1
- package/dist/hooks/useNavState.d.ts +3 -3
- package/dist/hooks/useReactiveSpec.d.ts +2 -2
- package/dist/hooks/useRefOnMount.d.ts +1 -1
- package/dist/hooks/useRefOnMount.d.ts.map +1 -1
- package/dist/hooks/useSidebar.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/legacy/components/CardForm.vue.d.ts +1 -1
- package/dist/legacy/components/CardForm.vue.d.ts.map +1 -1
- package/dist/legacy/components/CardFormButton.vue.d.ts +2 -2
- package/dist/legacy/components/CardFormButton.vue.d.ts.map +1 -1
- package/dist/legacy/components/CardFormGroup.vue.d.ts +1 -1
- package/dist/legacy/components/CardFormGroup.vue.d.ts.map +1 -1
- package/dist/legacy/components/CardFormRows.vue.d.ts +1 -1
- package/dist/legacy/components/CardFormRows.vue.d.ts.map +1 -1
- package/dist/legacy/components/CardFormTextInput.vue.d.ts +3 -12
- package/dist/legacy/components/CardFormTextInput.vue.d.ts.map +1 -1
- package/dist/legacy/components/CardFormTextInput.vue2.js +21 -21
- package/dist/legacy/components/SecurityScheme.vue.d.ts +3 -12
- package/dist/legacy/components/SecurityScheme.vue.d.ts.map +1 -1
- package/dist/legacy/components/SecurityScheme.vue2.js +147 -147
- package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts +6 -15
- package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts.map +1 -1
- package/dist/legacy/components/SecuritySchemeScopes.vue2.js +37 -37
- package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts +6 -15
- package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -1
- package/dist/legacy/components/SecuritySchemeSelector.vue2.js +36 -36
- package/dist/legacy/stores/useRequestStore.d.ts +7 -3
- package/dist/legacy/stores/useRequestStore.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +12 -12
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as Q, computed as X, openBlock as l, createBlock as m, withModifiers as Y, withCtx as
|
|
2
|
-
import { concatenateUrlAndPath as
|
|
1
|
+
import { defineComponent as Q, computed as X, openBlock as l, createBlock as m, withModifiers as Y, withCtx as a, unref as u, createElementBlock as U, Fragment as K, createTextVNode as i, toDisplayString as Z, createCommentVNode as v, createVNode as d, createElementVNode as W } from "vue";
|
|
2
|
+
import { concatenateUrlAndPath as x, redirectToProxy as _ } from "@scalar/oas-utils/helpers";
|
|
3
3
|
import { useToasts as ee } from "@scalar/use-toasts";
|
|
4
4
|
import { apiClientBus as F } from "../../components/api-client-bus.js";
|
|
5
5
|
import te from "./CardForm.vue.js";
|
|
6
|
-
import
|
|
6
|
+
import re from "./CardFormButton.vue.js";
|
|
7
7
|
import P from "./CardFormGroup.vue.js";
|
|
8
8
|
import j from "./CardFormRows.vue.js";
|
|
9
9
|
import f from "./CardFormTextInput.vue.js";
|
|
10
10
|
import R from "./SecuritySchemeScopes.vue.js";
|
|
11
|
-
import { useServerStore as
|
|
12
|
-
import { getUrlFromServerState as
|
|
11
|
+
import { useServerStore as oe } from "../stores/useServerStore.js";
|
|
12
|
+
import { getUrlFromServerState as ae } from "../helpers/getUrlFromServerState.js";
|
|
13
13
|
import { useAuthenticationStore as se } from "../stores/useAuthenticationStore.js";
|
|
14
14
|
const ke = /* @__PURE__ */ Q({
|
|
15
15
|
__name: "SecurityScheme",
|
|
@@ -18,107 +18,107 @@ const ke = /* @__PURE__ */ Q({
|
|
|
18
18
|
proxy: {}
|
|
19
19
|
},
|
|
20
20
|
setup(ue) {
|
|
21
|
-
const { toast: L } = ee(), { server: N } =
|
|
22
|
-
const
|
|
21
|
+
const { toast: L } = ee(), { server: N } = oe(), { authentication: r, setAuthentication: p } = se(), V = (t) => {
|
|
22
|
+
const e = t.target.value;
|
|
23
23
|
p({
|
|
24
24
|
apiKey: {
|
|
25
|
-
...
|
|
26
|
-
token:
|
|
25
|
+
...r.apiKey,
|
|
26
|
+
token: e
|
|
27
27
|
}
|
|
28
|
-
}),
|
|
28
|
+
}), r.preferredSecurityScheme && F.emit({
|
|
29
29
|
updateAuth: {
|
|
30
|
-
nameKey:
|
|
30
|
+
nameKey: r.preferredSecurityScheme,
|
|
31
31
|
propertyKey: "value",
|
|
32
|
-
value:
|
|
32
|
+
value: e
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
|
-
}, D = (
|
|
36
|
-
const
|
|
35
|
+
}, D = (t) => {
|
|
36
|
+
const e = t.target.value;
|
|
37
37
|
p({
|
|
38
38
|
http: {
|
|
39
|
-
...
|
|
39
|
+
...r.http,
|
|
40
40
|
basic: {
|
|
41
|
-
...
|
|
42
|
-
username:
|
|
41
|
+
...r.http.basic,
|
|
42
|
+
username: e
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
}),
|
|
45
|
+
}), r.preferredSecurityScheme && F.emit({
|
|
46
46
|
updateAuth: {
|
|
47
|
-
nameKey:
|
|
47
|
+
nameKey: r.preferredSecurityScheme,
|
|
48
48
|
propertyKey: "username",
|
|
49
|
-
value:
|
|
49
|
+
value: e
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
|
-
}, E = (
|
|
53
|
-
const
|
|
52
|
+
}, E = (t) => {
|
|
53
|
+
const e = t.target.value;
|
|
54
54
|
p({
|
|
55
55
|
http: {
|
|
56
|
-
...
|
|
56
|
+
...r.http,
|
|
57
57
|
basic: {
|
|
58
|
-
...
|
|
59
|
-
password:
|
|
58
|
+
...r.http.basic,
|
|
59
|
+
password: e
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
}),
|
|
62
|
+
}), r.preferredSecurityScheme && F.emit({
|
|
63
63
|
updateAuth: {
|
|
64
|
-
nameKey:
|
|
64
|
+
nameKey: r.preferredSecurityScheme,
|
|
65
65
|
propertyKey: "password",
|
|
66
|
-
value:
|
|
66
|
+
value: e
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
|
-
}, H = (
|
|
70
|
-
const
|
|
69
|
+
}, H = (t) => {
|
|
70
|
+
const e = t.target.value;
|
|
71
71
|
p({
|
|
72
72
|
http: {
|
|
73
|
-
...
|
|
73
|
+
...r.http,
|
|
74
74
|
bearer: {
|
|
75
|
-
...
|
|
76
|
-
token:
|
|
75
|
+
...r.http.bearer,
|
|
76
|
+
token: e
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
}),
|
|
79
|
+
}), r.preferredSecurityScheme && F.emit({
|
|
80
80
|
updateAuth: {
|
|
81
|
-
nameKey:
|
|
81
|
+
nameKey: r.preferredSecurityScheme,
|
|
82
82
|
propertyKey: "token",
|
|
83
|
-
value:
|
|
83
|
+
value: e
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
-
}, B = (
|
|
86
|
+
}, B = (t) => {
|
|
87
87
|
p({
|
|
88
88
|
oAuth2: {
|
|
89
|
-
...
|
|
90
|
-
clientId:
|
|
89
|
+
...r.oAuth2,
|
|
90
|
+
clientId: t.target.value
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
|
-
}, M = (
|
|
93
|
+
}, M = (t) => {
|
|
94
94
|
p({
|
|
95
95
|
oAuth2: {
|
|
96
|
-
...
|
|
97
|
-
username:
|
|
96
|
+
...r.oAuth2,
|
|
97
|
+
username: t.target.value
|
|
98
98
|
}
|
|
99
99
|
});
|
|
100
|
-
}, G = (
|
|
100
|
+
}, G = (t) => {
|
|
101
101
|
p({
|
|
102
102
|
oAuth2: {
|
|
103
|
-
...
|
|
104
|
-
password:
|
|
103
|
+
...r.oAuth2,
|
|
104
|
+
password: t.target.value
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
107
|
};
|
|
108
|
-
function $(
|
|
109
|
-
const
|
|
108
|
+
function $(t) {
|
|
109
|
+
const e = r.oAuth2.scopes.join(" "), n = (Math.random() + 1).toString(36).substring(7), o = new URL(t.authorizationUrl);
|
|
110
110
|
return p({
|
|
111
|
-
oAuth2: { ...
|
|
112
|
-
}),
|
|
111
|
+
oAuth2: { ...r.oAuth2, state: n }
|
|
112
|
+
}), o.searchParams.set("response_type", "token"), o.searchParams.set("client_id", r.oAuth2.clientId), o.searchParams.set("redirect_uri", window.location.href), o.searchParams.set("scope", e), o.searchParams.set("state", n), o.toString();
|
|
113
113
|
}
|
|
114
|
-
function q(
|
|
115
|
-
if (typeof
|
|
114
|
+
function q(t, e) {
|
|
115
|
+
if (typeof t != "string") {
|
|
116
116
|
console.log("tokenUrl is not a string");
|
|
117
117
|
return;
|
|
118
118
|
}
|
|
119
|
-
const n =
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
const n = e != null && e.baseUrl && !t.startsWith("http") ? x(e == null ? void 0 : e.baseUrl, t) : t, o = new URL(n);
|
|
120
|
+
o.searchParams.set("grant_type", "password"), o.searchParams.set("username", r.oAuth2.username), o.searchParams.set("password", r.oAuth2.password), o.searchParams.set("client_id", r.oAuth2.clientId), o.searchParams.set("scope", r.oAuth2.scopes.join(" ")), fetch(
|
|
121
|
+
e != null && e.proxy ? _(e == null ? void 0 : e.proxy, o.toString()) : o.toString(),
|
|
122
122
|
{
|
|
123
123
|
method: "POST",
|
|
124
124
|
headers: {
|
|
@@ -133,7 +133,7 @@ const ke = /* @__PURE__ */ Q({
|
|
|
133
133
|
return s.json();
|
|
134
134
|
}).then((s) => {
|
|
135
135
|
p({
|
|
136
|
-
oAuth2: { ...
|
|
136
|
+
oAuth2: { ...r.oAuth2, accessToken: s.access_token }
|
|
137
137
|
});
|
|
138
138
|
}).catch((s) => {
|
|
139
139
|
L("Couldn’t retrieve the password grant token", "warn", {
|
|
@@ -142,20 +142,20 @@ const ke = /* @__PURE__ */ Q({
|
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
144
|
const C = X({
|
|
145
|
-
get: () =>
|
|
146
|
-
set: (
|
|
147
|
-
}), J = (
|
|
148
|
-
const n = window.open(
|
|
145
|
+
get: () => r.oAuth2.scopes,
|
|
146
|
+
set: (t) => p({ oAuth2: { ...r.oAuth2, scopes: t } })
|
|
147
|
+
}), J = (t) => {
|
|
148
|
+
const n = window.open(t, "openAuth2Window", "left=100,top=100,width=800,height=600");
|
|
149
149
|
if (n) {
|
|
150
|
-
const
|
|
150
|
+
const o = setInterval(function() {
|
|
151
151
|
var s;
|
|
152
152
|
try {
|
|
153
|
-
const
|
|
154
|
-
if (n.closed ||
|
|
155
|
-
clearInterval(
|
|
153
|
+
const c = new URLSearchParams(n.location.href).get("access_token");
|
|
154
|
+
if (n.closed || c) {
|
|
155
|
+
clearInterval(o);
|
|
156
156
|
const w = (s = n.location.href.match(/state=([^&]*)/)) == null ? void 0 : s[1];
|
|
157
|
-
|
|
158
|
-
oAuth2: { ...
|
|
157
|
+
c && r.oAuth2.state === w && p({
|
|
158
|
+
oAuth2: { ...r.oAuth2, accessToken: c }
|
|
159
159
|
}), n.close();
|
|
160
160
|
}
|
|
161
161
|
} catch {
|
|
@@ -163,170 +163,170 @@ const ke = /* @__PURE__ */ Q({
|
|
|
163
163
|
}, 200);
|
|
164
164
|
}
|
|
165
165
|
};
|
|
166
|
-
return (
|
|
166
|
+
return (t, e) => {
|
|
167
167
|
var n;
|
|
168
|
-
return
|
|
168
|
+
return t.value && ((n = t.value) != null && n.type) ? (l(), m(te, {
|
|
169
169
|
key: 0,
|
|
170
|
-
onSubmit:
|
|
170
|
+
onSubmit: e[5] || (e[5] = Y(() => {
|
|
171
171
|
}, ["prevent"]))
|
|
172
172
|
}, {
|
|
173
|
-
default:
|
|
174
|
-
|
|
173
|
+
default: a(() => [
|
|
174
|
+
t.value.type === "apiKey" ? (l(), m(f, {
|
|
175
175
|
key: 0,
|
|
176
|
-
id: `security-scheme-${
|
|
176
|
+
id: `security-scheme-${t.value.name}`,
|
|
177
177
|
placeholder: "Token",
|
|
178
178
|
type: "password",
|
|
179
|
-
value: u(
|
|
179
|
+
value: u(r).apiKey.token,
|
|
180
180
|
onInput: V
|
|
181
181
|
}, {
|
|
182
|
-
default:
|
|
183
|
-
var
|
|
182
|
+
default: a(() => {
|
|
183
|
+
var o, s, h;
|
|
184
184
|
return [
|
|
185
|
-
|
|
186
|
-
i(Z(((s = (
|
|
185
|
+
t.value.in ? (l(), U(K, { key: 0 }, [
|
|
186
|
+
i(Z(((s = (o = t.value.in) == null ? void 0 : o.charAt(0)) == null ? void 0 : s.toUpperCase()) + ((h = t.value.in) == null ? void 0 : h.slice(1))), 1)
|
|
187
187
|
], 64)) : v("", !0),
|
|
188
|
-
i(" API ")
|
|
188
|
+
e[6] || (e[6] = i(" API "))
|
|
189
189
|
];
|
|
190
190
|
}),
|
|
191
191
|
_: 1
|
|
192
|
-
}, 8, ["id", "value"])) :
|
|
193
|
-
|
|
194
|
-
default:
|
|
195
|
-
|
|
192
|
+
}, 8, ["id", "value"])) : t.value.type === "http" || t.value.type === "basic" ? (l(), U(K, { key: 1 }, [
|
|
193
|
+
t.value.type === "basic" || t.value.scheme === "basic" ? (l(), m(P, { key: 0 }, {
|
|
194
|
+
default: a(() => [
|
|
195
|
+
d(f, {
|
|
196
196
|
id: "http.basic.username",
|
|
197
197
|
placeholder: "Username",
|
|
198
|
-
value: u(
|
|
198
|
+
value: u(r).http.basic.username,
|
|
199
199
|
onInput: D
|
|
200
200
|
}, {
|
|
201
|
-
default:
|
|
201
|
+
default: a(() => e[7] || (e[7] = [
|
|
202
202
|
i(" Username ")
|
|
203
|
-
]),
|
|
203
|
+
])),
|
|
204
204
|
_: 1
|
|
205
205
|
}, 8, ["value"]),
|
|
206
|
-
|
|
206
|
+
d(f, {
|
|
207
207
|
id: "http.basic.password",
|
|
208
208
|
placeholder: "Password",
|
|
209
209
|
type: "password",
|
|
210
|
-
value: u(
|
|
210
|
+
value: u(r).http.basic.password,
|
|
211
211
|
onInput: E
|
|
212
212
|
}, {
|
|
213
|
-
default:
|
|
213
|
+
default: a(() => e[8] || (e[8] = [
|
|
214
214
|
i(" Password ")
|
|
215
|
-
]),
|
|
215
|
+
])),
|
|
216
216
|
_: 1
|
|
217
217
|
}, 8, ["value"])
|
|
218
218
|
]),
|
|
219
219
|
_: 1
|
|
220
|
-
})) :
|
|
220
|
+
})) : t.value.type === "http" && t.value.scheme === "bearer" ? (l(), m(f, {
|
|
221
221
|
key: 1,
|
|
222
222
|
id: "http.bearer.token",
|
|
223
223
|
placeholder: "Token",
|
|
224
224
|
type: "password",
|
|
225
|
-
value: u(
|
|
225
|
+
value: u(r).http.bearer.token,
|
|
226
226
|
onInput: H
|
|
227
227
|
}, {
|
|
228
|
-
default:
|
|
228
|
+
default: a(() => e[9] || (e[9] = [
|
|
229
229
|
i(" Bearer Token ")
|
|
230
|
-
]),
|
|
230
|
+
])),
|
|
231
231
|
_: 1
|
|
232
232
|
}, 8, ["value"])) : v("", !0)
|
|
233
|
-
], 64)) :
|
|
234
|
-
default:
|
|
235
|
-
var
|
|
233
|
+
], 64)) : t.value.type.toLowerCase() === "oauth2" && t.value.flows ? (l(), m(P, { key: 2 }, {
|
|
234
|
+
default: a(() => {
|
|
235
|
+
var o, s;
|
|
236
236
|
return [
|
|
237
|
-
|
|
238
|
-
u(
|
|
239
|
-
|
|
237
|
+
t.value.flows.implicit ? (l(), U(K, { key: 0 }, [
|
|
238
|
+
u(r).oAuth2.accessToken ? (l(), U(K, { key: 0 }, [
|
|
239
|
+
d(f, {
|
|
240
240
|
id: "oAuth2.accessToken",
|
|
241
241
|
placeholder: "xxxxx",
|
|
242
242
|
type: "password",
|
|
243
|
-
value: u(
|
|
243
|
+
value: u(r).oAuth2.accessToken
|
|
244
244
|
}, {
|
|
245
|
-
default:
|
|
245
|
+
default: a(() => e[10] || (e[10] = [
|
|
246
246
|
i(" Access Token ")
|
|
247
|
-
]),
|
|
247
|
+
])),
|
|
248
248
|
_: 1
|
|
249
249
|
}, 8, ["value"]),
|
|
250
|
-
|
|
251
|
-
onClick:
|
|
250
|
+
d(re, {
|
|
251
|
+
onClick: e[0] || (e[0] = () => u(p)({
|
|
252
252
|
oAuth2: {
|
|
253
|
-
...u(
|
|
253
|
+
...u(r).oAuth2,
|
|
254
254
|
accessToken: "",
|
|
255
255
|
state: ""
|
|
256
256
|
}
|
|
257
257
|
}))
|
|
258
258
|
}, {
|
|
259
|
-
default:
|
|
259
|
+
default: a(() => e[11] || (e[11] = [
|
|
260
260
|
i(" Reset ")
|
|
261
|
-
]),
|
|
261
|
+
])),
|
|
262
262
|
_: 1
|
|
263
263
|
})
|
|
264
264
|
], 64)) : v("", !0)
|
|
265
265
|
], 64)) : v("", !0),
|
|
266
|
-
(s = (
|
|
267
|
-
default:
|
|
268
|
-
|
|
269
|
-
default:
|
|
270
|
-
|
|
266
|
+
(s = (o = t.value) == null ? void 0 : o.flows) != null && s.password ? (l(), m(j, { key: 1 }, {
|
|
267
|
+
default: a(() => [
|
|
268
|
+
d(P, null, {
|
|
269
|
+
default: a(() => [
|
|
270
|
+
d(f, {
|
|
271
271
|
id: "oAuth2.username",
|
|
272
272
|
placeholder: "Username",
|
|
273
|
-
value: u(
|
|
273
|
+
value: u(r).oAuth2.username,
|
|
274
274
|
onInput: M
|
|
275
275
|
}, {
|
|
276
|
-
default:
|
|
276
|
+
default: a(() => e[12] || (e[12] = [
|
|
277
277
|
i(" Username ")
|
|
278
|
-
]),
|
|
278
|
+
])),
|
|
279
279
|
_: 1
|
|
280
280
|
}, 8, ["value"]),
|
|
281
|
-
|
|
281
|
+
d(f, {
|
|
282
282
|
id: "oAuth2.password",
|
|
283
283
|
placeholder: "Password",
|
|
284
284
|
type: "password",
|
|
285
|
-
value: u(
|
|
285
|
+
value: u(r).oAuth2.password,
|
|
286
286
|
onInput: G
|
|
287
287
|
}, {
|
|
288
|
-
default:
|
|
288
|
+
default: a(() => e[13] || (e[13] = [
|
|
289
289
|
i(" Password ")
|
|
290
|
-
]),
|
|
290
|
+
])),
|
|
291
291
|
_: 1
|
|
292
292
|
}, 8, ["value"])
|
|
293
293
|
]),
|
|
294
294
|
_: 1
|
|
295
295
|
}),
|
|
296
|
-
|
|
297
|
-
default:
|
|
298
|
-
var
|
|
296
|
+
d(P, null, {
|
|
297
|
+
default: a(() => {
|
|
298
|
+
var h, c, w, A, k, S, y, b, I, g, z;
|
|
299
299
|
return [
|
|
300
|
-
|
|
300
|
+
d(f, {
|
|
301
301
|
id: "oAuth2.clientId",
|
|
302
302
|
placeholder: "12345",
|
|
303
303
|
type: "text",
|
|
304
|
-
value: u(
|
|
304
|
+
value: u(r).oAuth2.clientId,
|
|
305
305
|
onInput: B
|
|
306
306
|
}, {
|
|
307
|
-
default:
|
|
307
|
+
default: a(() => e[14] || (e[14] = [
|
|
308
308
|
i(" Client ID ")
|
|
309
|
-
]),
|
|
309
|
+
])),
|
|
310
310
|
_: 1
|
|
311
311
|
}, 8, ["value"]),
|
|
312
|
-
|
|
313
|
-
((w = (
|
|
312
|
+
t.value !== void 0 && Object.entries(
|
|
313
|
+
((w = (c = (h = t.value) == null ? void 0 : h.flows) == null ? void 0 : c.implicit) == null ? void 0 : w.scopes) ?? ((S = (k = (A = t.value) == null ? void 0 : A.flows) == null ? void 0 : k.password) == null ? void 0 : S.scopes) ?? {}
|
|
314
314
|
).length > 0 ? (l(), m(R, {
|
|
315
315
|
key: 0,
|
|
316
316
|
selected: C.value,
|
|
317
|
-
"onUpdate:selected":
|
|
318
|
-
scopes: ((I = (b = (y =
|
|
317
|
+
"onUpdate:selected": e[1] || (e[1] = (T) => C.value = T),
|
|
318
|
+
scopes: ((I = (b = (y = t.value) == null ? void 0 : y.flows) == null ? void 0 : b.implicit) == null ? void 0 : I.scopes) ?? ((z = (g = t.value) == null ? void 0 : g.flows) == null ? void 0 : z.password.scopes)
|
|
319
319
|
}, null, 8, ["selected", "scopes"])) : v("", !0),
|
|
320
320
|
W("button", {
|
|
321
321
|
class: "cardform-auth-button",
|
|
322
322
|
type: "button",
|
|
323
|
-
onClick:
|
|
323
|
+
onClick: e[2] || (e[2] = () => {
|
|
324
324
|
var T, O;
|
|
325
325
|
return q(
|
|
326
|
-
(O = (T =
|
|
326
|
+
(O = (T = t.value.flows) == null ? void 0 : T.password) == null ? void 0 : O.tokenUrl,
|
|
327
327
|
{
|
|
328
|
-
baseUrl: u(
|
|
329
|
-
proxy:
|
|
328
|
+
baseUrl: u(ae)(u(N)),
|
|
329
|
+
proxy: t.proxy
|
|
330
330
|
}
|
|
331
331
|
);
|
|
332
332
|
})
|
|
@@ -338,39 +338,39 @@ const ke = /* @__PURE__ */ Q({
|
|
|
338
338
|
]),
|
|
339
339
|
_: 1
|
|
340
340
|
})) : (l(), m(j, { key: 2 }, {
|
|
341
|
-
default:
|
|
342
|
-
|
|
343
|
-
default:
|
|
344
|
-
var
|
|
341
|
+
default: a(() => [
|
|
342
|
+
d(P, null, {
|
|
343
|
+
default: a(() => {
|
|
344
|
+
var h, c, w, A, k, S;
|
|
345
345
|
return [
|
|
346
|
-
|
|
346
|
+
d(f, {
|
|
347
347
|
id: "oAuth2.clientId",
|
|
348
348
|
placeholder: "12345",
|
|
349
349
|
type: "text",
|
|
350
|
-
value: u(
|
|
350
|
+
value: u(r).oAuth2.clientId,
|
|
351
351
|
onInput: B
|
|
352
352
|
}, {
|
|
353
|
-
default:
|
|
353
|
+
default: a(() => e[15] || (e[15] = [
|
|
354
354
|
i(" Client ID ")
|
|
355
|
-
]),
|
|
355
|
+
])),
|
|
356
356
|
_: 1
|
|
357
357
|
}, 8, ["value"]),
|
|
358
|
-
|
|
359
|
-
((
|
|
358
|
+
t.value !== void 0 && Object.entries(
|
|
359
|
+
((h = t.value.flows.implicit) == null ? void 0 : h.scopes) ?? ((c = t.value.flows.password) == null ? void 0 : c.scopes) ?? ((w = t.value.flows.authorizationCode) == null ? void 0 : w.scopes)
|
|
360
360
|
).length > 0 ? (l(), m(R, {
|
|
361
361
|
key: 0,
|
|
362
362
|
selected: C.value,
|
|
363
|
-
"onUpdate:selected":
|
|
364
|
-
scopes: ((A =
|
|
363
|
+
"onUpdate:selected": e[3] || (e[3] = (y) => C.value = y),
|
|
364
|
+
scopes: ((A = t.value.flows.implicit) == null ? void 0 : A.scopes) ?? ((k = t.value.flows.password) == null ? void 0 : k.scopes) ?? ((S = t.value.flows.authorizationCode) == null ? void 0 : S.scopes)
|
|
365
365
|
}, null, 8, ["selected", "scopes"])) : v("", !0),
|
|
366
366
|
W("button", {
|
|
367
367
|
class: "cardform-auth-button",
|
|
368
368
|
type: "button",
|
|
369
|
-
onClick:
|
|
369
|
+
onClick: e[4] || (e[4] = () => {
|
|
370
370
|
var y, b, I, g;
|
|
371
371
|
return J(
|
|
372
372
|
$(
|
|
373
|
-
((b = (y =
|
|
373
|
+
((b = (y = t.value) == null ? void 0 : y.flows) == null ? void 0 : b.implicit) ?? ((g = (I = t.value) == null ? void 0 : I.flows) == null ? void 0 : g.password)
|
|
374
374
|
)
|
|
375
375
|
);
|
|
376
376
|
})
|
|
@@ -1,26 +1,17 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
scopes?: {
|
|
3
3
|
[scope: string]: string;
|
|
4
4
|
};
|
|
5
5
|
selected: string[];
|
|
6
|
-
}
|
|
7
|
-
"update:selected": (v: string[]) =>
|
|
8
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
6
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
+
"update:selected": (v: string[]) => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
9
9
|
scopes?: {
|
|
10
10
|
[scope: string]: string;
|
|
11
11
|
};
|
|
12
12
|
selected: string[];
|
|
13
|
-
}
|
|
13
|
+
}> & Readonly<{
|
|
14
14
|
"onUpdate:selected"?: ((v: string[]) => any) | undefined;
|
|
15
|
-
}, {}, {}>;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
export default _default;
|
|
17
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
-
type __VLS_TypePropsToOption<T> = {
|
|
19
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
-
} : {
|
|
22
|
-
type: import('vue').PropType<T[K]>;
|
|
23
|
-
required: true;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
17
|
//# sourceMappingURL=SecuritySchemeScopes.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SecuritySchemeScopes.vue.d.ts","sourceRoot":"","sources":["../../../src/legacy/components/SecuritySchemeScopes.vue"],"names":[],"mappings":";aA0MW;QAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE;cAC1B,MAAM,EAAE;;;;aADT;QAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE;cAC1B,MAAM,EAAE;;;;
|
|
1
|
+
{"version":3,"file":"SecuritySchemeScopes.vue.d.ts","sourceRoot":"","sources":["../../../src/legacy/components/SecuritySchemeScopes.vue"],"names":[],"mappings":";aA0MW;QAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE;cAC1B,MAAM,EAAE;;;;aADT;QAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE;cAC1B,MAAM,EAAE;;;;AAkNpB,wBASG"}
|