mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-26 10:33:44 +03:00
Minor fixes before alpha
This commit is contained in:
parent
52e7bfb347
commit
0faa66b6e6
|
@ -1,4 +1,5 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
|
import * as PropTypes from 'prop-types';
|
||||||
|
|
||||||
import { Loading } from './Loading/Loading';
|
import { Loading } from './Loading/Loading';
|
||||||
import { StoreProvider } from './StoreProvider';
|
import { StoreProvider } from './StoreProvider';
|
||||||
|
@ -31,6 +32,7 @@ export class RedocStandalone extends React.Component<RedocStandaloneProps> {
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
|
options: PropTypes.object,
|
||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
|
@ -55,7 +55,7 @@ export class OAuthFlow extends React.PureComponent<OAuthFlowProps> {
|
||||||
</div>
|
</div>
|
||||||
<ul>
|
<ul>
|
||||||
{Object.keys(flow!.scopes).map(scope => (
|
{Object.keys(flow!.scopes).map(scope => (
|
||||||
<li>
|
<li key={scope}>
|
||||||
<code>{scope}</code> - {flow!.scopes[scope]}
|
<code>{scope}</code> - {flow!.scopes[scope]}
|
||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
|
|
|
@ -33,7 +33,7 @@ export class RedocNormalizedOptions {
|
||||||
untrustedSpec: boolean;
|
untrustedSpec: boolean;
|
||||||
|
|
||||||
constructor(raw: RedocRawOptions) {
|
constructor(raw: RedocRawOptions) {
|
||||||
this.theme = mergeObjects({} as any, raw.theme || {}, defaultTheme);
|
this.theme = mergeObjects({} as any, defaultTheme, raw.theme || {});
|
||||||
this.scrollYOffset = RedocNormalizedOptions.normalizeScrollYOffset(raw.scrollYOffset);
|
this.scrollYOffset = RedocNormalizedOptions.normalizeScrollYOffset(raw.scrollYOffset);
|
||||||
this.hideHostname = RedocNormalizedOptions.normalizeHideHostname(raw.hideHostname);
|
this.hideHostname = RedocNormalizedOptions.normalizeHideHostname(raw.hideHostname);
|
||||||
this.expandResponses = RedocNormalizedOptions.normalizeExpandResponses(raw.expandResponses);
|
this.expandResponses = RedocNormalizedOptions.normalizeExpandResponses(raw.expandResponses);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user