diff --git a/assets/scripts/dashboard.js b/assets/scripts/dashboard.js index 14b01a8..7bab021 100644 --- a/assets/scripts/dashboard.js +++ b/assets/scripts/dashboard.js @@ -916,7 +916,6 @@ jQuery(document).ready(function() { Dashboard.init(); }); - function resizeDashboardWindow() { /* set default map height */ var navbarH = $('.site-navbar').outerHeight(), diff --git a/assets/scripts/iguana_api/IguanaEDEX.js b/assets/scripts/iguana_api/IguanaEDEX.js index 0f540e8..8187792 100644 --- a/assets/scripts/iguana_api/IguanaEDEX.js +++ b/assets/scripts/iguana_api/IguanaEDEX.js @@ -285,10 +285,10 @@ function EDEXSendutxoRawTx(data) { return new Promise(function(resolve, reject) { //console.log(gettxdata) //console.log(utxos_set) - EDEX_GetTxIDList(gettxdata).then(function(get_txid_list){ - console.log(get_txid_list) - resolve(get_txid_list); - }) + EDEX_GetTxIDList(gettxdata).then(function(get_txid_list) { + console.log(get_txid_list) + resolve(get_txid_list); + }); /*EDEX_ProcessRefreshData(gettxdata,utxos_set).then(function(new_utxos_set) { console.log(new_utxos_set); resolve(new_utxos_set); @@ -298,7 +298,7 @@ function EDEXSendutxoRawTx(data) { var get_data_cache_contents = function(get_txid_list) { return new Promise(function(resolve, reject) { - console.log(get_txid_list) + console.log(get_txid_list); //console.log(send_data) //console.log(send_data.sendfrom) Shepherd_GroomData_Get().then(function(result) { @@ -310,8 +310,8 @@ function EDEXSendutxoRawTx(data) { console.log(result.basilisk.KMD[send_data.sendfrom].refresh); var save_this_data = result;*/ var save_this_data = EDEX_RemoveTXID(result, get_txid_list); - console.log(save_this_data) - //resolve(result); + console.log(save_this_data); + //resolve(result); resolve(save_this_data); }); }); @@ -659,7 +659,7 @@ function EDEXgetaddrbyaccount_cache(coin) { .then(result => { //console.log(result); resolve(result); - }) + }); }); }); } diff --git a/assets/scripts/iguana_api/IguanaShepherd.js b/assets/scripts/iguana_api/IguanaShepherd.js index 01c3d0b..a4b0682 100644 --- a/assets/scripts/iguana_api/IguanaShepherd.js +++ b/assets/scripts/iguana_api/IguanaShepherd.js @@ -221,7 +221,13 @@ function Shepherd_GetBasiliskCache() { url: 'http://127.0.0.1:17777/shepherd/cache', contentType: 'application/json' // send as JSON }).done(function(data) { - resolve(data); + resolve(data); + data = JSON.parse(data); + if (data.result === 'JSON parse error') { + Shepherd_GroomData_Delete().then(function(result) { + console.log('error reading cache, flushing...'); + }); + } }); }); } diff --git a/assets/scripts/kmd_wallet/KMDTransaction.js b/assets/scripts/kmd_wallet/KMDTransaction.js index 2755f14..a9632b1 100644 --- a/assets/scripts/kmd_wallet/KMDTransaction.js +++ b/assets/scripts/kmd_wallet/KMDTransaction.js @@ -38,7 +38,7 @@ function KMDGetPublicTransactions() { var tmp_secondsToString = secondsToString(AjaxOutputData[index].time); if ( AjaxOutputData[index].category == 'send' ) { - tmp_category = ' '+_lang[defaultLang].DASHBOARD.OUT; + tmp_category = ' ' +_lang[defaultLang].DASHBOARD.OUT; } if ( AjaxOutputData[index].category == 'receive' ) { tmp_category = ' ' + _lang[defaultLang].DASHBOARD.IN; @@ -114,8 +114,8 @@ function KMDGetProtectedTransactions() { var AjaxOutputData = JSON.parse(data); // Ajax output gets the whole list of unspent coin with addresses $.each(AjaxOutputData, function(index, txidvalue) { - var tmp_category = ' ' + _lang[defaultLang].TOASTR.IN; - var tmp_addr = value.addr.slice(0, 30) + '...'; + var tmp_category = ' ' + _lang[defaultLang].TOASTR.IN, + tmp_addr = value.addr.slice(0, 30) + '...'; if (!('amount' in txidvalue)) { var tmp_amount = 0; } else { diff --git a/assets/scripts/lang/en.js b/assets/scripts/lang/en.js index f31def5..008b49c 100644 --- a/assets/scripts/lang/en.js +++ b/assets/scripts/lang/en.js @@ -173,7 +173,8 @@ const _lang = { 'DEBUG_LOG_LINES': 'Input number of lines to read', 'TARGET': 'Target', 'LOAD_DEBUG_LOG': 'Load debug log', - 'REFRESH_FUNDS': 'Refresh Funds' + 'REFRESH_FUNDS': 'Refresh Funds', + 'INFO': 'Info' }, 'JUMBLR': { 'NOTICE': 'EXPERIMENTAL TEST VERSION ONLY', @@ -183,7 +184,55 @@ const _lang = { 'TO_USE_JUMBLR': 'To use Jumblr feature, you need to activate Komodo in Native Mode.', 'IF_YOU_ALREADY_RUNNING': 'If you are already running Komodo in either Basilisk Mode or Full Mode, close the wallet and restart again to start Komodo In Native Mode.', 'THIS_SCREEN_DOESNT_REFRESH': 'This screen does not auto refresh. ' + - 'You will need to hit the Refresh button on the top right corner of the screen to get latest Jumblr data.' + 'You will need to hit the Refresh button on the top right corner of the screen to get latest Jumblr data.', + 'FEW_SECURITY_NOTES': 'Few Security Notes for your Privacy and Anonymity of funds', + 'FEW_SECURITY_NOTES_DESC1': 'Jumblr addresses (BTC Jumbler and KMD Jumbler) addresses are your Private Addresses.', + 'FEW_SECURITY_NOTES_DESC2': 'DO NOT SHARE your Jumblr addresses with anyone.', + 'FEW_SECURITY_NOTES_DESC3': 'Jumblr addresses are like YOUR PASSWORD. Keep them safe, secure and hidden.', + 'FEW_SECURITY_NOTES_DESC4': 'Only YOU should know your Jumblr Address. Nobody else.', + 'FEW_SECURITY_NOTES_DESC5': 'Sharing your Jumblr Addresses with ANYONE will defeat the purpose of using Jumblr, and your funds and transactions will not be private anymore.', + 'ACCESS_JUMBLR_FUNDS': 'How to Access your Jumblr Funds', + 'ADDRESS_ACCESSIBLE_EASILY': 'Your Jumbler Addresses are accessible easily. For example you logged into your wallet with passphrase', + 'TO_ACCESS': 'To access your Jumbler address funds Logout.', + 'CLOSE_IAPP': 'Close Iguana App.', + 'START_IAPP': 'Start Iguana App again.', + 'START_KMD': 'Start Komodo in either Full Mode or Basilisk Mode.', + 'WORD_JUMBLR': 'Then add word \'jumblr \' before your passphrase.', + 'SMALL_LETTERS': '"jumblr" is all in small letters.', + 'WHITE_SPACE': 'There is a white space after "jumblr ".', + 'PER_EXAMPLE': 'So as per this example, your Jumbler Addresses are accessible with:', + 'LOGIN_WITH_JUMBLR': 'You\'ll login with your Jumblr passphrase to access funds and will be able to use it just like any other wallet address.', + 'AGAIN_DONT_SHARE': 'Again, DO NOT SHARE YOUR JUMBLR ADDRESS WITH ANYONE.', + 'USING_JUMBLR': 'Using Jumblr', + 'RUN_KMD': 'Run Komodo in Native Mode', + 'LOGIN_KMD': 'Login with your passphrase', + 'GO_TO': 'Go to Jumblr Menu', + 'FIND_DEPOSIT_ADDR': 'There find your Deposit Address for coin you want to anonymise your funds. (For a start only KMD is supported. BTC support will come in later versions)', + 'YOU_SEND_FUNDS': 'You send your funds to deposit address.', + 'KEEP_WALLET_OPEN': 'Keep your wallet open', + 'IMPORTANT_FUNDS': '[IMPORTANT] Funds are processed in lot sizes 100 KMD, 1000 KMD, and 10,000 KMD.', + 'LARGE_LOT': 'The large lot sizes will process first, and then smaller.', + 'EG': 'For example, you sent 1393 KMD to KMD Deposit Address.
' + + 'First it will process 1000 KMD
' + + 'then 100 KMD
' + + 'then 100 KMD
' + + 'then 100 KMD', + '93_KMD': '93 KMD will keep waiting in deposit address.', + 'TO_CLEAR_THEM': 'To clear them you\'ll have to send 7 KMD more to your KMD Deposit Address.', + 'WHEN_IT_TOTALS': 'When it totals to 100 KMD, it will process to your KMD Jumblr Address.', + 'JADDR': 'Jumblr Addresses', + 'BTC_DEPOSIT': 'BTC Deposit', + 'SHOW_HIDE': 'Show/Hide', + 'HIDDEN': 'Hidden for security reason.', + 'KMD_DEPOSIT': 'KMD Deposit', + 'JSTATUS': 'Jumblr Status', + 'RESULT': 'Result', + 'DEPOSITED': 'Deposited', + 'PUB_TO_PRIV': 'Public to Private', + 'PRIV_TO_PRIV': 'Private to Private', + 'PRIV_TO_PUB': 'Private to Public', + 'FINISHED': 'Finished', + 'PENDING': 'Pending' }, 'DASHBOARD': { 'SELECT_ADDRESS': '- Select Address -', diff --git a/assets/scripts/templates/addCoinLoginModal.js b/assets/scripts/templates/addCoinLoginModal.js new file mode 100644 index 0000000..2f7b9db --- /dev/null +++ b/assets/scripts/templates/addCoinLoginModal.js @@ -0,0 +1,73 @@ +templates.addCoinLoginModal = +` + + + +`; \ No newline at end of file diff --git a/assets/scripts/templates/addCoinModal.js b/assets/scripts/templates/addCoinModal.js new file mode 100644 index 0000000..2adf134 --- /dev/null +++ b/assets/scripts/templates/addCoinModal.js @@ -0,0 +1,74 @@ +templates.addCoinModal = +` + + + + +`; \ No newline at end of file diff --git a/assets/scripts/templates/ieFix.js b/assets/scripts/templates/ieFix.js new file mode 100644 index 0000000..c4ab1ec --- /dev/null +++ b/assets/scripts/templates/ieFix.js @@ -0,0 +1,6 @@ +templates.ieFix = +` + +`; \ No newline at end of file diff --git a/assets/scripts/templates/loginPage.js b/assets/scripts/templates/loginPage.js new file mode 100644 index 0000000..2024520 --- /dev/null +++ b/assets/scripts/templates/loginPage.js @@ -0,0 +1,182 @@ +templates.loginPage = +` + +
+
+
+
+ SuperNET Iguana +
+ + + + + + + + +
+

+
+ +
+
+ + + + + +
+
+
+`; \ No newline at end of file diff --git a/assets/scripts/templates/refreshBasiliskConnectionsModal.js b/assets/scripts/templates/refreshBasiliskConnectionsModal.js new file mode 100644 index 0000000..83a3a8f --- /dev/null +++ b/assets/scripts/templates/refreshBasiliskConnectionsModal.js @@ -0,0 +1,67 @@ +templates.refreshBasiliskConnectionsModal = +` + +
+ + + +`; \ No newline at end of file diff --git a/index.html b/index.html index e80dc82..ff1bd39 100755 --- a/index.html +++ b/index.html @@ -67,401 +67,31 @@ - + + + + + + - -
- - - - - - - -
- - - - -
-
-
-
- SuperNET Iguana -
- - - - - - - - -
-

-
- -
-
- - - - - -
-
+
+
+ - - - +
@@ -1351,80 +981,73 @@
    -
  • Jumblr addresses (BTC Jumbler and KMD Jumbler) addresses are your Private Addresses.
  • -
  • DO NOT SHARE your Jumblr addresses with anyone.
  • -
  • Jumblr addresses are like YOUR PASSWORD. Keep them safe, secure and hidden.
  • -
  • Only YOU should know your Jumblr Address. Nobody else.
  • -
  • Sharing your Jumblr Addresses with ANYONE will defeat the purpose of using Jumblr, and your funds and transactions will not be private anymore.
  • +
  • +
  • +
  • +
  • +
-

Your Jumbler Addresses are accessible easily. - For example you logged into your wallet with passphrase

+

    duck dog cat donkey
    -
  1. To access your Jumbler address funds Logout.
  2. -
  3. Close Iguana App.
  4. -
  5. Start Iguana App again.
  6. -
  7. Start Komodo in either Full Mode or Basilisk Mode.
  8. -
  9. Then add word 'jumblr ' before your passphrase. +
  10. +
  11. +
  12. +
  13. +
    • -
    • "jumblr" is all in small letters.
    • -
    • There is a white space after "jumblr ".
    • +
    • +
  14. - So as per this example, your Jumbler Addresses are accessible with: +
    jumblr duck dog cat donkey
  15. -
  16. You'll login with your Jumblr passphrase to access funds and will be able to use it just like any other wallet address.
  17. +
-

Again, DO NOT SHARE YOUR JUMBLR ADDRESS WITH ANYONE.

+

    -
  • Run Komodo in Native Mode
  • -
  • Loging with your passphrase
  • -
  • Go to Jumblr Menu
  • -
  • There find your Deposit Address for coin you want to anonymise your funds. (For a start only KMD is supported. BTC support will come in later versions)
  • -
  • You send your funds to deposit address.
  • -
  • Keep your wallet open
  • -
  • [IMPORTANT] Funds are processed in lot sizes 100 KMD, 1000 KMD, and 10,000 KMD.
  • -
  • The large lot sizes will process first, and then smaller.
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
-

- For example, you sent 1393 KMD to KMD Deposit Address.
- First it will process 1000 KMD
- then 100 KMD
- then 100 KMD
- then 100 KMD -

-

93 KMD will keep waiting in deposit address.

-

To clear them you'll have to send 7 KMD more to your KMD Deposit Address.

-

When it totals to 100 KMD, it will process to your KMD Jumblr Address.

+

+

+

+

@@ -1433,13 +1056,13 @@
-

Jumblr Addresses

+

Jumblr Addresses

- + @@ -1448,14 +1071,14 @@ - + @@ -1464,10 +1087,10 @@ @@ -1479,7 +1102,7 @@
-

Jumblr Status

+

BTC Deposit BTC Jumblr - Hidden for security reason. +
KMD Deposit KMD Jumblr - Hidden for security reason. +
@@ -1489,43 +1112,43 @@ --> - + - + - + - + - + - + - + @@ -1536,7 +1159,7 @@ - + @@ -1570,7 +1193,7 @@
-
+
- | - / - | : - @@ -1664,24 +1287,24 @@
KMD Deposit
KMD Jumblr
Result
Deposited
Public to Private
Private to Private
Private to Public
Finished
Pending
- - - - - - - + + + + + + + - - - - - - - + + + + + + +
TypeDirectionConfirmationsAmountTimeDest. AddressTx Detail
TypeDirectionConfirmationsAmountTimeDest. AddressTx Detail
@@ -1908,7 +1531,7 @@

- Komodo Info + Komodo

@@ -2646,7 +2269,6 @@ -