docusaurus-theme-openapi-docs 1.4.2 → 1.4.4
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.js +5 -8
- package/lib/markdown/createDescription.js +1 -2
- package/lib/markdown/schema.js +7 -42
- package/lib/markdown/utils.js +1 -7
- package/lib/theme/ApiDemoPanel/Accept/index.js +1 -10
- package/lib/theme/ApiDemoPanel/Accept/slice.js +1 -2
- package/lib/theme/ApiDemoPanel/Authorization/auth-types.js +7 -8
- package/lib/theme/ApiDemoPanel/Authorization/index.js +1 -19
- package/lib/theme/ApiDemoPanel/Authorization/slice.js +7 -21
- package/lib/theme/ApiDemoPanel/Body/index.js +14 -47
- package/lib/theme/ApiDemoPanel/Body/slice.js +1 -4
- package/lib/theme/ApiDemoPanel/CodeTabs/index.js +14 -46
- package/lib/theme/ApiDemoPanel/ContentType/index.js +1 -10
- package/lib/theme/ApiDemoPanel/ContentType/slice.js +1 -2
- package/lib/theme/ApiDemoPanel/Curl/index.js +9 -29
- package/lib/theme/ApiDemoPanel/Execute/index.js +6 -23
- package/lib/theme/ApiDemoPanel/Execute/makeRequest.js +4 -27
- package/lib/theme/ApiDemoPanel/Export/index.js +1 -8
- package/lib/theme/ApiDemoPanel/FloatingButton/index.js +1 -5
- package/lib/theme/ApiDemoPanel/FormFileUpload/index.js +1 -14
- package/lib/theme/ApiDemoPanel/FormItem/index.js +1 -5
- package/lib/theme/ApiDemoPanel/FormMultiSelect/index.js +1 -8
- package/lib/theme/ApiDemoPanel/FormSelect/index.js +1 -6
- package/lib/theme/ApiDemoPanel/FormTextInput/index.js +1 -6
- package/lib/theme/ApiDemoPanel/LiveEditor/index.js +3 -17
- package/lib/theme/ApiDemoPanel/MethodEndpoint/index.js +1 -12
- package/lib/theme/ApiDemoPanel/ParamOptions/index.js +20 -52
- package/lib/theme/ApiDemoPanel/ParamOptions/slice.js +1 -2
- package/lib/theme/ApiDemoPanel/Request/index.js +1 -15
- package/lib/theme/ApiDemoPanel/Response/index.js +1 -14
- package/lib/theme/ApiDemoPanel/Response/slice.js +1 -2
- package/lib/theme/ApiDemoPanel/SecuritySchemes/index.js +1 -9
- package/lib/theme/ApiDemoPanel/Server/index.js +3 -27
- package/lib/theme/ApiDemoPanel/Server/slice.js +1 -3
- package/lib/theme/ApiDemoPanel/buildPostmanRequest.js +11 -62
- package/lib/theme/ApiDemoPanel/index.js +2 -14
- package/lib/theme/ApiDemoPanel/persistanceMiddleware.js +5 -11
- package/lib/theme/ApiDemoPanel/storage-utils.js +1 -7
- package/lib/theme/ApiItem/Layout/index.js +5 -22
- package/lib/theme/ApiItem/Layout/styles.module.css +0 -403
- package/lib/theme/ApiItem/hooks.js +1 -3
- package/lib/theme/ApiItem/index.js +14 -30
- package/lib/theme/ApiItem/store.js +1 -14
- package/lib/theme/ApiLogo/index.js +1 -4
- package/lib/theme/styles.css +428 -0
- package/lib/theme-classic.d.ts +5 -0
- package/lib-next/index.js +5 -3
- package/lib-next/markdown/createDescription.js +1 -1
- package/lib-next/markdown/schema.js +7 -35
- package/lib-next/markdown/utils.js +1 -4
- package/lib-next/theme/ApiDemoPanel/Accept/index.js +1 -4
- package/lib-next/theme/ApiDemoPanel/Accept/slice.js +1 -0
- package/lib-next/theme/ApiDemoPanel/Authorization/auth-types.js +7 -4
- package/lib-next/theme/ApiDemoPanel/Authorization/index.js +1 -8
- package/lib-next/theme/ApiDemoPanel/Authorization/slice.js +12 -14
- package/lib-next/theme/ApiDemoPanel/Body/index.js +16 -34
- package/lib-next/theme/ApiDemoPanel/Body/slice.js +1 -2
- package/lib-next/theme/ApiDemoPanel/CodeTabs/index.js +12 -26
- package/lib-next/theme/ApiDemoPanel/ContentType/index.js +1 -4
- package/lib-next/theme/ApiDemoPanel/ContentType/slice.js +1 -0
- package/lib-next/theme/ApiDemoPanel/Curl/index.js +11 -12
- package/lib-next/theme/ApiDemoPanel/Execute/index.js +10 -13
- package/lib-next/theme/ApiDemoPanel/Execute/makeRequest.js +4 -22
- package/lib-next/theme/ApiDemoPanel/Export/index.js +1 -5
- package/lib-next/theme/ApiDemoPanel/FloatingButton/index.js +1 -2
- package/lib-next/theme/ApiDemoPanel/FormFileUpload/index.js +1 -7
- package/lib-next/theme/ApiDemoPanel/FormItem/index.js +1 -2
- package/lib-next/theme/ApiDemoPanel/FormMultiSelect/index.js +1 -5
- package/lib-next/theme/ApiDemoPanel/FormSelect/index.js +1 -3
- package/lib-next/theme/ApiDemoPanel/FormTextInput/index.js +1 -2
- package/lib-next/theme/ApiDemoPanel/LiveEditor/index.js +3 -6
- package/lib-next/theme/ApiDemoPanel/MethodEndpoint/index.js +1 -9
- package/lib-next/theme/ApiDemoPanel/ParamOptions/index.js +34 -29
- package/lib-next/theme/ApiDemoPanel/ParamOptions/slice.js +1 -0
- package/lib-next/theme/ApiDemoPanel/Request/index.js +1 -2
- package/lib-next/theme/ApiDemoPanel/Response/index.js +3 -9
- package/lib-next/theme/ApiDemoPanel/Response/slice.js +1 -0
- package/lib-next/theme/ApiDemoPanel/SecuritySchemes/index.js +1 -5
- package/lib-next/theme/ApiDemoPanel/Server/index.js +3 -13
- package/lib-next/theme/ApiDemoPanel/Server/slice.js +1 -0
- package/lib-next/theme/ApiDemoPanel/buildPostmanRequest.js +12 -49
- package/lib-next/theme/ApiDemoPanel/index.js +2 -4
- package/lib-next/theme/ApiDemoPanel/persistanceMiddleware.js +5 -6
- package/lib-next/theme/ApiDemoPanel/storage-utils.js +1 -3
- package/lib-next/theme/ApiItem/Layout/index.js +8 -9
- package/lib-next/theme/ApiItem/Layout/styles.module.css +0 -403
- package/lib-next/theme/ApiItem/hooks.js +1 -0
- package/lib-next/theme/ApiItem/index.js +14 -13
- package/lib-next/theme/ApiItem/store.js +1 -0
- package/lib-next/theme/ApiLogo/index.js +1 -0
- package/lib-next/theme/styles.css +428 -0
- package/lib-next/theme-classic.d.ts +5 -0
- package/package.json +5 -5
- package/src/index.ts +5 -0
- package/src/theme/ApiDemoPanel/Execute/index.tsx +1 -0
- package/src/theme/ApiDemoPanel/index.tsx +1 -2
- package/src/theme/ApiItem/Layout/index.tsx +5 -6
- package/src/theme/ApiItem/Layout/styles.module.css +0 -403
- package/src/theme/ApiItem/index.tsx +5 -4
- package/src/theme/styles.css +428 -0
- package/src/theme-classic.d.ts +5 -0
- package/lib/theme/ApiDemoPanel/styles.module.css +0 -44
- package/lib/theme/ApiItem/Content/index.js +0 -65
- package/lib/theme/ApiItem/Footer/index.js +0 -78
- package/lib/theme/ApiItem/Footer/styles.module.css +0 -18
- package/lib/theme/ApiItem/Metadata/index.js +0 -32
- package/lib/theme/ApiItem/Paginator/index.js +0 -33
- package/lib/theme/ApiItem/TOC/Desktop/index.js +0 -31
- package/lib/theme/ApiItem/TOC/Mobile/index.js +0 -35
- package/lib/theme/ApiItem/TOC/Mobile/styles.module.css +0 -19
- package/lib-next/theme/ApiDemoPanel/styles.module.css +0 -44
- package/lib-next/theme/ApiItem/Content/index.js +0 -55
- package/lib-next/theme/ApiItem/Footer/index.js +0 -88
- package/lib-next/theme/ApiItem/Footer/styles.module.css +0 -18
- package/lib-next/theme/ApiItem/Metadata/index.js +0 -21
- package/lib-next/theme/ApiItem/Paginator/index.js +0 -19
- package/lib-next/theme/ApiItem/TOC/Desktop/index.js +0 -22
- package/lib-next/theme/ApiItem/TOC/Mobile/index.js +0 -24
- package/lib-next/theme/ApiItem/TOC/Mobile/styles.module.css +0 -19
- package/src/theme/ApiDemoPanel/styles.module.css +0 -44
- package/src/theme/ApiItem/Content/index.tsx +0 -57
- package/src/theme/ApiItem/Footer/index.tsx +0 -101
- package/src/theme/ApiItem/Footer/styles.module.css +0 -18
- package/src/theme/ApiItem/Metadata/index.tsx +0 -24
- package/src/theme/ApiItem/Paginator/index.tsx +0 -21
- package/src/theme/ApiItem/TOC/Desktop/index.tsx +0 -25
- package/src/theme/ApiItem/TOC/Mobile/index.tsx +0 -28
- package/src/theme/ApiItem/TOC/Mobile/styles.module.css +0 -19
|
@@ -5,18 +5,6 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
:root {
|
|
9
|
-
--openapi-required: var(--ifm-color-danger);
|
|
10
|
-
--openapi-code-blue: var(--ifm-color-info);
|
|
11
|
-
--openapi-code-red: var(--ifm-color-danger);
|
|
12
|
-
--openapi-code-orange: var(--ifm-color-warning);
|
|
13
|
-
--openapi-code-green: var(--ifm-color-success);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
:global(.docs-wrapper) {
|
|
17
|
-
height: 100%;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
8
|
.docItemContainer header + *,
|
|
21
9
|
.docItemContainer article > *:first-child {
|
|
22
10
|
margin-top: 0;
|
|
@@ -27,394 +15,3 @@
|
|
|
27
15
|
max-width: 75% !important;
|
|
28
16
|
}
|
|
29
17
|
}
|
|
30
|
-
|
|
31
|
-
.apiItemContainer article > *:first-child,
|
|
32
|
-
.apiItemContainer header + * {
|
|
33
|
-
margin-top: 0;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
:global(.version-button div) {
|
|
37
|
-
display: block;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
:global(.version-button div > button > span::after) {
|
|
41
|
-
border-color: currentcolor transparent;
|
|
42
|
-
border-style: solid;
|
|
43
|
-
border-width: 0.4em 0.4em 0;
|
|
44
|
-
content: "";
|
|
45
|
-
margin-left: 0.3em;
|
|
46
|
-
position: relative;
|
|
47
|
-
transform: translateY(-50%);
|
|
48
|
-
display: inline-block;
|
|
49
|
-
font-size: 0.8rem;
|
|
50
|
-
top: 1px;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/* default markdown margins look really silly in a table */
|
|
54
|
-
:global(.theme-api-markdown table *:last-child) {
|
|
55
|
-
margin-bottom: 0;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
:global(.theme-api-markdown details) {
|
|
59
|
-
margin: unset;
|
|
60
|
-
max-width: 600px;
|
|
61
|
-
background-color: transparent;
|
|
62
|
-
color: var(--ifm-font-color-base);
|
|
63
|
-
padding: unset;
|
|
64
|
-
border: unset !important;
|
|
65
|
-
box-shadow: unset !important;
|
|
66
|
-
--docusaurus-details-decoration-color: var(--ifm-font-color-base);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
:global(.theme-api-markdown details > div > div) {
|
|
70
|
-
padding-top: unset !important;
|
|
71
|
-
border-top: unset !important;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
:global(.theme-api-markdown .details__demo-panel) {
|
|
75
|
-
margin-bottom: 1rem;
|
|
76
|
-
background: var(--openapi-card-background-color);
|
|
77
|
-
border-radius: var(--openapi-card-border-radius);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
:global(.theme-api-markdown .details__demo-panel > summary) {
|
|
81
|
-
padding-left: 1rem;
|
|
82
|
-
padding-top: 1rem;
|
|
83
|
-
cursor: pointer;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
:global(.theme-api-markdown .details__demo-panel > div > div > pre) {
|
|
87
|
-
border-top-left-radius: 0;
|
|
88
|
-
border-top-right-radius: 0;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
:global(.theme-api-markdown .details__demo-panel > summary::marker) {
|
|
92
|
-
display: none;
|
|
93
|
-
content: "";
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
:global(.theme-api-markdown
|
|
97
|
-
.details__demo-panel
|
|
98
|
-
> summary::-webkit-details-marker) {
|
|
99
|
-
display: none;
|
|
100
|
-
content: "";
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
:global(.theme-api-markdown .details__demo-panel > pre) {
|
|
104
|
-
margin-bottom: 0;
|
|
105
|
-
padding-top: 0;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
:global(.theme-api-markdown .details__request-summary) {
|
|
109
|
-
display: flex;
|
|
110
|
-
justify-content: space-between;
|
|
111
|
-
align-items: center;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
:global(.theme-api-markdown .details__request-summary > button) {
|
|
115
|
-
margin-bottom: 1rem;
|
|
116
|
-
margin-right: 1rem;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
:global(.theme-api-markdown .details__response-summary) {
|
|
120
|
-
display: flex;
|
|
121
|
-
justify-content: space-between;
|
|
122
|
-
align-items: center;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
:global(.theme-api-markdown .details__response-summary > button) {
|
|
126
|
-
margin-bottom: 1rem;
|
|
127
|
-
margin-right: 1rem;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
:global(.theme-api-markdown code) {
|
|
131
|
-
max-width: 600px;
|
|
132
|
-
max-height: 500px;
|
|
133
|
-
overflow: auto;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
@media (min-width: 997px) {
|
|
137
|
-
.docItemCol {
|
|
138
|
-
max-width: 75% !important;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/* Prevent hydration FOUC, as the mobile TOC needs to be server-rendered */
|
|
142
|
-
.tocMobile {
|
|
143
|
-
display: none;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
:global(.theme-api-markdown details li) {
|
|
148
|
-
list-style: none;
|
|
149
|
-
padding-bottom: 5px;
|
|
150
|
-
padding-top: 5px;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
:global(.theme-api-markdown details p) {
|
|
154
|
-
margin-bottom: 0;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
:global([class^="paramsItem"]::before),
|
|
158
|
-
:global([class^="schemaItem"]::before) {
|
|
159
|
-
position: absolute;
|
|
160
|
-
top: 10px;
|
|
161
|
-
left: 0;
|
|
162
|
-
width: 0.7rem;
|
|
163
|
-
/* width of horizontal line */
|
|
164
|
-
height: 0.5rem;
|
|
165
|
-
/* vertical position of line */
|
|
166
|
-
vertical-align: top;
|
|
167
|
-
border-bottom: thin solid var(--ifm-color-gray-500);
|
|
168
|
-
content: "";
|
|
169
|
-
display: inline-block;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
:global(.theme-api-markdown details ul) {
|
|
173
|
-
padding-left: 0;
|
|
174
|
-
/* font-family: "Fira Mono", monospace; */
|
|
175
|
-
font-size: 14px;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
/* :global(.theme-api-markdown h2) {
|
|
179
|
-
font-size: 2rem;
|
|
180
|
-
} */
|
|
181
|
-
|
|
182
|
-
:global(.schemaItem) {
|
|
183
|
-
list-style: none;
|
|
184
|
-
position: relative;
|
|
185
|
-
margin: 0 !important;
|
|
186
|
-
padding: 5px 0 5px 1rem;
|
|
187
|
-
border-left: thin solid var(--ifm-color-gray-500) !important;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
:global(.discriminatorItem) {
|
|
191
|
-
list-style: none;
|
|
192
|
-
position: relative;
|
|
193
|
-
margin: 0 !important;
|
|
194
|
-
padding: 5px 0 5px 0 !important;
|
|
195
|
-
border-left: thin solid var(--ifm-color-gray-500) !important;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
:global(.discriminatorTabsContainer) {
|
|
199
|
-
padding-left: 0 !important;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
:global(.schemaItem:hover) {
|
|
203
|
-
background-color: var(--ifm-menu-color-background-active);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
:global(.schemaItem:focus) {
|
|
207
|
-
background-color: var(--ifm-menu-color-background-active);
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
:global(.paramsItem:hover) {
|
|
211
|
-
background-color: var(--ifm-menu-color-background-active);
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
:global(.paramsItem:focus) {
|
|
215
|
-
background-color: var(--ifm-menu-color-background-active);
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
:global(.theme-api-markdown div[class^="collapsibleContent"]) {
|
|
219
|
-
margin-top: 0 !important;
|
|
220
|
-
padding-left: 2px;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
/* CodeTabs */
|
|
224
|
-
|
|
225
|
-
:global(.code__tab--python::after) {
|
|
226
|
-
content: "";
|
|
227
|
-
width: 28px;
|
|
228
|
-
height: 28px;
|
|
229
|
-
background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/python/python-original.svg");
|
|
230
|
-
margin-block: auto;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
:global(.code__tab--python) {
|
|
234
|
-
color: var(--ifm-color-success);
|
|
235
|
-
padding-left: 1.4rem;
|
|
236
|
-
padding-right: 1.4rem;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
:global(.code__tab--python.tabs__item--active) {
|
|
240
|
-
border-bottom-color: var(--ifm-color-success);
|
|
241
|
-
background-color: var(--ifm-color-emphasis-100);
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
:global(.language-python) {
|
|
245
|
-
max-height: 500px;
|
|
246
|
-
overflow: auto;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
:global(.code__tab--go::after) {
|
|
250
|
-
content: "";
|
|
251
|
-
width: 28px;
|
|
252
|
-
height: 28px;
|
|
253
|
-
background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/go/go-original-wordmark.svg");
|
|
254
|
-
margin-block: auto;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
:global(.code__tab--go) {
|
|
258
|
-
color: var(--ifm-color-info);
|
|
259
|
-
padding-left: 1.4rem;
|
|
260
|
-
padding-right: 1.4rem;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
:global(.code__tab--go.tabs__item--active) {
|
|
264
|
-
border-bottom-color: var(--ifm-color-info);
|
|
265
|
-
background-color: var(--ifm-color-emphasis-100);
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
:global(.language-go) {
|
|
269
|
-
max-height: 500px;
|
|
270
|
-
overflow: auto;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
:global(.code__tab--javascript::after) {
|
|
274
|
-
content: "";
|
|
275
|
-
width: 28px;
|
|
276
|
-
height: 28px;
|
|
277
|
-
background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/javascript/javascript-original.svg");
|
|
278
|
-
margin-block: auto;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
:global(.code__tab--javascript) {
|
|
282
|
-
color: var(--ifm-color-warning);
|
|
283
|
-
padding-left: 1.4rem;
|
|
284
|
-
padding-right: 1.4rem;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
:global(.code__tab--javascript.tabs__item--active) {
|
|
288
|
-
border-bottom-color: var(--ifm-color-warning);
|
|
289
|
-
background-color: var(--ifm-color-emphasis-100);
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
:global(.language-javascript) {
|
|
293
|
-
max-height: 500px;
|
|
294
|
-
overflow: auto;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
:global(.code__tab--bash::after) {
|
|
298
|
-
content: "";
|
|
299
|
-
width: 28px;
|
|
300
|
-
height: 28px;
|
|
301
|
-
background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/linux/linux-original.svg");
|
|
302
|
-
margin-block: auto;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
:global(.code__tab--bash) {
|
|
306
|
-
color: var(--ifm-color-danger);
|
|
307
|
-
padding-left: 1.4rem;
|
|
308
|
-
padding-right: 1.4rem;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
:global(.code__tab--bash.tabs__item--active) {
|
|
312
|
-
border-bottom-color: var(--ifm-color-danger);
|
|
313
|
-
background-color: var(--ifm-color-emphasis-100);
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
:global(.language-bash) {
|
|
317
|
-
max-height: 500px;
|
|
318
|
-
overflow: auto;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
:global(.code__tab--ruby::after) {
|
|
322
|
-
content: "";
|
|
323
|
-
width: 28px;
|
|
324
|
-
height: 28px;
|
|
325
|
-
background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/ruby/ruby-plain.svg");
|
|
326
|
-
margin-block: auto;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
:global(.code__tab--ruby) {
|
|
330
|
-
color: var(--ifm-color-danger);
|
|
331
|
-
padding-left: 1.4rem;
|
|
332
|
-
padding-right: 1.4rem;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
:global(.code__tab--ruby.tabs__item--active) {
|
|
336
|
-
border-bottom-color: var(--ifm-color-danger);
|
|
337
|
-
background-color: var(--ifm-color-emphasis-100);
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
:global(.language-ruby) {
|
|
341
|
-
max-height: 500px;
|
|
342
|
-
overflow: auto;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
:global(.code__tab--csharp::after) {
|
|
346
|
-
content: "";
|
|
347
|
-
width: 28px;
|
|
348
|
-
height: 28px;
|
|
349
|
-
background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/csharp/csharp-original.svg");
|
|
350
|
-
margin-block: auto;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
:global(.code__tab--csharp) {
|
|
354
|
-
color: var(--ifm-color-gray-500);
|
|
355
|
-
padding-left: 1.4rem;
|
|
356
|
-
padding-right: 1.4rem;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
:global(.code__tab--csharp.tabs__item--active) {
|
|
360
|
-
border-bottom-color: var(--ifm-color-gray-500);
|
|
361
|
-
background-color: var(--ifm-color-emphasis-100);
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
:global(.language-csharp) {
|
|
365
|
-
max-height: 500px;
|
|
366
|
-
overflow: auto;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
:global(.code__tab--nodejs::after) {
|
|
370
|
-
content: "";
|
|
371
|
-
width: 28px;
|
|
372
|
-
height: 28px;
|
|
373
|
-
background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/nodejs/nodejs-original.svg");
|
|
374
|
-
margin-block: auto;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
:global(.code__tab--nodejs) {
|
|
378
|
-
color: var(--ifm-color-success);
|
|
379
|
-
padding-left: 1.4rem;
|
|
380
|
-
padding-right: 1.4rem;
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
:global(.code__tab--nodejs.tabs__item--active) {
|
|
384
|
-
border-bottom-color: var(--ifm-color-success);
|
|
385
|
-
background-color: var(--ifm-color-emphasis-100);
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
:global(.language-nodejs) {
|
|
389
|
-
max-height: 500px;
|
|
390
|
-
overflow: auto;
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
:global(.code__tab--php::after) {
|
|
394
|
-
content: "";
|
|
395
|
-
width: 28px;
|
|
396
|
-
height: 28px;
|
|
397
|
-
background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/php/php-original.svg");
|
|
398
|
-
margin-block: auto;
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
:global(.code__tab--php) {
|
|
402
|
-
color: var(--ifm-color-gray-500);
|
|
403
|
-
padding-left: 1.4rem;
|
|
404
|
-
padding-right: 1.4rem;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
:global(.code__tab--php.tabs__item--active) {
|
|
408
|
-
border-bottom-color: var(--ifm-color-gray-500);
|
|
409
|
-
background-color: var(--ifm-color-emphasis-100);
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
:global(.language-php) {
|
|
413
|
-
max-height: 500px;
|
|
414
|
-
overflow: auto;
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
/* Prism code styles */
|
|
418
|
-
:global(.prism-code.language-json) {
|
|
419
|
-
white-space: pre !important;
|
|
420
|
-
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
* ========================================================================== */
|
|
7
|
+
|
|
7
8
|
import { useDispatch, useSelector } from "react-redux";
|
|
8
9
|
export const useTypedDispatch = () => useDispatch();
|
|
9
10
|
export const useTypedSelector = useSelector;
|
|
@@ -4,27 +4,25 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
* ========================================================================== */
|
|
7
|
+
|
|
7
8
|
import React from "react";
|
|
8
9
|
import BrowserOnly from "@docusaurus/BrowserOnly";
|
|
9
10
|
import ExecutionEnvironment from "@docusaurus/ExecutionEnvironment";
|
|
10
11
|
import { HtmlClassNameProvider } from "@docusaurus/theme-common";
|
|
11
12
|
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
|
|
12
13
|
import useIsBrowser from "@docusaurus/useIsBrowser";
|
|
14
|
+
import DocItemMetadata from "@theme/DocItem/Metadata";
|
|
15
|
+
import clsx from "clsx";
|
|
13
16
|
import { Provider } from "react-redux";
|
|
14
17
|
import { createAuth } from "../ApiDemoPanel/Authorization/slice";
|
|
15
18
|
import { createPersistanceMiddleware } from "../ApiDemoPanel/persistanceMiddleware";
|
|
16
19
|
import DocItemLayout from "./Layout";
|
|
17
|
-
import DocItemMetadata from "./Metadata";
|
|
18
20
|
import { createStoreWithoutState, createStoreWithState } from "./store";
|
|
19
|
-
|
|
20
21
|
const { DocProvider } = require("@docusaurus/theme-common/internal");
|
|
21
|
-
|
|
22
22
|
let ApiDemoPanel = (_) => <div />;
|
|
23
|
-
|
|
24
23
|
if (ExecutionEnvironment.canUseDOM) {
|
|
25
24
|
ApiDemoPanel = require("@theme/ApiDemoPanel").default;
|
|
26
25
|
}
|
|
27
|
-
|
|
28
26
|
export default function ApiItem(props) {
|
|
29
27
|
const docHtmlClassName = `docs-doc-id-${props.content.metadata.unversionedId}`;
|
|
30
28
|
const MDXComponent = props.content;
|
|
@@ -34,15 +32,18 @@ export default function ApiItem(props) {
|
|
|
34
32
|
const { siteConfig } = useDocusaurusContext();
|
|
35
33
|
const themeConfig = siteConfig.themeConfig;
|
|
36
34
|
const options = themeConfig.api;
|
|
37
|
-
const isBrowser = useIsBrowser();
|
|
35
|
+
const isBrowser = useIsBrowser();
|
|
38
36
|
|
|
37
|
+
// Define store2
|
|
39
38
|
let store2 = {};
|
|
40
|
-
const persistanceMiddleware = createPersistanceMiddleware(options);
|
|
39
|
+
const persistanceMiddleware = createPersistanceMiddleware(options);
|
|
41
40
|
|
|
41
|
+
// Init store for SSR
|
|
42
42
|
if (!isBrowser) {
|
|
43
43
|
store2 = createStoreWithoutState({}, [persistanceMiddleware]);
|
|
44
|
-
}
|
|
44
|
+
}
|
|
45
45
|
|
|
46
|
+
// Init store for CSR to hydrate components
|
|
46
47
|
if (isBrowser) {
|
|
47
48
|
const acceptArray = Array.from(
|
|
48
49
|
new Set(
|
|
@@ -69,10 +70,10 @@ export default function ApiItem(props) {
|
|
|
69
70
|
security: api?.security,
|
|
70
71
|
securitySchemes: api?.securitySchemes,
|
|
71
72
|
options,
|
|
72
|
-
});
|
|
73
|
+
});
|
|
74
|
+
// TODO: determine way to rehydrate without flashing
|
|
73
75
|
// const acceptValue = window?.sessionStorage.getItem("accept");
|
|
74
76
|
// const contentTypeValue = window?.sessionStorage.getItem("contentType");
|
|
75
|
-
|
|
76
77
|
const server = window?.sessionStorage.getItem("server");
|
|
77
78
|
const serverObject = JSON.parse(server) ?? {};
|
|
78
79
|
store2 = createStoreWithState(
|
|
@@ -101,7 +102,6 @@ export default function ApiItem(props) {
|
|
|
101
102
|
[persistanceMiddleware]
|
|
102
103
|
);
|
|
103
104
|
}
|
|
104
|
-
|
|
105
105
|
if (api) {
|
|
106
106
|
return (
|
|
107
107
|
<DocProvider content={props.content}>
|
|
@@ -109,7 +109,7 @@ export default function ApiItem(props) {
|
|
|
109
109
|
<DocItemMetadata />
|
|
110
110
|
<DocItemLayout>
|
|
111
111
|
<Provider store={store2}>
|
|
112
|
-
<div className="row">
|
|
112
|
+
<div className={clsx("row", "theme-api-markdown")}>
|
|
113
113
|
<div className="col col--7">
|
|
114
114
|
<MDXComponent />
|
|
115
115
|
</div>
|
|
@@ -126,8 +126,9 @@ export default function ApiItem(props) {
|
|
|
126
126
|
</HtmlClassNameProvider>
|
|
127
127
|
</DocProvider>
|
|
128
128
|
);
|
|
129
|
-
}
|
|
129
|
+
}
|
|
130
130
|
|
|
131
|
+
// Non-API docs
|
|
131
132
|
return (
|
|
132
133
|
<DocProvider content={props.content}>
|
|
133
134
|
<HtmlClassNameProvider className={docHtmlClassName}>
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
* ========================================================================== */
|
|
7
|
+
|
|
7
8
|
import { configureStore, combineReducers } from "@reduxjs/toolkit";
|
|
8
9
|
import accept from "../ApiDemoPanel/Accept/slice";
|
|
9
10
|
import auth from "../ApiDemoPanel/Authorization/slice";
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
* ========================================================================== */
|
|
7
|
+
|
|
7
8
|
import React from "react";
|
|
8
9
|
import { useColorMode } from "@docusaurus/theme-common";
|
|
9
10
|
export default function ApiLogo(props) {
|