@scalar/api-reference 1.24.20 → 1.24.23
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 +48 -0
- package/dist/browser/standalone.js +22673 -23143
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/components/ApiClientModal.vue.js +19 -18
- package/dist/components/ApiClientModal.vue3.js +5 -0
- package/dist/components/ApiReference.vue.js +14 -14
- package/dist/components/ApiReferenceLayout.vue.d.ts +2 -2
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +123 -155
- package/dist/components/Content/Authentication/Authentication.vue.d.ts.map +1 -1
- package/dist/components/Content/Authentication/Authentication.vue.js +2 -2
- package/dist/components/Content/Authentication/Authentication.vue2.js +20 -18
- package/dist/components/Content/Content.vue.d.ts +3 -3
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +2 -2
- package/dist/components/Content/Content.vue2.js +72 -93
- package/dist/components/Content/Lazy/Loading.vue.js +1 -1
- package/dist/components/Content/Operation/CustomRequestExamples.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/CustomRequestExamples.vue.js +1 -1
- package/dist/components/Content/Operation/CustomRequestExamples.vue2.js +19 -19
- package/dist/components/Content/Operation/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/ExampleRequest.vue.js +2 -2
- package/dist/components/Content/Operation/ExampleRequest.vue2.js +63 -59
- package/dist/components/Content/Operation/OperationAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/OperationAccordion.vue.js +1 -1
- package/dist/components/Content/Operation/OperationAccordion.vue2.js +26 -26
- package/dist/components/Content/Operation/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/TestRequestButton.vue.js +2 -2
- package/dist/components/Content/Operation/TestRequestButton.vue2.js +18 -36
- package/dist/components/Content/Schema/Schema.vue.d.ts +2 -2
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +2 -2
- package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
- package/dist/components/Content/Tag/Endpoints.vue2.js +23 -23
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +42 -0
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -0
- package/dist/components/HttpMethod/HttpMethod.vue.js +28 -0
- package/dist/components/HttpMethod/HttpMethod.vue2.js +4 -0
- package/dist/components/HttpMethod/constants.d.ts +9 -0
- package/dist/components/HttpMethod/constants.d.ts.map +1 -0
- package/dist/components/HttpMethod/constants.js +36 -0
- package/dist/components/HttpMethod/index.d.ts +2 -0
- package/dist/components/HttpMethod/index.d.ts.map +1 -0
- package/dist/components/HttpMethod/utils/isRequestMethod.d.ts +4 -0
- package/dist/components/HttpMethod/utils/isRequestMethod.d.ts.map +1 -0
- package/dist/components/HttpMethod/utils/isRequestMethod.js +7 -0
- package/dist/components/Sidebar/SidebarHttpBadge.vue.js +1 -1
- package/dist/components/Sidebar/SidebarHttpBadge.vue2.js +6 -6
- package/dist/components/api-client-bus.d.ts +1 -1
- package/dist/components/api-client-bus.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts +40 -0
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -0
- package/dist/features/BaseUrl/BaseUrl.vue.js +97 -0
- package/dist/features/BaseUrl/BaseUrl.vue2.js +4 -0
- package/dist/features/BaseUrl/ServerForm.vue.d.ts +41 -0
- package/dist/features/BaseUrl/ServerForm.vue.d.ts.map +1 -0
- package/dist/features/BaseUrl/ServerForm.vue.js +7 -0
- package/dist/features/BaseUrl/ServerForm.vue2.js +66 -0
- package/dist/{components/Content/BaseUrl/ServerItem.vue.d.ts → features/BaseUrl/ServerUrl.vue.d.ts} +6 -6
- package/dist/features/BaseUrl/ServerUrl.vue.d.ts.map +1 -0
- package/dist/features/BaseUrl/ServerUrl.vue.js +8 -0
- package/dist/features/BaseUrl/ServerUrl.vue2.js +29 -0
- package/dist/{components/ApiClientModalOld.vue.d.ts → features/BaseUrl/ServerUrlSelect.vue.d.ts} +9 -15
- package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -0
- package/dist/features/BaseUrl/ServerUrlSelect.vue.js +7 -0
- package/dist/features/BaseUrl/ServerUrlSelect.vue2.js +56 -0
- package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts +23 -0
- package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts.map +1 -0
- package/dist/features/BaseUrl/ServerVariablesForm.vue.js +7 -0
- package/dist/features/BaseUrl/ServerVariablesForm.vue2.js +53 -0
- package/dist/{components/Content/BaseUrl/ServerVariableSelect.vue.d.ts → features/BaseUrl/ServerVariablesSelect.vue.d.ts} +1 -1
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts.map +1 -0
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.js +7 -0
- package/dist/{components/Content/BaseUrl/ServerVariableSelect.vue2.js → features/BaseUrl/ServerVariablesSelect.vue2.js} +1 -1
- package/dist/{components/Content/BaseUrl/ServerVariableTextbox.vue.d.ts → features/BaseUrl/ServerVariablesTextbox.vue.d.ts} +1 -1
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts.map +1 -0
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue.js +7 -0
- package/dist/{components/Content/BaseUrl/ServerVariableTextbox.vue2.js → features/BaseUrl/ServerVariablesTextbox.vue2.js} +6 -6
- package/dist/features/BaseUrl/index.d.ts +3 -0
- package/dist/features/BaseUrl/index.d.ts.map +1 -0
- package/dist/features/BaseUrl/types.d.ts +10 -0
- package/dist/features/BaseUrl/types.d.ts.map +1 -0
- package/dist/features/BaseUrl/utils/getServers.d.ts +15 -0
- package/dist/features/BaseUrl/utils/getServers.d.ts.map +1 -0
- package/dist/features/BaseUrl/utils/getServers.js +29 -0
- package/dist/features/BaseUrl/utils/index.d.ts +2 -0
- package/dist/features/BaseUrl/utils/index.d.ts.map +1 -0
- package/dist/helpers/createEmptySpecification.d.ts +1 -1
- package/dist/helpers/createEmptySpecification.d.ts.map +1 -1
- package/dist/helpers/createEmptySpecification.js +5 -4
- package/dist/helpers/getApiClientRequest.d.ts +1 -1
- package/dist/helpers/getApiClientRequest.d.ts.map +1 -1
- package/dist/helpers/getApiClientRequest.js +12 -11
- package/dist/helpers/getModels.d.ts +1 -1
- package/dist/helpers/index.d.ts +1 -1
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/openClientFor.js +10 -7
- package/dist/helpers/parse.d.ts.map +1 -1
- package/dist/helpers/parse.js +33 -31
- package/dist/hooks/useReactiveSpec.d.ts +9 -9
- package/dist/hooks/useSidebar.js +18 -17
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +101 -102
- package/dist/legacy/components/CardForm.vue.d.ts +10 -0
- package/dist/legacy/components/CardForm.vue.d.ts.map +1 -0
- package/dist/legacy/components/CardForm.vue.js +13 -0
- package/dist/legacy/components/CardFormButton.vue.d.ts +12 -0
- package/dist/legacy/components/CardFormButton.vue.d.ts.map +1 -0
- package/dist/legacy/components/CardFormButton.vue.js +7 -0
- package/dist/legacy/components/CardFormButton.vue2.js +18 -0
- package/dist/legacy/components/CardFormGroup.vue.d.ts +10 -0
- package/dist/legacy/components/CardFormGroup.vue.d.ts.map +1 -0
- package/dist/legacy/components/CardFormGroup.vue.js +13 -0
- package/dist/legacy/components/CardFormRows.vue.d.ts +10 -0
- package/dist/legacy/components/CardFormRows.vue.d.ts.map +1 -0
- package/dist/legacy/components/CardFormRows.vue.js +13 -0
- package/dist/legacy/components/CardFormTextInput.vue.d.ts +25 -0
- package/dist/legacy/components/CardFormTextInput.vue.d.ts.map +1 -0
- package/dist/legacy/components/CardFormTextInput.vue.js +7 -0
- package/dist/legacy/components/CardFormTextInput.vue2.js +37 -0
- package/dist/{components/Content/BaseUrl/ServerVariables.vue.d.ts → legacy/components/SecurityScheme.vue.d.ts} +6 -4
- package/dist/legacy/components/SecurityScheme.vue.d.ts.map +1 -0
- package/dist/legacy/components/SecurityScheme.vue.js +7 -0
- package/dist/legacy/components/SecurityScheme.vue2.js +364 -0
- package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts +26 -0
- package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts.map +1 -0
- package/dist/legacy/components/SecuritySchemeScopes.vue.js +7 -0
- package/dist/legacy/components/SecuritySchemeScopes.vue2.js +91 -0
- package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts +25 -0
- package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -0
- package/dist/legacy/components/SecuritySchemeSelector.vue.js +7 -0
- package/dist/legacy/components/SecuritySchemeSelector.vue2.js +64 -0
- package/dist/legacy/fixtures/httpHeaders.d.ts +6 -0
- package/dist/legacy/fixtures/httpHeaders.d.ts.map +1 -0
- package/dist/legacy/fixtures/httpRequestMethods.d.ts +10 -0
- package/dist/legacy/fixtures/httpRequestMethods.d.ts.map +1 -0
- package/dist/legacy/fixtures/httpRequestMethods.js +18 -0
- package/dist/legacy/fixtures/index.d.ts +3 -0
- package/dist/legacy/fixtures/index.d.ts.map +1 -0
- package/dist/legacy/helpers/createPlaceholderRequest.d.ts +6 -0
- package/dist/legacy/helpers/createPlaceholderRequest.d.ts.map +1 -0
- package/dist/legacy/helpers/createPlaceholderRequest.js +14 -0
- package/dist/legacy/helpers/encodeStringAsBase64.d.ts +5 -0
- package/dist/legacy/helpers/encodeStringAsBase64.d.ts.map +1 -0
- package/dist/legacy/helpers/encodeStringAsBase64.js +6 -0
- package/dist/legacy/helpers/getRequestFromAuthentication.d.ts +10 -0
- package/dist/legacy/helpers/getRequestFromAuthentication.d.ts.map +1 -0
- package/dist/legacy/helpers/getRequestFromAuthentication.js +83 -0
- package/dist/legacy/helpers/getUrlFromServerState.d.ts +6 -0
- package/dist/legacy/helpers/getUrlFromServerState.d.ts.map +1 -0
- package/dist/legacy/helpers/getUrlFromServerState.js +9 -0
- package/dist/legacy/helpers/humanDiff.d.ts +5 -0
- package/dist/legacy/helpers/humanDiff.d.ts.map +1 -0
- package/dist/legacy/helpers/index.d.ts +12 -0
- package/dist/legacy/helpers/index.d.ts.map +1 -0
- package/dist/legacy/helpers/mapFromArray.d.ts +5 -0
- package/dist/legacy/helpers/mapFromArray.d.ts.map +1 -0
- package/dist/legacy/helpers/normalizeHeaders.d.ts +9 -0
- package/dist/legacy/helpers/normalizeHeaders.d.ts.map +1 -0
- package/dist/legacy/helpers/normalizePath.d.ts +5 -0
- package/dist/legacy/helpers/normalizePath.d.ts.map +1 -0
- package/dist/legacy/helpers/normalizeRequestMethod.d.ts +6 -0
- package/dist/legacy/helpers/normalizeRequestMethod.d.ts.map +1 -0
- package/dist/legacy/helpers/normalizeRequestMethod.js +14 -0
- package/dist/legacy/helpers/normalizeUrl.d.ts +5 -0
- package/dist/legacy/helpers/normalizeUrl.d.ts.map +1 -0
- package/dist/legacy/helpers/prepareClientRequestConfig.d.ts +24 -0
- package/dist/legacy/helpers/prepareClientRequestConfig.d.ts.map +1 -0
- package/dist/legacy/index.d.ts +5 -0
- package/dist/legacy/index.d.ts.map +1 -0
- package/dist/legacy/stores/index.d.ts +6 -0
- package/dist/legacy/stores/index.d.ts.map +1 -0
- package/dist/legacy/stores/useApiClientStore.d.ts +18 -0
- package/dist/legacy/stores/useApiClientStore.d.ts.map +1 -0
- package/dist/legacy/stores/useApiClientStore.js +32 -0
- package/dist/legacy/stores/useAuthenticationStore.d.ts +59 -0
- package/dist/legacy/stores/useAuthenticationStore.d.ts.map +1 -0
- package/dist/legacy/stores/useAuthenticationStore.js +36 -0
- package/dist/legacy/stores/useOpenApiStore.d.ts +95 -0
- package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -0
- package/dist/legacy/stores/useOpenApiStore.js +23 -0
- package/dist/legacy/stores/useRequestStore.d.ts +58 -0
- package/dist/legacy/stores/useRequestStore.d.ts.map +1 -0
- package/dist/legacy/stores/useRequestStore.js +33 -0
- package/dist/legacy/stores/useServerStore.d.ts +18 -0
- package/dist/legacy/stores/useServerStore.d.ts.map +1 -0
- package/dist/legacy/stores/useServerStore.js +18 -0
- package/dist/legacy/types.d.ts +117 -0
- package/dist/legacy/types.d.ts.map +1 -0
- package/dist/stores/index.d.ts +1 -0
- package/dist/stores/index.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +8 -11
- package/dist/types.d.ts.map +1 -1
- package/package.json +16 -15
- package/dist/components/ApiClientModal.vue2.js +0 -4
- package/dist/components/ApiClientModalOld.vue.d.ts.map +0 -1
- package/dist/components/ApiClientModalOld.vue.js +0 -7
- package/dist/components/ApiClientModalOld.vue2.js +0 -88
- package/dist/components/Content/BaseUrl/BaseUrl.vue.d.ts +0 -3
- package/dist/components/Content/BaseUrl/BaseUrl.vue.d.ts.map +0 -1
- package/dist/components/Content/BaseUrl/BaseUrl.vue.js +0 -7
- package/dist/components/Content/BaseUrl/BaseUrl.vue2.js +0 -90
- package/dist/components/Content/BaseUrl/ServerItem.vue.d.ts.map +0 -1
- package/dist/components/Content/BaseUrl/ServerItem.vue.js +0 -8
- package/dist/components/Content/BaseUrl/ServerItem.vue2.js +0 -35
- package/dist/components/Content/BaseUrl/ServerVariableSelect.vue.d.ts.map +0 -1
- package/dist/components/Content/BaseUrl/ServerVariableSelect.vue.js +0 -7
- package/dist/components/Content/BaseUrl/ServerVariableTextbox.vue.d.ts.map +0 -1
- package/dist/components/Content/BaseUrl/ServerVariableTextbox.vue.js +0 -7
- package/dist/components/Content/BaseUrl/ServerVariables.vue.d.ts.map +0 -1
- package/dist/components/Content/BaseUrl/ServerVariables.vue.js +0 -7
- package/dist/components/Content/BaseUrl/ServerVariables.vue2.js +0 -47
- package/dist/components/Content/BaseUrl/index.d.ts +0 -2
- package/dist/components/Content/BaseUrl/index.d.ts.map +0 -1
- package/dist/components/Content/Schema/SchemaProperty.spec.d.ts +0 -2
- package/dist/components/Content/Schema/SchemaProperty.spec.d.ts.map +0 -1
- package/dist/features.d.ts +0 -8
- package/dist/features.d.ts.map +0 -1
- package/dist/features.js +0 -5
- package/dist/standalone.spec.d.ts +0 -2
- package/dist/standalone.spec.d.ts.map +0 -1
|
@@ -1,70 +1,74 @@
|
|
|
1
1
|
import { defineComponent as j, ref as $, computed as d, inject as w, onServerPrefetch as A, useSSRContext as F, openBlock as f, createBlock as k, unref as o, withCtx as p, createVNode as i, createTextVNode as P, toDisplayString as K, createElementVNode as y, renderSlot as b, createElementBlock as U, createCommentVNode as x } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import oe from "./TextSelect.vue.js";
|
|
2
|
+
import { ScalarIcon as I, ScalarCodeBlock as J } from "@scalar/components";
|
|
3
|
+
import { createHash as L, ssrState as M } from "@scalar/oas-utils/helpers";
|
|
4
|
+
import { getRequestFromOperation as Y } from "@scalar/oas-utils/spec-getters";
|
|
5
|
+
import { snippetz as _ } from "@scalar/snippetz";
|
|
6
|
+
import { asyncComputed as z } from "@vueuse/core";
|
|
7
|
+
import { HTTPSnippet as D } from "httpsnippet-lite";
|
|
8
|
+
import Q from "./ExamplePicker.vue.js";
|
|
9
|
+
import W from "./TextSelect.vue.js";
|
|
11
10
|
/* empty css */
|
|
12
|
-
import { GLOBAL_SECURITY_SYMBOL as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
|
|
11
|
+
import { GLOBAL_SECURITY_SYMBOL as X } from "../../../helpers/provideSymbols.js";
|
|
12
|
+
import Z from "../../Card/Card.vue.js";
|
|
13
|
+
import G from "../../Card/CardHeader.vue.js";
|
|
14
|
+
import ee from "../../HttpMethod/HttpMethod.vue.js";
|
|
15
|
+
import te from "../../Card/CardContent.vue.js";
|
|
16
|
+
import { getSecretCredentialsFromAuthentication as oe, getRequestFromAuthentication as re } from "../../../legacy/helpers/getRequestFromAuthentication.js";
|
|
17
|
+
import ne from "../../Card/CardFooter.vue.js";
|
|
18
|
+
import { useClipboard as ae } from "../../../hooks/useClipboard.js";
|
|
19
|
+
import { useHttpClientStore as se } from "../../../stores/useHttpClientStore.js";
|
|
20
|
+
import { getApiClientRequest as ie } from "../../../helpers/getApiClientRequest.js";
|
|
21
|
+
import { useServerStore as le } from "../../../legacy/stores/useServerStore.js";
|
|
22
|
+
import { useAuthenticationStore as pe } from "../../../legacy/stores/useAuthenticationStore.js";
|
|
23
|
+
import { getHarRequest as ce } from "../../../helpers/getHarRequest.js";
|
|
24
|
+
import { getUrlFromServerState as me } from "../../../legacy/helpers/getUrlFromServerState.js";
|
|
25
|
+
const ue = { class: "request-header" }, de = { class: "code-snippet" }, fe = {
|
|
22
26
|
key: 0,
|
|
23
27
|
class: "request-card-footer-addon"
|
|
24
|
-
},
|
|
28
|
+
}, Pe = /* @__PURE__ */ j({
|
|
25
29
|
__name: "ExampleRequest",
|
|
26
30
|
props: {
|
|
27
31
|
operation: {}
|
|
28
32
|
},
|
|
29
|
-
setup(
|
|
30
|
-
const s =
|
|
33
|
+
setup(V) {
|
|
34
|
+
const s = V, h = `components-Content-Operation-Example-Request${L(
|
|
31
35
|
s.operation.path + s.operation.httpVerb + s.operation.operationId
|
|
32
|
-
)}`, C = $(), { copyToClipboard: E } =
|
|
36
|
+
)}`, C = $(), { copyToClipboard: E } = ae(), {
|
|
33
37
|
httpClient: a,
|
|
34
|
-
setHttpClient:
|
|
35
|
-
availableTargets:
|
|
36
|
-
httpTargetTitle:
|
|
37
|
-
httpClientTitle:
|
|
38
|
-
} =
|
|
38
|
+
setHttpClient: R,
|
|
39
|
+
availableTargets: T,
|
|
40
|
+
httpTargetTitle: B,
|
|
41
|
+
httpClientTitle: H
|
|
42
|
+
} = se(), { server: S } = le(), { authentication: m } = pe(), v = d(
|
|
39
43
|
() => {
|
|
40
44
|
var e, r, t, n;
|
|
41
45
|
return Object.keys(
|
|
42
46
|
((n = (t = (r = (e = s.operation.information) == null ? void 0 : e.requestBody) == null ? void 0 : r.content) == null ? void 0 : t["application/json"]) == null ? void 0 : n.examples) ?? {}
|
|
43
47
|
).length > 1;
|
|
44
48
|
}
|
|
45
|
-
), l = w(
|
|
49
|
+
), l = w(X);
|
|
46
50
|
async function g() {
|
|
47
51
|
var n;
|
|
48
|
-
const e =
|
|
52
|
+
const e = ce(
|
|
49
53
|
{
|
|
50
|
-
url:
|
|
54
|
+
url: me(S)
|
|
51
55
|
},
|
|
52
|
-
|
|
56
|
+
Y(
|
|
53
57
|
s.operation,
|
|
54
58
|
{
|
|
55
59
|
replaceVariables: !0
|
|
56
60
|
},
|
|
57
61
|
C.value
|
|
58
62
|
),
|
|
59
|
-
|
|
60
|
-
|
|
63
|
+
re(
|
|
64
|
+
m,
|
|
61
65
|
((n = s.operation.information) == null ? void 0 : n.security) ?? (l == null ? void 0 : l())
|
|
62
66
|
)
|
|
63
67
|
), r = a.clientKey === "undici" || a.clientKey === "fetch" || a.clientKey === "ofetch" ? a.clientKey : null, t = a.targetKey.replace("javascript", "js");
|
|
64
|
-
if (r &&
|
|
65
|
-
return
|
|
68
|
+
if (r && _().hasPlugin(t, r) && (t === "node" || t === "js"))
|
|
69
|
+
return _().print(t, r, e) ?? "";
|
|
66
70
|
try {
|
|
67
|
-
return await new
|
|
71
|
+
return await new D(e).convert(
|
|
68
72
|
a.targetKey,
|
|
69
73
|
a.clientKey
|
|
70
74
|
);
|
|
@@ -72,31 +76,31 @@ const me = { class: "request-header" }, de = { class: "code-snippet" }, fe = {
|
|
|
72
76
|
return console.error("[ExampleRequest]", c), "";
|
|
73
77
|
}
|
|
74
78
|
}
|
|
75
|
-
const
|
|
79
|
+
const u = z(
|
|
76
80
|
g,
|
|
77
|
-
|
|
81
|
+
M[h] ?? ""
|
|
78
82
|
);
|
|
79
83
|
A(async () => {
|
|
80
84
|
const e = F();
|
|
81
85
|
e.payload.data[h] = await g();
|
|
82
|
-
}), d(() =>
|
|
86
|
+
}), d(() => ie({
|
|
83
87
|
serverState: S,
|
|
84
|
-
authenticationState:
|
|
88
|
+
authenticationState: m,
|
|
85
89
|
operation: s.operation,
|
|
86
90
|
globalSecurity: l == null ? void 0 : l()
|
|
87
91
|
}));
|
|
88
92
|
const N = d(() => {
|
|
89
93
|
const e = a.targetKey;
|
|
90
|
-
return e === "shell" &&
|
|
94
|
+
return e === "shell" && u.value.includes("curl") ? "curl" : e === "c" || e === "csharp" ? "cpp" : e;
|
|
91
95
|
});
|
|
92
|
-
return (e, r) => (f(), k(o(
|
|
96
|
+
return (e, r) => (f(), k(o(Z), { class: "dark-mode" }, {
|
|
93
97
|
default: p(() => [
|
|
94
|
-
i(o(
|
|
98
|
+
i(o(G), { muted: "" }, {
|
|
95
99
|
actions: p(() => [
|
|
96
|
-
i(
|
|
100
|
+
i(W, {
|
|
97
101
|
class: "request-client-picker",
|
|
98
102
|
modelValue: JSON.stringify(o(a)),
|
|
99
|
-
options: o(
|
|
103
|
+
options: o(T).map((t) => ({
|
|
100
104
|
value: t.key,
|
|
101
105
|
label: t.title,
|
|
102
106
|
options: t.clients.map((n) => ({
|
|
@@ -107,27 +111,27 @@ const me = { class: "request-header" }, de = { class: "code-snippet" }, fe = {
|
|
|
107
111
|
label: n.title
|
|
108
112
|
}))
|
|
109
113
|
})),
|
|
110
|
-
"onUpdate:modelValue": r[0] || (r[0] = (t) => o(
|
|
114
|
+
"onUpdate:modelValue": r[0] || (r[0] = (t) => o(R)(JSON.parse(t)))
|
|
111
115
|
}, {
|
|
112
116
|
default: p(() => [
|
|
113
|
-
P(K(o(
|
|
117
|
+
P(K(o(B)) + " " + K(o(H)), 1)
|
|
114
118
|
]),
|
|
115
119
|
_: 1
|
|
116
120
|
}, 8, ["modelValue", "options"]),
|
|
117
121
|
y("button", {
|
|
118
122
|
class: "copy-button",
|
|
119
123
|
type: "button",
|
|
120
|
-
onClick: r[1] || (r[1] = (t) => o(E)(o(
|
|
124
|
+
onClick: r[1] || (r[1] = (t) => o(E)(o(u)))
|
|
121
125
|
}, [
|
|
122
|
-
i(o(
|
|
126
|
+
i(o(I), {
|
|
123
127
|
icon: "Clipboard",
|
|
124
128
|
width: "10px"
|
|
125
129
|
})
|
|
126
130
|
])
|
|
127
131
|
]),
|
|
128
132
|
default: p(() => [
|
|
129
|
-
y("div",
|
|
130
|
-
i(o(
|
|
133
|
+
y("div", ue, [
|
|
134
|
+
i(o(ee), {
|
|
131
135
|
as: "span",
|
|
132
136
|
class: "request-method",
|
|
133
137
|
method: e.operation.httpVerb
|
|
@@ -137,16 +141,16 @@ const me = { class: "request-header" }, de = { class: "code-snippet" }, fe = {
|
|
|
137
141
|
]),
|
|
138
142
|
_: 3
|
|
139
143
|
}),
|
|
140
|
-
i(o(
|
|
144
|
+
i(o(te), {
|
|
141
145
|
borderless: "",
|
|
142
146
|
class: "request-editor-section custom-scroll",
|
|
143
147
|
frameless: ""
|
|
144
148
|
}, {
|
|
145
149
|
default: p(() => [
|
|
146
150
|
y("div", de, [
|
|
147
|
-
i(o(
|
|
148
|
-
content: o(
|
|
149
|
-
hideCredentials: o(
|
|
151
|
+
i(o(J), {
|
|
152
|
+
content: o(u),
|
|
153
|
+
hideCredentials: o(oe)(o(m)),
|
|
150
154
|
lang: N.value,
|
|
151
155
|
lineNumbers: ""
|
|
152
156
|
}, null, 8, ["content", "hideCredentials", "lang"])
|
|
@@ -154,7 +158,7 @@ const me = { class: "request-header" }, de = { class: "code-snippet" }, fe = {
|
|
|
154
158
|
]),
|
|
155
159
|
_: 1
|
|
156
160
|
}),
|
|
157
|
-
v.value || e.$slots.footer ? (f(), k(o(
|
|
161
|
+
v.value || e.$slots.footer ? (f(), k(o(ne), {
|
|
158
162
|
key: 0,
|
|
159
163
|
class: "request-card-footer",
|
|
160
164
|
contrast: ""
|
|
@@ -163,7 +167,7 @@ const me = { class: "request-header" }, de = { class: "code-snippet" }, fe = {
|
|
|
163
167
|
var t, n, c, q;
|
|
164
168
|
return [
|
|
165
169
|
v.value ? (f(), U("div", fe, [
|
|
166
|
-
i(
|
|
170
|
+
i(Q, {
|
|
167
171
|
class: "request-example-selector",
|
|
168
172
|
examples: ((q = (c = (n = (t = e.operation.information) == null ? void 0 : t.requestBody) == null ? void 0 : n.content) == null ? void 0 : c["application/json"]) == null ? void 0 : q.examples) ?? [],
|
|
169
173
|
"onUpdate:modelValue": r[2] || (r[2] = (O) => C.value = O)
|
|
@@ -180,5 +184,5 @@ const me = { class: "request-header" }, de = { class: "code-snippet" }, fe = {
|
|
|
180
184
|
}
|
|
181
185
|
});
|
|
182
186
|
export {
|
|
183
|
-
|
|
187
|
+
Pe as default
|
|
184
188
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationAccordion.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/OperationAccordion.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OperationAccordion.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/OperationAccordion.vue"],"names":[],"mappings":"AAyNA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;AA+Q7D,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,7 +1,7 @@
|
|
|
1
1
|
import o from "./OperationAccordion.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-70dfcfc0"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineComponent as l, openBlock as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import S from "../../
|
|
1
|
+
import { defineComponent as l, openBlock as r, createBlock as p, unref as e, createSlots as c, withCtx as i, createElementVNode as n, createVNode as t, toDisplayString as m, withModifiers as h } from "vue";
|
|
2
|
+
import { ScalarIcon as f, ScalarIconButton as u, ScalarMarkdown as v } from "@scalar/components";
|
|
3
|
+
import y from "./EndpointDetailsCard.vue.js";
|
|
4
|
+
import _ from "./EndpointPath.vue.js";
|
|
5
|
+
import b from "./ExampleRequest.vue.js";
|
|
6
|
+
import C from "./TestRequestButton.vue.js";
|
|
7
|
+
import k from "../../Section/SectionAccordion.vue.js";
|
|
8
|
+
import S from "../../HttpMethod/HttpMethod.vue.js";
|
|
9
9
|
import w from "../../Anchor/Anchor.vue.js";
|
|
10
10
|
import A from "./PathResponses/PathResponses.vue.js";
|
|
11
11
|
import { useClipboard as B } from "../../../hooks/useClipboard.js";
|
|
12
|
-
const E = { class: "endpoint-header" }, R = { class: "endpoint-details" }, g = { class: "endpoint-label" }, I = { class: "endpoint-label-path" },
|
|
12
|
+
const E = { class: "endpoint-header" }, R = { class: "endpoint-details" }, g = { class: "endpoint-label" }, I = { class: "endpoint-label-path" }, P = { class: "endpoint-label-name" }, V = { class: "endpoint-content" }, H = /* @__PURE__ */ l({
|
|
13
13
|
__name: "OperationAccordion",
|
|
14
14
|
props: {
|
|
15
15
|
id: {},
|
|
16
16
|
operation: {}
|
|
17
17
|
},
|
|
18
|
-
setup(
|
|
18
|
+
setup(q) {
|
|
19
19
|
const { copyToClipboard: d } = B();
|
|
20
|
-
return (o, s) => (
|
|
20
|
+
return (o, s) => (r(), p(e(k), {
|
|
21
21
|
id: o.id,
|
|
22
22
|
class: "reference-endpoint",
|
|
23
23
|
transparent: ""
|
|
@@ -25,7 +25,7 @@ const E = { class: "endpoint-header" }, R = { class: "endpoint-details" }, g = {
|
|
|
25
25
|
title: i(() => [
|
|
26
26
|
n("h3", E, [
|
|
27
27
|
n("div", R, [
|
|
28
|
-
t(e(
|
|
28
|
+
t(e(S), {
|
|
29
29
|
class: "endpoint-type",
|
|
30
30
|
method: o.operation.httpVerb,
|
|
31
31
|
short: ""
|
|
@@ -35,16 +35,16 @@ const E = { class: "endpoint-header" }, R = { class: "endpoint-details" }, g = {
|
|
|
35
35
|
class: "endpoint-anchor"
|
|
36
36
|
}, {
|
|
37
37
|
default: i(() => {
|
|
38
|
-
var
|
|
38
|
+
var a;
|
|
39
39
|
return [
|
|
40
40
|
n("div", g, [
|
|
41
41
|
n("div", I, [
|
|
42
|
-
t(
|
|
43
|
-
deprecated: (
|
|
42
|
+
t(_, {
|
|
43
|
+
deprecated: (a = o.operation.information) == null ? void 0 : a.deprecated,
|
|
44
44
|
path: o.operation.path
|
|
45
45
|
}, null, 8, ["deprecated", "path"])
|
|
46
46
|
]),
|
|
47
|
-
n("div",
|
|
47
|
+
n("div", P, m(o.operation.name), 1)
|
|
48
48
|
])
|
|
49
49
|
];
|
|
50
50
|
}),
|
|
@@ -53,29 +53,29 @@ const E = { class: "endpoint-header" }, R = { class: "endpoint-details" }, g = {
|
|
|
53
53
|
])
|
|
54
54
|
])
|
|
55
55
|
]),
|
|
56
|
-
actions: i(({ active:
|
|
57
|
-
|
|
56
|
+
actions: i(({ active: a }) => [
|
|
57
|
+
a ? (r(), p(C, {
|
|
58
58
|
key: 0,
|
|
59
59
|
operation: o.operation
|
|
60
|
-
}, null, 8, ["operation"])) : (
|
|
60
|
+
}, null, 8, ["operation"])) : (r(), p(e(f), {
|
|
61
61
|
key: 1,
|
|
62
62
|
class: "endpoint-try-hint",
|
|
63
63
|
icon: "PaperAirplane"
|
|
64
64
|
})),
|
|
65
|
-
t(e(
|
|
65
|
+
t(e(u), {
|
|
66
66
|
class: "endpoint-copy",
|
|
67
67
|
icon: "Clipboard",
|
|
68
68
|
label: "Copy endpoint URL",
|
|
69
69
|
size: "xs",
|
|
70
70
|
variant: "ghost",
|
|
71
|
-
onClick: s[0] || (s[0] = h((
|
|
71
|
+
onClick: s[0] || (s[0] = h((D) => e(d)(o.operation.path), ["stop"]))
|
|
72
72
|
})
|
|
73
73
|
]),
|
|
74
74
|
default: i(() => [
|
|
75
|
-
n("div",
|
|
76
|
-
t(
|
|
75
|
+
n("div", V, [
|
|
76
|
+
t(y, { operation: o.operation }, null, 8, ["operation"]),
|
|
77
77
|
t(e(A), { operation: o.operation }, null, 8, ["operation"]),
|
|
78
|
-
t(
|
|
78
|
+
t(b, { operation: o.operation }, null, 8, ["operation"])
|
|
79
79
|
])
|
|
80
80
|
]),
|
|
81
81
|
_: 2
|
|
@@ -83,7 +83,7 @@ const E = { class: "endpoint-header" }, R = { class: "endpoint-details" }, g = {
|
|
|
83
83
|
o.operation.description ? {
|
|
84
84
|
name: "description",
|
|
85
85
|
fn: i(() => [
|
|
86
|
-
t(e(
|
|
86
|
+
t(e(v), {
|
|
87
87
|
value: o.operation.description,
|
|
88
88
|
withImages: ""
|
|
89
89
|
}, null, 8, ["value"])
|
|
@@ -94,5 +94,5 @@ const E = { class: "endpoint-header" }, R = { class: "endpoint-details" }, g = {
|
|
|
94
94
|
}
|
|
95
95
|
});
|
|
96
96
|
export {
|
|
97
|
-
|
|
97
|
+
H as default
|
|
98
98
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TestRequestButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/TestRequestButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TestRequestButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/TestRequestButton.vue"],"names":[],"mappings":"AAiEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;;;;;;AAgF7D,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,7 +1,7 @@
|
|
|
1
1
|
import t from "./TestRequestButton.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const s = /* @__PURE__ */ o(t, [["__scopeId", "data-v-fa4467a0"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,46 +1,28 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { apiClientBus as B } from "../../api-client-bus.js";
|
|
6
|
-
import { GLOBAL_SECURITY_SYMBOL as C } from "../../../helpers/provideSymbols.js";
|
|
7
|
-
import { openClientFor as I } from "../../../helpers/openClientFor.js";
|
|
8
|
-
const w = (o) => (d("data-v-98c21b42"), o = o(), f(), o), A = /* @__PURE__ */ w(() => /* @__PURE__ */ h("span", null, "Test Request", -1)), T = /* @__PURE__ */ i({
|
|
1
|
+
import { defineComponent as n, openBlock as r, createElementBlock as a, withModifiers as i, unref as p, createVNode as s, pushScopeId as c, popScopeId as m, createElementVNode as d } from "vue";
|
|
2
|
+
import { ScalarIcon as u } from "@scalar/components";
|
|
3
|
+
import { apiClientBus as l } from "../../api-client-bus.js";
|
|
4
|
+
const h = (e) => (c("data-v-fa4467a0"), e = e(), m(), e), f = ["method"], _ = /* @__PURE__ */ h(() => /* @__PURE__ */ d("span", null, "Test Request", -1)), V = /* @__PURE__ */ n({
|
|
9
5
|
__name: "TestRequestButton",
|
|
10
6
|
props: {
|
|
11
7
|
operation: {}
|
|
12
8
|
},
|
|
13
|
-
setup(
|
|
14
|
-
|
|
15
|
-
return (e, p) => (s(), m(t(_), {
|
|
16
|
-
as: "button",
|
|
9
|
+
setup(e) {
|
|
10
|
+
return (t, o) => (r(), a("button", {
|
|
17
11
|
class: "show-api-client-button",
|
|
18
|
-
method:
|
|
12
|
+
method: t.operation.httpVerb,
|
|
19
13
|
type: "button",
|
|
20
|
-
onClick:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
) : (
|
|
31
|
-
// @scalar/api-client@1.x
|
|
32
|
-
t(I)(e.operation, (r = t(n)) == null ? void 0 : r())
|
|
33
|
-
);
|
|
34
|
-
}, ["stop"]))
|
|
35
|
-
}, {
|
|
36
|
-
default: l(() => [
|
|
37
|
-
u(t(b), { icon: "PaperAirplane" }),
|
|
38
|
-
A
|
|
39
|
-
]),
|
|
40
|
-
_: 1
|
|
41
|
-
}, 8, ["method"]));
|
|
14
|
+
onClick: o[0] || (o[0] = i((b) => p(l).emit({
|
|
15
|
+
open: {
|
|
16
|
+
path: t.operation.path,
|
|
17
|
+
method: t.operation.httpVerb
|
|
18
|
+
}
|
|
19
|
+
}), ["stop"]))
|
|
20
|
+
}, [
|
|
21
|
+
s(p(u), { icon: "PaperAirplane" }),
|
|
22
|
+
_
|
|
23
|
+
], 8, f));
|
|
42
24
|
}
|
|
43
25
|
});
|
|
44
26
|
export {
|
|
45
|
-
|
|
27
|
+
V as default
|
|
46
28
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-parser';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
3
|
-
value?:
|
|
3
|
+
value?: OpenAPIV2.DefinitionsObject | OpenAPIV3_1.SchemaObject | OpenAPIV3.SchemaObject | undefined;
|
|
4
4
|
/** Track how deep we’ve gone */
|
|
5
5
|
level?: number | undefined;
|
|
6
6
|
name?: string | undefined;
|
|
@@ -11,7 +11,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
11
11
|
}>, {
|
|
12
12
|
level: number;
|
|
13
13
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
14
|
-
value?:
|
|
14
|
+
value?: OpenAPIV2.DefinitionsObject | OpenAPIV3_1.SchemaObject | OpenAPIV3.SchemaObject | undefined;
|
|
15
15
|
/** Track how deep we’ve gone */
|
|
16
16
|
level?: number | undefined;
|
|
17
17
|
name?: string | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-parser';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
|
-
value:
|
|
3
|
+
value: OpenAPIV2.DefinitionsObject | OpenAPIV3_1.SchemaObject | OpenAPIV3.SchemaObject;
|
|
4
4
|
name?: string | undefined;
|
|
5
5
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
6
|
-
value:
|
|
6
|
+
value: OpenAPIV2.DefinitionsObject | OpenAPIV3_1.SchemaObject | OpenAPIV3.SchemaObject;
|
|
7
7
|
name?: string | undefined;
|
|
8
8
|
}>>>, {}, {}>;
|
|
9
9
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Endpoints.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Endpoints.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Endpoints.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Endpoints.vue"],"names":[],"mappings":"AAyHA,OAAO,KAAK,EAAE,GAAG,EAAwB,MAAM,mBAAmB,CAAA;;;;;;;;;;;;AAkSlE,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Endpoints.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-f0ef5b24"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { defineComponent as N, openBlock as n, createBlock as s, unref as e, withCtx as o, createVNode as a, createTextVNode as
|
|
2
|
-
import {
|
|
3
|
-
import { ScalarMarkdown as H } from "@scalar/components";
|
|
1
|
+
import { defineComponent as N, openBlock as n, createBlock as s, unref as e, withCtx as o, createVNode as a, createTextVNode as u, toDisplayString as p, createElementVNode as c, createElementBlock as f, Fragment as b, renderList as y, createCommentVNode as V } from "vue";
|
|
2
|
+
import { ScalarMarkdown as E } from "@scalar/components";
|
|
4
3
|
import I from "../../Section/Section.vue.js";
|
|
5
4
|
import w from "../../Section/SectionContent.vue.js";
|
|
6
5
|
import A from "../../Section/SectionColumns.vue.js";
|
|
7
6
|
import g from "../../Section/SectionColumn.vue.js";
|
|
8
7
|
import B from "../../Section/SectionHeader.vue.js";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
8
|
+
import H from "../../Anchor/Anchor.vue.js";
|
|
9
|
+
import T from "../../Card/Card.vue.js";
|
|
11
10
|
import O from "../../Card/CardHeader.vue.js";
|
|
12
|
-
import
|
|
11
|
+
import $ from "../../Card/CardContent.vue.js";
|
|
12
|
+
import D from "../../HttpMethod/HttpMethod.vue.js";
|
|
13
13
|
import { useSidebar as F } from "../../../hooks/useSidebar.js";
|
|
14
14
|
import { useNavState as L } from "../../../hooks/useNavState.js";
|
|
15
|
-
const
|
|
15
|
+
const M = { class: "endpoints" }, U = ["onClick"], oe = /* @__PURE__ */ N({
|
|
16
16
|
__name: "Endpoints",
|
|
17
17
|
props: {
|
|
18
18
|
id: {},
|
|
19
19
|
tag: {}
|
|
20
20
|
},
|
|
21
21
|
emits: ["observeAndNavigate"],
|
|
22
|
-
setup(C, { emit:
|
|
23
|
-
const l = C,
|
|
24
|
-
|
|
22
|
+
setup(C, { emit: _ }) {
|
|
23
|
+
const l = C, h = _, { getOperationId: i, getTagId: m } = L(), { setCollapsedSidebarItem: v } = F(), S = (t) => {
|
|
24
|
+
h("observeAndNavigate", t);
|
|
25
25
|
};
|
|
26
26
|
async function k(t) {
|
|
27
|
-
S(i(t, l.tag)),
|
|
27
|
+
S(i(t, l.tag)), v(m(l.tag), !0);
|
|
28
28
|
}
|
|
29
29
|
return (t, j) => (n(), s(e(I), {
|
|
30
30
|
id: t.id,
|
|
@@ -39,18 +39,18 @@ const U = { class: "endpoints" }, $ = ["onClick"], oe = /* @__PURE__ */ N({
|
|
|
39
39
|
default: o(() => [
|
|
40
40
|
a(e(B), { level: 2 }, {
|
|
41
41
|
default: o(() => [
|
|
42
|
-
a(e(
|
|
43
|
-
id: e(
|
|
42
|
+
a(e(H), {
|
|
43
|
+
id: e(m)(t.tag)
|
|
44
44
|
}, {
|
|
45
45
|
default: o(() => [
|
|
46
|
-
p(
|
|
46
|
+
u(p(t.tag["x-displayName"] ?? t.tag.name), 1)
|
|
47
47
|
]),
|
|
48
48
|
_: 1
|
|
49
49
|
}, 8, ["id"])
|
|
50
50
|
]),
|
|
51
51
|
_: 1
|
|
52
52
|
}),
|
|
53
|
-
a(e(
|
|
53
|
+
a(e(E), {
|
|
54
54
|
value: t.tag.description,
|
|
55
55
|
withImages: ""
|
|
56
56
|
}, null, 8, ["value"])
|
|
@@ -59,35 +59,35 @@ const U = { class: "endpoints" }, $ = ["onClick"], oe = /* @__PURE__ */ N({
|
|
|
59
59
|
}),
|
|
60
60
|
a(e(g), null, {
|
|
61
61
|
default: o(() => {
|
|
62
|
-
var
|
|
62
|
+
var d;
|
|
63
63
|
return [
|
|
64
|
-
((
|
|
64
|
+
((d = t.tag.operations) == null ? void 0 : d.length) > 0 ? (n(), s(e(T), {
|
|
65
65
|
key: 0,
|
|
66
66
|
class: "scalar-card-sticky"
|
|
67
67
|
}, {
|
|
68
68
|
default: o(() => [
|
|
69
69
|
a(e(O), { muted: "" }, {
|
|
70
70
|
default: o(() => [
|
|
71
|
-
|
|
71
|
+
u("Endpoints")
|
|
72
72
|
]),
|
|
73
73
|
_: 1
|
|
74
74
|
}),
|
|
75
|
-
a(e(
|
|
75
|
+
a(e($), {
|
|
76
76
|
class: "custom-scroll",
|
|
77
77
|
muted: ""
|
|
78
78
|
}, {
|
|
79
79
|
default: o(() => [
|
|
80
|
-
c("div",
|
|
80
|
+
c("div", M, [
|
|
81
81
|
(n(!0), f(b, null, y(t.tag.operations, (r) => (n(), f("a", {
|
|
82
82
|
key: e(i)(r, t.tag),
|
|
83
83
|
class: "endpoint",
|
|
84
84
|
onClick: (q) => k(r)
|
|
85
85
|
}, [
|
|
86
|
-
a(e(
|
|
86
|
+
a(e(D), {
|
|
87
87
|
method: r.httpVerb
|
|
88
88
|
}, null, 8, ["method"]),
|
|
89
|
-
c("span", null,
|
|
90
|
-
], 8,
|
|
89
|
+
c("span", null, p(r.path), 1)
|
|
90
|
+
], 8, U))), 128))
|
|
91
91
|
])
|
|
92
92
|
]),
|
|
93
93
|
_: 1
|