Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
73d2e90e12 | ||
|
|
875caab173 | ||
|
|
ef95d6e00c |
@@ -5,7 +5,6 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title>Swagger UI</title>
|
<title>Swagger UI</title>
|
||||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700" rel="stylesheet">
|
|
||||||
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" >
|
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" >
|
||||||
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
|
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
|
||||||
<link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />
|
<link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />
|
||||||
|
|||||||
Vendored
-1
@@ -4,7 +4,6 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Swagger UI</title>
|
<title>Swagger UI</title>
|
||||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700" rel="stylesheet">
|
|
||||||
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" >
|
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" >
|
||||||
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
|
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
|
||||||
<link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />
|
<link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ export class JsonSchema_array extends PureComponent {
|
|||||||
|
|
||||||
constructor(props, context) {
|
constructor(props, context) {
|
||||||
super(props, context)
|
super(props, context)
|
||||||
this.state = {value: props.value}
|
this.state = { value: valueOrEmptyList(props.value)}
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillReceiveProps(props) {
|
componentWillReceiveProps(props) {
|
||||||
@@ -135,7 +135,7 @@ export class JsonSchema_array extends PureComponent {
|
|||||||
|
|
||||||
addItem = () => {
|
addItem = () => {
|
||||||
this.setState(state => {
|
this.setState(state => {
|
||||||
state.value = state.value || List()
|
state.value = valueOrEmptyList(state.value)
|
||||||
return {
|
return {
|
||||||
value: state.value.push("")
|
value: state.value.push("")
|
||||||
}
|
}
|
||||||
@@ -174,7 +174,7 @@ export class JsonSchema_array extends PureComponent {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
{ !value || value.count() < 1 ? null :
|
{ !value || !value.count || value.count() < 1 ? null :
|
||||||
value.map( (item,i) => {
|
value.map( (item,i) => {
|
||||||
let schema = Object.assign({}, itemSchema)
|
let schema = Object.assign({}, itemSchema)
|
||||||
if ( errors.length ) {
|
if ( errors.length ) {
|
||||||
@@ -264,3 +264,7 @@ export class JsonSchema_object extends PureComponent {
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function valueOrEmptyList(value) {
|
||||||
|
return List.isList(value) ? value : List()
|
||||||
|
}
|
||||||
@@ -10,6 +10,7 @@ const RequestBody = ({
|
|||||||
getComponent,
|
getComponent,
|
||||||
getConfigs,
|
getConfigs,
|
||||||
specSelectors,
|
specSelectors,
|
||||||
|
fn,
|
||||||
contentType,
|
contentType,
|
||||||
isExecute,
|
isExecute,
|
||||||
specPath,
|
specPath,
|
||||||
@@ -85,6 +86,7 @@ const RequestBody = ({
|
|||||||
<td className="col parameters-col_description">
|
<td className="col parameters-col_description">
|
||||||
{isExecute ?
|
{isExecute ?
|
||||||
<JsonSchemaForm
|
<JsonSchemaForm
|
||||||
|
fn={fn}
|
||||||
dispatchInitialValue={!isFile}
|
dispatchInitialValue={!isFile}
|
||||||
schema={prop}
|
schema={prop}
|
||||||
getComponent={getComponent}
|
getComponent={getComponent}
|
||||||
@@ -132,6 +134,7 @@ RequestBody.propTypes = {
|
|||||||
requestBodyValue: ImPropTypes.orderedMap.isRequired,
|
requestBodyValue: ImPropTypes.orderedMap.isRequired,
|
||||||
getComponent: PropTypes.func.isRequired,
|
getComponent: PropTypes.func.isRequired,
|
||||||
getConfigs: PropTypes.func.isRequired,
|
getConfigs: PropTypes.func.isRequired,
|
||||||
|
fn: PropTypes.object.isRequired,
|
||||||
specSelectors: PropTypes.object.isRequired,
|
specSelectors: PropTypes.object.isRequired,
|
||||||
contentType: PropTypes.string,
|
contentType: PropTypes.string,
|
||||||
isExecute: PropTypes.bool.isRequired,
|
isExecute: PropTypes.bool.isRequired,
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
@mixin text_body($color: $text-body-default-font-color)
|
@mixin text_body($color: $text-body-default-font-color)
|
||||||
{
|
{
|
||||||
font-family: 'Open Sans', sans-serif;
|
font-family: sans-serif;
|
||||||
|
|
||||||
color: $color;
|
color: $color;
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin text_code($color: $text-code-default-font-color)
|
@mixin text_code($color: $text-code-default-font-color)
|
||||||
{
|
{
|
||||||
font-family: 'Source Code Pro', monospace;
|
font-family: monospace;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
|
||||||
color: $color;
|
color: $color;
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
@mixin text_headline($color: $text-headline-default-font-color)
|
@mixin text_headline($color: $text-headline-default-font-color)
|
||||||
{
|
{
|
||||||
font-family: 'Titillium Web', sans-serif;
|
font-family: sans-serif;
|
||||||
|
|
||||||
color: $color;
|
color: $color;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title>Swagger UI</title>
|
<title>Swagger UI</title>
|
||||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700" rel="stylesheet">
|
|
||||||
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" >
|
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" >
|
||||||
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
|
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
|
||||||
<link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />
|
<link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />
|
||||||
|
|||||||
Reference in New Issue
Block a user