diff --git a/frontend/src/app/app-routing.module.ts b/frontend/src/app/app-routing.module.ts index 8f8779772..79c9f27a8 100644 --- a/frontend/src/app/app-routing.module.ts +++ b/frontend/src/app/app-routing.module.ts @@ -8,7 +8,6 @@ import { MasterPageComponent } from './components/master-page/master-page.compon import { AboutComponent } from './components/about/about.component'; import { TelevisionComponent } from './components/television/television.component'; import { StatisticsComponent } from './components/statistics/statistics.component'; -import { ExplorerComponent } from './components/explorer/explorer.component'; const routes: Routes = [ { diff --git a/frontend/src/app/app.module.ts b/frontend/src/app/app.module.ts index 1cf560ecb..f8a833a3c 100644 --- a/frontend/src/app/app.module.ts +++ b/frontend/src/app/app.module.ts @@ -28,7 +28,6 @@ import { TimeSinceComponent } from './components/time-since/time-since.component import { AddressLabelsComponent } from './components/address-labels/address-labels.component'; import { MempoolBlocksComponent } from './components/mempool-blocks/mempool-blocks.component'; import { CeilPipe } from './pipes/math-ceil/math-ceil.pipe'; -import { LatestTransactionsComponent } from './components/latest-transactions/latest-transactions.component'; import { QrcodeComponent } from './components/qrcode/qrcode.component'; import { ClipboardComponent } from './components/clipboard/clipboard.component'; import { MasterPageComponent } from './components/master-page/master-page.component'; @@ -39,7 +38,6 @@ import { ChartistComponent } from './components/statistics/chartist.component'; import { BlockchainBlocksComponent } from './components/blockchain-blocks/blockchain-blocks.component'; import { BlockchainComponent } from './components/blockchain/blockchain.component'; import { FooterComponent } from './components/footer/footer.component'; -import { ExplorerComponent } from './components/explorer/explorer.component'; import { AudioService } from './services/audio.service'; import { FiatComponent } from './fiat/fiat.component'; @@ -68,10 +66,8 @@ import { FiatComponent } from './fiat/fiat.component'; TimeSinceComponent, AddressLabelsComponent, MempoolBlocksComponent, - LatestTransactionsComponent, QrcodeComponent, ClipboardComponent, - ExplorerComponent, ChartistComponent, FooterComponent, FiatComponent, diff --git a/frontend/src/app/components/explorer/explorer.component.html b/frontend/src/app/components/explorer/explorer.component.html deleted file mode 100644 index 445e3c16f..000000000 --- a/frontend/src/app/components/explorer/explorer.component.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - -
diff --git a/frontend/src/app/components/explorer/explorer.component.scss b/frontend/src/app/components/explorer/explorer.component.scss deleted file mode 100644 index c65e3bcbe..000000000 --- a/frontend/src/app/components/explorer/explorer.component.scss +++ /dev/null @@ -1,3 +0,0 @@ -.search-container { - padding-top: 50px; -} diff --git a/frontend/src/app/components/explorer/explorer.component.spec.ts b/frontend/src/app/components/explorer/explorer.component.spec.ts deleted file mode 100644 index 918214ae6..000000000 --- a/frontend/src/app/components/explorer/explorer.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { ExplorerComponent } from './explorer.component'; - -describe('ExplorerComponent', () => { - let component: ExplorerComponent; - let fixture: ComponentFixture; - - beforeEach(async(() => { - TestBed.configureTestingModule({ - declarations: [ ExplorerComponent ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(ExplorerComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/frontend/src/app/components/explorer/explorer.component.ts b/frontend/src/app/components/explorer/explorer.component.ts deleted file mode 100644 index ef31fbdd6..000000000 --- a/frontend/src/app/components/explorer/explorer.component.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core'; -import { ActivatedRoute } from '@angular/router'; - -@Component({ - selector: 'app-explorer', - templateUrl: './explorer.component.html', - styleUrls: ['./explorer.component.scss'], -}) -export class ExplorerComponent implements OnInit { - view: 'blocks' | 'transactions' = 'blocks'; - - constructor( - private route: ActivatedRoute, - ) {} - - ngOnInit() { - this.route.fragment - .subscribe((fragment: string) => { - if (fragment === 'transactions' ) { - this.view = 'transactions'; - } - }); - } - -} diff --git a/frontend/src/app/components/latest-transactions/latest-transactions.component.html b/frontend/src/app/components/latest-transactions/latest-transactions.component.html deleted file mode 100644 index cc8c5b4aa..000000000 --- a/frontend/src/app/components/latest-transactions/latest-transactions.component.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Transaction IDValueSizeFee
{{ transaction.txid | shortenString }}{{ transaction.txid }}{{ transaction.value / 100000000 | number: '1.8-8' }} BTC{{ transaction.vsize | vbytes: 2 }}{{ transaction.fee / transaction.vsize | number : '1.2-2'}} sats/vB
diff --git a/frontend/src/app/components/latest-transactions/latest-transactions.component.scss b/frontend/src/app/components/latest-transactions/latest-transactions.component.scss deleted file mode 100644 index c26280a0e..000000000 --- a/frontend/src/app/components/latest-transactions/latest-transactions.component.scss +++ /dev/null @@ -1,10 +0,0 @@ -@media (min-width: 768px) { - .d-md-block { - display: table-cell !important; - } -} -@media (min-width: 992px) { - .d-lg-block { - display: table-cell !important; - } -} diff --git a/frontend/src/app/components/latest-transactions/latest-transactions.component.spec.ts b/frontend/src/app/components/latest-transactions/latest-transactions.component.spec.ts deleted file mode 100644 index d9ac24707..000000000 --- a/frontend/src/app/components/latest-transactions/latest-transactions.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { LatestTransactionsComponent } from './latest-transactions.component'; - -describe('LatestTransactionsComponent', () => { - let component: LatestTransactionsComponent; - let fixture: ComponentFixture; - - beforeEach(async(() => { - TestBed.configureTestingModule({ - declarations: [ LatestTransactionsComponent ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(LatestTransactionsComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/frontend/src/app/components/latest-transactions/latest-transactions.component.ts b/frontend/src/app/components/latest-transactions/latest-transactions.component.ts deleted file mode 100644 index f86173b6c..000000000 --- a/frontend/src/app/components/latest-transactions/latest-transactions.component.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { Component, OnInit } from '@angular/core'; -import { ElectrsApiService } from '../../services/electrs-api.service'; -import { Observable, timer } from 'rxjs'; -import { Recent } from '../../interfaces/electrs.interface'; -import { flatMap, tap } from 'rxjs/operators'; - -@Component({ - selector: 'app-latest-transactions', - templateUrl: './latest-transactions.component.html', - styleUrls: ['./latest-transactions.component.scss'] -}) -export class LatestTransactionsComponent implements OnInit { - transactions$: Observable; - isLoading = true; - - constructor( - private electrsApiService: ElectrsApiService, - ) { } - - ngOnInit() { - this.transactions$ = timer(0, 10000) - .pipe( - flatMap(() => { - return this.electrsApiService.getRecentTransaction$() - .pipe( - tap(() => this.isLoading = false) - ); - }) - ); - } -} diff --git a/frontend/src/app/components/start/start.component.html b/frontend/src/app/components/start/start.component.html index de985f824..62b0dca21 100644 --- a/frontend/src/app/components/start/start.component.html +++ b/frontend/src/app/components/start/start.component.html @@ -2,5 +2,8 @@
- + +
+ + \ No newline at end of file