Compare commits

..
Author SHA1 Message Date
Kyle Shockey cb5a3a51bc evaluate bundle size after success 2018-07-05 14:25:40 -05:00
kyle dd0fc297cb Merge branch 'master' into housekeeping/bundlesize 2018-07-05 13:14:21 -05:00
Kyle Shockey 77995b1815 housekeeping: use bundlesize 2018-07-05 13:13:46 -05:00
6 changed files with 9 additions and 13 deletions
+1
View File
@@ -5,6 +5,7 @@
<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" />
+1
View File
@@ -4,6 +4,7 @@
<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" />
+3 -7
View File
@@ -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: valueOrEmptyList(props.value)} this.state = {value: 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 = valueOrEmptyList(state.value) state.value = state.value || List()
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 || value.count() < 1 ? null : { !value || 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,7 +264,3 @@ export class JsonSchema_object extends PureComponent {
} }
} }
function valueOrEmptyList(value) {
return List.isList(value) ? value : List()
}
@@ -10,7 +10,6 @@ const RequestBody = ({
getComponent, getComponent,
getConfigs, getConfigs,
specSelectors, specSelectors,
fn,
contentType, contentType,
isExecute, isExecute,
specPath, specPath,
@@ -86,7 +85,6 @@ 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}
@@ -134,7 +132,6 @@ 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,
+3 -3
View File
@@ -1,13 +1,13 @@
@mixin text_body($color: $text-body-default-font-color) @mixin text_body($color: $text-body-default-font-color)
{ {
font-family: sans-serif; font-family: 'Open Sans', 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: monospace; font-family: 'Source Code Pro', 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: sans-serif; font-family: 'Titillium Web', sans-serif;
color: $color; color: $color;
} }
+1
View File
@@ -5,6 +5,7 @@
<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" />