From 37722fe165869777e87dc2c56e15d51881386d0d Mon Sep 17 00:00:00 2001 From: nymkappa Date: Sat, 11 Dec 2021 00:24:10 +0900 Subject: [PATCH] Remove dead code FeeDistributionGraphComponent --- frontend/src/app/app.module.ts | 2 - .../fee-distribution-graph.component.html | 9 -- .../fee-distribution-graph.component.ts | 83 ------------------- .../mempool-block.component.html | 3 - 4 files changed, 97 deletions(-) delete mode 100644 frontend/src/app/components/fee-distribution-graph/fee-distribution-graph.component.html delete mode 100644 frontend/src/app/components/fee-distribution-graph/fee-distribution-graph.component.ts diff --git a/frontend/src/app/app.module.ts b/frontend/src/app/app.module.ts index bb6383421..e599293a6 100644 --- a/frontend/src/app/app.module.ts +++ b/frontend/src/app/app.module.ts @@ -32,7 +32,6 @@ import { BlockchainComponent } from './components/blockchain/blockchain.componen import { FooterComponent } from './components/footer/footer.component'; import { AudioService } from './services/audio.service'; import { MempoolBlockComponent } from './components/mempool-block/mempool-block.component'; -import { FeeDistributionGraphComponent } from './components/fee-distribution-graph/fee-distribution-graph.component'; import { IncomingTransactionsGraphComponent } from './components/incoming-transactions-graph/incoming-transactions-graph.component'; import { TimeSpanComponent } from './components/time-span/time-span.component'; import { SeoService } from './services/seo.service'; @@ -83,7 +82,6 @@ import { PushTransactionComponent } from './components/push-transaction/push-tra MempoolBlocksComponent, FooterComponent, MempoolBlockComponent, - FeeDistributionGraphComponent, IncomingTransactionsGraphComponent, MempoolGraphComponent, LbtcPegsGraphComponent, diff --git a/frontend/src/app/components/fee-distribution-graph/fee-distribution-graph.component.html b/frontend/src/app/components/fee-distribution-graph/fee-distribution-graph.component.html deleted file mode 100644 index 3465bde35..000000000 --- a/frontend/src/app/components/fee-distribution-graph/fee-distribution-graph.component.html +++ /dev/null @@ -1,9 +0,0 @@ -
-
-
- - -
-
-
-
diff --git a/frontend/src/app/components/fee-distribution-graph/fee-distribution-graph.component.ts b/frontend/src/app/components/fee-distribution-graph/fee-distribution-graph.component.ts deleted file mode 100644 index 8c90036fd..000000000 --- a/frontend/src/app/components/fee-distribution-graph/fee-distribution-graph.component.ts +++ /dev/null @@ -1,83 +0,0 @@ -import { OnChanges } from '@angular/core'; -import { Component, Input, OnInit, ChangeDetectionStrategy } from '@angular/core'; - -@Component({ - selector: 'app-fee-distribution-graph', - templateUrl: './fee-distribution-graph.component.html', - changeDetection: ChangeDetectionStrategy.OnPush, -}) -export class FeeDistributionGraphComponent implements OnInit, OnChanges { - @Input() data: any; - @Input() height: number | string = 210; - @Input() top: number | string = 20; - @Input() right: number | string = 22; - @Input() left: number | string = 30; - - mempoolVsizeFeesOptions: any; - mempoolVsizeFeesInitOptions = { - renderer: 'svg' - }; - - constructor() { } - - ngOnInit() { - this.mountChart(); - } - - ngOnChanges() { - this.mountChart(); - } - - mountChart() { - this.mempoolVsizeFeesOptions = { - grid: { - height: '210', - right: '20', - top: '22', - left: '30', - }, - xAxis: { - type: 'category', - boundaryGap: false, - }, - yAxis: { - type: 'value', - splitLine: { - lineStyle: { - type: 'dotted', - color: '#ffffff66', - opacity: 0.25, - } - } - }, - series: [{ - data: this.data, - type: 'line', - label: { - show: true, - position: 'top', - color: '#ffffff', - textShadowBlur: 0, - formatter: (label: any) => { - return Math.floor(label.data); - }, - }, - smooth: true, - lineStyle: { - color: '#D81B60', - width: 4, - }, - itemStyle: { - color: '#b71c1c', - borderWidth: 10, - borderMiterLimit: 10, - opacity: 1, - }, - areaStyle: { - color: '#D81B60', - opacity: 1, - } - }] - }; - } -} diff --git a/frontend/src/app/components/mempool-block/mempool-block.component.html b/frontend/src/app/components/mempool-block/mempool-block.component.html index d59b3c477..48baa3c23 100644 --- a/frontend/src/app/components/mempool-block/mempool-block.component.html +++ b/frontend/src/app/components/mempool-block/mempool-block.component.html @@ -40,9 +40,6 @@ -
- -