Merge branch 'master' into master
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>
|
||||||
|
|||||||
@@ -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,
|
||||||
specSelectors: PropTypes.object.isRequired,
|
specSelectors: PropTypes.object.isRequired,
|
||||||
name: PropTypes.string,
|
name: PropTypes.string,
|
||||||
|
|||||||
@@ -142,12 +142,13 @@ 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 }
|
||||||
|
required={ false }
|
||||||
getComponent={ getComponent }
|
getComponent={ getComponent }
|
||||||
schema={ schema }
|
schema={ not }
|
||||||
depth={ depth + 1 } /></div>
|
depth={ depth + 1 } />
|
||||||
})}
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,3 +3,8 @@
|
|||||||
if(!window.Promise) {
|
if(!window.Promise) {
|
||||||
require("core-js/fn/promise")
|
require("core-js/fn/promise")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Required by IE 11
|
||||||
|
if(!String.prototype.startsWith) {
|
||||||
|
require("core-js/es6/string")
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user