Skip to content

Commit

Permalink
turned down prod webpack logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mitraman committed Aug 25, 2017
1 parent 749f85a commit 9d22972
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
22 changes: 19 additions & 3 deletions src/js/modules/sketch/tree/BodyEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export default class extends React.Component{
delete: 'label delete disabled'
},
data: {},
isMethodEnabled: false
isMethodEnabled: false,
requestEditorVisiblityStyle: 'visible'
}
}

Expand All @@ -50,6 +51,12 @@ export default class extends React.Component{
this.responseEditor.setValue('', 1);
}
this.manipulatingBuffer = false;

if( methodName === 'get') {
this.setState({requestEditorVisiblityStyle: 'hidden'});
}else {
this.setState({requestEditorVisiblityStyle: 'visible'});
}
}

// Sets the state of the method label classes based on whether they are enabled
Expand Down Expand Up @@ -222,7 +229,12 @@ export default class extends React.Component{

let requestEditorStyle = {
width: '600px',
height: '100%'
height: '100%',
visibility: this.state.requestEditorVisiblityStyle
}

let requestContentTypeStyle = {
visibility: this.state.requestEditorVisiblityStyle
}

let requestPanelStyle = {
Expand Down Expand Up @@ -288,13 +300,17 @@ export default class extends React.Component{
value={this.state.requestParams}
onChange={(e) => this.onFieldChange(e)}/>
</div>
<div style={requestContentTypeStyle}>
<label>Content Type:</label>
<select className="form-control input-sm" readOnly>
<option>application/json</option>
</select>
</div>

</form>
<div id="requestEditorPane" style={requestEditorStyle} ref={(e) => { this.requestEditDiv = e} }></div>
<div id="requestEditorPane"
style={requestEditorStyle}
ref={(e) => { this.requestEditDiv = e} }></div>
</div>
<div>
<h4>Response</h4>
Expand Down
6 changes: 6 additions & 0 deletions webpack.prod.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ module.exports = {
//make sure port 8090 is used when launching webpack-dev-server
publicPath: 'https://rapidodesigner.com/assets/'
},
stats: {
assets: false,
warnings: true,
errors: true,
errorDetails: true
},
module: {
loaders: [
{
Expand Down

0 comments on commit 9d22972

Please sign in to comment.