Finish send all and send to. Update deps

This commit is contained in:
AlphaX-Projects 2022-08-18 12:44:40 +02:00
parent aecb4264fe
commit c8894ae3e0
21 changed files with 155 additions and 61 deletions

View File

@ -36,7 +36,7 @@
"electron-log": "4.4.8"
},
"devDependencies": {
"electron": "19.0.11",
"electron": "19.0.13",
"electron-builder": "23.3.3",
"electron-notarize": "1.2.1",
"electron-packager": "15.5.1",

View File

@ -240,7 +240,8 @@
"wchange42":"Bestätigungen",
"wchange43":"Ihre Transaktion wird erst angezeigt, wenn sie bestätigt wurde. Seien Sie geduldig...",
"wchange44":"Bitte versuche es erneut...",
"wchange45":"Sende alle"
"wchange45":"Sende alle",
"wchange46":"An diese Adresse verschicken"
},
"tradepage":{
"tchange1":"Handelsportal",

View File

@ -240,7 +240,8 @@
"wchange42":"Confirmaciones",
"wchange43":"Su transacción no se mostrará hasta que se confirme, sea paciente...",
"wchange44":"Inténtalo de nuevo...",
"wchange45":"Envia todo"
"wchange45":"Envia todo",
"wchange46":"Enviar a esta dirección"
},
"tradepage":{
"tchange1":"Portal de Comercio",

View File

@ -240,7 +240,8 @@
"wchange42":"Confirmations",
"wchange43":"Votre transaction ne s'affichera pas tant qu'elle n'aura pas été confirmée, soyez patient...",
"wchange44":"Veuillez réessayer...",
"wchange45":"Envoyer tout"
"wchange45":"Envoyer tout",
"wchange46":"Envoyer à cette adresse"
},
"tradepage":{
"tchange1":"Portail de commerce",

View File

@ -241,7 +241,8 @@
"wchange42":"पुष्टियों",
"wchange43":"कन्फर्म होने तक आपका ट्रांजैक्शन नहीं दिखेगा, धैर्य रखें...",
"wchange44":"कृपया पुन: प्रयास करें...",
"wchange45":"सब भेजें"
"wchange45":"सब भेजें",
"wchange46":"इस पते पर भेजें"
},
"tradepage":{
"tchange1":"व्यापार पोर्टल",

View File

@ -240,7 +240,8 @@
"wchange42":"Potvrde",
"wchange43":"Vaša transakcija se neće prikazati dok se ne potvrdi, budite strpljivi...",
"wchange44":"Molim te pokušaj ponovno...",
"wchange45":"Pošalji sve"
"wchange45":"Pošalji sve",
"wchange46":"Šaljite na ovu adresu"
},
"tradepage":{
"tchange1":"Portal razmjene",

View File

@ -240,7 +240,8 @@
"wchange42":"Visszaigazolások",
"wchange43":"A tranzakció nem jelenik meg a megerősítésig, legyen türelemmel...",
"wchange44":"Kérlek próbáld újra...",
"wchange45":"Az összes elküldése"
"wchange45":"Az összes elküldése",
"wchange46":"Küldje el erre a címre"
},
"tradepage":{
"tchange1":"Kereskedelmi Portál",

View File

@ -240,7 +240,8 @@
"wchange42":"Conferme",
"wchange43":"La tua transazione non verrà mostrata fino a quando non sarà confermata, sii paziente...",
"wchange44":"Per favore riprova...",
"wchange45":"Invia tutto"
"wchange45":"Invia tutto",
"wchange46":"Invia a questo indirizzo"
},
"tradepage":{
"tchange1":"Portale commerciale",

View File

@ -240,7 +240,8 @@
"wchange42":"확인",
"wchange43":"확인될 때까지 거래가 표시되지 않습니다. 기다려 주십시오.",
"wchange44":"다시 시도하십시오...",
"wchange45":"모두 보내기"
"wchange45":"모두 보내기",
"wchange46":"이 주소로 보내기"
},
"tradepage":{
"tchange1":"무역 포털",

View File

@ -240,7 +240,8 @@
"wchange42":"Bekreftelser",
"wchange43":"Transaksjonen din vises ikke før den er bekreftet, vær tålmodig...",
"wchange44":"Vær så snill, prøv på nytt...",
"wchange45":"Send alle"
"wchange45":"Send alle",
"wchange46":"Send til denne adressen"
},
"tradepage":{
"tchange1":"Handelsportal",

View File

@ -240,7 +240,8 @@
"wchange42":"Potwierdzenia",
"wchange43":"Twoja transakcja nie pojawi się, dopóki nie zostanie potwierdzona, bądź cierpliwy...",
"wchange44":"Proszę spróbuj ponownie...",
"wchange45":"Wyślij wszystko"
"wchange45":"Wyślij wszystko",
"wchange46":"Wyślij na ten adres"
},
"tradepage":{
"tchange1":"Portal Handlowy",

View File

@ -240,7 +240,8 @@
"wchange42":"Confirmações",
"wchange43":"Sua transação não será exibida até ser confirmada, seja paciente...",
"wchange44":"Por favor, tente novamente...",
"wchange45":"Envie todos"
"wchange45":"Envie todos",
"wchange46":"Enviar para este endereço"
},
"tradepage":{
"tchange1":"Portal do Comércio",

View File

@ -240,7 +240,8 @@
"wchange42":"Confirmari",
"wchange43":"Tranzactia nu va aparea pana ce nu este confirmata, ai rabdare...",
"wchange44":"Te rog incearca din nou...",
"wchange45":"Trimite toate"
"wchange45":"Trimite toate",
"wchange46":"Trimiteti la aceasta adresa"
},
"tradepage":{
"tchange1":"Portal de Tranzactionare",

View File

@ -240,7 +240,8 @@
"wchange42":"Potvrde",
"wchange43":"Vaša transakcija se neće prikazati dok se ne potvrdi, budite strpljivi...",
"wchange44":"Molim vas, pokušajte ponovo...",
"wchange45":"Poslati sve"
"wchange45":"Poslati sve",
"wchange46":"Pošaljite na ovu adresu"
},
"tradepage":{
"tchange1":"Trgovinski prozor",

View File

@ -240,7 +240,8 @@
"wchange42":"Подтверждено",
"wchange43":"Ваша транзакция не будет отображаться, пока не будет подтверждена, наберитесь терпения...",
"wchange44":"Пожалуйста, попробуйте еще раз...",
"wchange45":"Отправь все"
"wchange45":"Отправь все",
"wchange46":"Отправить на этот адрес"
},
"tradepage":{
"tchange1":"Торговый портал",

View File

@ -235,7 +235,8 @@
"wchange42":"Confirmations",
"wchange43":"Your transaction will not show until confirmed, be patient...",
"wchange44":"Please try again...",
"wchange45":"Send all"
"wchange45":"Send all",
"wchange46":"Send to this address"
},
"tradepage":{
"tchange1":"Trade Portal",

View File

@ -240,7 +240,8 @@
"wchange42":"确认数",
"wchange43":"您的交易在确认之前不会显示,请耐心等待...",
"wchange44":"请再试一次...",
"wchange45":"全部发送"
"wchange45":"全部发送",
"wchange46":"发送到这个地址"
},
"tradepage":{
"tchange1":"交易门户",

View File

@ -240,7 +240,8 @@
"wchange42":"確認數",
"wchange43":"您的交易在確認之前不會顯示,請耐心等待...",
"wchange44":"請再試一次...",
"wchange45":"全部發送"
"wchange45":"全部發送",
"wchange46":"發送到這個地址"
},
"tradepage":{
"tchange1":"交易門戶",

View File

@ -19,22 +19,22 @@
"dependencies": {
"@hapi/hapi": "20.2.2",
"@hapi/inert": "7.0.0",
"sass": "1.54.3"
"sass": "1.54.4"
},
"devDependencies": {
"@babel/core": "7.18.10",
"@material/mwc-button": "0.26.1",
"@material/mwc-checkbox": "0.26.1",
"@material/mwc-dialog": "0.26.1",
"@material/mwc-drawer": "0.26.1",
"@material/mwc-fab": "0.26.1",
"@material/mwc-formfield": "0.26.1",
"@material/mwc-icon": "0.26.1",
"@material/mwc-icon-button": "0.26.1",
"@material/mwc-list": "0.26.1",
"@material/mwc-select": "0.26.1",
"@material/mwc-snackbar": "0.26.1",
"@material/mwc-textfield": "0.26.1",
"@material/mwc-button": "0.27.0",
"@material/mwc-checkbox": "0.27.0",
"@material/mwc-dialog": "0.27.0",
"@material/mwc-drawer": "0.27.0",
"@material/mwc-fab": "0.27.0",
"@material/mwc-formfield": "0.27.0",
"@material/mwc-icon": "0.27.0",
"@material/mwc-icon-button": "0.27.0",
"@material/mwc-list": "0.27.0",
"@material/mwc-select": "0.27.0",
"@material/mwc-snackbar": "0.27.0",
"@material/mwc-textfield": "0.27.0",
"@polymer/app-layout": "3.1.0",
"@polymer/iron-collapse": "3.0.1",
"@polymer/iron-flex-layout": "3.0.1",
@ -65,14 +65,14 @@
"bcryptjs": "2.4.3",
"epml": "0.3.3",
"file-saver": "2.0.5",
"lit": "2.2.8",
"lit": "2.3.0",
"lit-translate": "2.0.1",
"postcss": "8.4.16",
"pwa-helpers": "0.9.1",
"random-sentence-generator": "0.0.8",
"redux": "4.2.0",
"redux-thunk": "2.4.1",
"rollup": "2.77.2",
"rollup": "2.78.0",
"rollup-plugin-node-globals": "1.4.0",
"rollup-plugin-postcss": "4.0.2",
"rollup-plugin-progress": "1.1.2",

View File

@ -17,24 +17,24 @@
"author": "QORTAL <admin@qortal.org>",
"license": "GPL-3.0",
"dependencies": {
"@material/mwc-list": "0.26.1",
"@material/mwc-select": "0.26.1",
"@material/mwc-list": "0.27.0",
"@material/mwc-select": "0.27.0",
"emoji-picker-js": "https://github.com/Qortal/emoji-picker-js"
},
"devDependencies": {
"@babel/core": "7.18.10",
"@github/time-elements": "3.1.2",
"@material/mwc-button": "0.26.1",
"@material/mwc-checkbox": "0.26.1",
"@material/mwc-dialog": "0.26.1",
"@material/mwc-formfield": "0.26.1",
"@material/mwc-icon": "0.26.1",
"@material/mwc-icon-button": "0.26.1",
"@material/mwc-slider": "0.26.1",
"@material/mwc-snackbar": "0.26.1",
"@material/mwc-tab": "0.26.1",
"@material/mwc-tab-bar": "0.26.1",
"@material/mwc-textfield": "0.26.1",
"@material/mwc-button": "0.27.0",
"@material/mwc-checkbox": "0.27.0",
"@material/mwc-dialog": "0.27.0",
"@material/mwc-formfield": "0.27.0",
"@material/mwc-icon": "0.27.0",
"@material/mwc-icon-button": "0.27.0",
"@material/mwc-slider": "0.27.0",
"@material/mwc-snackbar": "0.27.0",
"@material/mwc-tab": "0.27.0",
"@material/mwc-tab-bar": "0.27.0",
"@material/mwc-textfield": "0.27.0",
"@polymer/iron-icons": "3.0.1",
"@polymer/paper-icon-button": "3.0.2",
"@polymer/paper-progress": "3.0.1",
@ -51,9 +51,9 @@
"@vaadin/icons": "23.1.5",
"epml": "0.3.3",
"html-escaper": "3.0.3",
"lit": "2.2.8",
"lit": "2.3.0",
"lit-translate": "2.0.1",
"rollup": "2.77.2",
"rollup": "2.78.0",
"rollup-plugin-node-globals": "1.4.0",
"rollup-plugin-progress": "1.1.2",
"rollup-plugin-terser": "7.0.2"

View File

@ -813,7 +813,7 @@ class MultiWallet extends LitElement {
<span class="title"> ${translate("walletpage.wchange10")} </span>
<br />
<div style="display: inline;">
<span>${this.selectedTransaction.btcReceiver}</span>
<span>${this.selectedTransaction.btcReceiver}</span> <paper-icon-button icon="icons:send" @click=${() => this.sendToBtcAddress()} title="${translate("walletpage.wchange46")}"></paper-icon-button>
</div>
<br />
<span class="title"> ${translate("walletpage.wchange12")} </span>
@ -864,7 +864,7 @@ class MultiWallet extends LitElement {
<span class="title"> ${translate("walletpage.wchange10")} </span>
<br />
<div style="display: inline;">
<span>${this.selectedTransaction.ltcReceiver}</span> <paper-icon-button icon="icons:send" @click=${() => this.sendToLtcAddress()} title="Send to this address"></paper-icon-button>
<span>${this.selectedTransaction.ltcReceiver}</span> <paper-icon-button icon="icons:send" @click=${() => this.sendToLtcAddress()} title="${translate("walletpage.wchange46")}"></paper-icon-button>
</div>
<br />
<span class="title"> ${translate("walletpage.wchange12")} </span>
@ -915,9 +915,10 @@ class MultiWallet extends LitElement {
<br />
<span class="title"> ${translate("walletpage.wchange10")} </span>
<br />
<div>
<span>${this.selectedTransaction.dogeReceiver}</span>
<div style="display: inline;">
<span>${this.selectedTransaction.dogeReceiver}</span> <paper-icon-button icon="icons:send" @click=${() => this.sendToDogeAddress()} title="${translate("walletpage.wchange46")}"></paper-icon-button>
</div>
<br />
<span class="title"> ${translate("walletpage.wchange12")} </span>
<br />
<div>
@ -965,8 +966,8 @@ class MultiWallet extends LitElement {
</div>
<span class="title"> ${translate("walletpage.wchange10")} </span>
<br />
<div> style="display: inline;"
<span>${this.selectedTransaction.dgbReceiver}</span>
<div style="display: inline;">
<span>${this.selectedTransaction.dgbReceiver}</span> <paper-icon-button icon="icons:send" @click=${() => this.sendToDgbAddress()} title="${translate("walletpage.wchange46")}"></paper-icon-button>
</div>
<br />
<span class="title"> ${translate("walletpage.wchange12")} </span>
@ -1017,7 +1018,7 @@ class MultiWallet extends LitElement {
<span class="title"> ${translate("walletpage.wchange10")} </span>
<br />
<div style="display: inline;">
<span>${this.selectedTransaction.rvnReceiver}</span>
<span>${this.selectedTransaction.rvnReceiver}</span> <paper-icon-button icon="icons:send" @click=${() => this.sendToRvnAddress()} title="${translate("walletpage.wchange46")}"></paper-icon-button>
</div>
<br />
<span class="title"> ${translate("walletpage.wchange12")} </span>
@ -1127,7 +1128,10 @@ class MultiWallet extends LitElement {
</p>
<p>
<span>Available balance:</span><br />
<span style="font-weight: bold;">${this.balanceString}</span>
<span style="font-weight: bold;">${this.balanceString}</span><br />
<span style="float: left; font-weight: bold; display: inline;">
<vaadin-button theme="primary small" style="width: 100%;" @click=${() => this.calculateBtcAll()}><vaadin-icon icon="vaadin:coin-piles" slot="prefix"></vaadin-icon> ${translate("walletpage.wchange45")} BTC</vaadin-button>
</span><br /><span>&nbsp;</span>
</p>
<p>
<mwc-textfield
@ -1278,7 +1282,10 @@ class MultiWallet extends LitElement {
</p>
<p>
<span>${translate("walletpage.wchange19")}:</span><br />
<span style="font-weight: bold;">${this.balanceString}</span>
<span style="font-weight: bold;">${this.balanceString}</span><br />
<span style="float: left; font-weight: bold; display: inline;">
<vaadin-button theme="primary small" style="width: 100%;" @click=${() => this.calculateDogeAll()}><vaadin-icon icon="vaadin:coin-piles" slot="prefix"></vaadin-icon> ${translate("walletpage.wchange45")} DOGE</vaadin-button>
</span><br /><span>&nbsp;</span>
</p>
<p>
<mwc-textfield
@ -1354,7 +1361,10 @@ class MultiWallet extends LitElement {
</p>
<p>
<span>${translate("walletpage.wchange19")}:</span><br />
<span style="font-weight: bold;">${this.balanceString}</span>
<span style="font-weight: bold;">${this.balanceString}</span><br />
<span style="float: left; font-weight: bold; display: inline;">
<vaadin-button theme="primary small" style="width: 100%;" @click=${() => this.calculateDgbAll()}><vaadin-icon icon="vaadin:coin-piles" slot="prefix"></vaadin-icon> ${translate("walletpage.wchange45")} DGB</vaadin-button>
</span><br /><span>&nbsp;</span>
</p>
<p>
<mwc-textfield
@ -1430,7 +1440,10 @@ class MultiWallet extends LitElement {
</p>
<p>
<span>${translate("walletpage.wchange19")}:</span><br />
<span style="font-weight: bold;">${this.balanceString}</span>
<span style="font-weight: bold;">${this.balanceString}</span><br />
<span style="float: left; font-weight: bold; display: inline;">
<vaadin-button theme="primary small" style="width: 100%;" @click=${() => this.calculateRvnAll()}><vaadin-icon icon="vaadin:coin-piles" slot="prefix"></vaadin-icon> ${translate("walletpage.wchange45")} RVN</vaadin-button>
</span><br /><span>&nbsp;</span>
</p>
<p>
<mwc-textfield
@ -1895,12 +1908,36 @@ class MultiWallet extends LitElement {
this.shadowRoot.querySelector('#showTransactionDetailsDialog').close()
}
sendToBtcAddress() {
this.btcRecipient = this.selectedTransaction.btcReceiver
this.openSendBtc()
this.shadowRoot.querySelector('#showBtcTransactionDetailsDialog').close()
}
sendToLtcAddress() {
this.ltcRecipient = this.selectedTransaction.ltcReceiver
this.openSendLtc()
this.shadowRoot.querySelector('#showLtcTransactionDetailsDialog').close()
}
sendToDogeAddress() {
this.dogeRecipient = this.selectedTransaction.dogeReceiver
this.openSendDoge()
this.shadowRoot.querySelector('#showDogeTransactionDetailsDialog').close()
}
sendToDgbAddress() {
this.dgbRecipient = this.selectedTransaction.dgbReceiver
this.openSendDgb()
this.shadowRoot.querySelector('#showDgbTransactionDetailsDialog').close()
}
sendToRvnAddress() {
this.rvnRecipient = this.selectedTransaction.rvnReceiver
this.openSendRvn()
this.shadowRoot.querySelector('#showRvnTransactionDetailsDialog').close()
}
calculateQortAll() {
if (this.balance < 0.00100000) {
let not_enough_string = get("walletpage.wchange26")
@ -1910,8 +1947,18 @@ class MultiWallet extends LitElement {
}
}
calculateBtcAll() {
if (this.balance < 0.00050000) {
let not_enough_string = get("walletpage.wchange26")
parentEpml.request('showSnackBar', `${not_enough_string}`)
} else {
this.btcAmount = (this.balance - 0.00050000).toFixed(8)
this.btcFeePerByte = 100
}
}
calculateLtcAll() {
if (this.balance < 0.00025000) {
if (this.balance < 0.00050000) {
let not_enough_string = get("walletpage.wchange26")
parentEpml.request('showSnackBar', `${not_enough_string}`)
} else {
@ -1920,12 +1967,42 @@ class MultiWallet extends LitElement {
}
}
calculateDogeAll() {
if (this.balance < 0.05000000) {
let not_enough_string = get("walletpage.wchange26")
parentEpml.request('showSnackBar', `${not_enough_string}`)
} else {
this.dogeAmount = (this.balance - 0.05000000).toFixed(8)
this.dogeFeePerByte = 1000
}
}
calculateDgbAll() {
if (this.balance < 0.00005000) {
let not_enough_string = get("walletpage.wchange26")
parentEpml.request('showSnackBar', `${not_enough_string}`)
} else {
this.dgbAmount = (this.balance - 0.00005000).toFixed(8)
this.dgbFeePerByte = 10
}
}
calculateRvnAll() {
if (this.balance < 0.00562500) {
let not_enough_string = get("walletpage.wchange26")
parentEpml.request('showSnackBar', `${not_enough_string}`)
} else {
this.rvnAmount = (this.balance - 0.00562500).toFixed(8)
this.rvnFeePerByte = 1125
}
}
renderSQB() {
let displaybutton = this.selectedTransaction.recipient
if (displaybutton == null) {
return html`<span>${this.selectedTransaction.recipient}</span>`
} else {
return html`<span>${this.selectedTransaction.recipient}</span> <paper-icon-button icon="icons:send" @click=${() => this.sendToQortAddress()} title="Send to this address"></paper-icon-button>`
return html`<span>${this.selectedTransaction.recipient}</span> <paper-icon-button icon="icons:send" @click=${() => this.sendToQortAddress()} title="${translate("walletpage.wchange46")}"></paper-icon-button>`
}
}