Browse Source

syncOnly forks

all-modes
pbca26 8 years ago
parent
commit
b558cee825
  1. 29
      react/src/actions/actionCreators.js
  2. 6
      react/src/components/addcoin/addcoinOptionsCrypto.js
  3. 30
      react/src/styles/index.scss

29
react/src/actions/actionCreators.js

@ -316,7 +316,7 @@ export function dismissToasterMessage() {
} }
} }
export function addCoin(coin, mode, syncOnly) { export function addCoin(coin, mode, syncOnly, port) {
console.log('coin, mode, syncOnly', coin + ' ' + mode + ' ' + syncOnly); console.log('coin, mode, syncOnly', coin + ' ' + mode + ' ' + syncOnly);
/*startIguanaInstance(mode, coin) /*startIguanaInstance(mode, coin)
.then(function(json) { .then(function(json) {
@ -361,8 +361,14 @@ export function addCoin(coin, mode, syncOnly) {
}); });
} }
} else { } else {
return dispatch => { if (port) {
dispatch(iguanaAddCoin(coin, mode, _acData)); return dispatch => {
dispatch(iguanaAddCoin(coin, mode, _acData, port));
}
} else {
return dispatch => {
dispatch(iguanaAddCoin(coin, mode, _acData));
}
} }
} }
} }
@ -2498,6 +2504,23 @@ export function getSyncOnlyForks() {
} }
} }
export function stopIguanaFork(pmid) {
return dispatch => {
return fetch('http://127.0.0.1:' + Config.agamaPort + '/shepherd/forks/stop?pmid=' + pmid, {
method: 'GET',
headers: {
'Content-Type': 'application/json',
},
})
.catch(function(error) {
console.log(error);
dispatch(triggerToaster(true, 'stopIguanaFork', 'Error', 'error'));
})
.then(response => response.json())
.then(json => dispatch(triggerToaster(true, 'Iguana instance is stopped', translate('TOASTR.SERVICE_NOTIFICATION'), 'success')))
}
}
/*function Shepherd_SendPendValue() { /*function Shepherd_SendPendValue() {
Shepherd_SysInfo().then(function(result){ Shepherd_SysInfo().then(function(result){
var ram_data = formatBytes(result.totalmem_bytes) var ram_data = formatBytes(result.totalmem_bytes)

6
react/src/components/addcoin/addcoinOptionsCrypto.js

@ -3,13 +3,13 @@ import { translate } from '../../translate/translate';
class AddCoinOptionsCrypto extends React.Component { class AddCoinOptionsCrypto extends React.Component {
render() { render() {
//<option value="ANC|full" data-full-mode="true">AnonCoin (ANC)</option>
//<option value="MZC|full">MazaCoin (MZC)</option>
//<option value="SYS|full">SysCoin (SYS)</option>
return ( return (
<optgroup label="Crypto Currencies"> <optgroup label="Crypto Currencies">
<option value="BTCD|full">BitcoinDark (BTCD)</option> <option value="BTCD|full">BitcoinDark (BTCD)</option>
<option value="BTC|full|basilisk">Bitcoin (BTC)</option> <option value="BTC|full|basilisk">Bitcoin (BTC)</option>
<option value="ANC|full" data-full-mode="true">AnonCoin (ANC)</option>
<option value="MZC|full">MazaCoin (MZC)</option>
<option value="SYS|full">SysCoin (SYS)</option>
<option value="BTM|full">Bitmark (BTM)</option> <option value="BTM|full">Bitmark (BTM)</option>
<option value="CARB|full">Carboncoin (CARB)</option> <option value="CARB|full">Carboncoin (CARB)</option>
<option value="DGB|full">Digibyte (DGB)</option> <option value="DGB|full">Digibyte (DGB)</option>

30
react/src/styles/index.scss

@ -163,6 +163,36 @@ body {
.sync-only-forks { .sync-only-forks {
color: #757575; color: #757575;
.modal-body {
overflow-y: auto;
}
.badge.up {
position: absolute;
top: 40px;
left: 65px;
margin: 0 5px;
}
.avatar {
width: 20%;
display: inline-block;
text-align: center;
vertical-align: top;
img {
width: 55px;
display: inherit;
}
}
.progress-bars {
padding-left: 40px;
display: inline-block;
width: 80%;
margin: 0 auto;
}
.padding-bottom-60:last-child {
padding-bottom: 0 !important;
}
} }
/*.toaster .single-toast:nth-child(0) { /*.toaster .single-toast:nth-child(0) {

Loading…
Cancel
Save