From fd073a70434a492e6cef2b4543ef55a53c87a2ea Mon Sep 17 00:00:00 2001 From: Metadavid <7405300+daweilv@users.noreply.github.com> Date: Sun, 7 Apr 2024 21:03:20 +0800 Subject: [PATCH 1/4] Add files via upload --- contributors/daweilv.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 contributors/daweilv.txt diff --git a/contributors/daweilv.txt b/contributors/daweilv.txt new file mode 100644 index 000000000..2abb9f73b --- /dev/null +++ b/contributors/daweilv.txt @@ -0,0 +1,3 @@ +I hereby accept the terms of the Contributor License Agreement in the CONTRIBUTING.md file of the mempool/mempool git repository as of April 7, 2024. + +Signed: daweilv From c3acfb8781fcbfa8c6fc7aba9dd60d8a22dfae5b Mon Sep 17 00:00:00 2001 From: Metadavid <7405300+daweilv@users.noreply.github.com> Date: Sun, 7 Apr 2024 21:04:23 +0800 Subject: [PATCH 2/4] Update address-graph.component.ts fix(address): Clicking on the Balance History chart within the /testnet/address/:id page under testnet now navigates to /testnet/tx/:tx instead of /tx/:tx. --- .../app/components/address-graph/address-graph.component.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/components/address-graph/address-graph.component.ts b/frontend/src/app/components/address-graph/address-graph.component.ts index a73229495..fc3cf24dd 100644 --- a/frontend/src/app/components/address-graph/address-graph.component.ts +++ b/frontend/src/app/components/address-graph/address-graph.component.ts @@ -6,6 +6,7 @@ import { ChainStats } from '../../interfaces/electrs.interface'; import { ElectrsApiService } from '../../services/electrs-api.service'; import { AmountShortenerPipe } from '../../shared/pipes/amount-shortener.pipe'; import { Router } from '@angular/router'; +import { RelativeUrlPipe } from '../../shared/pipes/relative-url/relative-url.pipe'; @Component({ selector: 'app-address-graph', @@ -46,6 +47,7 @@ export class AddressGraphComponent implements OnChanges { private router: Router, private amountShortenerPipe: AmountShortenerPipe, private cd: ChangeDetectorRef, + private relativeUrlPipe: RelativeUrlPipe, ) {} ngOnChanges(changes: SimpleChanges): void { @@ -122,7 +124,7 @@ export class AddressGraphComponent implements OnChanges { ${date} - `; + `; }.bind(this) }, xAxis: { @@ -178,7 +180,7 @@ export class AddressGraphComponent implements OnChanges { onChartClick(e) { if (this.hoverData?.length && this.hoverData[0]?.[2]?.txid) { - this.router.navigate(['/tx/', this.hoverData[0][2].txid]); + this.router.navigate([this.relativeUrlPipe.transform('/tx/'), this.hoverData[0][2].txid]); } } From c637055859840b86a117e6445040365da3403dcb Mon Sep 17 00:00:00 2001 From: Metadavid <7405300+daweilv@users.noreply.github.com> Date: Sun, 7 Apr 2024 21:20:42 +0800 Subject: [PATCH 3/4] Update daweilv.txt --- contributors/daweilv.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contributors/daweilv.txt b/contributors/daweilv.txt index 2abb9f73b..eb70cade1 100644 --- a/contributors/daweilv.txt +++ b/contributors/daweilv.txt @@ -1,3 +1,3 @@ -I hereby accept the terms of the Contributor License Agreement in the CONTRIBUTING.md file of the mempool/mempool git repository as of April 7, 2024. +I hereby accept the terms of the Contributor License Agreement in the CONTRIBUTING.md file of the mempool/mempool git repository as of April 6, 2024. Signed: daweilv From 5583befbba7274a2504cac7fb34a2e6f81f11a1b Mon Sep 17 00:00:00 2001 From: Metadavid <7405300+daweilv@users.noreply.github.com> Date: Sun, 7 Apr 2024 21:42:36 +0800 Subject: [PATCH 4/4] Update daweilv.txt --- contributors/daweilv.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contributors/daweilv.txt b/contributors/daweilv.txt index eb70cade1..2abb9f73b 100644 --- a/contributors/daweilv.txt +++ b/contributors/daweilv.txt @@ -1,3 +1,3 @@ -I hereby accept the terms of the Contributor License Agreement in the CONTRIBUTING.md file of the mempool/mempool git repository as of April 6, 2024. +I hereby accept the terms of the Contributor License Agreement in the CONTRIBUTING.md file of the mempool/mempool git repository as of April 7, 2024. Signed: daweilv