Skip to content

Commit

Permalink
Merge pull request #178 from seniorquico/watchify-update-deps
Browse files Browse the repository at this point in the history
Added 'watch' script and updated JS dependencies
  • Loading branch information
richorama authored Aug 29, 2018
2 parents 6095943 + d01d03f commit c9e61b4
Show file tree
Hide file tree
Showing 8 changed files with 3,019 additions and 2,816 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*.sln.docstates
.vscode/
BenchmarkDotNet.Artifacts/
TestHost/index.min.js

# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
Expand Down
7 changes: 6 additions & 1 deletion App/.babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{
"presets": ["react", "es2015"]
"presets": [
["@babel/preset-env", {
"modules": false
}],
"@babel/preset-react"
]
}
2 changes: 1 addition & 1 deletion App/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2018,
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
}
},
Expand Down
7 changes: 2 additions & 5 deletions App/grains/grain.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,8 @@ module.exports = React.createClass({
},

render:function(){
var renderMethod = this.renderGraphs;

if (Object.keys(this.props.grainStats).length === 0) renderMethod = this.renderEmpty;

return renderMethod()
if (Object.keys(this.props.grainStats).length === 0) return this.renderEmpty();
return this.renderGraphs()
}
});

Expand Down
3 changes: 1 addition & 2 deletions App/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const Alert = require('./components/alert.jsx');
const LogStream = require('./logstream/log-stream.jsx');
const SiloCounters = require('./silos/silo-counters.jsx');
const Reminders = require('./reminders/reminders.jsx');
var timer;

var dashboardCounters = {};
var routeIndex = 0;
Expand Down Expand Up @@ -213,7 +212,7 @@ routie('/host/:host/counters', function(host){
renderLoading();

http.get(`SiloCounters/${host}`, (err, data) => {

if (routeIndex != thisRouteIndex) return;
var subTitle = <a href={`#/host/${host}`}>Silo Details</a>
renderPage(<Page title={`Silo ${host}`} subTitle={subTitle}><SiloCounters silo={host} dashboardCounters={dashboardCounters} counters={data}/></Page>, "#/silos")
});
Expand Down
Loading

0 comments on commit c9e61b4

Please sign in to comment.