Merge branch 'master' into ft/3052-extensions
This commit is contained in:
@@ -6,3 +6,4 @@
|
|||||||
!dist/swagger-ui.js.map
|
!dist/swagger-ui.js.map
|
||||||
!dist/swagger-ui.css
|
!dist/swagger-ui.css
|
||||||
!dist/swagger-ui.css.map
|
!dist/swagger-ui.css.map
|
||||||
|
!dist/oauth2-redirect.html
|
||||||
|
|||||||
@@ -41,6 +41,13 @@ export default class Auths extends React.Component {
|
|||||||
authActions.logout(auths)
|
authActions.logout(auths)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
close =(e) => {
|
||||||
|
e.preventDefault()
|
||||||
|
let { authActions } = this.props
|
||||||
|
|
||||||
|
authActions.showDefinitions(false)
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
let { definitions, getComponent, authSelectors, errSelectors } = this.props
|
let { definitions, getComponent, authSelectors, errSelectors } = this.props
|
||||||
const AuthItem = getComponent("AuthItem")
|
const AuthItem = getComponent("AuthItem")
|
||||||
@@ -74,6 +81,7 @@ export default class Auths extends React.Component {
|
|||||||
}).toArray()
|
}).toArray()
|
||||||
}
|
}
|
||||||
<div className="auth-btn-wrapper">
|
<div className="auth-btn-wrapper">
|
||||||
|
<Button className="btn modal-btn auth" onClick={ this.close }>Done</Button>
|
||||||
{
|
{
|
||||||
nonOauthDefinitions.size === authorizedAuth.size ? <Button className="btn modal-btn auth" onClick={ this.logoutClick }>Logout</Button>
|
nonOauthDefinitions.size === authorizedAuth.size ? <Button className="btn modal-btn auth" onClick={ this.logoutClick }>Logout</Button>
|
||||||
: <Button type="submit" className="btn modal-btn auth authorize">Authorize</Button>
|
: <Button type="submit" className="btn modal-btn auth authorize">Authorize</Button>
|
||||||
|
|||||||
@@ -200,11 +200,11 @@ export default class Oauth2 extends React.Component {
|
|||||||
<Row key={ name }>
|
<Row key={ name }>
|
||||||
<div className="checkbox">
|
<div className="checkbox">
|
||||||
<Input data-value={ name }
|
<Input data-value={ name }
|
||||||
id={`${name}-checkbox-${this.state.name}`}
|
id={`${name}-${flow}-checkbox-${this.state.name}`}
|
||||||
disabled={ isAuthorized }
|
disabled={ isAuthorized }
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
onChange={ this.onScopeChange }/>
|
onChange={ this.onScopeChange }/>
|
||||||
<label htmlFor={`${name}-checkbox-${this.state.name}`}>
|
<label htmlFor={`${name}-${flow}-checkbox-${this.state.name}`}>
|
||||||
<span className="item"></span>
|
<span className="item"></span>
|
||||||
<div className="text">
|
<div className="text">
|
||||||
<p className="name">{name}</p>
|
<p className="name">{name}</p>
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import React, { PureComponent } from "react"
|
import React, { PureComponent } from "react"
|
||||||
|
import ImPropTypes from "react-immutable-proptypes"
|
||||||
import PropTypes from "prop-types"
|
import PropTypes from "prop-types"
|
||||||
|
|
||||||
export default class Model extends PureComponent {
|
export default class Model extends PureComponent {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
schema: PropTypes.object.isRequired,
|
schema: ImPropTypes.orderedMap.isRequired,
|
||||||
getComponent: PropTypes.func.isRequired,
|
getComponent: PropTypes.func.isRequired,
|
||||||
getConfigs: PropTypes.func.isRequired,
|
getConfigs: PropTypes.func.isRequired,
|
||||||
specSelectors: PropTypes.object.isRequired,
|
specSelectors: PropTypes.object.isRequired,
|
||||||
|
|||||||
@@ -147,13 +147,14 @@ export default class ObjectModel extends Component {
|
|||||||
: <tr>
|
: <tr>
|
||||||
<td>{ "not ->" }</td>
|
<td>{ "not ->" }</td>
|
||||||
<td>
|
<td>
|
||||||
{not.map((schema, k) => {
|
<div>
|
||||||
return <div key={k}><Model { ...otherProps } required={ false }
|
<Model { ...otherProps }
|
||||||
getComponent={ getComponent }
|
required={ false }
|
||||||
getConfigs={ getConfigs }
|
getComponent={ getComponent }
|
||||||
schema={ schema }
|
getConfigs={ getConfigs }
|
||||||
depth={ depth + 1 } /></div>
|
schema={ not }
|
||||||
})}
|
depth={ depth + 1 } />
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -153,14 +153,14 @@ export default class Operation extends PureComponent {
|
|||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
externalDocs && externalDocs.get("url") ?
|
externalDocs && externalDocs.url ?
|
||||||
<div className="opblock-external-docs-wrapper">
|
<div className="opblock-external-docs-wrapper">
|
||||||
<h4 className="opblock-title_normal">Find more details</h4>
|
<h4 className="opblock-title_normal">Find more details</h4>
|
||||||
<div className="opblock-external-docs">
|
<div className="opblock-external-docs">
|
||||||
<span className="opblock-external-docs__description">
|
<span className="opblock-external-docs__description">
|
||||||
<Markdown source={ externalDocs.get("description") } />
|
<Markdown source={ externalDocs.description } />
|
||||||
</span>
|
</span>
|
||||||
<a className="opblock-external-docs__link" href={ sanitizeUrl(externalDocs.get("url")) }>{ externalDocs.get("url") }</a>
|
<a target="_blank" className="opblock-external-docs__link" href={ sanitizeUrl(externalDocs.url) }>{ externalDocs.url }</a>
|
||||||
</div>
|
</div>
|
||||||
</div> : null
|
</div> : null
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user