Merge branch 'keshan-master' of https://github.com/KeshShan/transform-www into KeshShan-keshan-master

This commit is contained in:
ritz078 committed 2018-07-11 18:54:11 +05:30
commit ae84558d27
4 files changed
+21 -2

No files matched your search

+9
View File
@@ -154,6 +154,15 @@
"contributions": [
"code"
]
},
{
"login": "KeshShan",
"name": "Keshan Nageswaran",
"avatar_url": "https://avatars3.githubusercontent.com/u/12506034?v=4",
"profile": "http://keshShan.github.io",
"contributions": [
"code"
]
}
],
"repoType": "github"
+2 -1
View File
@@ -137,7 +137,8 @@ export default class ConversionPanel extends PureComponent {
clearText = () => {
this.setState({
value: ""
value: "",
resultValue: ""
});
};
+9
View File
@@ -81,14 +81,23 @@ export default class Layout extends PureComponent {
this.setKey(this.props.pathname);
}
componentWillUnmount() {
window.removeEventListener("beforeunload", this.alertExistHandler);
}
componentDidMount() {
Layout.loadCarbonAds();
window.addEventListener("beforeunload", this.alertExistHandler);
}
componentWillReceiveProps({ pathname }) {
this.setKey(pathname);
}
alertExistHandler(event) {
event.preventDefault();
return (event.returnValue = "Are you sure you want to close?"); // currently newer version of chrome and other browsers deosn't support customized string so returning a string or empty string won't be of much impact
}
static loadCarbonAds() {
// const script = document.createElement("script");
//
+1 -1
View File
@@ -28,7 +28,7 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds
| [<img src="https://avatars3.githubusercontent.com/u/5389035?v=4" width="100px;"/><br /><sub><b>Ritesh Kumar</b></sub>](http://riteshkr.com)<br />[📖](https://github.com/ritz078/transform-www/commits?author=ritz078 "Documentation") [💻](https://github.com/ritz078/transform-www/commits?author=ritz078 "Code") [🤔](#ideas-ritz078 "Ideas, Planning, & Feedback") [👀](#review-ritz078 "Reviewed Pull Requests") | [<img src="https://avatars2.githubusercontent.com/u/47542?v=4" width="100px;"/><br /><sub><b>Florian Gilcher</b></sub>](http://asquera.de)<br />[💻](https://github.com/ritz078/transform-www/commits?author=skade "Code") | [<img src="https://avatars1.githubusercontent.com/u/20063?v=4" width="100px;"/><br /><sub><b>Pascal Hertleif</b></sub>](http://pascalhertleif.de/)<br />[💻](https://github.com/ritz078/transform-www/commits?author=killercup "Code") | [<img src="https://avatars3.githubusercontent.com/u/534610?v=4" width="100px;"/><br /><sub><b>Lado Lomidze</b></sub>](http://landish.github.io)<br />[💻](https://github.com/ritz078/transform-www/commits?author=Landish "Code") | [<img src="https://avatars1.githubusercontent.com/u/13787614?v=4" width="100px;"/><br /><sub><b>Mattia Manzati</b></sub>](https://github.com/mattiamanzati)<br />[💻](https://github.com/ritz078/transform-www/commits?author=mattiamanzati "Code") | [<img src="https://avatars3.githubusercontent.com/u/12202757?v=4" width="100px;"/><br /><sub><b>Mohammad Rajabifard</b></sub>](https://tarino.ir)<br />[🤔](#ideas-morajabi "Ideas, Planning, & Feedback") [💻](https://github.com/ritz078/transform-www/commits?author=morajabi "Code") | [<img src="https://avatars0.githubusercontent.com/u/3108160?v=4" width="100px;"/><br /><sub><b>Raathigeshan Kugarajan</b></sub>](http://raathigesh.com/)<br />[💻](https://github.com/ritz078/transform-www/commits?author=Raathigesh "Code") |
| :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| [<img src="https://avatars2.githubusercontent.com/u/5554486?v=4" width="100px;"/><br /><sub><b>Gyandeep Singh</b></sub>](https://gyandeeps.com)<br />[💻](https://github.com/ritz078/transform-www/commits?author=gyandeeps "Code") | [<img src="https://avatars2.githubusercontent.com/u/1128849?v=4" width="100px;"/><br /><sub><b>Matt Holt</b></sub>](https://matt.life)<br />[💻](https://github.com/ritz078/transform-www/commits?author=mholt "Code") | [<img src="https://avatars0.githubusercontent.com/u/2767425?v=4" width="100px;"/><br /><sub><b>sreenivas alapati</b></sub>](https://medium.com/@sreenivas)<br />[💻](https://github.com/ritz078/transform-www/commits?author=cg-cnu "Code") | [<img src="https://avatars2.githubusercontent.com/u/1761758?v=4" width="100px;"/><br /><sub><b>Boris Cherny</b></sub>](https://performancejs.com)<br />[💻](https://github.com/ritz078/transform-www/commits?author=bcherny "Code") | [<img src="https://avatars0.githubusercontent.com/u/448?v=4" width="100px;"/><br /><sub><b>Mark Lussier</b></sub>](http://www.twitter.com/intabulas)<br />[💻](https://github.com/ritz078/transform-www/commits?author=intabulas "Code") | [<img src="https://avatars3.githubusercontent.com/u/383212?v=4" width="100px;"/><br /><sub><b>Brice BERNARD</b></sub>](https://github.com/brikou)<br />[💻](https://github.com/ritz078/transform-www/commits?author=brikou "Code") | [<img src="https://avatars2.githubusercontent.com/u/1174278?v=4" width="100px;"/><br /><sub><b>Satyajit Sahoo</b></sub>](https://twitter.com/@satya164)<br />[💻](https://github.com/ritz078/transform-www/commits?author=satya164 "Code") |
| [<img src="https://avatars3.githubusercontent.com/u/1643522?v=4" width="100px;"/><br /><sub><b>Shane Osbourne</b></sub>](https://medium.com/@shakyShane)<br />[💻](https://github.com/ritz078/transform-www/commits?author=shakyShane "Code") | [<img src="https://avatars0.githubusercontent.com/u/9524411?v=4" width="100px;"/><br /><sub><b>Rongjian Zhang</b></sub>](https://github.com/pd4d10)<br />[💻](https://github.com/ritz078/transform-www/commits?author=pd4d10 "Code") |
| [<img src="https://avatars3.githubusercontent.com/u/1643522?v=4" width="100px;"/><br /><sub><b>Shane Osbourne</b></sub>](https://medium.com/@shakyShane)<br />[💻](https://github.com/ritz078/transform-www/commits?author=shakyShane "Code") | [<img src="https://avatars0.githubusercontent.com/u/9524411?v=4" width="100px;"/><br /><sub><b>Rongjian Zhang</b></sub>](https://github.com/pd4d10)<br />[💻](https://github.com/ritz078/transform-www/commits?author=pd4d10 "Code") | [<img src="https://avatars3.githubusercontent.com/u/12506034?v=4" width="100px;"/><br /><sub><b>Keshan Nageswaran</b></sub>](http://keshShan.github.io)<br />[💻](https://github.com/ritz078/transform-www/commits?author=KeshShan "Code") |
<!-- ALL-CONTRIBUTORS-LIST:END -->
This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!