diff --git a/src/components/home.js b/src/components/home.js index 95b20b3..42faa6f 100644 --- a/src/components/home.js +++ b/src/components/home.js @@ -56,7 +56,7 @@ class Home extends React.Component { VILLASweb is a frontend for distributed real-time simulation hosted by {config.admin.name}.

- This instance is hosting {this.getCounts('projects')} projects consisting of {this.getCounts('nodes')} nodes, {this.getCounts('visualizations')} visualizations and {this.getCounts('simulators')} simulations. + This instance is hosting {this.getCounts('projects')} projects consisting of {this.getCounts('simulators')} simulators, {this.getCounts('visualizations')} visualizations and {this.getCounts('simulations')} simulations. A total of {this.getCounts('users')} users are registered.

Credits

diff --git a/src/components/widget-gauge.js b/src/components/widget-gauge.js index dcd250d..9f86902 100644 --- a/src/components/widget-gauge.js +++ b/src/components/widget-gauge.js @@ -54,12 +54,12 @@ class WidgetGauge extends Component { } const simulator = nextProps.simulationModel.simulator; - + // update value if (nextProps.data == null || nextProps.data[simulator] == null || nextProps.data[simulator].output == null || nextProps.data[simulator].output.values == null - || nextProps.data[simulator].output.values.length === 0 + || nextProps.data[simulator].output.values.length === 0 || nextProps.data[simulator].output.values[0].length === 0) { this.setState({ value: 0 }); return; @@ -163,7 +163,7 @@ class WidgetGauge extends Component { }); } - this.gauge.setOptions({ + this.gauge.setOptions({ staticLabels: { font: '10px "Helvetica Neue"', labels, diff --git a/src/containers/visualization.js b/src/containers/visualization.js index 2bf0f4b..3ac008f 100644 --- a/src/containers/visualization.js +++ b/src/containers/visualization.js @@ -464,7 +464,7 @@ class Visualization extends React.Component { // Only one topology widget at the time is supported let thereIsTopologyWidget = current_widgets && Object.values(current_widgets).filter( widget => widget.type === 'Topology').length > 0; let topologyItemMsg = !thereIsTopologyWidget? '' : 'Currently only one is supported'; - + return (
diff --git a/src/styles/app.css b/src/styles/app.css index 5017aea..6e6daac 100644 --- a/src/styles/app.css +++ b/src/styles/app.css @@ -152,14 +152,14 @@ body { .menu-sidebar a::after { /* Trick to make menu items to be as wide as in bold */ - display:block; - content:attr(title); - font-weight:bold; - height:1px; - color:transparent; - overflow:hidden; - visibility:hidden; - margin-bottom:-1px; + display: block; + content: attr(title); + font-weight: bold; + height: 1px; + color: transparent; + overflow: hidden; + visibility: hidden; + margin-bottom: -1px; } .sidenav {