+ indicators for future use
! check for error in syncing - consoloe.log line
This commit is contained in:
35
assets/styles/indicators.css
Normal file
35
assets/styles/indicators.css
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
.led-red {
|
||||||
|
margin: 20px auto;
|
||||||
|
width: 12px;
|
||||||
|
height: 12px;
|
||||||
|
background-color: #940;
|
||||||
|
border-radius: 50%;
|
||||||
|
box-shadow: #000 0 -1px 7px 1px, inset #600 0 -1px 9px, #F00 0 2px 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.led-yellow {
|
||||||
|
margin: 20px auto;
|
||||||
|
width: 12px;
|
||||||
|
height: 12px;
|
||||||
|
background-color: #A90;
|
||||||
|
border-radius: 50%;
|
||||||
|
box-shadow: #000 0 -1px 7px 1px, inset #660 0 -1px 9px, #DD0 0 2px 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.led-green {
|
||||||
|
margin: 20px auto;
|
||||||
|
width: 12px;
|
||||||
|
height: 12px;
|
||||||
|
background-color: #690;
|
||||||
|
border-radius: 50%;
|
||||||
|
box-shadow: #000 0 -1px 7px 1px, inset #460 0 -1px 9px, #7D0 0 2px 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.led-blue {
|
||||||
|
margin: 20px auto;
|
||||||
|
width: 12px;
|
||||||
|
height: 12px;
|
||||||
|
background-color: #4AB;
|
||||||
|
border-radius: 50%;
|
||||||
|
box-shadow: #000 0 -1px 7px 1px, inset #006 0 -1px 9px, #06F 0 2px 14px;
|
||||||
|
}
|
||||||
@@ -10,6 +10,7 @@
|
|||||||
<link rel="stylesheet" href="./assets/styles/iziToast.min.css">
|
<link rel="stylesheet" href="./assets/styles/iziToast.min.css">
|
||||||
<link rel="stylesheet" href="./assets/styles/transactions.css">
|
<link rel="stylesheet" href="./assets/styles/transactions.css">
|
||||||
<link rel="stylesheet" href="./assets/styles/please-wait.css">
|
<link rel="stylesheet" href="./assets/styles/please-wait.css">
|
||||||
|
<link rel="stylesheet" href="./assets/styles/indicators.css">
|
||||||
<link rel="stylesheet" href="./assets/styles/all.min.css">
|
<link rel="stylesheet" href="./assets/styles/all.min.css">
|
||||||
<link rel="stylesheet" href="./assets/styles/spinner.css">
|
<link rel="stylesheet" href="./assets/styles/spinner.css">
|
||||||
<link rel="stylesheet" href="./assets/styles/buttons.css">
|
<link rel="stylesheet" href="./assets/styles/buttons.css">
|
||||||
|
|||||||
@@ -55,7 +55,6 @@ class MainGUI {
|
|||||||
|
|
||||||
$("#btnGeneralConfirmYes").click(function() {
|
$("#btnGeneralConfirmYes").click(function() {
|
||||||
$('#dlgGeneralConfirm').iziModal('close');
|
$('#dlgGeneralConfirm').iziModal('close');
|
||||||
console.log(true);
|
|
||||||
callback(true);
|
callback(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -52,26 +52,28 @@ function StartSyncProcess() {
|
|||||||
nodeSyncInterval = setInterval(function()
|
nodeSyncInterval = setInterval(function()
|
||||||
{
|
{
|
||||||
web3Local.eth.getBlock("latest", function(error, localBlock) {
|
web3Local.eth.getBlock("latest", function(error, localBlock) {
|
||||||
if (localBlock.number > 0) {
|
if (!error) {
|
||||||
if (!EthoTransactions.getIsSyncing()) {
|
if (localBlock.number > 0) {
|
||||||
SyncProgress.animate(1);
|
if (!EthoTransactions.getIsSyncing()) {
|
||||||
SyncProgress.setText(vsprintf('%d/%d (100%%)', [localBlock.number, localBlock.number]));
|
SyncProgress.animate(1);
|
||||||
}
|
SyncProgress.setText(vsprintf('%d/%d (100%%)', [localBlock.number, localBlock.number]));
|
||||||
|
}
|
||||||
|
|
||||||
if (alreadyCatchedUp == false)
|
if (alreadyCatchedUp == false)
|
||||||
{
|
{
|
||||||
// clear the repeat interval and render wallets
|
// clear the repeat interval and render wallets
|
||||||
$(document).trigger("onNewAccountTransaction");
|
$(document).trigger("onNewAccountTransaction");
|
||||||
alreadyCatchedUp = true;
|
alreadyCatchedUp = true;
|
||||||
isFullySynced = true;
|
isFullySynced = true;
|
||||||
|
|
||||||
// enable the keep in sync feature
|
// enable the keep in sync feature
|
||||||
EthoTransactions.enableKeepInSync();
|
EthoTransactions.enableKeepInSync();
|
||||||
// sync all the transactions to the current block
|
// sync all the transactions to the current block
|
||||||
EthoTransactions.syncTransactionsForAllAddresses(localBlock.number);
|
EthoTransactions.syncTransactionsForAllAddresses(localBlock.number);
|
||||||
|
|
||||||
// signal that the sync is complete
|
// signal that the sync is complete
|
||||||
$(document).trigger("onSyncComplete");
|
$(document).trigger("onSyncComplete");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user