Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
feat(Time Series): Adds backend data structures to display an activit…
Browse files Browse the repository at this point in the history
…y Indicator
  • Loading branch information
rashley-iqt committed Apr 19, 2019
1 parent 0f4d731 commit 007cd81
Show file tree
Hide file tree
Showing 6 changed files with 264 additions and 8 deletions.
207 changes: 207 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"react-portal-tooltip": "^2.4.0",
"react-redux": "^7.0.1",
"react-scripts": "^2.1.8",
"react-spinners": "^0.5.4",
"redux": "^4.0.0",
"redux-actions": "^2.2.1",
"redux-mock-store": "^1.5.1",
Expand Down
15 changes: 12 additions & 3 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { connect } from 'react-redux';
import classNames from 'classnames';
import Modal from 'react-modal';

import { RingLoader } from 'react-spinners';
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import {
faCheck, faDizzy, faPlus, faHome, faAngleDoubleDown, faAngleDoubleUp,
Expand Down Expand Up @@ -63,7 +64,7 @@ class App extends Component {
controls: true
},
selectedFile: null,
exportName: "dataset.json"
exportName: "dataset.json",
}

componentWillReceiveProps = (nextProps) =>{
Expand All @@ -75,7 +76,7 @@ class App extends Component {
uuids: uniqueUuids,
startUuid: startUuid,
endUuid: endUuid,
datasetAdded: datasetAdded
datasetAdded: datasetAdded,
});
}

Expand Down Expand Up @@ -168,7 +169,7 @@ class App extends Component {
'includeControls': this.state.options.controls,
});
}
this.setState({showOptions: false})
this.setState({showOptions: false })
}
}

Expand Down Expand Up @@ -458,6 +459,14 @@ class App extends Component {
</div>
</div>
</Modal>
<div className={style.activityIndicatorContainer}>
<RingLoader
sizeUnit={"px"}
size={150}
color={'#0277BD'}
loading={this.state.busy}
/>
</div>
</div>
);
}
Expand Down
11 changes: 11 additions & 0 deletions src/App.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -297,4 +297,15 @@ input[name=hideControls]:checked ~ .canvas {
background-color: #DCDCDC;
flex-wrap: nowrap !important;
padding: 0.25em 2em;
}

.activityIndicatorContainer {
position: absolute;
margin: auto;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 160px;
height: 160px;
}
Loading

0 comments on commit 007cd81

Please sign in to comment.