This repository has been archived by the owner on Apr 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 199
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
93 changed files
with
9,260 additions
and
4,824 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,5 +19,12 @@ | |
} | ||
} | ||
] | ||
] | ||
], | ||
"env": { | ||
"test": { | ||
"plugins": ["rewire"], | ||
"sourceMaps": "both", | ||
"ignore": ["node_modules"] | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -25,6 +25,7 @@ bower_components | |
# Build files | ||
build | ||
__coverage__ | ||
.nyc_output | ||
|
||
.elasticbeanstalk/ | ||
|
||
|
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,23 @@ | ||
{ | ||
"require": [ | ||
"babel-register" | ||
], | ||
"coverageVariable": "__MY_TEST_COVERAGE__", | ||
"exclude": [ | ||
"node_modules", | ||
"test", | ||
"build", | ||
"gulp", | ||
"testHelpers" | ||
], | ||
"extension": [ | ||
".js", | ||
".jsx" | ||
], | ||
"reporter": [ | ||
"text-summary", | ||
"html" | ||
], | ||
"report-dir": "__coverage__/", | ||
"produce-source-map": true | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import React, { PureComponent } from 'react' | ||
import { withRouter } from 'react-router' | ||
|
||
class ClearAuthPage extends PureComponent { | ||
clearData = () => { | ||
localStorage.clear() | ||
window.location = `${this.props.location.query.redirect_uri}://?authCleared=1` | ||
} | ||
|
||
cancel = () => { | ||
window.location = `${this.props.location.query.redirect_uri}://?authCleared=0` | ||
} | ||
|
||
render() { | ||
return ( | ||
<div className="container-fluid"> | ||
<h3 className="p-t-20">Sign Out</h3> | ||
<p> | ||
<i> | ||
Erase your keychain and settings so you can create a new one or restore another keychain. | ||
</i> | ||
</p> | ||
<div className="m-t-40"> | ||
<button className="btn btn-danger btn-block" onClick={this.clearData}> | ||
Confirm | ||
</button> | ||
</div> | ||
<div className="m-t-10"> | ||
<button className="btn btn-tertiary btn-block" onClick={this.cancel}> | ||
Cancel | ||
</button> | ||
</div> | ||
</div> | ||
) | ||
} | ||
} | ||
|
||
export default withRouter(ClearAuthPage) |
Oops, something went wrong.