Add WOW donations

This commit is contained in:
everoddandeven 2024-11-08 18:11:34 +01:00
parent a71ada7079
commit 72e5dfd607
5 changed files with 16 additions and 5 deletions

View file

@ -213,3 +213,10 @@ Please consider donating to support the development of this project.
<img src="donate_btc.png" width="115" height="115" alt="btcQrCode"/><br> <img src="donate_btc.png" width="115" height="115" alt="btcQrCode"/><br>
<code>bc1qndc2lesy0sse9vj33a35pnfrqz4znlhhs58vfp</code> <code>bc1qndc2lesy0sse9vj33a35pnfrqz4znlhhs58vfp</code>
</p> </p>
### Wownero
<p align="center">
<img src="donate_wow.png" width="115" height="115" alt="wowQrCode"/><br>
<code>WW33Zj3xu6EGTyKVWaz8EQZmqsTXKdK5eG7PDRaiPuJ1LyREhGHLCRDX3AaLx4r9NFCThRvsbq99KATbswJaxd3T1iwQLJ3Tw</code>
</p>

BIN
donate_wow.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

View file

@ -95,6 +95,11 @@
<br> <br>
<code>{{BTCAddress}}</code> <code>{{BTCAddress}}</code>
</p> </p>
<p *ngIf="donateCrypto === 'WOW'" class="text-center">
<img src="assets/donations/wow.png" width="200" height="200"/><br>
<br>
<code>{{WOWAddress}}</code>
</p>
<button *ngIf="!addressCopied" type="button" class="btn btn-secondary btn-sm" (click)="copyAddressToClipboard()"><i class="bi bi-clipboard"></i> Copy to clipboard</button> <button *ngIf="!addressCopied" type="button" class="btn btn-secondary btn-sm" (click)="copyAddressToClipboard()"><i class="bi bi-clipboard"></i> Copy to clipboard</button>
<button *ngIf="addressCopied" type="button" class="btn btn-success btn-sm" ><i class="bi bi-clipboard-check"></i> Copied to clipboard</button> <button *ngIf="addressCopied" type="button" class="btn btn-success btn-sm" ><i class="bi bi-clipboard-check"></i> Copied to clipboard</button>
</li> </li>

View file

@ -14,21 +14,20 @@ export class AboutComponent {
new NavbarLink('pills-donate-tab', '#pills-donate', 'pills-donate', false, 'Donate', false) new NavbarLink('pills-donate-tab', '#pills-donate', 'pills-donate', false, 'Donate', false)
]; ];
public donateCrypto: 'XMR' | 'BTC' = 'XMR'; public donateCrypto: 'XMR' | 'BTC' | 'WOW' = 'XMR';
public readonly XMRAddress: string = '84Q1SdQgFWaEWRn5KcvSPCQUa3NF39EJ3HPCTaiM86RHLLftqgTZpkP24jXrK5YpeedWbQAjHcFcDLpFJfr9TypfAU7pPjA'; public readonly XMRAddress: string = '84Q1SdQgFWaEWRn5KcvSPCQUa3NF39EJ3HPCTaiM86RHLLftqgTZpkP24jXrK5YpeedWbQAjHcFcDLpFJfr9TypfAU7pPjA';
public readonly BTCAddress: string = 'bc1qndc2lesy0sse9vj33a35pnfrqz4znlhhs58vfp'; public readonly BTCAddress: string = 'bc1qndc2lesy0sse9vj33a35pnfrqz4znlhhs58vfp';
public readonly WOWAddress: string = 'WW33Zj3xu6EGTyKVWaz8EQZmqsTXKdK5eG7PDRaiPuJ1LyREhGHLCRDX3AaLx4r9NFCThRvsbq99KATbswJaxd3T1iwQLJ3Tw';
public addressCopied: boolean = false; public addressCopied: boolean = false;
public get guiVersion(): string { public get guiVersion(): string {
return this.daemonService.getGuiVersion(); return this.daemonService.getGuiVersion();
} }
constructor(private daemonService: DaemonService) { constructor(private daemonService: DaemonService) { }
}
public copyAddressToClipboard(): void { public copyAddressToClipboard(): void {
window.electronAPI.copyToClipboard(this.donateCrypto == 'XMR' ? this.XMRAddress : this.BTCAddress); window.electronAPI.copyToClipboard(this.donateCrypto == 'XMR' ? this.XMRAddress : this.donateCrypto == 'WOW' ? this.WOWAddress : this.BTCAddress);
this.addressCopied = true; this.addressCopied = true;
setTimeout(() => { setTimeout(() => {

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB