docusaurus-theme-openapi-docs 2.0.0-beta.1 → 2.0.0-beta.3
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/lib/index.d.ts +2 -0
- package/lib/index.js +53 -55
- package/lib/markdown/createDescription.d.ts +1 -0
- package/lib/markdown/createDescription.js +8 -11
- package/lib/markdown/schema.d.ts +3 -0
- package/lib/markdown/schema.js +138 -139
- package/lib/markdown/utils.d.ts +8 -0
- package/lib/markdown/utils.js +36 -42
- package/lib/theme/ApiDemoPanel/Accept/index.d.ts +3 -0
- package/lib/theme/ApiDemoPanel/Accept/index.js +26 -20
- package/lib/theme/ApiDemoPanel/Accept/slice.d.ts +11 -0
- package/lib/theme/ApiDemoPanel/Accept/slice.js +8 -17
- package/lib/theme/ApiDemoPanel/ApiCodeBlock/Container/_Container.scss +7 -0
- package/lib/theme/ApiDemoPanel/ApiCodeBlock/Container/index.js +29 -0
- package/lib/theme/ApiDemoPanel/ApiCodeBlock/Content/Element.js +30 -0
- package/lib/theme/ApiDemoPanel/ApiCodeBlock/Content/String.js +131 -0
- package/lib/theme/ApiDemoPanel/ApiCodeBlock/Content/_Content.scss +91 -0
- package/lib/theme/ApiDemoPanel/ApiCodeBlock/CopyButton/_CopyButton.scss +44 -0
- package/lib/theme/ApiDemoPanel/ApiCodeBlock/CopyButton/index.js +74 -0
- package/lib/theme/ApiDemoPanel/ApiCodeBlock/ExitButton/_ExitButton.scss +16 -0
- package/lib/theme/ApiDemoPanel/ApiCodeBlock/ExitButton/index.js +47 -0
- package/lib/theme/ApiDemoPanel/ApiCodeBlock/ExpandButton/_ExpandButton.scss +62 -0
- package/lib/theme/ApiDemoPanel/ApiCodeBlock/ExpandButton/index.js +165 -0
- package/lib/theme/ApiDemoPanel/ApiCodeBlock/Line/_Line.scss +46 -0
- package/lib/theme/ApiDemoPanel/ApiCodeBlock/Line/index.js +47 -0
- package/lib/theme/ApiDemoPanel/ApiCodeBlock/WordWrapButton/_WordWrapButton.scss +10 -0
- package/lib/theme/ApiDemoPanel/ApiCodeBlock/WordWrapButton/index.js +44 -0
- package/lib/theme/ApiDemoPanel/ApiCodeBlock/index.js +40 -0
- package/lib/theme/ApiDemoPanel/Authorization/auth-types.d.ts +3 -0
- package/lib/theme/ApiDemoPanel/Authorization/auth-types.js +4 -10
- package/lib/theme/ApiDemoPanel/Authorization/index.d.ts +3 -0
- package/lib/theme/ApiDemoPanel/Authorization/index.js +134 -84
- package/lib/theme/ApiDemoPanel/Authorization/slice.d.ts +40 -0
- package/lib/theme/ApiDemoPanel/Authorization/slice.js +30 -47
- package/lib/theme/ApiDemoPanel/Body/index.d.ts +10 -0
- package/lib/theme/ApiDemoPanel/Body/index.js +250 -158
- package/lib/theme/ApiDemoPanel/Body/slice.d.ts +82 -0
- package/lib/theme/ApiDemoPanel/Body/slice.js +39 -44
- package/lib/theme/ApiDemoPanel/CodeTabs/_CodeTabs.scss +170 -95
- package/lib/theme/ApiDemoPanel/CodeTabs/index.js +25 -7
- package/lib/theme/ApiDemoPanel/ContentType/index.d.ts +3 -0
- package/lib/theme/ApiDemoPanel/ContentType/index.js +28 -20
- package/lib/theme/ApiDemoPanel/ContentType/slice.d.ts +11 -0
- package/lib/theme/ApiDemoPanel/ContentType/slice.js +8 -17
- package/lib/theme/ApiDemoPanel/Curl/index.d.ts +20 -0
- package/lib/theme/ApiDemoPanel/Curl/index.js +341 -164
- package/lib/theme/ApiDemoPanel/Export/index.d.ts +3 -0
- package/lib/theme/ApiDemoPanel/Export/index.js +44 -34
- package/lib/theme/ApiDemoPanel/FloatingButton/index.d.ts +8 -0
- package/lib/theme/ApiDemoPanel/FloatingButton/index.js +20 -21
- package/lib/theme/ApiDemoPanel/FormFileUpload/index.d.ts +7 -0
- package/lib/theme/ApiDemoPanel/FormFileUpload/index.js +137 -58
- package/lib/theme/ApiDemoPanel/FormItem/_FormItem.scss +11 -2
- package/lib/theme/ApiDemoPanel/FormItem/index.d.ts +10 -0
- package/lib/theme/ApiDemoPanel/FormItem/index.js +34 -29
- package/lib/theme/ApiDemoPanel/FormMultiSelect/_FormMultiSelect.scss +8 -4
- package/lib/theme/ApiDemoPanel/FormMultiSelect/index.d.ts +9 -0
- package/lib/theme/ApiDemoPanel/FormMultiSelect/index.js +32 -25
- package/lib/theme/ApiDemoPanel/FormSelect/_FormSelect.scss +3 -3
- package/lib/theme/ApiDemoPanel/FormSelect/index.d.ts +8 -0
- package/lib/theme/ApiDemoPanel/FormSelect/index.js +24 -22
- package/lib/theme/ApiDemoPanel/FormTextInput/_FormTextInput.scss +24 -5
- package/lib/theme/ApiDemoPanel/FormTextInput/index.d.ts +9 -0
- package/lib/theme/ApiDemoPanel/FormTextInput/index.js +60 -14
- package/lib/theme/ApiDemoPanel/LiveEditor/index.d.ts +6 -0
- package/lib/theme/ApiDemoPanel/LiveEditor/index.js +135 -42
- package/lib/theme/ApiDemoPanel/MethodEndpoint/_MethodEndpoint.scss +16 -0
- package/lib/theme/ApiDemoPanel/MethodEndpoint/index.d.ts +7 -0
- package/lib/theme/ApiDemoPanel/MethodEndpoint/index.js +47 -38
- package/lib/theme/ApiDemoPanel/ParamOptions/ParamFormItems/ParamArrayFormItem.d.ts +6 -0
- package/lib/theme/ApiDemoPanel/ParamOptions/ParamFormItems/ParamArrayFormItem.js +194 -0
- package/lib/theme/ApiDemoPanel/ParamOptions/ParamFormItems/ParamBooleanFormItem.d.ts +6 -0
- package/lib/theme/ApiDemoPanel/ParamOptions/ParamFormItems/ParamBooleanFormItem.js +63 -0
- package/lib/theme/ApiDemoPanel/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.d.ts +6 -0
- package/lib/theme/ApiDemoPanel/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.js +89 -0
- package/lib/theme/ApiDemoPanel/ParamOptions/ParamFormItems/ParamSelectFormItem.d.ts +6 -0
- package/lib/theme/ApiDemoPanel/ParamOptions/ParamFormItems/ParamSelectFormItem.js +63 -0
- package/lib/theme/ApiDemoPanel/ParamOptions/ParamFormItems/ParamTextFormItem.d.ts +6 -0
- package/lib/theme/ApiDemoPanel/ParamOptions/ParamFormItems/ParamTextFormItem.js +38 -0
- package/lib/theme/ApiDemoPanel/ParamOptions/_ParamOptions.scss +9 -28
- package/lib/theme/ApiDemoPanel/ParamOptions/index.d.ts +7 -0
- package/lib/theme/ApiDemoPanel/ParamOptions/index.js +193 -198
- package/lib/theme/ApiDemoPanel/ParamOptions/slice.d.ts +17 -0
- package/lib/theme/ApiDemoPanel/ParamOptions/slice.js +9 -18
- package/lib/theme/ApiDemoPanel/Request/_Request.scss +93 -20
- package/lib/theme/ApiDemoPanel/Request/index.d.ts +6 -0
- package/lib/theme/ApiDemoPanel/Request/index.js +342 -51
- package/lib/theme/ApiDemoPanel/Request/makeRequest.d.ts +4 -0
- package/{lib-next/theme/ApiDemoPanel/Execute → lib/theme/ApiDemoPanel/Request}/makeRequest.js +3 -4
- package/lib/theme/ApiDemoPanel/Response/_Response.scss +54 -0
- package/lib/theme/ApiDemoPanel/Response/index.d.ts +6 -0
- package/lib/theme/ApiDemoPanel/Response/index.js +151 -71
- package/lib/theme/ApiDemoPanel/Response/slice.d.ts +17 -0
- package/lib/theme/ApiDemoPanel/Response/slice.js +25 -30
- package/lib/theme/ApiDemoPanel/SecuritySchemes/index.d.ts +3 -0
- package/lib/theme/ApiDemoPanel/SecuritySchemes/index.js +349 -226
- package/lib/theme/ApiDemoPanel/Server/_Server.scss +10 -0
- package/lib/theme/ApiDemoPanel/Server/index.d.ts +3 -0
- package/lib/theme/ApiDemoPanel/Server/index.js +155 -71
- package/lib/theme/ApiDemoPanel/Server/slice.d.ts +13 -0
- package/lib/theme/ApiDemoPanel/Server/slice.js +15 -22
- package/lib/theme/ApiDemoPanel/buildPostmanRequest.d.ts +20 -0
- package/lib/theme/ApiDemoPanel/buildPostmanRequest.js +136 -154
- package/lib/theme/ApiDemoPanel/index.d.ts +7 -0
- package/lib/theme/ApiDemoPanel/index.js +26 -27
- package/lib/theme/ApiDemoPanel/persistanceMiddleware.d.ts +3 -0
- package/lib/theme/ApiDemoPanel/persistanceMiddleware.js +15 -19
- package/lib/theme/ApiDemoPanel/storage-utils.d.ts +4 -0
- package/lib/theme/ApiDemoPanel/storage-utils.js +14 -13
- package/lib/theme/ApiItem/Layout/index.d.ts +4 -0
- package/lib/theme/ApiItem/Layout/index.js +78 -56
- package/lib/theme/ApiItem/hooks.d.ts +12 -0
- package/lib/theme/ApiItem/hooks.js +5 -10
- package/lib/theme/ApiItem/index.d.ts +4 -0
- package/lib/theme/ApiItem/index.js +136 -115
- package/lib/theme/ApiItem/store.d.ts +46 -0
- package/lib/theme/ApiItem/store.js +44 -34
- package/lib/theme/ApiLogo/index.d.ts +2 -0
- package/lib/theme/ApiLogo/index.js +34 -32
- package/lib/theme/ApiTabs/_ApiTabs.scss +29 -22
- package/lib/theme/ApiTabs/index.js +4 -3
- package/lib/theme/DiscriminatorTabs/_DiscriminatorTabs.scss +17 -14
- package/lib/theme/Markdown/Details/_Details.scss +87 -4
- package/lib/theme/MimeTabs/_MimeTabs.scss +13 -8
- package/lib/theme/ParamsItem/_ParamsItem.scss +25 -10
- package/lib/theme/ParamsItem/index.js +9 -6
- package/lib/theme/SchemaItem/_SchemaItem.scss +48 -13
- package/lib/theme/SchemaItem/index.js +23 -12
- package/lib/theme/SchemaTabs/_SchemaTabs.scss +23 -17
- package/lib/theme/SchemaTabs/index.js +50 -54
- package/lib/theme/styles.scss +44 -1
- package/lib/types.d.ts +157 -0
- package/lib/types.js +8 -1
- package/package.json +14 -22
- package/src/index.ts +31 -40
- package/src/theme/ApiDemoPanel/ApiCodeBlock/Container/_Container.scss +7 -0
- package/src/theme/ApiDemoPanel/ApiCodeBlock/Container/index.js +29 -0
- package/src/theme/ApiDemoPanel/ApiCodeBlock/Content/Element.js +30 -0
- package/src/theme/ApiDemoPanel/ApiCodeBlock/Content/String.js +131 -0
- package/src/theme/ApiDemoPanel/ApiCodeBlock/Content/_Content.scss +91 -0
- package/src/theme/ApiDemoPanel/ApiCodeBlock/CopyButton/_CopyButton.scss +44 -0
- package/src/theme/ApiDemoPanel/ApiCodeBlock/CopyButton/index.js +74 -0
- package/src/theme/ApiDemoPanel/ApiCodeBlock/ExitButton/_ExitButton.scss +16 -0
- package/src/theme/ApiDemoPanel/ApiCodeBlock/ExitButton/index.js +47 -0
- package/src/theme/ApiDemoPanel/ApiCodeBlock/ExpandButton/_ExpandButton.scss +62 -0
- package/src/theme/ApiDemoPanel/ApiCodeBlock/ExpandButton/index.js +165 -0
- package/src/theme/ApiDemoPanel/ApiCodeBlock/Line/_Line.scss +46 -0
- package/src/theme/ApiDemoPanel/ApiCodeBlock/Line/index.js +47 -0
- package/src/theme/ApiDemoPanel/ApiCodeBlock/WordWrapButton/_WordWrapButton.scss +10 -0
- package/src/theme/ApiDemoPanel/ApiCodeBlock/WordWrapButton/index.js +44 -0
- package/src/theme/ApiDemoPanel/ApiCodeBlock/index.js +40 -0
- package/src/theme/ApiDemoPanel/Body/index.tsx +38 -29
- package/src/theme/ApiDemoPanel/CodeTabs/_CodeTabs.scss +170 -95
- package/src/theme/ApiDemoPanel/CodeTabs/index.js +25 -7
- package/src/theme/ApiDemoPanel/Curl/index.tsx +96 -20
- package/src/theme/ApiDemoPanel/FormItem/_FormItem.scss +11 -2
- package/src/theme/ApiDemoPanel/FormItem/index.tsx +9 -11
- package/src/theme/ApiDemoPanel/FormMultiSelect/_FormMultiSelect.scss +8 -4
- package/src/theme/ApiDemoPanel/FormMultiSelect/index.tsx +7 -2
- package/src/theme/ApiDemoPanel/FormSelect/_FormSelect.scss +3 -3
- package/src/theme/ApiDemoPanel/FormTextInput/_FormTextInput.scss +24 -5
- package/src/theme/ApiDemoPanel/FormTextInput/index.tsx +58 -10
- package/src/theme/ApiDemoPanel/LiveEditor/index.tsx +53 -14
- package/src/theme/ApiDemoPanel/MethodEndpoint/_MethodEndpoint.scss +16 -0
- package/src/theme/ApiDemoPanel/MethodEndpoint/index.tsx +12 -9
- package/src/theme/ApiDemoPanel/ParamOptions/ParamFormItems/ParamArrayFormItem.tsx +153 -0
- package/src/theme/ApiDemoPanel/ParamOptions/ParamFormItems/ParamBooleanFormItem.tsx +64 -0
- package/src/theme/ApiDemoPanel/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.tsx +86 -0
- package/src/theme/ApiDemoPanel/ParamOptions/ParamFormItems/ParamSelectFormItem.tsx +65 -0
- package/src/theme/ApiDemoPanel/ParamOptions/ParamFormItems/ParamTextFormItem.tsx +38 -0
- package/src/theme/ApiDemoPanel/ParamOptions/_ParamOptions.scss +9 -28
- package/src/theme/ApiDemoPanel/ParamOptions/index.tsx +8 -196
- package/src/theme/ApiDemoPanel/Request/_Request.scss +93 -20
- package/src/theme/ApiDemoPanel/Request/index.tsx +245 -28
- package/src/theme/ApiDemoPanel/Response/_Response.scss +54 -0
- package/src/theme/ApiDemoPanel/Response/index.tsx +53 -34
- package/src/theme/ApiDemoPanel/SecuritySchemes/index.tsx +5 -3
- package/src/theme/ApiDemoPanel/Server/_Server.scss +10 -0
- package/src/theme/ApiDemoPanel/Server/index.tsx +8 -11
- package/src/theme/ApiDemoPanel/index.tsx +4 -6
- package/src/theme/ApiItem/index.tsx +2 -2
- package/src/theme/ApiTabs/_ApiTabs.scss +29 -22
- package/src/theme/ApiTabs/index.js +4 -3
- package/src/theme/DiscriminatorTabs/_DiscriminatorTabs.scss +17 -14
- package/src/theme/Markdown/Details/_Details.scss +87 -4
- package/src/theme/MimeTabs/_MimeTabs.scss +13 -8
- package/src/theme/ParamsItem/_ParamsItem.scss +25 -10
- package/src/theme/ParamsItem/index.js +9 -6
- package/src/theme/SchemaItem/_SchemaItem.scss +48 -13
- package/src/theme/SchemaItem/index.js +23 -12
- package/src/theme/SchemaTabs/_SchemaTabs.scss +23 -17
- package/src/theme/SchemaTabs/index.js +50 -54
- package/src/theme/styles.scss +44 -1
- package/src/theme-openapi.d.ts +44 -1
- package/tsconfig.json +6 -3
- package/lib/postman-code-generators.d.ts +0 -9
- package/lib/react-magic-dropzone.d.ts +0 -9
- package/lib/theme/ApiDemoPanel/Execute/index.js +0 -155
- package/lib/theme/ApiDemoPanel/Execute/makeRequest.js +0 -181
- package/lib/theme/ApiDemoPanel/postman-collection.d.ts +0 -10
- package/lib/theme/ApiDemoPanel/react-modal.d.ts +0 -8
- package/lib/theme-classic.d.ts +0 -13
- package/lib/theme-openapi.d.ts +0 -234
- package/lib/theme-translations.d.ts +0 -9
- package/lib-next/index.js +0 -68
- package/lib-next/markdown/createDescription.js +0 -13
- package/lib-next/markdown/schema.js +0 -153
- package/lib-next/markdown/utils.js +0 -44
- package/lib-next/postman-code-generators.d.ts +0 -9
- package/lib-next/react-magic-dropzone.d.ts +0 -9
- package/lib-next/theme/ApiDemoPanel/Accept/index.js +0 -30
- package/lib-next/theme/ApiDemoPanel/Accept/slice.js +0 -20
- package/lib-next/theme/ApiDemoPanel/Authorization/auth-types.js +0 -29
- package/lib-next/theme/ApiDemoPanel/Authorization/index.js +0 -142
- package/lib-next/theme/ApiDemoPanel/Authorization/slice.js +0 -99
- package/lib-next/theme/ApiDemoPanel/Body/index.js +0 -328
- package/lib-next/theme/ApiDemoPanel/Body/json2xml.js +0 -43
- package/lib-next/theme/ApiDemoPanel/Body/slice.js +0 -88
- package/lib-next/theme/ApiDemoPanel/CodeTabs/_CodeTabs.scss +0 -216
- package/lib-next/theme/ApiDemoPanel/CodeTabs/index.js +0 -156
- package/lib-next/theme/ApiDemoPanel/ContentType/index.js +0 -30
- package/lib-next/theme/ApiDemoPanel/ContentType/slice.js +0 -20
- package/lib-next/theme/ApiDemoPanel/Curl/index.js +0 -270
- package/lib-next/theme/ApiDemoPanel/Curl/languages.json +0 -1386
- package/lib-next/theme/ApiDemoPanel/Execute/index.js +0 -178
- package/lib-next/theme/ApiDemoPanel/Export/index.js +0 -45
- package/lib-next/theme/ApiDemoPanel/FloatingButton/_FloatingButton.scss +0 -25
- package/lib-next/theme/ApiDemoPanel/FloatingButton/index.js +0 -21
- package/lib-next/theme/ApiDemoPanel/FormFileUpload/_FormFileUpload.scss +0 -72
- package/lib-next/theme/ApiDemoPanel/FormFileUpload/index.js +0 -107
- package/lib-next/theme/ApiDemoPanel/FormItem/_FormItem.scss +0 -12
- package/lib-next/theme/ApiDemoPanel/FormItem/index.js +0 -35
- package/lib-next/theme/ApiDemoPanel/FormMultiSelect/_FormMultiSelect.scss +0 -26
- package/lib-next/theme/ApiDemoPanel/FormMultiSelect/index.js +0 -44
- package/lib-next/theme/ApiDemoPanel/FormSelect/_FormSelect.scss +0 -43
- package/lib-next/theme/ApiDemoPanel/FormSelect/index.js +0 -29
- package/lib-next/theme/ApiDemoPanel/FormTextInput/_FormTextInput.scss +0 -15
- package/lib-next/theme/ApiDemoPanel/FormTextInput/index.js +0 -23
- package/lib-next/theme/ApiDemoPanel/LiveEditor/_LiveEditor.scss +0 -15
- package/lib-next/theme/ApiDemoPanel/LiveEditor/index.js +0 -58
- package/lib-next/theme/ApiDemoPanel/MethodEndpoint/_MethodEndpoint.scss +0 -6
- package/lib-next/theme/ApiDemoPanel/MethodEndpoint/index.js +0 -68
- package/lib-next/theme/ApiDemoPanel/ParamOptions/_ParamOptions.scss +0 -141
- package/lib-next/theme/ApiDemoPanel/ParamOptions/index.js +0 -299
- package/lib-next/theme/ApiDemoPanel/ParamOptions/slice.js +0 -23
- package/lib-next/theme/ApiDemoPanel/Request/_Request.scss +0 -48
- package/lib-next/theme/ApiDemoPanel/Request/index.js +0 -59
- package/lib-next/theme/ApiDemoPanel/Response/_Response.scss +0 -27
- package/lib-next/theme/ApiDemoPanel/Response/index.js +0 -123
- package/lib-next/theme/ApiDemoPanel/Response/slice.js +0 -42
- package/lib-next/theme/ApiDemoPanel/SecuritySchemes/index.js +0 -274
- package/lib-next/theme/ApiDemoPanel/Server/_Server.scss +0 -16
- package/lib-next/theme/ApiDemoPanel/Server/index.js +0 -131
- package/lib-next/theme/ApiDemoPanel/Server/slice.js +0 -28
- package/lib-next/theme/ApiDemoPanel/buildPostmanRequest.js +0 -298
- package/lib-next/theme/ApiDemoPanel/index.js +0 -25
- package/lib-next/theme/ApiDemoPanel/persistanceMiddleware.js +0 -58
- package/lib-next/theme/ApiDemoPanel/postman-collection.d.ts +0 -10
- package/lib-next/theme/ApiDemoPanel/react-modal.d.ts +0 -8
- package/lib-next/theme/ApiDemoPanel/storage-utils.js +0 -33
- package/lib-next/theme/ApiItem/Layout/index.js +0 -68
- package/lib-next/theme/ApiItem/Layout/styles.module.css +0 -17
- package/lib-next/theme/ApiItem/hooks.js +0 -10
- package/lib-next/theme/ApiItem/index.js +0 -150
- package/lib-next/theme/ApiItem/store.js +0 -38
- package/lib-next/theme/ApiLogo/index.js +0 -48
- package/lib-next/theme/ApiTabs/_ApiTabs.scss +0 -133
- package/lib-next/theme/ApiTabs/index.js +0 -191
- package/lib-next/theme/DiscriminatorTabs/_DiscriminatorTabs.scss +0 -94
- package/lib-next/theme/DiscriminatorTabs/index.js +0 -185
- package/lib-next/theme/Markdown/Details/_Details.scss +0 -36
- package/lib-next/theme/MimeTabs/_MimeTabs.scss +0 -64
- package/lib-next/theme/MimeTabs/index.js +0 -221
- package/lib-next/theme/ParamsItem/_ParamsItem.scss +0 -39
- package/lib-next/theme/ParamsItem/index.js +0 -133
- package/lib-next/theme/ResponseSamples/_ResponseSamples.scss +0 -3
- package/lib-next/theme/ResponseSamples/index.js +0 -22
- package/lib-next/theme/SchemaItem/_SchemaItem.scss +0 -53
- package/lib-next/theme/SchemaItem/index.js +0 -112
- package/lib-next/theme/SchemaTabs/_SchemaTabs.scss +0 -58
- package/lib-next/theme/SchemaTabs/index.js +0 -186
- package/lib-next/theme/styles.scss +0 -117
- package/lib-next/theme-classic.d.ts +0 -13
- package/lib-next/theme-openapi.d.ts +0 -234
- package/lib-next/theme-translations.d.ts +0 -9
- package/lib-next/types.js +0 -1
- package/src/theme/ApiDemoPanel/Execute/index.tsx +0 -200
- /package/src/theme/ApiDemoPanel/{Execute → Request}/makeRequest.ts +0 -0
|
@@ -1,328 +0,0 @@
|
|
|
1
|
-
/* ============================================================================
|
|
2
|
-
* Copyright (c) Palo Alto Networks
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
* ========================================================================== */
|
|
7
|
-
|
|
8
|
-
import React from "react";
|
|
9
|
-
import json2xml from "@theme/ApiDemoPanel/Body/json2xml";
|
|
10
|
-
import ContentType from "@theme/ApiDemoPanel/ContentType";
|
|
11
|
-
import FormFileUpload from "@theme/ApiDemoPanel/FormFileUpload";
|
|
12
|
-
import FormItem from "@theme/ApiDemoPanel/FormItem";
|
|
13
|
-
import FormSelect from "@theme/ApiDemoPanel/FormSelect";
|
|
14
|
-
import FormTextInput from "@theme/ApiDemoPanel/FormTextInput";
|
|
15
|
-
import LiveApp from "@theme/ApiDemoPanel/LiveEditor";
|
|
16
|
-
import { useTypedDispatch, useTypedSelector } from "@theme/ApiItem/hooks";
|
|
17
|
-
import SchemaTabs from "@theme/SchemaTabs";
|
|
18
|
-
import TabItem from "@theme/TabItem";
|
|
19
|
-
import format from "xml-formatter";
|
|
20
|
-
import {
|
|
21
|
-
clearFormBodyKey,
|
|
22
|
-
clearRawBody,
|
|
23
|
-
setFileFormBody,
|
|
24
|
-
setFileRawBody,
|
|
25
|
-
setStringFormBody,
|
|
26
|
-
} from "./slice";
|
|
27
|
-
function BodyWrap({ requestBodyMetadata, jsonRequestBodyExample }) {
|
|
28
|
-
const contentType = useTypedSelector((state) => state.contentType.value);
|
|
29
|
-
|
|
30
|
-
// NOTE: We used to check if body was required, but opted to always show the request body
|
|
31
|
-
// to reduce confusion, see: https://github.com/cloud-annotations/docusaurus-openapi/issues/145
|
|
32
|
-
|
|
33
|
-
// No body
|
|
34
|
-
if (contentType === undefined) {
|
|
35
|
-
return null;
|
|
36
|
-
}
|
|
37
|
-
return (
|
|
38
|
-
<>
|
|
39
|
-
<ContentType />
|
|
40
|
-
<Body
|
|
41
|
-
requestBodyMetadata={requestBodyMetadata}
|
|
42
|
-
jsonRequestBodyExample={jsonRequestBodyExample}
|
|
43
|
-
/>
|
|
44
|
-
</>
|
|
45
|
-
);
|
|
46
|
-
}
|
|
47
|
-
function Body({ requestBodyMetadata, jsonRequestBodyExample }) {
|
|
48
|
-
const contentType = useTypedSelector((state) => state.contentType.value);
|
|
49
|
-
const required = requestBodyMetadata?.required;
|
|
50
|
-
const dispatch = useTypedDispatch();
|
|
51
|
-
|
|
52
|
-
// Lot's of possible content-types:
|
|
53
|
-
// - application/json
|
|
54
|
-
// - application/xml
|
|
55
|
-
// - text/plain
|
|
56
|
-
// - text/css
|
|
57
|
-
// - text/html
|
|
58
|
-
// - text/javascript
|
|
59
|
-
// - application/javascript
|
|
60
|
-
// - multipart/form-data
|
|
61
|
-
// - application/x-www-form-urlencoded
|
|
62
|
-
// - image/svg+xml;charset=US-ASCII
|
|
63
|
-
|
|
64
|
-
// Show editor:
|
|
65
|
-
// - application/json
|
|
66
|
-
// - application/xml
|
|
67
|
-
// - */*
|
|
68
|
-
|
|
69
|
-
// Show form:
|
|
70
|
-
// - multipart/form-data
|
|
71
|
-
// - application/x-www-form-urlencoded
|
|
72
|
-
|
|
73
|
-
const schema = requestBodyMetadata?.content?.[contentType]?.schema;
|
|
74
|
-
const example = requestBodyMetadata?.content?.[contentType]?.example;
|
|
75
|
-
const examples = requestBodyMetadata?.content?.[contentType]?.examples;
|
|
76
|
-
if (schema?.format === "binary") {
|
|
77
|
-
return (
|
|
78
|
-
<FormItem label="Body" required={required}>
|
|
79
|
-
<FormFileUpload
|
|
80
|
-
placeholder={schema.description || "Body"}
|
|
81
|
-
onChange={(file) => {
|
|
82
|
-
if (file === undefined) {
|
|
83
|
-
dispatch(clearRawBody());
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
dispatch(
|
|
87
|
-
setFileRawBody({
|
|
88
|
-
src: `/path/to/${file.name}`,
|
|
89
|
-
content: file,
|
|
90
|
-
})
|
|
91
|
-
);
|
|
92
|
-
}}
|
|
93
|
-
/>
|
|
94
|
-
</FormItem>
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
if (
|
|
98
|
-
(contentType === "multipart/form-data" ||
|
|
99
|
-
contentType === "application/x-www-form-urlencoded") &&
|
|
100
|
-
schema?.type === "object"
|
|
101
|
-
) {
|
|
102
|
-
return (
|
|
103
|
-
<FormItem label="Body" required={required}>
|
|
104
|
-
<div
|
|
105
|
-
style={{
|
|
106
|
-
marginTop: "calc(var(--ifm-pre-padding) / 2)",
|
|
107
|
-
borderRadius: "4px",
|
|
108
|
-
padding: "var(--ifm-pre-padding)",
|
|
109
|
-
border: "1px solid var(--openapi-monaco-border-color)",
|
|
110
|
-
}}
|
|
111
|
-
>
|
|
112
|
-
{Object.entries(schema.properties ?? {}).map(([key, val]) => {
|
|
113
|
-
if (val.format === "binary") {
|
|
114
|
-
return (
|
|
115
|
-
<FormItem
|
|
116
|
-
key={key}
|
|
117
|
-
label={key}
|
|
118
|
-
required={
|
|
119
|
-
Array.isArray(schema.required) &&
|
|
120
|
-
schema.required.includes(key)
|
|
121
|
-
}
|
|
122
|
-
>
|
|
123
|
-
<FormFileUpload
|
|
124
|
-
placeholder={val.description || key}
|
|
125
|
-
onChange={(file) => {
|
|
126
|
-
if (file === undefined) {
|
|
127
|
-
dispatch(clearFormBodyKey(key));
|
|
128
|
-
return;
|
|
129
|
-
}
|
|
130
|
-
dispatch(
|
|
131
|
-
setFileFormBody({
|
|
132
|
-
key: key,
|
|
133
|
-
value: {
|
|
134
|
-
src: `/path/to/${file.name}`,
|
|
135
|
-
content: file,
|
|
136
|
-
},
|
|
137
|
-
})
|
|
138
|
-
);
|
|
139
|
-
}}
|
|
140
|
-
/>
|
|
141
|
-
</FormItem>
|
|
142
|
-
);
|
|
143
|
-
}
|
|
144
|
-
if (val.enum) {
|
|
145
|
-
return (
|
|
146
|
-
<FormItem
|
|
147
|
-
key={key}
|
|
148
|
-
label={key}
|
|
149
|
-
required={
|
|
150
|
-
Array.isArray(schema.required) &&
|
|
151
|
-
schema.required.includes(key)
|
|
152
|
-
}
|
|
153
|
-
>
|
|
154
|
-
<FormSelect
|
|
155
|
-
options={["---", ...val.enum]}
|
|
156
|
-
onChange={(e) => {
|
|
157
|
-
const val = e.target.value;
|
|
158
|
-
if (val === "---") {
|
|
159
|
-
dispatch(clearFormBodyKey(key));
|
|
160
|
-
} else {
|
|
161
|
-
dispatch(
|
|
162
|
-
setStringFormBody({
|
|
163
|
-
key: key,
|
|
164
|
-
value: val,
|
|
165
|
-
})
|
|
166
|
-
);
|
|
167
|
-
}
|
|
168
|
-
}}
|
|
169
|
-
/>
|
|
170
|
-
</FormItem>
|
|
171
|
-
);
|
|
172
|
-
}
|
|
173
|
-
// TODO: support all the other types.
|
|
174
|
-
return (
|
|
175
|
-
<FormItem
|
|
176
|
-
key={key}
|
|
177
|
-
label={key}
|
|
178
|
-
required={
|
|
179
|
-
Array.isArray(schema.required) &&
|
|
180
|
-
schema.required.includes(key)
|
|
181
|
-
}
|
|
182
|
-
>
|
|
183
|
-
<FormTextInput
|
|
184
|
-
placeholder={val.description || key}
|
|
185
|
-
onChange={(e) => {
|
|
186
|
-
dispatch(
|
|
187
|
-
setStringFormBody({
|
|
188
|
-
key: key,
|
|
189
|
-
value: e.target.value,
|
|
190
|
-
})
|
|
191
|
-
);
|
|
192
|
-
}}
|
|
193
|
-
/>
|
|
194
|
-
</FormItem>
|
|
195
|
-
);
|
|
196
|
-
})}
|
|
197
|
-
</div>
|
|
198
|
-
</FormItem>
|
|
199
|
-
);
|
|
200
|
-
}
|
|
201
|
-
let language = "plaintext";
|
|
202
|
-
let defaultBody = ""; //"body content";
|
|
203
|
-
let exampleBody;
|
|
204
|
-
let examplesBodies = [];
|
|
205
|
-
if (contentType === "application/json" || contentType.endsWith("+json")) {
|
|
206
|
-
if (jsonRequestBodyExample) {
|
|
207
|
-
defaultBody = JSON.stringify(jsonRequestBodyExample, null, 2);
|
|
208
|
-
}
|
|
209
|
-
if (example) {
|
|
210
|
-
exampleBody = JSON.stringify(example, null, 2);
|
|
211
|
-
}
|
|
212
|
-
if (examples) {
|
|
213
|
-
for (const [key, example] of Object.entries(examples)) {
|
|
214
|
-
examplesBodies.push({
|
|
215
|
-
label: key,
|
|
216
|
-
body: JSON.stringify(example.value, null, 2),
|
|
217
|
-
summary: example.summary,
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
language = "json";
|
|
222
|
-
}
|
|
223
|
-
if (contentType === "application/xml" || contentType.endsWith("+xml")) {
|
|
224
|
-
if (jsonRequestBodyExample) {
|
|
225
|
-
try {
|
|
226
|
-
defaultBody = format(json2xml(jsonRequestBodyExample, ""), {
|
|
227
|
-
indentation: " ",
|
|
228
|
-
lineSeparator: "\n",
|
|
229
|
-
collapseContent: true,
|
|
230
|
-
});
|
|
231
|
-
} catch {
|
|
232
|
-
defaultBody = json2xml(jsonRequestBodyExample);
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
if (example) {
|
|
236
|
-
try {
|
|
237
|
-
exampleBody = format(json2xml(example, ""), {
|
|
238
|
-
indentation: " ",
|
|
239
|
-
lineSeparator: "\n",
|
|
240
|
-
collapseContent: true,
|
|
241
|
-
});
|
|
242
|
-
} catch {
|
|
243
|
-
exampleBody = json2xml(example);
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
if (examples) {
|
|
247
|
-
for (const [key, example] of Object.entries(examples)) {
|
|
248
|
-
let formattedXmlBody;
|
|
249
|
-
try {
|
|
250
|
-
formattedXmlBody = format(example.value, {
|
|
251
|
-
indentation: " ",
|
|
252
|
-
lineSeparator: "\n",
|
|
253
|
-
collapseContent: true,
|
|
254
|
-
});
|
|
255
|
-
} catch {
|
|
256
|
-
formattedXmlBody = example.value;
|
|
257
|
-
}
|
|
258
|
-
examplesBodies.push({
|
|
259
|
-
label: key,
|
|
260
|
-
body: formattedXmlBody,
|
|
261
|
-
summary: example.summary,
|
|
262
|
-
});
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
language = "xml";
|
|
266
|
-
}
|
|
267
|
-
if (exampleBody) {
|
|
268
|
-
return (
|
|
269
|
-
<FormItem label="Body" required={required}>
|
|
270
|
-
<SchemaTabs className="openapi-tabs__schema" lazy>
|
|
271
|
-
{/* @ts-ignore */}
|
|
272
|
-
<TabItem label="Default" value="default" default>
|
|
273
|
-
<LiveApp action={dispatch} language={language}>
|
|
274
|
-
{defaultBody}
|
|
275
|
-
</LiveApp>
|
|
276
|
-
</TabItem>
|
|
277
|
-
{/* @ts-ignore */}
|
|
278
|
-
<TabItem label="Example" value="example">
|
|
279
|
-
{exampleBody && (
|
|
280
|
-
<LiveApp action={dispatch} language={language}>
|
|
281
|
-
{exampleBody}
|
|
282
|
-
</LiveApp>
|
|
283
|
-
)}
|
|
284
|
-
</TabItem>
|
|
285
|
-
</SchemaTabs>
|
|
286
|
-
</FormItem>
|
|
287
|
-
);
|
|
288
|
-
}
|
|
289
|
-
if (examplesBodies && examplesBodies.length > 0) {
|
|
290
|
-
return (
|
|
291
|
-
<FormItem label="Body" required={required}>
|
|
292
|
-
<SchemaTabs className="openapi-tabs__schema" lazy>
|
|
293
|
-
{/* @ts-ignore */}
|
|
294
|
-
<TabItem label="Default" value="default" default>
|
|
295
|
-
<LiveApp action={dispatch} language={language}>
|
|
296
|
-
{defaultBody}
|
|
297
|
-
</LiveApp>
|
|
298
|
-
</TabItem>
|
|
299
|
-
{examplesBodies.map((example) => {
|
|
300
|
-
return (
|
|
301
|
-
// @ts-ignore
|
|
302
|
-
<TabItem
|
|
303
|
-
label={example.label}
|
|
304
|
-
value={example.label}
|
|
305
|
-
key={example.label}
|
|
306
|
-
>
|
|
307
|
-
{example.summary && <p>{example.summary}</p>}
|
|
308
|
-
{example.body && (
|
|
309
|
-
<LiveApp action={dispatch} language={language}>
|
|
310
|
-
{example.body}
|
|
311
|
-
</LiveApp>
|
|
312
|
-
)}
|
|
313
|
-
</TabItem>
|
|
314
|
-
);
|
|
315
|
-
})}
|
|
316
|
-
</SchemaTabs>
|
|
317
|
-
</FormItem>
|
|
318
|
-
);
|
|
319
|
-
}
|
|
320
|
-
return (
|
|
321
|
-
<FormItem label="Body" required={required}>
|
|
322
|
-
<LiveApp action={dispatch} language={language}>
|
|
323
|
-
{defaultBody}
|
|
324
|
-
</LiveApp>
|
|
325
|
-
</FormItem>
|
|
326
|
-
);
|
|
327
|
-
}
|
|
328
|
-
export default BodyWrap;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/* ============================================================================
|
|
2
|
-
* Copyright (c) Palo Alto Networks
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
* ========================================================================== */
|
|
7
|
-
|
|
8
|
-
export default function json2xml(o, tab) {
|
|
9
|
-
var toXml = function (v, name, ind) {
|
|
10
|
-
var xml = "";
|
|
11
|
-
if (v instanceof Array) {
|
|
12
|
-
for (var i = 0, n = v.length; i < n; i++)
|
|
13
|
-
xml += ind + toXml(v[i], name, ind + "\t") + "\n";
|
|
14
|
-
} else if (typeof v == "object") {
|
|
15
|
-
var hasChild = false;
|
|
16
|
-
xml += ind + "<" + name;
|
|
17
|
-
for (var m in v) {
|
|
18
|
-
if (m.charAt(0) === "@")
|
|
19
|
-
xml += " " + m.substr(1) + '="' + v[m].toString() + '"';
|
|
20
|
-
else hasChild = true;
|
|
21
|
-
}
|
|
22
|
-
xml += hasChild ? ">" : "/>";
|
|
23
|
-
if (hasChild) {
|
|
24
|
-
for (var m2 in v) {
|
|
25
|
-
if (m2 === "#text") xml += v[m2];
|
|
26
|
-
else if (m2 === "#cdata") xml += "<![CDATA[" + v[m2] + "]]>";
|
|
27
|
-
else if (m2.charAt(0) !== "@") xml += toXml(v[m2], m2, ind + "\t");
|
|
28
|
-
}
|
|
29
|
-
xml +=
|
|
30
|
-
(xml.charAt(xml.length - 1) === "\n" ? ind : "") +
|
|
31
|
-
"</" +
|
|
32
|
-
name +
|
|
33
|
-
">";
|
|
34
|
-
}
|
|
35
|
-
} else {
|
|
36
|
-
xml += ind + "<" + name + ">" + v.toString() + "</" + name + ">";
|
|
37
|
-
}
|
|
38
|
-
return xml;
|
|
39
|
-
},
|
|
40
|
-
xml = "";
|
|
41
|
-
for (var m3 in o) xml += toXml(o[m3], m3, "");
|
|
42
|
-
return tab ? xml.replace(/\t/g, tab) : xml.replace(/\t|\n/g, "");
|
|
43
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
/* ============================================================================
|
|
2
|
-
* Copyright (c) Palo Alto Networks
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
* ========================================================================== */
|
|
7
|
-
|
|
8
|
-
import { createSlice } from "@reduxjs/toolkit";
|
|
9
|
-
const initialState = {};
|
|
10
|
-
export const slice = createSlice({
|
|
11
|
-
name: "body",
|
|
12
|
-
initialState,
|
|
13
|
-
reducers: {
|
|
14
|
-
clearRawBody: (_state) => {
|
|
15
|
-
return {
|
|
16
|
-
type: "empty",
|
|
17
|
-
};
|
|
18
|
-
},
|
|
19
|
-
setStringRawBody: (_state, action) => {
|
|
20
|
-
return {
|
|
21
|
-
type: "raw",
|
|
22
|
-
content: {
|
|
23
|
-
type: "string",
|
|
24
|
-
value: action.payload,
|
|
25
|
-
},
|
|
26
|
-
};
|
|
27
|
-
},
|
|
28
|
-
setFileRawBody: (_state, action) => {
|
|
29
|
-
return {
|
|
30
|
-
type: "raw",
|
|
31
|
-
content: {
|
|
32
|
-
type: "file",
|
|
33
|
-
value: action.payload,
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
},
|
|
37
|
-
clearFormBodyKey: (state, action) => {
|
|
38
|
-
if (state?.type === "form") {
|
|
39
|
-
delete state.content[action.payload];
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
setStringFormBody: (state, action) => {
|
|
43
|
-
if (state?.type !== "form") {
|
|
44
|
-
return {
|
|
45
|
-
type: "form",
|
|
46
|
-
content: {
|
|
47
|
-
[action.payload.key]: {
|
|
48
|
-
type: "string",
|
|
49
|
-
value: action.payload.value,
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
state.content[action.payload.key] = {
|
|
55
|
-
type: "string",
|
|
56
|
-
value: action.payload.value,
|
|
57
|
-
};
|
|
58
|
-
return state;
|
|
59
|
-
},
|
|
60
|
-
setFileFormBody: (state, action) => {
|
|
61
|
-
if (state?.type !== "form") {
|
|
62
|
-
return {
|
|
63
|
-
type: "form",
|
|
64
|
-
content: {
|
|
65
|
-
[action.payload.key]: {
|
|
66
|
-
type: "file",
|
|
67
|
-
value: action.payload.value,
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
state.content[action.payload.key] = {
|
|
73
|
-
type: "file",
|
|
74
|
-
value: action.payload.value,
|
|
75
|
-
};
|
|
76
|
-
return state;
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
});
|
|
80
|
-
export const {
|
|
81
|
-
clearRawBody,
|
|
82
|
-
setStringRawBody,
|
|
83
|
-
setFileRawBody,
|
|
84
|
-
clearFormBodyKey,
|
|
85
|
-
setStringFormBody,
|
|
86
|
-
setFileFormBody,
|
|
87
|
-
} = slice.actions;
|
|
88
|
-
export default slice.reducer;
|
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
.openapi-tabs__code-list-container {
|
|
2
|
-
display: table-row-group;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.openapi-tabs__code-item {
|
|
6
|
-
margin-top: 0 !important;
|
|
7
|
-
margin-right: 0.5rem;
|
|
8
|
-
padding-left: 1.5rem;
|
|
9
|
-
padding-right: 1.5rem;
|
|
10
|
-
padding-top: 1rem !important;
|
|
11
|
-
padding-bottom: 1rem !important;
|
|
12
|
-
|
|
13
|
-
&.active {
|
|
14
|
-
border-bottom-left-radius: 0;
|
|
15
|
-
border-bottom-right-radius: 0;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.openapi-tabs__code-item--python {
|
|
20
|
-
color: var(--ifm-color-success);
|
|
21
|
-
|
|
22
|
-
&::after {
|
|
23
|
-
content: "";
|
|
24
|
-
width: 28px;
|
|
25
|
-
height: 28px;
|
|
26
|
-
background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/python/python-original.svg");
|
|
27
|
-
margin-block: auto;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&.active {
|
|
31
|
-
border-bottom-color: var(--ifm-color-success);
|
|
32
|
-
background-color: var(--ifm-color-emphasis-100);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.language-python {
|
|
37
|
-
max-height: 500px;
|
|
38
|
-
overflow: auto;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.openapi-tabs__code-item--go {
|
|
42
|
-
color: var(--ifm-color-info);
|
|
43
|
-
|
|
44
|
-
&::after {
|
|
45
|
-
content: "";
|
|
46
|
-
width: 28px;
|
|
47
|
-
height: 28px;
|
|
48
|
-
background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/go/go-original-wordmark.svg");
|
|
49
|
-
margin-block: auto;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&.active {
|
|
53
|
-
border-bottom-color: var(--ifm-color-info);
|
|
54
|
-
background-color: var(--ifm-color-emphasis-100);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.language-go {
|
|
59
|
-
max-height: 500px;
|
|
60
|
-
overflow: auto;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.openapi-tabs__code-item--javascript {
|
|
64
|
-
color: var(--ifm-color-warning);
|
|
65
|
-
|
|
66
|
-
&::after {
|
|
67
|
-
content: "";
|
|
68
|
-
width: 28px;
|
|
69
|
-
height: 28px;
|
|
70
|
-
background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/javascript/javascript-original.svg");
|
|
71
|
-
margin-block: auto;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
&.active {
|
|
75
|
-
border-bottom-color: var(--ifm-color-warning);
|
|
76
|
-
background-color: var(--ifm-color-emphasis-100);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.language-javascript {
|
|
81
|
-
max-height: 500px;
|
|
82
|
-
overflow: auto;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.openapi-tabs__code-item--bash {
|
|
86
|
-
color: var(--ifm-color-danger);
|
|
87
|
-
|
|
88
|
-
&::after {
|
|
89
|
-
content: "";
|
|
90
|
-
width: 28px;
|
|
91
|
-
height: 28px;
|
|
92
|
-
background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/linux/linux-original.svg");
|
|
93
|
-
margin-block: auto;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
&.active {
|
|
97
|
-
border-bottom-color: var(--ifm-color-danger);
|
|
98
|
-
background-color: var(--ifm-color-emphasis-100);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.language-bash {
|
|
103
|
-
max-height: 500px;
|
|
104
|
-
overflow: auto;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.openapi-tabs__code-item--ruby {
|
|
108
|
-
color: var(--ifm-color-danger);
|
|
109
|
-
|
|
110
|
-
&::after {
|
|
111
|
-
content: "";
|
|
112
|
-
width: 28px;
|
|
113
|
-
height: 28px;
|
|
114
|
-
background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/ruby/ruby-plain.svg");
|
|
115
|
-
margin-block: auto;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
&.active {
|
|
119
|
-
border-bottom-color: var(--ifm-color-danger);
|
|
120
|
-
background-color: var(--ifm-color-emphasis-100);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.language-ruby {
|
|
125
|
-
max-height: 500px;
|
|
126
|
-
overflow: auto;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.openapi-tabs__code-item--csharp {
|
|
130
|
-
color: var(--ifm-color-gray-500);
|
|
131
|
-
|
|
132
|
-
&::after {
|
|
133
|
-
content: "";
|
|
134
|
-
width: 28px;
|
|
135
|
-
height: 28px;
|
|
136
|
-
background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/csharp/csharp-original.svg");
|
|
137
|
-
margin-block: auto;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
&.active {
|
|
141
|
-
border-bottom-color: var(--ifm-color-gray-500);
|
|
142
|
-
background-color: var(--ifm-color-emphasis-100);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.language-csharp {
|
|
147
|
-
max-height: 500px;
|
|
148
|
-
overflow: auto;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.openapi-tabs__code-item--nodejs {
|
|
152
|
-
color: var(--ifm-color-success);
|
|
153
|
-
|
|
154
|
-
&::after {
|
|
155
|
-
content: "";
|
|
156
|
-
width: 28px;
|
|
157
|
-
height: 28px;
|
|
158
|
-
background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/nodejs/nodejs-original.svg");
|
|
159
|
-
margin-block: auto;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
&.active {
|
|
163
|
-
border-bottom-color: var(--ifm-color-success);
|
|
164
|
-
background-color: var(--ifm-color-emphasis-100);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.language-nodejs {
|
|
169
|
-
max-height: 500px;
|
|
170
|
-
overflow: auto;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.openapi-tabs__code-item--php {
|
|
174
|
-
color: var(--ifm-color-gray-500);
|
|
175
|
-
|
|
176
|
-
&::after {
|
|
177
|
-
content: "";
|
|
178
|
-
width: 28px;
|
|
179
|
-
height: 28px;
|
|
180
|
-
background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/php/php-original.svg");
|
|
181
|
-
margin-block: auto;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
&.active {
|
|
185
|
-
border-bottom-color: var(--ifm-color-gray-500);
|
|
186
|
-
background-color: var(--ifm-color-emphasis-100);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.language-php {
|
|
191
|
-
max-height: 500px;
|
|
192
|
-
overflow: auto;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.openapi-tabs__code-item--java {
|
|
196
|
-
color: var(--ifm-color-warning);
|
|
197
|
-
|
|
198
|
-
&::after {
|
|
199
|
-
content: "";
|
|
200
|
-
width: 28px;
|
|
201
|
-
height: 28px;
|
|
202
|
-
background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/java/java-original.svg");
|
|
203
|
-
margin-block: auto;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
&.active {
|
|
207
|
-
border-bottom-color: var(--ifm-color-warning);
|
|
208
|
-
background-color: var(--ifm-color-emphasis-100);
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
@media only screen and (min-width: 768px) and (max-width: 996px) {
|
|
213
|
-
.openapi-tabs__code-list {
|
|
214
|
-
justify-content: space-around;
|
|
215
|
-
}
|
|
216
|
-
}
|