diff --git a/.gitignore b/.gitignore index 4d29575..800f3a8 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ # production /build +/dist # misc .DS_Store diff --git a/public/electron.js b/public/electron.js index 450fe09..bb6af16 100644 --- a/public/electron.js +++ b/public/electron.js @@ -16,6 +16,7 @@ function createWindow() { }); // remove the shitty menu + win.setMenu(null); // and load the index.html of the app. win.loadURL( diff --git a/src/App.js b/src/App.js index 2210362..47901c6 100644 --- a/src/App.js +++ b/src/App.js @@ -4,7 +4,6 @@ import { Button } from "react-bootstrap"; import Population from "./components/Population.jsx"; import Invasions from "./components/Invasions.jsx"; -import ServerStatus from "./components/ServerStatus.jsx"; import SillyMeter from "./components/SillyMeter.jsx"; class App extends Component { @@ -84,22 +83,13 @@ class App extends Component {
-
- -
-
-
-
+
-
- -
-
diff --git a/src/components/Invasions.jsx b/src/components/Invasions.jsx index f8d0fff..42dfe03 100644 --- a/src/components/Invasions.jsx +++ b/src/components/Invasions.jsx @@ -1,7 +1,14 @@ import React, { Component } from "react"; import { Circle } from "rc-progress"; +import AnimatedNumber from "react-animated-number/build/AnimatedNumber"; function Districts(props) { + const formatValue = value => value.toFixed(0); + const duration = 800; + + if (props.data === null) { + return "Loading invasions"; + } return (