From 6c0fe3d7a16fbbc1f08e43b73e261d7f8066a1b8 Mon Sep 17 00:00:00 2001 From: nymkappa Date: Thu, 16 Jun 2022 09:17:44 +0200 Subject: [PATCH] Remove dashboard row collasping feature --- .../language-selector.component.html | 2 +- .../app/dashboard/dashboard.component.html | 263 ++++++++---------- .../src/app/dashboard/dashboard.component.ts | 13 - 3 files changed, 114 insertions(+), 164 deletions(-) diff --git a/frontend/src/app/components/language-selector/language-selector.component.html b/frontend/src/app/components/language-selector/language-selector.component.html index 81fcc8985..dee1e3acb 100644 --- a/frontend/src/app/components/language-selector/language-selector.component.html +++ b/frontend/src/app/components/language-selector/language-selector.component.html @@ -1,4 +1,4 @@ -
+
diff --git a/frontend/src/app/dashboard/dashboard.component.html b/frontend/src/app/dashboard/dashboard.component.html index 4eb95c1ca..c66750f70 100644 --- a/frontend/src/app/dashboard/dashboard.component.html +++ b/frontend/src/app/dashboard/dashboard.component.html @@ -1,8 +1,8 @@
- -
+ +
Transaction Fees
@@ -10,172 +10,135 @@
-
+
-
-
-
+ +
+
+
+
-
-
-
-
-
-
- -
-
-
- - - -
-
Transaction Fees
-
-
- -
-
-
-
- -
-
-
-
-
-
- -
-
- - -
- -
-
-
- - - -
-
-
-
-
-
-
-
- - - - - - - - -
- - - - - {{ group.name }} -
-
- -
- -
-
+ + +
+ +
+
+
+ + +
- -
-
-
- -
Latest blocks
-   - -
- - - - - - - - + +
+
+
+ +
+
+
HeightMinedPoolTXsSize
- - - - + - - +
{{ block.height }} - - - {{ block.extras.pool.name }} +
+ + {{ block.tx_count | number }} -
-
 
-
-
+
+ {{ group.name }}
+ +
+ +
+
-
-
-
-
Latest transactions
- - - - - - - - - - - - - - - -
TXIDAmountUSDFee
{{ transaction.txid | shortenString : 10 }}Confidential{{ transaction.fee / transaction.vsize | feeRounding }} sat/vB
-
-
-
-
-
-
- - +
+
+
+ +
Latest blocks
+   + +
+ + + + + + + + + + + + + + + + + +
HeightMinedPoolTXsSize
{{ block.height }} + + + {{ block.extras.pool.name }} + + {{ block.tx_count | number }} +
+
 
+
+
+
+
+
+
+
+
+
+
Latest transactions
+ + + + + + + + + + + + + + + +
TXIDAmountUSDFee
{{ transaction.txid | shortenString : 10 }}Confidential{{ transaction.fee / transaction.vsize | feeRounding }} sat/vB
+
 
+
+
+
+
diff --git a/frontend/src/app/dashboard/dashboard.component.ts b/frontend/src/app/dashboard/dashboard.component.ts index 910d6a81a..68c4ff35a 100644 --- a/frontend/src/app/dashboard/dashboard.component.ts +++ b/frontend/src/app/dashboard/dashboard.component.ts @@ -33,7 +33,6 @@ interface MempoolStatsData { changeDetection: ChangeDetectionStrategy.OnPush }) export class DashboardComponent implements OnInit { - collapseLevel: string; featuredAssets$: Observable; network$: Observable; mempoolBlocksData$: Observable; @@ -63,7 +62,6 @@ export class DashboardComponent implements OnInit { this.seoService.resetTitle(); this.websocketService.want(['blocks', 'stats', 'mempool-blocks', 'live-2h-chart']); this.network$ = merge(of(''), this.stateService.networkChanged$); - this.collapseLevel = this.storageService.getValue('dashboard-collapsed') || 'one'; this.mempoolLoadingStatus$ = this.stateService.loadingIndicators$ .pipe( map((indicators) => indicators.mempool !== undefined ? indicators.mempool : 100) @@ -230,15 +228,4 @@ export class DashboardComponent implements OnInit { trackByBlock(index: number, block: BlockExtended) { return block.height; } - - toggleCollapsed() { - if (this.collapseLevel === 'one') { - this.collapseLevel = 'two'; - } else if (this.collapseLevel === 'two') { - this.collapseLevel = 'three'; - } else { - this.collapseLevel = 'one'; - } - this.storageService.setValue('dashboard-collapsed', this.collapseLevel); - } }