From b14d7c47beca5ffa34d2b683c6e62aa4013cadaf Mon Sep 17 00:00:00 2001 From: Petr Balashov Date: Thu, 11 May 2017 17:49:00 +0200 Subject: [PATCH] cleanup #1 --- react/src/components/addcoin/addcoin.js | 57 ++- react/src/components/dashboard/about.js | 2 +- react/src/components/dashboard/appSettings.js | 39 -- react/src/components/dashboard/atomic.js | 174 ++++++-- react/src/components/dashboard/settings.js | 10 +- .../dashboard/walletsNativeTxHistory.js | 24 +- .../dashboard/walletsNativeTxInfo.js | 29 +- react/src/components/dashboard/walletsNav.js | 12 +- .../dashboard/walletsNotariesList.js | 12 +- .../components/dashboard/walletsProgress.js | 35 +- .../src/components/dashboard/walletsTxInfo.js | 14 +- react/src/components/login/login.js | 23 +- react/src/config.js | 1 + react/src/index.js | 8 +- react/src/reducers/interval.js | 4 +- react/src/reducers/main.js | 6 +- react/src/reducers/syncOnly.js | 5 +- react/src/translate/en.js | 27 +- react/src/translate/translate.js | 10 +- react/src/util/crypto/md5.js | 408 +++++++++--------- react/src/util/edex.js | 30 -- 21 files changed, 538 insertions(+), 392 deletions(-) delete mode 100644 react/src/components/dashboard/appSettings.js delete mode 100644 react/src/util/edex.js diff --git a/react/src/components/addcoin/addcoin.js b/react/src/components/addcoin/addcoin.js index a8b4077..1761764 100644 --- a/react/src/components/addcoin/addcoin.js +++ b/react/src/components/addcoin/addcoin.js @@ -48,7 +48,6 @@ class AddCoin extends React.Component { saveCoinSelection() { shepherdPostCoinList(this.state.coins) .then(function(json) { - console.log(json); this.toggleActionsMenu(); }.bind(this)); } @@ -56,7 +55,6 @@ class AddCoin extends React.Component { loadCoinSelection() { shepherdGetCoinList() .then(function(json) { - console.log(json); this.setState(Object.assign({}, this.state, { coins: json.result, actionsMenu: false, @@ -156,7 +154,11 @@ class AddCoin extends React.Component { } activateCoin() { - Store.dispatch(addCoin(this.state.coins[0].selectedCoin.split('|')[0], this.state.coins[0].mode, this.state.coins[0].syncOnly)); + Store.dispatch(addCoin( + this.state.coins[0].selectedCoin.split('|')[0], + this.state.coins[0].mode, + this.state.coins[0].syncOnly + )); } dismiss() { @@ -182,13 +184,21 @@ class AddCoin extends React.Component { } activateAllCoins() { - Store.dispatch(addCoin(this.state.coins[0].selectedCoin.split('|')[0], this.state.coins[0].mode, this.state.coins[0].syncOnly)); + Store.dispatch(addCoin( + this.state.coins[0].selectedCoin.split('|')[0], + this.state.coins[0].mode, + this.state.coins[0].syncOnly + )); for (let i = 1; i < this.state.coins.length; i++) { const _item = this.state.coins[i]; setTimeout(function() { - Store.dispatch(addCoin(_item.selectedCoin.split('|')[0], _item.mode, _item.syncOnly)); + Store.dispatch(addCoin( + _item.selectedCoin.split('|')[0], + _item.mode, + _item.syncOnly + )); }, 2000 * i); } } @@ -204,7 +214,12 @@ class AddCoin extends React.Component {
1 ? 'multi' : 'single'} key={'add-coin-' + i}>
- this.updateSelectedCoin(event, i)}> @@ -213,7 +228,12 @@ class AddCoin extends React.Component {
1 ? 'hide' : 'col-sm-4'}> - +
@@ -253,7 +273,7 @@ class AddCoin extends React.Component {
- +
); @@ -265,7 +285,13 @@ class AddCoin extends React.Component { render() { return (
-