Browse Source

Merge branch 'redux' into feature/prop-refactor

# Conflicts:
#	react/src/components/dashboard/walletsNav/walletsNav.render.js
all-modes
Miika Turunen 8 years ago
parent
commit
b25295e389
  1. 0
      react/src/assets/images/cryptologo/aud.png
  2. 0
      react/src/assets/images/cryptologo/bet.png
  3. 0
      react/src/assets/images/cryptologo/bgn.png
  4. 0
      react/src/assets/images/cryptologo/bots.png
  5. 0
      react/src/assets/images/cryptologo/brl.png
  6. 0
      react/src/assets/images/cryptologo/cad.png
  7. 0
      react/src/assets/images/cryptologo/ceal.png
  8. 0
      react/src/assets/images/cryptologo/chf.png
  9. 0
      react/src/assets/images/cryptologo/cny.png
  10. BIN
      react/src/assets/images/cryptologo/coqui.png
  11. 0
      react/src/assets/images/cryptologo/crypto.png
  12. 0
      react/src/assets/images/cryptologo/czk.png
  13. 0
      react/src/assets/images/cryptologo/dkk.png
  14. 0
      react/src/assets/images/cryptologo/eur.png
  15. 0
      react/src/assets/images/cryptologo/game.png
  16. 0
      react/src/assets/images/cryptologo/gbp.png
  17. 0
      react/src/assets/images/cryptologo/hkd.png
  18. 0
      react/src/assets/images/cryptologo/hodl.png
  19. 0
      react/src/assets/images/cryptologo/hrk.png
  20. 0
      react/src/assets/images/cryptologo/huf.png
  21. 0
      react/src/assets/images/cryptologo/idr.png
  22. 0
      react/src/assets/images/cryptologo/ils.png
  23. 0
      react/src/assets/images/cryptologo/inr.png
  24. 0
      react/src/assets/images/cryptologo/jpy.png
  25. 0
      react/src/assets/images/cryptologo/jumblr.png
  26. 0
      react/src/assets/images/cryptologo/kmd.png
  27. 0
      react/src/assets/images/cryptologo/krw.png
  28. 0
      react/src/assets/images/cryptologo/kv.png
  29. 0
      react/src/assets/images/cryptologo/mesh.png
  30. 0
      react/src/assets/images/cryptologo/mgw.png
  31. 0
      react/src/assets/images/cryptologo/mvp.png
  32. 0
      react/src/assets/images/cryptologo/mxn.png
  33. 0
      react/src/assets/images/cryptologo/myr.png
  34. 0
      react/src/assets/images/cryptologo/nok.png
  35. 0
      react/src/assets/images/cryptologo/nzd.png
  36. 0
      react/src/assets/images/cryptologo/pangea.png
  37. 0
      react/src/assets/images/cryptologo/php.png
  38. 0
      react/src/assets/images/cryptologo/pln.png
  39. 0
      react/src/assets/images/cryptologo/revs.png
  40. 0
      react/src/assets/images/cryptologo/ron.png
  41. 0
      react/src/assets/images/cryptologo/rub.png
  42. 0
      react/src/assets/images/cryptologo/sek.png
  43. 0
      react/src/assets/images/cryptologo/sgd.png
  44. 0
      react/src/assets/images/cryptologo/shark.png
  45. 0
      react/src/assets/images/cryptologo/supernet.png
  46. 0
      react/src/assets/images/cryptologo/thb.png
  47. 0
      react/src/assets/images/cryptologo/try.png
  48. 0
      react/src/assets/images/cryptologo/wlc.png
  49. 0
      react/src/assets/images/cryptologo/zar.png
  50. 1
      react/src/components/addcoin/addcoinOptionsAC.js
  51. 31
      react/src/components/addcoin/payload.js
  52. 2
      react/src/components/dashboard/coinTile/coinTileItem.render.js
  53. 25
      react/src/components/dashboard/walletsNative/walletsNative.js
  54. 10
      react/src/components/dashboard/walletsNative/walletsNative.render.js
  55. 6
      react/src/components/dashboard/walletsNav/walletsNav.render.js
  56. 54
      react/src/components/overrides.scss
  57. 91
      react/src/util/coinHelper.js

0
react/src/assets/images/cryptologo/AUD.png → react/src/assets/images/cryptologo/aud.png

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

0
react/src/assets/images/cryptologo/BET.png → react/src/assets/images/cryptologo/bet.png

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

0
react/src/assets/images/cryptologo/BGN.png → react/src/assets/images/cryptologo/bgn.png

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

0
react/src/assets/images/cryptologo/BOTS.png → react/src/assets/images/cryptologo/bots.png

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

0
react/src/assets/images/cryptologo/BRL.png → react/src/assets/images/cryptologo/brl.png

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

0
react/src/assets/images/cryptologo/CAD.png → react/src/assets/images/cryptologo/cad.png

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

0
react/src/assets/images/cryptologo/CEAL.png → react/src/assets/images/cryptologo/ceal.png

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

0
react/src/assets/images/cryptologo/CHF.png → react/src/assets/images/cryptologo/chf.png

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

0
react/src/assets/images/cryptologo/CNY.png → react/src/assets/images/cryptologo/cny.png

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

BIN
react/src/assets/images/cryptologo/coqui.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

0
react/src/assets/images/cryptologo/CRYPTO.png → react/src/assets/images/cryptologo/crypto.png

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

0
react/src/assets/images/cryptologo/CZK.png → react/src/assets/images/cryptologo/czk.png

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

0
react/src/assets/images/cryptologo/DKK.png → react/src/assets/images/cryptologo/dkk.png

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

0
react/src/assets/images/cryptologo/EUR.png → react/src/assets/images/cryptologo/eur.png

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

0
react/src/assets/images/cryptologo/GAME.png → react/src/assets/images/cryptologo/game.png

Before

Width:  |  Height:  |  Size: 8.5 KiB

After

Width:  |  Height:  |  Size: 8.5 KiB

0
react/src/assets/images/cryptologo/GBP.png → react/src/assets/images/cryptologo/gbp.png

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

0
react/src/assets/images/cryptologo/HKD.png → react/src/assets/images/cryptologo/hkd.png

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 8.9 KiB

0
react/src/assets/images/cryptologo/HODL.png → react/src/assets/images/cryptologo/hodl.png

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

0
react/src/assets/images/cryptologo/HRK.png → react/src/assets/images/cryptologo/hrk.png

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

0
react/src/assets/images/cryptologo/HUF.png → react/src/assets/images/cryptologo/huf.png

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

0
react/src/assets/images/cryptologo/IDR.png → react/src/assets/images/cryptologo/idr.png

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

0
react/src/assets/images/cryptologo/ILS.png → react/src/assets/images/cryptologo/ils.png

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

0
react/src/assets/images/cryptologo/INR.png → react/src/assets/images/cryptologo/inr.png

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

0
react/src/assets/images/cryptologo/JPY.png → react/src/assets/images/cryptologo/jpy.png

Before

Width:  |  Height:  |  Size: 9.0 KiB

After

Width:  |  Height:  |  Size: 9.0 KiB

0
react/src/assets/images/cryptologo/JUMBLR.png → react/src/assets/images/cryptologo/jumblr.png

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

0
react/src/assets/images/cryptologo/komodo.png → react/src/assets/images/cryptologo/kmd.png

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

0
react/src/assets/images/cryptologo/KRW.png → react/src/assets/images/cryptologo/krw.png

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

0
react/src/assets/images/cryptologo/KV.png → react/src/assets/images/cryptologo/kv.png

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

0
react/src/assets/images/cryptologo/MESH.png → react/src/assets/images/cryptologo/mesh.png

Before

Width:  |  Height:  |  Size: 8.5 KiB

After

Width:  |  Height:  |  Size: 8.5 KiB

0
react/src/assets/images/cryptologo/MGW.png → react/src/assets/images/cryptologo/mgw.png

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

0
react/src/assets/images/cryptologo/MVP.png → react/src/assets/images/cryptologo/mvp.png

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

0
react/src/assets/images/cryptologo/MXN.png → react/src/assets/images/cryptologo/mxn.png

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

0
react/src/assets/images/cryptologo/MYR.png → react/src/assets/images/cryptologo/myr.png

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

0
react/src/assets/images/cryptologo/NOK.png → react/src/assets/images/cryptologo/nok.png

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

0
react/src/assets/images/cryptologo/NZD.png → react/src/assets/images/cryptologo/nzd.png

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

0
react/src/assets/images/cryptologo/PANGEA.png → react/src/assets/images/cryptologo/pangea.png

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

0
react/src/assets/images/cryptologo/PHP.png → react/src/assets/images/cryptologo/php.png

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

0
react/src/assets/images/cryptologo/PLN.png → react/src/assets/images/cryptologo/pln.png

Before

Width:  |  Height:  |  Size: 9.9 KiB

After

Width:  |  Height:  |  Size: 9.9 KiB

0
react/src/assets/images/cryptologo/REVS.png → react/src/assets/images/cryptologo/revs.png

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

0
react/src/assets/images/cryptologo/RON.png → react/src/assets/images/cryptologo/ron.png

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

0
react/src/assets/images/cryptologo/RUB.png → react/src/assets/images/cryptologo/rub.png

Before

Width:  |  Height:  |  Size: 7.8 KiB

After

Width:  |  Height:  |  Size: 7.8 KiB

0
react/src/assets/images/cryptologo/SEK.png → react/src/assets/images/cryptologo/sek.png

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

0
react/src/assets/images/cryptologo/SGD.png → react/src/assets/images/cryptologo/sgd.png

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

0
react/src/assets/images/cryptologo/SHARK.png → react/src/assets/images/cryptologo/shark.png

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

0
react/src/assets/images/cryptologo/SUPERNET.png → react/src/assets/images/cryptologo/supernet.png

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

0
react/src/assets/images/cryptologo/THB.png → react/src/assets/images/cryptologo/thb.png

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

0
react/src/assets/images/cryptologo/TRY.png → react/src/assets/images/cryptologo/try.png

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

0
react/src/assets/images/cryptologo/WLC.png → react/src/assets/images/cryptologo/wlc.png

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

0
react/src/assets/images/cryptologo/ZAR.png → react/src/assets/images/cryptologo/zar.png

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

1
react/src/components/addcoin/addcoinOptionsAC.js

@ -8,6 +8,7 @@ class AddCoinOptionsAC extends React.Component {
<option value="BET|basilisk|native">BET (BET)</option> <option value="BET|basilisk|native">BET (BET)</option>
<option value="BOTS|basilisk|native">BOTS (BOTS)</option> <option value="BOTS|basilisk|native">BOTS (BOTS)</option>
<option value="CEAL|basilisk|native">CEAL NET (CEAL)</option> <option value="CEAL|basilisk|native">CEAL NET (CEAL)</option>
<option value="COQUI|basilisk|native">COQUI (COQUI)</option>
<option value="CRYPTO|basilisk|native">CRYPTO (CRYPTO)</option> <option value="CRYPTO|basilisk|native">CRYPTO (CRYPTO)</option>
<option value="HOD|basilisk|native">HODL (HODL)</option> <option value="HOD|basilisk|native">HODL (HODL)</option>
<option value="DEX|basilisk|native">InstantDEX (DEX)</option> <option value="DEX|basilisk|native">InstantDEX (DEX)</option>

31
react/src/components/addcoin/payload.js

@ -1,4 +1,5 @@
// TODO: merge check functions // TODO: merge check functions
// move to nodejs
export function checkAC(coinVal) { export function checkAC(coinVal) {
if (coinVal === 'SUPERNET' || if (coinVal === 'SUPERNET' ||
@ -9,6 +10,7 @@ export function checkAC(coinVal) {
coinVal === 'JUMBLR' || coinVal === 'JUMBLR' ||
coinVal === 'BET' || coinVal === 'BET' ||
coinVal === 'CRYPTO' || coinVal === 'CRYPTO' ||
coinVal === 'COQUI' ||
coinVal === 'HODL' || coinVal === 'HODL' ||
coinVal === 'SHARK' || coinVal === 'SHARK' ||
coinVal === 'BOTS' || coinVal === 'BOTS' ||
@ -98,6 +100,7 @@ export function checkCoinType(coin) {
coin === 'JUMBLR' || coin === 'JUMBLR' ||
coin === 'BET' || coin === 'BET' ||
coin === 'CRYPTO' || coin === 'CRYPTO' ||
coin === 'COQUI' ||
coin === 'HODL' || coin === 'HODL' ||
coin === 'SHARK' || coin === 'SHARK' ||
coin === 'BOTS' || coin === 'BOTS' ||
@ -131,10 +134,10 @@ export function checkCoinType(coin) {
} }
export function startCrypto(confpath, coin, mode) { export function startCrypto(confpath, coin, mode) {
let tmpinternval = 0, let tmpinternval = 0;
AddCoinData = {}, let AddCoinData = {};
tmpPendValue = 1, // TODO: hook up to shepherd sysinfo let tmpPendValue = 1; // TODO: hook up to shepherd sysinfo
tmpIguanaRPCAuth = `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`; let tmpIguanaRPCAuth = `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`;
if (coin !== 'BTC' && if (coin !== 'BTC' &&
coin !== 'LTC' && coin !== 'LTC' &&
@ -176,9 +179,9 @@ export function startCrypto(confpath, coin, mode) {
} }
export function startCurrencyAssetChain(confpath, coin, mode) { export function startCurrencyAssetChain(confpath, coin, mode) {
let AddCoinDataPayload = {}, let AddCoinDataPayload = {};
tmpPendValue = 1, let tmpPendValue = 1;
tmpIguanaRPCAuth = `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`; let tmpIguanaRPCAuth = `tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}`;
if (coin !== 'BTC' && if (coin !== 'BTC' &&
coin !== 'LTC' && coin !== 'LTC' &&
@ -702,7 +705,7 @@ export function startAssetChain(confpath, coin, mode, getSuppyOnly) {
}, },
'DEX': { 'DEX': {
'name': 'DEX', 'name': 'DEX',
'supply': 1300000, 'supply': 999999,
'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {"coin":"DEX","conf":"DEX.conf","path":confpath,"RELAY":-1,"VALIDATE":1,"startpend":4,"endpend":4,"maxpeers":8,"newcoin":"DEX","name":"DEX","netmagic":"f2ae0516","p2p":9502,"rpc":9503}) : {}, 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {"coin":"DEX","conf":"DEX.conf","path":confpath,"RELAY":-1,"VALIDATE":1,"startpend":4,"endpend":4,"maxpeers":8,"newcoin":"DEX","name":"DEX","netmagic":"f2ae0516","p2p":9502,"rpc":9503}) : {},
'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"maxpeers":8,"newcoin":"DEX","name":"DEX","netmagic":"f2ae0516","p2p":9502,"rpc":9503}) 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"maxpeers":8,"newcoin":"DEX","name":"DEX","netmagic":"f2ae0516","p2p":9502,"rpc":9503})
}, },
@ -726,7 +729,7 @@ export function startAssetChain(confpath, coin, mode, getSuppyOnly) {
}, },
'HODL': { 'HODL': {
'name': 'HODL', 'name': 'HODL',
'supply': 999999, 'supply': 9999999,
'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {"coin":"HODL","conf":"HODL.conf","path":confpath,"RELAY":-1,"VALIDATE":1,"startpend":4,"endpend":4,"maxpeers":8,"newcoin":"HODL","name":"HODL","netmagic":"9b13fb5f","p2p":8009,"rpc":8010}) : {}, 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {"coin":"HODL","conf":"HODL.conf","path":confpath,"RELAY":-1,"VALIDATE":1,"startpend":4,"endpend":4,"maxpeers":8,"newcoin":"HODL","name":"HODL","netmagic":"9b13fb5f","p2p":8009,"rpc":8010}) : {},
'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"maxpeers":8,"newcoin":"HODL","name":"HODL","netmagic":"9b13fb5f","p2p":8009,"rpc":8010}) 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"maxpeers":8,"newcoin":"HODL","name":"HODL","netmagic":"9b13fb5f","p2p":8009,"rpc":8010})
}, },
@ -756,7 +759,7 @@ export function startAssetChain(confpath, coin, mode, getSuppyOnly) {
}, },
'KV': { 'KV': {
'name': 'KV', 'name': 'KV',
'supply': 999999, 'supply': 1000000,
'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {"coin":"KV","conf":"KV.conf","path":confpath,"RELAY":-1,"VALIDATE":1,"startpend":4,"endpend":4,"maxpeers":8,"newcoin":"KV","name":"KV","netmagic":"b09a2d65","p2p":9746,"rpc":9747}) : {}, 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {"coin":"KV","conf":"KV.conf","path":confpath,"RELAY":-1,"VALIDATE":1,"startpend":4,"endpend":4,"maxpeers":8,"newcoin":"KV","name":"KV","netmagic":"b09a2d65","p2p":9746,"rpc":9747}) : {},
'AddCoinDataVar': Object.assign(_acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"maxpeers":8,"newcoin":"KV","name":"KV","netmagic":"b09a2d65","p2p":9746,"rpc":9747}) 'AddCoinDataVar': Object.assign(_acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"maxpeers":8,"newcoin":"KV","name":"KV","netmagic":"b09a2d65","p2p":9746,"rpc":9747})
}, },
@ -768,9 +771,15 @@ export function startAssetChain(confpath, coin, mode, getSuppyOnly) {
}, },
'MESH': { 'MESH': {
'name': 'MESH', 'name': 'MESH',
'supply': 1000000, 'supply': 1000007,
'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {"coin":"MESH","conf":"MESH.conf","path":confpath,"RELAY":-1,"VALIDATE":1,"startpend":4,"endpend":4,"maxpeers":8,"newcoin":"MESH","name":"MESH","netmagic":"f0265c67","p2p":8399,"rpc":8400}) : {}, 'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {"coin":"MESH","conf":"MESH.conf","path":confpath,"RELAY":-1,"VALIDATE":1,"startpend":4,"endpend":4,"maxpeers":8,"newcoin":"MESH","name":"MESH","netmagic":"f0265c67","p2p":8399,"rpc":8400}) : {},
'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"maxpeers":8,"newcoin":"MESH","name":"MESH","netmagic":"f0265c67","p2p":8399,"rpc":8400}) 'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"maxpeers":8,"newcoin":"MESH","name":"MESH","netmagic":"f0265c67","p2p":8399,"rpc":8400})
},
'COQUI': {
'name': 'COQUI',
'supply': 72000000,
'AddCoinData': confpath ? Object.assign({}, _acPayloadOrigin, {"coin":"COQUI","conf":"COQUI.conf","path":confpath,"RELAY":-1,"VALIDATE":1,"startpend":4,"endpend":4,"maxpeers":8,"newcoin":"COQUI","name":"COQUI","netmagic":"4cbd5ef4","p2p":14275,"rpc":14276}) : {},
'AddCoinDataVar': Object.assign({}, _acPayloadOrigin, {'userpass':tmpIguanaRPCAuth,"RELAY":mode,"VALIDATE":mode,"startpend":tmpPendValue,"endpend":tmpPendValue,"maxpeers":8,"newcoin":"COQUI","name":"COQUI","netmagic":"4cbd5ef4","p2p":14275,"rpc":14276})
} }
}; };

2
react/src/components/dashboard/coinTile/coinTileItem.render.js

@ -12,7 +12,7 @@ const CoinTileItemRender = function() {
<a className="avatar margin-bottom-5"> <a className="avatar margin-bottom-5">
<img <img
className="img-responsive" className="img-responsive"
src={ `assets/images/cryptologo/${item.coinlogo}.png` } src={ `assets/images/cryptologo/${item.coinlogo.toLowerCase()}.png` }
alt={ item.coinname }/> alt={ item.coinname }/>
<span className={ `badge up badge-${item.modecolor}` }> <span className={ `badge up badge-${item.modecolor}` }>
{ item.modecode } { item.modecode }

25
react/src/components/dashboard/walletsNative/walletsNative.js

@ -2,6 +2,7 @@ import React from 'react';
import WalletsNativeRender from './walletsNative.render'; import WalletsNativeRender from './walletsNative.render';
import { translate } from '../../../translate/translate'; import { translate } from '../../../translate/translate';
import { triggerToaster } from '../../../actions/actionCreators'; import { triggerToaster } from '../../../actions/actionCreators';
import { getCoinTitle } from '../../../util/coinHelper';
import Config from '../../../config'; import Config from '../../../config';
import Store from '../../../store'; import Store from '../../../store';
@ -13,6 +14,10 @@ const socket = io.connect(`http://127.0.0.1:${Config.agamaPort}`);
class WalletsNative extends React.Component { class WalletsNative extends React.Component {
constructor(props) { constructor(props) {
super(props); super(props);
this.state = {
nativeOnly: Config.iguanaLessMode,
};
this.getCoinStyle = this.getCoinStyle.bind(this);
socket.on('service', msg => this.updateSocketsData(msg)); socket.on('service', msg => this.updateSocketsData(msg));
} }
@ -35,11 +40,21 @@ class WalletsNative extends React.Component {
} }
} }
defaultBG() { getCoinStyle(type) {
if (this.props.ActiveCoin.coin === 'REVS') { if (type === 'transparent') {
return 'supernet'; if (getCoinTitle(this.props.ActiveCoin.coin).transparentBG && getCoinTitle().logo) {
} else { return { 'backgroundImage': `url("assets/images/bg/${getCoinTitle().logo.toLowerCase()}_transparent_header_bg.png")` };
return this.props.ActiveCoin.coin.toLowerCase(); }
} else if (type === 'title') {
let _iconPath;
if (getCoinTitle(this.props.ActiveCoin.coin).titleBG) {
_iconPath = `assets/images/native/${getCoinTitle(this.props.ActiveCoin.coin).logo.toLowerCase()}_header_title_logo.png`;
} else if (!getCoinTitle(this.props.ActiveCoin.coin).titleBG && getCoinTitle(this.props.ActiveCoin.coin).logo) {
_iconPath = `assets/images/cryptologo/${getCoinTitle(this.props.ActiveCoin.coin).logo.toLowerCase()}.png`;
}
return _iconPath;
} }
} }

10
react/src/components/dashboard/walletsNative/walletsNative.render.js

@ -13,12 +13,14 @@ const WalletsNativeRender = function() {
<div <div
id="easydex-header-div" id="easydex-header-div"
className="background-color-white" className="background-color-white"
style={{ 'backgroundImage': `url("assets/images/bg/${this.defaultBG()}_transparent_header_bg.png")` }}> style={ this.getCoinStyle('transparent') }>
<ol className="breadcrumb"> <ol className={ (!this.state.nativeOnly ? 'breadcrumb breadcrumb--normal' : 'breadcrumb') + (this.props.ActiveCoin.coin === 'KMD' || this.props.ActiveCoin.coin === 'JUMBLR' || this.props.ActiveCoin.coin === 'MESH' || this.props.ActiveCoin.coin === 'MVP' ? ' coin-logo-wide' : '') + (this.state.nativeOnly ? ' native-coin-logo' : '') }>
<li className="header-easydex-section"> <li className="header-easydex-section">
<img src={ `assets/images/native/${this.defaultBG()}_header_title_logo.png` } /> { this.getCoinStyle('title') &&
<img src={ this.getCoinStyle('title') } />
}
<span <span
className={ `easydex-section-image ${(this.props.ActiveCoin.coin === 'KMD' ? 'hide' : '')}` } className={ `easydex-section-image ${(this.props.ActiveCoin.coin === 'KMD' || this.props.ActiveCoin.coin === 'JUMBLR' || this.props.ActiveCoin.coin === 'MESH' || this.props.ActiveCoin.coin === 'MVP' ? 'hide' : '')}` }
style={{ marginLeft: '20px' }}> style={{ marginLeft: '20px' }}>
{ this.props.ActiveCoin.coin } { this.props.ActiveCoin.coin }
</span> </span>

6
react/src/components/dashboard/walletsNav/walletsNav.render.js

@ -24,10 +24,10 @@ export const WalletsNavWithWalletRender = function() {
return ( return (
<div> <div>
<div <div
className={ 'page-header page-header-bordered header-easydex padding-bottom-' + (this.props.nativeOnly ? '40' : '20') } className={ 'page-header page-header-bordered header-easydex padding-bottom-' + (this.state.nativeOnly ? '40 page-header--native' : '20') }
id="header-dashboard" id="header-dashboard"
style={{ marginBottom: this.props.ActiveCoin.mode === 'basilisk' ? '30px' : '0' }}> style={{ marginBottom: this.props.ActiveCoin.mode === 'basilisk' ? '30px' : (this.state.nativeOnly ? '30' : '0') }}>
<ol className={ this.props.nativeOnly ? 'hide' : 'breadcrumb' }> <ol className={ this.state.nativeOnly ? 'hide' : 'breadcrumb' }>
<strong>{ translate('INDEX.MY') } { this.props && this.props.ActiveCoin ? this.props.ActiveCoin.coin : '-' } { translate('INDEX.ADDRESS') }: </strong> <strong>{ translate('INDEX.MY') } { this.props && this.props.ActiveCoin ? this.props.ActiveCoin.coin : '-' } { translate('INDEX.ADDRESS') }: </strong>
{ this.props.activeHandle ? this.props.activeHandle[this.props.ActiveCoin.coin] : '-' } { this.props.activeHandle ? this.props.activeHandle[this.props.ActiveCoin.coin] : '-' }
<button <button

54
react/src/components/overrides.scss

@ -684,4 +684,58 @@ select{
} }
} }
} }
}
.breadcrumb {
padding: 8px 30px 0;
position: relative;
top: -10px;
}
.header-easydex-section {
img {
max-width: 60px;
}
}
.coin-logo-wide {
padding: 8px 30px 0;
position: relative;
top: 0;
.header-easydex-section {
img {
width: inherit;
max-width: inherit;
position: relative;
top: -5px;
}
}
}
.native-coin-logo {
float: left;
position: absolute;
top: -105px;
z-index: 100;
.header-easydex-section {
img {
width: 60px;
}
}
}
.coin-logo-wide {
&.native-coin-logo {
top: -93px;
.header-easydex-section img {
width: inherit;
}
}
}
.page-header--native {
height: 75px;
} }

91
react/src/util/coinHelper.js

@ -1,6 +1,9 @@
export function getCoinTitle(coin) { export function getCoinTitle(coin) {
let coinlogo, let coinlogo;
coinname; let coinname;
let transparentBG = false;
let titleBG = false;
let hideTitle = false;
switch (coin) { switch (coin) {
case 'BTC': case 'BTC':
@ -56,7 +59,10 @@ export function getCoinTitle(coin) {
coinname = 'Zetacoin'; coinname = 'Zetacoin';
break; break;
case 'KMD': case 'KMD':
coinlogo = 'komodo'; hideTitle = true;
titleBG = true;
transparentBG = true;
coinlogo = 'kmd';
coinname = 'Komodo'; coinname = 'Komodo';
break; break;
case 'BTM': case 'BTM':
@ -80,6 +86,7 @@ export function getCoinTitle(coin) {
coinname = 'GameCredits'; coinname = 'GameCredits';
break; break;
case 'SUPERNET': case 'SUPERNET':
titleBG = true;
coinlogo = 'SUPERNET'; coinlogo = 'SUPERNET';
coinname = 'SUPERNET'; coinname = 'SUPERNET';
break; break;
@ -88,14 +95,20 @@ export function getCoinTitle(coin) {
coinname = 'REVS'; coinname = 'REVS';
break; break;
case 'WLC': case 'WLC':
titleBG = true;
transparentBG = true;
coinlogo = 'WLC'; coinlogo = 'WLC';
coinname = 'WIRELESS'; coinname = 'WIRELESS';
break; break;
case 'PANGEA': case 'PANGEA':
titleBG = true;
coinlogo = 'PANGEA'; coinlogo = 'PANGEA';
coinname = 'PANGEA'; coinname = 'PANGEA';
break; break;
case 'JUMBLR': case 'JUMBLR':
titleBG = true;
transparentBG = true;
hideTitle = true;
coinlogo = 'JUMBLR'; coinlogo = 'JUMBLR';
coinname = 'JUMBLR'; coinname = 'JUMBLR';
break; break;
@ -124,6 +137,9 @@ export function getCoinTitle(coin) {
coinname = 'MultiGateway'; coinname = 'MultiGateway';
break; break;
case 'MVP': case 'MVP':
hideTitle = true;
titleBG = true;
transparentBG = true;
coinlogo = 'MVP'; coinlogo = 'MVP';
coinname = 'MVP Lineup'; coinname = 'MVP Lineup';
break; break;
@ -132,138 +148,197 @@ export function getCoinTitle(coin) {
coinname = 'KV'; coinname = 'KV';
break; break;
case 'CEAL': case 'CEAL':
titleBG = true;
transparentBG = true;
coinlogo = 'CEAL'; coinlogo = 'CEAL';
coinname = 'CEAL NET'; coinname = 'CEAL NET';
break; break;
case 'COQUI':
coinlogo = 'COQUI';
coinname = 'COQUI';
break;
case 'MESH': case 'MESH':
hideTitle = true;
titleBG = true;
transparentBG = true;
coinlogo = 'MESH'; coinlogo = 'MESH';
coinname = 'SpaceMesh'; coinname = 'SpaceMesh';
break; break;
case 'USD': case 'USD':
titleBG = true;
transparentBG = true;
coinlogo = 'usd'; coinlogo = 'usd';
coinname = 'US Dollar'; coinname = 'US Dollar';
break; break;
case 'RON': case 'RON':
titleBG = true;
transparentBG = true;
coinlogo = 'RON'; coinlogo = 'RON';
coinname = 'Romanian Leu'; coinname = 'Romanian Leu';
break; break;
case 'EUR': case 'EUR':
titleBG = true;
transparentBG = true;
coinlogo = 'EUR'; coinlogo = 'EUR';
coinname = 'Euro'; coinname = 'Euro';
break; break;
case 'JPY': case 'JPY':
titleBG = true;
transparentBG = true;
coinlogo = 'JPY'; coinlogo = 'JPY';
coinname = 'Japanese Yen'; coinname = 'Japanese Yen';
break; break;
case 'GBP': case 'GBP':
titleBG = true;
transparentBG = true;
coinlogo = 'GBP'; coinlogo = 'GBP';
coinname = 'British Pound'; coinname = 'British Pound';
break; break;
case 'AUD': case 'AUD':
titleBG = true;
transparentBG = true;
coinlogo = 'AUD'; coinlogo = 'AUD';
coinname = 'Australian Dollar'; coinname = 'Australian Dollar';
break; break;
case 'CAD': case 'CAD':
titleBG = true;
transparentBG = true;
coinlogo = 'CAD'; coinlogo = 'CAD';
coinname = 'Canadian Dollar'; coinname = 'Canadian Dollar';
break; break;
case 'CHF': case 'CHF':
titleBG = true;
transparentBG = true;
coinlogo = 'CHF'; coinlogo = 'CHF';
coinname = 'Swiss Franc'; coinname = 'Swiss Franc';
break; break;
case 'NZD': case 'NZD':
titleBG = true;
transparentBG = true;
coinlogo = 'NZD'; coinlogo = 'NZD';
coinname = 'New Zealand Dollar'; coinname = 'New Zealand Dollar';
break; break;
case 'CNY': case 'CNY':
titleBG = true;
transparentBG = true;
coinlogo = 'CNY'; coinlogo = 'CNY';
coinname = 'Chinese Yuan'; coinname = 'Chinese Yuan';
break; break;
case 'RUB': case 'RUB':
titleBG = true;
transparentBG = true;
coinlogo = 'RUB'; coinlogo = 'RUB';
coinname = 'Russian Ruble'; coinname = 'Russian Ruble';
break; break;
case 'MXN': case 'MXN':
titleBG = true;
transparentBG = true;
coinlogo = 'MXN'; coinlogo = 'MXN';
coinname = 'Mexican peso'; coinname = 'Mexican peso';
break; break;
case 'BRL': case 'BRL':
titleBG = true;
transparentBG = true;
coinlogo = 'BRL'; coinlogo = 'BRL';
coinname = 'Brazilian Real'; coinname = 'Brazilian Real';
break; break;
case 'INR': case 'INR':
titleBG = true;
transparentBG = true;
coinlogo = 'INR'; coinlogo = 'INR';
coinname = 'Indian Rupee'; coinname = 'Indian Rupee';
break; break;
case 'HKD': case 'HKD':
titleBG = true;
transparentBG = true;
coinlogo = 'HKD'; coinlogo = 'HKD';
coinname = 'Hong Kong Dollar'; coinname = 'Hong Kong Dollar';
break; break;
case 'TRY': case 'TRY':
titleBG = true;
transparentBG = true;
coinlogo = 'TRY'; coinlogo = 'TRY';
coinname = 'Turkish Lira'; coinname = 'Turkish Lira';
break; break;
case 'ZAR': case 'ZAR':
titleBG = true;
transparentBG = true;
coinlogo = 'ZAR'; coinlogo = 'ZAR';
coinname = 'South African Rand'; coinname = 'South African Rand';
break; break;
case 'PLN': case 'PLN':
titleBG = true;
transparentBG = true;
coinlogo = 'PLN'; coinlogo = 'PLN';
coinname = 'Polish Zloty'; coinname = 'Polish Zloty';
break; break;
case 'NOK': case 'NOK':
titleBG = true;
coinlogo = 'NOK'; coinlogo = 'NOK';
coinname = 'Norwegian Krone'; coinname = 'Norwegian Krone';
break; break;
case 'SEK': case 'SEK':
titleBG = true;
coinlogo = 'SEK'; coinlogo = 'SEK';
coinname = 'Swedish Krona'; coinname = 'Swedish Krona';
break; break;
case 'DKK': case 'DKK':
titleBG = true;
coinlogo = 'DKK'; coinlogo = 'DKK';
coinname = 'Danish Krone'; coinname = 'Danish Krone';
break; break;
case 'CZK': case 'CZK':
titleBG = true;
coinlogo = 'CZK'; coinlogo = 'CZK';
coinname = 'Czech Koruna'; coinname = 'Czech Koruna';
break; break;
case 'HUF': case 'HUF':
titleBG = true;
coinlogo = 'HUF'; coinlogo = 'HUF';
coinname = 'Hungarian Forint'; coinname = 'Hungarian Forint';
break; break;
case 'ILS': case 'ILS':
titleBG = true;
coinlogo = 'ILS'; coinlogo = 'ILS';
coinname = 'Israeli Shekel'; coinname = 'Israeli Shekel';
break; break;
case 'KRW': case 'KRW':
titleBG = true;
coinlogo = 'KRW'; coinlogo = 'KRW';
coinname = 'Korean Won'; coinname = 'Korean Won';
break; break;
case 'MYR': case 'MYR':
titleBG = true;
coinlogo = 'MYR'; coinlogo = 'MYR';
coinname = 'Malaysian Ringgit'; coinname = 'Malaysian Ringgit';
break; break;
case 'PHP': case 'PHP':
titleBG = true;
coinlogo = 'PHP'; coinlogo = 'PHP';
coinname = 'Philippine Peso'; coinname = 'Philippine Peso';
break; break;
case 'SGD': case 'SGD':
titleBG = true;
coinlogo = 'SGD'; coinlogo = 'SGD';
coinname = 'Singapore Dollar'; coinname = 'Singapore Dollar';
break; break;
case 'THB': case 'THB':
titleBG = true;
coinlogo = 'THB'; coinlogo = 'THB';
coinname = 'Thai Baht'; coinname = 'Thai Baht';
break; break;
case 'BGN': case 'BGN':
titleBG = true;
coinlogo = 'BGN'; coinlogo = 'BGN';
coinname = 'Bulgarian Lev'; coinname = 'Bulgarian Lev';
break; break;
case 'IDR': case 'IDR':
titleBG = true;
coinlogo = 'IDR'; coinlogo = 'IDR';
coinname = 'Indonesian Rupiah'; coinname = 'Indonesian Rupiah';
break; break;
case 'HRK': case 'HRK':
titleBG = true;
coinlogo = 'HRK'; coinlogo = 'HRK';
coinname = 'Croatian Kuna'; coinname = 'Croatian Kuna';
break; break;
@ -271,14 +346,16 @@ export function getCoinTitle(coin) {
return { return {
'logo': coinlogo, 'logo': coinlogo,
'name': coinname 'name': coinname,
titleBG,
transparentBG,
}; };
} }
export function getModeInfo(mode) { export function getModeInfo(mode) {
let modecode, let modecode;
modetip, let modetip;
modecolor; let modecolor;
switch (mode) { switch (mode) {
case 'native': case 'native':

Loading…
Cancel
Save