This repository has been archived by the owner on Aug 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
139 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
web/static/js/lib/LogoutLink.js → web/static/js/shared/LogoutLink.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// file: shared/LoadingOverlay.js | ||
import React from 'react'; | ||
import mdlUpgrade from 'lib/mdlUpgrade'; | ||
import material from 'material-design-lite/material.css'; | ||
import classNames from 'classnames/bind'; | ||
import styles from './styles.css'; | ||
|
||
const cx = classNames.bind(styles); | ||
|
||
class Loading extends React.Component { | ||
static propTypes = { | ||
overlay: React.PropTypes.bool | ||
} | ||
static defaultProps = { | ||
overlay: true | ||
} | ||
|
||
render(){ | ||
const className = cx( | ||
'mdl-spinner', | ||
'mdl-js-spinner', | ||
"is-active" | ||
); | ||
return ( | ||
this.props.overlay ? | ||
<div styleName="overlay"> | ||
<div className={className}></div> | ||
</div> | ||
: <div className={className}></div> | ||
) | ||
} | ||
} | ||
|
||
export default mdlUpgrade(Loading, Object.assign({}, material, styles)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
.overlay { | ||
background-color: rgba(255, 255, 255, 0.7); | ||
width: 100%; | ||
height: 80%; | ||
position: absolute; | ||
z-index: 10; | ||
display: flex; | ||
justify-content: center; | ||
} | ||
|
||
.overlay div { | ||
align-self: center; | ||
} |